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

/* ============================================================
   Theme Variables — 单一事实来源，dark / light 通过切换根变量实现
   ============================================================ */
:root {
    /* --- 色彩体系 --- */
    --color-bg-base:         #0b1120;
    --color-bg-elevated:     #111827;
    --color-bg-surface:      rgba(255,255,255,0.04);
    --color-bg-surface-hover:rgba(255,255,255,0.07);
    --color-bg-surface-active:rgba(255,255,255,0.10);

    --color-border-default:  rgba(255,255,255,0.08);
    --color-border-subtle:  rgba(255,255,255,0.05);
    --color-border-emphasis: rgba(255,255,255,0.15);

    --color-text-primary:    rgba(255,255,255,0.92);
    --color-text-secondary:  rgba(255,255,255,0.6);
    --color-text-tertiary:   rgba(255,255,255,0.4);
    --color-text-placeholder:rgba(255,255,255,0.3);

    --color-brand-primary:   #f59e0b;
    --color-brand-secondary: #f97316;
    --color-brand-gradient:   linear-gradient(135deg, #f59e0b, #f97316);
    --color-brand-bg:         rgba(245,158,11,0.12);
    --color-brand-bg-hover:   rgba(245,158,11,0.18);
    --color-brand-border:     rgba(245,158,11,0.25);
    --color-brand-text:       #fbbf24;

    --color-accent-indigo:    #6366f1;
    --color-accent-indigo-bg: rgba(99,102,241,0.08);
    --color-accent-indigo-border: rgba(99,102,241,0.15);
    --color-accent-indigo-text:#818cf8;

    --color-success:         #22c55e;
    --color-success-bg:      rgba(34,197,94,0.1);
    --color-warning:         #f59e0b;
    --color-warning-bg:      rgba(245,158,11,0.08);
    --color-error:           #ef4444;
    --color-error-bg:        rgba(239,68,68,0.1);

    /* --- 间距 --- */
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   20px;

    /* --- 阴影 --- */
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.2);
    --shadow-md:   0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg:   0 8px 40px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 0 3px rgba(245,158,11,0.08);

    /* --- 过渡 --- */
    --transition-fast:   all 0.15s ease;
    --transition-normal: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    /* --- Hero 专用 --- */
    --color-hero-input-text:    rgba(255,255,255,0.92);
    --color-hero-overlay-bg:    rgba(11,17,32,0.7);
    --color-hero-dropdown-bg:   rgba(15,23,42,0.95);
    --color-hero-nav-border:    rgba(255,255,255,0.06);
    --color-hero-search-bg:     rgba(255,255,255,0.06);
    --color-hero-search-border: rgba(255,255,255,0.1);
    --color-hero-search-focus-border: rgba(245,158,11,0.3);
    --color-hero-glow1:         rgba(245,158,11,0.06);
    --color-hero-glow2:         rgba(245,158,11,0.04);
    --color-hero-ring:          rgba(255,255,255,0.03);
    --color-hero-hover-bg:      rgba(255,255,255,0.04);
    --color-hero-divider:       rgba(255,255,255,0.1);
    --color-hero-footer-copy:   rgba(255,255,255,0.35);
    --color-hero-footer-icp:    rgba(255,255,255,0.25);
    --color-hero-slogan-bg:     rgba(245,158,11,0.12);
    --color-hero-slogan-border: rgba(245,158,11,0.2);
    --color-hero-slogan-text:    #fbbf24;
    --color-hero-icpa-color:    rgba(245,158,11,0.3);
    --color-hero-icon-color:    #f59e0b;

}

/* Light 主题 — 明亮科技感 */
[data-theme="light"] {
    /* --- 色彩体系 --- */
    --color-bg-base:         #f0f5ff;
    --color-bg-elevated:     #ffffff;
    --color-bg-surface:      rgba(37,99,235,0.04);
    --color-bg-surface-hover:rgba(37,99,235,0.08);
    --color-bg-surface-active:rgba(37,99,235,0.12);

    --color-border-default:  rgba(37,99,235,0.10);
    --color-border-subtle:   rgba(37,99,235,0.06);
    --color-border-emphasis: rgba(37,99,235,0.22);

    --color-text-primary:    #0f172a;
    --color-text-secondary:  #475569;
    --color-text-tertiary:   #94a3b8;
    --color-text-placeholder:#cbd5e1;

    --color-brand-primary:   #2563eb;
    --color-brand-secondary: #1d4ed8;
    --color-brand-gradient:  linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    --color-brand-bg:        rgba(37,99,235,0.08);
    --color-brand-bg-hover:  rgba(37,99,235,0.14);
    --color-brand-border:    rgba(37,99,235,0.25);
    --color-brand-text:      #1d4ed8;

    --color-accent-indigo:    #6366f1;
    --color-accent-indigo-bg:  rgba(99,102,241,0.08);
    --color-accent-indigo-border: rgba(99,102,241,0.18);
    --color-accent-indigo-text:#4f46e5;

    --color-success:          #16a34a;
    --color-success-bg:       rgba(22,163,74,0.08);
    --color-warning:          #f59e0b;
    --color-warning-bg:       rgba(245,158,11,0.08);
    --color-error:            #ef4444;
    --color-error-bg:         rgba(239,68,68,0.08);

    /* --- 阴影 --- */
    --shadow-sm:   0 1px 3px rgba(37,99,235,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:   0 4px 14px rgba(37,99,235,0.08), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg:   0 10px 30px rgba(37,99,235,0.12), 0 4px 10px rgba(0,0,0,0.05);
    --shadow-glow: 0 0 0 3px rgba(37,99,235,0.15);

    /* --- Hero 专用（Light 覆盖） --- */
    --color-hero-input-text:    rgba(15,23,42,0.92);
    --color-hero-overlay-bg:    rgba(240,245,255,0.85);
    --color-hero-dropdown-bg:   rgba(255,255,255,0.98);
    --color-hero-nav-border:    rgba(37,99,235,0.08);
    --color-hero-search-bg:     rgba(255,255,255,0.85);
    --color-hero-search-border: rgba(37,99,235,0.15);
    --color-hero-search-focus-border: rgba(37,99,235,0.45);
    --color-hero-glow1:         rgba(37,99,235,0.10);
    --color-hero-glow2:         rgba(99,102,241,0.08);
    --color-hero-ring:          rgba(37,99,235,0.06);
    --color-hero-hover-bg:      rgba(37,99,235,0.06);
    --color-hero-divider:       rgba(37,99,235,0.12);
    --color-hero-footer-copy:   rgba(15,23,42,0.40);
    --color-hero-footer-icp:    rgba(15,23,42,0.28);
    --color-hero-slogan-bg:     rgba(37,99,235,0.10);
    --color-hero-slogan-border: rgba(37,99,235,0.22);
    --color-hero-slogan-text:   #1d4ed8;
    --color-hero-icpa-color:    rgba(37,99,235,0.30);
    --color-hero-icon-color:    #2563eb;
}

/* Light 主题 — 卡片增强 */
[data-theme="light"] .glass {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(37,99,235,0.10);
    box-shadow: 0 1px 3px rgba(37,99,235,0.06), 0 8px 24px rgba(37,99,235,0.04);
}
[data-theme="light"] .glass:hover {
    background: rgba(255,255,255,0.88);
    border-color: rgba(37,99,235,0.18);
    box-shadow: 0 4px 14px rgba(37,99,235,0.10), 0 12px 32px rgba(37,99,235,0.06);
}
[data-theme="light"] .name-card {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(37,99,235,0.08);
    box-shadow: 0 1px 3px rgba(37,99,235,0.05), 0 8px 24px rgba(37,99,235,0.03);
}
[data-theme="light"] .name-card:hover {
    background: rgba(255,255,255,0.92);
    border-color: rgba(37,99,235,0.20);
    box-shadow: 0 8px 24px rgba(37,99,235,0.12), 0 16px 40px rgba(37,99,235,0.06);
}
[data-theme="light"] .report-block {
    background: rgba(255,255,255,0.70);
    border: 1px solid rgba(37,99,235,0.08);
}
[data-theme="light"] .report-block:hover {
    background: rgba(255,255,255,0.88);
    border-color: rgba(37,99,235,0.15);
}
[data-theme="light"] .btn-primary {
    box-shadow: 0 4px 16px rgba(37,99,235,0.25), 0 1px 3px rgba(37,99,235,0.15);
}
[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 8px 28px rgba(37,99,235,0.30), 0 2px 6px rgba(37,99,235,0.20);
}
[data-theme="light"] .hero-search-inner {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(37,99,235,0.12);
    box-shadow: 0 2px 8px rgba(37,99,235,0.06);
}
[data-theme="light"] .hero-search-inner:focus-within {
    border-color: rgba(37,99,235,0.35);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.10), 0 4px 16px rgba(37,99,235,0.08);
}
[data-theme="light"] .hero-search-btn {
    box-shadow: 0 4px 14px rgba(37,99,235,0.30);
}
[data-theme="light"] .hero-search-btn:hover {
    box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}
[data-theme="light"] .modal-card {
    background: #ffffff;
    border: 1px solid rgba(37,99,235,0.10);
    box-shadow: 0 20px 60px rgba(37,99,235,0.12), 0 8px 20px rgba(0,0,0,0.06);
}
[data-theme="light"] .count-chip.active {
    box-shadow: 0 2px 10px rgba(37,99,235,0.25);
}
[data-theme="light"] .hero-tab.active {
    background: rgba(37,99,235,0.12) !important;
    color: #1d4ed8 !important;
    box-shadow: 0 1px 4px rgba(37,99,235,0.12);
}
[data-theme="light"] .name-slogan {
    background: rgba(37,99,235,0.06);
    border-left-color: rgba(37,99,235,0.30);
}
[data-theme="light"] .report-value-chip {
    background: rgba(37,99,235,0.06);
    border-color: rgba(37,99,235,0.15);
}
[data-theme="light"] .page-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(37,99,235,0.03) 100%);
}

/* ============================================================
   Reset & Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    margin: 0;
    min-height: 100vh;
    background: var(--color-bg-base);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--color-brand-bg-hover); color: var(--color-brand-primary); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-brand-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-brand-primary); }

/* ============================================================
   Glass Surface — 深色半透明玻璃卡片（dark 主题）
   ============================================================ */
.glass {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border-default);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}
.glass:hover {
    background: var(--color-bg-surface-hover);
    border-color: var(--color-border-emphasis);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   Buttons
   ============================================================ */
.glass-btn {
    background: var(--color-bg-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.glass-btn:hover {
    background: var(--color-bg-surface-hover);
    color: var(--color-brand-text);
    border-color: var(--color-brand-border);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--color-brand-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--color-brand-bg-hover);
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px var(--color-brand-border);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: var(--radius-md); }
.btn-xs { padding: 5px 10px; font-size: 12px; border-radius: var(--radius-sm); }

.btn-ghost {
    background: transparent;
    color: var(--color-brand-text);
    border: 1px solid var(--color-brand-border);
    border-radius: var(--radius-lg);
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-ghost:hover {
    background: var(--color-brand-bg);
    border-color: var(--color-brand-border);
    transform: translateY(-1px);
}

/* ============================================================
   Form Controls
   ============================================================ */
.glass-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: var(--transition-normal);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.glass-select:hover {
    border-color: var(--color-border-emphasis);
    background-color: var(--color-bg-surface-hover);
}
.glass-select:focus {
    outline: none;
    border-color: var(--color-brand-primary);
    box-shadow: var(--shadow-glow);
    background-color: var(--color-bg-surface-active);
}

.glass-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--color-text-primary);
    transition: var(--transition-normal);
}
.glass-input::placeholder { color: var(--color-text-placeholder); }
/* Hero 搜索框 autofill 穿透修复 */
.hero-search-input:-webkit-autofill,
.hero-search-input:-webkit-autofill:hover,
.hero-search-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: var(--color-hero-input-text) !important;
    caret-color: var(--color-hero-input-text) !important;
}
.glass-input:hover {
    border-color: var(--color-border-emphasis);
    background-color: var(--color-bg-surface-hover);
}
.glass-input:focus {
    outline: none;
    border-color: var(--color-brand-primary);
    box-shadow: var(--shadow-glow);
    background-color: var(--color-bg-surface-active);
}
.hero-search-input:focus,
.hero-search-input:hover {
    background: transparent !important;
    background-color: transparent !important;
}

/* ============================================================
   Count Chips（数量选择）
   ============================================================ */
.count-chip {
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--color-border-default);
    background: var(--color-bg-surface);
    color: var(--color-text-secondary);
    transition: var(--transition-normal);
}
.count-chip:hover {
    border-color: var(--color-brand-border);
    color: var(--color-brand-text);
    transform: translateY(-1px);
}
.count-chip.active {
    background: var(--color-brand-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px var(--color-brand-bg-hover);
}

/* ============================================================
   Name Cards — 取名结果卡片
   ============================================================ */
.name-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-xl);
    padding: 24px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.name-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--color-brand-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.name-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-emphasis);
}
.name-card:hover::before { opacity: 1; }

.name-title {
    font-size: 28px;
    font-weight: 800;
    background: var(--color-brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    margin-bottom: 4px;
}

.name-pinyin {
    font-size: 12px;
    color: var(--color-text-tertiary);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.score-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}
.score-high { background: var(--color-success-bg); color: var(--color-success); }
.score-mid  { background: var(--color-warning-bg); color: var(--color-warning); }
.score-low  { background: var(--color-error-bg);  color: var(--color-error); }

.name-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 12px 0;
}

.name-slogan {
    font-size: 13px;
    color: var(--color-brand-text);
    font-weight: 500;
    font-style: italic;
    padding: 8px 12px;
    background: var(--color-brand-bg);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-brand-border);
}

.name-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: var(--color-accent-indigo-bg);
    color: var(--color-accent-indigo-text);
    margin: 2px;
}

.name-categories {
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   Report Blocks — 品牌诠释模块
   ============================================================ */
.report-block {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    transition: var(--transition-normal);
}
.report-block:hover {
    background: var(--color-bg-surface-hover);
    box-shadow: var(--shadow-sm);
}

.report-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.report-title i {
    color: var(--color-brand-primary);
    font-size: 14px;
}

.report-content {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.85;
}

.report-value-chip {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    background: var(--color-brand-bg);
    color: var(--color-brand-text);
    border: 1px solid var(--color-brand-border);
    margin: 4px;
    transition: var(--transition-normal);
}
.report-value-chip:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.report-scene-chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    background: var(--color-warning-bg);
    color: var(--color-warning);
    border: 1px solid var(--color-brand-border);
    margin: 4px;
}

/* ============================================================
   Loading
   ============================================================ */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--color-hero-overlay-bg);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    gap: 20px;
}
.loading-dots {
    display: flex;
    gap: 8px;
}
.loading-dots span {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--color-brand-primary);
    animation: bounce 1.4s infinite ease-in-out both;
}
.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0; }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}
.loading-text {
    font-size: 15px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--color-text-tertiary);
}
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-state div { font-size: 15px; }

/* ============================================================
   Toast
   ============================================================ */
.toast {
    position: fixed;
    top: 24px; left: 0; right: 0;
    margin: 0 auto;
    width: fit-content;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    z-index: 99999;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}
.toast-success { background: rgba(34,197,94,0.92); color: white; }
.toast-error   { background: rgba(239,68,68,0.92); color: white; }
@keyframes toastIn  { from { transform: translateY(-16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; } }

/* ============================================================
   Section Headers — 结果区域标题栏
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-icon {
    width: 28px; height: 28px;
    border-radius: var(--radius-sm);
    background: var(--color-brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.section-icon i {
    color: rgba(255,255,255,0.95);
    font-size: 12px;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.4));
}
.section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text-primary);
}
.section-subtitle {
    font-size: 13px;
    color: var(--color-text-tertiary);
    padding-left: 38px;
    margin-bottom: 16px;
}

/* ============================================================
   Hero — 首屏（深色通栏）
   ============================================================ */
.hero-header-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.hero-header-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: transparent;
    z-index: 0;
}
.hero-header-bg::before {
    content: '';
    position: absolute;
    top: -60px; right: -40px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--color-hero-glow1) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-header-bg::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 450px; height: 450px;
    background: radial-gradient(circle, var(--color-hero-glow2) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}
#particleCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}
.hero-header-bg .ring-deco {
    position: absolute;
    border: 1px solid var(--color-hero-ring);
    border-radius: 50%;
    pointer-events: none;
}
.hero-nav {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--color-hero-nav-border);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding: 0;
    min-height: calc(100vh - 64px - 80px - 80px);
}

/* Hero Tabs */
.hero-tab.active {
    background: var(--color-brand-bg) !important;
    color: var(--color-brand-text) !important;
}

/* Hero Search Box */
.hero-search-box {
    max-width: 680px;
    margin: 0 auto;
}
.hero-search-inner {
    display: flex;
    align-items: center;
    background: var(--color-hero-search-bg);
    border: 1px solid var(--color-hero-search-border);
    border-radius: 14px;
    padding: 6px 6px 6px 16px;
    backdrop-filter: blur(12px);
    transition: var(--transition-normal);
    width: 100%;
}
.hero-search-inner:focus-within {
    background: rgba(255,255,255,0.06);
    border-color: var(--color-hero-search-focus-border);
    box-shadow: var(--shadow-glow);
}
.hero-search-left {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px 6px 0;
    flex-shrink: 0;
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
    position: relative;
}
.hero-search-left:hover {
    background: var(--color-hero-hover-bg);
}

/* Hero Dropdown */
.hero-dropdown-group-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-quaternary, #64748b);
    margin-bottom: 6px;
    padding-left: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-dropdown-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-tertiary);
    margin-bottom: 8px;
    text-align: left;
}
.hero-dropdown-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.hero-dropdown-item {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--color-text-secondary);
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border-default);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    user-select: none;
}
.hero-dropdown-item:hover {
    background: var(--color-brand-bg-hover);
    color: var(--color-text-primary);
    border-color: var(--color-brand-border);
}
.hero-dropdown-item.active {
    background: var(--color-brand-bg-hover);
    color: var(--color-brand-primary);
    border-color: var(--color-brand-border);
}
.hero-dropdown-item[data-desc] {
    position: relative;
}
.hero-dropdown-item[data-desc]::after {
    content: attr(data-desc);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: var(--color-hero-dropdown-bg);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border-emphasis);
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 200;
}
.hero-dropdown-item[data-desc]:hover::after {
    opacity: 1;
}


.hero-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 520px;
    background: var(--color-hero-dropdown-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--color-border-emphasis);
    border-radius: var(--radius-lg);
    padding: 16px;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    animation: dropIn 0.2s ease;
}
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-search-left:hover .hero-dropdown,
.hero-dropdown:hover {
    display: block;
}

.hero-search-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--color-hero-input-text) !important;
    min-width: 0;
    width: auto;
}
.hero-search-input::placeholder {
    color: var(--color-text-placeholder);
}
.hero-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--color-brand-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    flex-shrink: 0;
    white-space: nowrap;
}
.hero-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--color-brand-border);
}

/* ============================================================
   Plan Confirm Area — 全案确认引导
   ============================================================ */
.plan-confirm-area {
    text-align: center;
    padding: 30px 20px;
    margin-top: 16px;
    background: var(--color-brand-bg);
    border: 1px dashed var(--color-brand-border);
    border-radius: var(--radius-lg);
}
.plan-confirm-text {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

/* ============================================================
   Card Action Bar — 卡片底部操作栏
   ============================================================ */
.card-action-bar {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border-subtle);
}

/* ============================================================
   Page Footer — 页面底部
   ============================================================ */
.page-footer {
    text-align: center;
    padding: 20px 0;
    background: var(--color-bg-base);
}


/* ============================================================
   Nav Buttons — 导航栏右侧按钮
   ============================================================ */
.nav-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-hero-input-text);
    background: var(--color-hero-search-bg);
    border: 1px solid var(--color-hero-search-border);
    backdrop-filter: blur(12px);
    transition: var(--transition-normal);
}
.nav-auth-btn:hover {
    background: var(--color-brand-bg);
    border-color: var(--color-brand-border);
    color: var(--color-brand-primary);
    transform: translateY(-1px);
}

.nav-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    font-size: 16px;
    cursor: pointer;
    color: var(--color-hero-input-text);
    background: var(--color-hero-search-bg);
    border: 1px solid var(--color-hero-search-border);
    backdrop-filter: blur(12px);
    transition: var(--transition-normal);
}
.nav-theme-toggle:hover {
    background: var(--color-brand-bg);
    border-color: var(--color-brand-border);
    color: var(--color-brand-primary);
    transform: translateY(-1px);
}

/* ============================================================
   Modal / Overlay — 弹窗
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalOverlayIn 0.25s ease;
}
.modal-overlay.closing {
    animation: modalOverlayOut 0.2s ease forwards;
}
@keyframes modalOverlayIn  {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes modalOverlayOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.modal-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-xl);
    padding: 0;
    max-width: 380px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: modalCardIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.modal-card.closing {
    animation: modalCardOut 0.2s ease forwards;
}
@keyframes modalCardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes modalCardOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(10px) scale(0.97); }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--color-brand-bg);
    border-bottom: 1px solid var(--color-brand-border);
}
.modal-header i {
    font-size: 18px;
    color: var(--color-brand-primary);
    flex-shrink: 0;
}
.modal-header-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-brand-primary);
    letter-spacing: 0.5px;
}

.modal-body {
    padding: 28px 28px 24px;
    text-align: center;
}
.modal-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}
.modal-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.modal-footer {
    padding: 0 28px 24px;
    display: flex;
    justify-content: center;
}
.modal-btn-close {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 32px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-brand-border);
    color: var(--color-brand-primary);
    transition: var(--transition-normal);
}
.modal-btn-close:hover {
    background: var(--color-brand-bg-hover);
    border-color: var(--color-brand-primary);
    color: var(--color-brand-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .name-title { font-size: 22px; letter-spacing: 2px; }
    .name-card { padding: 18px; }
    .hero-title { font-size: 2rem !important; }
    .hero-dropdown { width: 90vw; }
}
