/**
 * 反应速度测试工具样式
 */
.reaction-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.test-area {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.test-area.waiting {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}
.test-area.ready {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}
.test-area.result {
    background: linear-gradient(135deg, #3498db, #2980b9);
}
.test-area.too-early {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}
.test-area.idle {
    background: linear-gradient(135deg, #667eea, #764ba2);
}
.test-icon {
    font-size: 80px;
    margin-bottom: 15px;
}
.test-text {
    font-size: 24px;
    color: #fff;
    font-weight: bold;
    text-align: center;
}
.test-hint {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-top: 10px;
}
.result-time {
    font-size: 64px;
    color: #fff;
    font-weight: bold;
}
.result-unit {
    font-size: 24px;
    color: rgba(255,255,255,0.9);
}
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-3px);
}
.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
}
.stat-label {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 5px;
}
.stat-card.best .stat-value { color: #27ae60; }
.stat-card.worst .stat-value { color: #e74c3c; }
.stat-card.average .stat-value { color: #3498db; }
.stat-card.count .stat-value { color: #9b59b6; }
.rating-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.rating-title {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rating-bar {
    display: flex;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}
.rating-segment {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
    position: relative;
}
.rating-segment.incredible { background: #9b59b6; }
.rating-segment.excellent { background: #27ae60; }
.rating-segment.good { background: #3498db; }
.rating-segment.average { background: #f39c12; }
.rating-segment.slow { background: #e74c3c; }
.rating-marker {
    position: absolute;
    width: 4px;
    height: 50px;
    background: #2c3e50;
    border-radius: 2px;
    top: -5px;
    transition: left 0.5s ease;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.rating-labels {
    display: flex;
    font-size: 11px;
    color: #95a5a6;
}
.rating-labels span { flex: 1; text-align: center; }
.history-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.history-title {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 120px;
    overflow-y: auto;
}
.history-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 14px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}
.history-item .num {
    color: #95a5a6;
    font-size: 12px;
}
.history-item.best { background: #d4edda; color: #155724; }
.history-item.worst { background: #f8d7da; color: #721c24; }
.btn-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.action-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.action-btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}
.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}
.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}
.shortcuts-info {
    text-align: center;
    color: #95a5a6;
    font-size: 13px;
    margin-top: 15px;
}
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .test-area { height: 250px; }
    .test-icon { font-size: 60px; }
    .test-text { font-size: 20px; }
    .result-time { font-size: 48px; }
}
