:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans CJK SC", "Helvetica Neue", sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, "PingFang SC", sans-serif;
  --bg: #f2f2f7;
  --bg-2: #fff;
  --label: #000;
  --label-2: rgba(60, 60, 67, .62);
  --label-3: rgba(60, 60, 67, .32);
  --sep: rgba(60, 60, 67, .14);
  --fill: rgba(120, 120, 128, .12);
  --fill-2: rgba(120, 120, 128, .2);
  --glass: rgba(255, 255, 255, .66);
  --glass-edge: rgba(255, 255, 255, .9);
  --shadow: 0 1px 1px rgba(0, 0, 0, .02), 0 10px 30px rgba(30, 40, 80, .07), 0 30px 70px rgba(30, 40, 80, .06);
  --accent: #ff2d55;
  --blue: #007aff; --green: #34c759; --orange: #ff9500; --red: #ff3b30; --purple: #af52de; --teal: #30b0c7; --indigo: #5856d6;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --spring: cubic-bezier(.32, 1.28, .5, 1);
  --ease: cubic-bezier(.25, .8, .25, 1);
  /* 人形图 */
  --fig-body: #d6d6dc; --fig-skin: #c6c6cc; --fig-idle: #b6b6bd; --fig-shoe: #8e8e93; --fig-bench: #d1d1d6;
  --fig-pri: #ff2d55; --fig-sec: #ff9f0a; --fig-line: #007aff; --fig-ground: #c7c7cc; --fig-plate: #3a3a3c;
  --viz-1: #ff2d55; --viz-2: #007aff; --viz-3: #ff9500;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --bg-2: #1c1c1e;
    --label: #fff;
    --label-2: rgba(235, 235, 245, .62);
    --label-3: rgba(235, 235, 245, .3);
    --sep: rgba(255, 255, 255, .1);
    --fill: rgba(120, 120, 128, .24);
    --fill-2: rgba(120, 120, 128, .34);
    --glass: rgba(36, 36, 40, .62);
    --glass-edge: rgba(255, 255, 255, .14);
    --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 12px 34px rgba(0, 0, 0, .45);
    --accent: #ff375f;
    --blue: #0a84ff; --green: #30d158; --orange: #ff9f0a; --red: #ff453a; --purple: #bf5af2; --teal: #40c8e0; --indigo: #5e5ce6;
    --fig-body: #48484d; --fig-skin: #5a5a60; --fig-idle: #636369; --fig-shoe: #2c2c2e; --fig-bench: #3a3a3c;
    --fig-pri: #ff375f; --fig-sec: #ff9f0a; --fig-line: #0a84ff; --fig-ground: #48484a; --fig-plate: #d1d1d6;
    --viz-1: #ff375f; --viz-2: #0a84ff; --viz-3: #d97706;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--label); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
svg { display: block; }
.num { font-family: var(--round); font-variant-numeric: tabular-nums; }

/* 背景色块 */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.backdrop i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.backdrop .a { width: 70vmax; height: 70vmax; left: -25vmax; top: -30vmax; background: radial-gradient(circle, #ffb3c1 0%, transparent 62%); animation: d1 40s ease-in-out infinite alternate; }
.backdrop .b { width: 60vmax; height: 60vmax; right: -25vmax; top: 15vh; background: radial-gradient(circle, #b9d4ff 0%, transparent 62%); animation: d2 46s ease-in-out infinite alternate; }
.backdrop .c { width: 55vmax; height: 55vmax; left: 5vw; bottom: -30vmax; background: radial-gradient(circle, #ffd8a8 0%, transparent 62%); animation: d3 52s ease-in-out infinite alternate; }
@media (prefers-color-scheme: dark) {
  .backdrop i { opacity: .28; }
  .backdrop .a { background: radial-gradient(circle, #9f1239 0%, transparent 62%); }
  .backdrop .b { background: radial-gradient(circle, #1e3a8a 0%, transparent 62%); }
  .backdrop .c { background: radial-gradient(circle, #9a3412 0%, transparent 62%); }
}
@keyframes d1 { to { transform: translate(8vw, 6vh) scale(1.08); } }
@keyframes d2 { to { transform: translate(-6vw, 9vh) scale(.94); } }
@keyframes d3 { to { transform: translate(6vw, -8vh) scale(1.08); } }

/* 玻璃 */
.glass {
  position: relative; isolation: isolate;
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-edge);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(145deg, var(--glass-edge), transparent 35%, transparent 65%, var(--glass-edge));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* 顶栏（滚动后出现）*/
.navbar {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: calc(var(--safe-t) + 46px);
  padding: calc(var(--safe-t) + 12px) 64px 0; text-align: center; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: .5px solid var(--sep);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.scrolled .navbar { opacity: 1; transform: none; }

main { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: calc(var(--safe-t) + 52px) 16px calc(var(--safe-b) + 112px); }
.view-in { animation: viewIn .38s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }

header.page { margin: 0 4px 22px; position: relative; }
.kicker-date { font-size: 13px; font-weight: 600; color: var(--label-2); letter-spacing: .02em; }
h1 { font-size: 34px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 6px; }
.lede { font-size: 16px; line-height: 1.55; color: var(--label-2); margin: 0; }
.head-btn { position: absolute; right: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--label-2); }
.head-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 17px; margin: 0 0 6px -6px; padding: 6px; }
.back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

section { margin-bottom: 28px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 6px 10px; gap: 12px; }
.sec-h h2 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; margin: 0; }
.sec-h span, .sec-h a { font-size: 13.5px; color: var(--label-2); }
.sec-h a { color: var(--accent); font-weight: 600; }
.foot-note { font-size: 13px; line-height: 1.55; color: var(--label-2); margin: 8px 8px 0; }

.card { border-radius: 26px; padding: 18px; }
.card + .card { margin-top: 12px; }
.card h3 { margin: 0 0 4px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--label-2); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-family: var(--round); font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--fill); color: var(--label-2); }
.tag.hot { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }

/* iOS 分组列表 */
.list { border-radius: 22px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 11px 16px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--sep); }
.row.ind + .row.ind::before { left: 62px; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-size: 16.5px; font-weight: 500; }
.row .s { font-size: 13.5px; color: var(--label-2); margin-top: 2px; line-height: 1.45; }
.row .v { font-size: 16px; color: var(--label-2); white-space: nowrap; }
.row .chev { width: 8px; height: 14px; flex: none; color: var(--label-3); }
.row .chev svg { width: 8px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
a.row:active, button.row:active { background: var(--fill); }
button.row { width: 100%; text-align: left; }
.ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; background: var(--c, var(--accent)); }
.ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 按钮 */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; border-radius: 999px; font-size: 17px; font-weight: 700; background: var(--accent); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 30%, transparent); transition: transform .3s var(--spring); }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn.plain { background: var(--fill); color: var(--label); box-shadow: none; }
.btn.small { height: 40px; font-size: 15px; width: auto; padding: 0 18px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.link-btn { color: var(--accent); font-size: 15px; font-weight: 600; padding: 6px 2px; }
.btns { display: flex; gap: 10px; margin-top: 14px; }

/* 今天 */
.today-card { border-radius: 30px; padding: 20px 18px 18px; animation: rise .6s var(--spring) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.today-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.day-badge { font-family: var(--round); font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--accent); }
.today-card h2 { margin: 2px 0 2px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.today-card .sub { font-size: 14px; color: var(--label-2); }
.ex-list { margin: 16px 0 18px; display: grid; gap: 10px; }
.ex { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.ex .dot { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.ex .dot svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ex .n { font-size: 16.5px; font-weight: 650; }
.ex .d { font-size: 13.5px; color: var(--label-2); margin-top: 1px; }
.ex .w { text-align: right; }
.ex .w b { font-family: var(--round); font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.ex .w small { font-size: 13px; color: var(--label-2); margin-left: 2px; }
.ex .w .tag { font-size: 13px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.week div { font-size: 12px; color: var(--label-2); }
.week i { display: block; margin: 6px auto 0; width: 30px; height: 30px; border-radius: 50%; background: var(--fill); font-style: normal; font-family: var(--round); font-size: 13px; font-weight: 700; line-height: 30px; color: var(--label-2); }
.week i.on { background: var(--accent); color: #fff; }
.week i.now { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); }

/* 训练中 */
.wk-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 16px; }
.wk-head h1 { margin: 0; font-size: 30px; }
.wk-head .clock { font-family: var(--round); font-variant-numeric: tabular-nums; font-size: 15px; color: var(--label-2); }
.lift-block { border-radius: 26px; padding: 16px 14px 8px; margin-bottom: 12px; }
.lb-top { display: flex; align-items: center; gap: 12px; margin: 0 4px 6px; }
.lb-top .dot { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); flex: none; }
.lb-top .dot svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-top h3 { margin: 0; font-size: 19px; font-weight: 750; }
.lb-top .meta { font-size: 13.5px; color: var(--label-2); }
.lb-top .grow { flex: 1; min-width: 0; }
.lb-top .adj { display: flex; gap: 6px; }
.round-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-size: 20px; font-weight: 600; color: var(--label); }
.round-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sets { display: grid; }
.set { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 8px; padding: 9px 4px; position: relative; }
.set + .set::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; height: .5px; background: var(--sep); }
.set .lab { font-size: 12.5px; font-weight: 700; color: var(--label-2); letter-spacing: .02em; }
.set.warm .lab { color: var(--label-3); }
.load b { font-family: var(--round); font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.find .load b { font-size: 26px; }
.set.warm .load b { font-size: 17px; font-weight: 700; color: var(--label-2); }
.load span { font-family: var(--round); font-size: 15px; color: var(--label-2); margin-left: 4px; }
.plates { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 4px; min-height: 20px; }
.plates .bar-n { font-size: 11.5px; color: var(--label-3); margin-right: 3px; }
.pl { height: 20px; min-width: 24px; padding: 0 5px; border-radius: 6px; font-family: var(--round); font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; color: #fff; }
.pl.p25 { background: #e5383b; } .pl.p20 { background: #1d6fe0; } .pl.p15 { background: #f2b705; color: #3a2a00; } .pl.p10 { background: #2f9e44; }
.pl.p5 { background: #f1f3f5; color: #222; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); } .pl.p2_5 { background: #343a40; } .pl.p2 { background: #4263eb; } .pl.p1_25, .pl.p1 { background: #adb5bd; color: #222; } .pl.p0_5, .pl.p0_25 { background: #ced4da; color: #222; }
.pl.other { background: #868e96; }
.chk { width: 46px; height: 46px; border-radius: 50%; justify-self: end; display: grid; place-items: center; font-family: var(--round); font-size: 18px; font-weight: 800; box-shadow: inset 0 0 0 2px var(--fill-2); color: var(--label-3); transition: transform .3s var(--spring), background .2s; }
.chk:active { transform: scale(.9); }
.chk svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chk.done { background: var(--c, var(--accent)); color: #fff; box-shadow: none; }
.chk.part { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.set.warm .chk { width: 38px; height: 38px; }
.set.warm .chk.done { background: var(--fill-2); color: var(--label-2); }

.rest {
  position: fixed; z-index: 30; left: 50%; bottom: calc(var(--safe-b) + 14px); transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 999px; width: min(380px, calc(100% - 24px));
  transition: opacity .25s var(--ease), transform .45s var(--spring);
}
.rest.on { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.rest .rt { font-family: var(--round); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.rest .rl { font-size: 13px; color: var(--label-2); line-height: 1.35; flex: 1; min-width: 0; }
.rest .rl b { color: var(--label); font-weight: 650; }
.in-workout main { padding-bottom: calc(var(--safe-b) + 100px); }
.find { padding: 12px 4px 6px; border-top: .5px solid var(--sep); }
.find-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.find-top .adj { display: flex; gap: 6px; }
.find-step { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 14.5px; color: var(--label-2); }
.find-step b { min-width: 64px; text-align: center; font-size: 16px; }
.rest.over .rt { color: var(--green); }
.rest .round-btn { width: 40px; height: 40px; }
.ring { width: 40px; height: 40px; flex: none; }

/* 动作 */
.lift-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lift-tile { border-radius: 26px; padding: 12px 12px 14px; display: flex; flex-direction: column; transition: transform .45s var(--spring); }
.lift-tile:active { transform: scale(.96); transition-duration: .1s; }
.lift-tile .fig { height: 150px; margin: 0 -4px 6px; }
.lift-tile .fig svg { width: 100%; height: 100%; }
.lift-tile h3 { margin: 0 4px; font-size: 18px; font-weight: 750; }
.lift-tile p { margin: 2px 4px 0; font-size: 13px; color: var(--label-2); line-height: 1.45; }
.lift-tile.wide { grid-column: 1 / -1; }
.acc-list .row .t { font-size: 16px; }

.fig-card { border-radius: 30px; padding: 10px 10px 14px; margin-bottom: 14px; }
.fig-stage { position: relative; max-height: 56vh; max-width: 100%; margin: 0 auto; }
.fig-stage svg { width: 100%; height: 100%; }
.fig-ctl { display: flex; align-items: center; gap: 12px; padding: 4px 8px 0; }
.fig-ctl input[type=range] { flex: 1; accent-color: var(--accent); }
.fig-phase { font-size: 14px; font-weight: 600; text-align: center; min-height: 20px; color: var(--label); margin: 2px 8px 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 6px 0; }
.legend button { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--fill); }
.legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--fig-pri); }
.legend i.s { background: var(--fig-sec); }
.legend button[disabled] { color: var(--label); opacity: 1; cursor: default; }
.legend button.sel { background: color-mix(in srgb, var(--fig-pri) 18%, transparent); }
.legend-note { font-size: 12.5px; color: var(--label-2); margin: 8px 8px 0; line-height: 1.5; }
.fig-stage .m-hi { animation: hi 1s ease-in-out infinite alternate; }
@keyframes hi { from { fill-opacity: 1; } to { fill-opacity: .35; } }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 2px; border-radius: 10px; background: var(--fill); margin: 0 0 14px; position: sticky; top: calc(var(--safe-t) + 52px); z-index: 5; }
.seg button { height: 32px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--label); }
.seg button.on { background: var(--bg-2); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 1px 1px rgba(0,0,0,.04); }
@media (prefers-color-scheme: dark) { .seg button.on { background: #636366; } }

.steps { counter-reset: st; display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 20px; }
.step .sn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--round); font-weight: 800; font-size: 15px; background: color-mix(in srgb, var(--c, var(--accent)) 16%, transparent); color: var(--c, var(--accent)); }
.step b { font-size: 16px; display: block; margin: 4px 0 3px; }
.step p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--label-2); }
.cue { padding: 14px 16px; border-radius: 20px; }
.cue + .cue { margin-top: 10px; }
.cue q { display: block; font-size: 19px; font-weight: 750; letter-spacing: -.01em; quotes: "「" "」"; }
.cue p { margin: 5px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--label-2); }
.fault { border-radius: 20px; overflow: hidden; }
.fault + .fault { margin-top: 10px; }
.fault summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 16px; font-weight: 650; cursor: pointer; }
.fault summary::-webkit-details-marker { display: none; }
.fault summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--label-3); border-bottom: 2px solid var(--label-3); transform: rotate(45deg); transition: transform .25s; flex: none; }
.fault[open] summary::after { transform: rotate(225deg); }
.fault .fx { padding: 0 16px 14px; font-size: 15px; line-height: 1.62; color: var(--label-2); }
.fault .fx b { color: var(--label); }
.note { padding: 14px 16px; border-radius: 20px; font-size: 15px; line-height: 1.62; color: var(--label-2); }
.note b { color: var(--label); }
.note h4 { margin: 0 0 4px; font-size: 15px; color: var(--label); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vs > div { padding: 14px; border-radius: 20px; font-size: 14.5px; line-height: 1.6; color: var(--label-2); }
.vs h4 { margin: 0 0 4px; font-size: 13px; letter-spacing: .02em; color: var(--label); }

/* 文章 */
.article { font-size: 16.5px; line-height: 1.75; }
.article p { margin: 0 0 14px; }
.article h2 { font-size: 21px; margin: 26px 0 10px; letter-spacing: -.01em; }
.article .box { padding: 16px 18px; border-radius: 22px; margin: 16px 0; font-size: 15.5px; line-height: 1.65; }
.article .box p:last-child { margin: 0; }
.article ul { margin: 0 0 14px; padding-left: 1.3em; }
.article li { margin: 4px 0; }
.article .src { font-size: 12.5px; color: var(--label-3); }
.chart-card { border-radius: 26px; padding: 14px 10px 10px; margin: 16px 0; }
.chart-card svg { width: 100%; height: auto; }
.chart-cap { font-size: 13px; color: var(--label-2); margin: 6px 10px 0; line-height: 1.5; }

/* 记录 */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { border-radius: 22px; padding: 14px 14px 10px; }
.stat .l { font-size: 13px; font-weight: 650; color: var(--label-2); display: flex; align-items: center; gap: 6px; }
.stat .l::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.stat .v { font-family: var(--round); font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin-top: 2px; }
.stat .v small { font-size: 14px; color: var(--label-2); font-weight: 700; margin-left: 2px; }
.stat .d { font-size: 12.5px; color: var(--label-2); }
.stat svg { width: 100%; height: 34px; margin-top: 6px; }

/* 底部页签 */
.tabbar {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 12px);
  display: grid; grid-template-columns: repeat(4, 1fr); width: min(400px, calc(100% - 32px)); height: 62px; padding: 4px; border-radius: 999px;
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: var(--label-2); transition: background .25s, color .25s; }
.tabbar a svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--accent); background: var(--fill); }
.in-workout .tabbar { display: none; }

/* 底部弹层 */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.28); opacity: 0; transition: opacity .25s; }
.sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; border-radius: 28px 28px 0 0; padding: 8px 18px calc(var(--safe-b) + 20px); background: var(--bg); transform: translateY(100%); transition: transform .42s var(--spring); max-width: 760px; margin: 0 auto; }
.sheet.on { transform: none; }
.sheet-bg.on { opacity: 1; }
.grabber { width: 38px; height: 5px; border-radius: 3px; background: var(--fill-2); margin: 0 auto 12px; }
.sheet h2 { margin: 4px 4px 14px; font-size: 22px; font-weight: 800; }

/* 表单 */
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper input { width: 76px; text-align: center; font-family: var(--round); font-size: 18px; font-weight: 700; border: 0; border-radius: 10px; background: var(--fill); height: 36px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; background: var(--fill); font-size: 20px; font-weight: 600; }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { appearance: none; -webkit-appearance: none; margin: 0; width: 51px; height: 31px; border-radius: 999px; background: var(--fill-2); transition: background .25s; cursor: pointer; }
.switch input:checked { background: var(--green); }
.switch i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15); transition: transform .3s var(--spring); pointer-events: none; }
.switch input:checked + i { transform: translateX(20px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 8px 12px; border-radius: 999px; background: var(--fill); font-family: var(--round); font-weight: 700; font-size: 14px; color: var(--label-2); }
.chips input:checked + span { background: var(--accent); color: #fff; }
select.sel { appearance: none; -webkit-appearance: none; border: 0; background: var(--fill); border-radius: 10px; padding: 8px 12px; font-size: 15px; }

.empty { text-align: center; padding: 30px 20px; color: var(--label-2); font-size: 15px; line-height: 1.6; }
.toast { position: fixed; z-index: 80; left: 50%; top: calc(var(--safe-t) + 14px); transform: translate(-50%, -20px); opacity: 0; padding: 10px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; transition: opacity .25s, transform .4s var(--spring); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 700px) {
  h1 { font-size: 40px; }
  .lift-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* 剪影小图标：杠铃片画细线，身体实心 */
svg.glyph { width: 100% !important; height: 100% !important; padding: 3px; }
svg.glyph circle { stroke-width: 7 !important; opacity: 1; }
.ex .dot svg.glyph, .lb-top .dot svg.glyph { fill: currentColor; stroke: none; }

.mx-table .row { gap: 0; min-height: 44px; padding: 8px 12px 8px 16px; }
.mx-table .row > span { width: 46px; text-align: center; flex: none; font-size: 12.5px; font-weight: 650; color: var(--label-2); }
.mx-table .t { font-size: 15.5px; }
.mx { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--fill); vertical-align: middle; }
.mx.p { background: var(--fig-pri); } .mx.s { background: var(--fig-sec); }
.fig-card > svg { width: 100%; height: auto; }
.sra-svg svg, .lv-svg svg { width: 100%; height: auto; }
