/* ============================================================
   其一 · 八字页 v3 —— 绢青陈墨
   ------------------------------------------------------------------
   方向：宋版书气质落到纸面。中间调绢灰青底（不亮不暗）、
   陈墨文字、铜金出处、朱砂印章点缀；克制、留白、硬朗细线。
   架构：
   1) 令牌桥接：在 :root 与 [data-theme="light"] 双作用域覆盖
      cinema-dark 的全站令牌，本页与主题参数解耦；
   2) 组件层：仅覆盖八字页自有组件，其余复用全局语言；
   3) 仅在必须压过 html:not([data-theme="light"]) 守卫时使用同款守卫前缀。
   ============================================================ */

/* ---------- 〇 · 令牌桥接（两个主题作用域都指向本页绢青色） ---------- */
:root,
[data-theme="light"] {
  --bg: #f1eee4;               /* 暖米纸底（提亮版绢灰） */
  --surface: #faf8ef;          /* 卡面 */
  --surface-soft: #f3f0e5;     /* 井 / 软块 */
  --ink: #333a34;              /* 陈墨 */
  --muted: #6b7268;
  --text-tertiary: rgba(107, 114, 104, 0.78);
  --text-disabled: rgba(107, 114, 104, 0.5);
  --line: #cbcabd;
  --line-strong: #a4a795;
  --hairline: rgba(51, 58, 52, 0.09);
  --gold: #a8842f;
  --gold-ink: #7a6120;
  --gold-soft: rgba(168, 132, 47, 0.1);
  --gold-line: rgba(168, 132, 47, 0.38);
  --cinnabar: #a93a2e;
  --cinnabar-soft: rgba(169, 58, 46, 0.07);
  --shadow: rgba(51, 58, 52, 0.07);
  --shadow-color-md: rgba(51, 58, 52, 0.1);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  /* cinema-dark 悬空变量桥的本页取值 */
  --color-border-secondary: #d3d0c1;
  --color-accent: var(--gold-ink);
  --color-accent-strong: #6b5419;
  --color-warning: var(--gold-ink);
  /* 语义色桥（cinema-dark 守卫规则引用的暗色语义值回到纸面取值） */
  --ok-bg: #e7efe8;
  --ok-ink: #2e6b4f;
  --warn-bg: #f4eeda;
  --warn-line: #e0cfa0;
  --warn-chip-bg: #f4eeda;
  --warn-chip-ink: #7a5b1d;
  --danger-line: #dca79f;
  --danger-ink: #9c3b3b;
  --gold-glow: #8a6c28;
  /* 强调色桥：页面强调系统统一为铜金（朱砂只留给印章与行动） */
  --accent: var(--gold-ink);
  --accent-strong: #6b5419;
  --accent-soft: rgba(168, 132, 47, 0.09);
  --accent-medium: rgba(168, 132, 47, 0.2);
  /* 八字页专用 */
  --bzk-seal: #a93a2e;         /* 朱砂印 */
  --bzk-seal-deep: #8f2f25;
  --bzk-seal-paper: #f7f1e2;   /* 印面文字 */
  --bzk-celadon: #47716d;      /* 青瓷（调候） */
  --bzk-verdict: #2c332e;      /* 判词墨色 */
  --bzk-pill: #47716d;         /* 导航胶囊：青瓷（取自山水画山色，替代纯黑） */
  --bzk-body: #47504a;         /* 正文墨 */
  /* 五行大字色校准：向山水画色板靠拢（覆写 divination-finish.css 的全局取值，仅本页生效） */
  --wx-mu: #3f6b5f;            /* 木 · 松青 */
  --wx-huo: #a14e32;           /* 火 · 赭红 */
  --wx-tu: #8f7026;            /* 土 · 古金 */
  --wx-jin: #6e6b62;           /* 金 · 暖银灰（传统金主银白，与雾山蓝水分冷暖） */
  --wx-shui: #4f7186;          /* 水 · 雾山蓝 */
}
:root { color-scheme: light; }

/* 页头：纸色实底 + 墨字（本页与主题参数解耦） */
header.site-header, .site-header,
html:not([data-theme="light"]) .site-header,
:root:not([data-theme="light"]) .site-header,
html[data-theme="light"] .site-header {
  background: rgba(247, 245, 237, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line) !important;
  color: var(--ink);
  box-shadow: none !important;
}
.site-header .brand, .site-header .brand h1 { color: var(--bzk-verdict); }
.site-header .brand p { color: var(--muted); }
.site-header .tab { color: #565e57; }
.site-header .tab:hover { color: var(--bzk-verdict); background: rgba(51, 58, 52, 0.07); }
.site-header .tab.is-active,
html:not([data-theme="light"]) .site-header .tab.is-active {
  background: var(--bzk-pill) !important;
  border-color: transparent !important;
  color: #f2f0e6 !important;
  box-shadow: none !important;
}
.theme-toggle {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--muted);
}
.theme-toggle:hover { background: rgba(51, 58, 52, 0.07); color: var(--bzk-verdict); }
/* 登录/签到等头部用户按钮：原 .auth-button 白字白底为暗色 header 设计，
   压在本页纸底上几乎不可见；改墨字描边胶囊，浅底上清晰可辨 */
.site-header .auth-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.45);
  color: var(--bzk-body);
}
.site-header .auth-button:hover {
  border-color: var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold-ink);
}
/* 全站绿色 CTA 在本页收编为朱砂印色（配色一致性锁定） */
.site-header .header-cta,
html:not([data-theme="light"]) .site-header .header-cta {
  /* 温润批三：与全站导航 CTA 同一朱砂渐变（enhance.css 基准），此处仅保留同值兜底 */
  background: linear-gradient(180deg, #b8433a, #93312a) !important;
  color: #f7f1e2 !important;
  border: 1px solid rgba(169, 58, 46, 0.9) !important;
  box-shadow: 0 3px 10px rgba(169, 58, 46, 0.28) !important;
}
.site-header .header-cta:hover {
  background: linear-gradient(180deg, #c24d43, #a23830) !important;
  color: #f7f1e2 !important;
}

/* ---------- 〇 · 画布：青绿山水底图 + 绢纸颗粒 ---------- */
html { background-color: var(--bg); }
html body { background-color: var(--bg); color: var(--ink); }
body::before, body::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
}
/* 山水底图（backgrounds/bazi-bg.jpg）：bg-themed::before 铺满视口（fixed，不随滚动），
   上叠极淡绢纸颗粒；::after 米纸纵纱保证正文可读，下端渐归纸色与 footer 衔接 */
body.bg-themed::before {
  content: "" !important;
  display: block !important;
  position: fixed; inset: 0;
  z-index: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    url("/backgrounds/bazi-bg.jpg?v=defc945d") !important;
  background-repeat: repeat, no-repeat !important;
  background-position: center, center top !important;
  background-size: 180px 180px, cover !important;
  pointer-events: none;
}
body.bg-themed::after {
  content: "" !important;
  display: block !important;
  position: fixed; inset: 0;
  z-index: 0;
  background: linear-gradient(180deg,
    rgba(241, 238, 228, 0.44) 0%,
    rgba(241, 238, 228, 0.26) 45%,
    rgba(241, 238, 228, 0.58) 100%) !important;
  pointer-events: none;
}
main { position: relative; z-index: 1; }

/* 页面骨架：main 撑满剩余视高，footer 恒在页面底部（内容短时不悬在中间） */
body.bg-themed { display: flex; flex-direction: column; }
body.bg-themed > main { flex: 1 0 auto; }
body.bg-themed > footer { margin-top: auto; }

/* 页脚：无独立底色，让页面山水背景自然延伸到底（避免与上方纸面生硬切换） */
footer,
html:not([data-theme="light"]) footer {
  background: transparent !important;
  border-top: 1px solid var(--line) !important;
  color: #5c6a68 !important;
}
html:not([data-theme="light"]) footer,
html:not([data-theme="light"]) footer * {
  color: #5c6a68 !important;
}
html:not([data-theme="light"]) footer strong,
html:not([data-theme="light"]) .footer-brand strong {
  color: var(--gold-ink) !important;
}

/* ---------- 一 · 眉题 ---------- */
.bz-tool-head { padding: 3.2rem 1.2rem 0.6rem !important; text-align: center; }
.bz-tool-head h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.45em; text-indent: 0.45em;
  color: var(--bzk-verdict);
  margin: 0;
}
.bz-tool-head h1::before, .bz-tool-head h1::after { display: none !important; }
.bz-tool-head::after {
  content: '';
  display: block;
  width: min(430px, 72%);
  height: 1px;
  margin: 1.4rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-line) 30%, var(--gold-line) 70%, transparent);
}
.bz-tool-head p {
  max-width: 560px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.9;
  letter-spacing: 0.03em;
}
.bz-tool-head p strong { color: var(--gold-ink); font-weight: 600; }

/* ---------- 二 · 表单：碑帖式下划线 + 朱砂印钮 ---------- */
.bz-form-wrap,
.bz-tool-head + .bz-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.2rem 1rem 1.6rem;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
/* 桌面加宽：五个字段一行放下，排盘按钮不再折行孤置 */
@media (min-width: 861px) {
  .bz-form-wrap, .bz-tool-head + .bz-form-wrap { max-width: 920px; }
}
.bz-form {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 0.55fr 1.8fr auto;
  gap: 1rem 1.3rem;
  align-items: end;
}
.bz-form label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  font-weight: 400;
  white-space: nowrap;
  min-width: 0;
}
.bz-form label > span { display: inline; }
/* 地区三级联动行：压过 label>span 的 inline，保持横向三选 */
.bz-form label > span.bz-region-row { display: flex; }
.bz-form .req { color: var(--cinnabar); margin-left: 2px; letter-spacing: 0; }
.bz-region-row {
  display: flex;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.bz-region-row select {
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.78rem;
  text-overflow: ellipsis;
}
html:not([data-theme="light"]) .bz-form input,
html:not([data-theme="light"]) .bz-form select,
.bz-form input, .bz-form select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 0;
  margin-top: 0.4rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.45rem 0.15rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
html:not([data-theme="light"]) .bz-form input:focus,
html:not([data-theme="light"]) .bz-form select:focus,
.bz-form input:focus, .bz-form select:focus {
  outline: none;
  border-bottom-color: var(--cinnabar);
  box-shadow: 0 1px 0 0 var(--cinnabar);
  background: transparent;
}
html:not([data-theme="light"]) .bz-submit,
.bz-submit {
  background: var(--bzk-seal);
  color: var(--bzk-seal-paper);
  border: none;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.34em; text-indent: 0.34em;
  padding: 0.62rem 1.9rem;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(169, 58, 46, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
html:not([data-theme="light"]) .bz-submit:hover:not(:disabled),
.bz-submit:hover:not(:disabled) {
  background: var(--bzk-seal-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(169, 58, 46, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.bz-submit:active:not(:disabled) { transform: translateY(0); }
.bz-submit:disabled { opacity: 0.65; cursor: default; transform: none; }
.bz-submit:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }

/* ---------- 状态 ---------- */
.bz-status { text-align: center; padding: 1rem; color: var(--muted); font-size: 0.86rem; }
.bz-status.error {
  color: #9c3b3b;
  max-width: 680px;
  margin: 0.4rem auto;
  padding: 0.75rem 1.15rem;
  background: var(--cinnabar-soft);
  border: 1px solid rgba(169, 58, 46, 0.16);
  border-left: 3px solid var(--cinnabar);
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.8;
}
.bz-deep-status { margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }

/* ---------- 结果入场 ---------- */
#bz-result { animation: bzk-in 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes bzk-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- 排盘加载骨架（形制同盘面：信息条 + 四柱 + 三卡） ---------- */
.bz-skeleton { padding-top: 0.4rem; }
.bz-sk-bar {
  height: 14px; margin-bottom: 12px;
  border-radius: 4px;
  background: var(--surface-soft);
}
.bz-sk-bar.w2 { width: 62%; }
.bz-sk-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.bz-sk-col {
  background: var(--surface);
  padding: 1.3rem 0.7rem 1.1rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.bz-sk-col:nth-child(3) { background: var(--surface-soft); }
.bz-sk-line { height: 10px; border-radius: 3px; background: var(--surface-soft); }
.bz-sk-line.lg { height: 44px; width: 58%; }
.bz-sk-line.md { width: 42%; }
.bz-sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bz-sk-card {
  height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
@media (max-width: 860px) { .bz-sk-cards { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .bz-sk-chart { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: no-preference) {
  .bz-skeleton .bz-sk-bar,
  .bz-skeleton .bz-sk-line,
  .bz-skeleton .bz-sk-card {
    animation: bzk-pulse 1.4s ease-in-out infinite;
  }
  .bz-skeleton .bz-sk-col:nth-child(2) .bz-sk-line { animation-delay: 0.12s; }
  .bz-skeleton .bz-sk-col:nth-child(3) .bz-sk-line { animation-delay: 0.24s; }
  .bz-skeleton .bz-sk-col:nth-child(4) .bz-sk-line { animation-delay: 0.36s; }
}
@keyframes bzk-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ---------- 三 · 盘面信息条 ---------- */
/* styles.css 的 #bz-result > section（ID 级）会给每个区块套卡片框，这里解除 */
#bz-result > section,
#bz-result > div {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}
.bz-sec-pillars { margin-bottom: 22px; }
/* 展卷卷尾注：日主 / 五行彩条 / 旺衰 / 地支关系一行排开 */
.bz-scroll-notes {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px; padding: 0.7rem 0.4rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.bz-scroll-notes .bz-wx-wangshuai { margin-top: 0; padding: 0; border-top: none; }
.bz-scroll-notes .bz-dz-relations { padding: 0; }
.bz-scroll-notes .bz-wxbar { margin-left: auto; }
.bz-meta-dm { color: var(--muted); }
.bz-meta-dm b {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bzk-verdict);
  margin: 0 1px;
}
.bz-wxbar { margin-left: auto; gap: 5px; display: inline-flex; flex-direction: column; align-items: flex-end; }
/* 五行分布彩条：按数量占比分段（参考参天 cantian） */
.bz-wxbar-track {
  display: flex;
  width: 172px;
  max-width: 100%;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
}
.bz-wxbar-track .bz-wxseg { flex-basis: 0; min-width: 2px; }
.bz-wxbar-track .bz-wxseg[data-wx="木"] { background: var(--wx-mu); }
.bz-wxbar-track .bz-wxseg[data-wx="火"] { background: var(--wx-huo); }
.bz-wxbar-track .bz-wxseg[data-wx="土"] { background: var(--wx-tu); }
.bz-wxbar-track .bz-wxseg[data-wx="金"] { background: var(--wx-jin); }
.bz-wxbar-track .bz-wxseg[data-wx="水"] { background: var(--wx-shui); }
.bz-wxbar-nums { display: inline-flex; gap: 5px; }
.bz-wxchip {
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ---------- 四 · 四柱牌位（签名盘面） ---------- */
/* ---------- 四 · 展卷：四柱如题跋落款，无框，直接透出页面山水背景 ---------- */
.bz-scroll {
  position: relative;
  height: clamp(400px, 46vw, 600px);
  display: flex; flex-direction: column;
}
/* 卷首签：竖排乾坤造 + 生辰，如画外题签 */
.bz-scroll-head {
  position: absolute; top: 18px; left: 18px;
  writing-mode: vertical-rl;
  display: flex; gap: 8px;
  padding: 16px 10px;
  background: rgba(250, 248, 239, 0.8);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.bz-scroll-sex {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "SimKai", var(--serif);
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--bzk-verdict);
}
.bz-scroll-date {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "SimKai", var(--serif);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
/* 题跋：高低错落，第 1/3 柱偏高、第 2/4 柱偏低 */
.bz-scroll-inscs {
  position: static;
  flex: 1 1 auto;
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(2rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4rem) 1rem 1rem;
}
/* 画内卷尾注：钉在卷面底边，像裱边注记 */
.bz-scroll-canvas-notes {
  margin-top: auto;
  display: flex; align-items: center; flex-wrap: wrap; justify-content: center;
  gap: 6px 16px;
  padding: 0.55rem 1rem 0.85rem;
  border-top: 1px solid var(--hairline);
}
.bz-scroll-canvas-notes .bz-si-cn {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "SimKai", var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.22em; text-indent: 0.22em;
  color: var(--text-tertiary);
}
.bz-scroll-canvas-notes .bz-scroll-notes { display: contents; }
.bz-scroll-canvas-notes .bz-wxbar { margin-left: 0; }
.bz-insc { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
.bz-insc-2, .bz-insc-4 { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
/* 柱名朱印：四柱同款，手工钤印感——微不对称切角、轻旋转、内框线、朱砂微透 */
.bz-insc-seal {
  font-style: normal;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "SimKai", var(--serif); font-weight: 700;
  width: 27px; height: 27px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(169, 58, 46, 0.92); color: var(--bzk-seal-paper);
  border-radius: 5px 3px 4px 3px;
  font-size: 0.92rem;
  transform: rotate(-2deg);
  box-shadow:
    inset 0 0 0 1px rgba(247, 241, 226, 0.6),
    inset 0 0 0 3px rgba(169, 58, 46, 1),
    0 1px 3px rgba(169, 58, 46, 0.25);
}
.bz-insc-tg {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "SimKai", var(--serif);
  font-size: 0.88rem; letter-spacing: 0.14em; text-indent: 0.14em;
  color: var(--bzk-body);
  text-shadow: 0 1px 6px rgba(247, 245, 237, 0.9);
}
.bz-insc-gz {
  display: flex; flex-direction: column; align-items: center;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "SimKai", "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(2.6rem, 4.8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.14;
}
.bz-insc-gz .bz-wx {
  display: block;
  text-shadow: 0 1px 10px rgba(247, 245, 237, 0.85), 0 0 2px rgba(247, 245, 237, 0.6);
}
.bz-insc-hide {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "SimKai", var(--serif);
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--bzk-body);
  opacity: 0.8;
  min-height: 2.2em;
}
/* 题跋淡入交错出现（无偏好减弱动效时才启用） */
@media (prefers-reduced-motion: no-preference) {
  .bz-insc { animation: bz-insc-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .bz-insc-2 { animation-delay: 0.1s; }
  .bz-insc-3 { animation-delay: 0.2s; }
  .bz-insc-4 { animation-delay: 0.3s; }
}
@keyframes bz-insc-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
/* 细盘附页：原生 details，默认收起；无框，题头式文字入口 */
.bz-detail { margin-top: 10px; }
.bz-detail summary {
  cursor: pointer;
  text-align: center;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "SimKai", var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.24em; text-indent: 0.24em;
  color: var(--muted);
  padding: 0.7rem 0;
  background: transparent;
  border: none;
  list-style: none;
  transition: color 0.2s ease;
}
.bz-detail summary::-webkit-details-marker { display: none; }
.bz-detail summary::after { content: ' ▾'; letter-spacing: 0; text-indent: 0; }
.bz-detail summary:hover { color: var(--bzk-verdict); }
.bz-detail[open] summary { border-bottom: 1px dashed var(--line); }
.bz-detail[open] summary::after { content: ' ▴'; }
.bz-detail .bz-chart-v2 { border-top: none; }

/* ---------- 四 · 四柱排盘表：行式大表（行=字段、列=四柱，参考袁荣生辰表） ---------- */
.bz-chart-v2 {
  background: var(--surface);
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}
.bz-chart-v2 .bz-row {
  display: grid;
  grid-template-columns: 3.4em repeat(4, 1fr);
  align-items: stretch;
  border-top: 1px solid var(--hairline);
}
/* 隔行淡纸底（斑马纹），表头行不参与 */
.bz-chart-v2 .bz-row:nth-child(odd):not(.bz-rhead) { background: rgba(51, 58, 52, 0.025); }
.bz-chart-v2 .bz-row.bz-rhead {
  border-top: none;
  background: var(--surface-soft);
}
.bz-chart-v2 .bz-rlabel {
  display: flex; align-items: center; justify-content: center;
  font-size: 0.66rem;
  letter-spacing: 0.16em; text-indent: 0.16em;
  color: var(--text-tertiary);
  padding: 0.3rem 0 0.3rem 0.15rem;
}
.bz-chart-v2 .bz-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0.5rem 0.3rem;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--bzk-body);
  min-width: 0;
}
.bz-chart-v2 .bz-dash { color: var(--text-disabled); }
.bz-rhead .bz-cell {
  font-size: 0.72rem;
  letter-spacing: 0.3em; text-indent: 0.3em;
  color: var(--muted);
  padding: 0.62rem 0.3rem;
}
/* 天干/地支大字行 */
.bz-rgz .bz-cell { padding: 0.72rem 0.3rem; }
.bz-rgz .bz-wx {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
}
/* 藏干/支神：逐行竖排小字 */
.bz-hg-line {
  display: block;
  font-style: normal;
  font-size: 0.74rem;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--bzk-body);
}
/* 十神分类着色（十神行 + 支神行）：色取自本页山水画 */
.bz-tg { color: var(--bzk-body); }
.bz-tg-bj { color: #3f6b5f; }  /* 比劫 · 松石青 */
.bz-tg-yin { color: #4f7186; } /* 印星 · 雾山蓝青 */
.bz-tg-ss { color: #56743f; }  /* 食伤 · 竹墨绿 */
.bz-tg-cai { color: #8f7026; } /* 财星 · 金日古金（压深保对比度） */
.bz-tg-gk { color: #a14e32; }  /* 官杀 · 门框赭石 */
/* 神煞行：标签流式排布 */
.bz-rss .bz-cell {
  flex-direction: row; flex-wrap: wrap;
  gap: 3px; align-content: center;
  padding: 0.5rem 0.3rem;
}
/* 日柱列不做底色强调（用户反馈）：divination-finish.css 的 .bz-cell.is-day 淡蓝底在这里中和掉 */
.bz-chart-v2 .bz-cell.is-day { background: transparent; }
/* 「日主」与其他十神同款墨色，不做强调（用户反馈） */
.bz-daymark {
  background: transparent;
  color: var(--bzk-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: normal; text-indent: 0;
  padding: 0;
}

/* ---------- 五 · 通用卡片 ---------- */
.bz-section { margin-bottom: 22px; }
.bz-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 1.2rem 1.35rem;
  box-shadow: 0 1px 3px rgba(51, 58, 52, 0.05);
}
.bz-card h3 {
  display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
  margin: 0 0 0.7rem;
  padding-left: 0;
  border-left: none;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bzk-verdict);
}
/* 印章红点：全页小节题的统一记号（含付费/合婚/免费解读标题） */
.bz-card h3::before,
.bz-pay h3::before,
.bz-hehun h3::before,
.bz-free h3::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--bzk-seal);
  border-radius: 1px;
  flex-shrink: 0;
}
.bz-pay h3, .bz-hehun h3 {
  display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bzk-verdict);
}
.bz-card h3 .bz-h-sub {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.bz-card p { color: var(--bzk-body); font-size: 0.86rem; line-height: 1.9; margin: 0.3rem 0; }
.bz-card .bz-src {
  display: block;
  margin-top: 0.65rem; padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  letter-spacing: 0.03em;
}
.bz-duo .bz-free { margin-bottom: 0; }

/* ---------- 六 · 核心三卡：判词版式 ---------- */
.bz-sec-core .bz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bz-core-card .bz-core-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 4px;
  font-family: var(--serif);
  font-size: 0.74rem; font-weight: 700;
  color: var(--bzk-seal-paper);
  flex-shrink: 0;
}
.bz-core-card:nth-child(1) .bz-core-badge { background: var(--bzk-seal); }
.bz-core-card:nth-child(2) .bz-core-badge { background: var(--gold); color: #241c08; }
.bz-core-card:nth-child(3) .bz-core-badge { background: var(--bzk-celadon); color: #edf3f0; }
.bz-core-verdict {
  display: flex; align-items: baseline; gap: 0.65rem; flex-wrap: wrap;
  margin: 0.15rem 0 0.5rem;
}
.bz-core-verdict b {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--bzk-verdict);
}
.bz-core-verdict i { font-style: normal; font-size: 0.74rem; color: var(--text-tertiary); letter-spacing: 0.04em; margin-left: 0.15rem; }
.bz-core-card p { font-size: 0.83rem; }

/* ---------- 七 · 免费解读卡 ---------- */
.bz-free {
  background: linear-gradient(180deg, rgba(168, 132, 47, 0.05), rgba(168, 132, 47, 0) 55%), var(--surface);
  border: 1px solid var(--gold-line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 1.2rem 1.35rem;
  box-shadow: 0 1px 3px rgba(51, 58, 52, 0.05);
}
.bz-free h3 {
  display: flex; align-items: center;
  font-family: var(--serif);
  color: var(--gold-ink);
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 0.55rem;
}
.bz-free h3::after { content: none; }
.bz-free p { color: var(--bzk-body); font-size: 0.88rem; line-height: 1.95; }
.bz-free .bz-jump {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 0.7rem; padding: 0.42rem 1.05rem;
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  background: transparent;
  color: var(--gold-ink);
  font-size: 0.8rem; font-weight: 600;
  text-decoration: none;
  transition: background 0.22s ease, border-color 0.22s ease;
}
.bz-free .bz-jump:hover { background: var(--gold-soft); border-color: var(--gold); color: #6b5419; }
.bz-shensha-under .bz-src { display: block; margin-top: 0.4rem; font-size: 0.7rem; color: var(--text-tertiary); }
.bz-meta-region {
  color: var(--gold-ink);
  font-weight: 600;
}
@media (max-width: 860px) {
}
/* 出生地区三级联动（省 / 市 / 区县） */
.bz-region-row {
  display: flex;
  gap: 6px;
  width: 100%;
}
.bz-region-row select {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
}
.bz-ss-tag {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.64rem;
  font-style: normal;
  line-height: 1.55;
  white-space: nowrap;
}
/* 卷下小字注：去框，直接排在页面上 */
.bz-chart-solarinfo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 8px 2px;
  margin: 6px 0 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.bz-chart-solarinfo .bz-si-item {
  white-space: nowrap;
}
/* 五行旺衰（旺相休囚死） */
.bz-wx-wangshuai {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 10px 14px;
  margin-top: 10px;
  border-top: 1px dashed var(--line);
}
.bz-ws-item {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
/* 地支关系（刑冲合害破） */
.bz-dz-relations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 12px;
  font-size: 0.8rem;
  color: var(--text);
}
.bz-dz-label {
  flex-shrink: 0;
  padding: 2px 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}
.bz-dz-list {
  line-height: 1.7;
}

/* ---------- 九 · 大运横排步条 + 行运提示（去框，仅存栏间发丝线） ---------- */
.bz-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}
.bz-strip::before { display: none; }
.bz-step {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 1rem 0.4rem 0.9rem;
  background: transparent;
  position: relative;
}
.bz-step + .bz-step { border-left: 1px solid var(--hairline); }
.bz-step b {
  font-family: var(--serif);
  font-size: 1.35rem; font-weight: 700;
  letter-spacing: 0.06em;
}
.bz-step b::after { display: none; }
.bz-step span { color: var(--muted); font-size: 0.71rem; margin-top: 0.3rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.bz-step i { color: var(--text-tertiary); font-size: 0.68rem; font-style: normal; font-variant-numeric: tabular-nums; }
.bz-step.is-now {
  background: var(--gold-soft);
  box-shadow: inset 0 2px 0 var(--gold);
}
.bz-step.is-now b { color: #6b5419; }
.bz-step.is-now span { color: var(--gold-ink); font-weight: 600; }
.bz-yun-note { color: var(--text-tertiary); font-size: 0.72rem; margin-top: 0.6rem; }

/* ---------- 十 · 付费深度区 ---------- */
.bz-pay {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 1.2rem 1.35rem;
  box-shadow: 0 1px 3px rgba(51, 58, 52, 0.05);
  position: relative;
}
.bz-pay h3 { font-size: 1rem; }
.bz-pay h3 .pay-badge {
  background: var(--bzk-seal);
  color: var(--bzk-seal-paper);
  font-size: 0.68rem; font-weight: 600;
  border: none;
  border-radius: 3px;
  padding: 2px 8px;
  letter-spacing: 0.08em;
}
.bz-pay p { color: var(--muted); font-size: 0.84rem; }
html:not([data-theme="light"]) .bz-question,
.bz-question {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  padding: 0.65rem 0.85rem;
  width: 100%;
  box-sizing: border-box;
}
html:not([data-theme="light"]) .bz-question:focus,
.bz-question:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(168, 132, 47, 0.12);
}
.bz-pay-actions { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.75rem; flex-wrap: wrap; }
html:not([data-theme="light"]) .bz-pay-btn,
.bz-pay-btn {
  background: var(--gold-ink);
  color: #f6f1e2;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(122, 97, 32, 0.22);
  transition: background 0.22s ease, transform 0.2s ease;
  cursor: pointer;
}
.bz-pay-btn:hover:not(:disabled) { background: #6b5419; transform: translateY(-1px); }
.bz-pay-btn:disabled { opacity: 0.65; cursor: default; transform: none; }
.bz-save {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.22s ease, color 0.22s ease;
}
.bz-save:hover { border-color: var(--gold); color: var(--gold-ink); }
.bz-save:disabled { opacity: 0.6; cursor: default; }
.bz-pay-bonus { color: var(--text-tertiary); font-size: 0.75rem; }

/* 深度结果 */
#bz-deep-result { color: var(--bzk-body); font-size: 0.87rem; line-height: 1.9; margin-top: 0.6rem; }
#bz-deep-result .bz-sec {
  font-family: var(--serif);
  color: var(--gold-ink);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 1rem;
}
#bz-deep-result .bz-li { padding-left: 1rem; }
#bz-deep-result .bz-src-line { color: var(--text-tertiary); font-size: 0.75rem; }
.bz-lab { color: var(--gold-ink); font-weight: 700; }
.bz-link { color: var(--gold-ink); font-weight: 600; }
.bz-err { color: #9c3b3b; }
.bz-ok { color: #2e6b4f; }

/* ---------- 十三 · 合婚 ---------- */
.bz-hehun {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 1.2rem 1.35rem;
  box-shadow: 0 1px 3px rgba(51, 58, 52, 0.05);
}
.bz-hehun h3 { font-size: 1rem; }
.bz-hehun h3 .hh-badge {
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--gold-ink);
  font-size: 0.68rem; font-weight: 600;
  border-radius: 3px;
  padding: 2px 8px;
  letter-spacing: 0.06em;
}
.bz-hehun > p { color: var(--muted); font-size: 0.84rem; margin: 0 0 0.9rem; }
.bz-hehun .hh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.bz-hehun .hh-col {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.95rem 1.05rem;
}
.bz-hehun .hh-col h4 {
  font-family: var(--serif);
  color: var(--gold-ink);
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  margin: 0 0 0.6rem;
}
.bz-hehun label {
  display: flex; flex-direction: column; gap: 0.3rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
html:not([data-theme="light"]) .bz-hehun input,
html:not([data-theme="light"]) .bz-hehun select,
.bz-hehun input, .bz-hehun select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.88rem;
  padding: 0.45rem 0.6rem;
}
.bz-hehun input:focus, .bz-hehun select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(168, 132, 47, 0.12);
}
.bz-hehun .hh-actions { display: flex; gap: 0.7rem; margin-top: 0.9rem; flex-wrap: wrap; }
html:not([data-theme="light"]) .bz-hehun .hh-btn.primary,
.bz-hehun .hh-btn.primary {
  background: var(--bzk-seal);
  color: var(--bzk-seal-paper);
  font-weight: 600;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(169, 58, 46, 0.22);
  font-size: 0.85rem;
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  transition: background 0.22s ease;
}
.bz-hehun .hh-btn.primary:hover:not(:disabled) { background: var(--bzk-seal-deep); }
html:not([data-theme="light"]) .bz-hehun .hh-btn.secondary,
.bz-hehun .hh-btn.secondary {
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--gold-ink);
  border-radius: 6px;
  font-size: 0.85rem;
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  transition: background 0.22s ease;
}
.bz-hehun .hh-btn.secondary:hover:not(:disabled) { background: var(--gold-soft); }
.bz-hh-item {
  color: var(--bzk-body);
  border-bottom: 1px dashed var(--line);
  font-size: 0.84rem;
  line-height: 1.8;
  padding: 0.5rem 0;
}
.bz-hh-item b { color: var(--bzk-verdict); font-family: var(--serif); }
.bz-hh-src { display: block; color: var(--text-tertiary); font-size: 0.72rem; }

/* ---------- 十四 · 免责声明 ---------- */
.bz-notice {
  background: var(--cinnabar-soft);
  border: 1px solid rgba(169, 58, 46, 0.16);
  border-left: 3px solid var(--cinnabar);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.85;
  padding: 0.95rem 1.25rem;
}
.bz-notice strong { color: #9c3b3b; }

/* ---------- 十五 · 双盘互证 ---------- */
/* styles.css 的 #bz-result > section（ID 级）会杀掉卡片外框，这里用更高优先级恢复双盘互证卡基座 */
#bz-result > section.more-shu {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(51, 58, 52, 0.05);
  padding: 1.15rem 1.35rem;
}
.more-shu {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 1px 3px rgba(51, 58, 52, 0.05);
}
.more-shu-head {
  align-self: center;
  color: var(--gold-ink);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  padding-right: 1.1rem;
  border-right: 1px solid var(--hairline);
}
.more-shu-item {
  display: flex; flex-direction: column; justify-content: center; gap: 0.25rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  transition: border-color 0.22s ease;
}
.more-shu-item:hover { border-color: var(--gold-line); }
.more-shu-item strong { color: var(--bzk-verdict); font-family: var(--serif); font-size: 0.92rem; letter-spacing: 0.04em; }
.more-shu-item span { color: var(--muted); font-size: 0.76rem; line-height: 1.6; }

/* ---------- 十六 · 响应式 ---------- */
@media (max-width: 860px) {
  .bz-sec-core .bz-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .bz-form { grid-template-columns: 1fr 1fr; }
  .bz-form label.bz-label-region { grid-column: 1 / -1; }
  .bz-form label.bz-label-region .bz-region-row { margin-top: 0.4rem; }
  .bz-submit { grid-column: 1 / -1; }
  .bz-chart-v2 .bz-row { grid-template-columns: 2.3em repeat(4, 1fr); }
  .bz-chart-v2 .bz-cell { font-size: 0.7rem; padding: 0.42rem 0.15rem; }
  .bz-scroll { height: auto; min-height: 0; padding: 0.9rem 0.4rem 0.9rem; }
  /* 卷首签移动端横排：竖排题签在窄屏占掉左侧整列，把注记挤成细长条（用户反馈丑）。
     改为卷面顶部的横排签条，四柱与注记拿回全宽 */
  .bz-scroll-head {
    position: static;
    writing-mode: horizontal-tb;
    display: flex; justify-content: center; align-items: baseline;
    gap: 8px;
    padding: 7px 10px;
    margin: 0 auto 0.85rem;
    width: fit-content;
    background: rgba(250, 248, 239, 0.75);
    border: 1px solid var(--line);
    border-radius: 4px;
  }
  .bz-scroll-sex { font-size: 0.98rem; letter-spacing: 0.16em; }
  .bz-scroll-date { font-size: 0.7rem; letter-spacing: 0.05em; }
  /* 移动端四柱：一排四列，回归「年-月-日-时」横读传统制式
     （此前 2×2 田字格破坏读盘顺序且高度冗赘，用户反馈布局丑） */
  .bz-scroll-inscs { position: static; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; padding: 0; align-items: start; }
  .bz-insc { gap: 0.4rem; }
  .bz-insc-2, .bz-insc-4 { margin-top: 0; }
  .bz-insc-gz { font-size: clamp(1.7rem, 9vw, 2.35rem); }
  /* 窄列下藏干改横排小字（竖排会撑高柱身） */
  .bz-insc-hide { writing-mode: horizontal-tb; min-height: 0; letter-spacing: 0.08em; font-size: 0.62rem; }
  /* 卷尾注全宽铺展：日主/五行条一行，旺衰一行，地支关系一行，不再细长条堆叠 */
  .bz-scroll-canvas-notes { margin-left: 0; padding: 0.6rem 0.2rem 0.35rem; gap: 6px 12px; }
  .bz-scroll-canvas-notes .bz-scroll-notes {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 6px 12px; flex: 1 1 auto;
  }
  .bz-wxbar-track { width: 116px; }
  .bz-chart-solarinfo .bz-si-item { white-space: normal; }
  .bz-rgz .bz-wx { font-size: 1.85rem; }
  .bz-rgz .bz-cell { padding: 0.55rem 0.15rem; }
  .bz-rhead .bz-cell { letter-spacing: 0.1em; text-indent: 0.1em; }
  .bz-hg-line { font-size: 0.68rem; }
  .bz-wxbar { margin-left: 0; }
  .bz-card, .bz-free, .bz-pay, .bz-hehun { padding: 1rem 1.05rem; }
  .bz-hehun .hh-grid { grid-template-columns: 1fr; }
  .more-shu { grid-template-columns: 1fr; }
  .more-shu-head { border-right: none; padding-right: 0; padding-bottom: 0.2rem; }
  .bz-tool-head h1 { letter-spacing: 0.3em; text-indent: 0.3em; }
}
@media (max-width: 620px) {
  .bz-chart-v2 .bz-row { grid-template-columns: 1.9em repeat(4, 1fr); }
  .bz-rgz .bz-wx { font-size: 1.55rem; }
  .bz-chart-v2 .bz-rlabel { font-size: 0.58rem; letter-spacing: 0.05em; text-indent: 0.05em; }
}

/* ---------- 十六点五 · 移动端底部导航：墨黑玻璃改纸面（与浅色画布一体） ---------- */
.site-bottom-tabs {
  background: rgba(247, 245, 237, 0.96) !important;
  border-top: 1px solid var(--line) !important;
  box-shadow: 0 -2px 8px rgba(51, 58, 52, 0.06);
}
.site-bottom-tabs a { color: var(--muted); }
.site-bottom-tabs a:hover { color: var(--bzk-body); }
.site-bottom-tabs a.is-active {
  color: #f2f0e6;
  background: var(--bzk-pill);
}

/* ---------- 十七 · 可访问性 ---------- */
.bz-free .bz-jump:focus-visible,
.bz-save:focus-visible,
.bz-pay-btn:focus-visible,
.bz-hehun .hh-btn:focus-visible,
.more-shu-item:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  #bz-result { animation: none; }
  .bz-submit, .bz-pay-btn, .bz-save, .bz-jump, .bz-yq-card, .more-shu-item, .hh-btn, .hh-btn.primary, .hh-btn.secondary {
    transition: none !important;
  }
}

/* ---------- 十八 · 展卷跋文：全页去框——卡片只余顶部发丝线，互动件保留输入框边框 ---------- */
.bz-sec-core .bz-card,
.bz-free,
.bz-pay,
.bz-hehun,
#bz-result > section.more-shu {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  box-shadow: none;
  border-radius: 0;
  padding: 1.05rem 0.2rem 0.4rem;
}
.bz-free { border-top-color: var(--gold-line); }
.bz-hehun .hh-col { border-color: var(--hairline); }
@media (max-width: 860px) {
  .bz-sec-core .bz-card, .bz-free, .bz-pay, .bz-hehun { padding: 0.9rem 0.2rem 0.3rem; }
}

/* 一眼结论：格局 · 旺衰 · 调候，一行定性 */
.bz-verdict-line {
  display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin: 1.1rem 0 0.2rem;
}
.bz-verdict-line b {
  font-family: var(--serif);
  font-size: 1.12rem; font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--bzk-verdict);
}
.bz-verdict-line i {
  font-style: normal;
  color: var(--gold);
  font-size: 0.9rem;
}

/* ---------- 十九 · 卷首引言 + 卷尾落款 ---------- */
.bz-quote {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "SimKai", var(--serif);
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 1.6rem;
}
.bz-quote-src {
  font-size: 0.72rem;
  margin-left: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}
.bz-colophon {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 2.4rem 0 0.6rem;
}
.bz-colophon-seal {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "SimKai", var(--serif);
  font-weight: 700;
  writing-mode: vertical-rl;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(169, 58, 46, 0.92); color: var(--bzk-seal-paper);
  border-radius: 5px 3px 4px 3px;
  font-size: 0.62rem; line-height: 1.15;
  letter-spacing: 0.08em;
  transform: rotate(-2deg);
  box-shadow:
    inset 0 0 0 1px rgba(247, 241, 226, 0.6),
    inset 0 0 0 3px rgba(169, 58, 46, 1),
    0 1px 3px rgba(169, 58, 46, 0.25);
}
.bz-colophon-text {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "SimKai", var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.3em; text-indent: 0.3em;
  color: var(--muted);
}
