/* 设计系统 v1(2026-10-23,阶段 1 样板页专用)。
   ⚠️ 叠在 site.css 之上:先引 site.css(颜色 token、基础排版),再引本文件。
      所有规则都挂在 body.ds 下 —— 没加 class="ds" 的页面一点都不受影响,
      阶段 2 铺全站时再把这里并进 site.css。
   ⚠️ 颜色全部复用 site.css 的 token(--ink / --bg / --green / --fill / --now …),
      它们已经按 WCAG 对比度校验过。这里只新增「结果区深色面」的两个值,
      对比度见各行注释。改任何颜色前先重算对比度,别靠眼睛。
   ⚠️ 动效只有两种:数字滚动(motion.js)、条形生长。
      prefers-reduced-motion 下全部关掉 —— 文末统一处理。 */

body.ds {
  /* 间距与圆角尺度 */
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px;
  --shadow: 0 1px 2px rgba(15,47,37,.06), 0 8px 24px rgba(15,47,37,.07);
  --ring: color-mix(in srgb, var(--fill) 35%, transparent);
  /* 结果区(深绿面)。文字 #f4efe3 在 #0f2f25 上 13.1:1;金色 #e2b660 在其上 8.9:1。 */
  --hero-bg: linear-gradient(155deg, #0f2f25 0%, #17493a 100%);
  --hero-ink: #f4efe3;
  --hero-dim: #b9c9c0;   /* 在 #0f2f25 上 8.4:1 */
  --hero-gold: #e2b660;

  max-width: 46rem;
  padding: 0 1.25rem 5rem;
  font-size: 18px;
}
@media (prefers-color-scheme: dark) {
  body.ds {
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --hero-bg: linear-gradient(155deg, #12392d 0%, #1b5543 100%);
  }
}

/* ── 顶栏:吸顶、半透明 ─────────────────────────────── */
.ds .nav {
  position: sticky; top: 0; z-index: 10;
  margin: 0 -1.25rem 1.6rem; padding: .8rem 1.25rem;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  gap: .2rem 1.1rem; font-size: .92rem;
  overflow-x: auto; flex-wrap: nowrap; white-space: nowrap;
  scrollbar-width: none;
}
.ds .nav::-webkit-scrollbar { display: none; }
.ds .nav-home { font-family: "Iowan Old Style", Palatino, Georgia, ui-serif, serif; font-size: 1rem; }
.ds .nav [aria-current] { color: var(--ink); font-weight: 600; }

/* ── 页头 ─────────────────────────────────────────── */
.ds h1 {
  font-size: clamp(1.9rem, 6.2vw, 2.9rem); line-height: 1.1;
  letter-spacing: -0.02em; margin: .4rem 0 .8rem; text-wrap: balance;
}
.ds .sub { font-size: 1.05rem; line-height: 1.55; max-width: 38rem; margin: 0 0 1.8rem; }
.ds h2 { font-size: 1.4rem; margin: 2.8rem 0 .7rem; }

/* ── 输入卡 ───────────────────────────────────────── */
.ds .card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: .5rem 1.3rem; margin: 1.2rem 0;
  box-shadow: var(--shadow);
}
.ds .field { padding: 1rem 0; }
.ds .field label { font-weight: 600; }
.ds input[type="date"], .ds input[type="text"], .ds select {
  background: var(--bg); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.ds input[type="date"]:focus, .ds input[type="text"]:focus, .ds select:focus {
  outline: none; border-color: var(--fill); box-shadow: 0 0 0 4px var(--ring);
}
.ds input[type="text"] { font-variant-numeric: tabular-nums; font-weight: 600; }
.ds input[type="checkbox"] { accent-color: var(--fill); width: 1.4rem; height: 1.4rem; }

/* 带滑块的输入行:标签 + 文本框一行,滑块独占下一行 */
.ds .field--range { display: block; }
.ds .field--range .field-top {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .4rem 1rem;
}
.ds .field--range .field-top label { flex: 1 1 12rem; }
.ds .field--range .field-top input { flex: 1 1 9.5rem; max-width: 12rem; }
.ds .range-wrap { margin-top: .35rem; }
.ds .range-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--dim); }

/* 滑块:已划过的一段填色(--pct 由 motion.js 写入) */
.ds input[type="range"] { --pct: 0%; height: 44px; }
.ds input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px;
  background: linear-gradient(to right, var(--fill) var(--pct), var(--line) var(--pct));
}
.ds input[type="range"]::-moz-range-track {
  height: 8px; border-radius: 4px;
  background: linear-gradient(to right, var(--fill) var(--pct), var(--line) var(--pct));
}
.ds input[type="range"]::-webkit-slider-thumb {
  width: 30px; height: 30px; margin-top: -11px;
  background: var(--bg); border: 3px solid var(--fill);
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  transition: transform .12s, box-shadow .12s;
}
.ds input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; background: var(--bg); border: 3px solid var(--fill);
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
}
.ds input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.ds input[type="range"]:focus-visible { outline: none; }
.ds input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--ring); }

/* ── 结果:深绿大卡 ───────────────────────────────── */
.ds .result {
  background: var(--hero-bg); color: var(--hero-ink);
  border-radius: var(--r-lg); padding: 1.6rem 1.5rem 1.4rem; margin: 1.6rem 0;
  box-shadow: var(--shadow);
  /* ⚠️ 不做淡入:页面每次输入都会整块重建结果区,淡入会让拖滑块时整张卡闪烁。
     动效只留给数字滚动和条形生长。 */
}
.ds .result .eyebrow { color: var(--hero-gold); margin-bottom: .6rem; }
.ds .result .big, .ds .result .headline {
  color: var(--hero-ink);
  font-family: "Iowan Old Style", Palatino, Georgia, ui-serif, serif;
  font-size: clamp(2.8rem, 13vw, 4.6rem); font-weight: 600; line-height: 1;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.ds .result .big .unit { font-family: -apple-system, system-ui, sans-serif; font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--hero-dim); display: block; margin: .55rem 0 0; }
.ds .result .lead-in { color: var(--hero-dim); margin: .7rem 0 0; font-size: .98rem; line-height: 1.5; }

/* 联动条:一条轨道 + 一段填充,宽度由 motion.js 驱动 */
.ds .meter { margin: 1.3rem 0 .2rem; }
.ds .meter-head { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--hero-dim); margin-bottom: .4rem; }
.ds .meter-head b { color: var(--hero-ink); font-variant-numeric: tabular-nums; }
.ds .meter-track { height: 12px; border-radius: 6px; background: rgba(255,255,255,.14); overflow: hidden; }
.ds .meter-fill {
  height: 100%; border-radius: 6px; background: var(--hero-gold);
  transition: width .55s cubic-bezier(.2,.8,.2,1);
}
.ds .meter-fill.alt { background: #7fd6b3; }

/* 结果卡里的步骤明细(浅色面) */
.ds .steps { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: .3rem 1.3rem; margin: 1.2rem 0; }
.ds .step .row { font-variant-numeric: tabular-nums; }

/* 其余沿用 site.css 的 .card/.step/.warn 在 .ds 下的圆角 */
.ds .warn { border-left-width: 4px; background: color-mix(in srgb, var(--warn) 8%, transparent);
  padding: .8rem 1rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.ds .note { font-size: .88rem; }

/* ── 完整测算(等候名单)入口 ─────────────────────── */
.ds .upsell {
  margin: 2.8rem 0 1rem; padding: 1.6rem 1.5rem;
  border: 1px solid var(--line); border-left: 4px solid var(--now);
  border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--card);
}
.ds .upsell .tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--now); margin-bottom: .4rem;
}
.ds .upsell h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.ds .upsell p { margin: 0 0 1rem; color: var(--dim); font-size: .98rem; }
.ds .upsell ul { margin: 0 0 1.1rem; padding-left: 1.1rem; font-size: .96rem; }
.ds .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 12px;
  background: var(--green); color: var(--bg); font-weight: 600; font-size: 1rem;
  text-decoration: none; transition: transform .12s, filter .15s;
}
.ds .btn:hover { filter: brightness(1.12); }
.ds .btn:active { transform: scale(.98); }
@media (max-width: 480px) { .ds .btn { width: 100%; } }
.ds .upsell small { display: block; margin-top: .8rem; color: var(--dim); font-size: .82rem; line-height: 1.45; }

/* ── 旧结构的统一换肤:表格、图、柱状条、时间线 ─────── */
.ds .scroller { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow); padding: .3rem .6rem; }
.ds thead th { color: var(--dim); font-weight: 600; font-size: .82rem; letter-spacing: .03em; }
.ds tbody tr { transition: background .15s; }
.ds tbody tr:hover { background: color-mix(in srgb, var(--fill) 7%, transparent); }
.ds figure { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1rem .8rem; box-shadow: var(--shadow); }
.ds .chart .curve { stroke: var(--fill); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ds .bars { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: .4rem 1.2rem; box-shadow: var(--shadow); }
.ds .bar-track { height: 12px; border-radius: 6px; }
.ds .bar-fill { border-radius: 6px; transition: width .55s cubic-bezier(.2,.8,.2,1); }
.ds .field--slider { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: .9rem 1.2rem .5rem; margin: 1rem 0; box-shadow: var(--shadow); }
.ds .field--slider output { font-size: 1.25rem; }
.ds .tl-item, .ds .tl-now { transition: opacity .2s; }

/* Explain 演示块:圆角对齐 */
.ds .lead, .ds .xd-card { border-radius: 0 var(--r-md) var(--r-md) 0; }
.ds .xd-card { border-radius: var(--r-md); }


/* ── 输入与结果的排布 ────────────────────────────────
   ⚠️ #out / #cost 用 display:contents 摊平,让它们的子元素直接成为网格项:
      手机上 → 大数字结果卡排在输入卡**前面**(一打开就看到答案,拖滑块时
      答案就在滑块上方);桌面上 → 输入在左,结果右侧吸顶。
      页面 JS 完全不用知道这个排布。 */
.ds .calc-grid { display: flex; flex-direction: column; gap: 1.2rem; }
.ds .calc-grid > #out, .ds .calc-grid > #cost { display: contents; }
.ds .calc-grid .result { order: -1; margin: 0; }
.ds .calc-grid > .card, .ds .calc-grid .steps { margin: 0; }
.ds .btn { box-sizing: border-box; }

@media (min-width: 900px) {
  body.ds:has(.calc-grid) { max-width: 62rem; }
  .ds .calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 1.6rem; row-gap: 1.2rem; align-items: start; }
  .ds .calc-grid > .card { grid-column: 1; grid-row: 1 / span 12; }
  .ds .calc-grid .result { order: 0; grid-column: 2; position: sticky; top: 4.5rem; z-index: 2; }
  .ds .calc-grid .steps, .ds .calc-grid #out > *, .ds .calc-grid #cost > * { grid-column: 2; }
}

/* ── 文章页的小交互 ─────────────────────────────── */
.ds .widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.2rem 1.2rem; margin: 1.6rem 0; box-shadow: var(--shadow); }
.ds .widget .result { margin: 1rem 0 0; box-shadow: none; }
.ds .w-ctl { margin-bottom: .4rem; }
.ds .w-ctl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 600; }
.ds .w-ctl-top output { font-family: "Iowan Old Style", Palatino, Georgia, ui-serif, serif; font-size: 1.35rem; font-variant-numeric: tabular-nums; color: var(--green); }
.ds .w-check { display: flex; gap: .6rem; align-items: center; min-height: 44px; font-size: .95rem; }
.ds .yr-track { display: grid; grid-template-columns: repeat(19, 1fr); gap: 3px; margin: .4rem 0 .5rem; }
.ds .yr { height: 26px; border-radius: 4px; background: var(--line); transition: transform .15s, box-shadow .15s; }
.ds .yr.a72 { background: #9bb8a9; } .ds .yr.a73 { background: var(--fill); } .ds .yr.a75 { background: #1d4f8f; }
.ds .yr.unsettled { background: repeating-linear-gradient(45deg, var(--fill) 0 4px, var(--now) 4px 8px); }
.ds .yr.on { transform: scaleY(1.35); box-shadow: 0 0 0 2px var(--ink); }
.ds .yr-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .82rem; color: var(--dim); }
.ds .yr-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; background: var(--line); }
.ds .yr-legend i.a72 { background: #9bb8a9; } .ds .yr-legend i.a73 { background: var(--fill); } .ds .yr-legend i.a75 { background: #1d4f8f; }
.ds .yr-legend i.unsettled { background: repeating-linear-gradient(45deg, var(--fill) 0 3px, var(--now) 3px 6px); }
.ds .box { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--now); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 1rem 1.2rem; margin: 1.4rem 0; box-shadow: var(--shadow); }
.ds .box, .ds .warn { font-size: 1rem; }

/* ── 首页 ─────────────────────────────────────────── */
.ds .hero { padding: 1.2rem 0 .2rem; }
.ds.home h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); }
.ds .hero-demo .eyebrow { margin-bottom: .6rem; }
.ds .hero-demo .result .btn { margin-top: 1rem; background: var(--hero-gold); color: #0f2f25; }
.ds .tiles { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; grid-template-columns: 1fr; gap: .8rem; }
.ds .tiles li { margin: 0; }
.ds .tiles a {
  display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; row-gap: .15rem; align-items: center;
  height: 100%; box-sizing: border-box; padding: 1rem 1.1rem; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s;
}
.ds .tiles a:hover { transform: translateY(-2px); border-color: var(--fill); }
.ds .tiles .ico { grid-row: 1 / span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--fill) 14%, transparent); color: var(--fill); }
.ds .tiles strong { color: var(--ink); font-size: 1.05rem; margin: 0; }
.ds .tiles .d { font-size: .9rem; color: var(--dim); grid-column: 2; }
@media (min-width: 640px) { .ds .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .ds .tiles { grid-template-columns: 1fr 1fr 1fr; } .ds.home { max-width: 62rem; } }
.ds .trust { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ds .trust { grid-template-columns: repeat(3, 1fr); } }
.ds .trust li { margin: 0; padding: .9rem 1rem; border-left: 3px solid var(--fill); background: color-mix(in srgb, var(--fill) 6%, transparent); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.ds .trust strong { display: block; }
.ds .trust span { font-size: .9rem; color: var(--dim); }
.ds .reads { list-style: none; padding: 0; }
.ds .reads li { margin: 0; border-bottom: 1px solid var(--line); }
.ds .reads a { display: block; padding: .8rem .1rem; text-decoration: none; }
.ds .reads a:hover { text-decoration: underline; }

@media (min-width: 900px) {
  .ds .home-top { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.4rem; align-items: center; margin-bottom: 1rem; }
  .ds .home-top .widget { margin: 0; }
}

/* ── 时间线:每个里程碑一张卡 ─────────────────────── */
.ds .tl { margin-top: 1.2rem; }
.ds .tl-item { padding: 0 0 1.1rem 2.1rem; }
.ds .tl-item::before { top: 1.2rem; }
.ds .tl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: .9rem 1.1rem 1rem; box-shadow: var(--shadow); }
.ds .tl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem .8rem; }
.ds .tl-when { font-family: "Iowan Old Style", Palatino, Georgia, ui-serif, serif; font-size: 1.5rem; font-weight: 600; }
.ds .tl-pill { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .15rem .6rem; border-radius: 99px; color: var(--dot, var(--dim)); border: 1.5px solid var(--dot, var(--dim)); }
.ds .tl-item .tl-more { color: var(--dim); }
.ds .tl-item.is-past .tl-card { opacity: .6; }
.ds .tl-item.is-past .tl-when, .ds .tl-item.is-past .tl-title { opacity: 1; }
.ds .tl-now span { display: inline-block; padding: .25rem .8rem; border-radius: 99px; background: color-mix(in srgb, var(--now) 15%, transparent); }
.ds .tl-gap span { background: var(--bg); }
.ds #out > .result { margin: 1.4rem 0 .6rem; }

/* ── 说明文字:比原先大一点、深一点(全站,中英文都受益)─────── */
.ds .step .why, .ds .step.why { font-size: 1rem; color: color-mix(in srgb, var(--ink) 72%, var(--bg)); line-height: 1.65; }
.ds .field .hint { font-size: .9rem; color: color-mix(in srgb, var(--ink) 66%, var(--bg)); }
.ds .step .row { font-size: 1.05rem; }

/* ── 中文排版 ─────────────────────────────────────────
   ⚠️ 中文页(<html lang="zh-Hans">)单独一套字体和行距:
      英文的 Palatino/Iowan 里没有汉字,系统会随便回退到一款宋体,粗细不稳;
      这里明确指定苹方 / 微软雅黑 / 思源黑体做正文,标题用宋体(Songti SC /
      Noto Serif SC)加粗,保持原来「衬线标题 + 无衬线正文」的气质。
      行距拉到 1.85:汉字方块字密,1.65 读起来挤。 */
html:lang(zh) body.ds {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.85;
  letter-spacing: .01em;
}
html:lang(zh) .ds h1, html:lang(zh) .ds h2, html:lang(zh) .ds h3,
html:lang(zh) .ds .big, html:lang(zh) .ds .tl-when, html:lang(zh) .ds .nav-home,
html:lang(zh) .ds .w-ctl-top output {
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  font-weight: 700; letter-spacing: 0;
}
html:lang(zh) .ds h1 { line-height: 1.3; font-size: clamp(1.8rem, 6vw, 2.6rem); }
html:lang(zh) .ds .big { font-weight: 600; }
html:lang(zh) .ds .eyebrow, html:lang(zh) .ds .tag, html:lang(zh) .ds .tl-pill, html:lang(zh) .ds th { text-transform: none; letter-spacing: .04em; }
html:lang(zh) .ds .step .why, html:lang(zh) .ds .hint { line-height: 1.75; }

/* ── 夫妻页「所有组合」:热力图 + 寿命表 ─────────────────
   ⚠️ 四档颜色是 --fill 往 --card 混,不是新颜色;对比度和单调性见 couple-grid-view.js 顶部。
      改混合比例前先重算,别靠眼睛。最浅一档几乎等于卡片色,所以每格描一圈 --line。 */
/* 宽度封顶:不封的话桌面上每格 60 px,整张图半屏高,一眼看不全 —— 而它要的就是一眼看全。 */
.ds .heat { width: 100%; max-width: 26rem; table-layout: fixed; border-collapse: separate; border-spacing: 2px; margin: 1rem 0 .5rem; }
.ds .heat caption, .ds .lifespans caption, .ds .heat-figures caption {
  caption-side: top; text-align: left; font-size: .85rem; color: var(--dim); padding-bottom: .5rem;
}
.ds .heat th { font-size: .78rem; font-weight: 500; color: var(--dim); text-align: center; padding: 0; }
.ds .heat thead td, .ds .heat tbody th { width: 1.9rem; }
.ds .heat td { padding: 0; }
.ds .heat button, .ds .heat-legend span {
  display: block; width: 100%; aspect-ratio: 1; padding: 0;
  border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
}
.ds :is(.heat, .heat-legend) .h0 { background: var(--fill); }
.ds :is(.heat, .heat-legend) .h1 { background: color-mix(in srgb, var(--fill) 66%, var(--card)); }
.ds :is(.heat, .heat-legend) .h2 { background: color-mix(in srgb, var(--fill) 38%, var(--card)); }
.ds :is(.heat, .heat-legend) .h3 { background: color-mix(in srgb, var(--fill) 14%, var(--card)); }
.ds :is(.heat, .heat-legend) .top { outline: 2px solid var(--ink); outline-offset: 1px; }
.ds .heat button:focus-visible { outline: 3px solid var(--link); outline-offset: 1px; }
.ds .heat-legend { list-style: none; padding: 0; margin: 0 0 .8rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; color: var(--dim); }
.ds .heat-legend li { display: flex; align-items: center; gap: .4rem; }
.ds .heat-legend span { width: .95rem; cursor: default; }
.ds .heat-readout { min-height: 3.2em; font-size: .95rem; margin: 0 0 .6rem; }
.ds .survivor-window { font-size: .95rem; margin: .2rem 0 .4rem; }
.ds .heat-controls { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.ds .heat-controls .field { flex: 1 1 12rem; border: 0; }
.ds .lifespans { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: .5rem 0; }
.ds .lifespans th, .ds .lifespans td { border-bottom: 1px solid var(--line); padding: .5rem .3rem; text-align: center; }
.ds .lifespans th { font-size: .85rem; font-weight: 500; color: var(--dim); }
.ds .lifespans td.on { font-weight: 700; box-shadow: inset 0 0 0 2px var(--fill); border-radius: 4px; }
.ds .heat-figures { margin: .8rem 0; font-size: .9rem; }
.ds .heat-figures table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ds .heat-figures :is(th, td) { padding: .3rem .45rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
#everyCombo .warn ul { margin: .5rem 0; padding-left: 1.2rem; }
#everyCombo { transition: opacity .15s; }
#everyCombo.stale { opacity: .45; }

/* ── 减少动效:全部关掉 ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #everyCombo { transition: none; }
  .ds .meter-fill, .ds .bar-fill { transition: none; }
  .ds input[type="range"]::-webkit-slider-thumb { transition: none; }
  .ds .btn, .ds .yr, .ds .tiles a { transition: none; }
}
