/* ===== 攻略设计令牌与排版（提取自原攻略 HTML） ===== */
/* ============ 设计令牌 ============ */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #f0efe9;
  --text: #232825;
  --text-2: #565d58;
  --text-3: #8a9089;
  --line: #e3e1d9;
  --primary: #1d5c43;
  --primary-soft: #e3efe8;
  --primary-text: #14503a;
  --accent: #b04a5d;
  --accent-soft: #f7e8ea;
  --danger: #a83226;
  --danger-soft: #faecea;
  --danger-line: #ecc7c1;
  --warn: #8a6410;
  --warn-soft: #fbf3df;
  --warn-line: #ecd9a8;
  --shadow: 0 1px 2px rgba(35,40,37,.05), 0 8px 24px rgba(35,40,37,.06);
  --radius: 14px;
  --radius-sm: 9px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141716;
    --surface: #1c201e;
    --surface-2: #242927;
    --text: #e8eae6;
    --text-2: #a9b0aa;
    --text-3: #767d77;
    --line: #333836;
    --primary: #7fb89d;
    --primary-soft: #22362d;
    --primary-text: #93c9ae;
    --accent: #d98a98;
    --accent-soft: #3a262b;
    --danger: #e08b7e;
    --danger-soft: #39211e;
    --danger-line: #5a3530;
    --warn: #d9b264;
    --warn-soft: #342c19;
    --warn-line: #54461f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}

/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--primary); color: #fff; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 650; }

/* ============ 阅读进度条（纯 CSS 滚动驱动，不支持则隐藏） ============ */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary); transform-origin: 0 50%; scale: 0 1;
  z-index: 60;
}
@supports (animation-timeline: scroll(root)) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: progressFill linear both; animation-timeline: scroll(root); }
    @keyframes progressFill { from { scale: 0 1; } to { scale: 1 1; } }
  }
}

/* ============ 页面骨架 ============ */
.layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.sidebar {
  position: sticky; top: 0; height: 100dvh;
  overflow-y: auto; padding: 32px 0 48px;
  scrollbar-width: thin;
}
.main { min-width: 0; padding: 40px 0 96px; }
.content { max-width: 760px; }

/* 侧边导航 */
.brand {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 700;
  color: var(--text); display: block; margin-bottom: 4px;
}
.brand-sub { font-size: 12px; color: var(--text-3); margin-bottom: 28px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 10px; border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--text-2);
  border-left: 2px solid transparent;
  transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a .no {
  font-size: 11px; font-weight: 650; color: var(--text-3);
  font-variant-numeric: tabular-nums; min-width: 18px;
}
.nav a.active {
  background: var(--primary-soft); color: var(--primary-text);
  border-left-color: var(--primary); font-weight: 600;
}
.nav a.active .no { color: var(--primary-text); }
.nav-foot { margin-top: 28px; padding: 14px 10px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); line-height: 1.7; }

/* 移动端顶栏 */
.topbar {
  display: none;
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
}
.topbar-inner { display: flex; align-items: center; gap: 14px; height: 56px; max-width: 1180px; margin: 0 auto; }
.topbar .brand { margin: 0; font-size: 15px; white-space: nowrap; }
.topbar nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a {
  white-space: nowrap; font-size: 13px; color: var(--text-2);
  padding: 6px 10px; border-radius: 999px;
}
.topbar nav a.active { background: var(--primary-soft); color: var(--primary-text); font-weight: 600; }

/* ============ Hero ============ */
.hero { padding: 56px 0 40px; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; color: var(--primary-text);
  background: var(--primary-soft); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.4vw, 54px);
  letter-spacing: -.01em; line-height: 1.18;
  max-width: 14em;
}
.hero .sub { margin-top: 18px; font-size: 17px; color: var(--text-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { text-decoration: none; filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { text-decoration: none; border-color: var(--text-3); }

/* 当前位置提示 */
.you-are-here {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 14px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px;
}
.you-are-here .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .you-are-here .pulse { animation: pulse 2s ease-out infinite; }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
    70% { box-shadow: 0 0 0 9px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
  }
}

/* ============ 旅程总览时间线 ============ */
.journey { margin: 34px 0 8px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.journey-title { font-size: 13px; font-weight: 600; color: var(--text-3); margin-bottom: 22px; }
.journey-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.journey-track::before {
  content: ""; position: absolute; top: 7px; left: 3%; right: 3%;
  height: 2px; background: var(--line);
}
.jstage { position: relative; padding-top: 24px; text-align: center; }
.jstage::before {
  content: ""; position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--primary);
}
.jstage.now::before { background: var(--accent); border-color: var(--accent); }
.jstage .jname { font-size: 13.5px; font-weight: 650; }
.jstage .jtime { font-size: 11.5px; color: var(--text-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.jstage.now .jname { color: var(--accent); }
.jstage .jtag {
  display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  padding: 2px 8px; border-radius: 999px;
}

/* ============ 章节 ============ */
.chapter { padding-top: 72px; scroll-margin-top: 24px; }
.ch-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 10px; }
.ch-no {
  font-family: var(--font-serif); font-size: 44px; font-weight: 700;
  color: var(--primary); opacity: .38; line-height: 1;
  font-variant-numeric: tabular-nums; flex: none; margin-top: 4px;
}
.ch-title { font-family: var(--font-serif); font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.01em; }
.ch-time {
  display: inline-block; margin-top: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--primary-text);
  background: var(--primary-soft); padding: 3px 12px; border-radius: 999px;
}
.ch-intro { color: var(--text-2); font-size: 15.5px; max-width: 36em; margin-bottom: 30px; }
.ch-intro strong { color: var(--text); }

/* ============ 小节与通用块 ============ */
.sec { margin-top: 38px; }
.sec > h3 {
  font-size: 19px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.sec > h3::before {
  content: ""; width: 14px; height: 3px; border-radius: 2px;
  background: var(--primary); flex: none;
}
.sec h4 { font-size: 16px; margin: 20px 0 8px; }
p + p { margin-top: 10px; }
.sec p, .sec li { color: var(--text-2); font-size: 15px; }
.sec p strong, .sec li strong { color: var(--text); }
ul.tick, ul.disc { list-style: none; margin: 8px 0; }
ul.tick li, ul.disc li { position: relative; padding-left: 22px; margin-bottom: 7px; }
ul.disc li::before {
  content: ""; position: absolute; left: 4px; top: .78em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--primary);
}
ul.tick li::before {
  content: ""; position: absolute; left: 2px; top: .52em;
  width: 8px; height: 4px;
  border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(-48deg);
}

/* 卡片 */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow); margin: 14px 0;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* 警示框 */
.alert {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: var(--radius); padding: 18px 20px; margin: 16px 0;
  border: 1px solid;
}
.alert svg { flex: none; width: 20px; height: 20px; margin-top: 3px; }
.alert .alert-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.alert ul { list-style: none; }
.alert li { position: relative; padding-left: 18px; margin-bottom: 6px; font-size: 14.5px; }
.alert li::before {
  content: ""; position: absolute; left: 2px; top: .72em;
  width: 5px; height: 5px; border-radius: 50%; background: currentColor;
}
.alert-danger { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.alert-danger .alert-title { color: var(--danger); }
.alert-danger li { color: color-mix(in srgb, var(--danger) 88%, var(--text)); }
.alert-warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.alert-warn .alert-title { color: var(--warn); }
.alert-warn li { color: color-mix(in srgb, var(--warn) 82%, var(--text)); }
.alert-info { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); color: var(--primary-text); }
.alert-info .alert-title { color: var(--primary-text); }
.alert-info li { color: color-mix(in srgb, var(--primary-text) 85%, var(--text)); }

/* 数字统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.stat .num {
  font-size: 26px; font-weight: 750; color: var(--primary-text);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.15;
}
.stat .num small { font-size: 13px; font-weight: 600; margin-left: 2px; }
.stat.hot .num { color: var(--accent); }
.stat .lbl { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }

/* 表格 */
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th {
  text-align: left; font-weight: 650; color: var(--text);
  background: var(--surface-2); padding: 11px 14px;
  font-size: 13px; white-space: nowrap;
}
td { padding: 11px 14px; border-top: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
td strong { color: var(--text); }
tr td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
td .hl { color: var(--accent); font-weight: 650; }

/* 步骤流程 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
}
.step .step-name { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--text-2); }
.step.hot { border-color: var(--accent); background: var(--accent-soft); }
.step.hot .step-name { color: var(--accent); }
.step.hot p { color: color-mix(in srgb, var(--accent) 80%, var(--text)); }

/* 清单（可勾选，localStorage 记忆） */
.checklist { margin: 12px 0; }
.checklist label {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 14px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background .15s ease;
  font-size: 14.5px; color: var(--text-2);
}
.checklist label:hover { background: var(--surface-2); }
.checklist input { position: absolute; opacity: 0; pointer-events: none; }
.checklist .box {
  flex: none; width: 19px; height: 19px; margin-top: 3px;
  border: 1.5px solid var(--text-3); border-radius: 6px;
  display: grid; place-items: center;
  transition: background .15s ease, border-color .15s ease;
}
.checklist .box svg { width: 11px; height: 11px; opacity: 0; transform: scale(.5); transition: .15s ease; }
.checklist input:checked ~ .box { background: var(--primary); border-color: var(--primary); }
.checklist input:checked ~ .box svg { opacity: 1; transform: scale(1); }
.checklist input:checked ~ .txt { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--text-3); }
.checklist input:focus-visible ~ .box { outline: 2px solid var(--primary); outline-offset: 2px; }

/* 区间条形图（体重增长 / 里程碑） */
.rangechart { margin: 16px 0; }
.rrow { display: grid; grid-template-columns: 132px 1fr 86px; gap: 12px; align-items: center; margin-bottom: 12px; }
.rrow .rlabel { font-size: 13.5px; font-weight: 600; color: var(--text); text-align: right; }
.rrow .rtrack { position: relative; height: 26px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.rrow .rfill {
  position: absolute; top: 4px; bottom: 4px; border-radius: 999px;
  background: var(--primary); opacity: .85;
}
.rrow .rfill.soft { background: var(--primary); opacity: .3; }
.rrow .rval { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rscale { position: relative; height: 16px; margin-left: 144px; margin-right: 98px; margin-top: -4px; }
.rscale span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rdot { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2.5px solid var(--surface); box-shadow: 0 0 0 1.5px var(--accent); }

/* 产检时间线 */
.ptl { position: relative; margin: 18px 0 18px 8px; padding-left: 28px; }
.ptl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.ptl-item { position: relative; padding-bottom: 22px; }
.ptl-item:last-child { padding-bottom: 0; }
.ptl-item::before {
  content: ""; position: absolute; left: -27px; top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2.5px solid var(--primary);
}
.ptl-item.key::before { background: var(--accent); border-color: var(--accent); }
.ptl-week { font-size: 12.5px; font-weight: 700; color: var(--primary-text); font-variant-numeric: tabular-nums; }
.ptl-item.key .ptl-week { color: var(--accent); }
.ptl-body { font-size: 14.5px; color: var(--text-2); margin-top: 2px; }
.ptl-body strong { color: var(--text); }

/* 通用提示条 */
.tip {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--text-2);
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 12px 16px; margin: 12px 0;
}
.tip strong { color: var(--text); }

/* 页脚 */
footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 32px 0 8px; font-size: 13px; color: var(--text-3); }
footer p { margin-bottom: 8px; }

/* 回到顶部 */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); color: var(--text-2);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { color: var(--primary-text); border-color: var(--primary); }

/* 滚动显现 */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.16,1,.3,1); }
  .rv.in { opacity: 1; transform: none; }
}

/* ============ 响应式 ============ */
@media (max-width: 1023px) {
  .layout { display: block; padding: 0 18px; }
  .sidebar { display: none; }
  .topbar { display: block; }
  .main { padding-top: 24px; }
  .hero { padding-top: 28px; }
  .journey { padding: 20px 16px; overflow-x: auto; }
  .journey-track { min-width: 560px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
  .rrow { grid-template-columns: 96px 1fr 78px; }
  .rscale { margin-left: 108px; margin-right: 90px; }
  .chapter { padding-top: 52px; }
}

/* ============ 打印 ============ */
@media print {
  .progress, .topbar, .sidebar, .to-top, .hero-cta { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .layout { display: block; }
  .card, .alert, .step, .stat, .table-wrap, .journey { box-shadow: none; break-inside: avoid; }
  .chapter { padding-top: 28px; }
}

/* ============================================================
   应用自身样式（沿用上方设计令牌，手机端优先）
   ============================================================ */
body.app { display: flex; flex-direction: column; min-height: 100dvh; }
.app-main { flex: 1; width: 100%; }

/* 顶栏 */
.appbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
}
.appbar-inner { display: flex; align-items: center; gap: 12px; height: 54px; max-width: 960px; margin: 0 auto; }
.app-brand { font-family: var(--font-serif); font-weight: 700; font-size: 16px; color: var(--text); white-space: nowrap; }
.app-brand:hover { text-decoration: none; }
.app-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; -webkit-overflow-scrolling: touch; }
.app-nav::-webkit-scrollbar { display: none; }
.app-nav a {
  white-space: nowrap; font-size: 13.5px; color: var(--text-2);
  padding: 6px 11px; border-radius: 999px;
}
.app-nav a:hover { text-decoration: none; background: var(--surface-2); }
.app-nav a.active { background: var(--primary-soft); color: var(--primary-text); font-weight: 600; }
.logout-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.app-user { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }

.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--primary-text); font-size: 13px; font-family: inherit;
}
.link-btn:hover { text-decoration: underline; }

/* 页面容器 */
.page { max-width: 760px; margin: 0 auto; padding: 20px 16px 64px; }
.page-narrow { max-width: 480px; margin: 0 auto; padding: 28px 16px 64px; }
.page-head h1 { font-family: var(--font-serif); font-size: 26px; margin-bottom: 6px; }
.page-sub { color: var(--text-2); font-size: 14px; margin-bottom: 18px; }
.sec-block { margin-top: 26px; }
.sec-title { font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--primary); }
.app-foot { border-top: 1px solid var(--line); padding: 18px 16px; text-align: center; font-size: 12px; color: var(--text-3); }

/* 登录 / 注册 */
.auth-page { min-height: 82dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand h1 { font-family: var(--font-serif); font-size: 30px; margin-top: 14px; }
.auth-sub { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.auth-alt { text-align: center; font-size: 14px; color: var(--text-2); margin-top: 16px; }

/* 表单 */
.form { display: flex; flex-direction: column; gap: 14px; }
.card-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.field input, .field select {
  font: inherit; font-weight: 400; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; font-size: 15px; width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text); }
.field-check input { width: 18px; height: 18px; accent-color: var(--primary); }
.btn-block { width: 100%; justify-content: center; border: none; cursor: pointer; font-family: inherit; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border: none; cursor: pointer; font-family: inherit; }
.form-inline-app { display: flex; gap: 8px; align-items: center; }
.form-inline-app input {
  font: inherit; flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 14.5px; background: var(--surface); color: var(--text);
}
.inline-form { margin-top: 8px; }

/* 首页状态卡 */
.hero-card { padding: 24px; }
.hero-label { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; color: var(--primary-text); margin-bottom: 8px; }
.hero-big { font-family: var(--font-serif); font-size: clamp(28px, 7vw, 40px); font-weight: 700; line-height: 1.2; }
.hero-sub { color: var(--text-2); font-size: 14px; margin-top: 8px; }
.hero-progress { margin-top: 16px; }
.hero-progress-text { font-size: 12.5px; color: var(--text-3); }
.progress-track { height: 8px; background: var(--surface-2); border-radius: 999px; margin-top: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s ease; }

/* 任务卡 */
.task-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.task-card.state-overdue { border-color: var(--warn-line); background: var(--warn-soft); }
.task-card.state-overdue.status-todo.hard, .overdue-hard .task-card { border-color: var(--danger-line); background: var(--danger-soft); }
.task-card.status-done { opacity: .82; }
.task-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badge { font-size: 11.5px; font-weight: 650; padding: 3px 10px; border-radius: 999px; }
.badge-cat { background: var(--surface-2); color: var(--text-2); }
.badge-hard { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger-line); }
.badge-done { background: var(--primary-soft); color: var(--primary-text); }
.badge-skip { background: var(--surface-2); color: var(--text-3); }
.badge-active { background: var(--accent-soft); color: var(--accent); }
.badge-overdue { background: var(--danger); color: #fff; }
.badge-future { background: var(--surface-2); color: var(--text-3); }
.task-title { font-size: 16px; margin-bottom: 4px; }
.status-done .task-title { text-decoration: line-through; text-decoration-color: var(--text-3); color: var(--text-2); }
.task-window { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.task-desc { font-size: 13.5px; color: var(--text-2); margin-top: 8px; }
.task-guide { display: inline-block; font-size: 13px; margin-top: 8px; }
.task-complete { margin-top: 12px; }
.task-complete > summary { list-style: none; display: inline-flex; }
.task-complete > summary::-webkit-details-marker { display: none; }
.task-form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.task-done-info { margin-top: 10px; }
.task-done-date { font-size: 12.5px; color: var(--primary-text); font-weight: 600; }
.task-note { font-size: 13.5px; color: var(--text-2); margin-top: 6px; }

/* 结果展示 */
.result-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.result-item {
  font-size: 13px; background: var(--primary-soft); border-radius: var(--radius-sm);
  padding: 5px 11px; display: inline-flex; gap: 6px; align-items: baseline;
}
.result-item em { font-style: normal; color: var(--text-2); }
.result-item strong { color: var(--primary-text); }

/* 筛选条 */
.filter-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.filter-bar select {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px;
}

/* 卡片补充 */
.card-title { font-size: 15px; margin-bottom: 10px; }
.card-hint { font-size: 12.5px; color: var(--text-3); margin-top: 8px; }
.empty-card { color: var(--text-2); font-size: 14.5px; }
.grid-2-app { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-grid-app { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 12px 0; }
.edit-block { margin-top: 12px; }
.edit-block > summary { list-style: none; display: inline-block; cursor: pointer; }
.edit-block > summary::-webkit-details-marker { display: none; }
.edit-block .card-form { margin-top: 12px; }
.birth-card { border-color: var(--accent); background: var(--accent-soft); }

/* 日志列表 */
.log-list { list-style: none; }
.log-list li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.log-list li:first-child { border-top: none; }
.log-time { color: var(--text-3); font-size: 12.5px; margin-right: 10px; font-variant-numeric: tabular-nums; }
.log-delta { color: var(--text-3); font-size: 12.5px; }

/* 指南页 */
.guide-page { max-width: 820px; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px; margin-bottom: 8px; }
.guide-toc-title { font-size: 13px; font-weight: 650; color: var(--text-3); width: 100%; margin-bottom: 2px; }
.guide-toc a { font-size: 12.5px; color: var(--text-2); background: var(--surface-2); padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.guide-toc a:hover { text-decoration: none; background: var(--primary-soft); color: var(--primary-text); }
.guide-content .hero { padding-top: 28px; }
.guide-content .chapter { scroll-margin-top: 64px; }

/* 时间线结果 */
.ptl-body .result-list { margin-top: 6px; }

@media (max-width: 640px) {
  .grid-2-app, .field-row { grid-template-columns: 1fr; }
  .stat-grid-app { grid-template-columns: 1fr 1fr; }
  .app-user { display: none; }
}
@media (min-width: 900px) {
  .stat-grid-app { grid-template-columns: repeat(4, 1fr); }
}

/* 任务页渐进展示：阶段折叠分组 */
.phase-group {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden;
}
.phase-group > summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px;
  padding: 14px 18px; user-select: none;
}
.phase-group > summary::-webkit-details-marker { display: none; }
.phase-group > summary::after {
  content: ""; margin-left: auto; flex: none;
  width: 8px; height: 8px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg); transition: transform .15s ease;
}
.phase-group[open] > summary::after { transform: rotate(-135deg); }
.phase-name { font-weight: 650; font-size: 15px; color: var(--text); }
.phase-count { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.phase-body { padding: 4px 14px 14px; border-top: 1px dashed var(--line); }
.phase-body .task-card { margin-top: 10px; margin-bottom: 0; }
.done-group > summary .phase-name { color: var(--text-2); }

/* 孕周来源角标 */
.ga-source { margin-left: 8px; vertical-align: 2px; }
.ga-card { margin-top: 12px; }
