@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&display=swap');

/* ===== UI/UX PRO MAX 设计系统 v2.0 ===== */
/* 主色: #4F46E5 (Indigo)  次色: #818CF8      */
/* CTA:  #22C55E (Green)   背景: #F8FAFC      */
/* 文字: #0F172A            风格: Glass + Flat */
/* 字体: Inter + Baloo 2                       */
/* ========================================== */

:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-hover: #4338CA;
  --primary-light: #818CF8;
  --primary-lighter: #A5B4FC;
  --primary-bg: #EEF2FF;
  --primary-subtle: rgba(79,70,229,0.08);
  --secondary: #22C55E;
  --secondary-dark: #16A34A;
  --secondary-light: #86EFAC;
  --accent: #F59E0B;
  --accent-light: #FDE68A;
  --cta: #22C55E;
  --cta-hover: #16A34A;
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --text: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --shadow-sm: 0 1px 3px rgba(79,70,229,0.06), 0 1px 2px rgba(79,70,229,0.04);
  --shadow-md: 0 4px 16px rgba(79,70,229,0.10);
  --shadow-lg: 0 8px 32px rgba(79,70,229,0.12);
  --shadow-xl: 0 12px 48px rgba(79,70,229,0.15);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-full: 9999px;
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --glass-bg: rgba(255,255,255,0.85);
  --glass-border: rgba(255,255,255,0.3);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  --font-display: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

@font-face {
    font-family: 'UKIJ Tuz Tom';
    src: url('../fonts/UKIJTuT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Glass Card ─── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* ─── Gradient Glass Card ─── */
.glass-card-gradient {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(238,242,255,0.7));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 4px 16px rgba(79,70,229,0.3);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--surface);
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-secondary:hover {
    border-color: var(--primary-light);
    background: var(--primary-bg);
    color: var(--primary);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.btn-ghost:hover {
    background: var(--primary-subtle);
    color: var(--primary);
}

/* ─── SVG Icon ─── */
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.icon-sm {
    width: 16px;
    height: 16px;
}
.icon-lg {
    width: 24px;
    height: 24px;
}
.icon-xl {
    width: 32px;
    height: 32px;
}

/* ─── Floating Navbar ─── */
.nav-glass {
    position: sticky;
    top: 12px;
    z-index: 100;
    margin: 0 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ─── Section Title ─── */
.section-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.section-title .sec-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ─── Badge ─── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-primary {
    background: var(--primary-bg);
    color: var(--primary);
}
.badge-green {
    background: #F0FDF4;
    color: #16A34A;
}
.badge-orange {
    background: #FFF7ED;
    color: #EA580C;
}
.badge-rose {
    background: #FDF2F8;
    color: #DB2777;
}

/* ─── Progress Bar ─── */
.progress-track {
    height: 10px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}
.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ─── Gradient Text ─── */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Toast Notification ─── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10000;
}
.toast {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    background: #1E293B;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 360px;
}
.toast-success {
    background: linear-gradient(135deg, #16A34A, #22C55E);
}
.toast-error {
    background: linear-gradient(135deg, #DC2626, #EF4444);
}
.toast-info {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.9); }
    60% { transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1); }
}

/* ─── Skeleton Loading ─── */
.skeleton {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 400px 100%;
    animation: shimmer-skeleton 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer-skeleton {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

/* ─── Focus Visible ─── */
:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb { background: var(--text-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── RTL Support ─── */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .nav-glass { flex-direction: row-reverse; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .nav-glass {
        margin: 0 8px;
        padding: 10px 16px;
        top: 8px;
    }
}

@media (max-width: 375px) {
    .section-title { font-size: 18px; }
    .btn-primary, .btn-secondary { padding: 10px 18px; font-size: 13px; }
}

/* ================================================
   页面布局样式 (Page Layout)
   ================================================ */

/* ─── Container ─── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ─── Header ─── */
.header {
    background: linear-gradient(135deg, var(--primary), #6366F1);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 16px 24px;
    margin-bottom: 20px;
    color: white;
    box-shadow: var(--shadow-lg);
}
.header-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.header-title-section {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.header-title-section h1 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-title-section .subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin: 0;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ─── Main Navigation ─── */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.main-nav .nav-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.main-nav .nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

/* ─── Auth Buttons ─── */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ─── User Info ─── */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── Language Selector ─── */
.language-selector-container {
    position: relative;
}
.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}
.language-dropdown.show {
    display: block;
}
.language-option {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}
.language-option:hover {
    background: #f8f9fa;
}
.language-option:last-child {
    border-bottom: none;
}
.language-option .fa-check {
    margin-left: auto;
    color: #667eea;
    display: none;
}
.language-option.active .fa-check {
    display: block;
}

/* ─── Tabs ─── */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: white;
    border-radius: var(--radius-sm);
    padding: 4px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-xs);
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font-sans);
}
.tab-btn:hover {
    background: var(--primary-bg);
    color: var(--primary);
}
.tab-btn.active {
    background: var(--primary);
    color: white;
}

/* ─── Tab Content ─── */
.tab-content {
    display: none;
    animation: fadeUp 0.3s ease-out;
}
.tab-content.active {
    display: block;
}

/* ─── Card ─── */
.card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}
.card h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── Language Selector ─── */
.lang-selector {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.lang-group {
    flex: 1;
    min-width: 200px;
}
.lang-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.lang-select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 14px;
    color: var(--text);
    background: white;
    font-family: var(--font-sans);
    transition: var(--transition);
    cursor: pointer;
}
.lang-select:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

/* ─── Text Input/Output ─── */
.input-area, .output-area {
    margin-bottom: 12px;
}
.text-input, .text-output {
    width: 100%;
    min-height: 120px;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--text);
    resize: vertical;
    transition: var(--transition);
    line-height: 1.6;
}
.text-input:focus, .text-output:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-subtle);
}
.text-output {
    background: var(--bg);
    min-height: 100px;
}
.input-actions, .output-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* ─── Upload Area ─── */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 16px;
    background: var(--bg);
}
.upload-area:hover, .upload-area.drag-over {
    border-color: var(--primary-light);
    background: var(--primary-bg);
}
.upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.upload-box i {
    font-size: 48px;
    color: var(--primary-light);
}
.upload-hint {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ─── Progress ─── */
.translation-progress {
    margin: 16px 0;
}
.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}
.result-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.results-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ─── AI Chat ─── */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: white;
    align-items: center;
}
.chat-input {
    flex: 1;
    padding: 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-family: var(--font-sans);
    resize: none;
    min-height: 44px;
    max-height: 120px;
    transition: var(--transition);
}
.chat-input:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-subtle);
}
.voice-input-btn {
    position: absolute;
    right: 60px;
    background: transparent;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    transition: all 0.3s;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Engine Selector ─── */
.engine-selector, .ai-engine-select, .ai-engine-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.engine-selector label, .ai-engine-select label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.filter-select {
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 13px;
    background: white;
    cursor: pointer;
    font-family: var(--font-sans);
}

/* ─── History ─── */
.history-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-family: var(--font-sans);
    transition: var(--transition);
}
.search-input:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-subtle);
}
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ─── User Center ─── */
.user-center-content {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.user-center-menu {
    width: 220px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--radius-sm);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}
.user-menu-item:hover, .user-menu-item.active {
    background: var(--primary-bg);
    color: var(--primary);
}
.user-section {
    flex: 1;
    background: white;
    border-radius: var(--radius-sm);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

/* ─── Font Size Control ─── */
.font-size-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

/* ─── Image Preview ─── */
.image-preview {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

/* ─── Image/Video Gen Params ─── */
.image-gen-params, .video-gen-params {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

/* ─── Prompt Section ─── */
.prompt-section {
    margin-top: 16px;
}
.prompt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.prompt-tag {
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
}
.prompt-tag:hover {
    background: var(--primary);
    color: white;
}

/* ─── Web URL Input ─── */
.web-url-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-family: var(--font-sans);
    margin-bottom: 12px;
}

/* ─── Recording ─── */
.recording-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}
.recording-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #EF4444;
    font-weight: 600;
    font-size: 14px;
}
.recording-indicator::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #EF4444;
    border-radius: 50%;
    animation: pulse-dot 1s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ─── Loading ─── */
.loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── Footer ─── */
.site-footer {
    margin-top: 40px;
    background: #1E293B;
    color: rgba(255,255,255,0.7);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 32px 24px 20px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}
.footer-link-item {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 6px 14px;
    font-size: 13px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-xs);
}
.footer-link-item:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}
.footer-body {
    text-align: center;
    margin-bottom: 16px;
}
.footer-company {
    font-size: 14px;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.6);
}
.footer-legal {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    flex-wrap: wrap;
}
.footer-legal a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}
.footer-legal a:hover {
    color: white;
}

/* ─── Additional Button Variants ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    font-family: var(--font-sans);
    line-height: 1.4;
}
.btn-success {
    background: var(--secondary);
    color: white;
}
.btn-success:hover {
    background: var(--secondary-dark);
}
.btn-danger {
    background: #EF4444;
    color: white;
}
.btn-danger:hover {
    background: #DC2626;
}
.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}
.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.btn-icon:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

/* ─── FAQ ─── */
.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ─── Email Option ─── */
.email-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

/* ─── Active State ─── */
.active {
    /* 通用active状态 — 各组件自定义 */
}

/* ─── Large helper ─── */
.large {
    font-size: 1.1em;
}

/* ─── Responsive Layout ─── */
@media (max-width: 768px) {
    .container { padding: 0 10px; }
    .header { padding: 12px 16px; border-radius: 0; }
    .header-title-section h1 { font-size: 20px; }
    .main-nav { gap: 2px; }
    .main-nav .nav-link { padding: 6px 10px; font-size: 13px; }
    .tabs { padding: 3px; gap: 2px; }
    .tab-btn { padding: 8px 12px; font-size: 13px; }
    .card { padding: 16px; border-radius: var(--radius-sm); }
    .lang-selector { flex-direction: column; }
    .lang-group { min-width: 100%; }
    .results-area { grid-template-columns: 1fr; }
    .user-center-content { flex-direction: column; }
    .user-center-menu { width: 100%; }
    .chat-container { height: 400px; }
}

@media (max-width: 375px) {
    .header-title-section h1 { font-size: 17px; }
    .tab-btn { padding: 6px 10px; font-size: 12px; }
    .upload-area { padding: 24px 12px; }
}
