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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f9e8, #d4edda);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 200, 160, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(100, 180, 220, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(200, 160, 220, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* 顶部导航 */
header {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    color: white;
    text-align: center;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 -2px 10px rgba(255,255,255,0.3);
    border-radius: 0 0 20px 20px;
    margin: 0 20px;
    margin-top: 20px;
}

header h1 {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

/* 主内容区 */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 测试页面主内容区 */
.test-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#start-section {
    background: linear-gradient(135deg, #ffffff, #f0f9e8);
    border-radius: 24px;
    box-shadow: 8px 8px 16px rgba(0,0,0,0.1), -4px -4px 8px rgba(255,255,255,0.8), 0 0 0 1px rgba(0,0,0,0.05);
    padding: 40px 30px;
    max-width: 650px;
    width: 90%;
    text-align: center;
    margin: 0 auto;
    position: relative;
}

#start-section::before,
#test-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.6), inset -1px -1px 2px rgba(0,0,0,0.05);
    pointer-events: none;
}

/* 测试页面内容区 */
#test-section {
    background: linear-gradient(135deg, #ffffff, #f0f9e8);
    border-radius: 24px;
    box-shadow: 8px 8px 16px rgba(0,0,0,0.1), -4px -4px 8px rgba(255,255,255,0.8), 0 0 0 1px rgba(0,0,0,0.05);
    padding: 40px 30px;
    max-width: 650px;
    width: 90%;
    text-align: center;
    margin: 0 auto;
    position: relative;
}

#start-section h2,
#test-section h2 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin-top: -10px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    background: linear-gradient(135deg, #4CAF50, #81C784);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#start-section h2::after,
#test-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #81C784);
    border-radius: 2px;
    animation: underlineExpand 0.6s ease-out;
}

@keyframes underlineExpand {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 60px;
        opacity: 1;
    }
}

.logo-icon {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-icon svg {
    width: 60px;
    height: 60px;
}

.description,
#module-instructions {
    margin-bottom: 20px;
    color: #2E7D32;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.15);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.08);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 主题选择器 */
.theme-selector {
    margin-bottom: 20px;
}

.theme-title {
    font-size: 14px;
    color: #2E7D32;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.theme-title::before,
.theme-title::after {
    content: '✦';
    margin: 0 8px;
    opacity: 0.5;
    font-size: 10px;
    vertical-align: middle;
}

.theme-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.theme-dot {
    width: 2px;
    height: 2px;
    border-radius: 0;
    border: 2px solid #ddd;
    background-color: #f0f0f0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.theme-dot:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-dot.active {
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.theme-dot.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.8px;
    height: 0.8px;
    border-radius: 0;
    background-color: #4CAF50;
    animation: dotPulse 0.4s ease-out;
}

@keyframes dotPulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 主题颜色 */
.theme-dot[data-theme="lime"] {
    border-color: #E8F1EE;
    background: linear-gradient(135deg, #74C9A9, #96D8BF);
}

.theme-dot[data-theme="lime"].active {
    border-color: #74C9A9;
}

.theme-dot[data-theme="lime"].active::after {
    background-color: #74C9A9;
}

.theme-dot[data-theme="blue"] {
    border-color: #E8F4FF;
    background: linear-gradient(135deg, #69B1FF, #B4D8F7);
}

.theme-dot[data-theme="blue"].active {
    border-color: #69B1FF;
}

.theme-dot[data-theme="blue"].active::after {
    background-color: #69B1FF;
}

.theme-dot[data-theme="peach"] {
    border-color: #FCEEF1;
    background: linear-gradient(135deg, #F8C8D0, #FAD7DF);
}

.theme-dot[data-theme="peach"].active {
    border-color: #F8C8D0;
}

.theme-dot[data-theme="peach"].active::after {
    background-color: #F8C8D0;
}

.theme-dot[data-theme="tea"] {
    border-color: #ECE9E2;
    background: linear-gradient(135deg, #A8C3AF, #D3E0D7);
}

.theme-dot[data-theme="tea"].active {
    border-color: #A8C3AF;
}

.theme-dot[data-theme="tea"].active::after {
    background-color: #A8C3AF;
}

.input-section {
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon {
    position: absolute;
    right: 15px;
    pointer-events: none;
}

.name-input {
    width: 100%;
    max-width: 350px;
    padding: 14px 18px;
    padding-right: 50px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    background-color: #f0f0f0;
    box-shadow: inset 4px 4px 8px #d1d1d1, inset -4px -4px 8px #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.name-input:focus {
    box-shadow: inset 2px 2px 4px #d1d1d1, inset -2px -2px 4px #ffffff;
    transform: translateY(2px);
}

.features {
    list-style: none;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.features li {
    background-color: #f0f0f0;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: 4px 4px 8px #d1d1d1, -4px -4px 8px #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.age-icon {
    margin-bottom: 3px;
    width: 20px;
    height: 20px;
}

.age-range {
    font-weight: bold;
    color: #667eea;
    font-size: 14px;
}

.age-note {
    font-size: 10px;
    color: #7f8c8d;
    background-color: rgba(102, 126, 234, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
}

.primary-button {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 17px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
    box-shadow: 8px 8px 16px rgba(0,0,0,0.2), -8px -8px 16px rgba(255,255,255,0.3);
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}

.division-button {
    padding: 7px 22px;
    font-size: 15px;
    max-width: 120px;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.2), -4px -4px 8px rgba(255,255,255,0.3);
    white-space: nowrap;
}

.features li:hover {
    box-shadow: 2px 2px 4px #d1d1d1, -2px -2px 4px #ffffff;
    transform: translateY(2px);
}

.features li:active {
    background: linear-gradient(135deg, #a8e6cf, #4caf50);
    color: white;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.2), inset -2px -2px 4px rgba(255,255,255,0.3);
    transform: translateY(4px);
}

.features li:active .age-range {
    color: white;
}

.features li:active .age-note {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

.instructions {
    margin-bottom: 20px;
    color: #7f8c8d;
    font-size: 12px;
    line-height: 1.4;
    padding: 12px;
    background-color: #f0f0f0;
    border-radius: 10px;
    box-shadow: inset 4px 4px 8px #d1d1d1, inset -4px -4px 8px #ffffff;
}

/* 按钮样式 */
.primary-button {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 260px;
    box-shadow: 8px 8px 16px rgba(0,0,0,0.2), -8px -8px 16px rgba(255,255,255,0.3);
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
}

.button-icon {
    width: 18px;
    height: 18px;
}

.primary-button:hover {
    box-shadow: 6px 6px 12px rgba(0,0,0,0.2), -6px -6px 12px rgba(255,255,255,0.3);
    transform: translateY(2px);
    background: linear-gradient(135deg, #81C784, #4CAF50);
}

.primary-button:active {
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.3), inset -4px -4px 8px rgba(255,255,255,0.2);
    transform: translateY(4px);
    background: linear-gradient(135deg, #388E3C, #66BB6A);
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    text-align: center;
    padding: 18px;
    font-size: 13px;
    color: white;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1), 0 2px 10px rgba(255,255,255,0.8);
    border-radius: 20px 20px 0 0;
    margin: 0 20px;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        margin: 10px;
        margin-top: 10px;
        padding: 15px;
    }
    
    header h1 {
        font-size: 20px;
    }
    
    main {
        padding: 20px 15px;
    }
    
    #start-section,
    #test-section {
        padding: 30px 20px;
        max-height: 90vh;
        overflow-y: auto;
        width: 95%;
    }
    
    #start-section h2,
    #test-section h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .description,
    #module-instructions {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .input-section {
        margin-bottom: 20px;
    }
    
    .name-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .features li {
        padding: 12px;
    }
    
    .age-range {
        font-size: 14px;
    }
    
    .age-note {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .instructions {
        padding: 15px;
        font-size: 12px;
        margin-bottom: 25px;
    }
    
    .primary-button {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    footer {
        margin: 10px;
        margin-bottom: 10px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 18px;
    }
    
    #start-section h2 {
        font-size: 16px;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .instructions {
        font-size: 11px;
        line-height: 1.4;
    }
    
    .primary-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* 测试页面样式 */
.test-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.test-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 20px;
}

.disclaimer {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 10px;
}

.test-main {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 30px;
    min-height: 500px;
}

section {
    text-align: center;
}

.hidden {
    display: none;
}

h2 {
    color: #34495e;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

#module-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    background: linear-gradient(135deg, #4CAF50, #81C784);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#module-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #81C784, #4CAF50);
    border-radius: 2px;
    animation: underlineExpand 0.8s ease-out;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

#module-instructions {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.15);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.08);
    animation: fadeInUp 0.6s ease-out;
    color: #2E7D32;
    min-height: 40px;
}

#module-content {
    margin-bottom: 30px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#feedback {
    margin: 15px auto 10px;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 16px;
    min-height: 40px;
    max-width: 90%;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

#feedback.show {
    opacity: 1;
    transform: translateY(0);
}

#feedback.correct {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    animation: feedbackSlideIn 0.4s ease-out forwards;
}

#feedback.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    animation: feedbackSlideIn 0.4s ease-out forwards;
}

#feedback.go-correct {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    animation: feedbackSlideIn 0.4s ease-out forwards;
}

#feedback.nogo-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    animation: feedbackSlideIn 0.4s ease-out forwards;
}

@keyframes feedbackSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    50% {
        transform: translateY(2px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes feedbackFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

#progress {
    font-size: 14px;
    color: #7f8c8d;
}

/* 舒尔特方格样式 */
.schulte-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.schulte-grid.practice {
    grid-template-columns: repeat(2, 1fr);
    max-width: 200px;
}

.schulte-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.schulte-container .schulte-grid {
    margin: 0 auto;
}

.schulte-cell {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ecf0f1;
    border-radius: 4px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.schulte-cell:hover {
    background-color: #d5dbdb;
    transition: background-color 0.2s ease;
}

.schulte-cell.correct {
    background-color: #27ae60;
    color: white;
    animation: correctPulse 1s ease-out;
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.6);
    transition: all 0.3s ease;
}

.schulte-cell.incorrect {
    background-color: #e74c3c;
    color: white;
    animation: incorrectShake 0.5s ease-in-out;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.6);
    transition: all 0.3s ease;
}

/* 正确点击动画 */
@keyframes correctPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(39, 174, 96, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(39, 174, 96, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(39, 174, 96, 0.6);
    }
}

/* 错误点击动画 */
@keyframes incorrectShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* 反馈消息动画 */

/* 通用点击效果 */
.correct {
    animation: correctPulse 1s ease-out;
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.6);
    transition: all 0.3s ease;
}

.incorrect {
    animation: incorrectShake 0.5s ease-in-out;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.6);
    transition: all 0.3s ease;
}

.schulte-cell.blinking {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        background-color: #ecf0f1;
    }
    50% {
        background-color: rgba(116, 201, 169, 0.3);
        transform: scale(1.05);
    }
}

/* 自定义弹窗样式 */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.custom-alert-content {
    background: linear-gradient(135deg, #F7FBF9, #E8F1EE);
    border-radius: 24px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.custom-alert-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #42B883, #74C9A9);
}

.custom-alert-message {
    font-size: 18px;
    font-weight: 600;
    color: #2D3731;
    margin-bottom: 24px;
    line-height: 1.4;
}

.custom-alert-button {
    background: linear-gradient(135deg, #42B883, #74C9A9);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 184, 131, 0.3);
}

.custom-alert-button:hover {
    background: linear-gradient(135deg, #74C9A9, #42B883);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 184, 131, 0.4);
}

.custom-alert-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(66, 184, 131, 0.3);
}

.schulte-hint {
    margin-top: 20px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #2D3731;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.schulte-stats {
    margin-top: 20px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    font-size: 14px;
    max-width: 400px;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stats-item {
    text-align: center;
    padding: 8px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.05);
}

.stats-label {
    font-weight: 600;
    color: #495057;
    font-size: 12px;
    margin-bottom: 4px;
}

.stats-value {
    font-weight: 700;
    color: #42B883;
    font-size: 16px;
    margin-bottom: 2px;
}

.stats-unit {
    font-size: 10px;
    color: #6c757d;
}

/* 自定义弹窗样式 */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.custom-alert-content {
    background: linear-gradient(135deg, #ffffff, #f0f9e8);
    border-radius: 24px;
    box-shadow: 8px 8px 16px rgba(0,0,0,0.1), -4px -4px 8px rgba(255,255,255,0.8), 0 0 0 1px rgba(0,0,0,0.05);
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.custom-alert-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.6), inset -1px -1px 2px rgba(0,0,0,0.05);
    pointer-events: none;
}

.custom-alert-message {
    font-size: 16px;
    margin-bottom: 20px;
    color: #2E7D32;
    font-weight: 500;
}

.custom-alert-button {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 1px;
}

.custom-alert-button:hover {
    background: linear-gradient(135deg, #81C784, #4CAF50);
    transform: translateY(2px);
}

.custom-alert-button:active {
    background: linear-gradient(135deg, #388E3C, #66BB6A);
    transform: translateY(4px);
}

/* Stroop模块关键样式 */
.stroop-item-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px 0 40px 0;
    min-height: 120px;
}

.stroop-item-container.size-trial-container {
    height: 100px;
}

.stroop-item {
    font-size: 84px;
    font-weight: bold;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: stroopItemAppear 100ms ease-out;
}

@keyframes stroopItemAppear {
    0% {
        opacity: 0;
        transform: scale(1.3) translateY(-20px);
        filter: blur(8px);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05) translateY(-8px);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes stroopItemDisappear {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95) translateY(10px);
        filter: blur(4px);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(25px);
        filter: blur(12px);
    }
}

.stroop-item.disappearing {
    animation: stroopItemDisappear 100ms ease-in forwards;
}

.stroop-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 360px;
    padding: 0 10px;
}

.stroop-btn {
            flex: 1;
            max-width: 80px;
            height: 56px;
            font-size: 24px;
            font-weight: 600;
            border: none;
            border-radius: 12px;
            background: linear-gradient(145deg, #ffffff, #e6e6e6);
            color: #555;
            cursor: pointer;
            transition: all 150ms ease-out;
            box-shadow: 
                4px 4px 8px rgba(0, 0, 0, 0.15),
                -2px -2px 6px rgba(255, 255, 255, 0.9),
                inset 1px 1px 2px rgba(255, 255, 255, 0.5);
            position: relative;
            overflow: hidden;
            letter-spacing: 2px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }
        
        .stroop-btn:hover {
            transform: translateY(-1px);
            box-shadow: 
                5px 5px 10px rgba(0, 0, 0, 0.18),
                -2.5px -2.5px 7px rgba(255, 255, 255, 0.95),
                inset 1px 1px 2px rgba(255, 255, 255, 0.6);
            background: linear-gradient(145deg, #fafafa, #f0f0f0);
        }
        
        .stroop-btn:active {
            transform: translateY(1px);
            box-shadow: 
                2px 2px 4px rgba(0, 0, 0, 0.15),
                -1px -1px 3px rgba(255, 255, 255, 0.8),
                inset 2px 2px 4px rgba(0, 0, 0, 0.1);
            background: linear-gradient(145deg, #e6e6e6, #f5f5f5);
        }
        
        /* 练习题正确答案提示样式 */
        .stroop-btn.correct-hint {
            animation: correctHintPulse 800ms ease-in-out;
            background: linear-gradient(145deg, #d4edda, #c3e6cb) !important;
            color: #155724 !important;
            box-shadow: 
                0 0 20px rgba(40, 167, 69, 0.4),
                4px 4px 8px rgba(0, 0, 0, 0.15),
                -2px -2px 6px rgba(255, 255, 255, 0.9) !important;
        }
        
        @keyframes correctHintPulse {
            0% {
                transform: scale(1);
                box-shadow: 
                    0 0 0 rgba(40, 167, 69, 0),
                    4px 4px 8px rgba(0, 0, 0, 0.15),
                    -2px -2px 6px rgba(255, 255, 255, 0.9);
            }
            50% {
                transform: scale(1.08);
                box-shadow: 
                    0 0 25px rgba(40, 167, 69, 0.6),
                    5px 5px 10px rgba(0, 0, 0, 0.15),
                    -2.5px -2.5px 7px rgba(255, 255, 255, 0.95);
            }
            100% {
                transform: scale(1);
                box-shadow: 
                    0 0 15px rgba(40, 167, 69, 0.3),
                    4px 4px 8px rgba(0, 0, 0, 0.15),
                    -2px -2px 6px rgba(255, 255, 255, 0.9);
            }
}

/* C方案大小按钮专用样式 */
.stroop-size-btn {
    flex: 1;
    max-width: 120px;
    height: 64px;
    font-size: 28px;
    font-weight: 700;
    border: none;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    color: #555;
    cursor: pointer;
    transition: all 150ms ease-out;
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.15),
        -2px -2px 6px rgba(255, 255, 255, 0.9),
        inset 1px 1px 2px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stroop-size-btn:hover {
    transform: translateY(-1px);
    box-shadow: 
        5px 5px 10px rgba(0, 0, 0, 0.18),
        -2.5px -2.5px 7px rgba(255, 255, 255, 0.95),
        inset 1px 1px 2px rgba(255, 255, 255, 0.6);
    background: linear-gradient(145deg, #fafafa, #f0f0f0);
}

.stroop-size-btn:active {
    transform: translateY(1px);
    box-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.15),
        -1px -1px 3px rgba(255, 255, 255, 0.9),
        inset 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* C方案字体样式 */
.stroop-item.font-large {
    font-size: 84px !important;
    font-weight: bold;
    line-height: 1.2;
}

.stroop-item.font-small {
    font-size: 36px !important;
    font-weight: normal;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .stroop-item { 
        font-size: 64px; 
        min-height: 80px; 
    }
    
    .stroop-buttons {
        max-width: 320px;
        gap: 8px;
        padding: 0 5px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .stroop-btn { 
        width: 100%;
        max-width: 72px;
        height: 52px; 
        font-size: 20px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .stroop-item-container {
        margin: 40px 0 30px 0;
        min-height: 100px;
    }
}

@media (max-width: 400px) {
    .stroop-buttons {
        max-width: 280px;
        gap: 6px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .stroop-btn { 
        max-width: 64px;
        height: 48px; 
        font-size: 18px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .stroop-item { 
        font-size: 48px; 
    }
}

/* 划消测试样式 */
.cancellation-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 5px;
    max-width: 450px;
    margin: 20px auto;
}

.cancellation-grid.practice {
    grid-template-columns: repeat(3, 1fr);
    max-width: 200px;
}

.cancellation-cell {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ecf0f1;
    border-radius: 4px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.cancellation-cell:hover {
    background-color: #d5dbdb;
}

.cancellation-cell.correct {
    background-color: rgba(39, 174, 96, 0.15);
}

.cancellation-cell.correct::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: linear-gradient(to bottom right, transparent 48%, #27ae60 48%, #27ae60 52%, transparent 52%);
    pointer-events: none;
}

.cancellation-cell.incorrect {
    background-color: rgba(231, 76, 60, 0.15);
}

.cancellation-cell.incorrect::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: linear-gradient(to bottom right, transparent 48%, #e74c3c 48%, #e74c3c 52%, transparent 52%);
    pointer-events: none;
}

/* Go/NoGo测试样式 */
.gonogo-item {
    font-size: 72px;
    font-weight: bold;
    margin: 60px 0;
    min-height: 120px;
}

/* Stroop测试样式 */
.find-tai-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 3px;
    max-width: 320px;
    width: 100%;
    margin: -66px auto;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 10px;
}

.find-tai-cell {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: light;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: white;
}

.find-tai-cell:hover {
    background: #f8f9fa;
}

/* 3.1题计数和倒计时样式 */
#tai-counter {
    font-size: 16px;
    font-weight: 500;
    color: #2E7D32;
    margin-top: 66px;
    text-align: center;
}

#tai-countdown {
    font-size: 16px;
    font-weight: 500;
    color: #2E7D32;
    margin-top: 3px;
    text-align: center;
}

.find-tai-cell.found {
    background: #d4edda;
    border-color: #c3e6cb;
}

.find-tai-cell.error {
    background: #f8d7da;
    border-color: #f5c6cb;
}

/* GO/NO GO任务样式 */
.go-no-go-rules {
    text-align: center;
    margin-bottom: 30px;
}

.go-no-go-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-height: 300px;
    justify-content: center;
}

#go-no-go-stimulus {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* 专注力持久性模块样式 */
.persistence-practice {
    text-align: center;
    padding: 20px;
}

.persistence-find8 {
    text-align: center;
    padding: 15px;
}

#find8-progress {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

#find8-number-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px auto;
}

.find8-number-cell {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.findduplicate-letter-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px auto;
}

#findduplicate-progress {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

#persistence-timer {
    font-size: 16px;
    font-weight: bold;
    margin-top: 18px;
    color: #333;
}

.persistence-find-duplicate {
    text-align: center;
    padding: 15px;
}

#findduplicate-letter-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px auto;
}

/* 时间感知任务样式 */
.persistence-time-perception {
    text-align: center;
    padding: 20px;
}

.persistence-time-perception-active {
    text-align: center;
    padding: 20px;
}

/* 舒尔特方格样式 */
.schulte-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 90vw;
    margin: -29px auto -30px;
    padding: 10px;
}

.schulte-hint {
    font-size: 16px;
}

.schulte-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    width: 360px;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px;
    border-radius: 10px;
    box-sizing: border-box;
}

.schulte-cell {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: white;
    padding: 2px;
}

.schulte-cell:hover {
    background: #f8f9fa;
}

.schulte-cell.correct {
    background-color: #27ae60;
    color: white;
}

.schulte-cell.incorrect {
    background-color: #e74c3c;
    color: white;
}

#schulte-timer {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

/* 专注力分配模块样式 */
.division-color-shape {
    text-align: center;
    padding: 15px;
}

.division-target-hint {
    margin-bottom: 15px;
    font-size: 16px;
}

.division-shape-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 260px;
    width: 100%;
    margin: 15px auto;
}

.division-shape-cell {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ecf0f1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 auto;
}

.division-shape-cell:hover {
    background-color: #e2e6ea;
}

#division-timer {
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
    color: #333;
}

/* 掉落数字游戏样式 */
.division-falling-numbers {
    text-align: center;
    padding: 15px;
    max-width: 90vw;
    width: 100%;
    margin: 0 auto;
}

.division-progress-bar {
    margin-bottom: 12px;
}

.progress-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.progress-track {
    width: 100%;
    max-width: 320px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.4);
}

.progress-text {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.division-stats {
    display: flex;
    justify-content: space-around;
    max-width: 320px;
    margin: 0 auto 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
}

#division-combo.combo-active {
    color: #f39c12;
    animation: comboPulse 0.5s ease;
}

@keyframes comboPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

#game-area {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 400px;
    margin: 0 auto;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 0 20px rgba(255,255,255,0.5);
    transition: transform 0.1s ease;
}

#game-area.game-area-shake {
    animation: gameShake 0.3s ease;
}

@keyframes gameShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

#game-catcher {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 40px;
    background: linear-gradient(180deg, #3498db, #2980b9);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -2px 8px rgba(52, 152, 219, 0.3);
    z-index: 5;
}

.catcher-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.falling-number {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.1s ease;
}

.falling-number:hover {
    transform: scale(1.1);
}

.falling-number.green {
    background: linear-gradient(145deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4), 0 0 20px rgba(46, 204, 113, 0.3);
}

.falling-number.distractor {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.game-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 20;
    animation: particleExplode 0.6s ease-out forwards;
}

@keyframes particleExplode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

.combo-feedback {
    position: absolute;
    font-size: 20px;
    font-weight: bold;
    color: #27ae60;
    pointer-events: none;
    z-index: 25;
    animation: comboFloat 0.8s ease-out forwards;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@keyframes comboFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) scale(1.5);
        opacity: 0;
    }
}

.game-result {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    animation: resultFadeIn 0.5s ease-out;
}

@keyframes resultFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.result-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.result-score {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.result-stats {
    display: flex;
    gap: 20px;
}

.result-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.result-stat-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.result-stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* 双手操作绘图样式 */
.division-hand-drawing {
    text-align: center;
    padding: 2px 10px 10px;
    max-width: 100vw;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.division-task-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 7px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.division-canvas-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
    width: 100%;
}

.division-canvas-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 48%;
}

.division-canvas-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    padding: 6px 12px;
    background: #f0f4ff;
    border-radius: 6px;
    min-width: 120px;
}

.hand-canvas {
    border: 3px solid #667eea;
    border-radius: 12px;
    background-color: #fafafa;
    cursor: crosshair;
    touch-action: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    position: relative;
}

.division-joystick-container {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.virtual-joystick {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #e9ecef 0%, #dee2e6 100%);
    border-radius: 50%;
    position: relative;
    border: 3px solid #adb5bd;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.joystick-base {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    transition: transform 0.05s ease-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.joystick-center-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #999;
    opacity: 0.5;
}

.joystick-center-mark::before,
.joystick-center-mark::after {
    content: '';
    position: absolute;
    background: #999;
}

.joystick-center-mark::before {
    width: 2px;
    height: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.joystick-center-mark::after {
    width: 20px;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.division-control-panel {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.btn-submit {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
}

.btn-clear {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(220, 53, 69, 0.3);
}

.btn-clear:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4);
}

.btn-next-round {
    background: linear-gradient(135deg, #007bff 0%, #6f42c1 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

.btn-next-round:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
}

.division-validation-result {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
}

.validation-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.validation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.validation-card {
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.validation-card.pass {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.validation-card.fail {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.validation-card-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.validation-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.status-pass {
    background: #28a745;
    color: white;
}

.status-fail {
    background: #dc3545;
    color: white;
}

.validation-details {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.validation-details div {
    margin: 4px 0;
}

/* 得分摘要样式 */
.score-summary {
    grid-column: 1 / -1;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 15px;
    border: 3px solid;
}

.score-pass {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.score-fail {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    border-color: #ffc107;
}

.score-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.score-value {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
    color: #28a745;
}

.score-fail .score-value {
    color: #dc3545;
}

.score-detail {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* N-Back测试样式 */
.nback-item {
    font-size: 64px;
    font-weight: bold;
    margin: 50px 0;
    min-height: 100px;
}

.nback-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* 听觉广度测试样式 */
.audio-span-content {
    padding: 20px 40px;
}

.audio-span-message {
    font-size: 18px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 500;
}

.audio-span-item {
    font-size: 36px;
    margin: 20px 0;
    min-height: 60px;
}

.audio-span-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.audio-span-input-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.audio-span-input-field {
    padding: 10px 20px;
    font-size: 24px;
    width: 120px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    letter-spacing: 4px;
    font-weight: bold;
    color: #2c3e50;
}

.audio-span-input-field:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 4px 16px rgba(52,152,219,0.25);
}

/* 数字键盘样式 */
.audio-span-keypad {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
    padding: 15px;
    background: linear-gradient(135deg, #f5f6fa 0%, #dfe4ea 100%);
    border-radius: 16px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.08);
}

.audio-span-key {
    padding: 15px;
    font-size: 22px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff, #f0f4f8);
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        4px 4px 8px rgba(163,177,198,0.5),
        -4px -4px 8px rgba(255,255,255,0.9);
}

.audio-span-key:hover {
    transform: translateY(-1px);
    box-shadow: 
        4px 4px 8px rgba(163,177,198,0.5),
        -4px -4px 8px rgba(255,255,255,0.9);
}

.audio-span-key:active {
    transform: translateY(1px);
    box-shadow: 
        inset 2px 2px 4px rgba(163,177,198,0.4),
        inset -2px -2px 4px rgba(255,255,255,0.8);
}

.audio-span-delete {
    background: linear-gradient(145deg, #ff7675, #d63031) !important;
    color: white !important;
    font-size: 18px !important;
}

.audio-span-delete:hover {
    background: linear-gradient(145deg, #ff5252, #c0392b) !important;
}

/* 提交按钮 */
.audio-span-submit-btn {
    padding: 14px 48px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102,126,234,0.35);
    letter-spacing: 2px;
}

.audio-span-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.45);
}

.audio-span-submit-btn:active {
    transform: translateY(0);
}

/* 练习模式语音提示 */
.audio-span-practice-hint {
    text-align: center;
    padding: 30px 20px;
}

.practice-hint-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: practicePulse 1.5s ease-in-out infinite;
}

@keyframes practicePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(40, 167, 69, 0.3);
    }
    50% { 
        transform: scale(1.08);
        box-shadow: 0 6px 16px rgba(40, 167, 69, 0.5);
    }
}

.practice-hint-text {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.practice-hint-sub {
    font-size: 16px;
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .audio-span-content {
        padding: 15px 20px;
    }
    
    .audio-span-message {
        font-size: 16px;
    }
    
    .audio-span-input-field {
        width: 120px;
        font-size: 24px;
        padding: 10px 20px;
    }
    
    .audio-span-keypad {
        grid-template-columns: repeat(5, 1fr);
        max-width: 480px;
        gap: 8px;
        padding: 15px;
    }
    
    .audio-span-key {
        padding: 10px;
        font-size: 18px;
    }
    
    .audio-span-submit-btn {
        padding: 12px 36px;
        font-size: 16px;
    }
    
    .practice-hint-icon {
        font-size: 40px;
    }
    
    .practice-hint-text {
        font-size: 18px;
    }
    
    .practice-hint-sub {
        font-size: 14px;
    }
}

/* 休息时间样式 */
#rest-timer {
    font-size: 48px;
    font-weight: bold;
    margin: 30px 0;
    color: #3498db;
}

.test-footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 14px;
    color: #7f8c8d;
}

/* 冲动窗口样式 */
.impulse-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(231, 76, 60, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.impulse-window::before {
    content: "冲动窗口 - 2秒内请仔细思考";
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .test-main {
        padding: 20px;
    }
    
    .schulte-grid {
        gap: 5px;
    }
    
    .schulte-cell {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .stroop-item {
        font-size: 48px;
        min-height: 70px;
    }
    
    .stroop-buttons {
        gap: 15px;
    }
    
    .stroop-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .gonogo-item {
        font-size: 54px;
    }
    
    .nback-item {
        font-size: 48px;
    }
    
    .nback-buttons {
        gap: 10px;
    }
    
    .cancellation-grid {
        gap: 3px;
        max-width: 480px;
    }
    
    .cancellation-cell {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    
    /* 1.4题图形适配 */
    #module-content svg {
        max-width: 100%;
        height: auto;
    }
    
    /* 1.5题马赛克适配 */
    #mosaic-canvas {
        max-width: 100%;
        height: auto;
    }
    
    /* 1.7题汉字按钮适配 */
    .hanzi-grid {
        gap: 5px;
        max-width: 340px;
    }
    
    .hanzi-cell {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    /* 1.8题记忆数字适配 */
    .memory-numbers {
        font-size: 18px;
        padding: 15px;
    }
    
    /* 听觉专注力模块适配 */
    .audio-span-content {
        padding: 15px 20px;
    }
    
    .audio-span-message {
        font-size: 16px;
    }
    
    .audio-span-input-field {
        width: 120px;
        font-size: 24px;
        padding: 10px 20px;
    }
    
    .audio-span-keypad {
        grid-template-columns: repeat(5, 1fr);
        max-width: 480px;
        gap: 8px;
        padding: 15px;
    }
    
    .audio-span-key {
        padding: 10px;
        font-size: 18px;
    }
    
    .audio-span-submit-btn {
        padding: 12px 36px;
        font-size: 16px;
    }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
    .test-main {
        padding: 15px;
    }
    
    .schulte-grid {
        gap: 4px;
    }
    
    .schulte-cell {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .stroop-item {
        font-size: 36px;
        min-height: 60px;
    }
    
    .stroop-buttons {
        gap: 10px;
    }
    
    .stroop-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .gonogo-item {
        font-size: 48px;
    }
    
    .nback-item {
        font-size: 40px;
    }
    
    .cancellation-grid {
        gap: 5px;
        max-width: 480px;
    }
    
    .cancellation-cell {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    
    /* 1.7题汉字按钮适配 */
    .hanzi-grid {
        gap: 4px;
        max-width: 280px;
    }
    
    .hanzi-cell {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    /* 1.8题记忆数字适配 */
    .memory-numbers {
        font-size: 16px;
        padding: 12px;
    }
    
    /* 听觉专注力模块适配 */
    .audio-span-content {
        padding: 10px 15px;
    }
    
    .audio-span-message {
        font-size: 14px;
    }
    
    .audio-span-input-field {
        width: 200px;
        font-size: 16px;
        padding: 10px 15px;
    }
    
    .audio-span-keypad {
        grid-template-columns: repeat(3, 1fr);
        max-width: 280px;
        gap: 5px;
        padding: 10px;
    }
    
    .audio-span-key {
        padding: 8px;
        font-size: 16px;
    }
    
    .audio-span-submit-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* 听觉专注力模块新增样式 */
.audio-span-timer {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 20px;
    text-align: center;
}

/* 填空输入框样式 */
.audio-span-fill-input {
    transition: all 0.3s ease;
}

/* 呼吸动画 */
@keyframes breathing {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 12px rgba(76, 175, 80, 0.8);
    }
}

.audio-span-options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.audio-span-option-btn {
    padding: 16px 20px;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.audio-span-option-btn:hover {
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52,152,219,0.3);
}

.audio-span-option-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(52,152,219,0.2);
}

@media (max-width: 768px) {
    .audio-span-timer {
        font-size: 20px;
    }
    
    .audio-span-options-container {
        gap: 10px;
        max-width: 320px;
    }
    
    .audio-span-option-btn {
        padding: 14px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .audio-span-timer {
        font-size: 18px;
    }
    
    .audio-span-options-container {
        gap: 8px;
        max-width: 280px;
    }
    
    .audio-span-option-btn {
        padding: 12px 14px;
        font-size: 13px;
    }
}

/* ==================== N-Back 滑动窗口样式 ==================== */
.nback-sliding-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* N-Back 表格布局 */
.nback-table {
    border-collapse: separate;
    border-spacing: 20px 10px;
    margin: 0 auto;
    background: transparent;
}

.nback-arrow-cell {
    width: 90px;
    height: 50px;
    text-align: center;
    vertical-align: bottom;
    padding: 0;
    background: transparent;
}

.nback-slot-cell {
    width: 90px;
    height: 90px;
    text-align: center;
    vertical-align: middle;
    padding: 0;
    background: transparent;
}

/* 可爱箭头提示 */
.nback-arrow-hint {
    font-size: 48px;
    animation: arrowBounce 1.2s ease-in-out infinite;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: inline-block;
}

@keyframes arrowBounce {
    0%, 100% { 
        transform: translateY(0);
        opacity: 1;
    }
    50% { 
        transform: translateY(12px);
        opacity: 0.6;
    }
}

.nback-sliding-window {
    display: block;
    padding: 30px;
    background: transparent;
    position: relative;
}

.nback-slot {
    width: 90px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    position: relative;
}

.nback-slot:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.slot-label {
    position: absolute;
    bottom: -25px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
}

.nback-char {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: bold;
    color: #2c3e50;
    background: linear-gradient(135deg, #fff5e6, #ffe4b3);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(255,152,0,0.3);
    position: relative;
}

/* 正式测试灰度球样式 */
.gray-ball {
    font-size: 0 !important;
}

.gray-dark {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    box-shadow: 0 4px 10px rgba(108,117,125,0.4) !important;
}

.gray-light {
    background: linear-gradient(135deg, #adb5bd, #868e96) !important;
    box-shadow: 0 4px 10px rgba(173,181,189,0.4) !important;
}

/* 位置一字符白色 */
.white-text {
    color: #ffffff !important;
    font-size: 42px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Q弹出现动画 - pop-in (无旋转) */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    60% {
        opacity: 1;
        transform: scale(1.1);
    }
    80% {
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.pop-in {
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* 弹性滑动动画 - slide-left */
@keyframes slideLeft {
    0% {
        opacity: 0.7;
        transform: translateX(100%) scale(0.85);
    }
    50% {
        opacity: 1;
        transform: translateX(10%) scale(1.05);
    }
    75% {
        transform: translateX(-3%) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.slide-left {
    animation: slideLeft 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 气球爆炸消失动画 - pop-out */
@keyframes popOut {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        background: linear-gradient(135deg, #fff5e6, #ffe4b3);
    }
    30% {
        transform: scale(1.3) rotate(10deg);
        background: linear-gradient(135deg, #ffcc80, #ffb74d);
        box-shadow: 0 8px 20px rgba(255,87,34,0.6);
    }
    60% {
        opacity: 0.8;
        transform: scale(1.6) rotate(-15deg);
        background: linear-gradient(135deg, #ff5722, #e64a19);
        box-shadow: 0 12px 28px rgba(244,67,54,0.8), 
                    0 0 30px rgba(255,235,59,0.6),
                    0 0 50px rgba(255,193,7,0.4);
    }
    100% {
        opacity: 0;
        transform: scale(2.2) rotate(25deg) translateY(-30px);
        filter: blur(8px);
        box-shadow: 0 18px 35px rgba(233,30,99,0.9), 
                    0 0 60px rgba(156,39,176,0.7);
    }
}

.pop-out {
    animation: popOut 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

/* 左滑消失动画（保留音效） */
@keyframes fadeOutLeft {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    60% {
        opacity: 0.8;
        transform: translateX(-30%) scale(0.95);
    }
    100% {
        opacity: 0;
        transform: translateX(-100%) scale(0.8);
    }
}

.fade-out-left {
    animation: fadeOutLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* N-Back按钮样式优化 */
.nback-buttons {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.nback-btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.same-btn {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
}

.same-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(76,175,80,0.4);
    background: linear-gradient(135deg, #43A047, #4CAF50);
}

.different-btn {
    background: linear-gradient(135deg, #FF5722, #FF7043);
    color: white;
}

.different-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255,87,34,0.4);
    background: linear-gradient(135deg, #E64A19, #FF5722);
}

.nback-btn:active {
    transform: translateY(0) scale(0.98);
}

/* 响应式设计 - N-Back滑动窗口 */
@media (max-width: 768px) {
    .nback-sliding-window {
        padding: 20px;
    }
    
    .nback-table {
        border-spacing: 12px 8px;
    }
    
    .nback-arrow-cell {
        width: 65px;
        height: 40px;
    }
    
    .nback-slot-cell {
        width: 65px;
        height: 65px;
    }
    
    .nback-arrow-hint {
        font-size: 36px;
    }
    
    .nback-slot {
        width: 65px;
        height: 65px;
    }
    
    .nback-char {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .slot-label {
        bottom: -22px;
        font-size: 11px;
    }
    
    .nback-buttons {
        gap: 15px;
    }
    
    .nback-btn {
        padding: 12px 28px;
        font-size: 16px;
    }
}

/* ==================== Go/NoGo 纯CSS视觉信号样式 ==================== */
.gonogo-signal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    position: relative;
}

.gonogo-signal {
    width: 180px;
    height: 180px;
    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);
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    user-select: none;
}

.gonogo-signal:hover {
    transform: scale(1.08);
}

.gonogo-signal:active {
    transform: scale(0.95);
}

/* 禁止图标容器 - 用于练习NoGo题目的提示 */
.prohibit-icon-container {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.prohibit-icon {
    font-size: 48px;
    opacity: 1;
    transition: all 150ms ease-in-out;
    filter: drop-shadow(0 4px 8px rgba(231, 76, 60, 0.3));
}

/* Go按钮光晕引导效果 */
.glow-guide-active {
    animation: none !important;
    transition: box-shadow 300ms ease-in-out;
    position: relative;
}

/* 光圈引导效果 - 与demo方案B一致 */
.glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
}

.go-glow {
    border: 3px solid rgba(76, 175, 80, 0.6);
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.4);
    background: transparent;
}

.nogo-glow {
    border: 3px solid rgba(244, 67, 54, 0.6);
    box-shadow: 0 0 30px rgba(244, 67, 54, 0.4);
    background: transparent;
}

/* 光圈扩散动画 - 与demo方案B一致 */
@keyframes glowExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* 激活光圈动画 */
.glow-ring.active {
    animation: glowExpand 800ms ease-out forwards;
}

@keyframes prohibitFlash {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* GO信号 - 绿色 */
.go-signal {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    border: 6px solid #388E3C;
    box-shadow: 
        0 10px 30px rgba(76, 175, 80, 0.5),
        inset 0 -4px 12px rgba(0, 100, 0, 0.3),
        inset 0 4px 12px rgba(255, 255, 255, 0.4);
}

.go-signal::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 25%;
    height: 20%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.7) 0%, transparent 70%);
    border-radius: 50%;
    transform: rotate(-30deg);
}

.go-signal .signal-text {
    font-size: 56px;
    font-weight: bold;
    color: white;
    text-shadow: 
        2px 2px 4px rgba(0, 80, 0, 0.6),
        0 0 15px rgba(255, 255, 255, 0.5);
    letter-spacing: 4px;
    z-index: 2;
}

/* NO-GO信号 - 红色 */
.nogo-signal {
    background: linear-gradient(135deg, #F44336, #EF5350);
    border: 6px solid #D32F2F;
    box-shadow: 
        0 10px 30px rgba(244, 67, 54, 0.5),
        inset 0 -4px 12px rgba(139, 0, 0, 0.3),
        inset 0 4px 12px rgba(255, 255, 255, 0.4);
}

.nogo-signal::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 25%;
    height: 20%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.65) 0%, transparent 70%);
    border-radius: 50%;
    transform: rotate(-30deg);
}

.nogo-signal::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    border: 4px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.nogo-signal .signal-text {
    font-size: 42px;
    font-weight: bold;
    color: white;
    text-shadow: 
        2px 2px 4px rgba(120, 0, 0, 0.7),
        0 0 15px rgba(255, 255, 255, 0.45);
    letter-spacing: 3px;
    line-height: 1.3;
    text-align: center;
    z-index: 2;
}

/* GO正确点击动画 */
@keyframes goCorrectPulse {
    0% { transform: scale(1); }
    50% { 
        transform: scale(1.15); 
        box-shadow: 
            0 15px 40px rgba(76, 175, 80, 0.7),
            inset 0 -4px 12px rgba(0, 100, 0, 0.3),
            inset 0 4px 12px rgba(255, 255, 255, 0.5);
    }
    100% { transform: scale(1); }
}

.go-correct {
    animation: goCorrectPulse 0.4s ease-out !important;
}

/* NO-GO错误点击动画 */
@keyframes nogoErrorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

.nogo-error {
    animation: nogoErrorShake 0.4s ease-out !important;
    background: linear-gradient(135deg, #B71C1C, #D32F2F) !important;
    border-color: #B71C1C !important;
}

/* ==================== 机械开关动画 (方案C - 100ms极速版) ==================== */

/* 1. 翻转出现动画 - 100ms */
@keyframes switchFlipIn {
    0% {
        opacity: 0;
        transform: perspective(600px) rotateY(-90deg);
    }
    60% {
        opacity: 1;
        transform: perspective(600px) rotateY(10deg);
    }
    100% {
        opacity: 1;
        transform: perspective(600px) rotateY(0deg);
    }
}

.switch-appear {
    animation: switchFlipIn 100ms cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

/* 2. 保持期按压动画 */
@keyframes switchPressDown {
    0%, 100% { 
        transform: translateY(0); 
        box-shadow: 
            0 10px 30px rgba(76, 175, 80, 0.5),
            inset 0 -4px 12px rgba(0, 100, 0, 0.3),
            inset 0 4px 12px rgba(255, 255, 255, 0.4);
    }
    50% { 
        transform: translateY(6px); 
        box-shadow: 
            0 6px 20px rgba(76, 175, 80, 0.4),
            inset 0 -2px 8px rgba(0, 100, 0, 0.25),
            inset 0 2px 8px rgba(255, 255, 255, 0.35);
    }
}

@keyframes switchPressDownRed {
    0%, 100% { 
        transform: translateY(0); 
        box-shadow: 
            0 10px 30px rgba(244, 67, 54, 0.5),
            inset 0 -4px 12px rgba(139, 0, 0, 0.3),
            inset 0 4px 12px rgba(255, 255, 255, 0.4);
    }
    50% { 
        transform: translateY(6px); 
        box-shadow: 
            0 6px 20px rgba(244, 67, 54, 0.4),
            inset 0 -2px 8px rgba(139, 0, 0, 0.25),
            inset 0 2px 8px rgba(255, 255, 255, 0.35);
    }
}

.switch-breathing.go-signal {
    animation: switchPressDown 1200ms ease-in-out infinite !important;
}

.switch-breathing.nogo-signal {
    animation: switchPressDownRed 1200ms ease-in-out infinite !important;
}

/* 3. 翻转消失动画 - 220ms */
@keyframes switchFlipOut {
    0% {
        opacity: 1;
        transform: perspective(600px) rotateY(0deg);
    }
    50% {
        transform: perspective(600px) rotateY(-15deg);
    }
    100% {
        opacity: 0;
        transform: perspective(600px) rotateY(90deg);
    }
}

.switch-disappear {
    animation: switchFlipOut 220ms cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

/* 响应式设计 - Go/NoGo */
@media (max-width: 768px) {
    .gonogo-signal {
        width: 150px;
        height: 150px;
    }
    
    .go-signal .signal-text {
        font-size: 46px;
    }
    
    .nogo-signal .signal-text {
        font-size: 34px;
    }
}

/* Stroop阶段说明 - 基础样式 */
.phase-instructions {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    padding: 25px;
    max-width: 650px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    animation: fadeInUp 0.3s ease-out;
}

.phase-instructions .phase-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.phase-instructions .phase-title {
    color: #2c3e50;
    font-size: 28px;
    margin: 0;
}

.phase-instructions .phase-subtitle {
    color: #7f8c8d;
    font-size: 16px;
    margin-top: 10px;
}

.phase-instructions .phase-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.phase-instructions .phase-line {
    color: #34495e;
    font-size: 17px;
    line-height: 1.8;
    padding: 3px 0;
    text-align: left;
}

.phase-instructions .phase-line.warning {
    color: #e74c3c;
    font-weight: bold;
}

.phase-instructions .phase-line.bullet {
    padding-left: 10px;
}

.phase-instructions .phase-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 16px;
    color: #2c3e50;
}

.phase-instructions .phase-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.phase-instructions .phase-start-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 20px;
    border-radius: 30px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.phase-instructions .phase-start-btn:not(:disabled):hover {
    transform: scale(1.05);
}

/* Stroop阶段说明 - 移动端适配 */
@media (max-width: 768px) {
    .phase-instructions {
        padding: 20px 18px;
        margin: 15px auto;
        max-width: 95%;
        border-radius: 15px;
    }
    
    .phase-instructions .phase-icon {
        font-size: 42px;
        margin-bottom: 10px;
    }
    
    .phase-instructions .phase-title {
        font-size: 20px;
    }
    
    .phase-instructions .phase-subtitle {
        font-size: 14px;
        margin-top: 8px;
    }
    
    .phase-instructions .phase-content {
        padding: 16px 14px;
        margin: 15px 0;
        border-radius: 10px;
    }
    
    .phase-instructions .phase-line {
        font-size: 14px;
        line-height: 1.7;
        padding: 2px 0;
    }
    
    .phase-instructions .phase-checkbox-label {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .phase-instructions .phase-checkbox {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
    
    .phase-instructions .phase-start-btn {
        padding: 12px 40px;
        font-size: 17px;
        border-radius: 25px;
    }
}

.instruction-card {
    background: linear-gradient(135deg, #ffffff, #f0f9e8);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 10px;
}

.instruction-card h3 {
    color: #4CAF50;
    margin-bottom: 8px;
    font-size: 15px;
    text-align: center;
    line-height: 1.3;
}

.instruction-card p {
    margin-bottom: 8px;
    line-height: 1.3;
    font-size: 13px;
    text-align: left;
}

.instruction-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
    text-align: left;
    width: 100%;
}

.instruction-list li {
    margin-bottom: 4px;
    width: 100%;
}

.instruction-item {
    background: white;
    border-radius: 6px;
    padding: 7px 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    border-left: 3px solid #4CAF50;
    width: 100%;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.3;
}

.instruction-item .arrow {
    color: #4CAF50;
    font-weight: bold;
    font-size: 11px;
    margin-right: 6px;
}

@media (max-width: 480px) {
    .instruction-card {
        padding: 10px 12px;
    }
    
    .instruction-card h3 {
        font-size: 14px;
    }
    
    .instruction-item {
        padding: 6px 8px;
        font-size: 11px;
    }
}

#module-content.mode-instruction {
    min-height: 0;
    height: auto;
    margin-bottom: 0;
    justify-content: flex-start;
    align-items: flex-start;
}

#module-content.mode-test {
    min-height: 300px;
    height: auto;
    margin-bottom: 30px;
    justify-content: flex-start;
    align-items: center;
    padding-top: 10px;
}

#action-button {
    display: none;
    justify-content: center;
    align-items: center;
    margin: 15px auto 0;
    padding: 14px 50px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    animation: btnBreathe 2s infinite ease-in-out;
    transition: transform 0.2s, box-shadow 0.2s;
}

#action-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

#action-button:active {
    transform: scale(0.98);
}

#action-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    animation: none;
}

@keyframes btnBreathe {
    0%, 100% { box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(76, 175, 80, 0.7); }
}

/* 摇摆动画 */
@keyframes shake-medium {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* 粒子样式 */
.gonogo-particle {
    position: absolute;
    pointer-events: none;
}