/* 抑制反应测试页面样式 */
.inhibition-test-page {
    --primary-color: #e74c3c;
    --secondary-color: #3498db;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --error-color: #e74c3c;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --text-tertiary: #6b7280;
    --border-color: #e5e7eb;
    --primary-light: #f87171;
}

/* 测试区域的模式信息样式 - 与其他页面保持一致 */
.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);
}

/* 卡片间距调整 */
.inhibition-test-page .card {
}

.inhibition-test-page h2 {
    margin-bottom: 15px;
}



/* 测试区域样式 */
.inhibition-test-area {
    position: relative;
    margin-bottom: 30px;
}

/* 覆盖全局.test-box样式，增加高度 */
.inhibition-test-area .test-box {
    height: auto;
    min-height: 400px;
    padding: 20px 0;
    box-sizing: border-box;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.inhibition-test-area .test-box.active {
    /* 移除阴影效果 */
}

.inhibition-display {
    width: 100%;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.test-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.test-status {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

.stimulus-container {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 10px;
}

.test-box.active .stimulus-container {
    /* 移除缩放动画 */
}

/* Go/NoGo刺激样式 */
.go-stimulus, .nogo-stimulus {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.go-stimulus {
    background-color: #2ecc71;
    color: white;
}

.nogo-stimulus {
    background-color: #e74c3c;
    color: white;
}

/* 停止信号样式 */
.stop-signal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(231, 76, 60, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.stop-signal.show {
    opacity: 1;
}

/* 干扰抑制样式 */
.flanker-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flanker-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 5px;
}

.flanker-target {
    font-weight: bold;
    color: #3498db;
}

.instruction-text {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 10px;
}

/* 按钮容器样式 */
.inhibition-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 0;
    width: 100%;
}

/* 按钮通用样式 */
.start-btn, .share-btn {
    width: 160px;
    height: 44px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 开始/重新测试按钮样式 */
.start-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
    color: white;
    padding: 0;
    font-size: 1.1rem;
    margin: 0;
}

.start-btn i {
    font-size: 1.1rem;
}

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

/* 测试进行中隐藏开始按钮 */
.test-box.active .start-btn {
    display: none !important;
}

/* 测试完成后显示开始按钮 */
.test-box.completed .start-btn {
    display: inline-flex !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
    color: white;
    border: none;
    margin: 0;
    transition: none;
}

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

.dark-theme .start-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
}

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

.dark-theme .test-box.completed .start-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
    transition: none;
}

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

/* 反应按钮样式 */
.response-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: 8px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
}

.response-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 1) 0%, rgba(79, 70, 229, 1) 100%);
}

.dark-theme .response-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
}

.dark-theme .response-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 1) 0%, rgba(79, 70, 229, 1) 100%);
}

.test-box.active .response-btn {
    display: inline-block;
}

.test-box.active .start-btn {
    display: none;
}

/* 测试进行中但刺激物未显示时的反应按钮样式 */
.test-box.active .response-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 分享容器样式 */
.share-container {
    display: none;
    margin: 0 auto;
    text-align: center;
    animation: fadeIn 0.5s ease;
    width: 100%;
}

/* 分享按钮样式 */
.share-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
    color: white;
    padding: 0;
    font-size: 1rem;
    transition: none;
}

.share-btn i {
    font-size: 1.1rem;
    line-height: 1;
}

.share-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 1) 0%, rgba(5, 150, 105, 1) 100%);
    transform: none;
    box-shadow: none;
}

.dark-theme .share-btn {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
    transition: none;
}

.dark-theme .share-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 1) 0%, rgba(5, 150, 105, 1) 100%);
    transform: none;
    box-shadow: none;
}

/* 结果样式 */
.result-feedback {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.result-feedback i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.result-feedback .reaction-time {
    font-size: 1rem;
    margin-top: 5px;
    color: var(--text-tertiary);
}

.result-feedback.correct {
    color: var(--success-color);
}

.result-feedback.error {
    color: var(--error-color);
}

.result-feedback.miss {
    color: var(--warning-color);
}

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

/* 图表样式 */
.chart-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.chart-wrapper:first-child {
    display: block;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .inhibition-display {
        height: 180px;
    }
    
    .stimulus-container {
        width: 120px;
        height: 120px;
    }
    
    .go-stimulus, .nogo-stimulus {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
    
    .flanker-item {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
        margin: 0 3px;
    }
}

/* 暗色主题适配 */
.dark-theme .go-stimulus {
    background-color: #27ae60;
}

.dark-theme .nogo-stimulus {
    background-color: #c0392b;
}

.dark-theme .stop-signal {
    background-color: rgba(192, 57, 43, 0.8);
}

.dark-theme .flanker-target {
    color: #2980b9;
}

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

.dark-theme .response-btn {
    background-color: #2980b9;
}

.dark-theme .response-btn:hover {
    background-color: #3498db;
}

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

.charts-container {
    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%;
}

/* 成就样式 */
.achievements-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

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

/* 历史记录部分样式 */
.history-section {
}

.history-section h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.clear-btn {
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.clear-btn i {
    font-size: 0.9rem;
}

.clear-btn:hover {
    color: var(--danger-color);
    background-color: rgba(220, 38, 38, 0.1);
}

.dark-theme .clear-btn {
    color: var(--text-secondary-dark);
}

.dark-theme .clear-btn:hover {
    color: var(--danger-color-dark);
    background-color: rgba(220, 38, 38, 0.2);
}

/* 历史记录样式 */
.history-list {
    max-height: 222px;
    min-height: 222px;
    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);
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(0,0,0,0.1);
}

.history-list::-webkit-scrollbar {
    width: 4px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.history-container {
    position: relative;
    min-height: 222px;
}

.empty-history {
    height: 222px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-quaternary);
    font-size: 0.875rem;
    font-style: italic;
    text-align: center;
    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);
    padding: 16px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

.empty-history i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-quaternary);
    opacity: 0.7;
}

.empty-history.show {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

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

.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 {
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
}

.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-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.history-time.correct {
    color: var(--success-color);
}

.history-time.incorrect {
    color: var(--danger-color);
}

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

.history-mode {
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--text-secondary);
}

.inhibition-test-page .history-item .history-mode,
.inhibition-test-page .history-item .history-accuracy {
    font-size: 0.8rem !important;
    font-weight: normal !important;
    color: var(--text-secondary) !important;
}

.inhibition-test-page .history-item .history-time {
    font-size: 0.8rem !important;
    font-weight: normal !important;
}

.inhibition-test-page .history-item .history-date {
    font-size: 0.8rem !important;
    color: var(--text-tertiary) !important;
}

.dark-theme .history-time {
    color: var(--text-primary-dark);
}

.dark-theme .history-date,
.dark-theme .history-mode,
.dark-theme .inhibition-test-page .history-item .history-mode,
.dark-theme .inhibition-test-page .history-item .history-accuracy {
    color: var(--text-secondary-dark);
}

/* 统计卡片样式 */
.reaction-stats {
    padding: 15px 20px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    overflow: hidden;
    margin-bottom: 20px;
}

.reaction-stats h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-secondary);
}

.reaction-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.reaction-stat-item {
    text-align: center;
    padding: 10px 8px;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.reaction-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.2;
}

#correct-count {
    color: var(--success-color);
}

#error-count {
    color: var(--danger-color);
}

#miss-count {
    color: var(--warning-color);
}

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

/* 暗色主题适配 */
.dark-theme .reaction-stats {
    background-color: var(--bg-dark);
}

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

/* 成就标签样式 */
.achievements-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.achievement-tab {
    background: none;
    border: none;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.achievement-tab:hover {
    color: var(--primary-color);
}

.achievement-tab.active {
    color: var(--primary-color);
    font-weight: 600;
}

.achievement-tab.active::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.dark-theme .achievement-tab:hover {
    color: var(--primary-light);
}

.dark-theme .achievement-tab.active {
    color: var(--primary-light);
}

.dark-theme .achievement-tab.active::after {
    background-color: var(--primary-light);
}

/* 成就内容样式 */
.achievements-content {
    position: relative;
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

/* 测试进度条 */
.test-progress-bar {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.progress-track {
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background-color: var(--secondary-color);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 5px;
}

.dark-theme .progress-track {
    background-color: #374151;
}

.dark-theme .progress-text {
    color: #9ca3af;
}

/* 测试说明区域 */
.test-instructions {
    display: none;
}

.instruction-toggle {
    display: none;
}

.instruction-toggle:hover {
    display: none;
}

.instruction-toggle i {
    display: none;
}

.instruction-content {
    display: none;
}

.instruction-content.show {
    display: none;
}

.instruction-mode {
    display: none;
}

.instruction-mode.active {
    display: none;
}

.instruction-mode h4 {
    display: none;
}

.instruction-mode p {
    display: none;
}

.dark-theme .test-instructions {
    display: none;
}

.dark-theme .instruction-mode {
    display: none;
}

.dark-theme .instruction-toggle {
    display: none;
}

.dark-theme .instruction-toggle:hover {
    display: none;
}

.dark-theme .instruction-mode h4 {
    display: none;
}

.dark-theme .instruction-mode p {
    display: none;
}

/* 倒计时指示器 */
.countdown-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(52, 152, 219, 0.3);
    transform-origin: left;
    transition: transform linear;
    display: none; /* 默认隐藏 */
}

/* 只在测试激活状态下显示倒计时指示器 */
.test-box.active .countdown-indicator {
    display: block;
}

.countdown-indicator.active {
    transform: scaleX(0);
}

.dark-theme .countdown-indicator {
    background-color: rgba(59, 130, 246, 0.3);
}

/* 测试完成后结果区域样式 */
.test-box.completed .test-status {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* 结果文本样式 */
.result-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--secondary-color);
    text-align: center;
}

.dark-theme .result-text {
    color: #60a5fa;
}

/* 结果详情样式 */
.result-details {
    display: none;
    margin: 5px auto;
    max-width: 400px;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
}

.test-box.completed .result-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    animation: fadeIn 0.5s ease;
}

.test-box.active .result-details,
.test-box.waiting .result-details {
    display: none;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    border-radius: 6px;
    background-color: white;
}

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

.result-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

#result-accuracy {
    color: var(--success-color);
}

.dark-theme .result-details {
    background-color: #1f2937;
}

.dark-theme .result-item {
    background-color: #111827;
}

.dark-theme .result-label {
    color: #9ca3af;
}

.dark-theme .result-value {
    color: #60a5fa;
}

.dark-theme #result-accuracy {
    color: #34d399;
}

/* 隐藏测试完成后不需要的元素 */
.test-box.completed .instruction-text,
.test-box.completed .test-progress-bar,
.test-box.completed .inhibition-display {
    display: none;
}

/* 测试完成后刺激物容器样式 - 保留但不显示 */
.test-box.completed .stimulus-container {
    min-height: 0;
    height: auto;
    margin: 0;
    display: none;
}

/* 测试进行中禁用模式选择器 */
.test-box.active ~ .test-modes .mode-select {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 暗色主题下测试进行中禁用模式选择器 */
.dark-theme .test-box.active ~ .test-modes .mode-select {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 方向按钮容器 */
.direction-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

/* 方向按钮样式 */
.direction-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
    color: white;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

.direction-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 1) 0%, rgba(79, 70, 229, 1) 100%);
}

.direction-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 暗色主题下的方向按钮 */
.dark-theme .direction-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
}

.dark-theme .direction-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 1) 0%, rgba(79, 70, 229, 1) 100%);
}

/* 测试等待状态下的反应按钮 */
.test-box.waiting .response-btn {
    display: inline-flex;
}

/* 干扰抑制模式下隐藏普通反应按钮 */
.test-box.waiting.flanker-mode .response-btn {
    display: none;
}

/* 通知容器和样式 */
#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;
} 