:root {
    /* TailwindUI风格的色彩系统 */
    --primary-color: #4f46e5; /* Indigo-600 */
    --primary-light: #6366f1; /* Indigo-500 */
    --primary-dark: #4338ca; /* Indigo-700 */
    --primary-300: #a5b4fc; /* Indigo-300 */
    --primary-400: #818cf8; /* Indigo-400 */
    --primary-500: #6366f1; /* Indigo-500 */
    --primary-600: #4f46e5; /* Indigo-600 */
    --primary-700: #4338ca; /* Indigo-700 */
    --success-color: #10b981; /* Emerald-500 */
    --warning-color: #f59e0b; /* Amber-500 */
    --danger-color: #ef4444; /* Red-500 */
    
    /* 文本颜色 */
    --text-primary: #111827; /* Gray-900 */
    --text-secondary: #374151; /* Gray-700 */
    --text-tertiary: #6b7280; /* Gray-500 */
    --text-quaternary: #9ca3af; /* Gray-400 */
    
    /* 背景颜色 */
    --bg-light: #f9fafb; /* Gray-50 */
    --bg-dark: #111827; /* Gray-900 */
    --card-bg: #ffffff;
    
    /* 边框和阴影 */
    --border-color: #e5e7eb; /* Gray-200 */
    --border-radius: 8px;
    --transition-speed: 0.15s;
    
    /* TailwindUI风格的阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* 间距系统 */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
}

.dark-theme {
    /* 暗色主题颜色 */
    --text-primary: #f9fafb; /* Gray-50 */
    --text-secondary: #e5e7eb; /* Gray-200 */
    --text-tertiary: #9ca3af; /* Gray-400 */
    --text-quaternary: #6b7280; /* Gray-500 */
    --bg-light: #1f2937; /* Gray-800 */
    --bg-dark: #111827; /* Gray-900 */
    --card-bg: #1f2937; /* Gray-800 */
    --border-color: #374151; /* Gray-700 */
    
    /* 暗色主题阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Noto Sans SC', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4ff 0%, #f9fafb 50%, #f0fdfa 100%);
    color: var(--text-primary);
    line-height: 1.5;
    transition: background-color var(--transition-speed), background var(--transition-speed);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.08) 0%, rgba(79, 70, 229, 0.02) 25%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(16, 185, 129, 0.06) 0%, rgba(16, 185, 129, 0.01) 30%, transparent 55%),
        radial-gradient(circle at 70% 80%, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.01) 35%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

.dark-theme body {
    background: linear-gradient(135deg, #111827 0%, #1e293b 50%, #0f172a 100%);
}

.dark-theme body::before {
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.08) 0%, rgba(79, 70, 229, 0.03) 30%, transparent 60%),
        radial-gradient(circle at 80% 30%, rgba(6, 182, 212, 0.06) 0%, rgba(6, 182, 212, 0.02) 35%, transparent 65%),
        radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.07) 0%, rgba(124, 58, 237, 0.02) 40%, transparent 70%);
    opacity: 0.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container > div.card {
    margin-left: 0;
    margin-right: 0;
}

@media (min-width: 768px) {
    /* 调整网格布局，使每行的两个卡片宽度相等 */
    main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "test stats"
            "visualization gamification";
        gap: var(--space-4);
    }
    
    .test-area {
        grid-area: test;
        width: 100%;
    }
    
    .stats-area {
        grid-area: stats;
        width: 100%;
    }
    
    .data-visualization-area {
        grid-area: visualization;
        margin-top: 0;
        min-height: 400px;
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .gamification-area {
        grid-area: gamification;
        margin-top: 0;
        margin-bottom: var(--space-6);
        width: 100%;
    }
    
    /* 确保卡片高度一致 */
    .card.data-visualization-area,
    .card.gamification-area {
        height: auto;
        min-height: 450px;
        max-height: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .test-box {
        flex: 1;
        min-height: 220px;
    }
    
    .history-section {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .history-list {
        flex: 1;
        min-height: 0;
    }
}

/* 头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
    padding: var(--space-3) 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dark-theme header {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(17, 24, 39, 0.95) 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-right: var(--space-4);
}

.logo i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.theme-toggle {
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-tertiary);
    transition: all var(--transition-speed);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: transparent;
}

.theme-toggle:hover {
    color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.05);
}

.dark-theme .theme-toggle:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

/* 统一卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(229, 231, 235, 0.5);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 移除main内卡片的下边距 */
.card.test-area, 
.card.stats-area {
    margin-bottom: 0;
}

.dark-theme .card {
    background: rgba(31, 41, 55, 0.7);
    border: 1px solid rgba(55, 65, 81, 0.5);
}

/* 统一卡片标题样式 */
.card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.025em;
}

/* 统一卡片内容样式 */
.info-content,
.science-content,
.applications-content,
.faq-content,
.tips-content {
    padding: 0;
}

/* 科学背景区域 */
.science-area {
    margin-top: 0;
}

.science-content {
    padding: 0;
}

.science-list {
    list-style-type: none;
    padding: var(--space-3) 0;
    margin: 0;
}

.science-list li {
    margin-bottom: var(--space-3);
    padding-left: var(--space-4);
    position: relative;
}

.science-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border-radius: 50%;
}

.dark-theme .science-list li::before {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
}

/* 应用场景区域 */
.applications-area {
    margin-top: 0;
}

.applications-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-4);
    padding: 0;
}

@media (min-width: 640px) {
    .applications-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.application-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: var(--space-4);
    transition: transform 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.application-item:hover {
    transform: translateY(-5px);
}

.dark-theme .application-item {
    background: rgba(31, 41, 55, 0.7);
    border: 1px solid rgba(55, 65, 81, 0.5);
}

.application-item i {
    font-size: 2rem;
    color: var(--primary-500);
    margin-bottom: var(--space-2);
}

.dark-theme .application-item i {
    color: var(--primary-400);
}

.application-item h3 {
    margin: var(--space-2) 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* FAQ区域 */
.faq-area {
    margin-top: 0;
}

.faq-content {
    padding: 0;
}

.faq-item {
    margin-bottom: var(--space-4);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    padding-bottom: var(--space-4);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.dark-theme .faq-item {
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.faq-item h3 {
    margin: 0 0 var(--space-2) 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* 提高技巧区域 */
.tips-area {
    margin-top: 0;
}

.tips-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-4);
    padding: 0;
}

@media (min-width: 640px) {
    .tips-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: transform 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-5px);
}

.dark-theme .tip-item {
    background: rgba(31, 41, 55, 0.7);
    border: 1px solid rgba(55, 65, 81, 0.5);
}

.tip-item i {
    font-size: 2rem;
    color: var(--primary-500);
    margin-bottom: var(--space-2);
}

.dark-theme .tip-item i {
    color: var(--primary-400);
}

.tip-item h3 {
    margin: var(--space-2) 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* 统一段落样式 */
.card p {
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
    line-height: 1.6;
}

.card p:last-child {
    margin-bottom: 0;
}

/* 页脚样式优化 */
footer {
    margin-top: var(--space-8);
    padding: var(--space-6) 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100%;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
}

.dark-theme footer {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(17, 24, 39, 0.95) 100%);
    border-top: 1px solid rgba(55, 65, 81, 0.5);
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-6);
    padding: 0 var(--space-5);
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.footer-section p {
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: var(--space-2);
}

.footer-section a {
    color: rgb(75 85 99);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-section a:hover {
    color: var(--primary-500);
    text-decoration: none;
    transform: translateX(3px);
}

.dark-theme .footer-section a {
    color: var(--primary-400);
}

.dark-theme .footer-section a:hover {
    color: var(--primary-200);
    text-decoration: none;
    transform: translateX(3px);
}

.social-icons {
    display: flex;
    gap: var(--space-3);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-600);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-500);
    color: white;
    transform: translateY(-3px);
}

.dark-theme .social-icons a {
    background: rgba(55, 65, 81, 0.8);
    color: var(--primary-400);
}

.dark-theme .social-icons a:hover {
    background: var(--primary-600);
    color: white;
}

.footer-bottom {
    padding: 0 var(--space-5);
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.dark-theme .footer-bottom {
    border-top: 1px solid rgba(55, 65, 81, 0.5);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    main {
        padding: 0;
    }
    
    .container > div.card {
        margin-left: 0;
        margin-right: 0;
    }
    
    header {
        padding: var(--space-2) 0;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .test-box {
        height: 200px;
    }
    
    .result-text {
        font-size: 1.75rem;
    }
    
    .history-list {
        max-height: 150px;
    }
    
    .card {
        padding: var(--space-4);
    }
    
    .application-item,
    .tip-item {
        padding: var(--space-3);
    }
    
    .footer-content {
        gap: var(--space-4);
        padding: 0 var(--space-3);
    }
    
    .footer-bottom {
        padding: 0 var(--space-3);
    }
    
    .footer-section h3 {
        font-size: 1rem;
    }
    
    .header-container {
        padding: 0 var(--space-3);
    }
}

/* 添加缺失的模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(249, 250, 251, 0.85) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: var(--space-5);
    max-width: 500px;
    width: 90%;
    box-shadow: none;
    position: relative;
    border: 1px solid rgba(229, 231, 235, 0.5);
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

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

.dark-theme .modal-content {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.85) 0%, rgba(17, 24, 39, 0.85) 100%);
    border: 1px solid rgba(55, 65, 81, 0.5);
}

.close-modal {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    font-size: 1.25rem;
    color: var(--text-tertiary);
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition: all var(--transition-speed);
}

.close-modal:hover {
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.05);
}

.dark-theme .close-modal:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal h2 {
    margin-bottom: var(--space-4);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.modal p {
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* 添加缺失的滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, rgba(156, 163, 175, 0.3), rgba(107, 114, 128, 0.3));
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, rgba(107, 114, 128, 0.5), rgba(75, 85, 99, 0.5));
}

.dark-theme ::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, rgba(75, 85, 99, 0.5), rgba(55, 65, 81, 0.5));
}

.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, rgba(107, 114, 128, 0.7), rgba(75, 85, 99, 0.7));
}

/* 添加缺失的测试区域样式 */
.test-area {
    margin-bottom: var(--space-6);
}

.test-modes {
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.7) 0%, rgba(243, 244, 246, 0.7) 100%);
    border-radius: var(--border-radius);
    padding: var(--space-3);
    border: 1px solid rgba(229, 231, 235, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dark-theme .test-modes {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.7) 0%, rgba(17, 24, 39, 0.7) 100%);
    border: 1px solid rgba(55, 65, 81, 0.5);
}

.mode-selector {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-2);
    flex-wrap: wrap;
    gap: var(--space-2);
}

.mode-selector label {
    margin-right: 0;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 60px;
}

.mode-select {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--border-radius);
    padding: var(--space-1) var(--space-2);
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.dark-theme .mode-select {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(55, 65, 81, 0.8);
    color: var(--text-primary);
}

.mode-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.mode-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.mode-info p {
    margin: 0;
}

.test-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.test-status.has-result {
    margin-bottom: var(--space-3);
}

.status-text {
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

.status-text.has-result {
    margin-bottom: 0;
}

.result-text {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--primary-color);
    letter-spacing: -0.025em;
    line-height: 1.2;
    text-align: center;
}

.result-text:not(:empty) {
    margin-bottom: 0;
}

.result-text .test-result-item {
    font-size: 1.25rem;
    display: block;
    margin-top: var(--space-2);
}

/* 添加缺失的测试状态样式 */
.waiting {
    background-color: rgba(243, 244, 246, 0.7); /* Gray-100 with opacity */
    border: 1px solid rgba(229, 231, 235, 0.7); /* Gray-200 with opacity */
}

.dark-theme .waiting {
    background-color: rgba(55, 65, 81, 0.7); /* Gray-700 with opacity */
    border: 1px solid rgba(75, 85, 99, 0.7); /* Gray-600 with opacity */
}

.ready {
    background-color: rgba(254, 226, 226, 0.9); /* 提高透明度，更鲜艳的红色 */
    border: 1px solid rgba(220, 38, 38, 0.9); /* 使用更深的红色边框 */
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5); /* 添加红色光晕效果 */
}

.dark-theme .ready {
    background-color: rgba(185, 28, 28, 0.85); /* 更亮的红色背景 */
    border: 1px solid rgba(248, 113, 113, 0.9); /* 更亮的红色边框 */
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(248, 113, 113, 0.6); /* 添加红色光晕效果 */
}

.go {
    background-color: rgba(134, 239, 172, 0.9); /* 更鲜艳的绿色背景 */
    border: 1px solid rgba(22, 163, 74, 0.9); /* 更深的绿色边框 */
    transition: none; /* 移除过渡效果 */
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5); /* 添加绿色光晕效果 */
}

.dark-theme .go {
    background-color: rgba(21, 128, 61, 0.85); /* 更亮的绿色背景 */
    border: 1px solid rgba(134, 239, 172, 0.9); /* 更亮的绿色边框 */
    transition: none; /* 移除过渡效果 */
    box-shadow: 0 0 15px rgba(134, 239, 172, 0.6); /* 添加绿色光晕效果 */
}

.too-soon {
    background-color: rgba(254, 243, 199, 0.7); /* Amber-100 with opacity */
    border: 1px solid rgba(253, 230, 138, 0.7); /* Amber-200 with opacity */
    transition: all 0.3s ease;
}

.dark-theme .too-soon {
    background-color: rgba(120, 53, 15, 0.7); /* Amber-900 with opacity */
    border: 1px solid rgba(146, 64, 14, 0.7); /* Amber-800 with opacity */
    transition: all 0.3s ease;
}

/* 添加缺失的按钮样式 */
.start-btn, .control-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0 var(--space-4);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    gap: var(--space-2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.start-btn:hover, .control-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 1) 0%, rgba(79, 70, 229, 1) 100%);
    transform: none;
    box-shadow: none;
}

.start-btn:active, .control-btn:active {
    background: linear-gradient(135deg, rgba(67, 56, 202, 1) 0%, rgba(55, 48, 163, 1) 100%);
    transform: none;
    box-shadow: none;
}

/* 添加缺失的统计区域样式 */
.stats-area {
    display: flex;
    flex-direction: column;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

@media (min-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: var(--space-3) var(--space-2);
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.7) 0%, rgba(243, 244, 246, 0.7) 100%);
    border-radius: var(--border-radius);
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100px;
    width: 100%;
    box-sizing: border-box;
}

.stat-item:hover {
    background-color: rgba(255, 255, 255, 0.85);
    border-color: var(--primary-color);
}

.dark-theme .stat-item:hover {
    background-color: rgba(31, 41, 55, 0.85);
    border-color: var(--primary-color);
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem; /* 默认字体大小 */
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-1);
    letter-spacing: -0.025em;
    line-height: 1.2;
    min-height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 当数值超过5位数时自动缩小字体 */
.stat-value.long-value {
    font-size: 1.2rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* 添加缺失的历史记录区域样式 */
.history-section {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.history-section h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.clear-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--border-radius);
    font-weight: 500;
}

.clear-btn:hover {
    color: var(--danger-color);
    background-color: rgba(239, 68, 68, 0.05); /* Red-500 with opacity */
}

.dark-theme .clear-btn:hover {
    background-color: rgba(239, 68, 68, 0.1); /* Red-500 with more opacity */
}

.history-list {
    max-height: 190px;
    min-height: 190px;
    overflow-y: auto;
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: var(--border-radius);
    padding: var(--space-1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(249, 250, 251, 0.6) 100%);
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dark-theme .history-list {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.6) 0%, rgba(17, 24, 39, 0.6) 100%);
    border: 1px solid rgba(55, 65, 81, 0.5);
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.history-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transform: translateX(0);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.history-item:hover {
    background-color: rgba(249, 250, 251, 0.7);
}

.history-item:hover::after {
    transform: translateX(200%);
}

.dark-theme .history-item:hover {
    background-color: rgba(31, 41, 55, 0.7);
}

.dark-theme .history-item::after {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.05), 
        transparent);
}

.history-item:last-child {
    border-bottom: none;
}

.history-time {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.mode-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-right: var(--space-2);
    color: #fff;
    background-color: #6b7280;
}

.mode-badge.standard {
    background-color: #6b7280;
}

.mode-badge.continuous {
    background-color: #3b82f6;
}

.mode-badge.random {
    background-color: #f59e0b;
}

.history-date {
    font-size: 0.75rem;
    color: var(--text-quaternary);
}

.empty-history {
    text-align: center;
    color: var(--text-quaternary);
    font-size: 0.875rem;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(249, 250, 251, 0.6) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin: 0;
    box-sizing: border-box;
}

/* 添加缺失的信息区域样式 */
.info-area {
    grid-column: 1 / -1;
    margin-top: 0;
}

.reaction-scale {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin: var(--space-4) 0;
    justify-content: space-between;
    padding: var(--space-4);
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.5) 0%, rgba(243, 244, 246, 0.5) 100%);
    border-radius: var(--border-radius);
    border: 1px solid rgba(229, 231, 235, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dark-theme .reaction-scale {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.5) 0%, rgba(17, 24, 39, 0.5) 100%);
    border: 1px solid rgba(55, 65, 81, 0.5);
}

@media (max-width: 600px) {
    .reaction-scale {
        flex-direction: column;
        gap: var(--space-2);
    }
}

.scale-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.scale-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.excellent {
    background-color: var(--success-color);
}

.good {
    background-color: var(--primary-color);
}

.average {
    background-color: var(--warning-color);
}

.slow {
    background-color: var(--danger-color);
}

.scale-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 添加缺失的布局样式 */
main {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* 添加缺失的响应式调整 */
@media (max-width: 767px) {
    .card.test-area, 
    .card.stats-area, 
    .card.data-visualization-area,
    .card.gamification-area {
        padding: var(--space-4);
    }
    
    /* 确保数据可视化卡片与统计卡片之间没有多余间距 */
    .card.data-visualization-area,
    .card.gamification-area {
        margin-top: 0;
        margin-bottom: var(--space-4);
    }
    
    /* 在移动设备上，游戏化卡片放在数据可视化卡片下方 */
    main {
        display: flex;
        flex-direction: column;
        gap: var(--space-4);
    }
    
    header {
        padding: var(--space-2) 0;
    }
}

/* 添加缺失的动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 1.5s infinite;
}

/* 更新模态框样式 */
#terms-modal .modal-content,
#contact-modal .modal-content {
    max-width: 600px;
}

.nav-menu {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 var(--space-3);
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: var(--space-2) 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.dark-theme .nav-menu a {
    color: var(--text-primary-dark);
}

.dark-theme .nav-menu a:hover {
    color: var(--primary-light);
}

.dark-theme .nav-menu a::after {
    background-color: var(--primary-light);
}

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    width: 100%;
}

.dark-theme .nav-menu a.active {
    color: var(--primary-light);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-left: var(--space-4);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: transparent;
    transition: all var(--transition-speed);
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.05);
}

.dark-theme .mobile-menu-btn:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

@media (max-width: 640px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 99;
        padding: var(--space-2) 0;
        border-top: 1px solid var(--border-color);
    }
    
    .dark-theme .nav-menu {
        background: rgba(31, 41, 55, 0.95);
        border-top: 1px solid rgba(55, 65, 81, 0.5);
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: var(--space-2);
    }
    
    .nav-menu li {
        margin: var(--space-2) 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

.test-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 220px;
    border-radius: var(--border-radius);
    margin: var(--space-3) 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100%;
}

/* 覆盖.go类的过渡效果 */
.test-box.go {
    transition: none;
}

.test-box .test-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* 图表容器样式 */
.charts-container {
    margin-top: var(--space-5);
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    padding-top: var(--space-2);
}

.chart-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    padding-bottom: var(--space-2);
}

.chart-tab {
    background: none;
    border: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-tab:hover {
    color: var(--text-primary);
    background: rgba(229, 231, 235, 0.3);
}

.chart-tab.active {
    color: var(--text-primary);
    background: rgba(229, 231, 235, 0.5);
}

.dark-theme .chart-tab.active {
    background: rgba(55, 65, 81, 0.5);
}

.dark-theme .chart-tab:hover {
    background: rgba(55, 65, 81, 0.3);
}

.chart-wrapper {
    height: 250px;
    margin-bottom: var(--space-4);
    position: relative;
}

@media (max-width: 480px) {
    .chart-tabs {
        flex-wrap: wrap;
    }
    
    .chart-tab {
        flex: 1;
        text-align: center;
        padding: var(--space-2) var(--space-1);
    }
    
    .chart-wrapper {
        height: 200px;
    }
}

/* 数据可视化区域 */
.data-visualization-area {
    margin-top: 0;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.data-visualization-area h2 {
    margin-bottom: var(--space-2);
}

.charts-container {
    margin-top: var(--space-2);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.chart-content {
    flex: 1;
    position: relative;
    min-height: 250px;
}

.chart-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    .chart-wrapper {
        height: 100%;
    }
}

/* 游戏化区域样式 */
.gamification-area {
    margin-top: 0;
}

.gamification-content {
    display: flex;
    flex-direction: column;
    gap: 0; /* 移除间距 */
    height: auto; /* 修改为自动高度 */
    overflow-y: visible; /* 确保没有滚动条 */
}

/* 调整卡片标题的底部间距 */
.gamification-area h2 {
    margin-bottom: var(--space-2); /* 减小底部间距 */
}

/* 等级部分 */
.level-section {
    margin-bottom: var(--space-1);
}

.level-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.level-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.level-badge i {
    font-size: 1rem;
    margin-bottom: 2px;
}

.level-details {
    flex: 1;
}

.level-details h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.level-details h3 span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background-color: rgba(99, 102, 241, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.dark-theme .level-details h3 span {
    background-color: rgba(99, 102, 241, 0.2);
}

/* 进度条 */
.progress-bar {
    height: 8px;
    background-color: rgba(229, 231, 235, 0.5);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-1);
}

.dark-theme .progress-bar {
    background-color: rgba(55, 65, 81, 0.5);
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
}

/* 成就部分 */
.achievements-section {
    margin-top: var(--space-1);
    flex: 0 auto; /* 修改为不伸展 */
    overflow-y: visible; /* 移除滚动条 */
    margin-bottom: var(--space-1); /* 添加底部间距，减少与挑战部分的间距 */
    height: auto; /* 确保高度基于内容 */
}

.achievements-section h3 {
    font-size: 1rem;
    margin-bottom: var(--space-1);
    margin-top: 0; /* 确保没有顶部边距 */
}

.achievement-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: var(--border-radius);
    background: #f9fafb;
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.dark-theme .achievement-item {
    background: #111827;
    border: 1px solid rgba(55, 65, 81, 0.8);
}

.achievement-item.locked {
    opacity: 0.7;
    filter: grayscale(1);
}

.achievement-item:not(.locked) {
    background: rgba(99, 102, 241, 0.1);
}

.dark-theme .achievement-item:not(.locked) {
    background: rgba(99, 102, 241, 0.2);
}

.achievement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.achievement-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.dark-theme .achievement-icon {
    background: #374151;
}

.achievement-item:not(.locked) .achievement-icon {
    background: #6366f1;
    color: white;
}

.achievement-info {
    flex: 1;
}

.achievement-info h4 {
    margin: 0 0 2px 0;
    font-size: 0.8rem;
}

.achievement-info p {
    margin: 0;
    font-size: 0.7rem;
    color: #6b7280;
}

.dark-theme .achievement-info p {
    color: #9ca3af;
}

/* 挑战部分 */
.challenges-section {
    margin-top: 0; /* 移除顶部间距，减少与成就部分的间距 */
}

.challenges-section h3 {
    font-size: 1rem;
    margin-bottom: var(--space-1);
    margin-top: 0; /* 确保没有顶部边距 */
}

.challenge-item {
    padding: var(--space-2);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(229, 231, 235, 0.8);
    margin-bottom: var(--space-1);
    position: relative; /* 添加相对定位 */
}

.challenge-info {
    position: relative; /* 保持相对定位 */
}

.challenge-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    padding-right: 0; /* 移除右侧内边距 */
}

.challenge-info p {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    padding-right: 0; /* 移除右侧内边距 */
}

/* 添加挑战状态容器样式 */
.challenge-status {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.challenge-reward {
    color: #8b5cf6;
    font-weight: 500;
}

.challenge-info .progress-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.dark-theme .challenge-item {
    background-color: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(55, 65, 81, 0.8);
}

.dark-theme .challenge-reward {
    color: #a78bfa;
}

/* 成就标签页 */
.achievement-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-1); /* 减小底部边距 */
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    padding-bottom: var(--space-1);
}

.dark-theme .achievement-tabs {
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.achievement-tab {
    background: none;
    border: none;
    padding: var(--space-1) var(--space-2);
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.achievement-tab:hover {
    color: var(--text-primary);
    background: rgba(229, 231, 235, 0.3);
}

.achievement-tab.active {
    color: var(--text-primary);
    background: rgba(229, 231, 235, 0.5);
}

.dark-theme .achievement-tab.active {
    background: rgba(55, 65, 81, 0.5);
}

.dark-theme .achievement-tab:hover {
    background: rgba(55, 65, 81, 0.3);
}

/* 成就网格 */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
    position: relative;
    min-height: auto;
    margin-bottom: var(--space-1); /* 添加底部间距，减少与挑战部分的间距 */
}

.achievements-grid:not(.active) {
    display: none; /* 确保非活动的网格不占用空间 */
    height: 0;
    overflow: hidden;
}

/* 小图标 */
.mini-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 0.7rem;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .achievement-tabs {
        flex-wrap: wrap;
    }
    
    .achievement-tab {
        flex: 1;
        text-align: center;
        padding: var(--space-1) var(--space-1);
        font-size: 0.8rem;
    }
}

.dark-theme .empty-history {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.6) 0%, rgba(17, 24, 39, 0.6) 100%);
    border: 1px solid rgba(55, 65, 81, 0.5);
    color: rgba(156, 163, 175, 0.8);
}

/* 调整进度条高度 */
.challenges-section .progress-bar {
    height: 6px; /* 保持较小的进度条高度 */
    margin: 0.25rem 0;
    clear: both; /* 确保进度条在其他元素下方 */
}

.challenge-info .progress-text {
    font-size: 0.75rem; /* 减小进度文本的字体大小 */
    color: var(--text-secondary);
}

/* 响应式调整 */
@media (max-width: 767px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .level-info {
        flex-direction: column;
        text-align: center;
    }
    
    .level-details {
        width: 100%;
    }
    
    .level-details h3 {
        flex-direction: column;
        gap: var(--space-1);
    }
}

@media (max-width: 480px) {
    /* 删除不需要的移动端样式
    .challenge-info h4 {
        padding-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .challenge-info p {
        padding-right: 0;
    }
    
    .challenge-reward {
        top: 1.5rem;
        right: 0;
    }
    
    .challenge-info .progress-text {
        top: 3rem;
        right: 0;
    }
    */
}

/* 分享按钮样式 */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: none;
    margin-top: 10px;
}

.share-btn i {
    margin-right: 6px;
}

.share-btn:hover {
    background-color: #45a049;
    transform: none;
    box-shadow: none;
}

.dark-theme .share-btn {
    background-color: #6366f1;
}

.dark-theme .share-btn:hover {
    background-color: #4f46e5;
    transform: none;
}

/* 分享模态框样式 */
.share-preview {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.share-card {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.dark-theme .share-card {
    background-color: #1f2937;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 15px;
    text-align: center;
}

.share-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

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

.share-result {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 10px;
}

.dark-theme .share-result {
    color: #10b981;
}

.share-unit {
    font-size: 1rem;
    color: #6b7280;
}

.dark-theme .share-unit {
    color: #9ca3af;
}

.share-mode, .share-date {
    color: #6b7280;
    margin-bottom: 5px;
}

.dark-theme .share-mode, .dark-theme .share-date {
    color: #9ca3af;
}

.share-footer {
    background-color: #f9fafb;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.dark-theme .share-footer {
    background-color: #111827;
    border-top: 1px solid #374151;
}

.share-app-info {
    font-size: 0.8rem;
    color: #6b7280;
}

.share-website {
    font-size: 0.8rem;
    color: #6366f1;
    margin-top: 3px;
    font-weight: 500;
}

.dark-theme .share-app-info {
    color: #9ca3af;
}

.dark-theme .share-website {
    color: #818cf8;
}

.share-options {
    margin-top: 20px;
}

.share-options h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.share-platform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
    background-color: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-platform-btn i {
    margin-right: 6px;
    font-size: 1.1rem;
}

.share-platform-btn:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.dark-theme .share-platform-btn {
    background-color: #1f2937;
    border: 1px solid #374151;
    color: #e5e7eb;
}

.dark-theme .share-platform-btn:hover {
    background-color: #374151;
}

.share-platform-btn[data-platform="wechat"] i {
    color: #07C160;
}

.share-platform-btn[data-platform="weibo"] i {
    color: #E6162D;
}

.share-platform-btn[data-platform="qq"] i {
    color: #12B7F5;
}

.share-platform-btn[data-platform="twitter"] i {
    color: #1DA1F2;
}

.share-platform-btn[data-platform="facebook"] i {
    color: #1877F2;
}

.share-link-container {
    margin-top: 20px;
}

.share-link-input {
    display: flex;
    margin-top: 10px;
}

.share-link-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 0.9rem;
    background-color: white;
    color: #374151;
}

.dark-theme .share-link-input input {
    background-color: #1f2937;
    border: 1px solid #374151;
    color: #e5e7eb;
}

#copy-link-btn {
    padding: 8px 12px;
    background-color: #6366f1;
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#copy-link-btn:hover {
    background-color: #4f46e5;
}

/* 下载图片按钮样式 */
.download-image-container {
    margin-top: 10px;
    margin-bottom: 15px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.download-btn i {
    margin-right: 8px;
}

.download-btn:hover {
    background-color: #059669;
}

.dark-theme .download-btn {
    background-color: #10b981;
}

.dark-theme .download-btn:hover {
    background-color: #059669;
}

@media (max-width: 480px) {
    .share-buttons {
        justify-content: center;
    }
    
    .share-platform-btn {
        flex: 0 0 calc(50% - 10px);
    }
    
    .share-result {
        font-size: 2rem;
    }
}

/* 分享按钮行样式 */
.share-buttons-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.share-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.share-action-btn i {
    margin-right: 8px;
}

/* 复制按钮样式 */
.copy-btn {
    background-color: #6366f1;
    color: white;
}

.copy-btn:hover {
    background-color: #4f46e5;
}

.dark-theme .copy-btn {
    background-color: #6366f1;
}

.dark-theme .copy-btn:hover {
    background-color: #4f46e5;
}

.share-options {
    margin-top: 20px;
}

.share-options h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.share-platform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
    background-color: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-platform-btn i {
    margin-right: 6px;
    font-size: 1.1rem;
}

.share-platform-btn:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.dark-theme .share-platform-btn {
    background-color: #1f2937;
    border: 1px solid #374151;
    color: #e5e7eb;
}

.dark-theme .share-platform-btn:hover {
    background-color: #374151;
}

.share-platform-btn[data-platform="wechat"] i {
    color: #07C160;
}

.share-platform-btn[data-platform="weibo"] i {
    color: #E6162D;
}

.share-platform-btn[data-platform="qq"] i {
    color: #12B7F5;
}

.share-platform-btn[data-platform="twitter"] i {
    color: #1DA1F2;
}

.share-platform-btn[data-platform="facebook"] i {
    color: #1877F2;
}

.share-link-container {
    margin-top: 20px;
}

.share-link-input {
    display: flex;
    margin-top: 10px;
}

.share-link-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 0.9rem;
    background-color: white;
    color: #374151;
}

.dark-theme .share-link-input input {
    background-color: #1f2937;
    border: 1px solid #374151;
    color: #e5e7eb;
}

#copy-link-btn {
    padding: 8px 12px;
    background-color: #6366f1;
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#copy-link-btn:hover {
    background-color: #4f46e5;
}

/* 下载图片按钮样式 */
.download-image-container {
    margin-top: 10px;
    margin-bottom: 15px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    background-color: #10b981;
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.download-btn i {
    margin-right: 8px;
}

.download-btn:hover {
    background-color: #059669;
}

.dark-theme .download-btn {
    background-color: #10b981;
}

.dark-theme .download-btn:hover {
    background-color: #059669;
}

@media (max-width: 480px) {
    .share-buttons {
        justify-content: center;
    }
    
    .share-platform-btn {
        flex: 0 0 calc(50% - 10px);
    }
    
    .share-result {
        font-size: 2rem;
    }
} 

/* 测试模式卡片区域样式 */
.test-modes-container {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    background-color: var(--bg-secondary);
    margin-bottom: 0.5rem;
    margin-top: 0;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* 提升iOS滚动体验 */
}

.test-modes-container::-webkit-scrollbar {
    height: 4px;
}

.test-modes-container::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 2px;
}

.test-mode-card {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    width: auto;
    min-width: 0;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    text-align: center;
}

.test-mode-card:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.test-mode-card.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mode-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    margin-right: 0.5rem;
    font-size: 1rem;
    color: var(--primary-color);
}

.mode-info {
    flex-grow: 0;
    text-align: left;
}

.mode-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.2rem 0;
    color: var(--text-primary);
}

.mode-info p {
    font-size: 0.7rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.2;
}
/* 数据统计概览区样式 */
.statistics-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .statistics-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.statistic-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark-theme .statistic-item {
    background: rgba(31, 41, 55, 0.7);
    border-color: rgba(55, 65, 81, 0.5);
}

.statistic-item:hover {
    background-color: rgba(255, 255, 255, 0.85);
    border-color: var(--primary-color);
}

.dark-theme .statistic-item:hover {
    background-color: rgba(31, 41, 55, 0.85);
    border-color: var(--primary-color);
}

.statistic-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.statistic-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.statistic-label {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

/* 专家推荐区样式 */
.expert-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expert-item {
    display: flex;
    background: rgba(255, 255, 255, 0.7);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark-theme .expert-item {
    background: rgba(31, 41, 55, 0.7);
    border-top-color: rgba(55, 65, 81, 0.5);
    border-right-color: rgba(55, 65, 81, 0.5);
    border-bottom-color: rgba(55, 65, 81, 0.5);
}

.expert-item:hover {
    background-color: rgba(255, 255, 255, 0.85);
    border-color: var(--primary-color);
}

.dark-theme .expert-item:hover {
    background-color: rgba(31, 41, 55, 0.85);
    border-color: var(--primary-color);
}

.expert-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.expert-avatar i {
    font-size: 1.5rem;
    color: white;
}

.expert-quote p {
    font-style: italic;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.expert-info {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    font-weight: 500;
}

/* 热门应用场景扩展区样式 */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .scenarios-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.scenario-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark-theme .scenario-card {
    background: rgba(31, 41, 55, 0.7);
    border-color: rgba(55, 65, 81, 0.5);
}

.scenario-card:hover {
    background-color: rgba(255, 255, 255, 0.85);
    border-color: var(--primary-color);
}

.dark-theme .scenario-card:hover {
    background-color: rgba(31, 41, 55, 0.85);
    border-color: var(--primary-color);
}

.scenario-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.scenario-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.scenario-card p {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

/* 用户成就展示区样式 */
.achievements-showcase {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .achievements-showcase {
        grid-template-columns: repeat(3, 1fr);
    }
}

.achievement-showcase-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark-theme .achievement-showcase-item {
    background: rgba(31, 41, 55, 0.7);
    border-color: rgba(55, 65, 81, 0.5);
}

.achievement-showcase-item:hover {
    background-color: rgba(255, 255, 255, 0.85);
    border-color: var(--primary-color);
}

.dark-theme .achievement-showcase-item:hover {
    background-color: rgba(31, 41, 55, 0.85);
}

/* 常见问题简览区样式 */
.faq-preview-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.25rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark-theme .faq-preview-item {
    background: rgba(31, 41, 55, 0.7);
    border-color: rgba(55, 65, 81, 0.5);
}

.faq-preview-item:hover {
    background-color: rgba(255, 255, 255, 0.85);
    border-color: var(--primary-color);
}

.dark-theme .faq-preview-item:hover {
    background-color: rgba(31, 41, 55, 0.85);
    border-color: var(--primary-color);
}

.faq-preview-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.faq-preview-item p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.more-faq-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.more-faq-link:hover {
    color: var(--primary-hover);
}

.more-faq-link i {
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.more-faq-link:hover i {
    transform: translateX(3px);
}

/* 反应速度比较图表区样式 */
.comparison-chart {
    margin-bottom: 1rem;
}

.chart-bar-container {
    margin-bottom: 1rem;
}

.chart-label {
    display: inline-block;
    width: 120px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.chart-bar {
    height: 30px;
    background: rgba(229, 231, 235, 0.5);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.dark-theme .chart-bar {
    background: rgba(55, 65, 81, 0.5);
    border-color: rgba(55, 65, 81, 0.5);
}

.chart-fill {
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 0.75rem;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

.comparison-note {
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    font-style: italic;
}

/* 相关热门搜索区样式 */
.related-searches-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.related-search-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    color: var(--text-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.dark-theme .related-search-tag {
    background: rgba(31, 41, 55, 0.7);
    color: var(--light-text);
    border-color: rgba(55, 65, 81, 0.5);
}

.related-search-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 反应速度世界纪录区样式 */
.world-records-content {
    padding: 0.5rem;
}

.records-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 8px;
}

.record-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    align-items: center;
    position: relative;
}

@media (max-width: 768px) {
    .record-row {
        grid-template-columns: 1fr;
        margin-bottom: 1.5rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.7);
    }
    
    .dark-theme .record-row {
        background: rgba(31, 41, 55, 0.7);
        border-color: rgba(55, 65, 81, 0.5);
    }
    
    .record-row.header {
        display: none;
    }
    
    .record-cell {
        padding: 0.5rem 0;
        border-bottom: 1px dashed rgba(203, 213, 225, 0.3);
        text-align: left;
    }
    
    .record-cell:last-child {
        border-bottom: none;
    }
    
    .record-cell:before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 0.5rem;
    }
}

.record-row.header {
    background: rgba(79, 70, 229, 0.1);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.dark-theme .record-row.header {
    background: rgba(79, 70, 229, 0.2);
    color: var(--primary-300);
}

.record-row:not(.header) {
    background: rgba(255, 255, 255, 0.7);
    transition: background-color 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.dark-theme .record-row:not(.header) {
    background: rgba(31, 41, 55, 0.7);
    border-color: rgba(55, 65, 81, 0.5);
}

.record-row:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.record-row:not(.header):hover {
    background: rgba(255, 255, 255, 0.85);
}

.dark-theme .record-row:not(.header):hover {
    background: rgba(31, 41, 55, 0.85);
}

.record-cell {
    padding: 1rem;
    text-align: center;
}

.record-cell:first-child {
    text-align: left;
    display: flex;
    align-items: center;
}

.record-cell i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

.records-note {
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    font-style: italic;
    margin-top: 0.75rem;
    padding: 0 0.5rem;
}

.records-note p {
    margin-bottom: 0.25rem;
}

/* 反应速度训练计划区样式 */
.training-plans-content {
    padding: 1rem;
}

.training-plans-intro {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-color);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.training-plans-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .training-plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.training-plan-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.dark-theme .training-plan-card {
    background: rgba(31, 41, 55, 0.7);
    border-color: rgba(55, 65, 81, 0.5);
}

.training-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.training-plan-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--primary-color);
}

.plan-header {
    padding: 1.5rem;
    text-align: center;
    background: rgba(79, 70, 229, 0.1);
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.dark-theme .plan-header {
    background: rgba(79, 70, 229, 0.2);
    border-color: rgba(55, 65, 81, 0.5);
}

.plan-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: var(--text-color);
}

.plan-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.plan-details {
    padding: 1.5rem;
    flex-grow: 1;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.plan-features li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.plan-schedule {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.dark-theme .plan-schedule {
    background: rgba(255, 255, 255, 0.05);
}

.schedule-day {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.schedule-day:last-child {
    margin-bottom: 0;
}

.day-label {
    font-weight: 600;
    color: var(--text-color);
}

.day-content {
    color: var(--text-secondary);
}

.plan-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.5);
}

.dark-theme .plan-footer {
    background: rgba(31, 41, 55, 0.5);
    border-color: rgba(55, 65, 81, 0.5);
}

.start-plan-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1rem;
}

.start-plan-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.training-tips {
    background: rgba(79, 70, 229, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.dark-theme .training-tips {
    background: rgba(79, 70, 229, 0.15);
}

.training-tips h3 {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.training-tips h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.training-tips ul {
    margin: 0;
    padding-left: 1.5rem;
}

.training-tips li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.training-tips li:last-child {
    margin-bottom: 0;
}

/* 移动端优化 - 放在普通样式之后确保能正确覆盖 */
@media (max-width: 768px) {
    .test-modes-container {
        justify-content: flex-start; /* 改为左对齐，方便滚动查看 */
        padding: 0.5rem;
        overflow-x: scroll;
        scroll-snap-type: x mandatory; /* 添加滚动捕捉效果 */
    }
    
    .test-mode-card {
        scroll-snap-align: start; /* 滚动捕捉对齐 */
        flex: 0 0 auto; /* 防止卡片被压缩 */
        min-width: 200px; /* 设置最小宽度 */
        padding: 0.4rem 0.6rem;
    }
    
    .mode-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .mode-info h3 {
        font-size: 0.75rem;
    }
    
    .mode-info p {
        font-size: 0.65rem;
    }
}

/* 测试区域的模式信息样式 */
.test-mode-info {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: rgba(79, 70, 229, 0.1);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

/* 测试区域模式信息内的段落样式 */
.test-mode-info p {
    font-size: 0.8rem !important;
    margin: 0 !important;
    color: inherit !important;
    line-height: 1.5 !important;
}

/* 暗色主题适配 */
.dark-theme .test-mode-info {
    background-color: rgba(79, 70, 229, 0.2);
    color: var(--primary-300);
}

/* 通知样式 */
.level-up-notification,
.achievement-notification,
.challenge-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.level-up-notification.show,
.achievement-notification.show,
.challenge-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.level-up-notification i,
.achievement-notification i,
.challenge-notification i {
    font-size: 1.5rem;
}

.achievement-notification div,
.challenge-notification div {
    display: flex;
    flex-direction: column;
}

.achievement-notification strong,
.challenge-notification strong {
    margin-top: 2px;
}

/* 通知容器和样式 */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.achievement-notification,
.level-up-notification,
.challenge-notification {
    position: relative;
    top: auto;
    right: auto;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin-bottom: 0;
    width: 280px;
}

.achievement-notification.show,
.level-up-notification.show,
.challenge-notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* 移动端优化 - 放在普通样式之后确保能正确覆盖 */
@media (max-width: 768px) {
    .test-modes-container {
        justify-content: flex-start; /* 改为左对齐，方便滚动查看 */
        padding: 0.5rem;
        overflow-x: scroll;
        scroll-snap-type: x mandatory; /* 添加滚动捕捉效果 */
    }
}

/* 反应能力发展曲线样式 */
.development-curve-content {
    padding: 1.5rem;
}

.curve-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.age-curve-chart {
    position: relative;
    margin: 2rem 0;
    height: 300px;
}

.curve-container {
    position: relative;
    height: 300px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    border-left: 2px solid var(--border-color);
}

.curve-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.curve-grid-line {
    width: 100%;
    height: 1px;
    background-color: rgba(128, 128, 128, 0.1);
}

.curve-path {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.curve-path svg {
    width: 100%;
    height: 100%;
}

.age-markers {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.age-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.age-point {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    position: absolute;
    transform: translateY(-50%);
}

.age-label {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 500;
}

.curve-legends {
    position: absolute;
    top: 0;
    left: -60px;
    height: 100%;
}

.curve-y-axis {
    height: 100%;
    position: relative;
}

.axis-label {
    position: absolute;
    right: 5px;
    transform: translateY(50%);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.curve-insights {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .curve-insights {
        grid-template-columns: repeat(4, 1fr);
    }
}

.insight-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-theme .insight-item {
    background: rgba(31, 41, 55, 0.7);
    border-color: rgba(55, 65, 81, 0.5);
}

.insight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.insight-item:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--primary-color);
}

.insight-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.insight-item h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.insight-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.curve-note {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* 用户反馈墙样式 */
.user-feedback-content {
    padding: 1.5rem;
}

.feedback-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .feedback-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feedback-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-theme .feedback-card {
    background: rgba(31, 41, 55, 0.7);
    border-color: rgba(55, 65, 81, 0.5);
}

.feedback-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feedback-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--primary-color);
}

.user-avatar {
    flex-shrink: 0;
    margin-right: 1rem;
}

.user-avatar i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.feedback-content {
    flex-grow: 1;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.user-badge {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.5rem;
}

.dark-theme .user-badge {
    background-color: rgba(79, 70, 229, 0.2);
}

.feedback-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.feedback-text {
    margin-bottom: 1rem;
}

.feedback-text p {
    margin: 0;
    font-style: italic;
    color: var(--text-color);
}

.feedback-metrics {
    display: flex;
    margin-top: 1rem;
}

.metric {
    background: rgba(79, 70, 229, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1rem;
}

.dark-theme .metric {
    background: rgba(79, 70, 229, 0.2);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-weight: 600;
    color: var(--primary-color);
}

.feedback-cta {
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 12px;
    border: 1px dashed var(--primary-color);
}

.dark-theme .feedback-cta {
    background: rgba(79, 70, 229, 0.2);
}

.cta-text {
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.submit-feedback-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1rem;
}

.submit-feedback-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.submit-feedback-btn i {
    margin-right: 0.5rem;
}

/* 反应速度知识百科样式 */
.knowledge-wiki-content {
    padding: 1.5rem;
}

.wiki-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.wiki-categories {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .wiki-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .wiki-categories {
        grid-template-columns: repeat(4, 1fr);
    }
}

.wiki-category {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-theme .wiki-category {
    background: rgba(31, 41, 55, 0.7);
    border-color: rgba(55, 65, 81, 0.5);
}

.wiki-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.wiki-category:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--primary-color);
}

.category-header {
    background: rgba(79, 70, 229, 0.1);
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.dark-theme .category-header {
    background: rgba(79, 70, 229, 0.2);
    border-color: rgba(55, 65, 81, 0.5);
}

.category-header i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.category-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.wiki-articles {
    padding: 1rem;
}

.wiki-article {
    display: block;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.wiki-article:last-child {
    margin-bottom: 0;
}

.wiki-article:hover {
    background: rgba(79, 70, 229, 0.1);
}

.dark-theme .wiki-article:hover {
    background: rgba(79, 70, 229, 0.2);
}

.article-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.article-preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wiki-popular {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.dark-theme .wiki-popular {
    background: rgba(31, 41, 55, 0.7);
    border-color: rgba(55, 65, 81, 0.5);
}

.wiki-popular h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.2rem;
    text-align: center;
}

.popular-articles {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .popular-articles {
        grid-template-columns: repeat(3, 1fr);
    }
}

.popular-article {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.popular-article:hover {
    background: rgba(79, 70, 229, 0.1);
}

.dark-theme .popular-article:hover {
    background: rgba(79, 70, 229, 0.2);
}

.article-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
}

.article-info {
    flex-grow: 1;
}

.article-stats {
    display: flex;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.article-stats span {
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.article-stats i {
    margin-right: 0.25rem;
}

.submit-feedback-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.submit-feedback-btn:hover {
    background: var(--primary-hover);
    transform: none;
}

.dark-theme .insight-item:hover {
    box-shadow: none;
}

.dark-theme .feedback-card:hover {
    box-shadow: none;
}

.dark-theme .wiki-category:hover {
    box-shadow: none;
}

.dark-theme .training-plan-card:hover {
    box-shadow: none;
}

/* 反应速度医学参考区样式 */
.medical-references-area {
    margin-top: var(--space-6);
}

.medical-intro {
    margin-bottom: var(--space-4);
}

.medical-research-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .medical-research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.medical-research-item {
    display: flex;
    align-items: flex-start;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    padding: var(--space-4);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

.dark-theme .medical-research-item {
    background-color: rgba(31, 41, 55, 0.5);
}

.medical-research-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.research-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: var(--space-4);
    width: 40px;
    text-align: center;
}

.research-content h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-2);
    font-weight: 600;
}

.research-source {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: var(--space-2);
    font-style: italic;
}

.medical-note {
    background-color: rgba(243, 244, 246, 0.7);
    border-radius: var(--border-radius);
    padding: var(--space-3);
    font-size: 0.9rem;
    border-left: 3px solid var(--primary-color);
}

.dark-theme .medical-note {
    background-color: rgba(55, 65, 81, 0.4);
}

/* 行业标准与参考值区样式 */
.industry-standards-area {
    margin-top: var(--space-6);
}

.standards-intro {
    margin-bottom: var(--space-4);
}

.standards-table {
    overflow-x: auto;
    margin-bottom: var(--space-4);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.standards-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.standards-row.header {
    background-color: var(--primary-600);
    color: white;
    font-weight: 600;
}

.dark-theme .standards-row.header {
    background-color: var(--primary-700);
}

.standards-cell {
    padding: var(--space-3);
    flex: 1;
    display: flex;
    align-items: center;
}

.standards-cell i {
    margin-right: var(--space-2);
    color: var(--primary-color);
}

.standards-row:nth-child(even):not(.header) {
    background-color: rgba(243, 244, 246, 0.5);
}

.dark-theme .standards-row:nth-child(even):not(.header) {
    background-color: rgba(55, 65, 81, 0.3);
}

.standards-row:nth-child(odd):not(.header) {
    background-color: rgba(255, 255, 255, 0.5);
}

.dark-theme .standards-row:nth-child(odd):not(.header) {
    background-color: rgba(31, 41, 55, 0.3);
}

.standards-note {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: var(--space-2);
}

/* 设备与测量技术比较区样式 */
.measurement-technology-area {
    margin-top: var(--space-6);
}

.technology-intro {
    margin-bottom: var(--space-4);
}

.technology-comparison-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .technology-comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.technology-item {
    display: flex;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.dark-theme .technology-item {
    background-color: rgba(31, 41, 55, 0.5);
}

.technology-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: var(--space-3);
    min-width: 40px;
    text-align: center;
}

.technology-content {
    flex: 1;
}

.technology-content h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-2);
    font-weight: 600;
}

.technology-specs {
    background-color: rgba(243, 244, 246, 0.5);
    border-radius: var(--border-radius);
    padding: var(--space-2);
    margin-bottom: var(--space-3);
}

.dark-theme .technology-specs {
    background-color: rgba(55, 65, 81, 0.3);
}

.spec-row {
    display: flex;
    margin-bottom: var(--space-1);
}

.spec-row:last-child {
    margin-bottom: 0;
}

.spec-label {
    font-weight: 500;
    min-width: 80px;
}

.technology-note {
    background-color: rgba(243, 244, 246, 0.7);
    border-radius: var(--border-radius);
    padding: var(--space-3);
    font-size: 0.9rem;
    border-left: 3px solid var(--primary-color);
}

.dark-theme .technology-note {
    background-color: rgba(55, 65, 81, 0.4);
}

/* 反应速度与职业能力相关性分析区样式 */
.professional-correlation-area {
    margin-top: var(--space-6);
}

.correlation-intro {
    margin-bottom: var(--space-4);
}

.correlation-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .correlation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.correlation-category {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.dark-theme .correlation-category {
    background-color: rgba(31, 41, 55, 0.5);
}

.correlation-category h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-3);
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.correlation-category h3 i {
    margin-right: var(--space-2);
}

.correlation-items {
    margin-bottom: var(--space-3);
}

.correlation-item {
    margin-bottom: var(--space-2);
}

.correlation-name {
    font-weight: 500;
    margin-bottom: var(--space-1);
}

.correlation-bar-container {
    height: 24px;
    background-color: rgba(243, 244, 246, 0.8);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.dark-theme .correlation-bar-container {
    background-color: rgba(55, 65, 81, 0.4);
}

.correlation-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-300), var(--primary-color));
    border-radius: 12px;
    transition: width 1s ease-in-out;
}

.correlation-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dark-theme .correlation-value {
    color: var(--text-secondary);
}

.correlation-insight {
    font-size: 0.9rem;
    padding: var(--space-3);
    background-color: rgba(243, 244, 246, 0.6);
    border-radius: var(--border-radius);
}

.dark-theme .correlation-insight {
    background-color: rgba(55, 65, 81, 0.3);
}

.correlation-conclusion {
    margin-top: var(--space-4);
    padding: var(--space-4);
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.dark-theme .correlation-conclusion {
    background-color: rgba(31, 41, 55, 0.7);
}

.correlation-conclusion h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 640px) {
    .standards-row {
        flex-direction: column;
    }
    
    .standards-row.header {
        display: none;
    }
    
    .standards-cell {
        padding: var(--space-2);
        border-bottom: 1px solid var(--border-color);
    }
    
    .standards-cell:before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: var(--space-2);
    }
}