/* ============================================
 * 百昔心理 - 亲密关系测评样式
 * 暗色主题 + 玫红色渐变
 * ============================================ */

/* === Design Tokens === */
:root {
    --color-primary: #fb7185;
    --color-primary-dark: #e11d48;
    --color-primary-light: #fda4af;
    --color-bg: #0a0a14;
    --color-bg-card: rgba(20, 20, 30, 0.8);
    --color-border: rgba(251, 113, 133, 0.3);
    --color-text: #ffffff;
    --color-text-muted: #999;
    --color-text-subtle: #6b7280;
    --btn-primary-bg: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --btn-primary-shadow: 0 6px 20px rgba(251, 113, 133, 0.4);
    --btn-secondary-bg: rgba(251, 113, 133, 0.1);
    --accent-glow: rgba(251, 113, 133, 0.35);
    --radius-card: 20px;
    --radius-btn: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

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

            /* 顶部导航 */
            .top-nav {
                    position: fixed;
                    top: 0;
                    left: 0;
                    right: 0;
                    z-index: 1000;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 12px 16px;
                    background: transparent;
                    -webkit-backdrop-filter: blur(10px);
                    backdrop-filter: blur(10px);
            }

            .nav-btn {
                    display: flex;
                    align-items: center;
                    gap: 6px;
                    padding: 8px 14px;
                    border: 1px solid rgba(255, 255, 255, 0.15);
                    border-radius: 20px;
                    background: rgba(255, 255, 255, 0.06);
                    color: rgba(255, 255, 255, 0.75);
                    font-size: 0.85em;
                    font-weight: 500;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    text-decoration: none;
            }

            .nav-btn:hover {
                    background: rgba(255, 255, 255, 0.12);
                    border-color: rgba(167, 139, 250, 0.40);
                    color: #ffffff;
            }

            .nav-btn.primary {
                    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
                    border: none;
                    color: white;
                    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.40);
            }

            .nav-btn.primary:hover {
                    transform: translateY(-2px);
                    box-shadow: 0 6px 20px rgba(167, 139, 250, 0.50);
            }

/* === 通用容器 === */
.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 70px 20px 60px;
}

.page { display: none; animation: fadeIn 0.5s ease;  padding-top: 40px; box-sizing: border-box; /* 防止撑破高度 */ }
.page.active { display: block; }

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

/* === 首页（重构版） === */
.home-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 130px);
}

/* --- 顶部 Hero 区 --- */
.hero-section {
    text-align: center;
    padding-top: 40px;
    margin-bottom: 36px;
}
.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #fb7185, #e11d48);
    padding: 7px 22px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 22px;
    box-shadow: 0 4px 15px rgba(251, 113, 133, 0.35);
    letter-spacing: 0.5px;
}
.brand-badge i { margin-right: 0; }
.main-title {
    font-family: 'STSong', 'SimSun', 'Songti SC', 'STFangsong', serif;
    font-size: 2.4rem;
    background: linear-gradient(135deg, #fda4af, #fb7185, #e11d48);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.25;
    margin-bottom: 12px;
}
.sub-title {
    font-size: 1.05rem;
    color: #999;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* --- 密码区（视觉焦点） --- */
.pw-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    margin-bottom: auto;
}
.pw-card {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 32px 34px;
    background: linear-gradient(165deg, rgba(251, 113, 133, 0.08), rgba(225, 29, 72, 0.04), rgba(20, 20, 35, 0.85));
    border: 1.5px solid rgba(251, 113, 133, 0.28);
    border-radius: 26px;
    backdrop-filter: blur(16px);
    box-shadow:
        0 0 80px rgba(251, 113, 133, 0.12),
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}
.pw-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(251, 113, 133, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.pw-icon-ring {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.2), rgba(225, 29, 72, 0.15));
    border: 1.5px solid rgba(251, 113, 133, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}
.pw-icon-ring i {
    font-size: 1.15rem;
    color: #fb7185;
}

.pw-intro {
    font-size: 0.92rem;
    color: #aaa;
    letter-spacing: 0.3px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.pw-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.05rem;
    background: rgba(10, 10, 20, 0.75);
    border: 1.5px solid rgba(251, 113, 133, 0.25);
    border-radius: 13px;
    color: #fff;
    text-align: center;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    z-index: 1;
}
.pw-input:focus {
    outline: none;
    border-color: #fb7185;
    box-shadow: 0 0 24px rgba(251, 113, 133, 0.2);
    background: rgba(10, 10, 20, 0.9);
}
.pw-input::placeholder {
    color: rgba(251, 113, 133, 0.28);
    letter-spacing: 0;
}

/* 开始测评按钮（重设计） */
.btn-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 0;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(225, 29, 72, 0.4),
        0 0 0 0 rgba(251, 113, 133, 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.btn-start:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 32px rgba(225, 29, 72, 0.5),
        0 0 0 4px rgba(251, 113, 133, 0.08);
    background: linear-gradient(135deg, #fda4af 0%, #fb7185 100%);
}
.btn-start:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 3px 14px rgba(225, 29, 72, 0.4);
}
.btn-start i {
    font-size: 0.95rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

.pw-hint {
    color: #f87171;
    font-size: 0.82rem;
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 1;
}
.password-hint {
    margin: 8px 0 0 0;
    padding: 0;
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}
.password-hint i {
    font-size: 14px;
    color: #fb7185;
}
.password-link {
    color: #fb7185;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed #fb7185;
    transition: all 0.2s;
}
.password-link:hover {
    color: #f43f5e;
    border-bottom-color: #f43f5e;
}

/* --- 底部区域 --- */

/* --- 痛点揭示区 --- */
.pain-section {
    width: 100%;
    padding: 0 16px;
    margin-bottom: 32px;
}
.pain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.pain-card {
    display: flex;
    gap: 12px;
    padding: 16px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s;
}
.pain-card:hover {
    border-color: rgba(251, 113, 133, 0.35);
    background: rgba(251, 113, 133, 0.05);
}
.pain-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(251, 113, 133, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pain-icon i {
    font-size: 1rem;
    color: #fb7185;
}
.pain-text {
    flex: 1;
    min-width: 0;
}
.pain-q {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e2e2;
    line-height: 1.5;
    margin-bottom: 6px;
}
.pain-stat {
    font-size: 0.72rem;
    color: #fb7185;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.pain-cta {
    text-align: center;
    margin-top: 18px;
    padding: 10px;
    color: rgba(251, 113, 133, 0.7);
    font-size: 0.82rem;
    animation: gentleBounce 2s ease-in-out infinite;
}
.pain-cta i {
    margin-right: 6px;
}
@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* --- 密码区信任标签 --- */
.pw-trust {
    display: flex;
    gap: 16px;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.pw-trust span {
    font-size: 0.72rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pw-trust i {
    font-size: 0.68rem;
    color: rgba(251, 113, 133, 0.5);
}

/* --- 底部区域 --- */
.home-footer {
    width: 100%;
    text-align: center;
    padding: 28px 20px 20px;
}
.dim-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.dtag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.82rem;
    color: #999;
    transition: all 0.25s;
}
.dtag:hover {
    border-color: rgba(251, 113, 133, 0.35);
    color: #ccc;
    background: rgba(251, 113, 133, 0.06);
}
.dtag i { font-size: 0.78rem; }

/* === 题目页 === */
h1.qt {
    font-family: 'STSong', 'SimSun', 'Songti SC', 'STFangsong', serif;
    font-size: 2rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 0 0 25px var(--accent-glow);
}
.qt-sub { text-align: center; color: var(--color-text-muted); margin-bottom: 25px; }
.prog-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 28px;
    overflow: hidden;
}
.prog-fill {
    height: 100%;
    background: var(--btn-primary-bg);
    border-radius: 10px;
    transition: width 0.5s;
}

/* Question Card */
.q-card {
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 38px;
    margin-bottom: 24px;
}
.q-num {
    display: inline-block;
    background: var(--btn-primary-bg);
    padding: 5px 16px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 18px;
}
.q-text {
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 28px;
}

/* Options */
.options { display: grid; gap: 14px; }
.opt {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(251, 113, 133, 0.2);
    border-radius: 12px;
    padding: 18px 22px;
    cursor: pointer;
    font-size: 1.05rem;
    transition: all 0.3s;
    position: relative;
}
.opt:hover {
    background: rgba(251, 113, 133, 0.1);
    border-color: var(--color-primary);
    transform: translateX(5px);
}
.opt.selected {
    background: rgba(251, 113, 133, 0.2);
    border-color: var(--color-primary);
    box-shadow: 0 0 18px var(--accent-glow);
}

/* Nav Buttons (量表场景优化版) */
.nav-btns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}
.nav-progress {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-subtle);
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 52px;
    text-align: center;
}
.btn-nav {
    flex: 1;
    padding: 13px 20px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-prev {
    background: rgba(55, 65, 81, 0.5);
    color: #9ca3af;
}
.btn-prev:hover {
    background: rgba(75, 85, 99, 0.7);
    color: #d1d5db;
}
.btn-next {
    background: rgba(251, 113, 133, 0.12);
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(251, 113, 133, 0.1);
}
.btn-next:hover {
    background: var(--btn-primary-bg);
    color: #fff;
    box-shadow: 0 4px 20px rgba(251, 113, 133, 0.3);
}
.btn-finish {
    background: var(--btn-primary-bg);
    color: #fff;
    box-shadow: 0 4px 16px rgba(251, 113, 133, 0.25);
    animation: finishPulse 2.5s ease-in-out infinite;
}
.btn-finish:hover {
    box-shadow: 0 6px 24px rgba(251, 113, 133, 0.4);
    transform: translateY(-2px);
}
@keyframes finishPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(251, 113, 133, 0.25); }
    50%       { box-shadow: 0 4px 24px rgba(251, 113, 133, 0.45); }
}

/* === 结果页 === */
.res-header {
    text-align: center;
    padding: 30px;
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-card);
    margin-bottom: 28px;
}
.res-title {
    font-family: 'STSong', 'SimSun', 'Songti SC', 'STFangsong', serif;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.res-sub { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: 18px; }
.score-big {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: 0 0 30px var(--accent-glow);
}
.score-lbl { color: #aaa; font-size: 1rem; margin-top: 6px; }

/* Result Sections */
.res-section {
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 35px;
    margin-bottom: 26px;
}
.sec-title {
    font-family: 'STSong', 'SimSun', 'Songti SC', 'STFangsong', serif;
    font-size: 1.7rem;
    color: var(--color-primary);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Dimension Items */
.dim-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 14px;
    border-left: 4px solid var(--color-primary);
    margin-bottom: 18px;
}
.dim-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.dim-name { font-size: 1.1rem; font-weight: 600; }
.dim-type { font-size: 1rem; color: var(--color-primary); font-weight: 600; }
.dim-score {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 6px 0;
}
.dim-desc { color: #b0b0b0; font-size: 0.95rem; line-height: 1.7; margin-bottom: 12px; }
.pb { height: 9px; background: rgba(255, 255, 255, 0.08); border-radius: 8px; overflow: hidden; }
.pb-fill {
    height: 100%;
    background: var(--btn-primary-bg);
    border-radius: 8px;
    transition: width 0.6s;
}

/* Analysis / Theory / Action Cards */
.ana-mod {
    background: rgba(255, 255, 255, 0.02);
    padding: 24px;
    border-radius: 14px;
    border: 1px solid rgba(251, 113, 133, 0.18);
    margin-bottom: 16px;
}
.ana-mod-title { font-size: 1.2rem; color: var(--color-primary); font-weight: 600; margin-bottom: 12px; }
.ana-mod-text { color: #c0c0c0; font-size: 0.97rem; line-height: 1.85; }

.theory-item {
    padding: 22px;
    border-radius: 14px;
    border-left: 4px solid var(--color-primary);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 16px;
}
.theory-title { font-size: 1.1rem; color: var(--color-primary); font-weight: 600; margin-bottom: 10px; }
.theory-desc { color: #b0b0b0; font-size: 0.95rem; line-height: 1.7; }
.theory-src { color: var(--color-primary); font-size: 0.85rem; margin-top: 8px; font-style: italic; }

.action-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 14px;
    border: 1px solid rgba(251, 113, 133, 0.18);
    margin-bottom: 16px;
    transition: all 0.3s;
}
.action-item:hover {
    transform: translateY(-3px);
    border-color: rgba(251, 113, 133, 0.45);
    box-shadow: 0 8px 25px rgba(251, 113, 133, 0.18);
}
.action-title {
    font-size: 1.15rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.action-num {
    background: var(--btn-primary-bg);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.action-text { color: #b0b0b0; font-size: 0.95rem; line-height: 1.75; }

/* Quote Box */
.quote-box {
    text-align: center;
    padding: 38px;
    background: rgba(251, 113, 133, 0.05);
    border: 2px solid rgba(251, 113, 133, 0.25);
    border-radius: 18px;
    margin-top: 26px;
}
.quote-t {
    font-family: 'STSong', 'SimSun', 'Songti SC', 'STFangsong', serif;
    font-size: 1.45rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 18px;
    font-style: italic;
}
.quote-a { color: var(--color-primary); font-size: 1.05rem; }

/* Restart Button */
.btn-restart {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    background: var(--btn-primary-bg);
    color: #fff;
    letter-spacing: 2px;
    transition: all 0.3s;
    margin-top: 28px;
    font-family: inherit;
}
.btn-restart:hover { transform: translateY(-3px); box-shadow: var(--btn-primary-shadow); }

/* === 移动端适配 === */
@media (max-width: 768px) {
    .main-title { font-size: 1.75rem; }
    .sub-title { font-size: 0.92rem; }
    .hero-section { padding-top: 24px; margin-bottom: 28px; }
    .brand-badge { padding: 6px 18px; font-size: 0.8rem; margin-bottom: 16px; }
    .pw-card { padding: 32px 24px 28px; border-radius: 20px; }
    .pw-icon-ring { width: 44px; height: 44px; }
    .pw-input { padding: 13px 16px; font-size: 1rem; letter-spacing: 2px; }
    .btn-start { padding: 14px 0; font-size: 1rem; letter-spacing: 1.5px; }
    .home-footer { padding: 20px 14px 16px; }
    .dtag { padding: 6px 12px; font-size: 0.76rem; }
    .fc-grid { grid-template-columns: 1fr; }
    .q-card { padding: 26px 20px; }
    .q-text { font-size: 1.15rem; }
    .nav-btns { gap: 8px; }
    .btn-nav { padding: 12px 14px; font-size: 13.5px; }
    .nav-progress { font-size: 12px; min-width: 44px; }
    .res-section { padding: 24px 18px; }
    .container { padding: 72px 14px 40px; }
}


/* ============================================
 * 亲密关系测评 - 结果页与交互样式补充
 * ============================================ */

/* --- 结果页通用 --- */
.result-header {
    text-align: center;
    margin-bottom: 32px;
}
.result-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fb7185, #e11d48);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 14px;
}
.result-title {
    font-family: 'STSong', 'SimSun', 'Songti SC', serif;
    font-size: 2rem;
    background: linear-gradient(135deg, #fda4af, #fb7185, #e11d48);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.result-sub {
    color: #999;
    font-size: 0.95rem;
}
.result-card {
    background: rgba(20, 20, 35, 0.85);
    border: 1px solid rgba(251, 113, 133, 0.2);
    border-radius: 20px;
    padding: 28px 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}
.section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center; /* 这行让文字水平居中 */
    gap: 8px;
    width: 100%; /* 确保占满父级宽度，居中生效 */
}
.section-title i { color: #fb7185; }

/* --- 综合评分卡 --- */
.score-card {
    display: flex;
    align-items: center;
    gap: 28px;
}
.score-ring-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}
.score-ring {
    transform: rotate(-90deg);
}
.score-ring .ring-bg {
    fill: none;
    stroke: rgba(251, 113, 133, 0.15);
    stroke-width: 10;
}
.score-ring .ring-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dashoffset: 389; /* 2*PI*62 */
}
.score-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    text-align: center;
}
.score-num {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #fb7185;
    line-height: 1;
}
.score-label {
    font-size: 0.78rem;
    color: #999;
}
.score-info {
    flex: 1;
}
.score-level {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.score-desc {
    color: #aaa;
    font-size: 0.88rem;
    line-height: 1.7;
}

/* --- 名言 --- */
.quote-section {
    position: relative;
    text-align: center;
    padding: 18px 20px 14px;
    margin: 0 0 8px;
    background: linear-gradient(135deg, rgba(251,113,133,0.06), rgba(168,85,247,0.06));
    border-radius: 16px;
    border: 1px solid rgba(251,113,133,0.12);
}
.quote-mark {
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: 2rem;
    opacity: 0.7;
}
.quote-text {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.75;
    font-style: italic;
    margin: 0 0 10px;
}
.quote-author {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    text-align: right;
}

/* --- 四维度分析 --- */
.dims-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dim-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
}
.dim-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.dim-icon { font-size: 1.2rem; }
.dim-name { font-weight: 600; font-size: 0.95rem; color: #fff; flex: 1; }
.dim-score { font-weight: 700; font-size: 1rem; }
.dim-bar-wrap {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.dim-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.dim-level {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.dim-desc {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.5;
}

/* --- 深度关系解读 --- */
.deep-card { border-color: rgba(251, 113, 133, 0.35); }
.deep-sub { font-size: 0.85rem; color: #888; margin-bottom: 16px; }
.deep-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.deep-item {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 12px 14px;
    transition: background 0.3s;
}
.deep-item:hover { background: rgba(255,255,255,0.06); }
.deep-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-left: 10px;
}
.deep-icon { font-size: 1rem; }
.deep-name { font-weight: 600; color: #eee; font-size: 0.95rem; }
.deep-level {
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: auto;
}
.deep-text {
    font-size: 0.88rem;
    color: #bbb;
    line-height: 1.85;
    padding-left: 10px;
}

/* --- 成长建议 --- */
.advice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.advice-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.advice-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.advice-text {
    flex: 1;
    font-size: 0.88rem;
    color: #bbb;
    line-height: 1.85;
}
.advice-text strong { color: #fff; }
.advice-item {
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 10px 14px;
    transition: background 0.3s;
}
.advice-item:hover { background: rgba(255,255,255,0.05); }

/* --- 行动计划 --- */
.action-card { border-color: rgba(74, 222, 128, 0.3); }
.action-sub { font-size: 0.85rem; color: #888; margin-bottom: 16px; }
.action-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.action-dim {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 12px 14px;
}
.action-dim-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.action-dim-icon { font-size: 1rem; }
.action-dim-name { font-weight: 600; color: #eee; font-size: 0.95rem; }
.action-task {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.action-task:last-child { border-bottom: none; }
.action-week {
    font-size: 0.75rem;
    font-weight: 700;
    border: 1.5px solid;
    border-radius: 20px;
    padding: 2px 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.action-task-text {
    flex: 1;
    font-size: 0.88rem;
    color: #bbb;
    line-height: 1.6;
}
.action-check {
    cursor: pointer;
    font-size: 1.2rem;
    color: #555;
    transition: color 0.2s;
    flex-shrink: 0;
}
.action-check:hover { color: #4ade80; }
.action-check.checked { color: #4ade80; }

/* --- 可信度分析（网格卡片重构版）--- */
.acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.acc-header .section-title { margin-bottom: 0; }
.acc-score-badge {
    display: flex;
    align-items: baseline;
    gap: 2px;
    background: linear-gradient(135deg, rgba(244,114,182,0.15), rgba(232,121,249,0.15));
    border: 1px solid rgba(244,114,182,0.3);
    border-radius: 20px;
    padding: 4px 12px;
}
.acc-badge-num {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f472b6;
    line-height: 1;
}
.acc-badge-unit {
    font-size: 0.72rem;
    color: #f472b6;
    opacity: 0.8;
}

/* 网格布局 */
.acc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.acc-grid-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px 10px 10px;
    text-align: center;
    transition: background 0.3s;
}
.acc-grid-item:hover { background: rgba(255,255,255,0.06); }
.acc-gi-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
}
.acc-gi-icon {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f472b6, #e879f9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.acc-gi-label {
    font-size: 0.8rem;
    color: #ccc;
    font-weight: 500;
}
.acc-gi-bar-wrap {
    height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}
.acc-gi-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.acc-gi-bar.green { background: linear-gradient(90deg, #10b981, #34d399); }
.acc-gi-bar.yellow { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.acc-gi-bar.red { background: linear-gradient(90deg, #ef4444, #f87171); }
.acc-gi-score {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}
.acc-gi-score small {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.7;
    margin-left: 1px;
}
.acc-gi-score.green { color: #10b981; }
.acc-gi-score.yellow { color: #f59e0b; }
.acc-gi-score.red { color: #ef4444; }

/* 维度雷达图 */
.dim-radar-wrap { padding: 10px 0; display: flex; flex-direction: column; align-items: center; }
.dim-radar-divider {
    width: 80px;
    height: 2px;
    margin: 6px auto 12px;
    background: linear-gradient(to right, rgba(244,114,182,0.1), rgba(232,121,249,0.9), rgba(244,114,182,0.1));
    border-radius: 2px;
}
.dim-radar-wrap canvas { display: block; max-width: 100%; }

/* --- 科学理论基础 --- */
.ref-card { border-color: rgba(168,85,247,0.25); }
.ref-intro { font-size: 0.85rem; color: #888; margin-bottom: 16px; }
.ref-list { display: flex; flex-direction: column; gap: 16px; }
.ref-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    padding: 14px 16px;
}
.ref-tag {
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1.5px solid currentColor;
    border-radius: 20px;
    padding: 2px 10px;
    margin-top: 2px;
}
.ref-body { flex: 1; }
.ref-text {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.6;
    margin: 0 0 4px;
}
.ref-text em { font-style: italic; }
.ref-desc {
    font-size: 0.82rem;
    color: #aaa;
    line-height: 1.65;
    margin: 6px 0 0;
    padding-left: 10px;
    border-left: 2px solid rgba(168,85,247,0.3);
}

/* --- 分享区域 --- */
.share-tips {
    text-align: center;
    padding: 12px 0;
    font-size: 0.88rem;
    color: #999;
    line-height: 1.6;
}
.share-tips i { color: #fb7185; margin-right: 6px; }

/* --- 按钮 --- */
.btn-restart {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #fb7185, #e11d48);
    color: #fff;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-top: 20px;
}
.btn-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 113, 133, 0.4);
}

/* --- 历史记录 --- */
.history-item {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(249, 108, 159, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    margin: 8px 0;
    border-radius: 12px;
}
.history-item:hover {
    background: rgba(249, 108, 159, 0.1);
    transform: translateX(4px);
}
.history-item:last-child { border-bottom: none; margin-bottom: 0; }

/* 顶部：日期 + 等级标签 */
.hist-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.hist-date { font-size: 0.78rem; color: #999; }
.hist-level-badge {
    font-size: 0.72rem; font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(249, 108, 159, 0.15);
    color: #f96c9f;
}

/* 中间：总分 + 可信度 */
.hist-mid {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}
.hist-score-big { font-size: 1.05rem; color: #fff; }
.hist-score-big strong { font-size: 1.3rem; color: #f96c9f; }
.hist-acc-badge {
    font-size: 0.75rem; color: #aaa;
    background: rgba(167, 139, 250, 0.1);
    padding: 3px 10px;
    border-radius: 8px;
    border: 1px solid rgba(167, 139, 250, 0.2);
}
.hist-acc-badge strong { color: #a78bfa; }

/* 底部：4维度迷你条 */
.hist-dims { display: flex; flex-direction: column; gap: 4px; }
.hist-dim-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.hist-dim-label {
    font-size: 0.7rem; color: #777;
    width: 28px;
    text-align-last: justify;
}
.hist-dim-bar-wrap {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}
.hist-dim-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}
.hist-dim-val {
    font-size: 0.68rem;
    width: 26px;
    text-align: right;
    font-weight: 600;
}

/* 箭头 */
.hist-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-size: 0.75rem;
}
.empty-tip {
    text-align: center;
    color: #888;
    padding: 40px 0;
    font-size: 0.9rem;
}
.empty-tip i { display: block; font-size: 2.5rem; margin-bottom: 12px; color: #666; }

/* --- Modal --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-content {
    background: linear-gradient(145deg, #1f1f35 0%, #1a1a2e 100%);
    border: 1px solid rgba(249, 108, 159, 0.25);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(249, 108, 159, 0.1);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(249, 108, 159, 0.15);
    flex-shrink: 0;
    background: rgba(249, 108, 159, 0.05);
}
.modal-header h3 { color: #fff; font-size: 1rem; display: flex; align-items: center; gap: 8px; margin: 0; }
.modal-header h3 i { color: #f96c9f; }
.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s;
}
.modal-close:hover { color: #f96c9f; transform: rotate(90deg); }
.modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 3px; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(249, 108, 159, 0.3); border-radius: 3px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: rgba(249, 108, 159, 0.5); }
.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid rgba(249, 108, 159, 0.15);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.2);
}
.btn-secondary {
    background: rgba(249, 108, 159, 0.1);
    color: #f96c9f;
    border: 1px solid rgba(249, 108, 159, 0.25);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover {
    background: rgba(251, 113, 133, 0.2);
    border-color: rgba(251, 113, 133, 0.5);
}
.btn-danger {
    background: transparent;
    color: rgba(249, 108, 159, 0.7);
    border: 1px solid rgba(249, 108, 159, 0.25);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-danger:hover {
    background: rgba(249, 108, 159, 0.1);
    border-color: rgba(249, 108, 159, 0.4);
    color: #f96c9f;
}
.confirm-modal-content {
    max-width: 380px;
}

/* --- 测评完成弹窗 --- */
.completion-modal {
    max-width: 420px;
    text-align: center;
    padding: 40px 24px 28px;
    position: relative;
}
.completion-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 50%;
}
.completion-close:hover {
    color: #f96c9f;
    background: rgba(249, 108, 159, 0.1);
    transform: rotate(90deg);
}
.completion-icon {
    font-size: 64px;
    color: #4ea37a;
    margin-bottom: 20px;
    animation: completion-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes completion-pop {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.completion-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
}
.completion-time {
    font-size: 15px;
    color: #999;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.completion-time i { color: #666; }
.completion-time strong { color: #f96c9f; font-size: 18px; }
.completion-desc {
    font-size: 14px;
    color: #aaa;
    margin: 0 0 16px 0;
    line-height: 1.6;
}
.completion-attn {
    font-size: 13px !important;
    color: #fbbf24 !important;
    margin: 0 0 20px 0 !important;
    padding: 10px 16px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.completion-attn i { color: #fbbf24; }
.completion-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}
.completion-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.completion-btn.primary {
    background: linear-gradient(135deg, #f96c9f, #f472b6);
    color: white;
    box-shadow: 0 6px 20px rgba(249, 108, 159, 0.35);
}
.completion-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 108, 159, 0.45);
}
.completion-btn.primary:active {
    transform: translateY(0);
}
.completion-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #999;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.completion-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

/* --- 客服弹窗 --- */
.kf-modal-content {
    max-width: 360px;
    text-align: center;
}

/* --- 分享引导弹窗 --- */
.share-guide-modal-content {
    max-width: 320px;
    text-align: center;
}
.share-guide-body { padding: 40px 24px 24px; }
.share-guide-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #fff;
}
.share-guide-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.share-guide-desc {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
}
.share-guide-actions {
    display: flex;
    gap: 12px;
}
.share-guide-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.share-guide-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #aaa;
}
.share-guide-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.share-guide-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.share-guide-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.kf-body { padding: 32px 24px; }
.kf-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.kf-title i { color: #fb7185; }
.kf-desc {
    color: #aaa;
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 24px;
}
.kf-methods {
    display: flex;
    gap: 12px;
}
.kf-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    gap: 6px;
}
.kf-btn span { font-size: 0.8rem; font-weight: 400; opacity: 0.8; }
.kf-tel {
    background: linear-gradient(135deg, #fb7185, #e11d48);
    color: #fff;
}
.kf-tel:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(251,113,133,0.4); }
.kf-wx {
    background: rgba(7, 193, 96, 0.15);
    border: 1px solid rgba(7, 193, 96, 0.4);
    color: #07c160;
}
.kf-wx:hover { background: rgba(7, 193, 96, 0.25); transform: translateY(-2px); }

/* --- 简介页 --- */
.brand-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fb7185, #e11d48);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(251, 113, 133, 0.35);
}
.brand-badge i { margin-right: 6px; }

/* --- 答题页 --- */
.quiz-notice {
    text-align: center;
    font-size: 0.82rem;
    color: #a1a1aa;
    padding: 8px 12px;
    margin-bottom: 12px;
    background: rgba(251,113,133,0.06);
    border-radius: 8px;
    border: 1px solid rgba(251,113,133,0.12);
}
.quiz-header {
    margin-bottom: 24px;
}
.quiz-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.quiz-dim {
    font-size: 0.85rem;
    color: #fb7185;
    display: flex;
    align-items: center;
    gap: 6px;
}
.quiz-progress-text {
    font-size: 0.85rem;
    color: #888;
}
.progress-bar-wrap {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fb7185, #e11d48);
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s ease;
}
.q-card {
    background: rgba(20, 20, 35, 0.85);
    border: 1px solid rgba(251, 113, 133, 0.2);
    border-radius: 20px;
    padding: 32px 28px;
    margin-bottom: 20px;
}
.q-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.7;
    margin-bottom: 24px;
}
.q-opts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.opt-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 0.95rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.25s;
    line-height: 1.6;
}
.opt-circle {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: all 0.25s;
}
.opt-text {
    flex: 1;
}
.opt-item:hover {
    border-color: rgba(251, 113, 133, 0.5);
    background: rgba(251, 113, 133, 0.08);
    color: #fff;
}
.opt-item:hover .opt-circle {
    border-color: rgba(251, 113, 133, 0.6);
}
.opt-item.selected {
    border-color: #fb7185;
    background: rgba(251, 113, 133, 0.15);
    color: #fb7185;
    font-weight: 600;
}
.opt-item.selected .opt-circle {
    border-color: #fb7185;
    background: #fb7185;
    box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.25);
}

/* 选项点击脉冲 */
.opt-item.opt-pulse {
    animation: optPulse 0.4s ease-out;
}
@keyframes optPulse {
    0% { transform: scale(1); }
    30% { transform: scale(0.96); }
    60% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
.opt-item.opt-pulse .opt-circle {
    animation: circleFill 0.3s ease-out;
}
@keyframes circleFill {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* 题目切换动画 */
.q-card {
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.slide-out-left {
    transform: translateX(-30px);
    opacity: 0;
}
.slide-in-right {
    animation: slideInRight 0.35s ease-out;
}
@keyframes slideInRight {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.slide-out-right {
    transform: translateX(30px);
    opacity: 0;
}
.slide-in-left {
    animation: slideInLeft 0.35s ease-out;
}
@keyframes slideInLeft {
    from { transform: translateX(-40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 未作答抖动提示 */
.shake-hint {
    animation: shakeHint 0.5s ease-out;
}
@keyframes shakeHint {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-8px); }
    30% { transform: translateX(8px); }
    45% { transform: translateX(-6px); }
    60% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
    90% { transform: translateX(3px); }
}

/* 禁用状态按钮样式 */
.btn-nav.btn-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: auto;
}

/* --- 导航按钮 --- */
.nav-btns {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}
.btn-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-nav:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(251, 113, 133, 0.4);
    color: #fff;
}
.btn-nav.btn-next {
    background: linear-gradient(135deg, #fb7185, #e11d48);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(251, 113, 133, 0.3);
}
.btn-nav.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 113, 133, 0.45);
}
.btn-nav.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.btn-nav.btn-finish {
    animation: finishPulse 2s infinite;
}
@keyframes finishPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(251, 113, 133, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(251, 113, 133, 0.6); }
}
.nav-progress {
    font-size: 0.85rem;
    color: #888;
    min-width: 44px;
    text-align: center;
}

/* --- 其他 --- */
.disclaimer {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}
.disclaimer i { margin-right: 5px; color: #fb7185; }

/* --- Loading --- */
.loading-page {
    position: fixed;
    inset: 0;
    background: #0a0a14;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(251, 113, 133, 0.15);
    border-top-color: #fb7185;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- 移动端适配 --- */
@media (max-width: 768px) {
    .main-title { font-size: 1.75rem; }
    .sub-title { font-size: 0.92rem; }
    .hero-section { padding-top: 24px; margin-bottom: 24px; }
    .pain-grid { grid-template-columns: 1fr; gap: 10px; }
    .pain-card { padding: 13px 12px; gap: 10px; }
    .pain-q { font-size: 0.82rem; }
    .pain-stat { font-size: 0.68rem; }
    .pain-cta { margin-top: 14px; font-size: 0.78rem; }
    .pw-card { padding: 32px 24px 28px; border-radius: 20px; }
    .pw-icon-ring { width: 44px; height: 44px; }
    .pw-input { padding: 13px 16px; font-size: 1rem; letter-spacing: 2px; }
    .btn-start { padding: 14px 0; font-size: 1rem; letter-spacing: 1.5px; }
    .pw-trust { gap: 10px; }
    .pw-trust span { font-size: 0.68rem; }
    .password-hint { font-size: 12px; }
    .home-footer { padding: 20px 14px 16px; }
    .q-card { padding: 24px 18px; }
    .q-text { font-size: 1.1rem; }
    .nav-btns { gap: 8px; }
    .btn-nav { padding: 12px 14px; font-size: 13.5px; }
    .nav-progress { font-size: 12px; min-width: 44px; }
    .result-card { padding: 18px 14px; }
    .score-card { flex-direction: column; text-align: center; gap: 16px; }
    .score-ring-wrap { width: 110px; height: 110px; }
    .score-num { font-size: 2.2rem; }
    .score-level { font-size: 1.15rem; }
    .score-desc { font-size: 0.82rem; }
    .acc-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .acc-gi-icon { width: 22px; height: 22px; font-size: 0.6rem; }
    .acc-gi-label { font-size: 0.72rem; }
    .acc-gi-bar-wrap { height: 4px; margin-bottom: 4px; }
    .acc-gi-score { font-size: 0.9rem; }
    .acc-badge-num { font-size: 1.1rem; }
    .section-title { font-size: 0.95rem; margin-bottom: 12px; }
    .dims-list { gap: 10px; }
    .dim-card { padding: 10px 12px; }
    .deep-list { gap: 10px; }
    .deep-item { padding: 10px 12px; }
    .advice-list { gap: 8px; }
    .action-list { gap: 12px; }
    .action-dim { padding: 10px 12px; }
    .quote-section { padding: 14px 16px 12px; }
    .quote-text { font-size: 0.88rem; }
    .kf-methods { flex-direction: column; }
    .container { padding: 64px 14px 40px; }
    .top-nav .nav-btn span { display: none; }
    .top-nav .nav-btn { padding: 8px 10px; }
}

/* ===== 小屏适配 (iPhone SE / 小屏手机) ===== */
@media (max-width: 480px) {
    .result-card { padding: 14px 12px; margin-bottom: 14px; }
    .score-ring-wrap { width: 95px; height: 95px; }
    .score-num { font-size: 1.1rem; }
    .score-level { font-size: 1.05rem; }
    .score-desc { font-size: 0.78rem; }
    .section-title { font-size: 0.9rem; margin-bottom: 10px; }
    .dims-list { gap: 8px; }
    .dim-card { padding: 8px 10px; }
    .dim-header { gap: 6px; margin-bottom: 6px; }
    .dim-bar-wrap { height: 4px; margin-bottom: 4px; }
    .dim-level { font-size: 0.75rem; }
    .dim-desc { font-size: 0.72rem; }
    .deep-list { gap: 8px; }
    .deep-item { padding: 8px 10px; }
    .deep-text { font-size: 0.8rem; line-height: 1.65; }
    .advice-list { gap: 6px; }
    .advice-item { padding: 8px 10px; gap: 10px; }
    .advice-icon { width: 28px; height: 28px; font-size: 0.8rem; }
    .advice-text { font-size: 0.8rem; line-height: 1.65; }
    .action-list { gap: 10px; }
    .action-dim { padding: 8px 10px; }
    .action-task { padding: 7px 0; gap: 8px; }
    .action-task-text { font-size: 0.8rem; }
    .quote-section { padding: 12px 14px 10px; }
    .quote-text { font-size: 0.82rem; }
    .acc-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .acc-grid-item { padding: 8px 6px 6px; }
    .acc-gi-icon { width: 20px; height: 20px; font-size: 0.55rem; }
    .acc-gi-label { font-size: 0.68rem; }
    .acc-gi-bar-wrap { height: 3px; margin-bottom: 3px; }
    .acc-gi-score { font-size: 0.82rem; }
    .acc-badge-num { font-size: 1rem; }
    .acc-list { gap: 4px; }
    .acc-item { padding: 5px 8px; }
    .acc-icon { width: 18px; height: 18px; font-size: 0.6rem; }
    .acc-label { font-size: 0.72rem; }
    .acc-value { font-size: 0.72rem; padding: 1px 6px; }
    .acc-desc { font-size: 0.62rem; margin-top: 1px; }
    .container { padding: 52px 14px 40px; }
}
/* ============================================
 * 客服组件 - 深色主题覆盖
 * 模块始终深色背景，覆盖kf.css的浅色默认
 * ============================================ */
.customer-service .service-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    box-shadow: 0 4px 20px var(--color-primary-glow);
}
.customer-service .service-btn:hover {
    box-shadow: 0 6px 30px rgba(52,211,153,0.5);
}
.customer-service .service-btn::after {
    background: #07c160;
    border-color: var(--color-bg);
}
@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: rgba(20, 20, 35, 0.95);
    border-color: rgba(251, 113, 133, 0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.customer-service .service-popup::after {
    background: #1a1a2e;
    border-color: rgba(251, 113, 133, 0.2);
}
.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;
    }
}

/* ============================================
 * 结果页操作按钮（新布局 - 参考vip/iq/）
 * ============================================ */
.result-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-bottom: 40px;
}

.action-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.primary-row .btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    border-radius: 14px;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    max-width: 200px;
    font-family: inherit;
}

.btn-poster {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 20px var(--color-primary-glow);
}
.btn-poster:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(251, 113, 133, 0.45);
}
.btn-poster:active {
    transform: translateY(0);
}

.btn-share {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.30);
}
.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.42);
}
.btn-share:active {
    transform: translateY(0);
}

.secondary-row {
    gap: 4px 16px;
    flex-wrap: wrap;
}

.btn-action-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    background: transparent;
    color: rgba(156, 163, 175, 0.85);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.btn-action-link:hover {
    color: var(--color-primary);
    background: rgba(251, 113, 133, 0.08);
}
.btn-action-link i {
    font-size: 12px;
}

/* === 海报预览弹窗 === */
.poster-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.poster-preview-modal.active {
    opacity: 1;
    visibility: visible;
}
.poster-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}
.poster-preview-container {
    position: relative;
    z-index: 1;
    max-width: 500px;
    width: calc(100% - 32px);
    max-height: 90vh;
    overflow: hidden;
    background: rgba(30, 27, 46, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}
.poster-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.poster-preview-header h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}
.poster-preview-close {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.poster-preview-close:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.poster-preview-content {
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.poster-preview-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.poster-preview-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.poster-preview-tip {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    text-align: center;
    margin: 0 0 12px;
}
.poster-preview-tip i {
    color: var(--color-primary);
}
.poster-preview-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.poster-download-btn {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: inherit;
}
.poster-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 113, 133, 0.4);
}
.poster-close-btn {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.poster-close-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* 海报加载提示 */
.poster-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 27, 46, 0.95);
    color: #fff;
    padding: 20px 32px;
    border-radius: 16px;
    font-size: 15px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.poster-loading i {
    color: var(--color-primary);
}

/* 移动端适配 */
@media (max-width: 640px) {
    .result-actions {
        gap: 8px;
        padding-top: 40px;
    }
    .primary-row .btn-action {
        padding: 13px 16px;
        font-size: 14px;
        max-width: 160px;
    }
    .btn-action-link {
        padding: 6px 10px;
        font-size: 12.5px;
    }
    .float-share-btn {
        bottom: 90px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
