/* #12 检前空腹与用药清单 · 时钟台皮肤：暖奶油 + 琥珀 + 衬线数字 + 24h 时间轴 */
.mg2.page-fasting{
  --mg-bg:#fbf6ec; --mg-surface:#fffdf8; --mg-surface-2:#f6efe1;
  --mg-ink:#3a2c1c; --mg-sub:#6c5b45; --mg-muted:#9a896f;
  --mg-line:#e7dcc6; --mg-accent:#b6661f; --mg-accent-2:#5d7a52;
  --mg-soft:rgba(182,102,31,.11); --mg-on-accent:#fffaf1;
  --mg-ok:#4e7a3f; --mg-ok-soft:rgba(78,122,63,.13);
  --mg-warn:#9a5b12; --mg-warn-soft:rgba(200,130,30,.15);
  --mg-danger:#a33b2a; --mg-danger-soft:rgba(163,59,42,.12);
  --mg-shadow:0 8px 26px rgba(120,90,45,.10); --mg-radius:18px;
  --mg-font:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --mg-serif:Georgia,"Songti SC","SimSun",serif;
  --mg-head-weight:700;
}
.mg2.page-fasting .hero.clock-hero{
  display:flex;align-items:center;gap:26px;padding:30px 0 24px;
  border-bottom:2px solid var(--mg-line);margin-bottom:20px;
}
.mg2.page-fasting .clock-face{
  flex:0 0 116px;width:116px;height:116px;border-radius:50%;position:relative;
  border:7px double var(--mg-accent);background:var(--mg-surface);
  display:grid;place-items:center;box-shadow:inset 0 0 0 6px var(--mg-surface-2);
}
.mg2.page-fasting .clock-face b{font:700 21px/1 var(--mg-serif);color:var(--mg-accent);letter-spacing:.08em}
.mg2.page-fasting .clock-face::before,.mg2.page-fasting .clock-face::after{
  content:"";position:absolute;left:50%;top:7px;width:2px;height:9px;background:var(--mg-accent);transform:translateX(-50%);
}
.mg2.page-fasting .clock-face::after{top:auto;bottom:7px}
.mg2.page-fasting .clock-hand{position:absolute;left:50%;top:50%;width:2px;height:34px;
  background:var(--mg-ink);transform-origin:bottom center;transform:translate(-50%,-100%) rotate(42deg);border-radius:2px}
.mg2.page-fasting .clock-hand::after{content:"";position:absolute;bottom:-4px;left:-3px;width:8px;height:8px;border-radius:50%;background:var(--mg-ink)}
.mg2.page-fasting .hero h1{font-family:var(--mg-serif);letter-spacing:0;font-size:clamp(27px,3vw,38px)}
.mg2.page-fasting .hero h1 em{color:var(--mg-accent);font-style:italic}
.mg2.page-fasting .eyebrow{border-radius:6px;letter-spacing:.02em}
.mg2.page-fasting .lede{font-size:15.5px}
.mg2.page-fasting .hero-tags li{border-radius:999px}
.mg2.page-fasting .grid{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)}
.mg2.page-fasting .panel{border:1px solid var(--mg-line);box-shadow:var(--mg-shadow)}
.mg2.page-fasting .panel-h{border-bottom:2px dotted var(--mg-line)}
.mg2.page-fasting .panel-h h2{font-family:var(--mg-serif);font-size:18px}
.mg2.page-fasting .input,.mg2.page-fasting .select,.mg2.page-fasting .textarea{border-radius:12px}
.mg2.page-fasting .btn{border-radius:999px;letter-spacing:.02em}
.mg2.page-fasting .chip{border-radius:999px}
.mg2.page-fasting .kpi b{font-family:var(--mg-serif);font-size:26px}

.mg2.page-fasting .window-card{display:flex;flex-wrap:wrap;align-items:center;gap:14px;
  background:linear-gradient(100deg,var(--mg-surface-2),var(--mg-surface));
  border:1px solid var(--mg-line);border-radius:14px;padding:15px 16px}
.mg2.page-fasting .window-time span{display:block;font-size:11.5px;letter-spacing:.1em;color:var(--mg-muted)}
.mg2.page-fasting .window-time strong{font:700 28px/1.2 var(--mg-serif);color:var(--mg-accent);font-variant-numeric:tabular-nums}
.mg2.page-fasting .window-arrow{font-size:22px;color:var(--mg-muted)}
.mg2.page-fasting .window-note{flex:1 1 100%;font-size:12.5px;color:var(--mg-sub);border-top:1px dashed var(--mg-line);padding-top:9px}
.mg2.page-fasting .axis{margin:16px 0 4px}
.mg2.page-fasting .axis-bar{position:relative;height:12px;border-radius:99px;background:var(--mg-surface-2);border:1px solid var(--mg-line)}
.mg2.page-fasting .axis-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#e7b169,var(--mg-accent))}
.mg2.page-fasting .axis-pin{position:absolute;top:-7px;width:4px;height:26px;border-radius:2px;background:var(--mg-ink)}
.mg2.page-fasting .axis-labels{display:flex;justify-content:space-between;font-size:10.5px;color:var(--mg-muted);margin-top:7px}
.mg2.page-fasting .med-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.mg2.page-fasting .med-col{border:1px solid var(--mg-line);border-radius:12px;background:var(--mg-surface-2);padding:10px}
.mg2.page-fasting .med-col h4{margin:0 0 8px;font-size:12.5px;color:var(--mg-ink);display:flex;justify-content:space-between}
.mg2.page-fasting .med-col h4 span{font:700 12px var(--mg-serif);color:var(--mg-accent)}
.mg2.page-fasting .med-col p{margin:0 0 6px;font-size:12px;line-height:1.6;color:var(--mg-sub);word-break:break-word}
.mg2.page-fasting .med-col p:last-child{margin-bottom:0}
.mg2.page-fasting .med-col small{display:block;color:var(--mg-muted);font-size:11px}
.mg2.page-fasting .med-col.col-ok{border-top:3px solid var(--mg-ok)}
.mg2.page-fasting .med-col.col-ask{border-top:3px solid var(--mg-warn)}
.mg2.page-fasting .med-col.col-none{border-top:3px solid var(--mg-danger)}
.mg2.page-fasting .ask-list{list-style:none;padding:0;margin:0;counter-reset:ask}
.mg2.page-fasting .ask-list li{counter-increment:ask;position:relative;padding:8px 0 8px 34px;
  border-bottom:1px dashed var(--mg-line);font-size:13.5px;line-height:1.75}
.mg2.page-fasting .ask-list li::before{content:counter(ask);position:absolute;left:0;top:8px;width:22px;height:22px;
  border-radius:50%;background:var(--mg-soft);color:var(--mg-accent);font:700 12px/22px var(--mg-serif);text-align:center}
.mg2.page-fasting .sec-h{font-family:var(--mg-serif)}
.mg2.page-fasting .tab{border-radius:999px}

:root[data-theme="dark"] .mg2.page-fasting{
  --mg-bg:#171208; --mg-surface:#211a0e; --mg-surface-2:#191307;
  --mg-ink:#f5e9d3; --mg-sub:#cbb694; --mg-muted:#9c8967;
  --mg-line:#3b301b; --mg-accent:#f0b45f; --mg-accent-2:#9fc78c;
  --mg-soft:rgba(240,180,95,.15); --mg-on-accent:#211706;
  --mg-ok:#a3d98c; --mg-warn:#fcd34d; --mg-danger:#fda4a4;
  --mg-shadow:0 10px 30px rgba(0,0,0,.4);
}
:root[data-theme="dark"] .mg2.page-fasting .btn{color:#211706}
:root[data-theme="dark"] .mg2.page-fasting .btn--ghost{color:var(--mg-accent)}
:root[data-theme="dark"] .mg2.page-fasting .clock-face{border-color:var(--mg-accent)}
@media (max-width:900px){
  .mg2.page-fasting .med-cols{grid-template-columns:1fr}
}
@media (max-width:640px){
  .mg2.page-fasting .hero.clock-hero{gap:14px}
  .mg2.page-fasting .clock-face{flex:0 0 74px;width:74px;height:74px;border-width:4px}
  .mg2.page-fasting .clock-face b{font-size:14px}
  .mg2.page-fasting .clock-hand{height:22px}
}
