/* 时间感知训练 */
.main {
    grid-template-columns: minmax(0, 1fr) 400px;
}

.main .extra-panel {
    grid-column: 1 / -1;
    margin-top: 0;
}

.mode-note {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
    background: #f9fafb;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    padding: 10px 12px;
}

/* ---- 选项 ---- */
.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;
}

/* ---- 进度与评级 ---- */
.progress-chip {
    background: #eef2ff;
    color: #4338ca;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.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;
}

/* ---- 统计 ---- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.stat {
    background: #f9fafb;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.stat b {
    display: block;
    font-size: 15px;
    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;
}

/* ---- 计时区域 ---- */
.time-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;
}

.time-zone .t-big {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
}

.time-zone .t-sub {
    font-size: 15px;
    opacity: 0.9;
    max-width: 460px;
}

.time-zone .t-chip {
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 4px 14px;
    opacity: 0.95;
}

.zone-btn {
    margin-top: 6px;
    padding: 11px 30px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: #0ea5e9;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, transform 0.15s ease;
}

.zone-btn:hover {
    background: #0284c7;
    transform: translateY(-1px);
}

/* idle 灰色 */
.time-zone.idle {
    background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
}

/* ready 等待开始计时 */
.time-zone.ready {
    background: linear-gradient(160deg, #fef9c3 0%, #fde047 100%);
    color: #713f12;
    box-shadow: inset 0 0 40px rgba(234, 179, 8, 0.12);
}

.time-zone.ready .t-big {
    color: #a16207;
}

/* run 计时中 */
.time-zone.run {
    background: linear-gradient(160deg, #c7d2fe 0%, #818cf8 100%);
    color: #1e1b4b;
    box-shadow: inset 0 0 40px rgba(99, 102, 241, 0.15);
}

.time-zone.run .t-big {
    animation: runPulse 1s ease infinite alternate;
}

@keyframes runPulse {
    from { transform: scale(1); }
    to { transform: scale(1.04); }
}

/* result 本局结果 */
.time-zone.result {
    background: linear-gradient(160deg, #bbf7d0 0%, #4ade80 100%);
    color: #052e16;
}

.time-zone.result .t-big {
    color: #15803d;
}

/* done 本轮完成 */
.time-zone.done {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.time-zone.done .t-big {
    font-size: 40px;
}

/* ---- SEO ---- */
.seo-article ul li {
    margin-bottom: 6px;
}

@media (max-width: 900px) {
    .main {
        grid-template-columns: 1fr;
    }

    .time-zone {
        height: 320px;
    }
}