/* 点击速度测试 */
.main {
    grid-template-columns: minmax(0, 1fr) 400px;
}

.click-zone {
    border-radius: 14px;
    min-height: 320px;
    padding: 40px 20px;
    text-align: center;
    cursor: crosshair;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: background .25s ease, box-shadow .25s ease;
}
.click-zone.idle {
    background: #f1f2f4;
    border: 2px dashed #d1d5db;
    color: #6b7280;
}
.click-zone.running {
    background: linear-gradient(135deg, #eef2ff 0%, #ec4899 120%);
    border: 2px solid #a5b4fc;
    color: #312e81;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .10);
    animation: zonePulse 1.1s ease-in-out infinite;
}
@keyframes zonePulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(99, 102, 241, .10); }
    50% { box-shadow: 0 0 0 10px rgba(99, 102, 241, .20); }
}
.click-zone.done {
    background: linear-gradient(135deg, #0ea5e9 0%, #22c55e 160%);
    border: 2px solid #10b981;
    color: #083344;
}
.click-zone .c-big {
    font-size: 92px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.click-zone .c-sub {
    font-size: 20px;
    opacity: .85;
}
.click-zone .c-cps {
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: rgba(255, 255, 255, .85);
    border-radius: 999px;
    padding: 6px 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.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, .15);
    transition: background .2s ease, transform .15s ease;
}
.zone-btn:hover {
    background: #0284c7;
    transform: translateY(-1px);
}
.zone-btn.hidden { display: none; }

.dur-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dur-options .radio-card { justify-content: center; }

/* ---- 统计 ---- */
.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: 12px 8px;
    text-align: center;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.stat b {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #4338ca;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}
.stat span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #6b7280;
}
.stat.best {
    background: #f0fdf4;
    border-color: #bbf7d0;
    box-shadow: 0 1px 4px rgba(22, 163, 74, .08);
}
.stat.best b {
    color: #16a34a;
}

/* ---- 历史记录 ---- */
.record-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 16px 0 8px;
}
.record-title .link-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 12px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.record-title .link-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #ef4444;
}