/* ======================================================================
 *  一分钟挑战记录器 /tool/one-minute-challenge
 *  风格：运动能量 —— 橙红渐变 + 倒计时环 + 柱状图
 *  深色模式随站点 [data-theme="dark"]，本页变量作用域 .omc-page
 * ====================================================================== */

.omc-page {
    --omc-fire: #f97316;
    --omc-flame: #ef4444;
    --omc-lime: #84cc16;
    --omc-bg: #fff7ed;
    --omc-card: #ffffff;
    --omc-soft: #fff1e2;
    --omc-line: #f3d9bd;
    --omc-text: #3b2413;
    --omc-muted: #a07f60;
    --omc-shadow: 0 12px 32px -16px rgba(234, 88, 12, .35);
    color: var(--omc-text);
    padding-bottom: 70px;
    background:
        radial-gradient(860px 380px at 10% -8%, rgba(249, 115, 22, .14), transparent 60%),
        radial-gradient(680px 340px at 92% 0%, rgba(239, 68, 68, .10), transparent 55%);
}
:root[data-theme="dark"] .omc-page {
    --omc-fire: #fb923c;
    --omc-flame: #f87171;
    --omc-lime: #a3e635;
    --omc-bg: #221507;
    --omc-card: #241a10;
    --omc-soft: #2c2013;
    --omc-line: #443322;
    --omc-text: #f5ead9;
    --omc-muted: #b39877;
    --omc-shadow: 0 14px 36px -18px rgba(0, 0, 0, .75);
}

/* ---------- 面包屑 ---------- */
.omc-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--omc-muted);
    padding: 18px 0 0;
}
.omc-crumb a { color: var(--omc-muted); text-decoration: none; }
.omc-crumb a:hover { color: var(--omc-fire); }
.omc-crumb b { color: var(--omc-text); font-weight: 600; }

/* ---------- Hero ---------- */
.omc-hero { text-align: center; padding: 24px 0 26px; }
.omc-badge {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--omc-flame);
    background: color-mix(in srgb, var(--omc-flame) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--omc-flame) 30%, transparent);
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 12px;
}
.omc-hero h1 {
    font-size: clamp(28px, 4.2vw, 40px);
    font-weight: 900;
    letter-spacing: -.02em;
    margin: 0 0 10px;
}
.omc-hero p {
    max-width: 580px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.8;
    color: var(--omc-muted);
}
.omc-hero em {
    font-style: normal;
    font-weight: 800;
    color: var(--omc-fire);
}

/* ---------- 项目选择 ---------- */
.omc-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-bottom: 12px;
}
.omc-type {
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--omc-muted);
    background: var(--omc-card);
    border: 1.5px solid var(--omc-line);
    border-radius: 999px;
    padding: 9px 20px;
    cursor: pointer;
    transition: all .16s;
}
.omc-type:hover { border-color: var(--omc-fire); color: var(--omc-fire); }
.omc-type.is-on {
    color: #fff;
    background: linear-gradient(135deg, var(--omc-fire), var(--omc-flame));
    border-color: transparent;
    box-shadow: 0 6px 16px -6px var(--omc-fire);
}
.omc-custom-row { display: flex; justify-content: center; margin-bottom: 18px; }
.omc-custom-row input {
    width: min(300px, 100%);
    font: inherit;
    font-size: 14px;
    text-align: center;
    color: var(--omc-text);
    background: var(--omc-card);
    border: 1.5px dashed var(--omc-fire);
    border-radius: 999px;
    padding: 9px 18px;
    outline: none;
}

/* ---------- 主区 ---------- */
.omc-main {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 22px;
    align-items: start;
}
.omc-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background: var(--omc-card);
    border: 1px solid var(--omc-line);
    border-radius: 22px;
    padding: 30px 24px;
    box-shadow: var(--omc-shadow);
}

/* 倒计时环 */
.omc-ring-wrap { position: relative; width: min(240px, 64vw); }
.omc-ring { display: block; width: 100%; transform: rotate(-90deg); }
.omc-ring-bg { fill: none; stroke: var(--omc-soft); stroke-width: 12; }
.omc-ring-bar {
    fill: none;
    stroke: url(#none);
    stroke: var(--omc-fire);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 603;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset .1s linear;
}
.omc-page.is-running .omc-ring-bar { stroke: var(--omc-flame); }
.omc-ring-mid {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.omc-ring-mid b {
    font-size: 46px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    line-height: 1;
}
.omc-ring-mid span { font-size: 13px; color: var(--omc-muted); margin-top: 5px; }

/* 大按钮 */
.omc-count-zone { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.omc-tap {
    width: min(320px, 100%);
    min-height: 130px;
    font: inherit;
    border: 0;
    border-radius: 24px;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(145deg, var(--omc-fire), var(--omc-flame));
    box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--omc-flame) 65%, transparent);
    transition: transform .08s, box-shadow .15s, filter .15s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
.omc-tap:disabled {
    filter: saturate(.35);
    box-shadow: none;
    cursor: not-allowed;
}
.omc-tap:not(:disabled):active { transform: scale(.96); }
.omc-tap-num { font-size: 52px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.omc-tap-label { font-size: 13.5px; font-weight: 600; opacity: .92; }
.omc-stage-btns { display: flex; gap: 12px; }
.omc-sbtn {
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--omc-fire), var(--omc-flame));
    border: 0;
    border-radius: 999px;
    padding: 12px 30px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.omc-sbtn:hover { transform: translateY(-2px); }
.omc-sbtn.is-danger {
    background: var(--omc-card);
    color: var(--omc-flame);
    border: 1.5px solid var(--omc-flame);
}
.omc-fix {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--omc-muted);
}
.omc-fix input {
    width: 90px;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    color: var(--omc-text);
    background: var(--omc-soft);
    border: 1px solid var(--omc-line);
    border-radius: 10px;
    padding: 7px 10px;
    outline: none;
}
.omc-fix-btn {
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--omc-fire);
    background: transparent;
    border: 1px solid var(--omc-fire);
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
}
.omc-fix-btn:hover { color: #fff; background: var(--omc-fire); }

/* ---------- 侧栏 ---------- */
.omc-side { display: flex; flex-direction: column; gap: 16px; }
.omc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.omc-stat {
    background: var(--omc-card);
    border: 1px solid var(--omc-line);
    border-radius: 14px;
    padding: 13px 10px;
    text-align: center;
}
.omc-stat span { display: block; font-size: 11.5px; color: var(--omc-muted); margin-bottom: 5px; }
.omc-stat b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }

.omc-chart-card,
.omc-hist-card {
    background: var(--omc-card);
    border: 1px solid var(--omc-line);
    border-radius: 16px;
    padding: 18px 18px 16px;
}
.omc-chart-card h2,
.omc-hist-card h2 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 14px;
}
.omc-chart-card h2 small,
.omc-hist-card h2 small { font-size: 12px; font-weight: 500; color: var(--omc-muted); }

.omc-chart-empty {
    text-align: center;
    font-size: 13px;
    color: var(--omc-muted);
    padding: 18px 0;
    margin: 0;
}
.omc-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 150px;
}
.omc-bar-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    height: 100%;
}
.omc-bar-col > b {
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.omc-bar-track {
    flex: 1;
    width: 100%;
    max-width: 34px;
    display: flex;
    align-items: flex-end;
    background: var(--omc-soft);
    border-radius: 8px;
    overflow: hidden;
}
.omc-bar {
    width: 100%;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--omc-fire), var(--omc-flame));
    transition: height .4s ease;
}
.omc-bar.is-best { background: linear-gradient(180deg, var(--omc-lime), #65a30d); }
.omc-bar-col > span { font-size: 10.5px; color: var(--omc-muted); }
.omc-delta {
    margin: 12px 0 0;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--omc-text);
    background: var(--omc-soft);
    border-radius: 10px;
    padding: 9px 12px;
}

.omc-hist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.omc-hist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    padding: 8px 2px;
}
.omc-hist li + li { border-top: 1px dashed var(--omc-line); }
.omc-hist b { color: var(--omc-fire); flex: none; }
.omc-hist span { font-weight: 700; flex: 1; font-variant-numeric: tabular-nums; }
.omc-hist i { font-style: normal; font-size: 12px; color: var(--omc-muted); }
.omc-hist-empty { justify-content: center; color: var(--omc-muted); }
.omc-clear {
    margin-top: 12px;
    width: 100%;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--omc-muted);
    background: transparent;
    border: 1px dashed var(--omc-line);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.omc-clear:hover { color: var(--omc-flame); border-color: var(--omc-flame); }

/* ---------- 底部：口径说明表（neo 体系） ---------- */
.neo-note-table { width: 100%; border-collapse: collapse; }
.neo-note-table th,
.neo-note-table td {
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--omc-line) 70%, transparent);
    font-size: 13.5px;
    line-height: 1.75;
    vertical-align: top;
}
.neo-note-table th {
    width: 92px;
    font-weight: 800;
    color: var(--omc-fire);
    white-space: nowrap;
}
.neo-note-table td { color: var(--omc-text); }
.neo-note-table td b { color: var(--omc-fire); }
.neo-usage { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.neo-usage li { font-size: 14px; line-height: 1.9; color: var(--omc-muted); }
.neo-usage li b { color: var(--omc-text); }

/* ---------- 指南 ---------- */
.omc-guide {
    margin-top: 30px;
    background: var(--omc-card);
    border: 1px solid var(--omc-line);
    border-radius: 18px;
    padding: 22px 26px;
}
.omc-guide h2 { font-size: 17px; font-weight: 800; margin: 0 0 13px; }
.omc-guide ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.omc-guide li {
    font-size: 14px;
    line-height: 1.85;
    color: var(--omc-muted);
    padding-left: 20px;
    position: relative;
}
.omc-guide li::before {
    content: "🏃";
    position: absolute;
    left: 0;
    font-size: 12px;
}
.omc-guide li b { color: var(--omc-text); }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
    .omc-main { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .omc-stats { grid-template-columns: repeat(3, 1fr); gap: 7px; }
    .omc-stat b { font-size: 18px; }
    .omc-bars { gap: 5px; }
}
