/* ============================================================================
 * 岁时 · 中医时令健康管理
 * 视觉语言对标 xuanxin666.com（医衡）移动端：
 *   暖白底 / 近黑主按钮 / 暖灰卡片 / 金色选中态 / 红色玄心印记
 * 版权：玄心医社
 * ==========================================================================*/

:root {
  --bg:        #faf9f6;
  --surface:   #f4f2ee;
  --surface-2: #edeae4;
  --card:      #ffffff;
  --ink:       #16120e;
  --ink-2:     #46423b;
  --ink-3:     #8a857c;
  --ink-4:     #b5afa5;

  --red:       #c0272d;
  --red-soft:  rgba(192, 39, 45, .07);
  --gold:      #b8860b;
  --gold-dp:   #8a6410;
  --gold-lt:   #f7efdb;
  --jade:      #2f7d68;
  --jade-soft: rgba(47, 125, 104, .08);

  --line:      rgba(22, 18, 14, .07);
  --line-2:    rgba(22, 18, 14, .13);

  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
          "Microsoft YaHei", "Segoe UI", sans-serif;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", serif;
  --num: Georgia, "Times New Roman", serif;

  --r:    20px;
  --r-m:  16px;
  --r-s:  12px;
  --nav-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: #efece6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background: #efece6;
}

/* 移动端画布 */
.app {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(22,18,14,.04), 0 20px 60px rgba(22,18,14,.07);
}

/* ---------------- 顶栏 ---------------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center;
  height: 60px; padding: 0 18px;
  background: rgba(250,249,246,.92);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.brand .mark { width: 33px; height: 33px; display: block; }
.brand-txt { display: flex; flex-direction: column; justify-content: center; }
.brand-name {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700; line-height: 1.12;
  letter-spacing: .08em; color: var(--ink);
}
.brand-en { width: 96px; height: auto; display: block; margin-top: 3px; opacity: .92; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.hdr-tier {
  font-size: 11px; letter-spacing: .06em; color: var(--gold-dp);
  background: var(--gold-lt); border-radius: 20px; padding: 4px 10px;
  border: 1px solid rgba(184,134,11,.22);
}
.hdr-tier.free { color: var(--ink-3); background: var(--surface); border-color: var(--line); }
.menu-btn {
  width: 36px; height: 36px; border: 0; background: transparent;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.menu-btn i { display: block; width: 17px; height: 1.4px; background: var(--ink); position: relative; }
.menu-btn i::before, .menu-btn i::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.4px; background: var(--ink);
}
.menu-btn i::before { top: -5.5px; }
.menu-btn i::after { top: 5.5px; }

/* ---------------- 主区 ---------------- */
.view { padding: 0 18px calc(var(--nav-h) + 26px + env(safe-area-inset-bottom)); }
.screen { animation: fadeUp .38s cubic-bezier(.2,.7,.3,1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* ---------------- 首屏 hero（对标医衡） ---------------- */
.hero { text-align: center; padding: 34px 6px 28px; }
.kicker {
  font-size: 11px; letter-spacing: .42em; color: var(--ink-3);
  text-indent: .42em; margin-bottom: 16px;
}
.h1 {
  font-size: 31px; font-weight: 700; line-height: 1.3;
  letter-spacing: -.01em; margin: 0 0 12px; color: var(--ink);
}
.h1 em { font-style: normal; color: var(--red); }
.lead {
  font-size: 15px; line-height: 1.92; color: var(--ink-2);
  margin: 0 auto 24px; max-width: 340px;
}
.hero-serif {
  font-family: var(--serif); font-size: 15.5px; letter-spacing: .06em;
  color: var(--ink-2); margin: 0 0 14px;
}

/* 按钮 */
.btn-k, .btn-l {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 52px; border: 0; cursor: pointer;
  border-radius: 14px; font-family: var(--sans);
  font-size: 16px; font-weight: 700; letter-spacing: .06em;
  transition: transform .16s, opacity .16s;
}
.btn-k { background: #16120e; color: #fff; }
.btn-k:active { transform: scale(.988); opacity: .92; }
.btn-l { background: var(--surface-2); color: var(--ink); margin-top: 10px; }
.btn-l:active { transform: scale(.988); background: #e6e2db; }
.btn-k svg, .btn-l svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.btn-inline {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 18px; border-radius: 10px; border: 0; cursor: pointer;
  background: #16120e; color: #fff; font-size: 13.5px; font-weight: 600;
  font-family: var(--sans); letter-spacing: .04em;
}
.btn-inline.light { background: var(--surface-2); color: var(--ink); }
.btn-inline:disabled { opacity: .4; }
.btn-line {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 46px; border-radius: 12px; cursor: pointer;
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line-2); font-family: var(--sans);
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
}

/* 信任条 */
.trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px;
  margin: 22px auto 0; max-width: 330px;
}
.trust span {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em;
}
.trust svg { width: 13px; height: 13px; stroke: var(--ink-4); fill: none; stroke-width: 1.5; }

/* 深色条（对标医衡 App 提示条） */
.band {
  display: flex; align-items: center; gap: 11px;
  margin: 26px 0 0; padding: 12px 14px; border-radius: 14px;
  background: #16120e; color: #fff;
}
.band img { width: 30px; height: 30px; }
.band-b { flex: 1; min-width: 0; }
.band-b b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: .02em; }
.band-b span { display: block; font-size: 10.5px; color: rgba(255,255,255,.58); margin-top: 1px; }
.band button {
  border: 1px solid rgba(232,200,119,.5); background: transparent; color: #e8c877;
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px;
  font-family: var(--sans); cursor: pointer; white-space: nowrap;
}

/* ---------------- 章节标题（居中式） ---------------- */
.sect {
  text-align: center; margin: 40px 0 16px;
  font-size: 19px; font-weight: 700; letter-spacing: .04em; color: var(--ink);
}
.sect-left { display: flex; align-items: baseline; gap: 8px; margin: 30px 0 12px; }
.sect-left h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.sect-left small { font-size: 11px; color: var(--ink-4); letter-spacing: .16em; }
.sect-left .more { margin-left: auto; font-size: 12px; color: var(--ink-3); }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 12px;
}
.card.white { background: var(--card); border: 1px solid var(--line); }
.inner {
  background: var(--card);
  border-radius: var(--r-m);
  padding: 15px 16px;
  margin-top: 14px;
}
.inner:first-child { margin-top: 0; }

.feature { text-align: left; }
.feature .ic {
  width: 50px; height: 50px; border-radius: 13px; background: var(--card);
  display: grid; place-items: center; margin-bottom: 15px;
  border: 1px solid rgba(22,18,14,.05);
}
.feature .ic svg { width: 23px; height: 23px; stroke: var(--ink-2); fill: none; stroke-width: 1.4; }
.feature h3 { margin: 0 0 5px; font-size: 18px; font-weight: 700; letter-spacing: .01em; }
.feature .idx { font-size: 11px; color: var(--ink-4); letter-spacing: .22em; }
.feature .desc {
  background: var(--card); border-radius: var(--r-m);
  padding: 14px 15px; margin-top: 14px;
  font-size: 13.5px; line-height: 1.9; color: var(--ink-2); text-align: justify;
}

/* 入口行 */
.entry {
  display: block; padding: 22px 0 20px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; cursor: pointer;
}
.entry:last-child { border-bottom: 0; }
.entry .ic {
  width: 46px; height: 46px; border-radius: 12px; background: var(--surface);
  display: grid; place-items: center; margin-bottom: 13px;
}
.entry .ic svg { width: 21px; height: 21px; stroke: var(--ink-2); fill: none; stroke-width: 1.4; }
.entry h3 {
  margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: .01em;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.entry h3 i { font-style: normal; font-size: 11.5px; font-weight: 400; color: var(--ink-4); letter-spacing: .04em; }
.entry p { margin: 6px 0 0; font-size: 13px; line-height: 1.8; color: var(--ink-3); }
.entry .go {
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--ink);
}
.entry .go svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------------- 今日页 ---------------- */
.today-head { padding: 20px 2px 16px; }
.today-date { font-size: 12px; letter-spacing: .1em; color: var(--ink-3); display: flex; align-items: baseline; gap: 6px; }
.today-date b { font-family: var(--num); font-size: 15px; color: var(--ink); font-weight: 600; letter-spacing: 0; }
.today-step { font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 8px 0 4px; }
.today-step em { font-style: normal; font-size: .5em; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; margin-left: 4px; }
.today-qi { font-size: 13.5px; color: var(--ink-2); letter-spacing: .02em; }
.today-qi i { font-style: normal; color: var(--ink-4); margin: 0 6px; }

.stat3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border-radius: var(--r);
  padding: 15px 4px; margin-top: 16px;
}
.stat3 > div { text-align: center; position: relative; }
.stat3 > div + div::before {
  content: ""; position: absolute; left: 0; top: 14%; bottom: 14%;
  width: 1px; background: rgba(22,18,14,.09);
}
.stat3 b { display: block; font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.stat3 b.gold { color: var(--gold-dp); }
.stat3 b.red { color: var(--red); }
.stat3 span { display: block; font-size: 10.5px; color: var(--ink-4); letter-spacing: .1em; margin-top: 2px; }

.creed {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 17px 18px;
  font-size: 15px; line-height: 1.95; color: var(--ink-2);
  margin-top: 12px; text-align: justify;
}
.creed b {
  font-weight: 600; color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(184,134,11,.2) 62%);
}

/* 快捷入口 */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.quick a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 4px 12px; border-radius: var(--r-s);
  background: var(--surface); text-decoration: none; color: var(--ink-2);
  font-size: 11.5px; cursor: pointer;
}
.quick a .ic {
  width: 36px; height: 36px; border-radius: 10px; background: var(--card);
  display: grid; place-items: center;
}
.quick a svg { width: 18px; height: 18px; stroke: var(--ink-2); fill: none; stroke-width: 1.5; }

/* 打卡 */
.check3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chk {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-s); padding: 14px 6px 12px; text-align: center; cursor: pointer;
  transition: all .18s;
}
.chk svg { width: 20px; height: 20px; stroke: var(--ink-3); fill: none; stroke-width: 1.5; margin-bottom: 6px; }
.chk b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.chk span { display: block; font-size: 10px; color: var(--ink-4); margin-top: 2px; }
.chk.done { background: var(--jade-soft); border-color: rgba(47,125,104,.3); }
.chk.done svg { stroke: var(--jade); }
.chk.done b { color: var(--jade); }

/* ---------------- 列表 ---------------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li {
  position: relative; padding-left: 16px; margin-bottom: 10px;
  font-size: 14px; line-height: 1.8; color: var(--ink-2); text-align: justify;
}
.list li:last-child { margin-bottom: 0; }
.list li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4);
}
.list.warn li::before { background: var(--red); }
.list.gold li::before { background: var(--gold); }
.list li b { font-weight: 600; color: var(--ink); }
.list li .why { display: block; font-size: 12px; color: var(--ink-4); line-height: 1.75; margin-top: 2px; }

/* 小标签 */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 7px; font-size: 11.5px;
  background: var(--surface-2); color: var(--ink-2); letter-spacing: .02em;
}
.tag.gold { background: var(--gold-lt); color: var(--gold-dp); }
.tag.red  { background: var(--red-soft); color: var(--red); }
.tag.jade { background: var(--jade-soft); color: var(--jade); }
.tag.line { background: transparent; border: 1px solid var(--line-2); color: var(--ink-3); }

/* 折叠依据 */
.basis {
  margin-top: 12px; border-radius: var(--r-s);
  background: var(--card); border: 1px solid var(--line); overflow: hidden;
}
.basis-h {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px; cursor: pointer; user-select: none;
  font-size: 12px; color: var(--ink-3); letter-spacing: .04em;
}
.basis-h svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; transition: transform .22s; }
.basis.open .basis-h svg { transform: rotate(180deg); }
.basis-b { display: none; padding: 0 14px 14px; }
.basis.open .basis-b { display: block; }
.basis-b em { display: block; font-style: normal; font-family: var(--serif); font-size: 13.5px; line-height: 2; color: var(--ink-2); }
.basis-b cite { display: block; font-style: normal; font-size: 11px; color: var(--ink-4); text-align: right; margin-top: 5px; }
.basis-b p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.85; color: var(--ink-3); }

/* ---------------- 罗盘 / 图表 ---------------- */
.compass-wrap { display: flex; justify-content: center; padding: 0; }
.compass { width: 100%; max-width: 320px; height: auto; display: block; }
.legend { display: flex; justify-content: center; gap: 18px; margin-top: 4px; font-size: 11px; color: var(--ink-4); }
.legend i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.radar { width: 100%; max-width: 290px; height: auto; display: block; margin: 0 auto; }

.yun-bar { display: flex; gap: 5px; }
.yun-seg {
  flex: 1; text-align: center; padding: 9px 2px 8px;
  border-radius: 9px; background: var(--card); border: 1px solid var(--line);
  font-size: 10.5px; color: var(--ink-4);
}
.yun-seg b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 1px; }
.yun-seg.on { background: #16120e; border-color: #16120e; color: rgba(255,255,255,.6); }
.yun-seg.on b { color: #fff; }

.steps { display: flex; flex-direction: column; }
.step-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.step-row:last-child { border-bottom: 0; }
.step-no { flex: 0 0 46px; font-size: 11.5px; color: var(--ink-4); letter-spacing: .02em; }
.step-row.on .step-no { color: var(--red); font-weight: 600; }
.step-body { flex: 1; min-width: 0; }
.step-body b { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.step-body b i { font-style: normal; font-weight: 400; color: var(--ink-4); margin: 0 5px; font-size: 11.5px; }
.step-body span { display: block; font-size: 10.5px; color: var(--ink-4); margin-top: 2px; }

/* ---------------- 食材 chips ---------------- */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips .chip {
  padding: 6px 12px; border-radius: 20px; font-size: 13px;
  background: var(--card); color: var(--ink-2); border: 1px solid var(--line);
}
.chips.bad .chip { background: var(--red-soft); color: var(--red); border-color: rgba(192,39,45,.14); }
.chips.pick .chip { cursor: pointer; transition: all .16s; user-select: none; }
.chips.pick .chip.on { background: #16120e; color: #fff; border-color: #16120e; font-weight: 600; }
.chips.pick .chip.on::before { content: "✓"; font-size: 10px; margin-right: 4px; opacity: .75; }
.chips.pick.jade .chip.on { background: var(--jade); border-color: var(--jade); }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11.5px; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--card);
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  outline: none; transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none; appearance: none;
}
.field input:focus, .field select:focus { border-color: #16120e; box-shadow: 0 0 0 3px rgba(22,18,14,.06); }
.field-row { display: flex; gap: 10px; }
.field-row > * { flex: 1; }

.scale-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.scale-item:last-child { border-bottom: 0; }
.scale-q { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; line-height: 1.7; }
.scale-opts { display: flex; gap: 6px; }
.scale-opts button {
  flex: 1; height: 38px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--card);
  font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); transition: all .16s;
}
.scale-opts button.on { background: #16120e; border-color: #16120e; color: #fff; font-weight: 600; }

/* ---------------- 会员 ---------------- */
.tier { background: var(--surface); border-radius: var(--r); padding: 20px; margin-bottom: 12px; position: relative; overflow: hidden; }
.tier.hi { background: #16120e; color: #fff; }
.tier.hi .tier-name, .tier.hi .tier-price { color: #fff; }
.tier.hi .tier-desc { color: rgba(255,255,255,.6); }
.tier.hi li { color: rgba(255,255,255,.82); }
.tier.hi li.off { color: rgba(255,255,255,.34); }
.tier.hi .btn-line { border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.42); }
.tier.hi li::before { border-color: #e8c877; }
.tier.hi .tag { background: rgba(232,200,119,.16); color: #e8c877; }
.tier-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.tier-name { font-size: 19px; font-weight: 700; letter-spacing: .08em; }
.tier-price { font-family: var(--num); font-size: 26px; font-weight: 600; margin: 2px 0 4px; }
.tier-price small { font-family: var(--sans); font-size: 12px; color: var(--ink-3); margin-left: 3px; font-weight: 400; }
.tier.hi .tier-price small { color: rgba(255,255,255,.5); }
.tier-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.75; margin: 0 0 13px; }
.tier ul { list-style: none; margin: 0 0 15px; padding: 0; }
.tier li { font-size: 13px; line-height: 1.9; color: var(--ink-2); padding-left: 17px; position: relative; }
.tier li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 8px; height: 4px; border-left: 1.4px solid var(--ink-3);
  border-bottom: 1.4px solid var(--ink-3); transform: rotate(-45deg);
}
.tier li.off { color: var(--ink-4); }
.tier li.off::before {
  width: 7px; height: 0; top: 13px; border: 0;
  border-top: 1.4px solid var(--ink-4); transform: none; opacity: .6;
}
.tier.hi li.off::before { border-top-color: rgba(255,255,255,.35); }

/* 调理窗口 */
.window { background: var(--surface); border-radius: var(--r); padding: 20px; }
.window h3 { margin: 0 0 7px; font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.window > p { margin: 0 0 14px; font-size: 13px; line-height: 1.9; color: var(--ink-3); }
.wline {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border-radius: 11px; padding: 11px 13px; margin-bottom: 7px;
  font-size: 13px; color: var(--ink-2);
}
.wline b { font-weight: 600; }
.wline span { margin-left: auto; font-size: 11px; color: var(--ink-4); }

/* ---------------- 底栏 ---------------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; z-index: 50; width: 100%; max-width: 520px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; align-items: stretch;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; border: 0; background: none; cursor: pointer; padding: 0;
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .02em;
  color: var(--ink-4); transition: color .18s;
}
.tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: var(--gold); }
.tab.on svg { stroke-width: 1.9; }

/* ---------------- 提示 / 弹层 ---------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px);
  transform: translate(-50%, 10px); z-index: 90;
  max-width: 82vw; padding: 11px 18px; border-radius: 12px;
  background: rgba(22,18,14,.94); color: #faf9f6;
  font-size: 12.5px; line-height: 1.6; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .26s, transform .26s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.sheet-mask {
  position: fixed; inset: 0; z-index: 80; background: rgba(22,18,14,.38);
  opacity: 0; pointer-events: none; transition: opacity .26s;
}
.sheet-mask.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 50%; transform: translate(-50%, 100%);
  bottom: 0; z-index: 81; width: 100%; max-width: 520px;
  max-height: 86vh; overflow-y: auto;
  background: var(--bg); border-radius: 22px 22px 0 0;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
  transition: transform .32s cubic-bezier(.2,.8,.3,1);
}
.sheet.on { transform: translate(-50%, 0); }
.sheet-bar { width: 36px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 8px auto 18px; }

/* ---------------- 页脚 ---------------- */
.foot {
  margin-top: 40px; padding: 26px 0 10px;
  border-top: 1px solid var(--line); text-align: center;
  font-size: 11px; line-height: 2.1; color: var(--ink-4); letter-spacing: .02em;
}
.foot .fs { font-family: var(--serif); font-size: 12.5px; letter-spacing: .3em; color: var(--ink-3); margin-bottom: 6px; }

/* ---------------- 杂项 ---------------- */
.empty { text-align: center; padding: 34px 16px; color: var(--ink-4); font-size: 13px; }
.tiny { font-size: 11.5px; line-height: 1.85; color: var(--ink-4); }
.hr { height: 1px; background: var(--line); margin: 14px 0; border: 0; }
.seg { display: flex; gap: 3px; padding: 3px; background: var(--surface-2); border-radius: 12px; margin-bottom: 14px; }
.seg button {
  flex: 1; height: 36px; border: 0; background: transparent; cursor: pointer;
  border-radius: 9px; font-family: var(--sans); font-size: 13px; color: var(--ink-3);
  transition: all .18s;
}
.seg button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(22,18,14,.08); }

.setup { padding: 26px 0 10px; }
.setup .h1 { text-align: left; font-size: 26px; margin-bottom: 6px; }
.setup .sub { font-size: 13.5px; color: var(--ink-3); line-height: 1.9; margin: 0 0 22px; }

@media (max-width: 360px) {
  .today-step { font-size: 34px; }
  .h1 { font-size: 27px; }
  .quick a { font-size: 10.5px; }
  .brand-en { width: 84px; }
}

@media print {
  body { background: #fff; }
  body::before { display: none; }
  .app { max-width: none; box-shadow: none; background: #fff; }
  .hdr, .tabbar, .quick, .toast, .sheet, .sheet-mask, .seg, .btn-k, .btn-l, .btn-line, .band { display: none !important; }
  .view { padding: 0 !important; }
  .card, .hero, .creed, .tier, .window { break-inside: avoid; }
  .basis-b { display: block !important; }
}

/* ---------------- 十二时辰 ---------------- */
.shichen { display: flex; gap: 3px; }
.sc {
  flex: 1; min-width: 0; text-align: center; padding: 8px 0 7px;
  border-radius: 6px; background: var(--card); border: 1px solid var(--line);
  line-height: 1.3;
}
.sc b { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.sc.on { background: #16120e; border-color: #16120e; }
.sc.on b { color: #fff; font-weight: 700; }
.shichen-note {
  margin-top: 10px; font-size: 12px; color: var(--ink-3);
  display: flex; align-items: baseline; gap: 6px; letter-spacing: .02em;
}
.shichen-note b { font-size: 14px; color: var(--red); font-weight: 700; }
.shichen-note span { color: var(--gold-dp); }

/* 未建档时隐藏底栏 */
body.no-nav .tabbar { display: none; }
body.no-nav .view { padding-bottom: 24px; }

/* ============================================================================
 * 深度推演组件
 * ==========================================================================*/

/* 今日主线（深色） */
.mainline {
  background: #16120e; color: #fff; border-radius: var(--r);
  padding: 20px 20px 18px; margin-top: 4px; position: relative; overflow: hidden;
}
.mainline::after {
  content: ""; position: absolute; right: -46px; top: -46px;
  width: 150px; height: 150px; border-radius: 50%;
  border: 1px solid rgba(232,200,119,.16);
  box-shadow: inset 0 0 0 22px rgba(232,200,119,.045);
  pointer-events: none;
}
.ml-k { font-size: 10.5px; letter-spacing: .22em; color: rgba(255,255,255,.45); margin-bottom: 10px; }
.ml-t { font-size: 26px; font-weight: 700; letter-spacing: .04em; line-height: 1.2; }
.ml-t em { font-style: normal; font-size: .52em; color: #e8c877; margin-left: 4px; letter-spacing: .1em; }
.ml-d { margin: 10px 0 0; font-size: 13px; line-height: 1.95; color: rgba(255,255,255,.72); text-align: justify; }
.ml-f {
  margin-top: 14px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px; color: rgba(255,255,255,.5); letter-spacing: .04em;
}
.ml-f b { color: #e8c877; font-weight: 600; letter-spacing: .02em; }

/* 日课一验 */
.proof {
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: 4px var(--r) var(--r) 4px;
  padding: 16px 18px 14px; margin-top: 12px;
}
.proof-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.proof-tag {
  font-size: 10.5px; letter-spacing: .18em; color: var(--gold-dp);
  background: var(--gold-lt); border-radius: 5px; padding: 3px 8px;
}
.proof-time { font-size: 11.5px; color: var(--ink-4); letter-spacing: .04em; margin-left: auto; }
.proof-t { margin: 0 0 14px; font-size: 14px; line-height: 2; color: var(--ink-2); text-align: justify; }
.proof-t b { color: var(--ink); font-weight: 600; }
.proof-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.proof-btns button {
  height: 38px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--card);
  font-family: var(--sans); font-size: 12.5px; color: var(--ink-3);
  transition: all .16s;
}
.proof-btns button.on {
  background: #16120e; border-color: #16120e; color: #fff; font-weight: 600;
}
.proof-foot {
  margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--ink-4); line-height: 1.8;
}
.proof-foot b { color: var(--ink-2); font-weight: 600; }

/* 承压谱 */
.loadrow {
  display: flex; align-items: center; gap: 10px; padding: 7px 0;
}
.lo-n { flex: 0 0 22px; font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.loadrow.top .lo-n { color: var(--ink); font-weight: 700; }
.lo-bar { flex: 1; height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.lo-bar i { display: block; height: 100%; border-radius: 4px; background: rgba(184,134,11,.32); transition: width .6s cubic-bezier(.2,.7,.3,1); }
.loadrow.top .lo-bar i { background: linear-gradient(90deg, #b8860b, #8a6410); }
.lo-v { flex: 0 0 30px; text-align: right; font-family: var(--num); font-size: 12.5px; color: var(--ink-4); }
.loadrow.top .lo-v { color: var(--ink); font-weight: 700; }

/* 食养方 */
.fm-h { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.fm-n { font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.fm-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.fm-i {
  background: var(--card); border-radius: 10px; padding: 9px 4px; text-align: center;
  border: 1px solid var(--line);
}
.fm-i b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.fm-i span { display: block; font-size: 11px; color: var(--ink-4); font-family: var(--num); margin-top: 1px; }
.fm-row { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.fm-row > span { flex: 0 0 32px; font-size: 11px; color: var(--ink-4); letter-spacing: .1em; padding-top: 3px; }
.fm-row > p { flex: 1; margin: 0; font-size: 12.5px; line-height: 1.85; color: var(--ink-2); }
.fm-row.warn > p { color: var(--red); }

/* 时间轴预告条 */
.teaser {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: var(--r); padding: 16px 18px; margin-top: 12px;
  cursor: pointer;
}
.ts-t { font-size: 14.5px; font-weight: 700; letter-spacing: .02em; }
.ts-go { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; color: var(--gold-dp); white-space: nowrap; }
.ts-go svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }

/* 气运曲线 */
.curve-wrap { padding: 4px 0 0; }
.curve { width: 100%; height: auto; display: block; }
.fc-card {
  background: var(--surface); border-radius: var(--r); padding: 16px 18px; margin-bottom: 10px;
}
.fc-card.kancard { background: #16120e; color: #fff; }
.fc-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.fc-h b { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.fc-h span { font-size: 11px; color: var(--ink-4); }
.fc-card.kancard .fc-h span { color: rgba(255,255,255,.45); }
.fc-meta { font-size: 11.5px; color: var(--ink-4); margin-bottom: 9px; }
.fc-card.kancard .fc-meta { color: rgba(255,255,255,.45); }
.fc-d { font-size: 12.5px; line-height: 1.85; color: var(--ink-3); text-align: justify; }
.fc-card.kancard .fc-d { color: rgba(255,255,255,.72); }
.fc-bar { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; margin-top: 11px; }
.fc-card.kancard .fc-bar { background: rgba(255,255,255,.12); }
.fc-bar i { display: block; height: 100%; border-radius: 2px; background: var(--gold); }

/* 校准 */
.calib-q {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.calib-q:last-child { border-bottom: 0; }
.calib-q p { flex: 1; margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.calib-q em { display: block; font-style: normal; font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.calib-sw {
  flex: 0 0 auto; width: 66px; height: 32px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--card);
  font-family: var(--sans); font-size: 12px; color: var(--ink-3);
  transition: all .18s;
}
.calib-sw.on { background: #16120e; border-color: #16120e; color: #fff; font-weight: 600; }
.delta-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 3px 8px; border-radius: 6px;
  background: var(--gold-lt); color: var(--gold-dp); font-family: var(--num);
}
.delta-chip.minus { background: var(--jade-soft); color: var(--jade); }

/* 主线：较昨日 */
.ml-delta {
  display: inline-block; margin-left: 10px; vertical-align: 2px;
  font-size: 10.5px; letter-spacing: .02em; color: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.16); border-radius: 6px; padding: 2px 7px;
  font-weight: 400;
}
.ml-delta.up { color: #e88b7f; border-color: rgba(232,139,127,.32); }
.ml-delta.down { color: #7fc0a8; border-color: rgba(127,192,168,.3); }

/* 校准浮层 */
.calib-live {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + 14px); z-index: 45;
  width: calc(100% - 36px); max-width: 484px;
  pointer-events: none;
}
.calib-live:empty { display: none; }
.cl-in {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: rgba(22,18,14,.94); border-radius: 12px; padding: 9px 13px;
  box-shadow: 0 8px 24px rgba(22,18,14,.18);
  animation: fadeUp .24s cubic-bezier(.2,.7,.3,1);
}
.cl-t { font-size: 11.5px; color: rgba(255,255,255,.55); letter-spacing: .06em; margin-right: 2px; }
.calib-live .delta-chip { background: rgba(232,200,119,.16); color: #e8c877; }
.calib-live .delta-chip.minus { background: rgba(127,192,168,.15); color: #7fc0a8; }

.cq-d { margin-left: 8px; vertical-align: 1px; }
.cq-d:empty { display: none; }
.calib-q em { display: flex; align-items: center; flex-wrap: wrap; }
