/* ============================================================
 * 百昔心理 - 人生机遇敏感度测评
 * Cosmic Glass 2.0 · 全局样式表
 * 设计方向：暗夜深空 + 精致玻璃态 + 柔光金芒
 * ============================================================ */

/* =================== 1. CSS Variables =================== */
:root {
    /* 核心色 */
    --gold: #fbbf24;
    --gold-dark: #f59e0b;
    --gold-light: #fde68a;
    --gold-glow: rgba(251, 191, 36, 0.35);
    --gold-glow-sm: rgba(251, 191, 36, 0.15);

    /* 四维度色 */
    --recog: #f59e0b;
    --recog-light: #fbbf24;
    --recog-bg: rgba(245, 158, 11, 0.1);
    --decis: #38bdf8;
    --decis-light: #7dd3fc;
    --decis-bg: rgba(56, 189, 248, 0.1);
    --exec: #34d399;
    --exec-light: #6ee7b7;
    --exec-bg: rgba(52, 211, 153, 0.1);
    --review: #a78bfa;
    --review-light: #c4b5fd;
    --review-bg: rgba(167, 139, 250, 0.1);

    /* 背景 & 文字 */
    --bg: #08080f;
    --bg-2: #0d0d18;
    --bg-card: rgba(15, 15, 25, 0.88);
    --bg-card-hover: rgba(20, 20, 32, 0.92);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(251, 191, 36, 0.18);
    --border-light: rgba(255, 255, 255, 0.07);
    --border-gold: rgba(251, 191, 36, 0.35);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.62);
    --text-subtle: rgba(255, 255, 255, 0.38);

    /* 阴影 */
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 6px 28px rgba(251, 191, 36, 0.28);
    --shadow-gold-lg: 0 12px 48px rgba(251, 191, 36, 0.4);
    --glow-gold: 0 0 40px rgba(251, 191, 36, 0.4);
    --glow-gold-sm: 0 0 20px rgba(251, 191, 36, 0.25);

    /* 圆角 */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 24px;

    /* 过渡 */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =================== 2. Reset & Base =================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 滚动条 */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(251, 191, 36, 0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(251, 191, 36, 0.45); }

/* Selection */
::selection { background: rgba(251, 191, 36, 0.3); color: var(--gold-light); }

/* 焦点 */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
    padding: 72px 18px 60px;
}

/* =================== 3. Background =================== */
.cosmic-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(251, 191, 36, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(167, 139, 250, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 10% 70%, rgba(56, 189, 248, 0.03) 0%, transparent 50%),
        var(--bg);
    overflow: hidden;
}

/* 星点 */
.cosmic-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 60%, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 30% 50%, rgba(251, 191, 36, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 40%, rgba(255, 255, 255, 0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 85%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 85% 15%, rgba(167, 139, 250, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 15% 85%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 90%, rgba(255, 255, 255, 0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 5% 45%, rgba(255, 255, 255, 0.2) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 55% 55%, rgba(251, 191, 36, 0.35) 0%, transparent 100%);
}

/* 光晕 */
.cosmic-bg::after {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    filter: blur(40px);
    animation: ambientPulse 6s ease-in-out infinite;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* =================== 4. Page Transitions =================== */
.page {
    display: none;
    animation: pageIn 0.45s var(--ease-out) both;
}
.page.active { display: block; }

@keyframes pageIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =================== 5. Navigation =================== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(8, 8, 15, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.05); */
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.65);
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s var(--ease-out);
}
.nav-btn i { font-size: .88rem; }
.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.nav-btn.primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-color: transparent;
    color: #08080f;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.35);
}
.nav-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

/* =================== 6. Home Page =================== */
.home-wrap {
    text-align: center;
    padding-top: 60px;
}

/* Hero */
.hero {
    margin-bottom: 28px;
    position: relative;
}
.hero::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 18px auto 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    padding: 5px 16px;
    border-radius: 30px;
    font-size: .8rem;
    font-weight: 700;
    color: #08080f;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
    animation: fadeDown 0.8s var(--ease-spring) both;
}

.title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.22;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(251, 191, 36, 0.5));
    margin-bottom: 10px;
    animation: fadeUp 0.9s var(--ease-spring) 0.1s both;
}

.subtitle {
    font-size: .85rem;
    color: var(--text-subtle);
    letter-spacing: 2px;
    animation: fadeUp 0.7s var(--ease-out) 0.3s both;
}

/* 四维图标横排 */
.dim-icons {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 16px;
    animation: fadeUp 0.7s var(--ease-out) 0.45s both;
}
.dim-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.dim-icon i {
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
}
.dim-icon span { font-size: .65rem; color: var(--text-subtle); letter-spacing: 0.5px; }
.dim-icon.recog i { color: var(--recog); background: var(--recog-bg); }
.dim-icon.decis i { color: var(--decis); background: var(--decis-bg); }
.dim-icon.exec i { color: var(--exec); background: var(--exec-bg); }
.dim-icon.review i { color: var(--review); background: var(--review-bg); }

/* 简介 */
.intro {
    background: var(--bg-card);
    border: 1px solid rgba(251, 191, 36, 0.12);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    margin-bottom: 24px;
    text-align: left;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.7s var(--ease-out) 0.5s both;
}
.intro::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.4), transparent);
}
.intro-text {
    font-size: .9rem;
    line-height: 1.85;
    color: var(--text-muted);
}
.intro-text strong { color: var(--gold); font-weight: 600; }

/* 维度导航 */
.dim-nav {
    margin-bottom: 22px;
    animation: fadeUp 0.7s var(--ease-out) 0.6s both;
}
.dim-nav-title {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-subtle);
    margin-bottom: 10px;
}
.dim-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.dim-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 4px 10px;
    border-radius: var(--r-md);
    border: 1px solid;
    transition: all 0.3s var(--ease-out);
    cursor: default;
}
.dim-nav-item::before {
    content: attr(data-label);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 4px;
}
.dim-nav-item i { font-size: 1.25rem; }
.dim-nav-item .q-count { font-size: .62rem; color: var(--text-subtle); margin-top: 2px; }

.dim-nav-item.recog { border-color: rgba(245, 158, 11, 0.28); background: rgba(245, 158, 11, 0.06); }
.dim-nav-item.recog i { color: var(--recog); }
.dim-nav-item.recog::before { color: var(--recog); }
.dim-nav-item.recog:hover { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.55); }

.dim-nav-item.decis { border-color: rgba(56, 189, 248, 0.28); background: rgba(56, 189, 248, 0.06); }
.dim-nav-item.decis i { color: var(--decis); }
.dim-nav-item.decis::before { color: var(--decis); }
.dim-nav-item.decis:hover { background: rgba(56, 189, 248, 0.14); border-color: rgba(56, 189, 248, 0.55); }

.dim-nav-item.exec { border-color: rgba(52, 211, 153, 0.28); background: rgba(52, 211, 153, 0.06); }
.dim-nav-item.exec i { color: var(--exec); }
.dim-nav-item.exec::before { color: var(--exec); }
.dim-nav-item.exec:hover { background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.55); }

.dim-nav-item.review { border-color: rgba(167, 139, 250, 0.28); background: rgba(167, 139, 250, 0.06); }
.dim-nav-item.review i { color: var(--review); }
.dim-nav-item.review::before { color: var(--review); }
.dim-nav-item.review:hover { background: rgba(167, 139, 250, 0.14); border-color: rgba(167, 139, 250, 0.55); }

/* 功能标签 */
.ftags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    animation: fadeUp 0.7s var(--ease-out) 0.7s both;
}
.ftag {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.28);
    padding: 6px 13px;
    border-radius: 20px;
    font-size: .78rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}
.ftag:hover {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.55);
    transform: translateY(-1px);
}

/* 密码框 */
.pw-box {
    max-width: 400px;
    margin: 0 auto 10px;
    background: rgba(12, 12, 20, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--r-xl);
    padding: 30px 28px;
    position: relative;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(251, 191, 36, 0.1);
    animation: fadeUp 0.7s var(--ease-out) 0.8s both;
}
.pw-box::before, .pw-box::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border-color: rgba(251, 191, 36, 0.35);
    border-style: solid;
}
.pw-box::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: var(--r-xl) 0 0 0; }
.pw-box::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 var(--r-xl) 0; }

.pw-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--gold);
    font-size: .92rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.pw-label i { font-size: 1rem; }

.pw-input {
    width: 100%;
    padding: 13px 14px;
    font-size: 1rem;
    background: rgba(5, 5, 12, 0.95);
    border: 1.5px solid rgba(251, 191, 36, 0.18);
    border-radius: var(--r-md);
    color: var(--gold);
    text-align: center;
    margin-bottom: 14px;
    transition: all 0.3s;
    letter-spacing: 3px;
}
.pw-input:focus {
    outline: none;
    border-color: rgba(251, 191, 36, 0.65);
    box-shadow: var(--glow-gold-sm);
}
.pw-input::placeholder { color: rgba(251, 191, 36, 0.22); letter-spacing: 1px; }

.btn-start {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #08080f;
    letter-spacing: 3px;
    transition: all 0.3s var(--ease-out);
    box-shadow: var(--shadow-gold);
}
.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-lg);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}
.btn-start:active { transform: translateY(0); }

.pw-hint {
    font-size: .78rem;
    color: var(--text-subtle);
    margin-top: 12px;
    text-align: center;
    line-height: 1.6;
}
.pw-hint a {
    color: var(--gold);
    text-decoration: none;
}
.pw-hint a:hover { text-decoration: underline; }

/* 维度介绍卡片 */
.fc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    animation: fadeUp 0.7s var(--ease-out) 0.9s both;
}
.fc-card {
    background: var(--bg-card);
    border: 1px solid rgba(251, 191, 36, 0.1);
    border-radius: var(--r-md);
    padding: 14px 12px;
    text-align: center;
    transition: all 0.3s var(--ease-out);
}
.fc-card:hover {
    border-color: rgba(251, 191, 36, 0.35);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-sm);
}
.fc-icon {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 6px;
}
.fc-title {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px;
}
.fc-desc {
    font-size: .68rem;
    color: var(--text-subtle);
    line-height: 1.5;
    margin: 0;
}

/* 颜色变体 */
.fc-card.recog .fc-icon { color: var(--recog); }
.fc-card.recog:hover { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15); }
.fc-card.decis .fc-icon { color: var(--decis); }
.fc-card.decis:hover { border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15); }
.fc-card.exec .fc-icon { color: var(--exec); }
.fc-card.exec:hover { border-color: rgba(245, 158, 11, 0.4); box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15); }
.fc-card.review .fc-icon { color: var(--review); }
.fc-card.review:hover { border-color: rgba(139, 92, 246, 0.4); box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15); }

/* =================== 7. Quiz Page =================== */
.quiz-header {
    text-align: center;
    margin-bottom: 16px;
}

/* 维度指示器 */
.dim-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px solid;
    animation: fadeIn 0.35s var(--ease-out) both;
}
.dim-indicator i { font-size: .82rem; }
.dim-indicator.recog { color: var(--recog); background: var(--recog-bg); border-color: rgba(245, 158, 11, 0.28); }
.dim-indicator.decis { color: var(--decis); background: var(--decis-bg); border-color: rgba(56, 189, 248, 0.28); }
.dim-indicator.exec { color: var(--exec); background: var(--exec-bg); border-color: rgba(52, 211, 153, 0.28); }
.dim-indicator.review { color: var(--review); background: var(--review-bg); border-color: rgba(167, 139, 250, 0.28); }

/* 进度条 */
.prog-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 2px;
}
.prog-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: 10px;
    transition: width 0.5s var(--ease-out);
    position: relative;
}
.prog-fill::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 16px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45));
    border-radius: 0 10px 10px 0;
}
.prog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}
.prog-meta-left, .prog-meta-right { font-size: .72rem; color: var(--text-subtle); }

.qt {
    font-size: 1.55rem;
    color: var(--gold);
    margin-bottom: 4px;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
    animation: fadeUp 0.4s var(--ease-out) 0.1s both;
}
.qt-sub {
    font-size: .78rem;
    color: var(--text-subtle);
    margin-bottom: 10px;
    animation: fadeUp 0.4s var(--ease-out) 0.15s both;
}

/* 题目卡片 */
.q-card {
    background: var(--bg-card);
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: var(--r-lg);
    padding: 24px 20px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: cardSlideIn 0.4s var(--ease-spring) both;
}
@keyframes cardSlideIn {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: translateX(0); }
}
.q-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}

.q-num {
    display: inline-block;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    padding: 3px 11px;
    border-radius: 14px;
    font-size: .72rem;
    color: rgba(251, 191, 36, 0.75);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.q-text {
    font-size: 1.08rem;
    line-height: 1.78;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
}

/* 选项 */
.opts { display: grid; gap: 8px; }
.opt {
    background: var(--bg-glass);
    border: 1.5px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--r-md);
    padding: 12px 14px;
    cursor: pointer;
    font-size: .94rem;
    color: var(--text-muted);
    transition: all 0.28s var(--ease-out);
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.opt:hover {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.35);
    transform: translateX(3px);
    color: rgba(255, 255, 255, 0.9);
}
.opt-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    font-size: .7rem;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.28s;
    font-weight: 600;
    color: var(--text-subtle);
}
.opt:hover .opt-num { background: rgba(251, 191, 36, 0.2); color: var(--gold); }
.opt.selected {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.15);
    color: #fff;
}
.opt.selected .opt-num { background: var(--gold); color: #08080f; font-weight: 800; }

/* 导航按钮 */
.nav-btns { display: flex; gap: 10px; }
.btn-nav {
    flex: 1;
    padding: 12px;
    font-size: .88rem;
    font-weight: 600;
    background: var(--bg-glass);
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    color: var(--text-muted);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.btn-nav:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.btn-next {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-color: transparent;
    color: #08080f;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}
.btn-next:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold-lg);
}

/* =================== 8. Result Page =================== */

/* 结果头部 */
.res-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 20px 28px;
    margin-bottom: 14px;
    border-radius: var(--r-lg);
    background: rgba(15, 15, 25, 0.85);
    border: 1px solid rgba(251, 191, 36, 0.15);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(251, 191, 36, 0.05);
}
.res-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(251, 191, 36, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* 仪表盘 */
.gauge-wrap {
    position: relative;
    display: block;
    margin-bottom: 14px;
}
.gauge {
    width: 130px; height: 130px;
    position: relative;
}
.gauge svg { transform: rotate(-90deg); }
.gauge-bg { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 7; }
.gauge-fill {
    fill: none;
    stroke: url(#gaugeGrad);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 376.99;
    stroke-dashoffset: 376.99;
    transition: stroke-dashoffset 1.4s var(--ease-out) 0.3s;
}
.gauge-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.gauge-text .score {
    font-size: 2.7rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 24px rgba(251, 191, 36, 0.6);
}
.gauge-text .unit { font-size: .82rem; color: rgba(251, 191, 36, 0.5); font-weight: 500; }

/* 类型徽章 */
.res-badge {
    display: inline-block;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #08080f;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
    padding: 8px 22px;
    border-radius: 24px;
    margin-bottom: 8px;
    box-shadow: 0 4px 18px rgba(251, 191, 36, 0.4);
    animation: badgePop 0.6s var(--ease-spring) both;
}
@keyframes badgePop {
    from { opacity: 0; transform: scale(0.8) translateY(-8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.res-level {
    font-size: .72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-subtle);
    animation: fadeIn 0.5s var(--ease-out) 0.4s both;
}

/* 雷达图 */
.radar-wrap {
    padding: 16px 14px;
    margin-bottom: 14px;
    background: rgba(15, 15, 25, 0.85);
    border: 1px solid rgba(251, 191, 36, 0.12);
    border-radius: var(--r-lg);
    position: relative;
    overflow: hidden;
}
.radar-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--recog), var(--decis), var(--exec), var(--review));
}
.radar-title {
    text-align: center;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-subtle);
    margin-bottom: 10px;
}
.radar-canvas { display: flex; justify-content: center; }
#radar-canvas { display: block; max-width: 100%; }

/* 名言卡 */
.quote-card {
    padding: 12px 16px 10px 18px;
    margin-bottom: 14px;
    background: rgba(167, 139, 250, 0.06);
    border-radius: var(--r-md);
    border-left: 3px solid rgba(167, 139, 250, 0.45);
    position: relative;
    animation: fadeUp 0.5s var(--ease-out) 0.6s both;
}
.quote-card::before {
    content: '\201C';
    position: absolute;
    top: 2px; left: 5px;
    font-size: 26px;
    color: rgba(167, 139, 250, 0.22);
    font-family: Georgia, serif;
    line-height: 1;
}
.quote-text {
    font-size: .85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    padding-left: 14px;
    font-style: italic;
    margin-bottom: 5px;
}
.quote-author {
    display: block;
    text-align: right;
    color: rgba(167, 139, 250, 0.5);
    font-size: .75rem;
}

/* 维度分析 */
.dims-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    animation: fadeUp 0.5s var(--ease-out) 0.7s both;
}
.dims-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
}
.dims-header h3 {
    font-size: .88rem;
    font-weight: 600;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 7px;
}
.dims-header h3 i { color: var(--gold); font-size: .95rem; }
.res-rank {
    font-size: .72rem;
    color: var(--text-subtle);
    background: rgba(251, 191, 36, 0.07);
    padding: 3px 9px;
    border-radius: 12px;
}
.dims-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.dim-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-sm);
    padding: 9px 11px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.dim-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
}
.dim-item.recog::before { background: var(--recog); }
.dim-item.decis::before { background: var(--decis); }
.dim-item.exec::before { background: var(--exec); }
.dim-item.review::before { background: var(--review); }
.dim-item:hover { background: rgba(255, 255, 255, 0.05); }

.dim-name {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .78rem;
    color: var(--text-muted);
}
.dim-name i { font-size: .8rem; }
.dim-item.recog .dim-name i { color: var(--recog); }
.dim-item.decis .dim-name i { color: var(--decis); }
.dim-item.exec .dim-name i { color: var(--exec); }
.dim-item.review .dim-name i { color: var(--review); }

.dim-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.dim-score {
    font-size: 1rem;
    font-weight: 800;
}
.dim-item.recog .dim-score { color: var(--recog); }
.dim-item.decis .dim-score { color: var(--decis); }
.dim-item.exec .dim-score { color: var(--exec); }
.dim-item.review .dim-score { color: var(--review); }

.dim-bar-wrap { width: 58px; height: 4px; background: rgba(255, 255, 255, 0.07); border-radius: 2px; overflow: hidden; }
.dim-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 1s var(--ease-out);
}
.dim-item.recog .dim-bar { background: linear-gradient(90deg, var(--recog), var(--recog-light)); }
.dim-item.decis .dim-bar { background: linear-gradient(90deg, var(--decis), var(--decis-light)); }
.dim-item.exec .dim-bar { background: linear-gradient(90deg, var(--exec), var(--exec-light)); }
.dim-item.review .dim-bar { background: linear-gradient(90deg, var(--review), var(--review-light)); }

/* 洞察卡 */
.insight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    animation: fadeUp 0.5s var(--ease-out) 0.8s both;
}
.insight-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--gold-light);
}
.insight-header i { color: var(--gold); }
.res-summary { font-size: .87rem; line-height: 1.85; color: var(--text-muted); margin: 0; }
.res-summary strong { color: var(--gold-light); font-weight: 600; }

/* =================== 9. Report Sections =================== */
.report {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
}
.report:hover { border-color: rgba(251, 191, 36, 0.32); box-shadow: var(--shadow-sm); }
.report::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(251, 191, 36, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .12;
    pointer-events: none;
}
.report { position: relative; }

#report-profile { border-top: 3px solid var(--gold); }
#report-blindspot { border-top: 3px solid #f97356; }
#report-roadmap { border-top: 3px solid var(--exec); }
#report-resources { border-top: 3px solid var(--review); }

#report-blindspot .report-title { color: #fdba9a; }
#report-blindspot .report-title i { color: #f97356; }
#report-roadmap .report-title { color: #86efc1; }
#report-roadmap .report-title i { color: var(--exec); }
#report-resources .report-title { color: #c4b5fd; }
#report-resources .report-title i { color: var(--review); }

.report-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    position: relative;
    z-index: 1;
    font-size: .92rem;
    font-weight: 600;
    color: var(--gold-light);
}
.report-title:hover { background: rgba(251, 191, 36, 0.04); }
.report-title i { color: var(--gold); font-size: .95rem; width: 20px; text-align: center; }
.report-arrow { transition: transform 0.3s; color: var(--text-subtle); font-size: .82rem; }
.report-arrow.open { transform: rotate(180deg); }

.report-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
    padding: 0 18px;
    position: relative;
    z-index: 1;
}
.report-body.open {
    max-height: 3000px;
    padding: 16px 18px 20px;
}
.report-body h3 {
    font-size: .9rem;
    font-weight: 600;
    margin: 14px 0 8px;
    color: var(--gold-light);
    padding-left: 12px;
    position: relative;
}
.report-body h3::before {
    content: '';
    position: absolute;
    left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 14px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    border-radius: 2px;
}
.report-body h3:first-child { margin-top: 6px; }
.report-body p { font-size: .86rem; line-height: 1.85; color: var(--text-muted); margin-bottom: 10px; }
.report-body ul { padding-left: 16px; margin-bottom: 10px; }
.report-body li { font-size: .84rem; line-height: 1.78; color: var(--text-muted); margin-bottom: 5px; }
.report-body li::marker { color: var(--gold); }

/* =================== 10. Action Area =================== */
.action {
    padding: 20px 0 0;
    border-top: 1px solid rgba(251, 191, 36, 0.1);
}
.action-main { margin-bottom: 12px; }

.btn-action {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--r-md);
    cursor: pointer;
    font-size: .95rem;
    font-weight: 700;
    transition: all 0.3s var(--ease-out);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: relative;
    overflow: hidden;
    border: 1.5px solid rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.08);
    color: var(--gold-light);
}
.btn-action::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.06) 0%, transparent 60%);
}
.btn-action:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(251, 191, 36, 0.22);
}
.btn-action i { font-size: 1.2rem; margin-bottom: 2px; position: relative; }
.btn-action span { letter-spacing: 1px; position: relative; }
.btn-action small { font-size: .72rem; font-weight: 400; opacity: .55; position: relative; }

.action-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-restart, .btn-history {
    padding: 12px 14px;
    font-size: .85rem;
    font-weight: 600;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-restart {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    color: #08080f;
    box-shadow: var(--shadow-gold);
}
.btn-restart:hover { transform: translateY(-1px); box-shadow: var(--shadow-gold-lg); }
.btn-history {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
}
.btn-history:hover { background: var(--bg-glass-hover); border-color: rgba(255, 255, 255, 0.15); color: #fff; }

/* =================== 11. Toast =================== */
.toast {
    position: fixed;
    bottom: 72px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.88);
    color: #fff;
    padding: 10px 22px;
    border-radius: 24px;
    font-size: .88rem;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.toast.show { opacity: 1; }

/* =================== 12. Modal =================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 9997;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: linear-gradient(145deg, #1c1c30, #141420);
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: var(--r-xl);
    width: 100%;
    max-width: 440px;
    max-height: 78vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalIn 0.3s var(--ease-out);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(251, 191, 36, 0.06);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.modal-head h3 { font-size: 1rem; color: var(--gold); display: flex; align-items: center; gap: 7px; }
.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}
.modal-close:hover { color: #fff; }
.modal-body {
    padding: 16px 18px;
    overflow-y: auto;
    flex: 1;
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.7;
}
.modal-foot { padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.btn-clear {
    width: 100%;
    padding: 9px;
    font-size: .85rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-sm);
    color: #888;
    transition: all 0.3s;
}
.btn-clear:hover { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.3); color: #ef4444; }

/* 历史记录 */
.history-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--r-md);
    padding: 13px 14px;
    margin-bottom: 9px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s;
}
.history-item:hover { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.05); }
.history-date { font-size: .72rem; color: var(--text-subtle); margin-bottom: 4px; }
.history-score { font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.history-level { font-size: .8rem; color: var(--text-muted); margin-top: 3px; }
.empty-tip { text-align: center; color: var(--text-subtle); padding: 28px; font-size: .88rem; line-height: 1.8; }

/* =================== 13. Poster =================== */
.poster-loading {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(12, 12, 18, 0.92);
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 14px;
    padding: 16px 28px;
    color: var(--gold);
    font-size: .88rem;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 9px;
    box-shadow: var(--shadow-lg);
}

.poster-modal {
    position: fixed;
    inset: 0;
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}
.poster-modal.active { opacity: 1; pointer-events: all; }
.poster-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
}
.poster-container {
    position: relative;
    background: #12121c;
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--r-xl);
    width: 90%;
    max-width: 360px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.poster-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.poster-head h4 { margin: 0; color: var(--gold); font-size: .9rem; font-weight: 600; }
.poster-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
}
.poster-close:hover { color: #fff; }
.poster-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    justify-content: center;
    background: #0a0a12;
}
.poster-img { width: 100%; max-width: 300px; border-radius: 8px; display: block; box-shadow: var(--shadow-md); }
.poster-foot { padding: 11px 16px 16px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.poster-tip { margin: 0 0 10px; color: rgba(255, 255, 255, 0.35); font-size: .72rem; text-align: center; line-height: 1.6; }
.poster-tip i { color: var(--gold); margin-right: 2px; }
.poster-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; }
.poster-dl {
    flex: 1; min-width: 110px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #08080f;
    border: none; border-radius: 9px;
    padding: 9px 14px;
    font-size: .85rem; font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s;
}
.poster-dl:hover { opacity: .88; transform: translateY(-1px); }
.poster-copy {
    flex: 1; min-width: 95px;
    background: rgba(251, 191, 36, 0.08);
    color: var(--gold);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 9px;
    padding: 9px 14px;
    font-size: .85rem; font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.2s;
}
.poster-copy:hover { background: rgba(251, 191, 36, 0.16); }
.poster-close-btn {
    flex: 1; min-width: 65px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    padding: 9px 14px;
    font-size: .85rem; cursor: pointer;
    transition: background 0.2s;
}
.poster-close-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* 预览弹窗 */
.poster-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.poster-preview-modal.active { opacity: 1; pointer-events: all; }
.poster-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}
.poster-preview-container {
    position: relative;
    width: 90%;
    max-width: 360px;
    max-height: 85vh;
    background: var(--bg-card);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.poster-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.poster-preview-header h4 { margin: 0; color: var(--gold); font-size: .9rem; font-weight: 600; }
.poster-preview-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
}
.poster-preview-close:hover { color: #fff; }
.poster-preview-content {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    text-align: center;
}
.poster-preview-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}
.poster-preview-footer { padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.poster-preview-tip { margin: 0 0 12px; color: rgba(255, 255, 255, 0.35); font-size: .72rem; text-align: center; line-height: 1.5; }
.poster-preview-tip i { color: var(--gold); margin-right: 4px; }
.poster-preview-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.poster-download-btn {
    flex: 1;
    min-width: 100px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .82rem;
    font-weight: 600;
    color: #08080f;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-gold-sm);
}
.poster-download-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.poster-download-btn:active { transform: translateY(0); }
.poster-copy-btn {
    flex: 1;
    min-width: 100px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.2s;
}
.poster-copy-btn:hover { background: rgba(251, 191, 36, 0.16); }
.poster-close-btn {
    flex: 1;
    min-width: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .82rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.poster-close-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* =================== 14. Particles =================== */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* =================== 15. Loading =================== */
.loading-page {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(251, 191, 36, 0.18);
    border-top-color: var(--gold);
    animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =================== 16. Animations =================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =================== 17. Tablet =================== */
@media (max-width: 768px) {
    .container { padding: 60px 14px 40px; }
    .title { font-size: 2rem; }
    .dim-nav-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; }
    .dim-nav-item { padding: 10px 3px 8px; }
    .dim-nav-item::before { font-size: .62rem; }
    .dim-nav-item i { font-size: 1.1rem; }
    .pw-box { padding: 26px 20px; }
    .q-card { padding: 20px 16px; }
    .q-text { font-size: 1.05rem; }
    .dims-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* =================== 18. Mobile =================== */
@media (max-width: 480px) {
    .container { padding: 54px 12px 32px; }

    /* Home */
    .title { font-size: 1.85rem; line-height: 1.25; }
    .subtitle { font-size: .78rem; letter-spacing: 1.5px; }
    .fc-grid { grid-template-columns: 1fr; gap: 8px; }
    .fc-card { padding: 12px 14px; }
    .fc-icon { font-size: 1.2rem; }
    .fc-title { font-size: .88rem; }
    .fc-desc { font-size: .7rem; }
    .dim-icons { gap: 16px; }
    .dim-icon i { width: 30px; height: 30px; font-size: .88rem; }
    .dim-nav-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; }
    .dim-nav-item { padding: 10px 2px 8px; }
    .dim-nav-item::before { font-size: .58rem; }
    .dim-nav-item i { font-size: 1rem; }
    .dim-nav-item .q-count { display: none; }
    .pw-box { padding: 22px 16px; }
    .ftags { margin-bottom: 22px; gap: 6px; }
    .ftag { font-size: .72rem; padding: 5px 10px; }

    /* Quiz */
    .qt { font-size: 1.28rem; }
    .q-card { padding: 18px 14px; margin-bottom: 12px; }
    .q-text { font-size: 1rem; line-height: 1.72; }
    .opt { padding: 10px 12px; font-size: .9rem; }
    .nav-btns { flex-direction: column; gap: 7px; }
    .btn-nav { padding: 10px; font-size: .82rem; }

    /* Result Header */
    .res-header { padding: 30px 14px 22px; margin-bottom: 12px; }
    .gauge-wrap { width: 100px; }
    .gauge { width: 100px; height: 100px; }
    .gauge svg { width: 100%; height: 100%; }
    .gauge-text .score { font-size: 1.8rem; }
    .res-badge { font-size: .85rem; padding: 6px 18px; letter-spacing: 2px; }
    .res-level { font-size: .65rem; letter-spacing: 3px; }

    /* Radar */
    .radar-wrap { padding: 12px 10px; margin-bottom: 12px; }
    .radar-canvas canvas {
        max-width: 340px !important;
        max-height: 340px !important;
        width: 340px !important;
        height: 340px !important;
    }

    /* Quote & Dims */
    .quote-card { margin-bottom: 12px; padding: 10px 14px 8px 16px; }
    .quote-text { font-size: .8rem; padding-left: 12px; }
    .dims-card { padding: 12px 14px; margin-bottom: 12px; }
    .insight-card { padding: 12px 14px; margin-bottom: 12px; }
    .dims-grid { grid-template-columns: 1fr; gap: 6px; }
    .dim-bar-wrap { width: 70px; }

    /* Report */
    .report { margin-bottom: 10px; }
    .report-title { padding: 12px 14px; font-size: .88rem; }
    .report-body.open { padding: 12px 14px 16px; }
    .report-body h3 { font-size: .86rem; }

    /* Action */
    .action { padding-top: 16px; }
    .btn-action { padding: 14px 18px; }
    .action-btns { gap: 8px; }
    .btn-restart, .btn-history { padding: 10px 12px; font-size: .8rem; }

    /* Modal */
    .modal-overlay { padding: 10px; }
    .modal { max-height: 86vh; }
    .modal-head { padding: 13px 14px; }
    .modal-body { padding: 13px 14px; }
    .history-item { padding: 11px 12px; }
    .history-score { font-size: 1.05rem; }

    /* Nav: 移动端隐藏文字，只保留图标 */
    .top-nav { padding: 6px 10px; }
    .top-nav .nav-btn {
        font-size: 0;
        padding: 7px 9px;
        gap: 0;
    }
    .top-nav .nav-btn i { font-size: .92rem; margin: 0; }
    .top-nav .nav-btn.primary { font-size: 0; }
}
/* ============================================
 * 客服组件 - 深色主题覆盖
 * Health模块始终深色背景，覆盖kf.css的浅色默认
 * ============================================ */
@keyframes pulseGreen {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.4); opacity: 0; }
}
.customer-service .service-btn::before {
    animation: pulseGreen 2s ease-in-out infinite;
}

.customer-service .service-popup {
    background: #1a1a2e;
    border-color: var(--color-primary-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.customer-service .service-popup::after {
    background: #1a1a2e;
    border-color: var(--color-primary-border);
}
.customer-service .service-popup-title {
    color: #fff;
}
.customer-service .service-popup-desc {
    color: rgba(255,255,255,0.7);
}
.customer-service .service-popup-tip {
    color: rgba(255,255,255,0.5);
}
.customer-service .service-popup-close {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
}
.customer-service .service-popup-close:hover {
    background: var(--color-primary);
    color: #fff;
}
.customer-service .service-qrcode {
    background: #fff;
    border-color: var(--color-primary-border);
}
.customer-service .service-phone {
    color: rgba(255,255,255,0.6);
}
.customer-service .service-phone a {
    color: var(--color-primary);
}

/* 客服按钮移动端位置 - 避免与底部内容重叠 */
@media (max-width: 640px) {
    .customer-service {
        bottom: 20px;
        right: 16px;
    }
}