/* checkup-brief — web/styles.css
   像一份认真排过版的体检简报：纸张底色、深青主色、红黄绿三盏灯。
   不用外部字体、图片、CDN，断网可用。支持深色模式与打印。 */

:root {
  --paper: #f6f4ee;
  --paper-2: #efece3;
  --card: #ffffff;
  --ink: #17201f;
  --ink-2: #3c4644;
  --muted: #6c7572;
  --line: #e3dfd4;
  --brand: #0f3d3e;
  --brand-2: #1d6b63;
  --brand-soft: #e3eeeb;
  --red: #e0484d;
  --red-soft: #fdecec;
  --yellow: #e59a0b;
  --yellow-soft: #fdf3dc;
  --green: #2f9e6b;
  --green-soft: #e4f4ec;
  --shadow: 0 1px 2px rgba(23, 32, 31, .04), 0 8px 24px rgba(23, 32, 31, .06);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1515;
    --paper-2: #151d1d;
    --card: #182222;
    --ink: #eef2f0;
    --ink-2: #c9d2cf;
    --muted: #8d9895;
    --line: #273332;
    --brand: #7fd1bf;
    --brand-2: #5fb9a6;
    --brand-soft: #1b2e2b;
    --red-soft: #3a1d1e;
    --yellow-soft: #3a2e14;
    --green-soft: #17322a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.logo svg { width: 30px; height: 30px; }
.logo svg rect { fill: var(--brand); }
.logo svg path { fill: none; stroke: var(--paper); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.pill-local { font-size: 12px; color: var(--brand-2); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.gh svg { width: 22px; height: 22px; fill: var(--ink); display: block; opacity: .8; }
.gh:hover svg { opacity: 1; }

.seg { display: inline-flex; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 4px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; color: var(--muted); transition: all .2s; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.seg.wide button { padding: 6px 22px; }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 72px 0 40px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; color: var(--brand-2); font-weight: 600; margin: 0 0 14px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -.01em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--yellow) 35%, transparent) 62%); padding: 0 .08em; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 34em; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero-points li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: middle; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { background: var(--brand); color: var(--paper); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn.primary:hover { background: var(--brand-2); }
.btn.ghost { border-color: var(--line); background: var(--card); }
.btn.small { padding: 7px 14px; font-size: 13px; }
.link { border: 0; background: none; color: var(--brand-2); cursor: pointer; padding: 0; font-size: 14px; font-weight: 600; }

/* Hero 右侧的两张“纸” */
.hero-visual { position: relative; height: 380px; }
.paper { position: absolute; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.paper-back { width: 250px; height: 320px; top: 10px; left: 10px; transform: rotate(-7deg); padding: 34px 26px; opacity: .9; }
.paper-line { height: 9px; border-radius: 5px; background: var(--paper-2); margin-bottom: 18px; }
.w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.paper-front { width: 270px; top: 40px; right: 10px; padding: 24px; transform: rotate(3deg); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-8px); } }
.mini-ring { position: relative; width: 120px; height: 120px; margin: 0 auto 12px; }
.mini-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mini-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 38px; font-weight: 800; }
.track { fill: none; stroke: var(--paper-2); stroke-width: 10; }
.bar { fill: none; stroke: var(--yellow); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1); }
.mini-lights { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.mini-lights .l { width: 12px; height: 12px; border-radius: 50%; }
.l.red, i.red { background: var(--red); } .l.yellow, i.yellow { background: var(--yellow); } .l.green, i.green { background: var(--green); }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.mini-row i { width: 8px; height: 8px; border-radius: 50%; }
.mini-row em { margin-left: auto; font-style: normal; font-family: var(--mono); font-weight: 600; }

.disclaimer { text-align: center; color: var(--muted); font-size: 13px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 12px; margin: 8px 0 40px; }

/* ---------- 区块 ---------- */
.block { padding: 24px 0 40px; }
.block-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.step { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--brand-2); background: var(--brand-soft); border-radius: 8px; padding: 4px 8px; margin-top: 6px; }
.block h2 { font-size: 28px; margin: 0; line-height: 1.3; }
.block-head p { margin: 4px 0 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card h3 { margin: 0 0 4px; font-size: 17px; }

.input-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.paste { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.paste.drag { border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-soft); }
textarea { flex: 1; min-height: 340px; width: 100%; border: 0; resize: vertical; padding: 22px; background: transparent; color: var(--ink); font-family: var(--mono); font-size: 13.5px; line-height: 1.8; outline: none; }
.paste-bar { display: flex; gap: 18px; align-items: center; padding: 12px 22px; border-top: 1px solid var(--line); background: var(--paper-2); }
.paste-bar .muted { margin-left: auto; font-size: 13px; }

.field { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 0; font-size: 14px; color: var(--ink-2); }
.field > span { display: flex; justify-content: space-between; }
.field b { color: var(--brand); font-family: var(--mono); }
input[type=number] { width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 15px; }
input[type=range] { width: 100%; accent-color: var(--brand); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 5px 14px; font-size: 13px; cursor: pointer; transition: all .2s; }
.chips button.on { background: var(--brand); border-color: var(--brand); color: var(--paper); }
.block-btn { width: 100%; margin-top: 24px; padding: 14px; }
.spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 结果 ---------- */
.result { animation: rise .6s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.tabs { position: sticky; top: 58px; z-index: 10; display: flex; gap: 6px; padding: 8px; margin-bottom: 20px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; padding: 9px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; font-size: 14px; color: var(--muted); transition: all .25s; }
.tabs button b { font-family: var(--mono); font-size: 11px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); color: var(--muted); }
.tabs button.on { background: var(--brand); color: var(--paper); font-weight: 600; }
.tabs button.on b { background: color-mix(in srgb, var(--paper) 22%, transparent); color: var(--paper); }
.panel { display: none; }
.panel.on { display: block; animation: rise .4s cubic-bezier(.2,.8,.2,1); }

/* 1. 简报总览 */
.overview { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; }
.ring { position: relative; width: 220px; height: 220px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke-width: 14; }
.ring .bar { stroke-width: 14; stroke-dasharray: 597; stroke-dashoffset: 597; }
.ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .num b { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring .num span { font-size: 13px; color: var(--muted); margin-top: 6px; }
.level { display: inline-block; font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.level.green { color: var(--green); background: var(--green-soft); }
.level.yellow { color: var(--yellow); background: var(--yellow-soft); }
.level.red { color: var(--red); background: var(--red-soft); }
.overview p.summary { font-size: 17px; margin: 0 0 16px; color: var(--ink-2); }
.counts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.count { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; font-size: 14px; }
.count b { font-size: 20px; font-variant-numeric: tabular-nums; }
.count.red { background: var(--red-soft); color: var(--red); }
.count.yellow { background: var(--yellow-soft); color: var(--yellow); }
.count.green { background: var(--green-soft); color: var(--green); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rule { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* 指标列表 */
.group-title { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--muted); margin: 28px 0 10px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.items { display: grid; gap: 10px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; display: grid; grid-template-columns: minmax(140px, 1fr) minmax(200px, 1.7fr) 230px; gap: 22px; align-items: center; opacity: 0; transform: translateY(8px); animation: rise .5s cubic-bezier(.2,.8,.2,1) forwards; }
.item.red { border-left: 4px solid var(--red); }
.item.yellow { border-left: 4px solid var(--yellow); }
.item .name { font-weight: 600; }
.item .name small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.item > div:nth-child(3) { text-align: right; }
.item .val { font-family: var(--mono); font-size: 15px; font-weight: 700; }
.item .val small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 4px; }
.item .explain { grid-column: 1 / -1; margin: -4px 0 0; font-size: 14px; color: var(--ink-2); padding-top: 10px; border-top: 1px dashed var(--line); }
.badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge.red { color: var(--red); background: var(--red-soft); }
.badge.yellow { color: var(--yellow); background: var(--yellow-soft); }
.badge.green { color: var(--green); background: var(--green-soft); }
.badge.gray { color: var(--muted); background: var(--paper-2); }

/* 参考范围条：绿色是正常区间，小圆点是你的数值 */
.gauge { position: relative; height: 34px; }
.gauge .rail { position: absolute; left: 0; right: 0; top: 13px; height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.gauge .ok { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--green) 30%, transparent); }
.gauge .edge { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--yellow) 35%, transparent); }
.gauge .dot { position: absolute; top: 9px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.25); left: 0; transition: left 1.1s cubic-bezier(.2,.8,.2,1); }
.gauge .dot.red { background: var(--red); } .gauge .dot.yellow { background: var(--yellow); } .gauge .dot.green { background: var(--green); }
.gauge .tick { position: absolute; top: 24px; font-size: 10px; color: var(--muted); font-family: var(--mono); transform: translateX(-50%); }
.more { margin-top: 12px; }

/* 2. 解析结果表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; background: var(--paper-2); }
tr:last-child td { border-bottom: 0; }
td.mono { font-family: var(--mono); }
.src { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--paper-2); color: var(--muted); }
.src.report { background: var(--brand-soft); color: var(--brand-2); }
pre.json { background: var(--paper-2); border-radius: 14px; padding: 16px; font-size: 12px; overflow: auto; max-height: 320px; }

/* 3. 套餐 */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.col h3 { display: flex; align-items: center; gap: 8px; }
.col h3 i { width: 10px; height: 10px; border-radius: 50%; }
.col ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.col li { padding: 12px 14px; background: var(--paper); border-radius: 12px; font-size: 14px; }
.col li b { display: block; font-size: 15px; }
.col li span { color: var(--muted); }
.col li em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--brand-2); }
.col.skip li b { text-decoration: line-through; text-decoration-color: var(--muted); }
.budget-bar { margin: 0 0 18px; }
.budget-bar .track2 { height: 10px; background: var(--paper-2); border-radius: 5px; position: relative; overflow: hidden; margin: 8px 0; }
.budget-bar .fill { position: absolute; top: 0; bottom: 0; left: 0; background: linear-gradient(90deg, var(--brand-2), var(--brand)); border-radius: 5px; width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.budget-bar .range { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--brand-2) 35%, transparent); }

/* 4. 挂号 */
.clinic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dept { font-size: 20px; font-weight: 800; color: var(--brand); margin: 0; }
.clinic-card .why { font-size: 14px; color: var(--muted); margin: 2px 0 12px; }
.clinic-card .tag { display: inline-flex; gap: 6px; align-items: center; font-family: var(--mono); font-size: 12px; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.clinic-card h4 { font-size: 13px; margin: 14px 0 6px; color: var(--ink-2); letter-spacing: .04em; }
.clinic-card ul, .clinic-card ol { margin: 0; padding-left: 20px; font-size: 14px; }
.clinic-card li { margin: 3px 0; }
.clinic-card .copy { margin-top: 14px; }

/* 5. 30 天计划 */
.focus { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 18px; }
.focus span { background: var(--brand-soft); color: var(--brand-2); font-weight: 600; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.week { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card); cursor: pointer; transition: all .2s; text-align: left; }
.week.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.week small { font-family: var(--mono); color: var(--muted); font-size: 11px; }
.week b { display: block; font-size: 16px; }
.week span { font-size: 13px; color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.today li { list-style: none; display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.today ul { padding: 0; margin: 10px 0 0; }
.today li:last-child { border: 0; }
.today li i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; font-family: var(--mono); background: var(--brand-soft); color: var(--brand-2); }
.extras { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--yellow-soft); font-size: 14px; }
.extras p { margin: 4px 0; }
.cal-head { display: flex; justify-content: space-between; align-items: center; }
.streak { font-family: var(--mono); font-weight: 700; color: var(--brand); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.day { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font-size: 11px; font-family: var(--mono); color: var(--muted); padding: 0; transition: transform .15s, background .2s; }
.day:hover { transform: translateY(-1px); }
.day .dots { display: flex; gap: 3px; }
.day .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .2s; }
.day .dots i.e { } 
.day.full { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 40%, transparent); color: var(--green); }
.day .dots i.on { background: var(--green); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.check3 { display: flex; gap: 8px; margin-top: 12px; }
.check3 button { flex: 1; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 10px 6px; cursor: pointer; font-size: 14px; transition: all .2s; }
.check3 button.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.daily3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.daily3 ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* 分享卡预览 */
.share-modal { position: fixed; inset: 0; background: rgba(10, 16, 16, .6); display: grid; place-items: center; z-index: 50; padding: 24px; animation: fade .2s; }
.share-modal .box { background: var(--card); border-radius: 20px; padding: 18px; max-height: 92vh; overflow: auto; text-align: center; }
.share-modal img { max-width: min(360px, 80vw); border-radius: 12px; display: block; margin: 0 auto 14px; box-shadow: var(--shadow); }
@keyframes fade { from { opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 60; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.foot { max-width: 1120px; margin: 40px auto 0; padding: 32px 24px 56px; border-top: 1px solid var(--line); text-align: center; }
.foot p { margin: 4px 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 24px; }
  .hero-visual { height: 330px; max-width: 420px; width: 100%; margin: 0 auto; }
  .input-grid, .plan-grid, .clinic-grid { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .weeks { grid-template-columns: repeat(2, 1fr); }
  .overview { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .overview .counts, .overview .actions { justify-content: center; }
  .item { grid-template-columns: 1fr auto; }
  .item .gauge { grid-column: 1 / -1; grid-row: 2; }
  .pill-local { display: none; }
  .tabs button span { display: none; }
  .tabs button.on span { display: inline; }
}

/* ---------- 打印：只留一页纸简报 ---------- */
@media print {
  .nav, .hero, .disclaimer, #input, .tabs, .actions, .foot, .more, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  .result { display: block !important; }
  .panel { display: none !important; }
  #panel-brief { display: block !important; }
  .item { break-inside: avoid; box-shadow: none; opacity: 1; transform: none; animation: none; }
  .card { box-shadow: none; }
  #panel-brief::after { content: "只做健康科普，不做诊断，不能替代医生。 · checkup-brief"; display: block; text-align: center; font-size: 11px; color: #666; margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.sdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.sdot.red { background: var(--red); } .sdot.yellow { background: var(--yellow); } .sdot.green { background: var(--green); } .sdot.gray { background: var(--muted); }
.cal { max-width: 420px; }
.day { aspect-ratio: auto; height: 46px; }

/* ---------- 导入：PDF / 照片 ---------- */
.drop { display: flex; align-items: center; gap: 14px; margin: 14px 14px 0; padding: 16px 18px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--paper-2); color: var(--ink-2); cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop:focus-visible, .paste.drag .drop { border-color: var(--brand-2); background: var(--brand-soft); outline: none; }
.drop svg { width: 28px; height: 28px; flex: none; color: var(--brand-2); }
.drop b { display: block; font-size: 15px; color: var(--ink); }
.drop small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.progress { margin: 12px 14px 0; }
.progress-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.progress-track { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress-track i { display: block; height: 100%; width: 0; background: var(--brand-2); transition: width .3s; }
.import-note { margin: 12px 14px 0; padding: 10px 14px; border-radius: 10px; font-size: 13px; background: var(--green-soft); color: var(--ink-2); }
.import-note.warn { background: var(--yellow-soft); }
.paste textarea { margin-top: 4px; }
.paste-bar .try { margin-left: 0 !important; font-size: 13px; }
.item .fix { grid-column: 1 / -1; margin: -4px 0 0; font-size: 13px; color: var(--yellow); }
.paste-bar { flex-wrap: wrap; row-gap: 6px; }
.paste-bar > * { white-space: nowrap; }
@media (max-width: 560px) { .paste-bar { gap: 14px; padding: 12px 16px; } .drop { margin: 12px 12px 0; padding: 14px; } }
/* 30 天计划：吃 / 动 / 睡 在窄屏改成上下排 */
@media (max-width: 760px) {
  .daily3 { grid-template-columns: 1fr; gap: 10px; }
  .daily3 .card { display: grid; grid-template-columns: 2.2em 1fr; gap: 0 12px; align-items: start; padding: 16px 18px; }
  .daily3 h3 { margin: 2px 0 0; font-size: 17px; color: var(--brand); }
  .daily3 ul { margin: 0; padding-left: 16px; font-size: 14px; line-height: 1.65; }
  .daily3 li + li { margin-top: 4px; }
}
.nw { white-space: nowrap; }
