/* ========================================
   在线心理量表检测 - 005xinli.css
   Apple风格 + 网站紫色主题融合版
   ======================================== */

/* 全局重置 */
body, html {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ========================================
   工具页面通用顶部底部样式
   所有工具页面共用
   ======================================== */

/* 顶部导航 */
.tool-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.tool-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tool-logo {
    display: flex;
    align-items: center;
}

.tool-logo-img {
    height: 32px;
    width: auto;
}

.tool-page-title-link {
    flex: 1;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.tool-page-title-link:hover {
    opacity: 0.8;
}

.tool-page-title {
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tool-page-title::before {
    content: '✦';
    font-size: 14px;
    color: #6d55fe;
    opacity: 0.6;
}

.tool-page-title::after {
    content: '✦';
    font-size: 14px;
    color: #6d55fe;
    opacity: 0.6;
}

.tool-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: rgba(109, 85, 254, 0.08);
    border: 1px solid rgba(109, 85, 254, 0.15);
    border-radius: 20px;
    color: #6d55fe;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-back-btn:hover {
    background: rgba(109, 85, 254, 0.15);
    border-color: rgba(109, 85, 254, 0.3);
    transform: translateX(-2px);
}

.tool-back-btn svg {
    transition: transform 0.2s ease;
}

.tool-back-btn:hover svg {
    transform: translateX(-2px);
}

/* 底部 */
.tool-footer {
    background: #f5f5f7;
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    padding: 0;
}

.tool-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
    text-align: center;
}

.tool-copyright {
    font-size: 13px;
    color: #6e6e73;
    margin: 0;
}

.tool-copyright a {
    color: #6d55fe;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.tool-copyright a:hover {
    opacity: 0.7;
}

/* 响应式 - 顶部底部 */
@media (max-width: 768px) {
    .tool-header-inner {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .tool-logo-img {
        height: 28px;
    }
    
    .tool-page-title {
        font-size: 16px;
        gap: 6px;
    }
    
    .tool-page-title::before,
    .tool-page-title::after {
        font-size: 12px;
    }
    
    .tool-back-btn {
        padding: 6px 12px;
    }
    
    .tool-back-btn span {
        display: none;
    }
    
    .tool-footer-inner {
        padding: 20px 16px;
    }
}

/* ========================================
   心理量表专用样式
   ======================================== */

:root {
    --brand-purple: #6d55fe;
    --brand-purple-light: #8572ff;
    --brand-purple-dark: #5a45d8;
    --apple-gray: #8E8E93;
    --apple-light-gray: #F2F2F7;
    --apple-border: rgba(0, 0, 0, 0.08);
    --apple-shadow: rgba(109, 85, 254, 0.08);
}

/* 主内容区 */
.xinli-main {
    min-height: calc(100vh - 120px);
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
}

.xinli-section {
    padding: 24px 0 48px;
}

.xinli-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用隐藏类 */
.hidden {
    display: none !important;
}

/* 介绍区域 */
.xinli-intro {
    background: linear-gradient(135deg, 
        #2a2440 0%, 
        #3d3456 50%,
        #4a4066 100%);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* 主光晕效果 */
.xinli-intro::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(109, 85, 254, 0.25) 0%, rgba(133, 114, 255, 0.15) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

/* 次要光晕效果 */
.xinli-intro::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(157, 141, 255, 0.2) 0%, rgba(133, 114, 255, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 10s ease-in-out infinite reverse;
}

/* 添加装饰性网格 */
.xinli-intro {
    background-image: 
        linear-gradient(135deg, #2a2440 0%, #3d3456 50%, #4a4066 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0px, transparent 1px, transparent 40px, rgba(255, 255, 255, 0.02) 41px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0px, transparent 1px, transparent 40px, rgba(255, 255, 255, 0.02) 41px);
}

/* 添加顶部装饰线 */
.xinli-intro {
    border-top: 3px solid rgba(109, 85, 254, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(20px, -20px) scale(1.1);
        opacity: 0.8;
    }
}

.intro-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.intro-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.intro-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.start-test-btn {
    padding: 16px 48px;
    background: #fff;
    border: none;
    border-radius: 24px;
    color: var(--brand-purple);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.start-test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.intro-history-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.intro-history-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 问卷区域 */
.xinli-questionnaire {
    background: linear-gradient(135deg, 
        #2a2440 0%, 
        #3d3456 50%,
        #4a4066 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    isolation: isolate;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.xinli-questionnaire::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(109, 85, 254, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(133, 114, 255, 0.1) 0%, transparent 50%);
    border-radius: 20px;
    pointer-events: none;
}

.xinli-questionnaire::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
    border-radius: 20px;
    pointer-events: none;
}

/* 浅色主题 */
.xinli-questionnaire.light-theme {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(109, 85, 254, 0.2);
    box-shadow: 0 4px 16px rgba(109, 85, 254, 0.1);
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(15deg);
}

.theme-icon {
    font-size: 20px;
}

.light-theme .theme-toggle {
    background: rgba(109, 85, 254, 0.1);
    border-color: rgba(109, 85, 254, 0.3);
}

.light-theme .theme-toggle:hover {
    background: rgba(109, 85, 254, 0.2);
}

/* 快捷键提示 */
.keyboard-hints {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

.light-theme .keyboard-hints {
    background: rgba(109, 85, 254, 0.05);
    border-color: rgba(109, 85, 254, 0.15);
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.light-theme .hint-item {
    color: #666;
}

.hint-item kbd {
    display: inline-block;
    padding: 3px 8px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 24px;
    text-align: center;
}

.light-theme .hint-item kbd {
    color: var(--brand-purple);
    background: rgba(109, 85, 254, 0.1);
    border-color: rgba(109, 85, 254, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 32px;
    overflow: hidden;
}

.light-theme .progress-bar {
    background: #f2f2f7;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-purple-light) 0%, #9d8dff 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: -28px;
    right: 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(109, 85, 254, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.light-theme .progress-text {
    color: var(--brand-purple);
    background: rgba(109, 85, 254, 0.1);
}

.question-card {
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.dimension-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--brand-purple);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 16px;
    margin-bottom: 16px;
}

.question-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-purple-light);
    margin-bottom: 12px;
}

.light-theme .question-number {
    color: var(--brand-purple);
}

.question-text {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
    line-height: 1.5;
}

.light-theme .question-text {
    color: #1d1d1f;
}

.options-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.option-btn {
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 80px;
    backdrop-filter: blur(10px);
}

.option-text {
    display: block;
}

.option-key {
    display: inline-block;
    padding: 2px 6px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    min-width: 18px;
    text-align: center;
}

.light-theme .option-btn {
    background: #fff;
    border-color: #e8e8ed;
    color: #1d1d1f;
}

.light-theme .option-key {
    color: #999;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.option-btn:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.light-theme .option-btn:hover {
    border-color: #d1d1d6;
    background: #fafafa;
    color: #1d1d1f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.option-btn:hover .option-key {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.light-theme .option-btn:hover .option-key {
    color: var(--brand-purple);
    background: rgba(109, 85, 254, 0.1);
    border-color: rgba(109, 85, 254, 0.3);
}

.option-btn:active {
    transform: scale(0.96);
}

.option-btn.selected {
    border-color: var(--brand-purple-light);
    background: linear-gradient(135deg, 
        rgba(133, 114, 255, 0.9) 0%, 
        rgba(157, 141, 255, 0.85) 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(133, 114, 255, 0.3),
                0 6px 20px rgba(133, 114, 255, 0.5);
    animation: selectBounce 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.light-theme .option-btn.selected {
    border-color: var(--brand-purple);
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(109, 85, 254, 0.2),
                0 4px 12px rgba(109, 85, 254, 0.3);
}

.option-btn.selected .option-key {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.option-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--brand-purple);
    font-weight: bold;
}

@keyframes selectBounce {
    0% {
        transform: scale(0.96);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.nav-btn {
    flex: 1;
    padding: 14px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.light-theme .nav-btn {
    background: #fff;
    border-color: #e8e8ed;
    color: #1d1d1f;
}

.nav-btn:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.light-theme .nav-btn:hover:not(:disabled) {
    border-color: var(--brand-purple);
    background: rgba(109, 85, 254, 0.05);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn.next-btn {
    background: linear-gradient(135deg, var(--brand-purple-light) 0%, #9d8dff 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(133, 114, 255, 0.4);
}

.light-theme .nav-btn.next-btn {
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    box-shadow: 0 4px 12px rgba(109, 85, 254, 0.3);
}

.nav-btn.next-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #9d8dff 0%, #b8a9ff 100%);
    box-shadow: 0 6px 16px rgba(133, 114, 255, 0.5);
}

/* 结果区域 */
.xinli-result {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    border: 0.5px solid var(--apple-border);
    box-shadow: 0 4px 16px var(--apple-shadow);
}

.result-title {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 24px;
    text-align: center;
}

/* 雷达图和总体评估并列容器 */
.result-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.result-chart-container {
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-overall {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.overall-card {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
    border-radius: 16px;
    margin-bottom: 24px;
}

.overall-score-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(243, 244, 246, 0.8) 0%, rgba(229, 231, 235, 0.6) 100%);
    border: 3px solid rgba(209, 213, 219, 0.6);
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
}

.overall-score-badge::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.3), rgba(209, 213, 219, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.overall-score {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.overall-score-label {
    font-size: 12px;
    color: #8e8e93;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.overall-level {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.level-icon {
    font-size: 12px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.overall-desc {
    font-size: 15px;
    color: #6e6e73;
    margin-bottom: 24px;
    line-height: 1.6;
}

.overall-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-box {
    padding: 16px 12px;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-box.highlight {
    background: linear-gradient(135deg, rgba(243, 244, 246, 0.5) 0%, rgba(249, 250, 251, 0.8) 100%);
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #8e8e93;
    font-weight: 500;
}

.overall-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(243, 244, 246, 0.6);
    border: 1px solid rgba(209, 213, 219, 0.5);
    border-radius: 10px;
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.5;
}

.overall-tip svg {
    flex-shrink: 0;
    color: #6b7280;
}

.overall-guidance {
    margin-bottom: 20px;
    padding: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.guidance-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    background: linear-gradient(135deg, #f8f8f8 0%, #fafafa 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
}

.guidance-title svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #4b5563;
}

.guidance-content {
    padding: 24px;
}

.guidance-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #1d1d1f;
    text-align: justify;
    letter-spacing: 0.3px;
}

/* 删除旧的列表样式 */
.guidance-list {
    display: none;
}

.overall-date {
    font-size: 13px;
    color: #8e8e93;
    margin-top: 12px;
}

.result-dimensions {
    margin-bottom: 24px;
}

/* 分数说明 */
.score-explanation {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.explanation-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    background: linear-gradient(135deg, #f8f8f8 0%, #fafafa 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.explanation-title svg {
    flex-shrink: 0;
    color: #4b5563;
}

.explanation-content {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.explanation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fafafa;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.explanation-item:hover {
    background: #f5f5f5;
    transform: translateX(2px);
}

.explanation-range {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.explanation-label {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    min-width: 36px;
}

.explanation-desc {
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.4;
}

.dimension-result {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.dimension-result:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dimension-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

.dimension-result-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
}

.dimension-result-icon {
    font-size: 24px;
}

.dimension-result-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dimension-result-score {
    font-size: 20px;
    font-weight: 700;
}

.dimension-expand-icon {
    flex-shrink: 0;
    color: #8e8e93;
    transition: transform 0.3s ease;
}

.dimension-result-bar {
    height: 8px;
    background: var(--apple-light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.dimension-result-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.dimension-result-level {
    font-size: 13px;
    font-weight: 500;
}

/* 维度详细信息 */
.dimension-detail {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-title::before {
    content: '';
    width: 3px;
    height: 14px;
    background: #6b7280;
    border-radius: 2px;
}

.detail-text {
    font-size: 14px;
    line-height: 1.6;
    color: #1d1d1f;
    margin: 0;
    text-align: justify;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-list li {
    font-size: 14px;
    line-height: 1.5;
    color: #1d1d1f;
    padding-left: 20px;
    position: relative;
}

.detail-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #8e8e93;
    font-weight: bold;
}

.detail-list.suggestions li::before {
    content: '✓';
    color: #10b981;
}

.advice-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.advice-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 16px;
}

.advice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advice-list li {
    padding: 12px 0 12px 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #1d1d1f;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.advice-list li:last-child {
    border-bottom: none;
}

.advice-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #6b7280;
    font-weight: bold;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.action-btn {
    padding: 12px 24px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    color: #1d1d1f;
    flex-shrink: 0;
    white-space: nowrap;
}

.action-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.action-btn.primary {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    border-color: transparent;
    color: #fff;
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 历史记录弹窗 */
.history-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.history-modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.history-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.history-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
}

.history-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.history-modal-body {
    padding: 16px 24px;
    overflow-y: auto;
}

.history-empty {
    text-align: center;
    padding: 48px 20px;
    color: #8e8e93;
    font-size: 15px;
}

.history-item {
    padding: 16px;
    background: #f5f5f7;
    border-radius: 12px;
    margin-bottom: 12px;
}

.history-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.history-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-item-date {
    font-size: 13px;
    color: #6e6e73;
}

.history-item-score {
    font-size: 15px;
    font-weight: 600;
}

.history-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.history-item-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(75, 85, 99, 0.08);
    border: 1px solid rgba(75, 85, 99, 0.2);
    border-radius: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item-view:hover {
    background: rgba(75, 85, 99, 0.15);
    border-color: rgba(75, 85, 99, 0.3);
}

.history-item-delete {
    padding: 8px 12px;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: 8px;
    color: #ff3b30;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item-delete:hover {
    background: rgba(255, 59, 48, 0.2);
}

/* 维度说明 */
.xinli-dimensions {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    border: 0.5px solid var(--apple-border);
    box-shadow: 0 4px 16px var(--apple-shadow);
}

.dimensions-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 20px;
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.dimension-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.3s ease;
}

.dimension-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 85, 254, 0.12);
    border-color: rgba(109, 85, 254, 0.15);
}

.dimension-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.dimension-name {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px;
}

.dimension-desc {
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.5;
    margin: 0;
}

/* 注意事项 */
.xinli-notice {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 16px;
    padding: 24px;
    border: 0.5px solid var(--apple-border);
    box-shadow: 0 4px 16px var(--apple-shadow);
}

.notice-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 16px;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.notice-list li {
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #1d1d1f;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.notice-list li strong {
    color: var(--brand-purple);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

/* 响应式 */
@media (max-width: 768px) {
    .xinli-section {
        padding: 16px 0 32px;
    }
    
    .xinli-container {
        padding: 0 16px;
    }
    
    .xinli-intro {
        padding: 32px 24px;
    }
    
    .intro-title {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .xinli-questionnaire, .xinli-result, .xinli-dimensions, .xinli-notice {
        padding: 20px;
    }
    
    .keyboard-hints {
        display: none;
    }
    
    .question-text {
        font-size: 18px;
    }
    
    .options-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .option-btn {
        padding: 16px 12px;
        min-height: 64px;
    }
    
    .option-key {
        display: none;
    }
    
    .dimensions-grid {
        grid-template-columns: 1fr;
    }
    
    /* 小屏时雷达图和总体评估垂直布局 */
    .result-overview {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .result-chart-container {
        padding: 16px;
        overflow: hidden;
    }
    
    .result-chart-container canvas {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .overall-score-badge {
        width: 120px;
        height: 120px;
    }
    
    .overall-score {
        font-size: 48px;
    }
    
    .overall-level {
        font-size: 20px;
    }
    
    /* 小屏时测评者信息紧凑布局 */
    .user-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .user-info-grid .user-info-item {
        padding: 10px 12px;
    }
    
    .user-info-grid .info-label {
        font-size: 11px;
    }
    
    .user-info-grid .info-value {
        font-size: 14px;
    }
    
    /* 小屏时统计卡片2列布局 */
    .overall-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-box {
        padding: 12px 10px;
    }
    
    .stat-icon {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
        line-height: 1.3;
    }
    
    /* 维度均分占满一行 */
    .overall-stats .stat-box:first-child {
        grid-column: 1 / -1;
    }
    
    .overall-score-badge {
        width: 120px;
        height: 120px;
    }
    
    .overall-score {
        font-size: 48px;
    }
    
    /* 小屏时分数说明单列布局 */
    .explanation-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .explanation-item {
        padding: 10px;
    }
    
    .explanation-range {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .explanation-label {
        font-size: 13px;
        min-width: 32px;
    }
    
    .explanation-desc {
        font-size: 12px;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .notice-list {
        grid-template-columns: 1fr;
    }
    
    .nav-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .overall-score {
        font-size: 48px;
    }
    
    .overall-level {
        font-size: 20px;
    }
}

/* 个人信息填写区域 */
.xinli-userinfo {
    background: linear-gradient(135deg, 
        #2a2440 0%, 
        #3d3456 50%,
        #4a4066 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    isolation: isolate;
}

.userinfo-card {
    max-width: 500px;
    margin: 0 auto;
}

.userinfo-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    text-align: center;
}

.userinfo-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin: 0 0 32px;
}

.userinfo-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input option {
    background: #2a2440;
    color: #fff;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-purple-light);
    background: rgba(255, 255, 255, 0.15);
}

.userinfo-actions {
    display: flex;
    gap: 12px;
}

.userinfo-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skip-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.skip-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.confirm-btn {
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(109, 85, 254, 0.4);
}

.confirm-btn:hover {
    background: linear-gradient(135deg, var(--brand-purple-light) 0%, #9d8dff 100%);
    box-shadow: 0 6px 16px rgba(109, 85, 254, 0.5);
}

/* 用户信息卡片（结果页面） */
.result-user-info-card {
    background: linear-gradient(135deg, rgba(243, 244, 246, 0.8) 0%, rgba(249, 250, 251, 1) 100%);
    border: 2px solid rgba(209, 213, 219, 0.5);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
}

.user-info-header svg {
    flex-shrink: 0;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.user-info-grid .user-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(209, 213, 219, 0.4);
}

.user-info-grid .info-label {
    font-size: 12px;
    color: #8e8e93;
    font-weight: 500;
}

.user-info-grid .info-value {
    font-size: 15px;
    color: #1d1d1f;
    font-weight: 600;
}

.history-item-user {
    font-size: 13px;
    color: #6e6e73;
    font-weight: 500;
}
