.main {
    grid-template-columns: minmax(0, 1fr) 400px;
}

.main .extra-panel {
    grid-column: 1 / -1;
    margin-top: 0;
}

/* ---- 选项 ---- */
.mode-options,
.trial-options {
    flex-wrap: wrap;
    gap: 8px;
}

.mode-options .radio-card {
    flex: 1 1 auto;
    min-width: 130px;
    justify-content: center;
}

.trial-options .radio-card {
    flex: 1 1 auto;
    min-width: 52px;
    justify-content: center;
    font-weight: 600;
}

.mode-options .radio-card input,
.trial-options .radio-card input {
    position: absolute;
    opacity: 0;
}

/* ---- 评级框 ---- */
.grade-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
}

.grade-box .grade-icon {
    font-size: 20px;
}

.grade-text {
    font-weight: 600;
}

/* ---- 统计 ---- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.stat-grid.sub-stat {
    margin-top: 8px;
}

.stat {
    background: #f9fafb;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.stat b {
    display: block;
    font-size: 16px;
    color: #4338ca;
    font-variant-numeric: tabular-nums;
}

.stat span {
    font-size: 12px;
    color: #6b7280;
}

/* ---- 历史记录 ---- */
.record-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 16px 0 6px;
}

.record-title .link-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
}

.record-title .link-btn:hover {
    color: #ef4444;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #f3f4f6;
    font-size: 13px;
    color: #4b5563;
    font-variant-numeric: tabular-nums;
}

.record-item .rec-time {
    font-weight: 600;
    color: #374151;
}

.record-item .rec-date {
    font-size: 12px;
    color: #9ca3af;
}

.record-item.best .rec-time {
    color: #4338ca;
}

/* ---- 测试面板 ---- */
.progress-chip {
    background: #eef2ff;
    color: #4338ca;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.react-zone {
    height: 400px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    padding: 24px;
    transition: background 0.18s, box-shadow 0.18s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.react-zone .r-big {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
}

.react-zone .r-sub {
    font-size: 15px;
    opacity: 0.9;
    max-width: 460px;
}

.react-zone .r-timer {
    font-size: 15px;
    font-weight: 600;
    margin-top: 2px;
    opacity: 0.95;
}

/* idle 灰色 */
.react-zone.idle {
    background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
}

/* wait 红色等待 */
.react-zone.wait {
    background: linear-gradient(160deg, #fee2e2 0%, #fca5a5 100%);
    color: #7f1d1d;
    box-shadow: inset 0 0 40px rgba(239, 68, 68, 0.12);
}

/* go 绿色信号 */
.react-zone.go {
    background: linear-gradient(160deg, #4ade80 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.18);
}

.react-zone.go .r-big {
    animation: goPulse 0.5s ease infinite alternate;
}

@keyframes goPulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* premature 抢跑 */
.react-zone.premature {
    background: linear-gradient(160deg, #fde68a 0%, #f59e0b 100%);
    color: #78350f;
}

/* result 本局结果 */
.react-zone.result {
    background: linear-gradient(160deg, #e0e7ff 0%, #a5b4fc 100%);
    color: #312e81;
}

.react-zone.result .r-big {
    color: #4338ca;
}

/* done 整轮完成 */
.react-zone.done {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.react-zone.done .r-big {
    font-size: 40px;
}

/* ---- SEO ---- */
.seo-article ul li {
    margin-bottom: 6px;
}

@media (max-width: 900px) {
    .main {
        grid-template-columns: 1fr;
    }

    .react-zone {
        height: 320px;
    }
}