/* ========================================
   在线中医体质辨识 - 004tizhi.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);
    color: #6d55fe;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-back-btn:hover {
    background: rgba(109, 85, 254, 0.15);
    transform: scale(0.98);
}

/* 底部 */
.tool-footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    padding: 0;
    margin-top: auto;
}

.tool-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
    text-align: center;
}

.tool-copyright {
    font-size: 13px;
    color: #8E8E93;
    margin: 0;
}

.tool-copyright a {
    color: #6d55fe;
    text-decoration: none;
    margin: 0 8px;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.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);
}

/* 主内容区 */
.tizhi-main {
    min-height: calc(100vh - 120px);
}

.tizhi-section {
    padding: 24px 0 40px;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f7 100%);
}

.tizhi-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* 介绍区域 */
.tizhi-intro {
    background: linear-gradient(135deg, 
        #2a2440 0%, 
        #1f1a35 50%,
        #2a2440 100%);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    border: 2px solid rgba(109, 85, 254, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(109, 85, 254, 0.2) inset,
                0 4px 8px rgba(0, 0, 0, 0.2),
                0 0 60px rgba(109, 85, 254, 0.15);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.tizhi-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(109, 85, 254, 0.6) 50%, 
        transparent 100%);
}

.tizhi-intro::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(109, 85, 254, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.intro-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(109, 85, 254, 0.5);
}

.intro-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.intro-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--brand-purple-light);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.start-test-btn {
    padding: 14px 48px;
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    border: none;
    border-radius: 24px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(109, 85, 254, 0.4);
}

.start-test-btn:hover {
    background: linear-gradient(135deg, var(--brand-purple-light) 0%, #9d8dff 100%);
    box-shadow: 0 8px 24px rgba(109, 85, 254, 0.5);
    transform: translateY(-2px);
}

.start-test-btn:active {
    transform: translateY(0) scale(0.98);
}

.intro-history-btn {
    margin-top: 12px;
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.intro-history-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.intro-history-btn:active {
    transform: translateY(0) scale(0.98);
}

.intro-history-btn .btn-icon {
    font-size: 16px;
}

.intro-history-btn .btn-text {
    font-size: 14px;
}

/* 个人信息填写区域 */
.tizhi-userinfo {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-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);
    isolation: isolate;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.userinfo-card {
    max-width: 500px;
    margin: 0 auto;
}

.userinfo-title {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 12px;
    text-align: center;
    letter-spacing: -0.02em;
}

.userinfo-desc {
    font-size: 14px;
    color: #6e6e73;
    text-align: center;
    margin: 0 0 32px;
    line-height: 1.6;
}

.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: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8ed;
    border-radius: 12px;
    font-size: 15px;
    color: #1d1d1f;
    transition: all 0.2s ease;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(109, 85, 254, 0.1);
}

.form-input::placeholder {
    color: #8e8e93;
}

.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.2s ease;
}

.skip-btn {
    background: #f2f2f7;
    color: #6e6e73;
}

.skip-btn:hover {
    background: #e8e8ed;
}

.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.3);
}

.confirm-btn:hover {
    background: linear-gradient(135deg, var(--brand-purple-light) 0%, #9d8dff 100%);
    box-shadow: 0 6px 16px rgba(109, 85, 254, 0.4);
    transform: translateY(-1px);
}

.confirm-btn:active, .skip-btn:active {
    transform: scale(0.98);
}

/* 问卷区域 */
.tizhi-questionnaire {
    background: linear-gradient(135deg, 
        #2a2440 0%, 
        #1f1a35 50%,
        #2a2440 100%);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    border: 2px solid rgba(109, 85, 254, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(109, 85, 254, 0.2) inset,
                0 4px 8px rgba(0, 0, 0, 0.2),
                0 0 60px rgba(109, 85, 254, 0.15);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* 浅色主题 */
.tizhi-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);
}

.tizhi-questionnaire::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(109, 85, 254, 0.6) 50%, 
        transparent 100%);
}

.tizhi-questionnaire::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(109, 85, 254, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* 主题切换按钮 */
.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;
    transition: transform 0.3s ease;
}

.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);
}

.hint-item span {
    white-space: nowrap;
}

.progress-bar {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) inset;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.light-theme .progress-bar {
    background: #f2f2f7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) inset;
}

.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%;
    box-shadow: 0 0 12px rgba(133, 114, 255, 0.6);
}

.light-theme .progress-fill {
    background: linear-gradient(90deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    box-shadow: none;
}

.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);
    transition: color 0.3s ease, background 0.3s ease;
}

.light-theme .progress-text {
    color: var(--brand-purple);
    background: rgba(109, 85, 254, 0.1);
}

.question-card {
    margin-bottom: 32px;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-purple-light);
    margin-bottom: 12px;
    text-shadow: 0 0 8px rgba(133, 114, 255, 0.5);
    transition: color 0.3s ease;
}

.light-theme .question-number {
    color: var(--brand-purple);
    text-shadow: none;
}

.question-text {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.light-theme .question-text {
    color: #1d1d1f;
    text-shadow: none;
}

.options-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.option-btn {
    padding: 20px 12px;
    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: 64px;
    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-key {
    color: #999;
    background: rgba(0, 0, 0, 0.05);
    border-color: 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.selected .option-key {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.light-theme .option-btn {
    background: #fff;
    border-color: #e8e8ed;
    color: #1d1d1f;
}

.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: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),
                0 0 40px rgba(133, 114, 255, 0.3);
    animation: selectBounce 0.35s 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::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--brand-purple);
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@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);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.light-theme .nav-btn:hover:not(:disabled) {
    border-color: var(--brand-purple);
    background: rgba(109, 85, 254, 0.05);
    box-shadow: 0 2px 8px rgba(109, 85, 254, 0.1);
}

.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);
    transform: translateY(-1px);
}

.light-theme .nav-btn.next-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--brand-purple-light) 0%, #9d8dff 100%);
    box-shadow: 0 6px 16px rgba(109, 85, 254, 0.4);
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes optionPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 24px rgba(109, 85, 254, 0.4);
    }
    100% {
        transform: scale(1);
    }
}

/* 结果区域 */
.tizhi-result {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 0.5px solid var(--apple-border);
    box-shadow: 0 4px 16px var(--apple-shadow);
    isolation: isolate;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.result-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 20px;
    text-align: center;
    letter-spacing: -0.02em;
}

/* 报告头部 */
.result-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border: 2px solid rgba(109, 85, 254, 0.15);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.result-main-title {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 20px;
    text-align: center;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 16px;
}

.result-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    border-radius: 2px;
}

/* 用户信息 */
.result-user-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(109, 85, 254, 0.1);
}

.user-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.info-label {
    color: #6e6e73;
    font-weight: 500;
    white-space: nowrap;
}

.info-value {
    color: #1d1d1f;
    font-weight: 600;
}

/* 雷达图容器 */
.result-chart-container {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.result-chart-container canvas {
    max-height: 400px;
}

/* 详细调理方案 */
.result-details {
    margin-bottom: 24px;
}

.detail-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.detail-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 16px;
    padding-left: 12px;
    position: relative;
}

.detail-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    border-radius: 2px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.detail-item {
    padding: 12px;
    background: rgba(109, 85, 254, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(109, 85, 254, 0.1);
    font-size: 13px;
    line-height: 1.6;
    color: #1d1d1f;
}

.detail-item strong {
    color: var(--brand-purple);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

/* 历史记录弹窗 */
.history-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.history-modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.history-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.history-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.history-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 18px;
    color: #6e6e73;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.history-modal-body {
    padding: 20px 24px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.history-item {
    background: rgba(109, 85, 254, 0.03);
    border: 1px solid rgba(109, 85, 254, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.history-item:hover {
    background: rgba(109, 85, 254, 0.08);
    border-color: rgba(109, 85, 254, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 85, 254, 0.15);
}

.history-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.history-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-item-date {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
}

.history-item-user {
    font-size: 12px;
    color: var(--brand-purple);
    font-weight: 500;
}

.history-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-item-view {
    padding: 4px 12px;
    background: rgba(109, 85, 254, 0.1);
    border: 1px solid rgba(109, 85, 254, 0.2);
    border-radius: 6px;
    font-size: 12px;
    color: var(--brand-purple);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateX(-10px);
}

.history-item:hover .history-item-view {
    opacity: 1;
    transform: translateX(0);
}

.history-item-view:hover {
    background: rgba(109, 85, 254, 0.2);
    border-color: rgba(109, 85, 254, 0.3);
}

.history-item-delete {
    padding: 4px 12px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 6px;
    font-size: 12px;
    color: #ff6b6b;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    position: relative;
}

.history-item-delete:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.3);
}

.history-item-types {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.history-type-tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8e8e93;
    font-size: 14px;
}

.result-main {
    margin-bottom: 24px;
}

.result-type {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    border: 2px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.result-type-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.result-type-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
}

.result-type-icon {
    font-size: 28px;
}

.result-type-score {
    font-size: 24px;
    font-weight: 700;
}

.result-type-bar {
    height: 8px;
    background: var(--apple-light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.result-type-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.result-type-desc {
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.6;
    margin-bottom: 16px;
}

.result-type-advice {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    padding: 12px;
}

.advice-title {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.advice-text {
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.6;
}

.result-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    padding: 14px 24px;
    border: 2px solid var(--apple-border);
    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;
}

.action-btn:hover {
    border-color: var(--brand-purple);
    background: rgba(109, 85, 254, 0.05);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    border-color: transparent;
    color: #fff;
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, var(--brand-purple-light) 0%, #9d8dff 100%);
    box-shadow: 0 4px 12px rgba(109, 85, 254, 0.3);
}

/* 体质类型说明 */
.tizhi-types {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 0.5px solid var(--apple-border);
    box-shadow: 0 4px 16px var(--apple-shadow);
    isolation: isolate;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.types-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 16px;
    letter-spacing: -0.022em;
    padding-left: 12px;
    position: relative;
}

.types-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    border-radius: 2px;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.type-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 85, 254, 0.12);
    border-color: rgba(109, 85, 254, 0.15);
}

.type-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.type-name {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px;
}

.type-desc {
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.5;
    margin: 0;
}

/* 注意事项 */
.tizhi-notice {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 16px;
    padding: 20px;
    border: 0.5px solid var(--apple-border);
    box-shadow: 0 4px 16px var(--apple-shadow);
    isolation: isolate;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.notice-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 16px;
    letter-spacing: -0.022em;
    padding-left: 12px;
    position: relative;
}

.notice-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    border-radius: 2px;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.notice-list li {
    position: relative;
    padding: 14px 16px 14px 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #1d1d1f;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.notice-list li:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(109, 85, 254, 0.08);
    border-color: rgba(109, 85, 254, 0.15);
}

.notice-list li strong {
    color: var(--brand-purple);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

/* 响应式 */
@media (max-width: 768px) {
    .tizhi-section {
        padding: 16px 0 32px;
    }
    
    .tizhi-container {
        padding: 0 16px;
    }
    
    .tizhi-intro {
        padding: 24px 20px;
    }
    
    .intro-title {
        font-size: 22px;
    }
    
    .intro-stats {
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .tizhi-questionnaire, .tizhi-result, .tizhi-types, .tizhi-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: 56px;
    }
    
    /* 移动端隐藏选项按钮上的快捷键 */
    .option-key {
        display: none;
    }
    
    .types-grid {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .notice-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .intro-stats {

    }
    
    .nav-buttons {
        flex-direction: column;
    }
}
