/* ==========================================================================
   众妙之门 · Web 预览样式
   主题沿用 miniprogram/styles/theme.wxss 的低饱和马卡龙配色
   ========================================================================== */

:root {
  --bg: #f7f5f1;
  --bg-soft: #fbf9f6;
  --card: #ffffff;

  --primary: #9b8cc4;
  --primary-deep: #7b6ba8;
  --primary-soft: #ede9f7;

  --accent: #d9ae83;
  --accent-soft: #f6eada;

  --mint: #9cc6bf;
  --mint-soft: #e4f1ef;
  --peach: #e6afa2;
  --peach-soft: #f9e8e3;
  --matcha: #b4c9a3;
  --matcha-soft: #ebf1e3;
  --sky: #a6c4de;
  --sky-soft: #e6eff7;

  --text: #46424f;
  --text-sub: #8b8695;
  --text-light: #b4afc0;
  --line: #eeeeef;

  --wx-mu: #7fa96b;
  --wx-huo: #d98a72;
  --wx-tu: #c9a96a;
  --wx-jin: #c7b79a;
  --wx-shui: #7f9cc0;

  --shadow: 0 4px 14px rgba(122, 108, 150, 0.08);
  --shadow-lg: 0 8px 28px rgba(122, 108, 150, 0.14);
  --radius: 14px;

  /* 导航栏高度：.nav-inner 46px + 下边框 1px。
     导航栏是 sticky（在文档流内占位），页面若有 min-height:100% 会把内容顶出去
     多出的这 47px 会让首个元素滑到导航栏底下，故统一用此变量扣减。 */
  --nav-h: 47px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: #eceef2;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 22px 16px 40px;
  background:
    radial-gradient(1100px 520px at 12% -8%, #eef0f7 0%, rgba(238, 240, 247, 0) 62%),
    radial-gradient(900px 460px at 92% 6%, #f4f0ea 0%, rgba(244, 240, 234, 0) 60%),
    #eceef2;
}

/* --------------------------------------------------------------------------
   舞台 / 手机外框
   -------------------------------------------------------------------------- */
.stage {
  display: flex;
  gap: 26px;
  align-items: flex-start;
}

.stage-side {
  width: 268px;
  flex: 0 0 268px;
  padding: 4px 2px;
  color: var(--text-sub);
}

.side-brand { margin-bottom: 16px; }
.side-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--text);
}
.side-slogan { font-size: 12px; color: var(--text-light); letter-spacing: 1px; margin-top: 2px; }

.side-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.side-card h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 1px;
}
.side-card p { margin: 0 0 8px; font-size: 12px; line-height: 1.7; }
.side-card p:last-child { margin-bottom: 0; }
.side-card code {
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-radius: 4px;
  padding: 0 4px;
  font-size: 11px;
}
.side-links { display: flex; flex-direction: column; gap: 4px; }
.side-links a {
  font-size: 12px;
  color: var(--primary-deep);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
  background: #f8f7fb;
}
.side-links a:hover { background: var(--primary-soft); }
.side-badge {
  display: inline-block;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #a5824f;
  margin-left: 6px;
}

.phone {
  position: relative;
  width: 390px;
  flex: 0 0 390px;
  height: min(780px, calc(100vh - 74px));
  min-height: 560px;
  background: #101014;
  border-radius: 42px;
  padding: 10px;
  box-shadow: 0 26px 60px rgba(46, 40, 66, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 状态栏 + 灵动岛 */
.status-bar {
  height: 34px;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 11px;
  color: var(--text);
  position: relative;
  background: var(--bg);
  z-index: 5;
}
.status-pill {
  position: absolute;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
  width: 88px;
  height: 20px;
  border-radius: 999px;
  background: #101014;
}
.status-right { display: flex; gap: 4px; align-items: center; }
.status-sig { width: 14px; height: 9px; border-radius: 2px; background: var(--text); opacity: .75; }
.status-bat { width: 18px; height: 9px; border: 1px solid var(--text); border-radius: 2px; opacity: .75; }

.app-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.app-body::-webkit-scrollbar { width: 0; }

/* --------------------------------------------------------------------------
   页面通用
   -------------------------------------------------------------------------- */
.page { padding: 0 14px 26px; }
.page > .card:first-child { margin-top: 12px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card-inline { padding: 12px 14px; }

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.section-hint {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0;
}
.section-hint::before { content: none; }

.tip {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 8px;
}
.hint { font-size: 11px; color: var(--text-light); }
.title-sm { font-size: 13px; color: var(--text); font-weight: 500; }

.disclaimer {
  font-size: 11px;
  line-height: 1.7;
  color: #a99a97;
  background: #fdf6f4;
  border: 1px dashed #eddedb;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   导航栏
   -------------------------------------------------------------------------- */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(238, 234, 239, 0.9);
}
.nav-inner {
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 10px;
}
.nav-side { width: 62px; display: flex; align-items: center; gap: 6px; }
.nav-right { justify-content: flex-end; }
.nav-center { flex: 1; text-align: center; min-width: 0; }
.nav-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-subtitle { font-size: 10px; color: var(--text-light); letter-spacing: 1px; margin-top: -1px; }
.nav-back {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-back:hover { background: var(--primary-soft); }
.nav-back-chevron {
  width: 9px; height: 9px;
  border-left: 2px solid var(--primary-deep);
  border-bottom: 2px solid var(--primary-deep);
  transform: rotate(45deg);
  margin-left: 3px;
}
.nav-clear { font-size: 12px; color: var(--primary-deep); cursor: pointer; }

/* --------------------------------------------------------------------------
   底部 tabBar
   -------------------------------------------------------------------------- */
.tabbar {
  flex: 0 0 auto;
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: 6px;
}
.tabbar.is-hidden { display: none; }
.tabbar-inner { display: flex; height: 52px; }
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  position: relative;
  color: #9a94a8;
}
.tab-item.is-active { color: var(--primary-deep); }
.tab-label { font-size: 10px; letter-spacing: .5px; }

.tab-ico { width: 20px; height: 18px; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.ico-gua .gua-line { height: 2.5px; border-radius: 1px; background: currentColor; }
.ico-gua .gua-line--break { display: flex; gap: 3px; background: none; }
.ico-gua .gua-line--break .gua-seg { flex: 1; height: 2.5px; border-radius: 1px; background: currentColor; }
.ico-book .book-body {
  width: 15px; height: 13px;
  border: 1.8px solid currentColor;
  border-radius: 2px 4px 4px 2px;
  margin-left: 3px;
}
.ico-book .book-spine {
  position: absolute; left: 0; top: 2px;
  width: 4px; height: 13px;
  border: 1.8px solid currentColor;
  border-right: none;
  border-radius: 3px 0 0 3px;
}
.ico-user .user-head {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.8px solid currentColor;
  margin: 0 auto;
}
.ico-user .user-body {
  width: 15px; height: 7px;
  border: 1.8px solid currentColor;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  margin: 1px auto 0;
}
.tab-dot {
  position: absolute;
  top: 5px;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity .2s;
}
.tab-item.is-active .tab-dot { opacity: 1; }

/* --------------------------------------------------------------------------
   表单控件
   -------------------------------------------------------------------------- */
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.form-row--last { border-bottom: none; }
.form-label { font-size: 13px; color: var(--text-sub); flex: 0 0 auto; }
.form-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  text-align: right;
  font-family: inherit;
  min-width: 0;
}
.form-input::placeholder { color: var(--text-light); }
.form-input--num { flex: 0 0 70px; }
.form-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.chevron {
  width: 6px; height: 6px;
  border-right: 1.6px solid var(--text-light);
  border-bottom: 1.6px solid var(--text-light);
  transform: rotate(-45deg);
  margin-bottom: 2px;
}
select.native, input.native {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 8px;
  outline: none;
  cursor: pointer;
  max-width: 190px;
}
select.native:focus, input.native:focus { border-color: var(--primary); background: #fff; }

.seg {
  display: inline-flex;
  background: var(--bg-soft);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}
.seg-item {
  padding: 5px 14px;
  font-size: 13px;
  color: var(--text-sub);
  border-radius: 7px;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.seg-item.is-on {
  background: #fff;
  color: var(--primary-deep);
  font-weight: 600;
  box-shadow: 0 1px 5px rgba(122, 108, 150, .16);
}
.seg-block { display: flex; width: 100%; margin-bottom: 6px; }
.seg-block .seg-item { flex: 1; text-align: center; }

.switch {
  position: relative;
  width: 44px; height: 25px;
  flex: 0 0 44px;
  border-radius: 999px;
  background: #e3e0e9;
  transition: background .2s;
  cursor: pointer;
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  transition: transform .2s;
}
.switch.is-on { background: var(--primary); }
.switch.is-on::after { transform: translateX(19px); }

.pillars-grid { display: flex; gap: 8px; margin: 10px 0 4px; }
.pillar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pillar-name { font-size: 11px; color: var(--text-light); }
.pillar-pick {
  width: 100%;
  text-align: center;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 7px 0;
  cursor: pointer;
  font-family: 'STSong', 'Songti SC', serif;
}

.region-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 11px 12px;
  cursor: pointer;
}
.region-text { font-size: 14px; color: var(--text); }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.col { display: flex; flex-direction: column; }

.btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 12px;
  transition: opacity .18s, transform .08s;
}
.btn:active { transform: scale(.99); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(123, 107, 168, .26);
}
.btn-lg { font-size: 15px; letter-spacing: 3px; padding: 14px; margin-top: 4px; }
.btn-ghost { background: var(--bg-soft); color: var(--primary-deep); border: 1px solid var(--line); }
.btn-reset { text-align: center; font-size: 12px; color: var(--text-light); padding: 12px 0 4px; cursor: pointer; }

/* --------------------------------------------------------------------------
   排盘页主视觉
   -------------------------------------------------------------------------- */
.hero-paipan {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px 6px;
}
.hero-ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 56px;
  background: radial-gradient(circle at 30% 25%, #fff, var(--primary-soft));
}
.hero-ring::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(155, 140, 196, .35);
}
.hero-trigram { display: flex; flex-direction: column; gap: 4px; width: 22px; }
.hero-trigram .tl { height: 3px; border-radius: 2px; background: var(--primary-deep); }
.hero-trigram .tl-break { display: flex; gap: 4px; background: none; }
.hero-trigram .tl-break .seg { flex: 1; height: 3px; border-radius: 2px; background: var(--primary-deep); }
.hero-title { font-size: 20px; font-weight: 600; letter-spacing: 3px; }
.hero-sub { font-size: 11px; color: var(--text-light); letter-spacing: .6px; }

/* --------------------------------------------------------------------------
   排盘结果
   -------------------------------------------------------------------------- */
.profile-card {
  background: linear-gradient(150deg, #ffffff 0%, #faf8fd 55%, #f7f2ea 100%);
}
.profile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.profile-name { display: flex; align-items: baseline; gap: 8px; }
.pn-text { font-size: 18px; font-weight: 600; letter-spacing: 1px; }
.pn-gender {
  font-size: 11px;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 1px 8px;
}
.copy-btn {
  font-size: 12px;
  color: var(--primary-deep);
  border: 1px solid var(--primary-soft);
  border-radius: 999px;
  padding: 3px 12px;
  cursor: pointer;
}
.profile-line { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.9; }
.pl-key { flex: 0 0 32px; color: var(--text-light); }
.pl-val { color: var(--text); flex: 1; word-break: break-all; }
.pl-bazi {
  font-family: 'STSong', 'Songti SC', serif;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--primary-deep);
}

.bazi-table { border-radius: 10px; overflow: hidden; }
.bt-row {
  display: flex;
  border-bottom: 1px solid var(--line);
  align-items: stretch;
}
.bt-row--last { border-bottom: none; }
.bt-row--head { background: var(--bg-soft); }
.bt-label {
  flex: 0 0 44px;
  font-size: 11px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  background: #fbfafc;
  border-right: 1px solid var(--line);
}
.bt-row--head .bt-label { color: var(--text-sub); font-weight: 600; background: #f7f5fa; }
.bt-cell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 2px;
  font-size: 12px;
  color: var(--text);
  border-right: 1px solid var(--line);
}
.bt-cell:last-child { border-right: none; }
.bt-row--head .bt-cell { font-size: 11.5px; color: var(--text-sub); font-weight: 600; }

.gz-big {
  font-family: 'STSong', 'Songti SC', serif;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 600;
}
.gz-tag { font-size: 10px; color: var(--text-light); }
.cell-multi { font-size: 11.5px; line-height: 1.45; text-align: center; font-family: 'STSong', 'Songti SC', serif; }
.cell-sub { color: var(--text-sub); font-size: 10.5px; }
.cell-text { font-size: 11.5px; color: var(--text); text-align: center; }
.cell-small { font-size: 10.5px; color: var(--text-sub); }
.cell-shensha { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; justify-content: center; }
.ss-tag {
  font-size: 9.5px;
  color: #a5824f;
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 0 4px;
  white-space: nowrap;
  line-height: 1.5;
}
.ss-none { font-size: 11px; color: var(--text-light); }

.el-mu { color: var(--wx-mu); }
.el-huo { color: var(--wx-huo); }
.el-tu { color: var(--wx-tu); }
.el-jin { color: var(--wx-jin); }
.el-shui { color: var(--wx-shui); }

.extra-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.extra-item { font-size: 11.5px; color: var(--text-sub); background: var(--bg-soft); border-radius: 6px; padding: 3px 9px; }

.wuxing-bars { display: flex; flex-direction: column; gap: 9px; }
.wx-item { display: flex; align-items: center; gap: 10px; }
.wx-name { flex: 0 0 18px; font-size: 12.5px; color: var(--text-sub); font-family: 'STSong', 'Songti SC', serif; }
.wx-track { flex: 1; height: 8px; border-radius: 999px; background: #f2f0f5; overflow: hidden; }
.wx-fill { height: 100%; border-radius: 999px; transition: width .5s ease; }
.fill-mu { background: linear-gradient(90deg, #a8c79a, var(--wx-mu)); }
.fill-huo { background: linear-gradient(90deg, #eab5a3, var(--wx-huo)); }
.fill-tu { background: linear-gradient(90deg, #e0cda0, var(--wx-tu)); }
.fill-jin { background: linear-gradient(90deg, #ded3bd, var(--wx-jin)); }
.fill-shui { background: linear-gradient(90deg, #b3c8de, var(--wx-shui)); }
.wx-val { flex: 0 0 16px; font-size: 12px; color: var(--text-sub); text-align: right; }
.wx-missing { margin-top: 12px; font-size: 12px; color: var(--text-sub); }
.wx-missing .miss { color: var(--peach); font-weight: 600; }

.dayun-group { margin-bottom: 8px; }
.dayun-start { font-size: 11.5px; color: var(--text-light); }
.dayun-scroll {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 2px 0 8px;
  scrollbar-width: none;
}
.dayun-scroll::-webkit-scrollbar { display: none; }
.dayun-track { display: flex; gap: 8px; }
.dayun-item {
  flex: 0 0 auto;
  min-width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s;
}
.dayun-item.is-on {
  background: var(--primary-soft);
  border-color: rgba(155, 140, 196, .5);
}
.dy-gz { font-size: 15px; font-family: 'STSong', 'Songti SC', serif; color: var(--text); }
.dayun-item.is-on .dy-gz { color: var(--primary-deep); font-weight: 600; }
.dy-age { font-size: 10px; color: var(--text-light); }
.dy-year { font-size: 9.5px; color: var(--text-light); }

.dayun-title-row { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
.dt-title { font-size: 13.5px; font-weight: 600; letter-spacing: .5px; font-family: 'STSong', 'Songti SC', serif; }
.tag { font-size: 10px; border-radius: 999px; padding: 1px 8px; }
.tag-primary { background: var(--primary-soft); color: var(--primary-deep); }

.liunian-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.ln-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 2px;
  border-radius: 8px;
  background: var(--bg-soft);
  cursor: pointer;
  border: 1px solid transparent;
}
.ln-item.is-now { background: var(--accent-soft); border-color: rgba(217, 174, 131, .55); }
.ln-item.is-on { background: var(--primary-soft); border-color: rgba(155, 140, 196, .5); }
.ln-year { font-size: 10px; color: var(--text-light); }
.ln-gz { font-size: 12.5px; font-family: 'STSong', 'Songti SC', serif; color: var(--text); }
.ln-age { font-size: 9px; color: var(--text-light); }

.empty-inline { font-size: 12px; color: var(--text-light); text-align: center; padding: 12px 0; }

.today-meta { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--text); margin-bottom: 12px; }
.today-lunar { font-size: 11.5px; color: var(--text-sub); }
.today-pillars { display: flex; gap: 8px; margin-bottom: 12px; }
.tp {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 8px 0;
}
.tp-label { font-size: 10px; color: var(--text-light); }
.tp-gz { font-size: 17px; font-family: 'STSong', 'Songti SC', serif; line-height: 1.2; }
.today-yiji { display: flex; flex-direction: column; gap: 6px; }
.yiji-row { display: flex; gap: 10px; align-items: flex-start; }
.yiji-key {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.yiji-key.yi { background: var(--mint); }
.yiji-key.ji { background: var(--peach); }
.yiji-val { flex: 1; font-size: 12px; color: var(--text-sub); line-height: 1.6; }

/* 底部操作条 */
.action-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 10px 14px 14px;
  margin: 0 -14px;
  background: linear-gradient(180deg, rgba(247, 245, 241, 0) 0%, var(--bg) 26%);
}
.action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 9px 4px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .08s;
}
.action-btn:active { transform: scale(.985); }
.ab-title { font-size: 13.5px; font-weight: 600; letter-spacing: 1px; }
.ab-sub { font-size: 10px; opacity: .78; }
.action-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(123, 107, 168, .26);
}
.action-ghost {
  background: #fff;
  color: var(--primary-deep);
  border: 1px solid var(--primary-soft);
  box-shadow: var(--shadow);
}
.action-spacer { height: 6px; }

/* --------------------------------------------------------------------------
   命局解析
   -------------------------------------------------------------------------- */
.subject-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(135deg, #fff, #f9f6fd);
  border-radius: var(--radius);
  padding: 11px 14px;
  margin: 12px 0;
  box-shadow: var(--shadow);
}
.sb-left { display: flex; align-items: baseline; gap: 7px; }
.sb-name { font-size: 15px; font-weight: 600; }
.sb-gender { font-size: 11px; color: var(--primary-deep); background: var(--primary-soft); border-radius: 999px; padding: 1px 8px; }
.sb-bazi { font-family: 'STSong', 'Songti SC', serif; font-size: 13.5px; letter-spacing: 1px; color: var(--text-sub); }

.tabs {
  display: flex;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
  gap: 3px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.tab {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
  padding: 8px 0;
  border-radius: 9px;
  cursor: pointer;
  transition: all .18s;
}
.tab.is-on {
  background: linear-gradient(135deg, var(--primary-soft), #fff);
  color: var(--primary-deep);
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(122, 108, 150, .12);
}

.liunian-title { margin-top: 14px; }
/* 冷却提示样式已随「切换限流取消」一并移除 */

.paywall { text-align: center; padding: 26px 18px; }
.pw-icon { font-size: 32px; color: var(--primary); margin-bottom: 8px; }
.pw-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.pw-desc { font-size: 12px; color: var(--text-sub); margin-bottom: 16px; }
.pw-plans { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pw-plan {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 9px 14px;
}
.pw-plan-name { font-size: 12px; color: var(--text); }
.pw-plan-price { font-size: 14px; color: var(--primary-deep); font-weight: 600; }
.pw-foot { margin-top: 14px; }

/* 专家报告 */
.er-loading { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 0; }
.er-spinner {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--primary-soft);
  border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.er-loading-text { font-size: 12px; color: var(--text-light); }
.er-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.er-title { font-size: 15px; font-weight: 600; letter-spacing: .5px; }
.er-mode { font-size: 10px; color: #a5824f; background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; }
.er-summary { font-size: 13px; color: var(--text-sub); margin-bottom: 12px; }
.er-section { margin-bottom: 14px; }
.er-section:last-child { margin-bottom: 0; }
.er-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-deep);
  margin-bottom: 5px;
  letter-spacing: .5px;
}
.er-section-body { font-size: 13px; line-height: 1.85; color: #56515f; white-space: pre-wrap; }

/* 说明 / 免责声明节：弱化渲染，内容不删减 */
.er-section.is-note {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line, #ece8ef);
}
.er-section.is-note .er-section-title {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 1px;
}
.er-section.is-note .er-section-title::before { background: var(--line, #ded8e3); }
.er-section.is-note .er-section-body {
  font-size: 11.5px;
  color: var(--text-light);
  line-height: 1.75;
}
.er-empty { font-size: 12px; color: var(--text-light); text-align: center; padding: 18px 0; }

/* ---------------- 命局要点表（位于「总断」之后） ---------------- */
.er-facts { margin: 4px 0 18px; }
.er-facts-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.er-facts-title {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-deep);
  letter-spacing: .5px;
}
.er-facts-title::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  margin-right: 7px;
}
.er-facts-hint { font-size: 10.5px; color: var(--text-light); }

.er-facts-table { border: 1px solid var(--line, #ece8ef); border-radius: 10px; overflow: hidden; }
.ef-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line, #ece8ef); }
.ef-row:last-child { border-bottom: none; }
.ef-row:nth-child(odd) { background: #fcfbfe; }
.ef-k {
  flex: 0 0 86px;
  padding: 10px 8px 10px 11px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary-deep);
  line-height: 1.6;
  background: var(--primary-soft, #ede9f7);
}
.ef-v {
  flex: 1;
  min-width: 0;
  padding: 10px 11px;
  font-size: 11.5px;
  color: #56515f;
  line-height: 1.75;
  word-break: break-word;
}

.fade-in { animation: fadeIn .32s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   AI 上师
   -------------------------------------------------------------------------- */
/* 扣掉导航栏占位，否则 100% + 47px 会让首个子元素滑到导航栏底下 */
.chat-page { display: flex; flex-direction: column; min-height: calc(100% - var(--nav-h)); }
/* 命盘上下文条：随页面滚动始终停在导航栏下方，
   让用户任何时候都能确认「上师说的就是我这盘」，不必重新翻回顶部核对 */
.ctx-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 14px 8px;
  background: var(--primary-soft);
  border-bottom: 1px solid rgba(222, 214, 244, .9);
  font-size: 11.5px;
  flex-shrink: 0;
}
.ctx-row { display: flex; align-items: center; gap: 8px; }
.ctx-label { color: var(--primary-deep); flex: 0 0 auto; }
.ctx-bazi { font-family: 'STSong', 'Songti SC', serif; color: var(--text); letter-spacing: .8px; }
.ctx-name { margin-left: auto; color: var(--text-sub); }
.ctx-meta {
  font-size: 10.5px;
  color: var(--primary-deep);
  opacity: .78;
  letter-spacing: .2px;
  line-height: 1.5;
}

.msg-list { padding: 14px 14px 0; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 8px; }
.msg-user { flex-direction: row-reverse; }
.avatar {
  flex: 0 0 30px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 13px;
  font-family: 'STKaiti', 'KaiTi', serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(122, 108, 150, .24);
}
.bubble-wrap { max-width: 78%; }
.bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg-assistant .bubble { background: #fff; color: var(--text); border-top-left-radius: 4px; box-shadow: var(--shadow); }
.msg-user .bubble {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  border-top-right-radius: 4px;
}
.typing { display: flex; gap: 4px; padding: 4px 2px; }
.typing-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-light);
  animation: blink 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.msg-bottom-space { height: 8px; }

.suggest-wrap { padding: 8px 0 0; }
.suggest-scroll { display: flex; overflow-x: auto; padding: 0 14px 8px; scrollbar-width: none; }
.suggest-scroll::-webkit-scrollbar { display: none; }
.suggest-track { display: flex; gap: 8px; }
.suggest-chip {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--primary-deep);
  background: #fff;
  border: 1px solid var(--primary-soft);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.suggest-chip:hover { background: var(--primary-soft); }

.input-bar {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 12px;
  background: rgba(247, 245, 241, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.suggest-toggle {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.chat-input {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  min-width: 0;
}
.chat-input:focus { border-color: var(--primary-soft); }
.send-btn {
  flex: 0 0 auto;
  font-size: 12.5px;
  color: #fff;
  background: #cfc9dc;
  border-radius: 999px;
  padding: 7px 15px;
  cursor: default;
  transition: all .2s;
}
.send-btn.is-ready {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(123, 107, 168, .28);
}

/* --------------------------------------------------------------------------
   藏经阁
   -------------------------------------------------------------------------- */
.gang-header { text-align: center; padding: 18px 0 14px; }
.gh-ornament { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 6px; }
.gh-line { width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--primary)); }
.gh-line:last-child { background: linear-gradient(90deg, var(--primary), transparent); }
.gh-mark { font-family: 'STKaiti', 'KaiTi', serif; font-size: 17px; color: var(--primary-deep); }
.gh-title { font-size: 19px; font-weight: 600; letter-spacing: 6px; color: var(--text); }
.gh-sub { font-size: 11.5px; color: var(--text-light); letter-spacing: .6px; margin-top: 3px; }

/* --- Tab 切换（佛家 / 道家）--- */
.scripture-tabs { display: flex; gap: 0; margin: 10px 0 14px; border-bottom: 1px solid #ede8f2; }
.stab-item { flex: 1; text-align: center; padding: 9px 0 8px; position: relative; cursor: pointer; user-select: none; }
.stab-text { font-size: 14px; color: var(--text-sub); font-weight: 500; transition: color .2s; }
.stab-line { position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 0; height: 3px; border-radius: 2px; background: var(--accent); transition: width .25s; }
.stab-on .stab-text { color: var(--text); font-weight: 700; }
.stab-on .stab-line { width: 28px; }
.stab-on.tao-on .stab-line { background: var(--matcha); }
.stab-on.tao-on .stab-text { color: var(--text); }

.sect { margin-bottom: 16px; }
.sect-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; padding: 0 2px; }
.sect-title { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; letter-spacing: 1px; }
.sect-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.dot-buddha { background: var(--accent); }
.dot-tao { background: var(--mint); }
.sect-count { font-size: 11px; color: var(--text-light); }

.book-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .12s, box-shadow .2s;
}
.book-card:active { transform: scale(.99); }
.book-card:hover { box-shadow: var(--shadow-lg); }
.book-cover {
  flex: 0 0 74px;
  width: 74px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-soft);
  box-shadow: 0 3px 10px rgba(122, 108, 150, .16);
}
.book-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.book-title-row { display: flex; align-items: center; gap: 7px; }
.book-title { font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.book-tag { font-size: 10px; color: #5f8b6f; background: var(--mint-soft); border-radius: 999px; padding: 0 7px; }
.book-full { font-size: 11px; color: var(--text-sub); }
.book-summary { font-size: 11.5px; color: var(--text-light); line-height: 1.6; }
.book-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 5px; }
.bm-item { font-size: 11px; color: var(--text-light); }
.bm-open { font-size: 11.5px; color: var(--primary-deep); }

.placeholder-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  padding: 26px 18px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.ph-ring {
  width: 52px; height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph-taiji { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: flex; }
.pt-half { flex: 1; }
.pt-left { background: var(--text-sub); }
.pt-right { background: #fff; border: 1px solid var(--line); }
.ph-title { font-size: 13.5px; font-weight: 600; color: var(--text-sub); }
.ph-desc { font-size: 11.5px; color: var(--text-light); margin-top: 4px; }
.ph-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-light);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 2px 12px;
}

/* 目录页 */
.book-hero { position: relative; height: 168px; margin: 0 -14px 12px; overflow: hidden; }
/* 底衬：与小程序 .hero-bg 保持一致（blur 14rpx ≈ 7px、scale 1.15 防糊边、opacity .55）。
   底衬的职责是柔和衬底，清晰的主体是左侧 .hero-cover；不模糊会让封面原图的
   局部（如《道德经》中段那株古松）在横切裁切后变成一大块深色，压住标题。 */
.book-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(7px);
  transform: scale(1.15);
  opacity: .55;
}
.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 32, 48, .30) 0%, rgba(38, 32, 48, .72) 100%);
}
.hero-inner { position: relative; display: flex; gap: 13px; padding: 18px 14px 0; align-items: flex-start; }
.hero-cover {
  width: 82px; height: 112px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .34);
}
.hero-meta { flex: 1; min-width: 0; color: #fff; padding-top: 4px; }
.hero-title { font-size: 21px; font-weight: 600; letter-spacing: 3px; }
.hero-full { font-size: 12px; opacity: .86; letter-spacing: 1px; margin-top: 2px; }
.hero-trans { font-size: 11px; opacity: .72; margin-top: 2px; }
.hero-badge {
  display: inline-block;
  margin-top: 9px;
  font-size: 10.5px;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: 2px 10px;
}

.continue { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.ct-label { font-size: 11px; color: var(--text-light); }
.ct-title { font-size: 14px; font-weight: 600; letter-spacing: .5px; margin-top: 2px; }
.ct-progress { display: flex; align-items: baseline; }
.ct-num { font-size: 20px; font-weight: 600; color: var(--primary-deep); }
.ct-slash { font-size: 12px; color: var(--text-light); }

.intro-card { padding: 14px 16px; }
.intro-p { font-size: 13px; line-height: 1.9; color: #56515f; margin-bottom: 10px; }
.intro-quote {
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: 15.5px;
  line-height: 1.85;
  color: #8a6b3f;
  background: linear-gradient(180deg, #fdf8ef, #fbf3e6);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 12px 0;
  text-align: center;
  letter-spacing: 1px;
}
.intro-list { margin-bottom: 10px; }
.intro-li { display: flex; gap: 6px; font-size: 12.5px; color: var(--text-sub); line-height: 1.8; }
.li-dot { color: var(--accent); }
.intro-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.id-line { flex: 1; height: 1px; background: var(--line); }
.id-mark { font-size: 13px; color: var(--primary); }

.catalog { padding: 4px 0; }
.cat-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .16s;
}
.cat-item:hover { background: #fbfafd; }
.cat-item:last-child { border-bottom: none; }
.cat-no {
  flex: 0 0 30px;
  font-family: 'STSong', 'Songti SC', serif;
  font-size: 13px;
  color: var(--text-light);
}
.cat-item.is-read .cat-no { color: var(--mint); }
.cat-body { flex: 1; min-width: 0; }
.cat-name { font-size: 13.5px; font-weight: 600; letter-spacing: .5px; }
.cat-sub { font-size: 11px; color: var(--text-light); line-height: 1.5; margin-top: 1px; }
.cat-right { display: flex; align-items: center; gap: 7px; }
.cat-read { font-size: 10px; color: var(--mint); background: var(--mint-soft); border-radius: 999px; padding: 0 7px; }
.cat-arrow { font-size: 16px; color: var(--text-light); }

/* 章节正文 */
.chapter-page { background: #fdfcf9; min-height: calc(100% - var(--nav-h)); }
.ch-head { text-align: center; padding: 20px 14px 16px; }
.ch-ornament { display: flex; align-items: center; justify-content: center; gap: 12px; }
.co-line { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
.co-line:last-child { background: linear-gradient(90deg, var(--accent), transparent); }
.co-no { font-size: 11px; color: #a5824f; letter-spacing: 2px; }
.ch-name { font-family: 'STKaiti', 'KaiTi', serif; font-size: 24px; letter-spacing: 5px; margin-top: 7px; }
.ch-sub { font-size: 12px; color: var(--text-light); line-height: 1.6; margin-top: 5px; }

/* 正文按需加载时的等待态（正文 ≈1.6MB，独立 bundle，见 scripture-chapters.js）
   min-height 让它落在视觉中部，否则内容挤在顶部、下面一大片空 */
.ch-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; min-height: 52vh; padding: 30px 0 80px;
}
.cl-dots { display: flex; gap: 9px; }
.cl-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #a5824f; opacity: .3;
  animation: clPulse 1.2s ease-in-out infinite;
}
.cl-dots i:nth-child(2) { animation-delay: .18s; }
.cl-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes clPulse {
  0%, 100% { opacity: .18; transform: scale(.8); }
  50%      { opacity: .85; transform: scale(1); }
}
.cl-text { font-size: 12.5px; color: var(--text-light); letter-spacing: 2px; }

.ch-body { padding: 0 18px; }
.blk-img { width: 100%; border-radius: 10px; margin: 10px 0 18px; display: block; }
.blk-h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text);
  margin: 22px 0 10px;
}
.h2-bar { width: 3px; height: 15px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--primary)); }
.blk-h3 { font-size: 14px; font-weight: 600; color: var(--primary-deep); margin: 16px 0 7px; letter-spacing: .5px; }
.blk-lead { font-size: 12px; color: var(--text-light); text-align: center; margin: 4px 0 14px; letter-spacing: 1px; }
.blk-quote {
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: 16px;
  line-height: 2;
  color: #6b5a3e;
  background: linear-gradient(180deg, #fdf8ef, #fbf3e6);
  border-left: 3px solid rgba(217, 174, 131, .6);
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  margin: 12px 0;
}
.quote-para { margin-bottom: 6px; }
.quote-para:last-child { margin-bottom: 0; }
.blk-list { margin: 10px 0; }
.list-li { display: flex; gap: 8px; font-size: 13px; line-height: 1.85; color: #56515f; margin-bottom: 5px; }
.li-idx {
  flex: 0 0 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blk-p { font-size: 14px; line-height: 1.95; color: #4a4653; margin-bottom: 12px; }
.p-para { margin-bottom: 8px; }
.p-para:last-child { margin-bottom: 0; }

/* 字号档位 */
.font-lv0 { --ch-fs: 14px; }
.font-lv1 { --ch-fs: 16px; }
.font-lv2 { --ch-fs: 18px; }
.font-lv3 { --ch-fs: 12.5px; }
.blk-p { font-size: var(--ch-fs, 14px); }
.blk-quote { font-size: calc(var(--ch-fs, 14px) + 2px); }

.ch-nav { display: flex; gap: 10px; padding: 22px 18px 10px; }
.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all .16s;
}
.nav-btn:hover { border-color: var(--primary-soft); background: #fbfafd; }
.nb-right { text-align: right; align-items: flex-end; }
.nb-dir { font-size: 11px; color: var(--text-light); }
.nb-name { font-size: 12.5px; color: var(--text); }
.nav-btn.is-off { opacity: .45; pointer-events: none; }
.ch-foot { text-align: center; padding: 8px 18px 26px; }
.cf-text { display: block; font-size: 11px; color: var(--text-light); }
.cf-tip { display: block; font-size: 10.5px; color: var(--text-light); opacity: .8; margin-top: 3px; }

.float-bar {
  position: sticky;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 18px 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(70, 66, 79, .88);
  color: #fff;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: all .26s ease;
  box-shadow: 0 8px 22px rgba(46, 40, 66, .3);
}
.float-bar.show { opacity: 1; transform: none; pointer-events: auto; }
.fb-progress { font-size: 11px; opacity: .8; padding-left: 6px; }
.fb-btn {
  margin-left: auto;
  font-size: 11.5px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  cursor: pointer;
}
.fb-btn + .fb-btn { margin-left: 0; }
.fb-btn:hover { background: rgba(255, 255, 255, .28); }

/* --------------------------------------------------------------------------
   我的
   -------------------------------------------------------------------------- */
.user-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 15px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #8f80bd 0%, #a99ad0 52%, #d3b48f 100%);
  box-shadow: 0 8px 22px rgba(122, 108, 150, .26);
}
.uc-glow {
  position: absolute;
  right: -34px; top: -46px;
  width: 132px; height: 132px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}
.uc-avatar {
  position: relative; z-index: 1;
  flex: 0 0 auto;
  width: 54px; height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, .18);
  border: 2px solid rgba(255, 255, 255, .5);
  display: flex; align-items: center; justify-content: center;
}
.uc-avatar-ph { font-size: 22px; color: rgba(255, 255, 255, .85); }
.uc-avatar-btn { position: relative; z-index: 1; flex: 0 0 auto; cursor: pointer; }
.uc-avatar-btn:hover .uc-avatar { border-color: rgba(255, 255, 255, .85); }
.uc-body { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }
.uc-name { font-size: 16px; font-weight: 600; color: #fff; letter-spacing: .5px; }
.uc-id {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; color: rgba(255, 255, 255, .78); margin-top: 4px;
}
.uc-id-val { font-family: "SF Mono", ui-monospace, monospace; letter-spacing: .5px; word-break: break-all; }
.uc-copy {
  font-size: 9.5px; padding: 1px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .34);
  cursor: pointer;
}
.uc-copy:hover { background: rgba(255, 255, 255, .34); }
.uc-badge {
  display: inline-block; font-size: 9.5px; margin-top: 6px;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .16);
  border-radius: 999px; padding: 2px 8px;
}
.uc-badge.is-wx { color: #eaf7ef; background: rgba(122, 191, 148, .42); }
.uc-nick-input {
  font-size: 15px; font-weight: 600; color: #fff;
  background: transparent; border: none;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  height: 26px; line-height: 26px;
  width: 100%; outline: none;
  font-family: inherit;
}
.uc-nick-input::placeholder { color: rgba(255, 255, 255, .55); font-weight: 400; }
.uc-action {
  position: relative; z-index: 1; flex: 0 0 auto;
  font-size: 12px; color: #fff;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  padding: 4px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.uc-action:hover { background: rgba(255, 255, 255, .34); }
.uc-action-main { background: #fff; color: #6e5f9b; font-weight: 600; border-color: #fff; }
.uc-action-main:hover { background: #f0edf7; }

.vip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #fbf6ef, #f6ecdd);
  border: 1px solid #f0e2cd;
  border-radius: var(--radius);
  padding: 13px 15px;
  margin-bottom: 12px;
  cursor: pointer;
}
.vip-card.is-vip { background: linear-gradient(135deg, #f7f0e2, #eddfc6); border-color: #e4d0ae; }
.vip-title { font-size: 14px; font-weight: 600; color: #8a6b3f; display: flex; align-items: center; gap: 5px; }
.vip-crown { color: var(--accent); }
.vip-desc { font-size: 11.5px; color: #a9946f; margin-top: 2px; }
.vip-btn {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #c99a6c);
  border-radius: 999px;
  padding: 5px 13px;
}

.stat-row {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 13px 0;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.stat-cell { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-num { font-size: 17px; font-weight: 600; color: var(--primary-deep); }
.stat-label { font-size: 11px; color: var(--text-light); }
.stat-line { width: 1px; height: 22px; background: var(--line); }

.empty-card { background: #fff; border-radius: var(--radius); padding: 30px 22px; text-align: center; box-shadow: var(--shadow); }
.ec-ring {
  width: 58px; height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
}
.ec-mark { font-family: 'STKaiti', 'KaiTi', serif; font-size: 24px; color: var(--primary-deep); }
.ec-title { font-size: 14px; font-weight: 600; }
.ec-desc { font-size: 12px; color: var(--text-light); line-height: 1.75; margin-top: 6px; }
.ec-btn {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  border-radius: 999px;
  padding: 7px 22px;
  cursor: pointer;
}

#view { scroll-behavior: smooth; }
.rec-anchor { display: block; height: 1px; }
.rec-group { margin-bottom: 14px; }
.group-head { display: flex; align-items: center; gap: 7px; padding: 0 2px 6px; }
.gh-letter {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-deep);
  letter-spacing: 1px;
}
.group-head.is-pin .gh-letter { color: var(--accent); }
.gh-count { font-size: 10px; color: var(--text-light); }
.rec-list { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rec-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .16s;
}
.rec-item:hover { background: #fbfafd; }
.rec-item:last-child { border-bottom: none; }
.rec-avatar {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary-soft), #fff);
  color: var(--primary-deep);
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(155, 140, 196, .22);
}
.av-pin { background: linear-gradient(135deg, var(--accent-soft), #fff); color: #a5824f; border-color: rgba(217, 174, 131, .4); }
.rec-body { flex: 1; min-width: 0; }
.rec-line1 { display: flex; align-items: center; gap: 7px; }
.rec-name { font-size: 14px; font-weight: 600; }
.rec-gender { font-size: 10px; color: var(--text-sub); background: var(--bg-soft); border-radius: 999px; padding: 0 7px; }
.rec-pin { font-size: 10px; color: #a5824f; background: var(--accent-soft); border-radius: 999px; padding: 0 7px; }
.rec-bazi {
  font-family: 'STSong', 'Songti SC', serif;
  font-size: 12.5px;
  color: var(--primary-deep);
  letter-spacing: 1px;
  margin: 2px 0;
}
.rec-line3 { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--text-light); }
.rec-more {
  flex: 0 0 26px;
  text-align: center;
  font-size: 16px;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 0;
}
.rec-more:hover { background: var(--bg-soft); color: var(--primary-deep); }

.letter-bar {
  position: sticky;
  bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 5px 10px;
  margin: 10px 0 4px;
  box-shadow: var(--shadow);
}
.lb-item {
  font-size: 10.5px;
  color: var(--text-sub);
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
}
.lb-item:hover { background: var(--primary-soft); color: var(--primary-deep); }
.lb-item.is-active { background: var(--primary-deep); color: #fff; }

.foot-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.fa-btn {
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
  background: #fff;
  border-radius: 11px;
  padding: 11px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.fa-btn:hover { color: var(--primary-deep); }
.fa-danger { color: #c08a80; }

/* --------------------------------------------------------------------------
   UI 层（toast / loading / modal / sheet）
   -------------------------------------------------------------------------- */
.ui-layer { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.ui-layer > * { pointer-events: auto; }

.ui-toast {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 62vw;
  background: rgba(48, 44, 58, .88);
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 10px;
  padding: 10px 16px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: opacity .28s;
}
.ui-toast.is-out { opacity: 0; }

.ui-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ui-loading-box {
  background: rgba(48, 44, 58, .86);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(6px);
}
.ui-spinner {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .26);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.ui-loading-text { font-size: 12px; color: #fff; }

.ui-mask {
  position: absolute;
  inset: 0;
  background: rgba(36, 32, 44, .38);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  animation: fadeIn .16s ease;
}
.ui-mask--sheet { align-items: flex-end; }
.ui-dialog {
  width: 276px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: popIn .2s ease;
}
@keyframes popIn { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.ui-dialog-title { font-size: 14px; font-weight: 600; text-align: center; padding: 16px 16px 6px; }
.ui-dialog-body {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-sub);
  text-align: center;
  padding: 4px 18px 14px;
  white-space: pre-wrap;
  max-height: 40vh;
  overflow-y: auto;
}
.ui-dialog-foot { display: flex; border-top: 1px solid var(--line); }
.ui-dialog-btn {
  flex: 1;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text-sub);
  padding: 12px 0;
  cursor: pointer;
}
.ui-dialog-btn + .ui-dialog-btn { border-left: 1px solid var(--line); }
.ui-dialog-btn.is-primary { color: var(--primary-deep); font-weight: 600; }
.ui-dialog-btn:hover { background: #faf9fc; }

.ui-sheet {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  padding-bottom: 8px;
  animation: slideUp .22s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.ui-sheet-item {
  display: block;
  width: 100%;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.ui-sheet-item:last-child { border-bottom: none; }
.ui-sheet-item:hover { background: #faf9fc; }
.ui-sheet-item.is-cancel { color: var(--text-light); margin-top: 6px; border-top: 6px solid #f4f2f6; }

/* --------------------------------------------------------------------------
   神煞一览 / 五行三口径 / 大运到月 / 流月详情
   -------------------------------------------------------------------------- */
.section-hint { font-size: 11px; color: var(--text-light); font-weight: 400; margin-left: 6px; }

.ss-legend {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--bg-soft);
}
.ssl-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.ssl-title { font-size: 12.5px; font-weight: 600; color: var(--text); }
.ssl-toggle { font-size: 11px; color: var(--primary-deep); }
.ssl-list { margin-top: 8px; }
.ssl-item { padding: 7px 0; border-top: 1px dashed var(--line); }
.ssl-item:first-child { border-top: none; }
.ssl-line { display: flex; align-items: center; gap: 6px; }
.ssl-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border-radius: 5px;
  padding: 0 7px;
}
.ssl-pillars { font-size: 10.5px; color: var(--text-light); }
.ssl-desc { margin-top: 3px; font-size: 11px; color: var(--text-sub); line-height: 1.6; }

.wx-group { margin-bottom: 12px; }
.wx-group:last-of-type { margin-bottom: 0; }
.wg-title { display: flex; align-items: baseline; gap: 7px; margin-bottom: 6px; }
.wg-name { font-size: 12px; font-weight: 600; color: var(--text); }
.wg-note { font-size: 10px; color: var(--text-light); }
.wx-missing-sub { color: var(--text-light); }

.dy-range { font-size: 9px; color: var(--text-light); letter-spacing: -.2px; }
.dayun-item.is-on .dy-range { color: var(--primary-deep); opacity: .8; }

.det-label { display: flex; align-items: center; gap: 7px; margin: 12px 0 7px; }
.det-label--gap { margin-top: 15px; }
.det-label > span:first-child { font-size: 13px; font-weight: 600; color: var(--text); }
.det-hint { font-size: 10.5px; color: var(--text-light); }

.det-card {
  border: 1px solid var(--primary-soft);
  border-radius: 11px;
  padding: 11px 12px;
  background: linear-gradient(150deg, #ffffff 0%, #faf7fd 100%);
}
.det-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.det-gz {
  flex: 0 0 auto;
  display: flex;
  gap: 2px;
  font-family: 'STSong', 'Songti SC', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}
.det-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.det-title { font-size: 13px; font-weight: 600; color: var(--text); }
.det-sub { font-size: 10.5px; color: var(--text-light); }

.det-grid { display: flex; flex-wrap: wrap; padding-top: 7px; }
.dg-item { flex: 0 0 50%; display: flex; align-items: baseline; gap: 5px; padding: 4px 0; }
.dg-wide { flex: 0 0 100%; }
.dg-k { flex: 0 0 30px; font-size: 10.5px; color: var(--text-light); }
.dg-v { flex: 1; font-size: 11.5px; color: var(--text); line-height: 1.6; word-break: break-all; }
.dg-dot { color: var(--text-light); }
.dg-none { color: var(--text-light); }

.liuyue-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.ly-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 2px;
  border-radius: 7px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s;
}
.ly-item.is-on { background: var(--primary-soft); border-color: rgba(155, 140, 196, .5); }
.ly-m { font-size: 9.5px; color: var(--text-light); }
.ly-gz { font-size: 12px; font-family: 'STSong', 'Songti SC', serif; color: var(--text); }
.ly-item.is-on .ly-gz { color: var(--primary-deep); font-weight: 600; }

/* 五行着色优先级高于默认文本色 */
.dy-gz.el-mu, .ln-gz.el-mu, .ly-gz.el-mu, .det-gz .el-mu { color: var(--wx-mu); }
.dy-gz.el-huo, .ln-gz.el-huo, .ly-gz.el-huo, .det-gz .el-huo { color: var(--wx-huo); }
.dy-gz.el-tu, .ln-gz.el-tu, .ly-gz.el-tu, .det-gz .el-tu { color: var(--wx-tu); }
.dy-gz.el-jin, .ln-gz.el-jin, .ly-gz.el-jin, .det-gz .el-jin { color: var(--wx-jin); }
.dy-gz.el-shui, .ln-gz.el-shui, .ly-gz.el-shui, .det-gz .el-shui { color: var(--wx-shui); }

/* ==========================================================================
   新增：可点击栏目 / 三宫行 / 流月日期 / 术语释义弹窗
   ========================================================================== */
.bt-tap { color: var(--primary-deep); cursor: pointer; }
.bt-i {
  font-style: normal;
  font-size: 9px;
  color: var(--primary);
  margin-left: 1px;
  opacity: .75;
}
.bt-row--gong { background: #fcfbfe; }
.bt-merged {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 4px;
}
.bm-gz {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-family: 'STSong', 'Songti SC', serif;
  letter-spacing: 1px;
}
.bm-na { font-size: 10.5px; color: var(--text-light); }

.ly-d { font-size: 9px; color: var(--text-light); }
.ly-item.is-on .ly-d { color: var(--primary-deep); opacity: .85; }
.ln-partial { font-size: 8.5px; color: var(--accent); }
.ln-item.is-on .ln-partial { color: var(--primary-deep); opacity: .85; }

.info-mask {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(46, 42, 60, .42);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.info-panel {
  width: 100%;
  max-width: 430px;
  max-height: 78vh;
  background: var(--card);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 14px;
  box-shadow: var(--shadow-lg);
}
.info-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.info-title { font-size: 15px; font-weight: 700; color: var(--text); }
.info-close { cursor: pointer; color: var(--text-light); font-size: 14px; padding: 0 4px; }
.info-body { flex: 1; overflow-y: auto; }
.info-intro {
  font-size: 11.5px;
  color: var(--text-sub);
  line-height: 1.82;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.info-values { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.iv-item {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  background: #fff;
}
.iv-k { font-size: 10px; color: var(--text-light); }
.iv-v { font-size: 11px; color: var(--text); font-weight: 600; }
.info-item { padding: 9px 10px; border-top: 1px dashed var(--line); border-radius: 8px; }
.info-item.is-hit {
  border-top-color: transparent;
  background: linear-gradient(100deg, var(--primary-soft), rgba(237, 233, 247, 0));
}
.ii-head { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.ii-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.ii-hit {
  font-size: 9.5px;
  color: var(--primary-deep);
  background: #fff;
  border-radius: 999px;
  padding: 1px 8px;
}
.ii-meta { font-size: 9.5px; color: var(--text-light); }
.ii-text { font-size: 11.5px; color: var(--text-sub); line-height: 1.75; }
.info-foot {
  margin-top: 12px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   窄屏适配
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .stage-side { display: none; }
}
@media (max-width: 460px) {
  body { padding: 0; }
  .stage { gap: 0; }
  .phone {
    width: 100vw;
    flex: 0 0 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    background: var(--bg);
  }
  .phone-screen { border-radius: 0; }
  .status-bar { display: none; }
}

/* --------------------------------------------------------------------------
   藏经阁 · 无封面书籍的兜底主视觉（如《道德经》）
   -------------------------------------------------------------------------- */
.book-hero-plain {
  background: linear-gradient(135deg, #4A4453 0%, #6E6288 48%, #9A8CB8 100%);
}
/* 道家经典分两层，勿混用：
   · book-hero-tao       → 仅换遮罩色（暖褐）。默认的紫灰渐变压在赭黄水墨上会发浑
                           偏脏，暖褐才留得住古意；透明度沿用默认档位，白字仍够对比。
                           有封面时也生效。
   · book-hero-tao-plain → 墨绿渐变底，只在无封面兜底时铺；有封面时若仍铺，
                           会透过半透明底图混出浑浊的橄榄色 */
.book-hero-tao-plain {
  background: linear-gradient(135deg, #2F4A3E 0%, #4F7A5E 50%, #7FA88C 100%);
}
.book-hero-tao .hero-mask {
  background: linear-gradient(180deg, rgba(40, 32, 24, .30) 0%, rgba(40, 32, 24, .74) 100%);
}
.hero-seal {
  width: 82px;
  height: 112px;
  flex: 0 0 82px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
}
.hero-seal-txt {
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 44px;
  color: #fff;
  opacity: .93;
}
.book-cover-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #6E6288, #9A8CB8);
}
.book-cover-tao { background: linear-gradient(150deg, #47675A, #7FA88C); }
.bcp-txt {
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: 30px;
  color: #fff;
  opacity: .94;
}
.book-tag-tao { color: #4F7A5E; background: var(--matcha-soft); }
