* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== 灵境之笔 - 零图片全SVG光标系统 ========== */

/* 全局默认光标：月白渐变箭头 + 云气笔锋 */
html, body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='grad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0.95'/%3E%3Cstop offset='100%25' stop-color='%23aad0ff' stop-opacity='0.7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M4,4 L24,12 L16,16 L28,28 L22,26 L14,14 L12,24 Z' fill='url(%23grad)' stroke='%23ffffff' stroke-width='0.5' /%3E%3C/svg%3E") 4 4, auto !important;
}

/* 主要操作按钮 / 生成按钮 —— 云气更明显 */
.ai-generate-btn, .submit-btn, .primary-action, .generate-btn,
button, .btn, .tool-card-link, .tab-btn, .faq-question,
.cal-nav-btn, .cal-day:not(.empty):not(.disabled), .nav-btn,
.watch-ad-btn, .refresh-btn, .copy-all-btn, .clear-history-btn,
.mobile-menu-btn, .back-btn, .swap-btn, .tag-btn {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gradHover' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='1'/%3E%3Cstop offset='100%25' stop-color='%2380c0ff' stop-opacity='0.9'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M4,4 L24,12 L16,16 L28,28 L22,26 L14,14 L12,24 Z' fill='url(%23gradHover)' stroke='%23ffffff' stroke-width='0.8' /%3E%3C/svg%3E") 4 4, pointer !important;
}

/* 普通链接 —— 手指形态 + 云气 */
a, a:link, a:visited, a:hover, a:active, .link {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='gradLink' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0.9'/%3E%3Cstop offset='100%25' stop-color='%23c0e0ff' stop-opacity='0.7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M8,8 L26,12 L18,18 L28,28 L22,26 L14,16 L16,24 Z' fill='url(%23gradLink)' stroke='%23ffffff' stroke-width='0.5' /%3E%3C/svg%3E") 8 8, pointer !important;
}

/* 可拖拽卡片（抓取前） */
.draggable, .grab {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12' fill='%23e0f0ff' opacity='0.8' /%3E%3Cpath d='M10,16 L22,16 M16,10 L16,22' stroke='%234a6c8f' stroke-width='2' /%3E%3C/svg%3E") 16 16, grab !important;
}
.draggable:active, .grabbing {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12' fill='%23c0e0ff' opacity='0.9' /%3E%3Cpath d='M10,16 L22,16 M16,10 L16,22' stroke='%232a4c6f' stroke-width='2.5' /%3E%3C/svg%3E") 16 16, grabbing !important;
}

/* 水平滑块拖拽 */
input[type="range"], .resize-h {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M6,16 L26,16 M12,10 L16,16 L12,22 M20,10 L16,16 L20,22' stroke='%23e0f0ff' stroke-width='2' fill='none' /%3E%3C/svg%3E") 16 16, ew-resize !important;
}

/* 文本输入区（I型光标） */
input[type="text"], input[type="email"], input[type="password"], textarea, .text-input {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='24' viewBox='0 0 16 24'%3E%3Crect x='7' y='2' width='2' height='20' fill='%23e0f0ff' opacity='0.9' /%3E%3C/svg%3E") 8 12, text !important;
}

/* 等待 / 加载中 —— 静态SVG，备选系统wait */
.loading, .generating, .wait {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M16,4 A12,12 0 1,1 4,16' stroke='%23e0f0ff' stroke-width='3' fill='none' stroke-dasharray='20 30' /%3E%3Ccircle cx='16' cy='16' r='2' fill='%23ffffff' /%3E%3C/svg%3E") 16 16, wait !important;
}

/* 禁止状态 */
.disabled, [disabled], .not-allowed {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='none' stroke='%23ffaaaa' stroke-width='2' /%3E%3Cline x1='8' y1='8' x2='24' y2='24' stroke='%23ffaaaa' stroke-width='2' /%3E%3C/svg%3E") 16 16, not-allowed !important;
}

/* 帮助指针（问号） */
.help, [data-help] {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23e0f0ff' opacity='0.7' /%3E%3Ctext x='16' y='24' font-size='20' text-anchor='middle' fill='%23336699' font-weight='bold'%3E%3F%3C/text%3E%3C/svg%3E") 16 16, help !important;
}

/* 平台图标悬停示例（小红书 / 抖音风格） */
.platform-xhs:hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Crect x='6' y='6' width='20' height='20' rx='4' fill='%23ff5e6b' /%3E%3Ctext x='16' y='24' font-size='14' text-anchor='middle' fill='white' font-weight='bold'%3E红%3C/text%3E%3C/svg%3E") 16 16, pointer;
    filter: drop-shadow(0 0 6px rgba(255, 80, 120, 0.5));
}
.platform-dy:hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12' fill='%2300c4ff' /%3E%3Ctext x='16' y='24' font-size='16' text-anchor='middle' fill='white' font-weight='bold'%3E抖%3C/text%3E%3C/svg%3E") 16 16, pointer;
    filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.5));
}

/* 可点击元素悬停时增加光晕效果（模拟云气散开） */
button, .btn, .submit-btn, .ai-generate-btn, a, .clickable, .platform-xhs, .platform-dy, .generate-btn {
    transition: filter 0.2s ease;
}
button:hover, .btn:hover, .submit-btn:hover, .ai-generate-btn:hover, a:hover, .clickable:hover, .platform-xhs:hover, .platform-dy:hover, .generate-btn:hover {
    filter: drop-shadow(0 0 8px rgba(224, 240, 255, 0.8));
}

.click-ripple {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
}

.click-ripple-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1.5px solid rgba(59, 130, 246, 0.9);
    transform: translate(-50%, -50%);
    animation: rippleRing 0.6s ease-out forwards;
}

.click-ripple-ring:nth-child(2) {
    border-color: rgba(99, 102, 241, 0.85);
    animation-delay: 0.08s;
}

.click-ripple-ring:nth-child(3) {
    border-color: rgba(168, 85, 247, 0.8);
    animation-delay: 0.16s;
}

.click-ripple-ring:nth-child(4) {
    border-color: rgba(59, 130, 246, 0.75);
    animation-delay: 0.24s;
}

.click-ripple-ring:nth-child(5) {
    border-color: rgba(99, 102, 241, 0.7);
    animation-delay: 0.32s;
}

@keyframes rippleRing {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

.cursor-hidden {
    opacity: 0;
}

@media (max-width: 768px) {
    html, body {
        cursor: default !important;
    }
    
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

:root {
    --primary-blue: #3B82F6;
    --primary-purple: #6366F1;
    --primary-gradient: linear-gradient(135deg, #3B82F6, #6366F1);
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
}

[data-theme="dark"] {
    --bg-light: #0f172a;
    --bg-white: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
    --border-light: #1e293b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(to bottom, #0a0e27 0%, #1b2735 50%, #090a0f 100%);
}

#starfield-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: transparent;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar:hover {
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.navbar:hover {
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.brand-logo {
    height: 1.875rem;
    width: auto;
    max-height: 36px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 0.5rem;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-logo:active {
    transform: scale(0.95);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    display: none;
    letter-spacing: -0.02em;
}

.brand-slogan {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    display: none;
    padding-left: 0.5rem;
    border-left: 1px solid var(--border-color);
}

@media (min-width: 640px) {
    .brand-slogan {
        display: block;
    }
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0.75rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.25rem;
    min-width: 160px;
    z-index: 100;
}

.mobile-dropdown.show {
    display: flex;
    flex-direction: column;
}

.mobile-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-tab-btn:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.mobile-tab-btn:visited {
    color: var(--text-secondary);
}

.navbar-tabs {
    display: none;
    gap: 0.125rem;
    overflow-x: auto;
    scrollbar-width: none;
    margin-top: 0.5rem;
    padding-bottom: 0.25rem;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
}

.navbar-tabs::-webkit-scrollbar {
    display: none;
}

@media (min-width: 640px) {
    .navbar-tabs {
        display: flex;
        margin-top: 0;
        padding-bottom: 0;
        flex: 1;
        justify-content: center;
        gap: 0.25rem;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-dropdown {
        display: none;
    }
    
    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.875rem 1.5rem;
        gap: 1rem;
    }
    
    .navbar-brand {
        flex-shrink: 0;
        position: static;
        left: auto;
        transform: none;
    }
    
    .brand-logo {
        height: 2.5rem;
        max-height: 48px;
    }
    
    .brand-name {
        display: inline;
    }
    
    .usage-info {
        flex-shrink: 0;
        margin-top: 0;
        flex-wrap: nowrap;
    }
}

@media (min-width: 768px) {
    .navbar {
        padding: 0.875rem 2rem;
    }
}

.tab-btn {
    flex-shrink: 0;
    padding: 0.5rem 0.625rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 52px;
    min-width: 52px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 0.25rem;
    text-decoration: none;
}

.tab-btn:visited {
    color: rgba(255, 255, 255, 0.8);
}

.tab-btn .tab-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.tab-btn .tab-text {
    font-size: 0.7rem;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .tab-btn {
        flex-direction: row;
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .tab-btn .tab-text {
        font-size: 0.8125rem;
    }
}

@media (min-width: 640px) {
    .tab-btn {
        flex-direction: row;
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

.tab-btn:hover {
    color: #ffffff;
    background: rgba(102, 126, 234, 0.2);
}

.tab-btn.active {
    color: #ffffff;
    background: rgba(102, 126, 234, 0.3);
    box-shadow: inset 0 -2px 0 0 #667eea;
}

.tab-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

main {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 12rem 0.75rem 8rem;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

@media (max-width: 480px) {
    main {
        padding: 10rem 0.5rem 6rem;
        min-height: calc(100vh - 60px);
    }
}

.tool-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-panel.active {
    display: block;
}

.tool-header {
    margin-bottom: 1.5rem;
}

.tool-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.375rem;
}

.tool-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

.tool-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .tool-content {
        padding: 2rem;
    }
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.input-group textarea,
.input-group input[type="text"],
.input-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #ffffff;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 100px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.input-group input[type="text"] {
    min-height: 48px;
}

.input-group textarea:focus,
.input-group input[type="text"]:focus,
.input-group select:focus {
    outline: none;
    border-color: rgba(196, 181, 253, 0.6);
    box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.2), 0 6px 25px rgba(102, 126, 234, 0.15);
    background: rgba(255, 255, 255, 0.15);
}

.input-group textarea::placeholder,
.input-group input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.radio-group {
    border: none;
    padding: 0;
}

.radio-group legend {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.radio-label span {
    color: #ffffff;
    font-size: 0.875rem;
}

.radio-label:hover {
    background: rgba(196, 181, 253, 0.25);
    border-color: rgba(196, 181, 253, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 181, 253, 0.2);
}

.radio-label input[type="radio"] {
    accent-color: #c4b5fd;
    width: 16px;
    height: 16px;
}

.radio-label input[type="radio"]:checked + span {
    color: #c4b5fd;
    font-weight: 600;
}

.radio-label:has(input[type="radio"]:checked) {
    background: rgba(196, 181, 253, 0.2);
    border-color: rgba(196, 181, 253, 0.5);
}

.tag-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.tag-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.tag-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-selector select {
    flex: 1;
    min-height: 48px;
}

.swap-btn {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.swap-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.generate-btn {
    width: 100%;
    padding: 0.9375rem 1.5rem;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.generate-btn:hover:not(:disabled)::before {
    left: 100%;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #7c8fff 0%, #8b5cf6 100%);
}

.generate-btn:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.generate-btn.loading {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    pointer-events: none;
}

.generate-btn.loading .btn-content {
    display: none;
}

.generate-btn.loading .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-loading {
    display: none;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.6));
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    transition: width 0.2s ease;
}

.status-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.waiting-dots {
    display: inline-flex;
    gap: 2px;
}

.waiting-dot {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.waiting-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.waiting-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.results-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    animation: fadeIn 0.3s ease;
}

.results-container.show {
    display: block;
}

.results-container h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cards-grid {
    display: grid;
    gap: 1rem;
}

.card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.18);
}

.card-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #ffffff;
    margin-bottom: 1rem;
}

.card-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.375rem;
}

.card-copy {
    padding: 0.375rem 0.625rem;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-copy:hover {
    background: rgba(196, 181, 253, 0.3);
    color: #ffffff;
}

.card-share {
    padding: 0.375rem 0.625rem;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-share:hover {
    background: rgba(167, 139, 250, 0.3);
    color: #ffffff;
}

.headline-list {
    list-style: none;
}

.headline-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.headline-list li:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.headline-list li span:first-child {
    color: #c4b5fd;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.headline-list li span:nth-child(2) {
    flex: 1;
    font-size: 0.9375rem;
    color: #ffffff;
}

.headline-copy {
    padding: 0.25rem 0.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.headline-copy:hover {
    background: rgba(196, 181, 253, 0.3);
    color: #ffffff;
}

.summary-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.summary-content ul {
    list-style: none;
}

.summary-content li {
    padding: 0.5rem 0;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-content li:last-child {
    border-bottom: none;
}

.summary-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #ffffff;
}

.summary-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #c4b5fd;
    font-weight: 600;
}

.summary-content p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #ffffff;
}

.translate-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #ffffff;
}

.copy-all-btn {
    padding: 0.625rem 1.25rem;
    border: 1px solid #667eea;
    background: rgba(102, 126, 234, 0.2);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-all-btn:hover {
    background: rgba(102, 126, 234, 0.4);
    color: #ffffff;
}

.faq-section {
    margin-top: 4rem;
    padding: 2.5rem 0;
    position: relative;
    z-index: 1;
}

.faq-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-question h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-align: left;
    margin: 0;
    flex: 1;
}

.faq-icon {
    font-size: 1.5rem;
    color: #667eea;
    transition: transform 0.3s ease;
    font-weight: 300;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer[hidden] {
    display: block;
    max-height: 0;
    padding: 0 1.5rem;
}

.faq-answer div {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.home-hero {
    text-align: center;
    padding: 4rem 0 3rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 50%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.home-tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0 3rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .home-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tool-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.3s ease;
    text-align: center;
}

.tool-card-link:hover .tool-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.tool-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.tool-card p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tool-card-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tool-tag {
    padding: 0.375rem 0.75rem;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.tool-card-link:hover .tool-tag {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-desc {
        font-size: 1.25rem;
    }
}

footer {
    background: rgba(10, 10, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(196, 181, 253, 0.15);
    padding: 3rem 1rem 2rem;
    margin-top: auto;
    clear: both;
    position: relative;
    z-index: 10;
    box-shadow: 0 -4px 30px rgba(102, 126, 234, 0.1);
}

.footer-content {
    max-width: 960px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-brand {
    margin: 0 auto;
    max-width: 200px;
}

.footer-links-grid {
    justify-items: center;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        text-align: left;
    }
    
    .footer-brand {
        margin: 0;
    }
    
    .footer-links-grid {
        justify-items: start;
    }
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-brand-logo {
    height: 1.75rem;
    width: auto;
    max-height: 1.75rem;
    object-fit: contain;
    vertical-align: middle;
}

.footer-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.footer-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.footer-links-grid a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius-sm);
    background: transparent;
    transition: all 0.2s ease;
}

.footer-links-grid a:hover {
    color: #c4b5fd;
    background: rgba(196, 181, 253, 0.2);
}

.footer-links-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0;
    margin-bottom: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-links-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-disclaimer {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.footer-disclaimer p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.footer-disclaimer strong {
    color: #c4b5fd;
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-info {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

.footer-info .separator {
    color: rgba(255, 255, 255, 0.3);
}

.footer-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-info a:hover {
    color: #c4b5fd;
}

.footer-beian {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-beian a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.footer-beian a:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

.loading-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 768px) {
    .navbar {
        padding: 0.875rem 2rem;
    }
    
    main {
        padding: 8rem 2rem 2rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    main {
        padding: 7.5rem 2rem 2rem;
    }
}

.history-btn {
    position: relative;
}

.history-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-purple);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 1.25rem;
    text-align: center;
    margin-left: 0.25rem;
}

.history-btn {
    position: relative;
}

.history-btn .history-count {
    position: absolute;
    top: 4px;
    right: 4px;
}

.usage-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.usage-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.usage-count strong {
    color: #a78bfa;
    font-weight: 600;
}

.watch-ad-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid #F59E0B;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #92400E;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 36px;
}

.watch-ad-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.watch-ad-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ad-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.ad-modal {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: scaleIn 0.3s ease;
}

.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.share-modal {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: scaleIn 0.3s ease;
}

.share-modal h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-option:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.share-icon {
    font-size: 1.5rem;
}

.share-close {
    padding: 0.5rem 1.5rem;
    border: none;
    background: var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-close:hover {
    background: var(--text-muted);
    color: white;
}

.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.onboarding-modal {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: scaleIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.onboarding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.onboarding-progress {
    display: flex;
    gap: 0.5rem;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--primary-blue);
    transform: scale(1.2);
}

.onboarding-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.onboarding-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.onboarding-content h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.onboarding-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.onboarding-footer {
    margin-top: 2rem;
}

.onboarding-next {
    padding: 0.75rem 2rem;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.onboarding-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.history-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.export-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.export-modal {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: scaleIn 0.3s ease;
}

.export-modal h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.export-modal p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.export-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.export-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.export-option:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.export-icon {
    font-size: 1.5rem;
}

.export-desc {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.export-option:hover .export-desc {
    color: rgba(255, 255, 255, 0.8);
}

.export-close {
    padding: 0.5rem 1.5rem;
    border: none;
    background: var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.export-close:hover {
    background: var(--text-muted);
    color: white;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ad-modal h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ad-modal p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.ad-progress-container {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    height: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.ad-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    transition: width 0.1s linear;
}

.ad-countdown {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.ad-reward-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #065F46;
    font-weight: 600;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.ad-close-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1.5rem;
    width: 100%;
}

.ad-close-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

@media (min-width: 640px) {
    .usage-info {
        flex-direction: row;
        align-items: center;
    }
}

.history-container {
    min-height: 200px;
}

.history-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.history-empty p {
    margin-bottom: 0.5rem;
}

.history-empty .text-sm {
    font-size: 0.875rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: all 0.2s ease;
}

.history-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.history-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.history-icon {
    font-size: 1.25rem;
}

.history-type {
    font-weight: 600;
    color: var(--text-primary);
}

.history-time {
    margin-left: auto;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.history-content {
    margin-bottom: 0.75rem;
}

.history-input,
.history-result {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.375rem;
}

.history-input:last-child,
.history-result:last-child {
    margin-bottom: 0;
}

.history-input .label,
.history-result .label {
    color: var(--text-muted);
    font-weight: 500;
    margin-right: 0.5rem;
}

.history-actions {
    display: flex;
    gap: 0.5rem;
}

.history-copy,
.history-reuse {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-copy {
    background: white;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.history-copy:hover {
    background: var(--primary-blue);
    color: white;
}

.history-reuse {
    background: var(--primary-gradient);
    color: white;
}

.history-reuse:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.secondary-btn {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.secondary-btn:hover {
    background: var(--bg-light);
    box-shadow: none;
}

@media (min-width: 1280px) {
    main {
        max-width: 1000px;
    }
}

.tool-history {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-history .history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tool-history .history-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.clear-history-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-history-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.tool-history .history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tool-history-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: all 0.2s ease;
}

.tool-history-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(196, 181, 253, 0.3);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.tool-history-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.tool-history-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.tool-history-content {
    margin-bottom: 0.75rem;
}

.tool-history-input,
.tool-history-result {
    margin-bottom: 0.5rem;
}

.tool-history-input:last-child,
.tool-history-result:last-child {
    margin-bottom: 0;
}

.tool-history-input .label,
.tool-history-result .label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-right: 0.5rem;
    font-size: 0.8125rem;
}

.tool-history-input span:not(.label),
.tool-history-result span:not(.label) {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    line-height: 1.5;
}

.tool-history-result span:not(.label) {
    display: block;
    max-height: 3rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-history-actions {
    display: flex;
    gap: 0.5rem;
}

.tool-history-copy,
.tool-history-reuse {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-history-copy {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tool-history-copy:hover {
    background: rgba(196, 181, 253, 0.3);
    color: #ffffff;
    border-color: rgba(196, 181, 253, 0.4);
}

.tool-history-reuse {
    background: rgba(102, 126, 234, 0.3);
    color: #ffffff;
    border: 1px solid rgba(102, 126, 234, 0.4);
}

.tool-history-reuse:hover {
    background: rgba(102, 126, 234, 0.5);
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}
