/* 跑鞋里程：深色仪表盘 + 下划线输入 + 磨损条，与站内其它工具页完全不同的一套版式 */

.sh-hero {
    --sh-lime: #c8f24e;
    background: #0f1418;
    color: #f2f4ee;
    padding: 34px 0 40px;
}
.sh-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 12.5px; color: #8f9a8f; }
.sh-crumb a { color: #8f9a8f; }
.sh-crumb a:hover { color: var(--sh-lime); text-decoration: none; }
.sh-crumb i { font-style: normal; opacity: .5; }

.sh-hero-in {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 40px; align-items: end; margin-top: 26px;
}
.sh-eyebrow {
    display: inline-block; margin-bottom: 12px;
    font-family: var(--x2-mono); font-size: 11.5px; letter-spacing: .16em;
    color: var(--sh-lime);
}
.sh-h1 {
    font-size: clamp(32px, 4.4vw, 54px); line-height: 1.12; letter-spacing: -.03em;
    color: #fbfcf7;
}
.sh-lede { margin-top: 14px; max-width: 33em; font-size: 15.5px; line-height: 1.85; color: #c3cbbf; }
.sh-lede strong { color: var(--sh-lime); font-weight: 600; }

.sh-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 20px 0 0; padding: 0; list-style: none; }
.sh-facts li { position: relative; padding-left: 14px; font-size: 12.5px; line-height: 1.7; color: #a8b2a3; }
.sh-facts li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--sh-lime); }
.sh-facts span { color: #eef2e6; font-weight: 600; }

.sh-meter { border-left: 1px solid rgba(255, 255, 255, .14); padding-left: 28px; }
.sh-meter-k { font-family: var(--x2-mono); font-size: 11.5px; letter-spacing: .08em; color: #9aa593; }
.sh-odometer { display: flex; align-items: baseline; gap: 8px; }
.sh-odometer b {
    font-family: var(--x2-mono); font-size: clamp(46px, 6.4vw, 76px); font-weight: 600;
    line-height: 1.02; letter-spacing: -.045em; color: var(--sh-lime);
    font-variant-numeric: tabular-nums;
}
.sh-odometer em { font-style: normal; font-size: 15px; color: #9aa593; }
.sh-meter-note { margin-top: 2px; font-size: 12px; line-height: 1.6; color: #8f9a8f; }
.sh-meter-scale {
    display: flex; justify-content: space-between; margin-top: 14px; padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, .16);
    font-family: var(--x2-mono); font-size: 10.5px; color: #7f8a7a;
}

/* ---------- 主体：左侧目录 + 右侧内容 ---------- */
.sh-body {
    display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 44px;
    padding-top: 30px; padding-bottom: 40px;
    --x2-accent: #56751b; /* 浅色区域用橄榄绿，荧光绿只留在深色块上 */
}
.sh-rail { position: sticky; top: 84px; align-self: start; display: grid; gap: 2px; }
.sh-rail-k { font-family: var(--x2-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--x2-muted); margin-bottom: 6px; }
.sh-rail a {
    padding: 6px 0; border-bottom: 1px solid var(--x2-line);
    font-size: 12.5px; color: var(--x2-ink-2);
}
.sh-rail a:hover { color: var(--x2-accent); text-decoration: none; }

/* ---------- 参数面板 ---------- */
.sh-deck-wrap { border: 1px solid var(--x2-line); border-radius: 14px; background: var(--x2-surface); overflow: hidden; }
.sh-deck {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 20px; padding: 20px 22px 22px;
}
.sh-field { display: grid; gap: 4px; min-width: 0; }
.sh-label { font-size: 11.5px; font-weight: 600; color: var(--x2-muted); letter-spacing: .01em; }
.sh-label i { font-style: normal; font-weight: 400; opacity: .8; }

.sh-input {
    width: 100%; height: 34px; padding: 0 0 4px;
    border: 0; border-bottom: 2px solid var(--x2-line-strong); border-radius: 0;
    background: transparent; color: var(--x2-ink);
    font-family: var(--x2-mono); font-size: 17px; font-variant-numeric: tabular-nums;
    outline: none; transition: border-color .15s;
}
.sh-input:focus { border-bottom-color: var(--x2-accent); }
.sh-input::placeholder { color: var(--x2-line-strong); font-family: var(--x2-font); font-size: 14px; }
.sh-select {
    appearance: none; -webkit-appearance: none;
    padding-right: 18px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23949a90' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 2px center; background-size: 11px;
    font-family: var(--x2-font); font-size: 15px;
}
.sh-input.is-bad { border-bottom-color: var(--x2-err); }

.sh-field-act { align-content: end; }
.sh-act { display: flex; gap: 8px; }
.sh-btn {
    height: 34px; padding: 0 14px; cursor: pointer;
    border: 1px solid var(--x2-ink); border-radius: 8px;
    background: var(--x2-ink); color: var(--x2-bg);
    font-size: 12.5px; font-weight: 600;
}
.sh-btn:hover { background: var(--x2-accent); border-color: var(--x2-accent); color: #fff; }
.sh-btn-ghost { background: transparent; color: var(--x2-ink-2); border-color: var(--x2-line-strong); font-weight: 500; }
.sh-btn-ghost:hover { background: transparent; color: var(--x2-err); border-color: var(--x2-err); }

/* ---------- 结果 ---------- */
.sh-result { border-top: 1px solid var(--x2-line); }
.sh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sh-stat { padding: 16px 18px; border-right: 1px solid var(--x2-line); min-width: 0; }
.sh-stat:last-child { border-right: 0; }
.sh-stat span { display: block; font-size: 11.5px; color: var(--x2-muted); }
.sh-stat b {
    display: block; margin-top: 3px;
    font-family: var(--x2-mono); font-size: 26px; font-weight: 600; line-height: 1.2;
    letter-spacing: -.03em; color: var(--x2-ink); font-variant-numeric: tabular-nums;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sh-stat b em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--x2-muted); margin-left: 2px; }
.sh-stat b.sh-date { font-size: 17px; letter-spacing: 0; }
.sh-stat b.is-hot { color: var(--x2-err); }

.sh-gauge { padding: 16px 18px 18px; border-top: 1px solid var(--x2-line); background: var(--x2-surface-2); }
.sh-track {
    position: relative; height: 14px; border-radius: 7px; overflow: hidden;
    background: var(--x2-line);
}
.sh-zone { position: absolute; top: 0; bottom: 0; width: 25%; }
.sh-zone.z1 { left: 0; background: rgba(22, 163, 74, .18); }
.sh-zone.z2 { left: 25%; background: rgba(132, 204, 22, .2); }
.sh-zone.z3 { left: 50%; background: rgba(245, 158, 11, .22); }
.sh-zone.z4 { left: 75%; background: rgba(220, 38, 38, .2); }
.sh-zone + .sh-zone { border-left: 1px solid var(--x2-surface); }
.sh-fill {
    position: absolute; left: 0; top: 0; bottom: 0; width: 0;
    background: #16a34a; border-radius: 7px 0 0 7px;
    transition: width .2s ease, background-color .2s ease;
}
.sh-fill.is-warn { background: #84cc16; }
.sh-fill.is-hot { background: #f59e0b; }
.sh-fill.is-dead { background: #dc2626; }
.sh-mark {
    position: absolute; top: -3px; bottom: -3px; width: 3px; left: 0;
    background: var(--x2-ink); border-radius: 2px; opacity: 0;
    transition: left .2s ease, opacity .15s;
}
.sh-mark.is-on { opacity: 1; }
.sh-scale { display: flex; justify-content: space-between; margin-top: 7px; font-family: var(--x2-mono); font-size: 10.5px; color: var(--x2-muted); }
.sh-verdict { margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: var(--x2-ink-2); }

.sh-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 18px 14px; border-top: 1px solid var(--x2-line); }
.sh-presets > span { font-size: 11.5px; color: var(--x2-muted); }
.sh-preset {
    padding: 4px 10px; cursor: pointer;
    border: 1px dashed var(--x2-line-strong); border-radius: 99px;
    background: transparent; color: var(--x2-ink-2); font-size: 11.5px;
}
.sh-preset:hover { color: var(--x2-accent); border-color: var(--x2-accent); }

/* ---------- 内容分节 ---------- */
.sh-sec { padding: 36px 0; border-top: 1px solid var(--x2-line); }
.sh-sec:first-of-type { border-top: 0; padding-top: 26px; }
.sh-sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sh-k {
    flex: none; font-family: var(--x2-mono); font-size: 11.5px; color: var(--x2-muted);
    border: 1px solid var(--x2-line); border-radius: 4px; padding: 1px 5px;
}
.sh-sec-head h2 { font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -.015em; }
.sh-prose { max-width: 66ch; }
.sh-prose p { margin: 11px 0 0; font-size: 14.5px; line-height: 1.95; color: var(--x2-ink-2); }
.sh-prose p:first-child { margin-top: 0; }
.sh-prose strong { color: var(--x2-ink); font-weight: 600; }

.sh-tablewrap { margin-top: 16px; overflow-x: auto; }
.sh-table { width: 100%; font-size: 13.5px; border-top: 2px solid var(--x2-ink); }
.sh-table th {
    padding: 9px 12px 9px 0; text-align: left; white-space: nowrap;
    font-size: 11.5px; font-weight: 600; color: var(--x2-muted); letter-spacing: .02em;
    border-bottom: 1px solid var(--x2-line-strong);
}
.sh-table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--x2-line); color: var(--x2-ink-2); vertical-align: top; }
.sh-table td:first-child { color: var(--x2-ink); font-weight: 600; white-space: nowrap; }
.sh-table .num { font-family: var(--x2-mono); font-variant-numeric: tabular-nums; color: var(--x2-ink); white-space: nowrap; }

.sh-note {
    margin-top: 14px; padding: 10px 14px;
    border-left: 3px solid var(--x2-accent); border-radius: 0 8px 8px 0;
    background: var(--x2-surface-2);
    font-size: 13px; line-height: 1.8; color: var(--x2-ink-2);
}
.sh-note strong { color: var(--x2-ink); }

.sh-signs { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--x2-line); }
.sh-signs li {
    display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px;
    padding: 13px 0; border-bottom: 1px solid var(--x2-line);
}
.sh-signs b { font-size: 14px; color: var(--x2-ink); }
.sh-signs span { font-size: 13.5px; line-height: 1.8; color: var(--x2-ink-2); }

.sh-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sh-tip { padding-top: 12px; border-top: 2px solid var(--x2-accent); }
.sh-tip h3 { font-size: 14.5px; margin-bottom: 6px; }
.sh-tip p { font-size: 13.5px; line-height: 1.85; color: var(--x2-ink-2); }

.sh-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sh-link {
    display: block; padding: 14px 0 12px; border-top: 1px solid var(--x2-line-strong);
    color: var(--x2-ink);
}
.sh-link:hover { text-decoration: none; }
.sh-link:hover b { color: var(--x2-accent); }
.sh-link b { display: block; font-size: 14px; }
.sh-link span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--x2-muted); line-height: 1.6; }

@media (max-width: 1100px) {
    .sh-deck { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .sh-hero-in { grid-template-columns: 1fr; gap: 26px; align-items: start; }
    .sh-meter { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; }
    .sh-body { grid-template-columns: 1fr; gap: 22px; }
    .sh-rail { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
    .sh-rail-k { display: none; }
    .sh-rail a { border: 1px solid var(--x2-line); border-radius: 99px; padding: 5px 10px; }
    .sh-cols, .sh-links { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .sh-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 16px 18px; gap: 16px; }
    .sh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sh-stat { border-bottom: 1px solid var(--x2-line); }
    .sh-stat:nth-child(2) { border-right: 0; }
    .sh-stat:nth-child(3), .sh-stat:nth-child(4) { border-bottom: 0; }
    .sh-signs li { grid-template-columns: 1fr; gap: 3px; }
    .sh-stat b { font-size: 23px; }
}
@media (max-width: 460px) {
    .sh-deck { grid-template-columns: 1fr; }
    .sh-hero { padding: 24px 0 28px; }
}
