            /* ============================================
            * 百昔心理 - PFT 性格类型测评样式
            * 暗色主题 + 紫色渐变
            * ============================================ */

            /* === Design Tokens === */
            :root {
                    --color-primary: #a78bfa;
                    --color-primary-dark: #8b5cf6;
                    --color-primary-light: #c4b5fd;
                    --color-bg: #0a0a14;
                    --btn-primary-bg: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
                    --btn-primary-shadow: 0 4px 15px rgba(167, 139, 250, 0.40);
            }

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

            body {
                    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
                    background-color: #0a0a14;
                    color: #ffffff;
                    min-height: 100vh;
                    overflow-x: hidden;
                    position: relative;
            }

            /* 顶部导航 */
            .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);
            }
            #particles-canvas {
                    position: fixed;
                    left: 0;
                    top: 0;
                    width: 100%;
                    height: 100%;
                    z-index: -9999;
                    pointer-events: none;
                    background: transparent;
            }

            .container {
                    position: relative;
                    z-index: 1;
                    max-width: 900px;
                    margin: 0 auto;
                    padding: 40px 20px;
            }

            .page {
                    display: none;
                    animation: fadeIn 0.5s ease-in-out;
            }

            .page.active {
                    display: block;
            }

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

            /* 密码页面样式 */
            .login-container {
                    text-align: center;
                    padding: 60px 20px;
            }

            .top-badge {
                    display: inline-block;
                    padding: 10px 24px;
                    background: rgba(167, 139, 250, 0.25);
                    border: 1px solid rgba(167, 139, 250, 0.35);
                    border-radius: 24px;
                    color: var(--color-primary-light);
                    font-size: 14px;
                    font-weight: 500;
                    letter-spacing: 0.5px;
                    margin-bottom: 28px;
            }

            h1 {
                    font-family: 'PingFang SC', 'STSong', 'SimSun', 'STKaiti', serif;
                    font-size: 3em;
                    margin-bottom: 18px;
                    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%);
                    -webkit-background-clip: text;
                    -webkit-text-fill-color: transparent;
                    background-clip: text;
                    line-height: 1.3;
                    letter-spacing: -0.02em;
            }

            .subtitle {
                    color: #9ca3af;
                    font-size: 0.95em;
                    max-width: 650px;
                    margin: 0 auto 24px;
                    line-height: 1.8;
            }

            /* 信任标签行 */
            .trust-tags {
                    display: flex;
                    justify-content: center;
                    gap: 12px;
                    margin: 0 auto 24px;
                    flex-wrap: wrap;
            }

            .trust-tag {
                    display: inline-flex;
                    align-items: center;
                    gap: 6px;
                    padding: 8px 16px;
                    background: rgba(255, 255, 255, 0.04);
                    border: 1px solid rgba(255, 255, 255, 0.08);
                    border-radius: 20px;
                    color: #9ca3af;
                    font-size: 0.82em;
                    transition: all 0.25s ease;
            }

            .trust-tag i {
                    color: var(--color-primary-light);
                    font-size: 0.9em;
            }

            .trust-tag:hover {
                    background: rgba(167, 139, 250, 0.08);
                    border-color: rgba(167, 139, 250, 0.20);
                    color: #c4b5fd;
            }

            .login-card {
                    background: rgba(255, 255, 255, 0.03);
                    border: 1px solid rgba(255, 255, 255, 0.08);
                    border-radius: 24px;
                    padding: 36px 32px;
                    max-width: 420px;
                    margin: 0 auto;
					box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
            }

            .input-group {
                    margin-bottom: 25px;
            }

            .input-label {
                    display: block;
                    text-align: left;
                    color: #9ca3af;
                    font-size: 14px;
                    margin-bottom: 10px;
                    font-weight: 500;
            }

            .password-input {
                    width: 100%;
                    padding: 18px 25px;
                    font-size: 16px;
                    border: 2px solid #374151;
                    border-radius: 14px;
                    background-color: rgba(31, 41, 55, 0.8);
                    color: #ffffff;
                    transition: all 0.3s ease;
                    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
                    outline: none;
            }

            .password-input:focus {
                    border-color: var(--color-primary);
                    box-shadow: 0 0 20px rgba(167, 139, 250, 0.30);
                    background-color: rgba(31, 41, 55, 0.9);
            }

            .password-input.error {
                    border-color: #ef4444;
                    animation: shake 0.5s ease-in-out;
            }

            @keyframes shake {
                0%, 100% { transform: translateX(0); }
                25% { transform: translateX(-10px); }
                75% { transform: translateX(10px); }
            }

            .btn-primary {
                    width: 100%;
                    padding: 18px 40px;
                    font-size: 17px;
                    font-weight: 600;
                    border: none;
                    border-radius: 14px;
                    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
                    color: #ffffff;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
                    box-shadow: 0 6px 25px rgba(167, 139, 250, 0.50);
            }

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

            .btn-primary:active {
                    transform: translateY(0);
            }

            .btn-primary:disabled {
                    opacity: 0.5;
                    cursor: not-allowed;
                    transform: none;
            }

            .btn-secondary {
                    display: inline-block;
                    padding: 14px 32px;
                    border: 1px solid rgba(167, 139, 250, 0.30);
                    border-radius: 12px;
                    background: rgba(167, 139, 250, 0.10);
                    color: var(--color-primary-light);
                    font-size: 16px;
                    font-weight: 500;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    text-decoration: none;
            }

            .btn-secondary:hover {
                    background: rgba(167, 139, 250, 0.15);
                    border-color: rgba(167, 139, 250, 0.40);
                    transform: translateY(-1px);
            }

            .error-message {
                    color: #f87171;
                    margin-top: 12px;
                    font-size: 14px;
            }

            .login-meta {
                    display: flex;
                    justify-content: center;
                    gap: 20px;
                    margin-top: 14px;
                    color: #6b7280;
                    font-size: 0.78em;
            }

            .login-meta i {
                    margin-right: 4px;
                    color: rgba(167, 139, 250, 0.5);
            }

            /* 首页样式 - 紧凑单屏 */
            .intro-compact {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    min-height: calc(100vh - 140px);
                    text-align: center;
                    padding: 0 24px;
            }

            .intro-title {
                    font-family: 'PingFang SC', 'STSong', 'SimSun', 'STKaiti', serif;
                    font-size: 2em;
                    margin-bottom: 10px;
                    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
                    -webkit-background-clip: text;
                    -webkit-text-fill-color: transparent;
                    background-clip: text;
                    line-height: 1.3;
            }

            .intro-desc-short {
                    color: #9ca3af;
                    font-size: 0.95em;
                    margin-bottom: 28px;
                    line-height: 1.6;
            }

            /* OCEAN 维度条 */
            .ocean-row {
                    display: flex;
                    justify-content: center;
                    gap: 8px;
                    padding: 24px 16px;
                    flex-wrap: wrap;
            }

            .ocean-item {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    gap: 4px;
                    padding: 14px 18px 10px;
                    background: rgba(167, 139, 250, 0.08);
                    border: 1px solid rgba(167, 139, 250, 0.15);
                    border-radius: 16px;
                    transition: all 0.3s ease;
                    cursor: default;
            }

            .ocean-item:hover {
                    background: rgba(167, 139, 250, 0.15);
                    border-color: rgba(167, 139, 250, 0.35);
                    transform: translateY(-2px);
            }

            .ocean-letter {
                    font-family: 'PingFang SC', 'STSong', 'SimSun', 'STKaiti', serif;
                    font-size: 1.8em;
                    font-weight: 700;
                    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
                    -webkit-background-clip: text;
                    -webkit-text-fill-color: transparent;
                    background-clip: text;
                    line-height: 1;
            }

            .ocean-name {
                    font-size: 0.75em;
                    color: #9ca3af;
                    font-weight: 500;
                    white-space: nowrap;
            }

            .intro-cta {
                    text-align: center;
                    padding: 10px 20px 0;
            }

            .btn-cta {
                    max-width: 280px;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    gap: 10px;
                    padding: 16px 40px;
                    border-radius: 16px;
                    font-size: 17px;
            }

            .btn-cta i {
                    font-size: 0.9em;
                    transition: transform 0.3s ease;
            }

            .btn-cta:hover i {
                    transform: translateX(4px);
            }

            .intro-detail-link {
                    display: inline-block;
                    margin-top: 14px;
                    color: #6b7280;
                    font-size: 0.82em;
                    text-decoration: none;
                    transition: color 0.25s ease;
            }

            .intro-detail-link:hover {
                    color: var(--color-primary-light);
            }

            /* 测评页面样式 */
/* ===== 答题页 ===== */
            .quiz-header {
                    text-align: center;
                    margin-bottom: 40px;
            }

            .progress-container {
                    width: 100%;
                    height: 10px;
                    background-color: rgba(31, 41, 55, 0.8);
                    border-radius: 5px;
                    margin-bottom: 20px;
                    overflow: hidden;
            }

            .progress-bar {
                    height: 100%;
                    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
                    border-radius: 5px;
                    transition: width 0.4s ease;
                    box-shadow: 0 0 15px rgba(167, 139, 250, 0.50);
            }

            .progress-text {
                    color: #9ca3af;
                    font-size: 0.9em;
                    margin-top: 12px;
                    font-weight: 500;
            }

            .question-card {
                    background: rgba(167, 139, 250, 0.12);
                    border: 1px solid rgba(167, 139, 250, 0.20);
                    border-radius: 20px;
                    padding: 36px 32px;
                    margin-bottom: 24px;
            }

            .question-number {
                    color: var(--color-primary);
                    font-size: 0.85em;
                    font-weight: 500;
                    margin-bottom: 14px;
                    text-transform: uppercase;
                    letter-spacing: 1.5px;
            }

            .question-text {
                    font-family: 'PingFang SC', 'STSong', 'SimSun', 'STKaiti', serif;
                    font-size: 1.5em;
                    line-height: 1.65;
                    margin-bottom: 28px;
                    color: #f3f4f6;
            }

            .options-container {
                    display: grid;
                    gap: 14px;
            }

            .option {
                    background: linear-gradient(135deg, rgba(31, 41, 55, 0.5) 0%, rgba(17, 24, 39, 0.7) 100%);
                    border: 1.5px solid rgba(55, 65, 81, 0.5);
                    border-radius: 14px;
                    padding: 18px 22px;
                    cursor: pointer;
                    transition: all 0.25s ease;
                    display: flex;
                    align-items: center;
            }

            .option:hover {
                    border-color: rgba(167, 139, 250, 0.50);
                    background: rgba(167, 139, 250, 0.15);
                    transform: translateX(6px);
                    box-shadow: 0 4px 16px rgba(167, 139, 250, 0.20);
            }

            .option.selected {
                    border-color: var(--color-primary);
                    background: rgba(167, 139, 250, 0.20);
                    box-shadow: 0 0 20px rgba(167, 139, 250, 0.35);
                    transform: translateX(6px);
            }

            .option-label {
                    width: 40px;
                    height: 40px;
                    border-radius: 50%;
                    background: linear-gradient(135deg, rgba(55, 65, 81, 0.7) 0%, rgba(31, 41, 55, 0.8) 100%);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin-right: 22px;
                    font-weight: 700;
                    color: var(--color-primary);
                    font-size: 18px;
                    transition: all 0.3s ease;
                    border: 2px solid rgba(55, 65, 81, 0.6);
            }

            .option.selected .option-label {
                    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
                    color: #ffffff;
                    border-color: var(--color-primary);
                    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.50);
            }

            .option-text {
                    font-size: 1.1em;
                    color: #e5e7eb;
                    line-height: 1.6;
                    flex: 1;
            }

            .navigation {
                    display: flex;
                    justify-content: space-between;
                    margin-top: 35px;
                    gap: 15px;
            }

            .btn-secondary {
                    padding: 15px 40px;
                    font-size: 16px;
                    font-weight: 600;
                    border: 2px solid rgba(167, 139, 250, 0.30);
                    border-radius: 14px;
                    background: rgba(167, 139, 250, 0.08);
                    color: #9ca3af;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            }

            .btn-secondary:hover {
                    border-color: var(--color-primary);
                    color: var(--color-primary);
                    background: rgba(167, 139, 250, 0.15);
            }

            .btn-secondary:disabled {
                    opacity: 0.3;
                    cursor: not-allowed;
                    border-color: rgba(55, 65, 81, 0.4);
            }

            /* 结果页面样式 */
/* ===== 结果页 ===== */
            .result-header {
                    text-align: center;
                    margin-bottom: 45px;
                    padding: 40px 28px 36px;
                    background: linear-gradient(145deg, rgba(139, 92, 246, 0.12) 0%, rgba(99, 102, 241, 0.08) 50%, rgba(167, 139, 250, 0.06) 100%);
                    border: 1px solid rgba(167, 139, 250, 0.15);
                    border-radius: 24px;
                    backdrop-filter: blur(16px);
                    -webkit-backdrop-filter: blur(16px);
                    position: relative;
                    overflow: hidden;
            }
            .result-header::before {
                    content: '';
                    position: absolute;
                    top: -50%;
                    left: -30%;
                    width: 160%;
                    height: 200%;
                    background: radial-gradient(ellipse at 35% 20%, rgba(167, 139, 250, 0.10) 0%, transparent 55%),
                                radial-gradient(ellipse at 65% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
                    pointer-events: none;
            }
            .result-header > * {
                    position: relative;
                    z-index: 1;
            }

/* ===== 分项指标 ===== */
            .result-type {
                    font-family: 'PingFang SC', 'STSong', 'SimSun', 'STKaiti', serif;
                    font-size: 4.5em;
                    font-weight: 700;
                    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
                    -webkit-background-clip: text;
                    -webkit-text-fill-color: transparent;
                    background-clip: text;
                    margin-bottom: 20px;
                    text-shadow: 0 0 60px rgba(167, 139, 250, 0.50);
                    letter-spacing: 2px;
            }

            .result-title {
                    font-size: 1.5em;
                    background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 40%, #818cf8 100%);
                    -webkit-background-clip: text;
                    -webkit-text-fill-color: transparent;
                    background-clip: text;
                    margin-bottom: 12px;
                    font-weight: 700;
                    letter-spacing: 0.01em;
                    line-height: 1.4;
                    position: relative;
            }
            .result-title::after {
                    content: '';
                    position: absolute;
                    bottom: -4px;
                    left: 0;
                    width: 40px;
                    height: 2px;
                    background: linear-gradient(90deg, #a78bfa, transparent);
                    border-radius: 2px;
            }

            .result-subtitle {
                    color: #9ca3af;
                    font-size: 1.15em;
                    line-height: 1.7;
            }

            /* 环形得分 */
            /* 准确度卡片 */
.accuracy-card {
        margin: 36px 16px;
        padding: 24px 20px;
        background: rgba(15, 23, 42, 0.6);
        border-radius: 20px;
        border: 1px solid rgba(167, 139, 250, 0.12);
}

.accuracy-card .section-title {
        font-size: 1.4em;
        margin-bottom: 8px;
}

.accuracy-subtitle {
        text-align: center;
        font-size: 0.85em;
        color: #6b7280;
        margin-bottom: 20px;
}

.accuracy-card-body {
        display: flex;
        align-items: center;
        gap: 32px;
}

.accuracy-ring {
        position: relative;
        width: 140px;
        height: 140px;
        flex-shrink: 0;
}

.accuracy-ring svg {
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
}

.accuracy-ring circle {
        fill: none;
        stroke-width: 10;
        stroke-linecap: round;
}

.accuracy-ring .score-bg {
        stroke: rgba(31, 41, 55, 0.5);
}

.accuracy-ring .score-progress {
        stroke: url(#scoreGradient);
        transition: stroke-dashoffset 1.5s ease;
}

.accuracy-ring .score-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 2px;
}

.accuracy-ring .score-value {
        font-size: 2.8em;
        font-weight: 700;
        color: var(--color-primary);
        line-height: 1;
}

.accuracy-ring .score-unit {
        font-size: 0.9em;
        color: #9ca3af;
        font-weight: 400;
}

/* 分项指标 */
.accuracy-details {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 14px;
}



.acc-item-head {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 5px;
}

.acc-icon {
        font-size: 14px;
        width: 20px;
        text-align: center;
}

.acc-label {
        font-size: 13px;
        color: #d1d5db;
        flex: 1;
}

.acc-pct {
        font-size: 12px;
        font-weight: 600;
        min-width: 36px;
        text-align: right;
}

.acc-pct-good { color: #86efac; }
.acc-pct-warn { color: #fcd34d; }
.acc-pct-bad { color: #fca5a5; }

.acc-bar {
        height: 4px;
        background: rgba(31, 41, 55, 0.8);
        border-radius: 2px;
        overflow: hidden;
}

.acc-bar-fill {
        height: 100%;
        border-radius: 2px;
        transition: width 1s ease;
}

.acc-bar-good { background: linear-gradient(90deg, #86efac, #4ade80); }
.acc-bar-warn { background: linear-gradient(90deg, #fcd34d, #fbbf24); }
.acc-bar-bad { background: linear-gradient(90deg, #fca5a5, #f87171); }

.acc-desc {
        font-size: 11px;
        margin-top: 3px;
}

.acc-desc-good { color: #86efac; }
.acc-desc-good::before { content: '✓ '; }
.acc-desc-warn { color: #fcd34d; }
.acc-desc-warn::before { content: '! '; }
.acc-desc-bad { color: #fca5a5; }
.acc-desc-bad::before { content: '✗ '; }

            /* 维度分析 */
            .dimensions-section {
                    margin: 60px 0;
            }

            .section-title {
                    font-family: 'PingFang SC', 'STSong', 'SimSun', 'STKaiti', serif;
                    font-size: 2em;
                    color: var(--color-primary);
                    margin-bottom: 40px;
                    text-align: center;
                    position: relative;
                    font-weight: 600;
            }

            .section-title::after {
                    content: '';
                    display: block;
                    width: 80px;
                    height: 3px;
                    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
                    margin: 20px auto 0;
            }

            .dimension-item {
                    background: rgba(167, 139, 250, 0.10);
                    border: 1px solid rgba(167, 139, 250, 0.20);
                    border-radius: 20px;
                    padding: 35px;
                    margin-bottom: 28px;
            }

            .dimension-header {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    margin-bottom: 18px;
                    flex-wrap: wrap;
                    gap: 10px;
            }

            .dimension-name {
                    font-size: 1.35em;
                    color: #f3f4f6;
                    font-weight: 600;
            }

            .dimension-type {
                    padding: 8px 20px;
                    border-radius: 25px;
                    font-size: 0.95em;
                    font-weight: 700;
                    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
                    color: #ffffff;
                    letter-spacing: 1px;
            }

            .dimension-desc {
                    color: #d1d5db;
                    line-height: 1.8;
                    margin-bottom: 22px;
                    font-size: 1.05em;
            }

            .dimension-progress {
                    width: 100%;
                    height: 12px;
                    background-color: rgba(31, 41, 55, 0.5);
                    border-radius: 6px;
                    overflow: hidden;
            }

            .dimension-progress-bar {
                    height: 100%;
                    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
                    border-radius: 6px;
                    transition: width 1.5s ease;
                    box-shadow: 0 0 20px rgba(167, 139, 250, 0.40);
            }

            /* 深度解读 */
            .analysis-section {
                    margin: 60px 0;
            }

            /* 新版 analysis-card 横向三层式设计 */
            .analysis-card {
                    display: flex;
                    flex-direction: column;
                    background: linear-gradient(135deg, rgba(30, 30, 40, 0.85) 0%, rgba(20, 20, 30, 0.95) 100%);
                    border-radius: 20px;
                    padding: 0;
                    margin-bottom: 24px;
                    overflow: hidden;
                    border: 1px solid rgba(167, 139, 250, 0.15);
                    transition: all 0.3s ease;
            }

            .analysis-card:hover {
                    transform: translateY(-4px);
                    box-shadow: 0 12px 40px rgba(167, 139, 250, 0.2);
                    border-color: rgba(167, 139, 250, 0.35);
            }

            /* 头部：图标+类型标签 */
            .analysis-card-header {
                    display: flex;
                    align-items: center;
                    padding: 20px 28px 16px;
                    gap: 12px;
            }

            .analysis-card-icon {
                    font-size: 1.5em;
                    line-height: 1;
            }

            .analysis-card-type {
                    font-size: 0.85em;
                    font-weight: 600;
                    text-transform: uppercase;
                    letter-spacing: 0.08em;
                    padding: 4px 12px;
                    border-radius: 20px;
            }

            /* 三种类型的颜色主题 */
            .analysis-card-driver .analysis-card-header {
                    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.05) 100%);
            }
            .analysis-card-driver .analysis-card-type {
                    background: rgba(251, 191, 36, 0.2);
                    color: #fbbf24;
            }
            .analysis-card-driver .analysis-card-title {
                    color: #fbbf24;
            }

            .analysis-card-thinker .analysis-card-header {
                    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(96, 165, 250, 0.05) 100%);
            }
            .analysis-card-thinker .analysis-card-type {
                    background: rgba(96, 165, 250, 0.2);
                    color: #60a5fa;
            }
            .analysis-card-thinker .analysis-card-title {
                    color: #60a5fa;
            }

            .analysis-card-challenger .analysis-card-header {
                    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15) 0%, rgba(248, 113, 113, 0.05) 100%);
            }
            .analysis-card-challenger .analysis-card-type {
                    background: rgba(248, 113, 113, 0.2);
                    color: #f87171;
            }
            .analysis-card-challenger .analysis-card-title {
                    color: #f87171;
            }

            /* 标题区 - 在header内部时内联显示 */
            .analysis-card-header .analysis-card-title {
                    font-size: 1.05em;
                    font-weight: 600;
                    color: inherit;
                    padding: 0;
                    margin: 0 0 0 4px;
            }

            /* 标题区 - 独立使用时的样式（兼容） */
            .analysis-card > .analysis-card-title {
                    font-size: 1.25em;
                    font-weight: 600;
                    padding: 0 28px;
                    margin-bottom: 16px;
            }

            /* 内容区 */
            .analysis-card-body {
                    color: #d1d5db;
                    line-height: 1.9;
                    font-size: 1.05em;
                    padding: 0 28px 28px;
            }

            /* 旧版样式兼容（已弃用） */
            /*
            .analysis-card-old {
                    background: rgba(167, 139, 250, 0.12);
                    border: 1px solid rgba(167, 139, 250, 0.20);
                    border-radius: 20px;
                    padding: 36px 32px;
                    margin-bottom: 28px;
            }

            .analysis-title {
                    font-size: 1.5em;
                    color: var(--color-primary);
                    margin-bottom: 22px;
                    font-weight: 600;
                    display: flex;
                    align-items: center;
            }

            .analysis-title::before {
                    content: '✦';
                    margin-right: 15px;
                    font-size: 0.7em;
                    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
                    -webkit-background-clip: text;
                    -webkit-text-fill-color: transparent;
                    background-clip: text;
            }

            .analysis-content {
                    color: #e5e7eb;
                    line-height: 1.9;
                    font-size: 1.08em;
            }
            */

            /* 科学理论 */
            .theory-section {
                    margin: 48px 0;
            }

            /* 新版 theory-card - 紧凑双卡片设计 */
            .theory-card {
                    background: linear-gradient(135deg, rgba(30, 30, 40, 0.8) 0%, rgba(20, 20, 30, 0.9) 100%);
                    border-radius: 16px;
                    padding: 0;
                    margin-bottom: 16px;
                    overflow: hidden;
                    border: 1px solid rgba(167, 139, 250, 0.12);
                    transition: all 0.3s ease;
            }

            .theory-card:hover {
                    transform: translateY(-2px);
                    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.15);
                    border-color: rgba(167, 139, 250, 0.25);
            }

            .theory-card-header {
                    display: flex;
                    align-items: center;
                    padding: 14px 20px 12px;
                    gap: 10px;
                    background: linear-gradient(135deg, rgba(96, 165, 250, 0.12) 0%, rgba(96, 165, 250, 0.05) 100%);
            }

            .theory-card-icon {
                    font-size: 1.1em;
                    line-height: 1;
            }

            .theory-card-label {
                    font-size: 0.75em;
                    font-weight: 600;
                    text-transform: uppercase;
                    letter-spacing: 0.08em;
                    color: #60a5fa;
                    background: rgba(96, 165, 250, 0.15);
                    padding: 3px 10px;
                    border-radius: 12px;
            }

            .theory-card-academic .theory-card-header {
                    background: linear-gradient(135deg, rgba(96, 165, 250, 0.12) 0%, rgba(96, 165, 250, 0.05) 100%);
            }
            .theory-card-academic .theory-card-label {
                    color: #60a5fa;
                    background: rgba(96, 165, 250, 0.15);
            }

            .theory-card-pft .theory-card-header {
                    background: linear-gradient(135deg, rgba(167, 139, 250, 0.12) 0%, rgba(167, 139, 250, 0.05) 100%);
            }
            .theory-card-pft .theory-card-label {
                    color: #a78bfa;
                    background: rgba(167, 139, 250, 0.15);
            }

            .theory-card-name {
                    font-size: 1.1em;
                    color: #e5e7eb;
                    padding: 16px 20px 12px;
                    font-weight: 600;
            }

            .theory-card-desc {
                    color: #9ca3af;
                    line-height: 1.75;
                    padding: 0 20px;
                    font-size: 0.95em;
            }

            .theory-card-source {
                    color: #6b7280;
                    font-size: 0.8em;
                    font-style: italic;
                    padding: 16px 20px 20px;
            }

            /* 旧版理论卡片样式（已弃用）*/
            /*
            .theory-card-old {
                    background: rgba(167, 139, 250, 0.08);
                    border-left: 4px solid var(--color-primary);
                    border-radius: 16px;
                    padding: 35px;
                    margin-bottom: 24px;
            }
            .theory-name { font-size: 1.3em; color: var(--color-primary-light); margin-bottom: 18px; font-weight: 600; }
            .theory-desc { color: #d1d5db; line-height: 1.8; margin-bottom: 16px; font-size: 1.05em; }
            .theory-source { color: #9ca3af; font-size: 0.9em; font-style: italic; }
            */

            /* 行动计划 */
            .action-section {
                    margin: 48px 0;
            }

            .action-list {
                    display: grid;
                    gap: 14px;
            }

            /* 新版 action-item - 紧凑横向设计 */
            .action-item {
                    background: linear-gradient(135deg, rgba(30, 30, 40, 0.75) 0%, rgba(20, 20, 30, 0.85) 100%);
                    border: 1px solid rgba(167, 139, 250, 0.12);
                    border-radius: 14px;
                    padding: 18px 20px;
                    display: flex;
                    align-items: center;
                    gap: 14px;
                    transition: all 0.3s ease;
            }

            .action-item:hover {
                    border-color: rgba(167, 139, 250, 0.35);
                    transform: translateX(4px);
                    box-shadow: 0 6px 20px rgba(167, 139, 250, 0.18);
            }

            .action-item-icon {
                    font-size: 1.3em;
                    line-height: 1;
                    flex-shrink: 0;
            }

            .action-item-number {
                    width: 28px;
                    height: 28px;
                    border-radius: 50%;
                    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 0.8em;
                    font-weight: 700;
                    color: #ffffff;
                    flex-shrink: 0;
                    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.4);
            }

            .action-item-content {
                    flex: 1;
                    min-width: 0;
            }

            .action-item-title {
                    font-size: 1em;
                    color: #e5e7eb;
                    margin-bottom: 4px;
                    font-weight: 600;
            }

            .action-item-desc {
                    color: #9ca3af;
                    line-height: 1.6;
                    font-size: 0.9em;
            }

            /* 旧版 action-item（已弃用）*/
            /*
            .action-item-old {
                    background: rgba(167, 139, 250, 0.10);
                    border: 1px solid rgba(167, 139, 250, 0.18);
                    border-radius: 18px;
                    padding: 28px;
                    display: flex;
                    align-items: flex-start;
            }
            .action-number { width: 52px; height: 52px; border-radius: 50%; ... }
            .action-content { flex: 1; }
            .action-title { font-size: 1.15em; color: #f3f4f6; margin-bottom: 10px; }
            .action-desc { color: #9ca3af; line-height: 1.7; font-size: 1em; }
            */

            /* 励志名言 */
            .quote-section {
                    margin: 32px 0;
                    padding: 24px 28px 20px;
                    background: linear-gradient(135deg, rgba(167, 139, 250, 0.22) 0%, rgba(139, 92, 246, 0.10) 100%);
                    border: 1px solid rgba(167, 139, 250, 0.30);
                    border-radius: 18px;
                    position: relative;
                    overflow: hidden;
            }

            .quote-section::before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 4px;
                    height: 100%;
                    background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-primary-dark) 100%);
                    border-radius: 4px 0 0 4px;
            }

            .quote-section::after {
                    content: '"';
                    position: absolute;
                    top: -10px;
                    right: 16px;
                    font-size: 120px;
                    font-family: 'Georgia', serif;
                    color: rgba(167, 139, 250, 0.12);
                    line-height: 1;
                    pointer-events: none;
            }

            .quote-row {
                    display: flex;
                    align-items: flex-start;
                    gap: 14px;
                    margin-bottom: 10px;
            }

            .quote-icon {
                    font-size: 1.6em;
                    color: var(--color-primary);
                    line-height: 1.65;
                    flex-shrink: 0;
            }

            .quote-text {
                    font-family: 'PingFang SC', 'STSong', 'SimSun', 'STKaiti', serif;
                    font-size: 1.05em;
                    color: #f3f4f6;
                    line-height: 1.85;
                    font-style: italic;
                    font-weight: 500;
                    margin: 0;
            }

            .quote-author {
                    color: var(--color-primary-light);
                    font-size: 0.88em;
                    font-weight: 600;
                    margin: 0 0 0 52px;
                    letter-spacing: 0.3px;
            }

            /* 底部按钮 */
/* ===== 底部操作区 ===== */
            .result-footer {
                    text-align: center;
                    margin-top: 60px;
            }

            /* ===== 结果页按钮组（重新设计）==== */
            .result-actions {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    gap: 16px;
                    margin-top: 40px;
                    padding: 0 8px;
            }

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

            .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;
                    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
            }

            .btn-poster {
                    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
                    color: #fff;
                    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
            }
            .btn-poster:hover {
                    transform: translateY(-2px);
                    box-shadow: 0 6px 24px rgba(124, 58, 237, 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(5, 150, 105, 0.30);
            }
            .btn-share:hover {
                    transform: translateY(-2px);
                    box-shadow: 0 6px 24px rgba(5, 150, 105, 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: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
            }
            .btn-action-link:hover {
                    color: rgba(167, 139, 250, 0.9);
                    background: rgba(167, 139, 250, 0.08);
            }
            .btn-action-link i {
                    font-size: 12px;
            }

            /* 响应式设计 */
            @media (max-width: 768px) {
            /* 顶部导航 */
                .top-nav {
                        padding: 10px 12px;
                }

                .nav-btn {
                        padding: 6px 10px;
                        font-size: 0.8em;
                        gap: 4px;
                }

                .nav-btn span {
                        display: none; /* 移动端隐藏文字,只显示图标 */
                }

                .nav-btn i {
                        font-size: 1.1em;
                }

                .container {
                        padding: 20px 15px;
                }

                h1 {
                        font-size: 1.8em;
                        line-height: 1.3;
                }

                .intro-title {
                        font-size: 1.6em;
                }

                .intro-desc-short {
                        font-size: 0.88em;
                }

                .ocean-row {
                        gap: 6px;
                }

                .ocean-item {
                        padding: 10px 12px 8px;
                }

                .ocean-letter {
                        font-size: 1.4em;
                }
                }

                .question-card {
                        padding: 24px 20px;
                }

                .question-number {
                        font-size: 0.9em;
                }

                .question-text {
                        font-size: 1.2em;
                        line-height: 1.6;
                }

                .option-btn {
                        padding: 14px 18px;
                        font-size: 0.95em;
                }

                .result-type {
                        font-size: 2.5em;
                }

                .result-header {
                        padding: 28px 18px 24px;
                        border-radius: 18px;
                        margin-bottom: 32px;
                }

                .result-title {
                        font-size: 1.4em;
                }

                .result-subtitle {
                        font-size: 1.1em;
                }

                .accuracy-card {
                        margin: 28px 12px;
                        padding: 20px 16px;
                }

                .accuracy-ring {
                        width: 100px;
                        height: 100px;
                }

                .accuracy-ring .score-value {
                        font-size: 2em;
                }

                .accuracy-card-body {
                        gap: 18px;
                }

                .accuracy-details {
                        gap: 10px;
                }

                .acc-item-head {
                        margin-bottom: 3px;
                }

                .dimension-item,
                .analysis-card,
                .theory-card,
                .action-item {
                        padding: 20px;
                }

                .section-title {
                        font-size: 1.4em;
                }

                .btn-primary,
                .btn-secondary {
                        width: 100%;
                        padding: 14px 20px;
                        font-size: 1em;
                }

                .result-actions {
                        margin-top: 28px;
                        padding: 0 4px;
                        gap: 14px;
                }

                .primary-row .btn-action {
                        padding: 13px 16px;
                        font-size: 14.5px;
                        border-radius: 12px;
                }

                .secondary-row {
                        gap: 2px 10px;
                }

                .btn-action-link {
                        font-size: 13px;
                        padding: 7px 11px;
                }

                .trust-tags {
                        gap: 8px;
                        margin-bottom: 24px;
                }

                .trust-tag {
                        padding: 6px 12px;
                        font-size: 0.76em;
                }

            /* 弹窗优化 */
                .modal-content {
                        width: 95%;
                        max-width: none;
                        margin: 0 10px;
                }

                .modal-header h3 {
                        font-size: 1.2em;
                }

/* ===== 历史记录弹窗 ===== */
                .history-item {
                        padding: 12px 14px;
                }

                .history-type {
                        font-size: 14px;
                }

                .history-accuracy {
                        font-size: 10px;
                        padding: 2px 6px;
                }

                .history-title {
                        font-size: 12px;
                }

                .history-time {
                        font-size: 10px;
                }

                .history-score-tag {
                        font-size: 9px;
                        padding: 2px 5px;
                }

            /* 进度条 */
                .progress-container {
                        padding: 0 15px;
                }

                .progress-bar {
                        height: 6px;
                }

                .progress-text {
                        font-size: 0.85em;
                }


            /* 小屏手机优化 */
            @media (max-width: 480px) {
                h1 {
                        font-size: 1.5em;
                }

                .intro-title {
                        font-size: 1.3em;
                }

                .ocean-row {
                        gap: 4px;
                }

                .ocean-item {
                        padding: 8px 10px 6px;
                }

                .ocean-letter {
                        font-size: 1.2em;
                }

                .ocean-name {
                        font-size: 0.7em;
                }

                .subtitle {
                        font-size: 0.85em;
                }

                .question-text {
                        font-size: 1.1em;
                }

                .result-type {
                        font-size: 2em;
                }

                .result-header {
                        padding: 22px 14px 18px;
                        border-radius: 14px;
                        margin-bottom: 24px;
                }

                .result-title {
                        font-size: 1.1em;
                        line-height: 1.35;
                }

                .accuracy-card {
                        margin: 24px 8px;
                        padding: 18px 14px;
                }

                .accuracy-subtitle {
                        font-size: 0.8em;
                        margin-bottom: 14px;
                }

                .accuracy-card-body {
                        flex-direction: column;
                        gap: 14px;
                        align-items: center;
                }

                .accuracy-ring {
                        width: 90px;
                        height: 90px;
                }

                .accuracy-ring .score-value {
                        font-size: 1.7em;
                }

                .accuracy-details {
                        display: grid;
                        grid-template-columns: 1fr 1fr;
                        gap: 10px 12px;
                        width: 100%;
                }

                .acc-item {
                        padding: 8px 10px;
                        background: rgba(30, 41, 59, 0.5);
                        border-radius: 10px;
                        border-left: 3px solid var(--color-primary);
                        border-left-color: transparent;
                }

                .acc-item-head {
                        margin-bottom: 4px;
                }

                .acc-label {
                        font-size: 11px;
                }

                .acc-pct {
                        font-size: 12px;
                }

                .acc-bar {
                        height: 3px;
                }

                .acc-desc {
                        font-size: 9px;
                        margin-top: 2px;
                }
            }

            /* 加载动画 */
            .loading {
                    display: inline-block;
                    width: 20px;
                    height: 20px;
                    border: 3px solid rgba(255, 255, 255, 0.3);
                    border-radius: 50%;
                    border-top-color: #ffffff;
                    animation: spin 1s ease-in-out infinite;
                    margin-right: 10px;
            }

            @keyframes spin {
                to { transform: rotate(360deg); }
            }

            /* 历史记录弹窗样式 */
/* ===== 弹窗组件 ===== */
            .modal {
                    position: fixed;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    z-index: 1000;
                    display: none;
            }

            .modal.show {
                    display: flex;
                    align-items: center;
                    justify-content: center;
            }

            .modal-overlay {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background: rgba(0, 0, 0, 0.6);
                    -webkit-backdrop-filter: blur(4px);
            }

            .modal-content {
                    position: relative;
                    background: rgba(15, 12, 25, 0.92);
                    border: 1px solid rgba(167, 139, 250, 0.15);
                    border-radius: 20px;
                    max-width: 440px;
                    width: 92%;
                    max-height: 80vh;
                    display: flex;
                    flex-direction: column;
                    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(167, 139, 250, 0.08);
                    backdrop-filter: blur(20px);
                    -webkit-backdrop-filter: blur(20px);
                    animation: modalIn 0.3s ease;
            }

            @keyframes modalIn {
                from {
                        opacity: 0;
                        transform: scale(0.94) translateY(-16px);
                }
                to {
                        opacity: 1;
                        transform: scale(1) translateY(0);
                }
            }

            .modal-header {
                    padding: 20px 24px;
                    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
            }

            .modal-header h3 {
                    margin: 0;
                    font-size: 18px;
                    color: #e8e4f0;
                    font-weight: 600;
                    letter-spacing: 0.5px;
            }

            .modal-close {
                    background: rgba(255, 255, 255, 0.06);
                    border: none;
                    width: 32px;
                    height: 32px;
                    border-radius: 50%;
                    font-size: 18px;
                    color: rgba(255, 255, 255, 0.45);
                    cursor: pointer;
                    padding: 0;
                    line-height: 32px;
                    text-align: center;
                    transition: all 0.2s;
            }

            .modal-close:hover {
                    color: #f96c9f;
                    background: rgba(249, 108, 159, 0.1);
            }

            .modal-body {
                    padding: 16px 20px;
                    overflow-y: auto;
                    flex: 1;
            }

            .modal-body::-webkit-scrollbar {
                    width: 4px;
            }

            .modal-body::-webkit-scrollbar-track {
                    background: transparent;
            }

            .modal-body::-webkit-scrollbar-thumb {
                    background: rgba(167, 139, 250, 0.25);
                    border-radius: 2px;
            }

            .modal-footer {
                    padding: 14px 20px;
                    border-top: 1px solid rgba(255, 255, 255, 0.06);
                    display: flex;
                    gap: 10px;
                    justify-content: flex-end;
            }

            .history-item {
                    background: rgba(255, 255, 255, 0.04);
                    border: 1px solid rgba(255, 255, 255, 0.06);
                    border-radius: 14px;
                    padding: 14px 16px;
                    margin-bottom: 10px;
                    transition: all 0.25s ease;
                    cursor: pointer;
                    position: relative;
                    overflow: hidden;
            }

            .history-item::before {
                    content: '';
                    position: absolute;
                    left: 0;
                    top: 0;
                    bottom: 0;
                    width: 3px;
                    background: linear-gradient(180deg, #a78bfa, #f96c9f);
                    border-radius: 0 3px 3px 0;
                    opacity: 0.7;
                    transition: opacity 0.25s;
            }

            .history-item:hover {
                    background: rgba(167, 139, 250, 0.08);
                    border-color: rgba(167, 139, 250, 0.15);
                    transform: translateY(-1px);
            }

            .history-item:hover::before {
                    opacity: 1;
            }

            .history-item-header {
                    display: flex;
                    justify-content: space-between;
                    align-items: flex-start;
                    margin-bottom: 6px;
            }

            .history-type {
                    font-size: 15px;
                    font-weight: 600;
                    color: #e8e4f0;
                    margin-bottom: 0;
                    letter-spacing: 0.3px;
            }

            .history-accuracy {
                    font-size: 11px;
                    font-weight: 500;
                    padding: 2px 8px;
                    border-radius: 10px;
                    white-space: nowrap;
                    flex-shrink: 0;
                    margin-left: 8px;
            }

            .history-accuracy.high {
                    background: rgba(80, 200, 120, 0.15);
                    color: #50c878;
            }

            .history-accuracy.mid {
                    background: rgba(240, 180, 60, 0.15);
                    color: #d4a82a;
            }

            .history-accuracy.low {
                    background: rgba(249, 108, 159, 0.15);
                    color: #f96c9f;
            }

            .history-title {
                    font-size: 13px;
                    color: rgba(255, 255, 255, 0.5);
                    margin-bottom: 8px;
                    line-height: 1.4;
            }

            .history-time {
                    font-size: 11px;
                    color: rgba(255, 255, 255, 0.3);
                    display: flex;
                    align-items: center;
                    gap: 4px;
            }

            .history-scores {
                    display: flex;
                    gap: 6px;
                    margin-top: 10px;
                    padding-top: 10px;
                    border-top: 1px solid rgba(255, 255, 255, 0.05);
            }

            .history-score-tag {
                    display: flex;
                    align-items: center;
                    gap: 3px;
                    font-size: 10px;
                    color: rgba(255, 255, 255, 0.45);
                    background: rgba(255, 255, 255, 0.03);
                    padding: 3px 7px;
                    border-radius: 6px;
            }

            .history-score-tag .dim-letter {
                    font-weight: 700;
                    font-size: 11px;
            }

            .history-score-tag.dim-O .dim-letter { color: #a78bfa; }
            .history-score-tag.dim-C .dim-letter { color: #50c878; }
            .history-score-tag.dim-E .dim-letter { color: #f96c9f; }
            .history-score-tag.dim-A .dim-letter { color: #60a5fa; }
            .history-score-tag.dim-N .dim-letter { color: #f59e0b; }

            .history-empty {
                    text-align: center;
                    padding: 40px 20px;
                    color: rgba(255, 255, 255, 0.35);
            }

            .history-empty i {
                    font-size: 40px;
                    color: rgba(255, 255, 255, 0.15);
                    margin-bottom: 16px;
                    display: block;
            }

            .history-empty p:last-child {
                    font-size: 12px;
                    color: rgba(255, 255, 255, 0.22);
                    margin-top: 8px;
            }

            .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;
            }

            /* 海报生成加载提示 */
            .poster-loading {
                    position: fixed;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    background: rgba(0, 0, 0, 0.85);
                    color: #ffffff;
                    padding: 20px 40px;
                    border-radius: 12px;
                    font-size: 16px;
                    z-index: 10000;
                    display: flex;
                    align-items: center;
                    gap: 12px;
                    background: rgba(10, 10, 20, 0.92);
                    -webkit-backdrop-filter: blur(10px);
                    border: 1px solid rgba(167, 139, 250, 0.35);
            }

            .poster-loading i {
                    font-size: 20px;
                    color: var(--color-primary);
            }

            /* 按钮组样式优化 */
            .btn-group {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 12px;
                    justify-content: center;
                    margin-top: 30px;
            }

            .btn-group .btn-primary,
            .btn-group .btn-secondary {
                    flex: 0 1 auto;
                    min-width: 140px;
            }

            @media (max-width: 600px) {
                .btn-group {
                        flex-direction: column;
                }

                .btn-group .btn-primary,
                .btn-group .btn-secondary {
                        width: 100%;
                }
            }
            /* 海报预览弹窗样式 */
            .poster-preview-modal {
                    position: fixed;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    z-index: 10001;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    opacity: 0;
                    transition: opacity 0.3s ease;
            }
            .poster-preview-modal.active {
                    opacity: 1;
            }
            .poster-preview-overlay {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background: rgba(0, 0, 0, 0.85);
                    -webkit-backdrop-filter: blur(10px);
            }
            .poster-preview-container {
                    position: relative;
                    z-index: 1;
                    max-width: 90%;
                    max-height: 90%;
                    background: #1a1a2e;
                    border-radius: 16px;
                    overflow: hidden;
                    display: flex;
                    flex-direction: column;
                    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
                    border: 1px solid rgba(167, 139, 250, 0.3);
            }
            .poster-preview-header {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 20px 24px;
                    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
            }
            .poster-preview-header h3 {
                    margin: 0;
                    font-size: 20px;
                    font-weight: 600;
                    color: #ffffff;
            }
            .poster-preview-close {
                    background: transparent;
                    border: none;
                    color: #9ca3af;
                    font-size: 24px;
                    cursor: pointer;
                    padding: 0;
                    width: 32px;
                    height: 32px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border-radius: 8px;
                    transition: all 0.2s;
            }
            .poster-preview-close:hover {
                    background: rgba(255, 255, 255, 0.1);
                    color: #ffffff;
            }
            .poster-preview-content {
                    padding: 20px;
                    overflow-y: auto;
                    flex: 1;
                    display: flex;
                    justify-content: center;
                    align-items: flex-start;
            }
            .poster-preview-image {
                    max-width: 100%;
                    height: auto;
                    border-radius: 8px;
                    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            }
            .poster-preview-footer {
                    padding: 20px 24px;
                    border-top: 1px solid rgba(167, 139, 250, 0.2);
                    background: rgba(26, 26, 46, 0.5);
            }
            .poster-preview-tip {
                    margin: 0 0 16px 0;
                    padding: 12px 16px;
                    background: rgba(167, 139, 250, 0.1);
                    border-radius: 8px;
                    color: #c4b5fd;
                    font-size: 14px;
                    text-align: center;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 8px;
            }
            .poster-preview-tip i {
                    font-size: 16px;
            }
            .poster-preview-actions {
                    display: flex;
                    gap: 12px;
                    justify-content: center;
            }
            .poster-download-btn,
            .poster-close-btn {
                    padding: 12px 24px;
                    border-radius: 8px;
                    font-size: 15px;
                    font-weight: 500;
                    cursor: pointer;
                    transition: all 0.2s;
                    border: none;
                    display: flex;
                    align-items: center;
                    gap: 8px;
            }
            .poster-download-btn {
                    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
                    color: #ffffff;
                    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
            }
            .poster-download-btn:hover {
                    transform: translateY(-2px);
                    box-shadow: 0 6px 20px rgba(167, 139, 250, 0.4);
            }
            .poster-close-btn {
                    background: rgba(255, 255, 255, 0.1);
                    color: #ffffff;
                    border: 1px solid rgba(255, 255, 255, 0.2);
            }
            .poster-close-btn:hover {
                    background: rgba(255, 255, 255, 0.15);
            }
            @media (max-width: 600px) {
                .poster-preview-container {
                        max-width: 95%;
                        max-height: 95%;
                }
                .poster-preview-header {
                        padding: 16px 20px;
                }
                .poster-preview-header h3 {
                        font-size: 18px;
                }
                .poster-preview-content {
                        padding: 16px;
                }
                .poster-preview-footer {
                        padding: 16px 20px;
                }
                .poster-preview-actions {
                        flex-direction: column;
                }
                .poster-download-btn,
                .poster-close-btn {
                        width: 100%;
                        justify-content: center;
                }
            }
            /* 密码提示文字样式 */
            .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: #a78bfa;
            }
            .password-link {
                    color: #a78bfa;
                    text-decoration: none;
                    font-weight: 500;
                    border-bottom: 1px dashed #a78bfa;
                    transition: all 0.2s;
            }
            .password-link:hover {
                    color: #c4b5fd;
                    border-bottom-color: #c4b5fd;
            }
            @media (max-width: 600px) {
                .password-hint {
                        font-size: 12px;
                }
            }





/* 禁止移动端缩放 - iOS兼容 */
html {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

/* 允许输入框选择文字 */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 禁止双击缩放 */
* {
    touch-action: manipulation;
}

/* iOS Safari 特定修复 */
@supports (-webkit-touch-callout: none) {
    html {
        -webkit-text-size-adjust: 100%;
    }
}

/* 完成提示弹窗样式 */
.completion-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.completion-dialog.active {
    opacity: 1;
}

.completion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.completion-content {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(167, 139, 250, 0.3);
    border: 1px solid rgba(167, 139, 250, 0.3);
    text-align: center;
}

.completion-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.completion-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.completion-icon {
    font-size: 60px;
    color: #a78bfa;
    margin-bottom: 20px;
}

.completion-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.completion-time {
    font-size: 16px;
    color: #c4b5fd;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.completion-time strong {
    color: #a78bfa;
    font-size: 20px;
}

.completion-desc {
    font-size: 14px;
    color: #9ca3af;
    margin: 0 0 30px 0;
}

.completion-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.completion-btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.completion-btn.primary {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.4);
}

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

.completion-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #c4b5fd;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.completion-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

@media (max-width: 600px) {
    .completion-content {
        padding: 30px 20px;
    }
    
    .completion-icon {
        font-size: 50px;
    }
    
    .completion-title {
        font-size: 20px;
    }
    
    .completion-time {
        font-size: 14px;
    }
    
    .completion-time strong {
        font-size: 18px;
    }
}

/* ===== PFT 2.0 大五人格新增样式 ===== */

/* Likert 5点量表 */
.options-container.likert-mode {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.likert-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.5) 0%, rgba(17, 24, 39, 0.7) 100%);
    border: 1.5px solid rgba(55, 65, 81, 0.5);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.likert-option:hover {
    border-color: rgba(167, 139, 250, 0.50);
    background: rgba(167, 139, 250, 0.10);
}

.likert-option.selected {
    border-color: var(--color-primary);
    background: rgba(167, 139, 250, 0.18);
    box-shadow: 0 0 16px rgba(167, 139, 250, 0.25);
}

.likert-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(55, 65, 81, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.likert-option:hover .likert-circle {
    border-color: rgba(167, 139, 250, 0.5);
}

.likert-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.25s ease;
}

.likert-option.selected .likert-circle {
    border-color: var(--color-primary);
    background: var(--color-primary);
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.4);
}

.likert-option.selected .likert-dot {
    background: #fff;
}

.likert-label {
    font-size: 1em;
    color: #d1d5db;
    line-height: 1.5;
}

.likert-option.selected .likert-label {
    color: #fff;
    font-weight: 500;
}

/* 5点量表快捷行（可选的横向5点） */
.likert-scale-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 20px;
}

.likert-scale-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(55, 65, 81, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
    color: #9ca3af;
}

.likert-scale-dot:hover {
    border-color: rgba(167, 139, 250, 0.5);
    color: var(--color-primary);
}

.likert-scale-dot.selected {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(167, 139, 250, 0.4);
}

/* 雷达图区域 */
.radar-section {
    text-align: center;
    margin-bottom: 35px;
}

.radar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 320px;
    margin: 0 auto;
}

.radar-container canvas {
    max-width: 100%;
    height: auto;
}

/* 维度分析条 - 大五版 */
.dimension-score-bar {
    position: relative;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    margin: 10px 0 6px;
    overflow: visible;
}

.dimension-score-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease-out;
    position: relative;
}

.dimension-score-midline {
    position: absolute;
    top: -2px;
    left: 50%;
    width: 2px;
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
}

.dimension-sub-dims {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.sub-dim-tag {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(167, 139, 250, 0.1);
    color: rgba(167, 139, 250, 0.8);
    border: 1px solid rgba(167, 139, 250, 0.15);
}

/* 维度项间距调整 */
.dimension-item {
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.3) 0%, rgba(17, 24, 39, 0.5) 100%);
    border-radius: 14px;
    border: 1px solid rgba(55, 65, 81, 0.3);
}

/* 完成弹窗 - 注意力检测提示 */
.completion-attn {
    padding: 8px 12px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    line-height: 1.5;
}

/* 响应式 - Likert */
@media (max-width: 600px) {
    .likert-option {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .likert-circle {
        width: 24px;
        height: 24px;
    }
    
    .likert-dot {
        width: 12px;
        height: 12px;
    }
    
    .likert-label {
        font-size: 0.9em;
    }
    
    .dimension-score-bar {
        height: 8px;
    }
    
    /* 响应式 - analysis-card */
    .analysis-card {
        margin-bottom: 16px;
    }
    .analysis-card-header {
        padding: 16px 20px 14px;
        gap: 10px;
    }
    .analysis-card-icon {
        font-size: 1.3em;
    }
    .analysis-card-type {
        font-size: 0.75em;
        padding: 3px 10px;
    }
    .analysis-card-header .analysis-card-title {
        font-size: 0.9em;
        padding: 0;
        margin: 0 0 0 4px;
    }
    .analysis-card > .analysis-card-title {
        font-size: 1.1em;
        padding: 0 20px;
        margin-bottom: 12px;
    }
    .analysis-card-body {
        font-size: 0.95em;
        padding: 0 20px 20px;
        line-height: 1.8;
    }

    /* 响应式 - theory-card */
    .theory-card {
        margin-bottom: 12px;
    }
    .theory-card-header {
        padding: 10px 14px 8px;
        gap: 8px;
    }
    .theory-card-icon {
        font-size: 1em;
    }
    .theory-card-label {
        font-size: 0.7em;
        padding: 2px 8px;
    }
    .theory-card-name {
        font-size: 1em;
        padding: 12px 14px 8px;
    }
    .theory-card-desc {
        font-size: 0.88em;
        padding: 0 14px;
        line-height: 1.7;
    }
    .theory-card-source {
        font-size: 0.75em;
        padding: 12px 14px 16px;
    }

    /* 响应式 - action-item */
    .action-item {
        padding: 14px 16px;
        gap: 10px;
    }
    .action-item-icon {
        font-size: 1.1em;
    }
    .action-item-number {
        width: 24px;
        height: 24px;
        font-size: 0.75em;
    }
    .action-item-title {
        font-size: 0.95em;
    }
    .action-item-desc {
        font-size: 0.85em;
    }
}

/* 准确度注释区域 */


/* ============================================
 * 客服组件 - 深色主题覆盖
 * Health模块始终深色背景，覆盖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: var(--color-primary);
    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: #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;
    }
}

/* ========== 清除确认弹窗 ========== */
#confirm-modal {
    display: none;
}

#confirm-modal.show {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.confirm-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    animation: fadeIn .2s ease;
}

.confirm-box {
    position: relative;
    background: #1a1a2e;
    border: 1px solid rgba(167,139,250,0.2);
    border-radius: 16px;
    width: min(320px, 88vw);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp .25s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.confirm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.confirm-title {
    font-size: 16px;
    font-weight: 600;
    color: #c4b5fd;
}

.confirm-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color .15s;
}

.confirm-close:hover {
    color: #a78bfa;
}

.confirm-body {
    padding: 20px 16px;
    text-align: center;
}

.confirm-text {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    word-break: break-all;
}

.confirm-footer {
    display: flex;
    gap: 10px;
    padding: 12px 16px 16px;
}

.confirm-footer button {
    flex: 1;
    padding: 10px 0;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}

.confirm-footer .btn-secondary {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
}

.confirm-footer .btn-secondary:hover {
    background: rgba(255,255,255,0.14);
}

.confirm-footer .btn-danger {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: #fff;
}

.confirm-footer .btn-danger:hover {
    opacity: 0.88;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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