/* 注意力测评样式 */

.attention-test-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
}

.attention-intro {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(0, 245, 255, 0.15);
    margin-bottom: 30px;
}

.attention-intro h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.attention-intro p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.dimension-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.dimension-card {
    background: rgba(0, 245, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(0, 245, 255, 0.1);
    transition: all 0.3s ease;
}

.dimension-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
    border-color: var(--neon-cyan);
}

.dimension-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.dimension-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.dimension-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.start-test-btn {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.start-test-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.4);
}

/* 测试任务样式 */
.attention-task {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 245, 255, 0.15);
}

.task-header {
    text-align: center;
    margin-bottom: 30px;
}

.task-header h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.task-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* 进度条 */
.task-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 仪表盘样式 */
.gauge-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.gauge-item {
    background: rgba(0, 245, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(0, 245, 255, 0.1);
    transition: all 0.3s ease;
}

.gauge-item.anomaly {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    animation: pulse 0.5s ease infinite;
}

.gauge-item.correct {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

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

.gauge-name {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.gauge-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 4px;
}

.gauge-unit {
    font-size: 12px;
    color: var(--text-secondary);
}

.gauge-item.mini {
    padding: 12px;
}

.gauge-item.mini .gauge-value {
    font-size: 20px;
}

/* 雷达屏幕 */
.radar-screen {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    position: relative;
    border: 2px solid rgba(0, 245, 255, 0.3);
}

.radar-screen.interactive {
    cursor: crosshair;
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 50%;
}

.radar-target {
    position: absolute;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    background: rgba(0, 245, 255, 0.3);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-target.marker {
    background: rgba(255, 0, 255, 0.3);
    border-color: var(--neon-pink);
}

.target-id {
    color: white;
    font-size: 12px;
    font-weight: 600;
}

/* 航线显示 */
.route-display {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.route-svg {
    background: rgba(0, 245, 255, 0.05);
    border-radius: 12px;
}

/* 回忆表单 */
.recall-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.recall-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recall-item label {
    color: var(--text-secondary);
    font-size: 14px;
}

.recall-input {
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.recall-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

.recall-textarea {
    width: 100%;
    min-height: 150px;
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    resize: vertical;
    margin-bottom: 20px;
}

.recall-textarea:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

/* 航点按钮 */
.waypoint-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.waypoint-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 245, 255, 0.1);
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.waypoint-btn:hover:not(:disabled) {
    background: rgba(0, 245, 255, 0.2);
    transform: scale(1.1);
}

.waypoint-btn.selected {
    background: var(--neon-cyan);
    color: #0a0e27;
}

.waypoint-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.selected-route {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.selected-route span {
    color: var(--neon-cyan);
    font-weight: 600;
}

/* 提交按钮 */
.submit-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

/* 信号显示 */
.signal-display {
    width: 200px;
    height: 200px;
    margin: 30px auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.fixation {
    font-size: 48px;
    color: var(--text-secondary);
}

.signal-target {
    width: 80px;
    height: 80px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--neon-cyan);
}

.signal-stats {
    text-align: center;
    color: var(--text-secondary);
}

/* 追踪区域 */
.tracking-area {
    width: 400px;
    height: 300px;
    margin: 20px auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    position: relative;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.tracking-target {
    width: 40px;
    height: 40px;
    background: var(--neon-cyan);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--neon-cyan);
}

.tracking-cursor {
    width: 20px;
    height: 20px;
    background: var(--neon-pink);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 15px var(--neon-pink);
}

/* 双重任务 */
.dual-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dual-left, .dual-right {
    background: rgba(0, 245, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
}

.dual-left h4, .dual-right h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.gauge-panel.mini {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.radio-messages {
    max-height: 200px;
    overflow-y: auto;
}

.radio-msg {
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* 多仪表监控 */
.multi-gauge-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.monitor-gauge {
    background: rgba(0, 245, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid rgba(0, 245, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.monitor-gauge.abnormal {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    animation: pulse 0.5s ease infinite;
}

.monitor-gauge:hover {
    transform: scale(1.02);
}

.gauge-bar {
    height: 8px;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 4px;
    margin: 15px 0;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.monitor-gauge.abnormal .gauge-fill {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

/* 飞行与通讯 */
.flying-comm-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.attitude-indicator {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #1e3a5f 50%, #5f3a1e 50%);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 3px solid #333;
}

.horizon {
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 50%;
    background: linear-gradient(to bottom, #3b82f6, #60a5fa);
    transform-origin: center bottom;
    transition: transform 0.1s ease;
}

.aircraft-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 4px;
    background: #fbbf24;
    border-radius: 2px;
}

.aircraft-symbol::before,
.aircraft-symbol::after {
    content: '';
    position: absolute;
    top: -8px;
    width: 20px;
    height: 4px;
    background: #fbbf24;
    border-radius: 2px;
}

.aircraft-symbol::before { left: 0; }
.aircraft-symbol::after { right: 0; }

.comm-panel {
    background: rgba(0, 245, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
}

.comm-panel h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.comm-messages {
    max-height: 150px;
    overflow-y: auto;
}

/* 任务切换 */
.task-switch-panel {
    text-align: center;
}

.current-task {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 8px;
    display: inline-block;
}

.stimulus-display {
    font-size: 72px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 30px 0;
}

.switch-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.switch-btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switch-btn.odd {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 2px solid rgba(239, 68, 68, 0.4);
}

.switch-btn.even {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 2px solid rgba(59, 130, 246, 0.4);
}

.switch-btn:hover {
    transform: scale(1.05);
}

/* 紧急情况 */
.emergency-panel {
    text-align: center;
}

.alert-display {
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    margin-bottom: 30px;
    border: 2px solid rgba(0, 245, 255, 0.2);
}

.alert-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.alert-text {
    font-size: 24px;
    font-weight: 700;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.action-btn {
    padding: 15px 20px;
    background: rgba(0, 245, 255, 0.05);
    border: 2px solid rgba(0, 245, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(0, 245, 255, 0.1);
    transform: scale(1.02);
}

.emergency-stats {
    margin-top: 20px;
    color: var(--text-secondary);
}

/* 注意定向 */
.cueing-panel {
    text-align: center;
    padding: 30px;
}

.cue-arrow {
    font-size: 64px;
    margin-bottom: 30px;
}

.target-positions {
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
}

.target-box {
    width: 80px;
    height: 80px;
    background: rgba(0, 245, 255, 0.05);
    border: 2px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.target-box.active {
    background: var(--neon-cyan);
    box-shadow: 0 0 30px var(--neon-cyan);
}

/* 结果报告 */
.attention-result {
    max-width: 800px;
    margin: 0 auto;
}

.result-header {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(0, 245, 255, 0.15);
    margin-bottom: 30px;
}

.result-header h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.total-score {
    font-size: 72px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

.score-label {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.level-badge {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
}

.level-badge.excellent {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.level-badge.good {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.level-badge.average {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.level-badge.pass {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.level-badge.need-improve {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* 维度得分卡片 */
.dimension-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dimension-score-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(0, 245, 255, 0.1);
}

.dimension-score-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.dimension-score-name {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.dimension-score-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 10px;
}

.dimension-score-bar {
    height: 6px;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.dimension-score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* 建议区域 */
.suggestions-section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 245, 255, 0.15);
}

.suggestions-section h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.suggestion-item {
    padding: 20px;
    background: rgba(0, 245, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid var(--neon-cyan);
}

.suggestion-item.high {
    border-left-color: #ef4444;
}

.suggestion-item.medium {
    border-left-color: #f59e0b;
}

.suggestion-dimension {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.suggestion-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.suggestion-exercises {
    list-style: none;
    padding: 0;
}

.suggestion-exercises li {
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 6px;
}

.suggestion-exercises li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
}

/* 响应式 */
@media (max-width: 768px) {
    .gauge-panel {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dual-container,
    .flying-comm-container {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .recall-form {
        grid-template-columns: 1fr;
    }
    
    .tracking-area {
        width: 100%;
        max-width: 400px;
    }
}
