/* web.css — 「聊明天」web 壳专属样式（从 app.css 物理拆分：PR split-css-by-shell）。
 *
 * 仅 index.html（html[data-shell="web"]）在 app.css 的 <link> 之后加载本文件；
 * index-mini.html 不引用它 → mini 壳从物理上不加载任何 web 规则（隔离即保证，不靠手工前缀纪律）。
 * 本文件每条规则的选择器都以 html[data-shell="web"] 打头：相较 app.css 同族基础规则多一个
 * 属性选择器，特异性天然更高，故两文件加载次序不影响层叠结果；web 规则之间保持原相对顺序即安全。
 * 维护：新增/修改 web-only 规则写这里；两壳共用 base 写 app.css。
 */

/* ============================================================
   Web 壳（html[data-shell="web"]）：桌面为主 + 手机适配。
   把共享的 .tabbar 从 mini 底部 tab 覆盖成桌面顶栏导航；内容列居中定宽。
   仅 [data-shell="web"] 作用域，零影响 mini。
   ============================================================ */

/* ── 侧栏工作台（登录态 body.app-live）：#topbar 复用为左侧栏（品牌↑/导航中/actions↓），
      main 用满右侧宽度。body.app-live 由 render.js 挂（避开 :has 的 iOS<15.4 兼容问题；
      welcome/login 无 app-live → main 全宽、欢迎页照常居中）。DNA：claude 的 ring 阴影
      + hover 换底色台阶 + 暖中性。 */
html[data-shell="web"] body.app-live {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100dvh;
  /* 清 body 基础的安全区 padding：否则叠 100dvh 子项 → iOS 外层多算一段安全区、
     出现双滚动/底部空白。安全区改由侧栏/main/顶条各自补回（见下）。 */
  padding: 0;
}
/* 侧栏：深墨绿古籍底 + 反白导航，与黄纸主区成「墨构/黄底」对比 */
html[data-shell="web"] body.app-live #topbar {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  height: 100dvh;
  position: sticky;
  top: 0;
  /* 安全区补回：侧栏在左，防刘海（横屏 left）遮导航、Home 条遮底部 actions */
  padding: max(22px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
  background: #12312c;
  border-bottom: none;
  box-shadow: 1px 0 0 rgb(0 0 0 / 0.14); /* ring 式：无硬边框的容纳感 */
  color: #e9e2cf;
}
html[data-shell="web"] body.app-live .brand {
  padding: 2px 8px 22px;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.06em;
  color: #f2ead4;
}
/* 竖向导航：反白 + hover 底色台阶 + active 左缘 sage 竖条（签名交互，动效档 3 克制） */
html[data-shell="web"] body.app-live #tabbar {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  border: none;
  background: transparent;
  padding: 0;
  overflow: visible;
}
html[data-shell="web"] body.app-live .tabbar .tab {
  position: relative;
  flex: 0 0 auto;
  justify-content: flex-start;
  text-align: left;
  padding: 11px 14px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 15.5px;
  letter-spacing: 0.02em;
  color: #b7c6bb;
  /* 克制过渡（motion 3）：hover 底色/文字换档不再瞬变 */
  transition: background 140ms cubic-bezier(0.23, 1, 0.32, 1),
    color 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
html[data-shell="web"] body.app-live .tabbar .tab:hover {
  background: rgb(255 255 255 / 0.07);
  color: #f2ead4;
}
html[data-shell="web"] body.app-live .tabbar .tab.on {
  background: rgb(255 255 255 / 0.1);
  color: #ffffff;
  font-weight: 600;
}
html[data-shell="web"] body.app-live .tabbar .tab.on::before {
  content: none;
}
html[data-shell="web"] body.app-live .tabbar .tab.on::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--sage);
  border-radius: 0 2px 2px 0;
}
/* actions（相处设定/退出/theme/尾号）→ 侧栏底部，反白竖排 */
html[data-shell="web"] body.app-live .topbar-right {
  margin-top: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}
html[data-shell="web"] body.app-live #topbar-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}
html[data-shell="web"] body.app-live .topbar-right .btn-icon {
  justify-content: flex-start;
  text-align: left;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #9fb0a4;
}
html[data-shell="web"] body.app-live .topbar-right .btn-icon:hover {
  background: rgb(255 255 255 / 0.07);
  color: #f2ead4;
}
html[data-shell="web"] body.app-live #phone-tag {
  color: #7f938a;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  cursor: default;
}
html[data-shell="web"] body.app-live #phone-tag:hover {
  background: transparent;
}
/* 主区：用满右列，独立纵向滚动，细滚动条（craft：自定义滚动条） */
html[data-shell="web"] body.app-live main {
  min-width: 0;
  height: 100dvh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
  /* body 安全区已清零 → main 作为独立滚动容器补回底/右安全区 */
  padding-bottom: env(safe-area-inset-bottom);
  padding-right: env(safe-area-inset-right);
}
html[data-shell="web"] body.app-live main::-webkit-scrollbar {
  width: 9px;
}
html[data-shell="web"] body.app-live main::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 999px;
  border: 2px solid var(--paper);
}
/* craft：品牌 focus 环（替浏览器蓝）+ ::selection 品牌染 */
html[data-shell="web"] ::selection {
  background: var(--cinnabar-wash);
  color: var(--ink);
}
html[data-shell="web"] .tabbar .tab:focus-visible,
html[data-shell="web"] .btn-icon:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 2px;
}

/* ── 对话大师条（web 桌面精修）：聊天列顶一条纤细工具行。base（.chat-master-bar /
      .cmb-* ，mini 移动样式）已给纸感底、下分隔、chips 下拉；这里只做桌面化——
      当前师名衬线、chips pill hover 走 --cinnabar* 主强调族。仅 web 作用域；
      mini 无 initChatMaster、条恒隐（#622 审核整改），零影响。 ── */
html[data-shell="web"] .cmb-cur {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--ink);
}
html[data-shell="web"] .cmb-switch {
  padding: 2px 9px;
  border-radius: 999px;
  transition: background 120ms ease;
}
html[data-shell="web"] .cmb-switch:hover {
  background: var(--cinnabar-wash);
}
html[data-shell="web"] .cmb-chip {
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
html[data-shell="web"] .cmb-chip:hover {
  border-color: var(--cinnabar);
  background: var(--cinnabar-wash);
  color: var(--cinnabar-text);
}
/* 键盘焦点环与 web 壳其余控件（.tabbar .tab / .btn-icon）一致 */
html[data-shell="web"] .cmb-switch:focus-visible,
html[data-shell="web"] .cmb-chip:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 2px;
}

/* ── 聊天 HUD（Phase B2）：master bar 左侧的「当前盘 chip」+ 校准小徽标，
      chat-hud.js 填充。视觉与 cmb- / wb-chip 系同族（纸感底/下分隔/pill 徽标）。
      mini 无 #chat-chart-chip 容器，规则天然零命中，仍按本文件惯例带 shell 前缀。 ── */
html[data-shell="web"] .chat-chart-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bar-wash);
  border-bottom: 1px solid var(--rule-soft);
  flex: 1;
  min-width: 0;
}
/* 左右两段之间加分隔（同 app.css 里 subject-bar+master-bar 的合并条分隔规则） */
html[data-shell="web"] .chat-context-bar > .chat-chart-chip:not(.hidden) + .chat-master-bar:not(.hidden) {
  border-left: 1px solid var(--rule-soft);
}

/* ── 文章：阅读优先，管理仅在 allowlist 命中后由 articles.js 显示。 ── */
html[data-shell="web"] .articles-panel {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 88px;
}
html[data-shell="web"] .articles-head {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
html[data-shell="web"] .articles-head p,
html[data-shell="web"] .article-meta {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cinnabar-text);
}
html[data-shell="web"] .articles-head .articles-deck {
  max-width: 36em;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}
html[data-shell="web"] .articles-head h1,
html[data-shell="web"] .article-reader h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
html[data-shell="web"] .articles-head h1 { font-size: 32px; }
html[data-shell="web"] .article-reader {
  width: min(100%, 780px);
  margin: 0 auto;
}
/* 报刊索引式文章块(方向 A):标题 + 灰时间 + 摘要 + 阅读全文,发丝线分隔,慷慨留白 */
html[data-shell="web"] .article-post {
  position: relative;
  counter-increment: article-index;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.23, 1, 0.32, 1);
}
html[data-shell="web"] .articles-list {
  counter-reset: article-index;
}
html[data-shell="web"] .article-post::before {
  display: block;
  margin-bottom: 20px;
  color: var(--cinnabar-text);
  content: counter(article-index, decimal-leading-zero);
  font-size: 11px;
  letter-spacing: 0.12em;
}
html[data-shell="web"] .article-post:last-child { border-bottom: 0; }
html[data-shell="web"] .article-post:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 4px;
  border-radius: 4px;
}
html[data-shell="web"] .article-post-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  overflow-wrap: anywhere;
  transition: color 0.15s ease-out;
}
html[data-shell="web"] .article-post-meta {
  margin: 0 0 11px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
html[data-shell="web"] .article-post-excerpt {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
html[data-shell="web"] .article-post-more {
  margin: 0;
  font-size: 12.5px;
  color: var(--cinnabar-text);
}
@media (hover: hover) and (pointer: fine) {
  html[data-shell="web"] .article-post:hover { transform: translateX(3px); }
  html[data-shell="web"] .article-post:hover .article-post-title { color: var(--cinnabar-text); }
}
/* 标签:朱砂印记 pill。列表副行下方 / 阅读页标题与正文之间 */
html[data-shell="web"] .article-post-tags,
html[data-shell="web"] .article-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
html[data-shell="web"] .article-tags { margin: 0 0 30px; }
html[data-shell="web"] .article-tag {
  padding: 2px 11px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--seal-red);
  background: rgb(192 64 42 / 0.07);
  border: 1px solid rgb(192 64 42 / 0.22);
  border-radius: 999px;
  white-space: nowrap;
}
/* 暗底印泥:用暗色 seal-red(#d66a48)调 wash/描边,与提亮的印章红文字同源 */
html[data-shell="web"][data-theme="dark"] .article-tag {
  background: rgb(214 106 72 / 0.1);
  border-color: rgb(214 106 72 / 0.3);
}
html[data-shell="web"] .articles-admin-row span { flex: 0 0 auto; font-size: 12px; color: var(--ink-faint); }
html[data-shell="web"] .articles-empty { padding: 36px 0; color: var(--ink-faint); }
html[data-shell="web"] .article-back {
  margin: 0 0 34px;
  padding: 0;
  color: var(--cinnabar-text);
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}
html[data-shell="web"] .article-reader h1 { margin-bottom: 30px; font-size: clamp(28px, 5vw, 42px); line-height: 1.3; }
html[data-shell="web"] .article-body { font-size: 16px; line-height: 2; color: var(--ink-soft); }
html[data-shell="web"] .article-body h1,
html[data-shell="web"] .article-body h2,
html[data-shell="web"] .article-body h3 { margin: 1.9em 0 0.65em; color: var(--ink); font-family: var(--font-serif); line-height: 1.45; }
html[data-shell="web"] .article-body p { margin: 0 0 1.2em; }
html[data-shell="web"] .article-body ul { margin: 0 0 1.2em; padding-left: 1.4em; }
html[data-shell="web"] .article-body a { color: var(--cinnabar-text); text-decoration-color: var(--cinnabar); }
html[data-shell="web"] .article-body img { display: block; max-width: 100%; height: auto; margin: 1.4em auto; border-radius: 8px; }
html[data-shell="web"] .article-video { position: relative; width: min(100%, 760px); aspect-ratio: 16 / 9; margin: 1.6em 0; background: var(--card); }
html[data-shell="web"] .article-video iframe { width: 100%; height: 100%; border: 0; }
html[data-shell="web"] .articles-admin { margin-top: 46px; }
html[data-shell="web"] .articles-admin-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
html[data-shell="web"] .articles-admin h2 { margin: 0; font-family: var(--font-serif); font-size: 26px; }
html[data-shell="web"] .articles-admin-head p { margin: 6px 0 0; font-size: 13px; color: var(--ink-faint); }
html[data-shell="web"] .articles-new { display: flex; gap: 8px; padding: 6px; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; }
html[data-shell="web"] .articles-new input { width: 240px; min-height: 36px; padding: 0 10px; color: var(--ink); background: transparent; border: 0; outline: 0; font: inherit; }
html[data-shell="web"] .articles-new .btn-primary { min-height: 36px; padding: 0 16px; border-radius: 7px; }
/* 列表:纸面卡,行可点,状态徽记 */
html[data-shell="web"] .articles-admin-columns,
html[data-shell="web"] .articles-admin-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 104px auto; align-items: center; gap: 12px; }
html[data-shell="web"] .articles-admin-columns { padding: 0 18px 8px; color: var(--ink-faint); font-size: 12px; }
html[data-shell="web"] .articles-admin-list { overflow: hidden; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 1px 3px rgb(30 37 33 / 0.07); }
html[data-shell="web"] .articles-admin-row { padding: 13px 18px; cursor: pointer; transition: background 120ms cubic-bezier(0.23, 1, 0.32, 1); }
html[data-shell="web"] .articles-admin-row:hover { background: var(--cinnabar-wash); }
html[data-shell="web"] .articles-admin-row + .articles-admin-row { border-top: 1px solid var(--rule-soft); }
html[data-shell="web"] .articles-admin-row strong { overflow: hidden; font-family: var(--font-serif); font-size: 15.5px; text-overflow: ellipsis; white-space: nowrap; }
html[data-shell="web"] .articles-admin-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-faint); }
html[data-shell="web"] .articles-admin-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); opacity: 0.5; }
html[data-shell="web"] .articles-admin-status.published { color: var(--cinnabar-deep); }
html[data-shell="web"] .articles-admin-status.published::before { background: var(--cinnabar); opacity: 1; }
html[data-shell="web"] .articles-admin-row > span:not(.articles-admin-status) { overflow: hidden; font-size: 12px; color: var(--ink-faint); text-overflow: ellipsis; white-space: nowrap; }
html[data-shell="web"] .articles-admin-actions button { min-height: 30px; padding: 0 11px; font-size: 13px; color: var(--ink-soft); background: transparent; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; }
html[data-shell="web"] .articles-admin-actions button:hover { color: var(--cinnabar-deep); border-color: var(--cinnabar-mute); }
html[data-shell="web"] .articles-admin-actions .articles-admin-danger { color: var(--seal-red); }
html[data-shell="web"] .articles-admin-actions .articles-admin-danger:hover { color: var(--seal-ink); background: var(--seal-red); border-color: var(--seal-red); }
html[data-shell="web"] .articles-admin-empty { padding: 34px 18px; margin: 0; color: var(--ink-faint); text-align: center; font-size: 14px; }
html[data-shell="web"] .articles-admin-actions { display: flex; gap: 6px; }
html[data-shell="web"] .articles-panel:has(.article-editor:not(.hidden)) { width: 100%; max-width: 1400px; }
html[data-shell="web"] .articles-panel:has(.articles-admin:not(.hidden)) { width: 100%; max-width: 1100px; }
html[data-shell="web"] .article-editor { margin: -18px 0 0; }
/* ── 案头(顶栏):归组分区,操作有主次 ── */
html[data-shell="web"] .article-editor-top { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 0 14px; border-bottom: 1px solid var(--rule); }
html[data-shell="web"] .article-editor-top button,
html[data-shell="web"] .article-editor-modes,
html[data-shell="web"] .article-editor-switcher { font: inherit; }
html[data-shell="web"] .article-editor-back { padding: 6px 10px 6px 0; color: var(--ink-soft); background: transparent; border: 0; cursor: pointer; transition: color 120ms cubic-bezier(0.23, 1, 0.32, 1); }
html[data-shell="web"] .article-editor-back:hover { color: var(--cinnabar-deep); }
html[data-shell="web"] .article-editor-switcher { min-width: 0; max-width: 290px; padding: 7px 28px 7px 10px; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; background: var(--card); border: 1px solid var(--rule); border-radius: 7px; }
html[data-shell="web"] .article-editor-modes { display: flex; gap: 2px; margin-left: auto; padding: 3px; background: var(--rule-soft); border-radius: 999px; }
html[data-shell="web"] .article-editor-mode { padding: 5px 15px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 999px; cursor: pointer; transition: background 120ms cubic-bezier(0.23, 1, 0.32, 1), color 120ms cubic-bezier(0.23, 1, 0.32, 1); }
html[data-shell="web"] .article-editor-mode.active { color: var(--cinnabar-deep); background: var(--card); box-shadow: 0 1px 2px rgb(30 37 33 / 0.14); }
html[data-shell="web"] .article-editor-save { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-faint); }
html[data-shell="web"] .article-editor-save::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
html[data-shell="web"] .article-editor-save[data-state="dirty"]::before { background: #c9a34c; }
html[data-shell="web"] .article-editor-save[data-state="saving"]::before { background: #c9a34c; animation: article-save-pulse 900ms ease-in-out infinite; }
@keyframes article-save-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
  html[data-shell="web"] .article-editor-save[data-state="saving"]::before { animation: none; }
}
html[data-shell="web"] .article-editor-manual-save { min-height: 34px; padding: 0 13px; color: var(--ink-soft); background: transparent; border: 1px solid var(--rule); border-radius: 7px; cursor: pointer; }
html[data-shell="web"] .article-editor-manual-save:hover { color: var(--cinnabar-deep); border-color: var(--cinnabar-mute); }
html[data-shell="web"] .article-editor-status { min-height: 34px; padding: 0 18px; color: var(--seal-ink); background: var(--cinnabar); border: 1px solid var(--cinnabar); border-radius: 7px; cursor: pointer; transition: background 120ms cubic-bezier(0.23, 1, 0.32, 1); }
html[data-shell="web"] .article-editor-status:hover { background: var(--cinnabar-hover); }
html[data-shell="web"] .article-editor-status:active { transform: scale(0.97); }
/* ── 标题:文章的名字应该长得像标题,不是表单项 ── */
html[data-shell="web"] .article-editor-fields { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: end; padding: 14px 0 12px; }
html[data-shell="web"] .article-editor-cover-field { grid-template-columns: minmax(0, 1fr) auto; max-width: 380px; column-gap: 6px; }
html[data-shell="web"] .article-editor-cover-field > span { grid-column: 1 / -1; }
html[data-shell="web"] .article-editor-cover-field input { min-height: 34px; font-size: 13px; background: transparent; border-color: var(--rule-soft); }
html[data-shell="web"] .article-editor-cover-field input:focus { background: var(--card); border-color: var(--rule); }
html[data-shell="web"] .article-editor-tags-field input { min-height: 34px; font-size: 13px; background: transparent; border-color: var(--rule-soft); }
html[data-shell="web"] .article-editor-tags-field input:focus { background: var(--card); border-color: var(--rule); }
html[data-shell="web"] .article-editor-cover-upload { align-self: end; min-height: 34px; padding: 0 11px; color: var(--cinnabar-deep); background: var(--cinnabar-wash); border: 1px solid var(--cinnabar-mute); border-radius: 999px; font: inherit; font-size: 12px; cursor: pointer; }
html[data-shell="web"] .article-editor-cover-upload:disabled { opacity: 0.6; cursor: default; }
html[data-shell="web"] .article-editor-field { display: grid; gap: 6px; font-size: 12px; color: var(--ink-faint); }
html[data-shell="web"] .article-editor-field input { min-width: 0; min-height: 38px; padding: 0 10px; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 7px; font: inherit; }
html[data-shell="web"] .article-editor-title-field span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html[data-shell="web"] .article-editor-title-field { position: relative; }
html[data-shell="web"] .article-editor-title-field input { min-height: 46px; padding: 4px 2px; font-family: var(--font-serif); font-size: 26px; font-weight: 600; letter-spacing: 0.01em; background: transparent; border: 0; border-bottom: 1px solid transparent; border-radius: 0; }
html[data-shell="web"] .article-editor-title-field input:focus { outline: 0; border-bottom-color: var(--cinnabar-mute); }
html[data-shell="web"] .article-editor-title-field input::placeholder { color: var(--ink-faint); }
/* ── 工作区:左纸右人 ── */
html[data-shell="web"] .article-editor-b-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.65fr); gap: 18px; height: calc(100dvh - 316px); min-height: 540px; }
html[data-shell="web"] .article-editor-b-preview { overflow: auto; }
html[data-shell="web"] .article-editor-briefing { min-height: 0; }
html[data-shell="web"] .article-editor-b-preview { min-width: 0; padding: clamp(28px, 4vw, 56px); background: var(--card); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 1px 3px rgb(30 37 33 / 0.07); }
html[data-shell="web"] .article-editor-b-preview-body { max-width: 68ch; margin: 0 auto; }
html[data-shell="web"] .article-editor-briefing { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 1px 3px rgb(30 37 33 / 0.07); }
html[data-shell="web"] .article-editor-briefing-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--rule-soft); }
html[data-shell="web"] .article-editor-briefing-seal { display: grid; place-items: center; width: 24px; height: 24px; font-family: var(--font-serif); font-size: 13px; color: var(--seal-ink); background: var(--seal-red); border-radius: 6px; }
html[data-shell="web"] .article-editor-briefing strong { font-family: var(--font-serif); font-size: 16px; font-weight: 600; color: var(--ink); }
html[data-shell="web"] .article-editor-hand-edit { min-height: 28px; margin-left: auto; padding: 0 10px; font-size: 12.5px; color: var(--ink-soft); background: transparent; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; }
html[data-shell="web"] .article-editor-hand-edit:hover { color: var(--cinnabar-deep); border-color: var(--cinnabar-mute); }
/* 空态:引导而不是留白 */
html[data-shell="web"] .article-editor-empty { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 320px; color: var(--ink-soft); text-align: center; }
html[data-shell="web"] .article-editor-empty p { margin: 0; font-family: var(--font-serif); font-size: 17px; }
html[data-shell="web"] .article-editor-empty .article-editor-empty-sub { font-family: var(--font-sans); font-size: 13px; color: var(--ink-faint); }
html[data-shell="web"] .article-editor-empty-stamp { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 8px; font-family: var(--font-serif); font-size: 21px; color: var(--seal-ink); background: var(--seal-red); border-radius: 10px; box-shadow: 0 2px 6px rgb(192 64 42 / 0.28); }
/* 对话流+快捷 chips */
html[data-shell="web"] .article-editor-chat-turns { display: flex; flex: 1; flex-direction: column; gap: 3px; min-height: 180px; overflow: auto; }
html[data-shell="web"] .article-editor-chat-turns .msg { flex: 0 0 auto; }
html[data-shell="web"] .article-editor-chat-hint { padding: 6px 0 2px; font-size: 13.5px; line-height: 1.7; color: var(--ink-soft); }
html[data-shell="web"] .article-editor-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
html[data-shell="web"] .article-editor-chip { padding: 7px 13px; font-size: 13px; color: var(--ink-soft); background: var(--sage-wash); border: 1px solid var(--sage-line); border-radius: 999px; cursor: pointer; transition: background 120ms cubic-bezier(0.23, 1, 0.32, 1), color 120ms cubic-bezier(0.23, 1, 0.32, 1); }
html[data-shell="web"] .article-editor-chip:hover { color: var(--cinnabar-deep); background: var(--cinnabar-wash); border-color: var(--cinnabar-mute); }
html[data-shell="web"] .article-editor-apply-draft { align-self: flex-start; min-height: 30px; margin-top: 6px; padding: 0 12px; color: var(--cinnabar-deep); background: var(--cinnabar-wash); border: 1px solid var(--cinnabar-mute); border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }
html[data-shell="web"] .article-editor-apply-draft:hover { background: var(--cinnabar); color: var(--seal-ink); }
/* 输入条:聊天感 */
html[data-shell="web"] .article-editor-chat-composer { display: flex; gap: 8px; align-items: flex-end; padding: 8px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; }
html[data-shell="web"] .article-editor-chat-composer:focus-within { border-color: var(--cinnabar-mute); }
html[data-shell="web"] .article-editor-chat-composer textarea { flex: 1; min-width: 0; min-height: 34px; padding: 7px 4px; resize: none; color: var(--ink); background: transparent; border: 0; outline: 0; font: inherit; line-height: 1.5; }
html[data-shell="web"] .article-editor-chat-composer button { flex: 0 0 auto; min-height: 34px; padding: 0 16px; color: var(--seal-ink); background: var(--cinnabar); border: 0; border-radius: 999px; font: inherit; cursor: pointer; }
html[data-shell="web"] .article-editor-chat-composer button:hover { background: var(--cinnabar-hover); }
html[data-shell="web"] .article-editor-chat-composer button:active { transform: scale(0.97); }
html[data-shell="web"] .article-editor-chat-composer button:disabled { opacity: 0.55; cursor: default; }
/* ── 画布模式:同一张纸 ── */
html[data-shell="web"] .article-editor-canvas { min-height: calc(100dvh - 316px); padding: clamp(24px, 4vw, 56px); background: var(--card); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 1px 3px rgb(30 37 33 / 0.07); }
html[data-shell="web"] .article-editor-canvas-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
html[data-shell="web"] .article-editor-view { padding: 6px 12px; color: var(--ink-faint); background: var(--card); border: 0; cursor: pointer; font: inherit; }
html[data-shell="web"] .article-editor-view-switcher { display: flex; flex: 0 0 auto; border: 1px solid var(--rule); border-radius: 7px; overflow: hidden; }
html[data-shell="web"] .article-editor-view + .article-editor-view { border-left: 1px solid var(--rule); }
html[data-shell="web"] .article-editor-view.active { color: var(--cinnabar-deep); background: var(--cinnabar-wash); }
html[data-shell="web"] .article-editor-toolbar { display: flex; flex-wrap: wrap; gap: 7px; }
html[data-shell="web"] .article-editor-toolbar-button { min-height: 32px; padding: 0 12px; color: var(--ink-soft); background: var(--sage-wash); border: 1px solid var(--sage-line); border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }
html[data-shell="web"] .article-editor-toolbar-button:hover { color: var(--cinnabar-deep); background: var(--cinnabar-wash); border-color: var(--cinnabar-mute); }
html[data-shell="web"] .article-editor-toolbar-button:disabled { opacity: 0.6; cursor: default; }
html[data-shell="web"] .article-editor-upload-notice { position: fixed; z-index: 20; left: 50%; bottom: 24px; max-width: calc(100vw - 32px); padding: 9px 13px; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 999px; box-shadow: 0 4px 14px rgb(30 37 33 / 0.16); font-size: 13px; transform: translateX(-50%); }
html[data-shell="web"] .article-editor-markdown { display: block; box-sizing: border-box; width: 100%; min-height: 500px; padding: 0; resize: vertical; color: var(--ink); background: transparent; border: 0; outline: 0; font: 14px/1.85 ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace; }
html[data-shell="web"] .article-editor-canvas-preview { min-height: 500px; }
html[data-shell="web"] .article-editor-ai-bar { position: sticky; bottom: 14px; display: flex; justify-content: center; padding-top: 20px; pointer-events: auto; }
html[data-shell="web"] .article-editor-ai-bar .article-editor-chat-composer { width: min(660px, 100%); background: var(--card); box-shadow: 0 4px 14px rgb(30 37 33 / 0.12); }
@media (max-width: 640px) {
  html[data-shell="web"] .articles-panel { padding: 32px 18px 52px; }
  html[data-shell="web"] .article-post::before { margin-bottom: 12px; }
  html[data-shell="web"] .articles-admin-head { align-items: stretch; flex-direction: column; }
  html[data-shell="web"] .articles-new input { flex: 1; width: auto; }
  html[data-shell="web"] .articles-admin-columns { display: none; }
  html[data-shell="web"] .articles-admin-row { grid-template-columns: minmax(0, 1fr) auto; }
  html[data-shell="web"] .articles-admin-row span { display: none; }
  html[data-shell="web"] .article-editor { margin-top: 0; }
  html[data-shell="web"] .article-editor-top { flex-wrap: wrap; }
  html[data-shell="web"] .article-editor-switcher { order: 3; flex: 1 1 100%; max-width: none; }
  html[data-shell="web"] .article-editor-modes { margin-left: auto; }
  html[data-shell="web"] .article-editor-fields { grid-template-columns: 1fr; }
  html[data-shell="web"] .article-editor-canvas { min-height: 540px; padding: 20px; }
  html[data-shell="web"] .article-editor-markdown { min-height: 430px; }
  html[data-shell="web"] .article-editor-b-layout { grid-template-columns: 1fr; height: auto; min-height: 0; }
  html[data-shell="web"] .article-editor-canvas { min-height: 540px; }
  html[data-shell="web"] .article-editor-briefing { min-height: 240px; }
}
html[data-shell="web"] .chc-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
html[data-shell="web"] .chc-label {
  font-family: var(--font-serif);
  font-size: 13.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-shell="web"] .chc-empty {
  color: var(--cinnabar-text);
}
html[data-shell="web"] .chc-pillars {
  min-width: 0;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-shell="web"] .chc-calib {
  flex-shrink: 0;
  margin-left: auto;
  padding: 3px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--card);
  font-family: inherit;
  font-size: 11.5px;
  color: var(--cinnabar-deep);
  cursor: pointer;
  white-space: nowrap;
}
html[data-shell="web"] .chc-calib:hover {
  border-color: var(--cinnabar);
  background: var(--cinnabar-wash);
}
html[data-shell="web"] .chc-main:focus-visible,
html[data-shell="web"] .chc-calib:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 2px;
}
/* 窄屏（375px 起，同文件其它 @media (max-width: 480px) 断点惯例）：chip 与大师条
   不互挤——各占整行折行显示（非并排挤压），chip 退化为纯 label（四柱缩写让位，
   报告 tab 里能看全）。 */
@media (max-width: 480px) {
  html[data-shell="web"] .chat-context-bar {
    flex-wrap: wrap;
  }
  html[data-shell="web"] .chat-context-bar > .chat-chart-chip,
  html[data-shell="web"] .chat-context-bar > .chat-master-bar {
    flex: 1 1 100%;
    min-width: 100%;
  }
  html[data-shell="web"] .chat-context-bar > .chat-chart-chip:not(.hidden) + .chat-master-bar:not(.hidden) {
    border-left: none;
    border-top: 1px solid var(--rule-soft);
  }
  html[data-shell="web"] .chc-pillars {
    display: none;
  }
}

/* ── 首页落地态（body.app-live[data-tab="home"]，data-tab 由 tabs.js 挂）：
      grid 塌为「顶栏 + 全宽内容」，#topbar 原地重排成浅色 topnav；聊天/命盘/
      个人中心维持侧栏工作台。attribute 选择器比 ≤900 塌缩规则特异性高，窄屏
      也保持浅色顶栏。mini 无 app-live CSS，零影响。 ── */
html[data-shell="web"] body.app-live[data-tab="home"] {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
}
html[data-shell="web"] body.app-live[data-tab="home"] #topbar {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  height: auto;
  position: sticky;
  top: 0;
  z-index: 20;
  /* home-nav 删除后首页顶栏与内页同构，尺寸走通用规则；此处只保留
     布局方向与吸顶，配色差异在别处 */
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
html[data-shell="web"] body.app-live[data-tab="home"] .brand {
  padding: 0 4px;
  font-size: 22px;
  color: var(--ink);
}
html[data-shell="web"] body.app-live[data-tab="home"] #tabbar {
  flex-direction: row;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
}
html[data-shell="web"] body.app-live[data-tab="home"] .topbar-right {
  margin-top: 0;
  flex-direction: row;
  align-items: center;
  border-top: none;
  padding-top: 0;
}
html[data-shell="web"] body.app-live[data-tab="home"] #topbar-actions {
  flex-direction: row;
  align-items: center;
}
html[data-shell="web"] body.app-live[data-tab="home"] .topbar-right .btn-icon {
  padding: 7px 12px;
  color: var(--ink-soft);
}
html[data-shell="web"] body.app-live[data-tab="home"] .topbar-right .btn-icon:hover {
  background: var(--cinnabar-wash);
  color: var(--cinnabar-deep);
}
html[data-shell="web"] body.app-live[data-tab="home"] #phone-tag {
  color: var(--ink-faint);
}
/* 落地顶栏的登录钮升格为描边 pill（侧栏态里它跟随普通 .btn-icon 反白样式） */
html[data-shell="web"] body.app-live[data-tab="home"] #btn-home-login {
  border: 1px solid var(--cinnabar);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  color: var(--cinnabar-text);
  font-weight: 600;
}
html[data-shell="web"] body.app-live[data-tab="home"] #btn-home-login:hover {
  background: var(--cinnabar-wash);
  color: var(--cinnabar-deep);
}
html[data-shell="web"] body.app-live[data-tab="home"] main {
  height: auto; /* grid 行 minmax(0,1fr) 定高，main 拉伸填满并独立滚动 */
}

/* ══ 首页门面（落地页 A）：全宽纸面——居中仪式 hero + 易学观 + 三派大师 +
      黄历编辑带 + 古籍三列画廊 + 备案页脚。纯 web-scoped；home.js 生成的
      黄历/书目 markup 不变（纯 CSS 重排），mini 首页不受影响。 ══ */
html[data-shell="web"] body.app-live .home-panel {
  padding: 0;
  /* 宣纸纹理氛围层：约 5% 墨色噪点，铺满整页 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.10 0 0 0 0 0.08 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* 门面：居中仪式感（印泥印章 + 楷书品牌 + 径向氛围光 + 乾卦爻记） */
html[data-shell="web"] body.app-live .home-hero {
  position: relative;
  z-index: 0; /* 建立堆叠上下文，::before 氛围光垫底不压文字 */
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  text-align: center;
  padding: 54px 24px 0;
  margin-bottom: 0;
}
html[data-shell="web"] body.app-live .home-hero::before {
  content: "";
  position: absolute;
  inset: -40px 0 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 640px 320px at 50% 170px, rgb(0 112 103 / 0.055), transparent 68%);
}
html[data-shell="web"] body.app-live .home-hero .home-seal {
  position: static; /* 覆盖基础的绝对定位角标 */
  display: inline-flex;
  width: 64px;
  height: 64px;
  margin: 0 0 16px;
  border-radius: 14px;
  background: var(--seal-red);
  color: var(--seal-ink);
  font-family: var(--font-display);
  font-size: 40px;
  transform: none;
  /* 印泥质感：暖投影 + 内高光 + 底部压深 */
  box-shadow: 0 3px 10px rgb(150 40 30 / 0.28), inset 0 0 0 1.5px rgb(255 255 255 / 0.16),
    inset 0 -3px 8px rgb(90 20 14 / 0.35);
}
html[data-shell="web"] body.app-live .home-title {
  position: static; /* 撤上一版 sr-only：落地门面即品牌主视觉 */
  width: auto;
  height: auto;
  margin: 0;
  padding-left: 0.2em; /* letter-spacing 尾距的光学居中补偿 */
  overflow: visible;
  clip: auto;
  white-space: normal;
  font-size: clamp(44px, 6.5vw, 72px);
  letter-spacing: 0.2em;
  line-height: 1.05;
  color: var(--ink);
}
html[data-shell="web"] body.app-live .home-slogan {
  margin: 16px 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(17px, 2.2vw, 21px);
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
html[data-shell="web"] body.app-live .home-sub {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--ink-faint);
}
html[data-shell="web"] body.app-live .home-cta-btn {
  width: auto; /* 覆盖 .btn-primary 的 100%（移动通栏钮），门面里收成内容宽 pill */
  padding: 12px 30px;
  font-size: 15.5px;
}
/* 乾卦爻记分隔：渐隐 hairline + 三横爻 */
html[data-shell="web"] body.app-live .home-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 420px;
  margin: 42px auto 0;
}
html[data-shell="web"] body.app-live .home-divider::before,
html[data-shell="web"] body.app-live .home-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
}
html[data-shell="web"] body.app-live .home-gua {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
html[data-shell="web"] body.app-live .home-gua i {
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--seal-red);
  opacity: 0.7;
}
/* 易学观：注疏体（web 无折叠 toggle；mini 折叠交互不变）。
   正文如古籍引文：左缘细朱砂竖线立"引栏"，左对齐消孤字行与居中参差；
   coda 在引栏外独立居中收束。 */
html[data-shell="web"] body.app-live .home-manifesto {
  max-width: 560px;
  margin: 26px auto 0;
  padding: 0 24px;
  text-align: left;
}
html[data-shell="web"] body.app-live .home-manifesto-full {
  margin-top: 0;
  border-left: 3px solid rgb(192 64 42 / 0.45);
  padding: 2px 0 2px 22px;
}
html[data-shell="web"] body.app-live .home-manifesto p {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 2;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
html[data-shell="web"] body.app-live .home-manifesto-full p:last-of-type {
  margin-bottom: 0;
}
html[data-shell="web"] body.app-live .m-em {
  color: var(--ink);
}
/* 强调「形式语言」：朱砂细底线。此前的着重号(text-emphasis)在折行时
   点随字散落两行,远看像脏点(用户实测截图),底线折行安全。 */
html[data-shell="web"] body.app-live .m-dot {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgb(192 64 42 / 0.6);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
html[data-shell="web"] body.app-live .home-manifesto .home-coda {
  margin: 24px 0 0;
  font-size: 19px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--cinnabar-deep);
  text-align: center;
}
/* 暗色印泥:引栏/底线的朱砂字面值换暖砖红(#d66a48,同暗色 --seal-red) */
html[data-shell="web"][data-theme="dark"] body.app-live .home-manifesto-full {
  border-left-color: rgb(214 106 72 / 0.5);
}
html[data-shell="web"][data-theme="dark"] body.app-live .m-dot {
  text-decoration-color: rgb(214 106 72 / 0.65);
}
html[data-shell="web"] body.app-live .home-coda .coda-em {
  color: inherit; /* 整句 teal，撤逐词朱砂 */
}
/* 三派大师：三印横列（hs-* 避开 mini 大师区 .home-masters 的 3 列 grid 基础样式） */
html[data-shell="web"] body.app-live .home-schools {
  max-width: 880px;
  margin: 52px auto 0;
  padding: 0 24px;
}
html[data-shell="web"] body.app-live .hs-hd {
  text-align: center;
  margin-bottom: 20px;
}
html[data-shell="web"] body.app-live .hs-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}
html[data-shell="web"] body.app-live .hs-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}
html[data-shell="web"] body.app-live .hs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
html[data-shell="web"] body.app-live .hs-card {
  text-align: center;
  padding: 24px 18px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--edge-hi);
  transition: border-color 150ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 150ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
html[data-shell="web"] body.app-live .hs-card:hover {
  border-color: var(--cinnabar-mute);
  box-shadow: var(--shadow-card), var(--edge-hi);
  transform: translateY(-2px);
}
html[data-shell="web"] body.app-live .hs-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  background: var(--seal-red);
  color: var(--seal-ink);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 31px;
  /* 印泥质感同门面印章 */
  box-shadow: 0 2px 8px rgb(150 40 30 / 0.24), inset 0 -3px 8px rgb(90 20 14 / 0.34),
    inset 0 0 0 1px rgb(255 255 255 / 0.14);
}
html[data-shell="web"] body.app-live .hs-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
html[data-shell="web"] body.app-live .hs-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}
/* 今日黄历 → 全出血编辑带：上下 hairline + 极淡 teal 洗，干支左 / 节气宜右。
   详情仍走 home.js 的 .alm-more 行内折叠，展开占满整带宽 */
html[data-shell="web"] body.app-live .home-almanac {
  margin: 52px 0 0;
  padding: 20px 0 22px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, rgb(0 112 103 / 0.045), rgb(0 112 103 / 0.02));
}
html[data-shell="web"] body.app-live .home-almanac .home-sect {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto 8px;
  padding: 0 24px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}
html[data-shell="web"] body.app-live .alm-more {
  letter-spacing: normal;
  color: var(--cinnabar-text);
}
/* 择吉日入口：与「宜忌·黄历详情」成对靠右（more 的 margin-left:auto 把二者推到右侧） */
html[data-shell="web"] body.app-live .alm-zeri {
  padding: 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: normal;
  color: var(--cinnabar-text);
  cursor: pointer;
  white-space: nowrap;
}
html[data-shell="web"] body.app-live .alm-zeri:hover {
  color: var(--cinnabar-deep);
}
html[data-shell="web"] body.app-live .alm-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 28px;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
html[data-shell="web"] body.app-live .alm-head {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
/* 干支放大打真实文字 .alm-ganzhi（.alm-gz 是容器，且 .alm-ganzhi 自带 18px 会覆盖继承） */
html[data-shell="web"] body.app-live .alm-ganzhi {
  font-size: clamp(28px, 3.6vw, 38px);
  letter-spacing: 0.1em;
  white-space: normal;
}
html[data-shell="web"] body.app-live .alm-date {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
html[data-shell="web"] body.app-live .alm-care {
  margin-left: auto; /* 节气宜 gist 靠右，与干支成带状两端 */
}
/* 详情展开：双列报刊 + 黄历体统——宜忌升格对开通栏卡（黄历灵魂不与"生肖:马"
   平级）、栏间发丝线、杂项 hairline 细表、方位 chips、依据/免责收尾考据小字。
   共享 markup 不动，纯 CSS 重排 */
html[data-shell="web"] body.app-live .alm-detail {
  flex-basis: 100%;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
  columns: 2;
  column-gap: 56px;
  column-rule: 1px solid var(--rule-soft);
}
html[data-shell="web"] body.app-live .alm-detail > * {
  break-inside: avoid;
}
/* 宜忌对开通栏双卡：宜 teal 左缘 / 忌 朱砂左缘（DOM 序固定：宜前忌后，免 :has） */
html[data-shell="web"] body.app-live .alm-detail .alm-yiji {
  column-span: all;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 2px 0 16px;
}
html[data-shell="web"] body.app-live .alm-detail .alm-line {
  position: relative;
  overflow: hidden; /* 裁大字水印溢出 */
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--cinnabar);
  border-radius: 10px;
  box-shadow: var(--edge-hi);
}
html[data-shell="web"] body.app-live .alm-detail .alm-line:last-child {
  border-left-color: var(--seal-red);
}
/* 帖感大字水印：卡右下压超大「宜」「忌」（DOM 序固定：宜前忌后） */
html[data-shell="web"] body.app-live .alm-detail .alm-line::after {
  content: "宜";
  position: absolute;
  right: -4px;
  bottom: -26px;
  font-family: var(--font-serif);
  font-size: 84px;
  line-height: 1;
  font-weight: 600;
  color: var(--cinnabar);
  opacity: 0.07;
  pointer-events: none;
}
html[data-shell="web"] body.app-live .alm-detail .alm-line:last-child::after {
  content: "忌";
  color: var(--seal-red);
}
/* 宜忌条目活字化：每项一枚雕版字粒 */
html[data-shell="web"] body.app-live .alm-tk {
  display: inline-block;
  margin: 3px 8px 3px 0;
  padding: 3px 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}
html[data-shell="web"] body.app-live .alm-detail .alm-badge {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 14px;
  box-shadow: inset 0 -2px 5px rgb(0 0 0 / 0.18); /* 印泥压深，同师印语言 */
}
html[data-shell="web"] body.app-live .alm-detail .alm-line .alm-v {
  font-size: 13.5px;
}
/* 方位神煞 chips：喜神/财神/贵神/福神一排通栏（随宜忌卡之后，杂项两栏在下） */
html[data-shell="web"] body.app-live .alm-detail .alm-dir {
  column-span: all;
  margin: 0 0 14px;
  gap: 8px;
  flex-wrap: wrap;
}
html[data-shell="web"] body.app-live .alm-detail .alm-dir > span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 12px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--ink-soft);
}
html[data-shell="web"] body.app-live .alm-dirk {
  color: var(--ink-faint);
}
html[data-shell="web"] body.app-live .alm-dirv {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cinnabar-text); /* 方位字铅字强调 */
}
/* 杂项（生肖/纳音/冲煞/二十八宿/彭祖百忌/贵神…）：hairline 细表 */
html[data-shell="web"] body.app-live .alm-detail .alm-row {
  margin-bottom: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 13px;
}
html[data-shell="web"] body.app-live .alm-detail .alm-row .alm-k {
  flex: 0 0 5em; /* 标签定宽：值起点对齐成表 */
}
html[data-shell="web"] body.app-live .alm-detail .alm-row .alm-v {
  font-family: var(--font-serif);
  color: var(--ink); /* 值铅字化：马 / 杨柳木 / 室火猪吉 有活字感 */
}
/* 依据 + 免责合成通栏考据收尾区（依据行 .alm-basis 由 home.js web 分支产出） */
html[data-shell="web"] body.app-live .alm-detail .alm-basis {
  column-span: all;
  margin-top: 14px;
  padding: 10px 0 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: none;
  font-size: 12px;
}
html[data-shell="web"] body.app-live .alm-detail .alm-basis .alm-v {
  font-family: var(--font-sans);
  color: var(--ink-faint); /* 考据小字，与免责同质 */
}
html[data-shell="web"] body.app-live .alm-note {
  column-span: all;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--rule-soft);
}
/* 有依据行时 hairline 由它承担，免责紧随其下不再重复画线 */
html[data-shell="web"] body.app-live .alm-basis + .alm-note {
  margin-top: 6px;
  padding-top: 0;
  border-top: none;
}
/* 易学经典：居中章节头（与三派大师同语言）+ 三列画廊 */
html[data-shell="web"] body.app-live .home-sect-books {
  display: block;
  max-width: 880px;
  margin: 52px auto 16px;
  padding: 0 24px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}
html[data-shell="web"] body.app-live .home-sect-books small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-faint);
}
html[data-shell="web"] body.app-live .home-books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: visible;
}
html[data-shell="web"] body.app-live .book-item {
  width: auto;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
  text-align: left;
  /* hover 的 border/shadow 过渡，并保留基础的按压 opacity/transform（否则 :active 瞬变） */
  transition: border-color 150ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 150ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity var(--press-ms) ease, transform var(--press-ms) ease;
}
html[data-shell="web"] body.app-live .book-item:hover {
  border-color: var(--cinnabar-mute);
  box-shadow: var(--shadow-card);
}
html[data-shell="web"] body.app-live .book-spine {
  width: 46px;
  height: 64px;
  font-size: 16px;
}
html[data-shell="web"] body.app-live .book-name {
  font-size: 15.5px;
}
html[data-shell="web"] body.app-live .book-note {
  margin-top: 3px;
  font-size: 12px;
}
html[data-shell="web"] body.app-live .book-arrow {
  display: block; /* 覆盖基础 .book-arrow{display:none}，画廊行尾显示"进入"箭头 */
  margin-left: auto;
  font-size: 18px;
  color: var(--cinnabar-text);
}
/* 备案页脚：流内两端分布（覆盖 .site-beian 的 absolute + 居中）。
   左=政策/关于链接组，右=© 公司全称+备案号。分隔点画在 .beian-dotted::before 上，
   备案 token 空（tokyo）时 a:empty display:none 连点一起消失，不残留孤点。 */
html[data-shell="web"] body.app-live .home-beian {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  max-width: 880px;
  margin: 44px auto 0;
  padding: 16px 24px 10px;
  border-top: 1px solid var(--rule-soft);
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  color: var(--ink-faint);
}
html[data-shell="web"] body.app-live .home-beian .beian-rec {
  text-align: right;
}
html[data-shell="web"] body.app-live .home-beian .beian-dotted::before {
  content: "·";
  margin: 0 7px;
  opacity: 0.55;
  color: var(--ink-faint);
}
@media (max-width: 640px) {
  html[data-shell="web"] body.app-live .home-beian {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  /* 窄屏 © 行竖排逐项一行:备案号长,横排折行会出现行首孤点+超宽裁切 */
  html[data-shell="web"] body.app-live .home-beian .beian-rec {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    text-align: left;
  }
  html[data-shell="web"] body.app-live .home-beian .beian-rec .beian-dotted::before {
    content: none;
  }
}
/* 古籍阅读页：panel 全宽后 reader 自己收居中阅读列 */
html[data-shell="web"] body.app-live .reader-view {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}
/* 落地页窄屏：大师/古籍列数降档、节间距收紧（panel 恒 0 padding，各节自响应） */
@media (max-width: 820px) {
  html[data-shell="web"] body.app-live .home-hero {
    padding: 40px 20px 0;
  }
  html[data-shell="web"] body.app-live .home-schools {
    margin-top: 40px;
  }
  html[data-shell="web"] body.app-live .hs-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  /* 窄屏大师卡改横排行：印左 + 名/法右 */
  html[data-shell="web"] body.app-live .hs-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 14px 16px;
  }
  html[data-shell="web"] body.app-live .hs-seal {
    margin-bottom: 0;
    flex: 0 0 auto;
  }
  html[data-shell="web"] body.app-live .hs-name {
    margin-bottom: 2px;
  }
  html[data-shell="web"] body.app-live .home-almanac {
    margin-top: 40px;
  }
  html[data-shell="web"] body.app-live .alm-care {
    margin-left: 0; /* 窄屏换行后靠左，不再推右 */
  }
  html[data-shell="web"] body.app-live .alm-detail {
    columns: 1; /* 窄屏回单列 */
  }
  html[data-shell="web"] body.app-live .home-sect-books {
    margin-top: 40px;
  }
  html[data-shell="web"] body.app-live .home-books {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  html[data-shell="web"] body.app-live .home-books {
    grid-template-columns: 1fr;
  }
}

/* ══ 增量③：命盘主区适配。记录列表/排盘表单原全宽发散 → 收成居中编辑列
      （报告页 dossier-view 已 780 居中，见 Phase 3b）。纯 web-scoped。 ══ */
html[data-shell="web"] body.app-live .report-panel {
  padding: 34px 40px 60px;
}
html[data-shell="web"] body.app-live #report-list-view {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

/* ══ B1 命盘工作台：命盘 tab 从平铺列表升级为「当前盘为中心」的工作台。
      无盘→三步卡；有盘→当前盘卡 + 主动作 + 报告状态 + 其它盘；管理（原有
      查看/更新/设基本盘/标签/删除卡片列表）折叠进「管理 ›」。纯 web-scoped，
      结构对齐 qiaomu 预览（design-previews/2026-07-08-chart-workbench），
      类名按仓库既有前缀习惯（cr-/dossier-/hs-/cmb- 同族）改成 wb- 前缀。 ══ */

/* 无盘态：三步卡 */
html[data-shell="web"] body.app-live .wb-empty {
  max-width: 560px;
  margin: 30px auto;
  text-align: center;
}
html[data-shell="web"] body.app-live .wb-empty-t {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}
html[data-shell="web"] body.app-live .wb-empty-s {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 0 0 26px;
}
html[data-shell="web"] body.app-live .wb-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  text-align: center;
}
html[data-shell="web"] body.app-live .wb-step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px 14px;
  box-shadow: var(--edge-hi);
}
html[data-shell="web"] body.app-live .wb-step:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rule);
  font-size: 18px;
}
html[data-shell="web"] body.app-live .wb-step-n {
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--cinnabar-wash);
  color: var(--cinnabar-deep);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
}
html[data-shell="web"] body.app-live .wb-step-t {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 5px;
}
html[data-shell="web"] body.app-live .wb-step-d {
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.6;
}
html[data-shell="web"] body.app-live .wb-empty-cta {
  width: auto;
  margin-top: 24px;
  padding: 12px 34px;
  font-size: 15px;
}

/* 有盘态：工作台居中列 */
html[data-shell="web"] body.app-live .wb-workbench {
  max-width: 820px;
  margin: 0 auto;
}

/* 当前盘卡（hero） */
html[data-shell="web"] body.app-live .wb-cur {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 26px 30px 22px;
  box-shadow: var(--shadow-card), var(--edge-hi);
}
/* Phase D 轻量命理场视觉：按当前盘用神首元素（wx-mu/huo/tu/jin/shui，chart-report.js
   applyWuxingAmbience 挂在 html 上）给 .wb-cur 顶部细线 + 极淡内阴影 wash 上色。
   色值取自 --cr-w-* 同一组五行色的 RGB 通道（如 --cr-w-mu=#3a8f4a=rgb(58,143,74)），
   手写为 rgba(带透明度)——氛围需 alpha 分层，而 rgb(from var() ...) 相对色语法
   浏览器兼容面窄，故手抄 RGB 而非 var() 引用；**改这组色时 --cr-w-* 与此处两处同步**。
   无 wx-* class 时下面分组选择器（含 transition）
   都不命中，.wb-cur 外观与本 PR 之前完全一致——这是"零变化"默认态的实现方式，
   连 transition 属性都不声明，不是遗漏。 */
html[data-shell="web"].wx-mu body.app-live .wb-cur { --wx-line: rgba(58, 143, 74, 0.55); --wx-wash: rgba(58, 143, 74, 0.06); }
html[data-shell="web"].wx-huo body.app-live .wb-cur { --wx-line: rgba(192, 90, 42, 0.55); --wx-wash: rgba(192, 90, 42, 0.06); }
html[data-shell="web"].wx-tu body.app-live .wb-cur { --wx-line: rgba(177, 138, 30, 0.55); --wx-wash: rgba(177, 138, 30, 0.06); }
html[data-shell="web"].wx-jin body.app-live .wb-cur { --wx-line: rgba(160, 140, 80, 0.55); --wx-wash: rgba(160, 140, 80, 0.06); }
html[data-shell="web"].wx-shui body.app-live .wb-cur { --wx-line: rgba(47, 107, 171, 0.55); --wx-wash: rgba(47, 107, 171, 0.06); }
html[data-shell="web"][data-theme="dark"].wx-mu body.app-live .wb-cur { --wx-line: rgba(95, 184, 114, 0.5); --wx-wash: rgba(95, 184, 114, 0.1); }
html[data-shell="web"][data-theme="dark"].wx-huo body.app-live .wb-cur { --wx-line: rgba(224, 129, 79, 0.5); --wx-wash: rgba(224, 129, 79, 0.1); }
html[data-shell="web"][data-theme="dark"].wx-tu body.app-live .wb-cur { --wx-line: rgba(216, 176, 72, 0.5); --wx-wash: rgba(216, 176, 72, 0.1); }
html[data-shell="web"][data-theme="dark"].wx-jin body.app-live .wb-cur { --wx-line: rgba(210, 189, 130, 0.5); --wx-wash: rgba(210, 189, 130, 0.1); }
html[data-shell="web"][data-theme="dark"].wx-shui body.app-live .wb-cur { --wx-line: rgba(99, 152, 204, 0.5); --wx-wash: rgba(99, 152, 204, 0.1); }
html[data-shell="web"].wx-mu body.app-live .wb-cur,
html[data-shell="web"].wx-huo body.app-live .wb-cur,
html[data-shell="web"].wx-tu body.app-live .wb-cur,
html[data-shell="web"].wx-jin body.app-live .wb-cur,
html[data-shell="web"].wx-shui body.app-live .wb-cur {
  border-top-color: var(--wx-line);
  box-shadow: var(--shadow-card), var(--edge-hi), inset 0 44px 44px -30px var(--wx-wash);
  transition: border-top-color 200ms ease, box-shadow 200ms ease;
}
@media (prefers-reduced-motion: reduce) {
  html[data-shell="web"].wx-mu body.app-live .wb-cur,
  html[data-shell="web"].wx-huo body.app-live .wb-cur,
  html[data-shell="web"].wx-tu body.app-live .wb-cur,
  html[data-shell="web"].wx-jin body.app-live .wb-cur,
  html[data-shell="web"].wx-shui body.app-live .wb-cur {
    transition: none;
  }
}
html[data-shell="web"] body.app-live .wb-cur-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
html[data-shell="web"] body.app-live .wb-cur-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
html[data-shell="web"] body.app-live .wb-cur-label {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink);
}
html[data-shell="web"] body.app-live .wb-cur-tag {
  font-size: 11.5px;
  color: var(--cinnabar-deep);
  border: 1px solid var(--cinnabar-wash);
  background: var(--cinnabar-wash);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
}
html[data-shell="web"] body.app-live .wb-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
html[data-shell="web"] body.app-live .wb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-soft);
}
html[data-shell="web"] body.app-live .wb-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
}
html[data-shell="web"] body.app-live .wb-chip-master .wb-chip-dot {
  background: var(--seal-red);
}
html[data-shell="web"] body.app-live .wb-chip-calib .wb-chip-dot {
  background: var(--cinnabar);
}
html[data-shell="web"] body.app-live .wb-cur-loading {
  margin: 16px 0;
  font-size: 13px;
  color: var(--ink-faint);
}
html[data-shell="web"] body.app-live .wb-pillars {
  display: flex;
  gap: 26px;
  margin: 20px 0 6px;
  flex-wrap: wrap;
}
html[data-shell="web"] body.app-live .wb-pillar {
  text-align: center;
}
html[data-shell="web"] body.app-live .wb-pillar-gz {
  font-family: var(--font-serif);
  font-size: 34px;
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1.2;
}
html[data-shell="web"] body.app-live .wb-pillar-lb {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin-top: 4px;
}
/* 五行分布条：五色沿用报告长图/盘面既有两套调色（.report-capture 亮 / .cr-deck 暗），
   这里是第三处 scope，同色值不新增 token。 */
html[data-shell="web"] body.app-live .wb-wux {
  --cr-w-mu: #3a8f4a;
  --cr-w-huo: #c05a2a;
  --cr-w-tu: #b18a1e;
  --cr-w-jin: #a08c50;
  --cr-w-shui: #2f6bab;
  display: flex;
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
  margin: 16px 0 8px;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.08);
}
html[data-shell="web"][data-theme="dark"] body.app-live .wb-wux {
  --cr-w-mu: #5fb872;
  --cr-w-huo: #e0814f;
  --cr-w-tu: #d8b048;
  --cr-w-jin: #d2bd82;
  --cr-w-shui: #6398cc;
}
html[data-shell="web"] body.app-live .wb-wux i.e-mu { background: var(--cr-w-mu); }
html[data-shell="web"] body.app-live .wb-wux i.e-huo { background: var(--cr-w-huo); }
html[data-shell="web"] body.app-live .wb-wux i.e-tu { background: var(--cr-w-tu); }
html[data-shell="web"] body.app-live .wb-wux i.e-jin { background: var(--cr-w-jin); }
html[data-shell="web"] body.app-live .wb-wux i.e-shui { background: var(--cr-w-shui); }
html[data-shell="web"] body.app-live .wb-wux-lab {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ink-faint);
}
html[data-shell="web"] body.app-live .wb-wux-lab b {
  font-weight: 500;
  color: var(--ink-soft);
}
html[data-shell="web"] body.app-live .wb-wux-ug {
  margin-left: auto;
}
html[data-shell="web"] body.app-live .wb-cur-meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* 主动作行 */
html[data-shell="web"] body.app-live .wb-acts {
  display: flex;
  gap: 10px;
  margin: 18px 0 22px;
  flex-wrap: wrap;
}
html[data-shell="web"] body.app-live .wb-act {
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--card);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--edge-hi);
  transition: border-color 140ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
html[data-shell="web"] body.app-live .wb-act:hover:not(:disabled) {
  border-color: var(--cinnabar-mute);
  box-shadow: var(--shadow-card), var(--edge-hi);
}
html[data-shell="web"] body.app-live .wb-act-pri {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgb(0 96 85 / 0.28), var(--edge-hi);
}
html[data-shell="web"] body.app-live .wb-act-pri:hover:not(:disabled) {
  background: var(--cinnabar-hover);
  border-color: var(--cinnabar-hover);
}
html[data-shell="web"] body.app-live .wb-act-soon {
  border-style: dashed;
}
html[data-shell="web"] body.app-live .wb-act:disabled {
  color: var(--ink-faint);
  cursor: default;
}
html[data-shell="web"] body.app-live .wb-act-badge {
  margin-left: 6px;
  font-size: 10.5px;
  color: var(--seal-red);
}

/* 报告状态卡 */
html[data-shell="web"] body.app-live .wb-rep {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--cinnabar);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--edge-hi);
  margin-bottom: 4px;
}
html[data-shell="web"] body.app-live .wb-rep-t {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}
html[data-shell="web"] body.app-live .wb-rep-meta {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 3px;
}
html[data-shell="web"] body.app-live .wb-rep-q {
  flex: 1;
  min-width: 160px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
html[data-shell="web"] body.app-live .wb-rep-go {
  flex-shrink: 0;
  /* 兜底靠右：常态靠 .wb-rep-q 的 flex:1 把它推到最右，但摘要为空时该块不渲染
     （见 renderReportCard），margin-left:auto 保证此时仍贴右不紧挨标题。 */
  margin-left: auto;
  background: none;
  border: none;
  padding: 0;
  color: var(--cinnabar-deep);
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
html[data-shell="web"] body.app-live .wb-rep-go:hover {
  text-decoration: underline;
}

/* 其它盘 */
html[data-shell="web"] body.app-live .wb-others {
  margin-top: 24px;
}
html[data-shell="web"] body.app-live .wb-others-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
html[data-shell="web"] body.app-live .wb-others-title {
  font-family: var(--font-serif);
  font-size: 14.5px;
  color: var(--ink-soft);
}
html[data-shell="web"] body.app-live .wb-others-manage {
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  color: var(--ink-faint);
  font-family: inherit;
  cursor: pointer;
}
html[data-shell="web"] body.app-live .wb-others-manage:hover {
  color: var(--cinnabar-text);
}
html[data-shell="web"] body.app-live .wb-others-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
html[data-shell="web"] body.app-live .wb-ocard {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink-soft);
  box-shadow: var(--edge-hi);
  cursor: pointer;
  transition: border-color 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
html[data-shell="web"] body.app-live .wb-ocard:hover:not(:disabled) {
  border-color: var(--cinnabar-mute);
}
html[data-shell="web"] body.app-live .wb-ocard-name {
  font-family: var(--font-serif);
  color: var(--ink);
}
html[data-shell="web"] body.app-live .wb-ocard-new {
  border-style: dashed;
  color: var(--ink-faint);
}
html[data-shell="web"] body.app-live .wb-ocard-new:disabled {
  cursor: default;
}

/* 管理折叠区：原有卡片列表原样收进来，只加个容器缩进 */
html[data-shell="web"] body.app-live .wb-manage-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
}

/* 375px 窄屏：命盘工作台卡纵向堆叠，不横向溢出 */
@media (max-width: 480px) {
  html[data-shell="web"] body.app-live .wb-steps {
    grid-template-columns: 1fr;
  }
  html[data-shell="web"] body.app-live .wb-step:not(:last-child)::after {
    content: none;
  }
  html[data-shell="web"] body.app-live .wb-cur {
    padding: 20px 18px 18px;
  }
  html[data-shell="web"] body.app-live .wb-pillars {
    gap: 16px;
  }
  html[data-shell="web"] body.app-live .wb-pillar-gz {
    font-size: 26px;
  }
  html[data-shell="web"] body.app-live .wb-rep {
    flex-direction: column;
    align-items: flex-start;
  }
  html[data-shell="web"] body.app-live .wb-rep-go {
    align-self: flex-end;
  }
}

/* 个人中心内容列：桌面居中定宽，手机全宽 */
html[data-shell="web"] .me-content {
  max-width: 560px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ─── web 深度报告：mini 的横向 cr-deck 翻页 → 桌面纵向长文（决策：长文文章式） ───
   盘面屏 + 解读屏本是横向 swipe pager（.cr-deck flex 行 + .cr-page 整屏 + 圆点）。
   web 改为纵向堆叠成居中长文列，report-panel 整体滚动、去翻页点、报告头吸顶。 */
html[data-shell="web"] .dossier-view {
  flex: none; /* 不再填满固定高，自然高度让 report-panel 滚整篇 */
}
html[data-shell="web"] .cr-deck {
  display: block; /* 覆盖 flex 横向 */
  flex: none;
  /* flex 项 min-width:auto 会取 min-content（大运 8 卡 ≈687px），内容列 <687
     （手机 + 侧栏态 900-1015px 视口）时被顶宽再遭 clip 硬裁；全宽度解除地板，
     窄列时 deck 跟列宽、大运条恢复自身横滚 */
  min-width: 0;
  overflow-x: clip; /* 裁横向溢出，防超宽内容 bleed 出 780 列 / 触发页面横滚。
                       clip 不建滚动容器（overflow-y 仍 visible，页面照常滚） */
  scroll-snap-type: none;
  max-width: 780px;
  margin: 0 auto;
  border-radius: 12px;
}
html[data-shell="web"] .cr-page {
  flex: none;
  width: auto;
  height: auto; /* 覆盖整屏高，自然高度纵向堆叠 */
  overflow-y: visible;
  scroll-snap-align: none;
}
html[data-shell="web"] .cr-page:not(:last-child) {
  border-bottom: 1px solid var(--cr-rule); /* 屏间细线（原靠翻页区隔） */
}
html[data-shell="web"] .cr-dots {
  display: none; /* 桌面长文无翻页点 */
}
html[data-shell="web"] .dossier-head {
  position: static;
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 0;
  background: var(--paper);
  flex-wrap: wrap; /* 核心行（flex-basis:100%）折到第二行 */
}

/* 报告头核心行（Phase C）：格局/用神/主矛盾/当前大运一行，缺字段省略；窄屏折行。 */
html[data-shell="web"] .dossier-core {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--rule-soft);
}
html[data-shell="web"] .dossier-core:empty {
  display: none; /* 无核心字段时不占位、不显边框 */
}
html[data-shell="web"] .dcore-item {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 12.5px;
  line-height: 1.5;
}
html[data-shell="web"] .dcore-k {
  color: var(--ink-soft);
  font-size: 11.5px;
}
html[data-shell="web"] .dcore-v {
  color: var(--ink);
  font-family: var(--font-serif);
}

/* 「就这段追问」模块尾入口：轻量文字按钮，右对齐，出长图时删。 */
html[data-shell="web"] .dossier-ask {
  display: block;
  margin: 8px 0 0 auto;
  padding: 3px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--cinnabar-text);
  cursor: pointer;
}
html[data-shell="web"] .dossier-ask:hover {
  border-color: var(--cinnabar);
}
html[data-shell="web"] .dossier-ask:active {
  transform: scale(var(--press-scale));
}

/* 校准点「聊聊这件事」：与 vp-btn 同族但非 toggle，弱化不显「on」态。 */
html[data-shell="web"] .vp-ask {
  margin-left: auto; /* 推到应验/没有右侧 */
  color: var(--cinnabar-text);
}

html[data-shell="web"] .dossier-vp {
  transition: border-color 160ms ease, background-color 160ms ease;
}

html[data-shell="web"] .dossier-vp.vp-confirmed {
  border-color: var(--cinnabar);
  background: color-mix(in srgb, var(--cinnabar) 7%, var(--card));
}

html[data-shell="web"] .dossier-vp.vp-denied {
  border-color: var(--rule);
  background: color-mix(in srgb, var(--ink-soft) 5%, var(--card));
  opacity: 1;
}

html[data-shell="web"] .vp-status {
  display: block;
  min-height: 18px;
  margin: -2px 0 8px;
  color: var(--cinnabar-text);
  font-size: 12px;
}

html[data-shell="web"] .vp-status:empty {
  display: none;
}

html[data-shell="web"] .vp-denied .vp-status {
  color: var(--ink-soft);
}

html[data-shell="web"] .vp-btn.on {
  background: color-mix(in srgb, var(--cinnabar) 10%, var(--card));
  font-weight: 600;
}

html[data-shell="web"] .dossier-vp.vp-saving {
  border-color: var(--cinnabar);
}

html[data-shell="web"] .vp-btn:disabled {
  cursor: wait;
  opacity: 0.55;
}

/* 报告引用气泡（Phase C，web-only）：复用 .msg-quote-card 骨架，加 teal 左线区分。 */
html[data-shell="web"] .msg-report-quote {
  border-left: 2px solid var(--cinnabar);
  padding-left: 8px;
}

/* 桌面宽屏：顶栏导航链接稍放大间距，更从容 */
/* 窄屏（<900px）：侧栏塌缩为顶部横条，main 在下方单列全宽（手机适配） */
@media (max-width: 900px) {
  html[data-shell="web"] body.app-live {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  html[data-shell="web"] body.app-live #topbar {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    height: auto;
    /* grid 子项默认 min-width:auto,会被内部 tabbar 内容宽撑破 1fr 列(超视口横滚)。
       归零让列收缩到视口宽,tabbar 才能在其内部横滑。 */
    min-width: 0;
    /* 顶条补回顶部安全区（body 安全区在 app-live 已清零） */
    padding: max(8px, env(safe-area-inset-top)) 14px 8px;
    gap: 8px;
    box-shadow: 0 1px 0 rgb(0 0 0 / 0.14);
  }
  html[data-shell="web"] body.app-live .brand {
    padding: 4px 6px;
    font-size: 22px;
  }
  html[data-shell="web"] body.app-live #tabbar {
    flex-direction: row;
    flex: 1 1 auto;
    /* min-width:0 解除 flex 子项默认 min-width:auto,否则 bar 撑到内容宽(超屏)、
       overflow-x 永不触发。收缩到可用宽后 tab 才真正内部横滑。 */
    min-width: 0;
    justify-content: flex-start;
    overflow-x: auto;
    /* tab 超一屏时横滑,但不露滚动条(激活项由 switchTab 自动滚入视野) */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  html[data-shell="web"] body.app-live #tabbar::-webkit-scrollbar {
    display: none;
  }
  html[data-shell="web"] body.app-live .tabbar .tab {
    padding: 8px 12px;
    white-space: nowrap;
    font-size: 14px;
  }
  html[data-shell="web"] body.app-live .tabbar .tab.on::after {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 0;
    width: auto;
    height: 2px;
    border-radius: 2px 2px 0 0;
  }
  html[data-shell="web"] body.app-live .topbar-right {
    margin-top: 0;
    flex-direction: row;
    border-top: none;
    padding-top: 0;
  }
  html[data-shell="web"] body.app-live #topbar-actions {
    flex-direction: row;
  }
  html[data-shell="web"] body.app-live main {
    height: auto;
    overflow-y: visible;
  }
  /* 命盘窄屏降级：降回移动 padding（首页落地各节自带响应式，panel 恒 0 padding） */
  html[data-shell="web"] body.app-live .report-panel {
    padding: 22px 20px 48px;
  }
  /* 报告深度页手机适配：min-content 地板已在基础 .cr-deck 规则解除（侧栏态
     900-1015px 窄列同样受益）；此处只做窄屏全宽——去 max-width/auto margin 让
     align-items:stretch 贴满容器；head 同理（其 auto margin 会缩成居中小条）。 */
  html[data-shell="web"] .cr-deck {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  html[data-shell="web"] .dossier-head {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}
/* 手机 web（<560px）：命盘 padding 收一档（首页落地的列数降档在其自身 media 块） */
@media (max-width: 560px) {
  html[data-shell="web"] body.app-live .report-panel {
    padding: 18px 16px 40px;
  }
}

/* ══════════════════════════════════════════════════════════
   起名面板（web-only overlay）：命盘工作台「起名」入口。视觉稿见
   ops 2026-07-08-chart-workbench/naming.html。名字为动态字 → 系统楷体栈
   （webfont 子集不可行，定案）；五行色对齐报告 --cr-w-*，此处 scoped 到 overlay
   （明暗两套，零全局改动、不碰 .cr-deck/.rc-panel）。header 亦用系统楷体（含动态
   姓，Ma Shan Zheng 子集不能覆盖动态字 → 与视觉稿的偏差，保留楷书笔意）。
   ══════════════════════════════════════════════════════════ */
.nm-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
  background: var(--overlay);
  animation: overlay-fade 160ms ease-out;
  --nm-kai: "Kaiti SC", "STKaiti", "KaiTi", var(--font-serif);
  --cr-w-mu: #3a8f4a;
  --cr-w-huo: #c05a2a;
  --cr-w-tu: #b18a1e;
  --cr-w-jin: #a08c50;
  --cr-w-shui: #2f6bab;
}
[data-theme="dark"] .nm-overlay {
  --cr-w-mu: #5fb872;
  --cr-w-huo: #e0814f;
  --cr-w-tu: #d8b048;
  --cr-w-jin: #d2bd82;
  --cr-w-shui: #6398cc;
}
.nm-overlay.hidden {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .nm-overlay {
    animation: none;
  }
}

.nm-sheet {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 680px;
  background: var(--paper);
  border-radius: 16px;
  padding: 30px 26px 24px;
  box-shadow: var(--shadow-modal);
  animation: card-rise 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .nm-sheet {
    animation: none;
  }
}

.nm-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--ink-faint);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.nm-close:hover {
  color: var(--ink);
  background: var(--rule-soft);
}

.nm-title {
  margin: 0 0 4px;
  font-family: var(--nm-kai);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: flex;
  align-items: center;
}
.nm-seal {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  background: var(--seal-red);
  color: var(--seal-ink);
  border-radius: 6px;
  font-size: 15px;
  box-shadow: inset 0 -2px 5px rgb(90 20 14 / 0.3);
}
.nm-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ── 表单 ── */
.nm-form {
  display: grid;
  gap: 16px;
}
.nm-field {
  display: grid;
  gap: 8px;
}
.nm-flabel {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.nm-fhint {
  font-size: 12px;
  color: var(--ink-faint);
}
.nm-input {
  max-width: 200px;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.nm-input:focus {
  outline: none;
  border-color: var(--cinnabar);
}
.nm-seg {
  display: flex;
  gap: 8px;
}
.nm-seg-btn {
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
}
.nm-seg-btn.on {
  font-weight: 600;
  color: var(--cinnabar-deep);
  background: var(--cinnabar-wash);
  border-color: var(--cinnabar);
}
.nm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nm-tag {
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
}
.nm-tag.on {
  font-weight: 600;
  color: var(--cinnabar-deep);
  background: var(--cinnabar-wash);
  border-color: var(--cinnabar);
}
.nm-error {
  margin: 0;
  font-size: 13px;
  color: var(--seal-red);
}
.nm-error.hidden {
  display: none;
}

/* ── 动作按钮 ── */
.nm-acts {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.nm-btn {
  padding: 11px 26px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  border: none;
  border-radius: 11px;
  cursor: pointer;
}
.nm-btn-pri {
  font-weight: 600;
  color: var(--seal-ink);
  background: var(--cinnabar);
  box-shadow: 0 2px 8px rgb(0 96 85 / 0.28), inset 0 1px 0 rgb(255 255 255 / 0.35);
}
.nm-btn-pri:hover:not(:disabled) {
  background: var(--cinnabar-hover);
}
.nm-btn-sec {
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--rule);
}
.nm-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ── 结果：摘要 chips ── */
.nm-brief {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 20px;
}
.nm-chip {
  padding: 4px 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.nm-chip b {
  font-weight: 600;
  color: var(--cinnabar-deep);
}
.nm-chip.target {
  color: var(--cinnabar-deep);
  background: var(--cinnabar-wash);
  border-color: var(--cinnabar);
}

/* ── 结果：名字卡（视觉稿核心）── */
.nm-cards {
  display: grid;
  gap: 14px;
}
.nm-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 26px;
  align-items: center;
  padding: 20px 22px 16px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgb(30 37 33 / 0.05);
}
.nm-name {
  grid-column: 1;
  font-family: var(--nm-kai);
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--ink);
}
.nm-name .nm-sur {
  color: var(--ink-soft);
}
.nm-glyphs {
  grid-column: 1;
  display: flex;
  gap: 14px;
  padding-left: 2px;
}
.nm-g {
  min-width: 44px;
  font-size: 11.5px;
  text-align: center;
  color: var(--ink-faint);
}
.nm-g i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  vertical-align: 0;
  border-radius: 50%;
}
.nm-g b {
  margin-left: 1px;
  font-weight: 600;
}
.nm-meaning {
  grid-column: 2;
  grid-row: 1 / 3;
  margin: 0;
  align-self: center;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.nm-card.pick::after {
  content: "荐";
  position: absolute;
  top: -8px;
  right: 14px;
  padding: 3px 7px 4px;
  font-family: var(--nm-kai);
  font-size: 13px;
  color: var(--seal-ink);
  background: var(--cinnabar);
  border-radius: 0 0 7px 7px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3);
}

.nm-notice {
  margin: 18px 0;
  padding: 24px;
  font-size: 14px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.nm-disc {
  margin: 24px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--ink-faint);
}

/* 窄屏（375px 起）：名字卡纵向堆叠，寓意回下方（对齐视觉稿 @media 480） */
@media (max-width: 480px) {
  .nm-sheet {
    padding: 26px 18px 20px;
  }
  .nm-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .nm-meaning {
    grid-column: 1;
    grid-row: auto;
  }
  .nm-name {
    font-size: 36px;
  }
  .nm-input {
    max-width: none;
  }
}

/* ══════════════════════════════════════════════════════════
   择日面板（web-only overlay）：首页黄历「择吉日 ›」入口。视觉稿见 ops
   2026-07-08-chart-workbench/zeri.html。建除徽章/印章/荐 角标用系统楷体栈
   （Ma Shan Zheng 子集不含 择/荐/建除值/日 → 与 naming 同口径的偏差，保楷书笔意）；
   日期/干支/农历走 serif。teal=--cinnabar / 印记=--seal-red；.why.you 暖茶底
   scoped 到 overlay（明暗两套）。
   ══════════════════════════════════════════════════════════ */
.ze-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
  background: var(--overlay);
  animation: overlay-fade 160ms ease-out;
  --ze-kai: "Kaiti SC", "STKaiti", "KaiTi", var(--font-serif);
  --ze-you-bg: #f6e8d8;
  --ze-you-ink: #8a5a24;
}
[data-theme="dark"] .ze-overlay {
  --ze-you-bg: #3a2f22;
  --ze-you-ink: #dcae76;
}
.ze-overlay.hidden {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .ze-overlay {
    animation: none;
  }
}

.ze-sheet {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 680px;
  background: var(--paper);
  border-radius: 16px;
  padding: 30px 26px 24px;
  box-shadow: var(--shadow-modal);
  animation: card-rise 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .ze-sheet {
    animation: none;
  }
}
.ze-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--ink-faint);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.ze-close:hover {
  color: var(--ink);
  background: var(--rule-soft);
}

/* ── 头部 ── */
.ze-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-right: 34px; /* 让开右上角关闭钮 */
}
.ze-title {
  margin: 0;
  font-family: var(--ze-kai);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
  display: flex;
  align-items: center;
}
.ze-seal {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  background: var(--seal-red);
  color: var(--seal-ink);
  border-radius: 6px;
  font-size: 15px;
  box-shadow: inset 0 -2px 5px rgb(90 20 14 / 0.3);
}
.ze-note {
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ── 事件 chips（单选）── */
.ze-events {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.ze-ev {
  padding: 6px 15px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
}
.ze-ev.on {
  font-weight: 600;
  color: var(--seal-ink);
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  box-shadow: 0 2px 6px rgb(0 96 85 / 0.25);
}

/* ── 范围分段 + 个人化行 ── */
.ze-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 11px 14px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.ze-seg {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 9px;
  overflow: hidden;
}
.ze-seg-btn {
  padding: 5px 13px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  cursor: pointer;
}
.ze-seg-btn.on {
  font-weight: 600;
  color: var(--cinnabar-deep);
  background: var(--cinnabar-wash);
}
.ze-pers {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.ze-pers small {
  color: var(--cinnabar-deep);
}
.ze-switch {
  position: relative;
  flex: none;
  width: 36px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--rule);
  cursor: pointer;
  transition: background 0.15s ease;
}
.ze-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
  transition: left 0.15s ease;
}
.ze-switch.on {
  background: var(--cinnabar);
}
.ze-switch.on::after {
  left: 18px;
}
.ze-pers-hint {
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ── 指定区间（A3.5）：起点年/月 select。关闭态槽位空、不渲染内容天然不占空间。 ── */
.ze-custom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 9px 14px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.ze-custom-label {
  font-size: 12.5px;
  color: var(--ink-soft);
}
.ze-custom-sel {
  padding: 6px 10px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

/* ── 结果 ── */
.ze-summary {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.ze-summary b {
  color: var(--cinnabar-deep);
}
.ze-empty {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--ink-faint);
}
.ze-days {
  display: grid;
  gap: 12px;
}
.ze-day {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 4px 22px;
  align-items: center;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 13px;
  box-shadow: 0 1px 3px rgb(30 37 33 / 0.05);
}
.ze-day.pick::after {
  content: "荐";
  position: absolute;
  top: -8px;
  right: 14px;
  padding: 3px 7px 4px;
  font-family: var(--ze-kai);
  font-size: 13px;
  color: var(--seal-ink);
  background: var(--cinnabar);
  border-radius: 0 0 7px 7px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3);
}
.ze-d-date {
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 74px;
  text-align: center;
}
.ze-d-date-main {
  min-width: 0;
}
.ze-d-date .dd {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}
.ze-d-date .dw {
  font-size: 12px;
  color: var(--ink-faint);
}
.ze-d-gz {
  grid-row: 1 / 3;
  min-width: 72px;
  padding-left: 22px;
  text-align: center;
  border-left: 1px solid var(--rule);
}
.ze-d-gz .gz {
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.ze-d-gz .lunar {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-faint);
}
.ze-d-gz .jc {
  display: inline-block;
  margin-top: 5px;
  padding: 1px 7px 2px;
  font-family: var(--ze-kai);
  font-size: 12.5px;
  color: var(--cinnabar-deep);
  border: 1px solid var(--cinnabar-deep);
  border-radius: 6px;
}
.ze-d-why {
  grid-column: 3;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.ze-d-why .why {
  padding: 3px 10px;
  font-size: 12px;
  color: var(--cinnabar-deep);
  background: var(--cinnabar-wash);
  border-radius: 999px;
}
.ze-d-why .why.you {
  color: var(--ze-you-ink);
  background: var(--ze-you-bg);
}
.ze-d-hours {
  grid-column: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 6px;
  margin-top: -1px;
}
.ze-d-hours-label {
  margin-right: 2px;
  font-size: 11px;
  color: var(--ink-faint);
}
.ze-d-hours .hour {
  padding: 2px 7px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.ze-avoid {
  margin: 16px 0 0;
  font-size: 12.5px;
  text-align: center;
  color: var(--ink-faint);
}
.ze-avoid b {
  font-weight: 600;
  color: var(--seal-red);
}
.ze-disc {
  margin: 22px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--ink-faint);
}
.ze-notice {
  margin: 18px 0;
  padding: 24px;
  font-size: 14px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

/* 窄屏（≤480，含 375px）：日期卡两列，干支回左、理由占满整行（对齐视觉稿 @media 520） */
@media (max-width: 480px) {
  .ze-sheet {
    padding: 26px 18px 20px;
  }
  .ze-day {
    grid-template-columns: auto 1fr;
  }
  .ze-d-gz {
    grid-row: auto;
    padding-left: 0;
    text-align: left;
    border-left: none;
  }
  .ze-d-why {
    grid-column: 1 / 3;
  }
  .ze-d-hours {
    grid-column: 1 / 3;
  }
  /* 4 项挤一行（30/60/90/指定区间）会让个别按钮文字被迫换行，收紧一档 */
  .ze-seg-btn {
    padding: 5px 8px;
    font-size: 11.5px;
  }
  .ze-custom-sel {
    padding: 5px 7px;
    font-size: 12px;
  }
}

/* ─── 手机触控目标机械修复（web-only；≤480px 手机档）────────────────────────
   审计（375/390/414）：内容区/浮层里若干「行内文字按钮」高度仅 18–31px，
   低于 40px 舒适触控下限。这里只放大点按热区、不改视觉布局、不动顶栏/HUD 导航
   （后者属整条移动导航重排，交设计流程）。web.css 仅 index.html 加载 → mini 天然不受影响。

   两类做法：
   1) 行内文字链（almanac/工作台入口）：加纵向 padding 撑热区 + 等量负 margin 抵消，
      文字与相邻元素视觉位置不变，仅热区变高（padding-box ≈ 40px）。
   2) 药丸/图标按钮（报告头/校准/浮层关闭）：min-height:40 + inline-grid/flex 居中，
      文字与图标垂直居中，按钮略高一档但不改行结构。 */
@media (max-width: 480px) {
  /* 首页黄历带入口：宜忌·黄历详情 / 择吉日（原 18px 高） */
  /* 与后继内容盒间隔 <11px(黄历带→卡 8px,管理行→下方 10px)——负 margin 抵消会让
     热区探进后绘制的盒子被其命中,实际不可点(codex review)。这几处放弃 margin 补偿,
     让行自然增高,布局多出的高度可接受。 */
  html[data-shell="web"] body.app-live .alm-more,
  html[data-shell="web"] body.app-live .alm-zeri {
    padding-block: 11px;
  }
  /* 命盘工作台入口：进入 › / 管理 ›（原 18–19px 高） */
  html[data-shell="web"] body.app-live .wb-rep-go,
  html[data-shell="web"] body.app-live .wb-others-manage {
    padding-block: 11px;
  }
  /* 深度报告头：返回（原 28px）与 生成长图/海报（原 31px） */
  html[data-shell="web"] .dossier-back,
  html[data-shell="web"] .dossier-share {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  /* 「就这段追问」逐段入口（原 26px 高） */
  html[data-shell="web"] .dossier-ask {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: fit-content;
  }
  /* 校准点按钮：应验/没有/聊聊这件事（核心校准回路，原 29px） */
  html[data-shell="web"] .vp-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  /* 浮层关闭按钮 ×（择日 / 起名，原 30×30） */
  html[data-shell="web"] .ze-close,
  html[data-shell="web"] .nm-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
  }
}
/* Web 相处设定中的 locale 三选，仅作用于 web shell。 */
html[data-shell="web"] .locale-preference {
  flex-shrink: 0;
  width: calc(100% - 40px);
  max-width: 680px;
  margin: 2px auto 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

html[data-shell="web"] .locale-copy {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 9px;
}

html[data-shell="web"] .locale-copy .profile-label {
  padding-top: 0;
}

html[data-shell="web"] .locale-hint {
  color: var(--ink-soft);
  font-size: 12px;
}

html[data-shell="web"] .locale-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

html[data-shell="web"] .locale-option {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

html[data-shell="web"] .locale-option:hover {
  color: var(--ink);
  border-color: var(--sage);
}

html[data-shell="web"] .locale-option.is-selected {
  color: var(--ink);
  border-color: var(--sage);
  background: var(--sage-wash);
}

html[data-shell="web"] .locale-option:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(111 143 132 / 0.25);
}

@media (max-width: 420px) {
  html[data-shell="web"] .locale-preference {
    width: calc(100% - 28px);
    padding-inline: 14px;
  }

  html[data-shell="web"] .locale-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

/* 今日行动卡（web-only）：瘦身首屏形态。左侧竖线走 --cinnabar*（现为 teal），
   「课」印走 --seal-red 朱砂族。暗色模式自动跟随各 token 的暗色变体。 */
html[data-shell="web"] .home-daily {
  margin: 0;
  max-width: none;
  padding: 0;
}
html[data-shell="web"] .daily-card {
  padding: 13px 15px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--cinnabar);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgb(30 37 33 / 0.07);
}
html[data-shell="web"] .daily-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
html[data-shell="web"] .daily-seal {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  font-family: var(--font-serif);
  font-size: 11.5px;
  line-height: 1;
  color: var(--seal-red);
  background: color-mix(in srgb, var(--seal-red) 10%, transparent);
  border-radius: 3px;
}
html[data-shell="web"] .daily-text {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink);
}
html[data-shell="web"] .daily-text.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
html[data-shell="web"] .daily-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
}
html[data-shell="web"] .daily-expand-btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-faint);
  cursor: pointer;
}
html[data-shell="web"] .daily-expand-btn:hover { color: var(--cinnabar-text); }
html[data-shell="web"] .daily-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
html[data-shell="web"] .daily-cta-text {
  flex: 1 1 160px;
  margin: 0;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
html[data-shell="web"] .daily-cta-btn {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 14px;
  font-size: 13px;
  color: #fff;
  background: var(--cinnabar);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
html[data-shell="web"] .daily-cta-btn:hover { background: var(--cinnabar-hover); }
html[data-shell="web"] .daily-done-btn {
  margin: 0;
  min-height: 28px;
  padding: 0 12px;
  font-size: 12.5px;
  color: var(--cinnabar-text);
  background: transparent;
  border: 1px solid var(--cinnabar);
  border-radius: 999px;
  cursor: pointer;
}
html[data-shell="web"] .daily-done-btn.is-done { color: #fff; background: var(--cinnabar); }

/* ============ 命理报告 PDF 导出（report-pdf.js，方向 A 古籍册页风） ============
   .pdfdoc 屏幕态隐藏；window.print() 时 body.pdf-printing 只显示它。
   颜色用字面值：打印不吃暗色主题，PDF 永远是纸面亮色。 */
.pdfdoc { display: none; }
@media print {
  body.pdf-printing > *:not(.pdfdoc) { display: none !important; }
  body.pdf-printing .pdfdoc { display: block; }
  body.pdf-printing { background: #fffdf2; }
  /* @page 由 report-pdf.js 导出期间动态插入（无法作用域,静态放这会劫持普通打印） */
  .pdf-page {
    position: relative;
    width: 210mm;
    min-height: 297mm;
    padding: 24mm 20mm;
    background: #fffdf2;
    color: #1e2521;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 10pt;
    line-height: 1.55;
    page-break-after: always;
    box-sizing: border-box;
  }
  .pdf-page:last-child { page-break-after: auto; }
  /* 解读页内容超一页时自然流页，节内不断开 */
  .pdf-flow { min-height: 0; height: auto; }
  .pdf-sec, .pdf-kv-cell, .pdf-luck-it, .pdf-pillar { break-inside: avoid; }
  /* 多子节维度：avoid 下放到「子题+正文」块，整节不再 avoid——否则一个
     三子节的长维度会被整体推到下一页，留出大片空白（grok review P2） */
  .pdf-sec-multi { break-inside: auto; }
  .pdf-sec-block { break-inside: avoid; }
  /* 标题后不断页：节头/子题落在页底而正文翻页是印刷孤行，标题必须
     跟着它引导的内容走 */
  .pdf-sec-h, .pdf-sec-sub { break-after: avoid; }

  /* 封面 */
  .pdf-cover { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fbf4cc; }
  .pdf-frame { position: absolute; inset: 10mm; border: 1px solid #e7e1bd; outline: 1px solid #e7e1bd; outline-offset: 2.2mm; }
  .pdf-seal { width: 33mm; height: 33mm; display: grid; place-items: center; background: #c0402a; color: #fffdf2; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 44pt; border-radius: 5.5mm; margin: 42mm 0 16mm; }
  .pdf-title { margin: 0 0 4mm; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 50pt; line-height: 1.10; letter-spacing: 0.34em; text-indent: 0.34em; font-weight: 500; }
  /* 标题下朱砂细线:纯 CSS 加仪式感,不改渲染 DOM(text-indent 会继承给 block 子元素,须归零) */
  .pdf-title::after { content: ""; display: block; width: 22mm; height: 0.6mm; margin: 7mm auto 0; text-indent: 0; background: #c0402a; opacity: 0.7; }
  .pdf-en { margin: 6mm 0 20mm; font-size: 9pt; line-height: 1.40; letter-spacing: 0.32em; color: #8a948b; }
  .pdf-who { margin: 0 0 3mm; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 24pt; line-height: 1.20; letter-spacing: 0.12em; }
  .pdf-meta { margin: 0 0 1mm; font-size: 11pt; line-height: 1.55; color: #5d675f; }
  .pdf-school { margin: 16mm 0 0; font-size: 11pt; line-height: 1.55; color: #007067; letter-spacing: 0.18em; }
  .pdf-brand { position: absolute; bottom: 16mm; left: 0; right: 0; font-size: 9.5pt; line-height: 1.40; color: #8a948b; letter-spacing: 0.14em; }

  /* 章头 + 引文 */
  .pdf-chap { text-align: center; margin: 0 0 2mm; }
  .pdf-chap-t { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 20pt; line-height: 1.20; font-weight: 500; letter-spacing: 0.2em; }
  .pdf-chap-line { width: 20mm; height: 0.4mm; background: #c0402a; opacity: 0.55; margin: 3mm auto 0; }
  .pdf-quote { margin: 7mm 10mm 15mm; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 10pt; line-height: 1.55; color: #8a948b; text-align: center; }
  .pdf-quote::before { content: "「"; color: #c0402a; }
  .pdf-quote::after { content: "」"; color: #c0402a; }

  /* 四柱表 */
  .pdf-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4.5mm; margin: 5mm 0 16mm; }
  .pdf-pillar { background: #fbf4cc; border: 1px solid #e7e1bd; border-radius: 2.5mm; padding: 9mm 2mm 9.5mm; text-align: center; }
  .pdf-pillar-lb { font-size: 8.5pt; line-height: 1.55; color: #8a948b; letter-spacing: 0.2em; margin-bottom: 2mm; }
  .pdf-pillar-gz { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 26pt; font-weight: 500; line-height: 1.15; white-space: pre-line; }
  .pdf-pillar-ss { font-size: 8.5pt; line-height: 1.55; color: #007067; margin-top: 1.5mm; }

  /* 五行条 */
  .pdf-wux { margin: 0 0 16mm; }
  .pdf-wux-row { display: flex; align-items: center; gap: 3mm; margin-bottom: 6mm; }
  .pdf-wux-nm { width: 7mm; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 11pt; line-height: 1.55; }
  .pdf-wux-track { flex: 1; height: 3mm; background: #f1ecd2; border-radius: 1.6mm; overflow: hidden; }
  .pdf-wux-fill { height: 100%; border-radius: 1.6mm; }
  .pdf-wux-pc { width: 11mm; font-size: 9pt; line-height: 1.40; color: #8a948b; text-align: right; }
  .pdf-wux-fav { width: 6mm; font-size: 8.5pt; line-height: 1.55; color: #c0402a; }

  /* 速览四格 */
  .pdf-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; }
  .pdf-kv-cell { background: #fbf4cc; border: 1px solid #f1ecd2; border-radius: 2.5mm; padding: 8mm 5.5mm; }
  .pdf-kv-k { font-size: 8.5pt; line-height: 1.55; color: #8a948b; letter-spacing: 0.14em; margin-bottom: 1mm; }
  .pdf-kv-v {
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 12.5pt;
    line-height: 1.30;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  /* 正文节 */
  .pdf-sec { margin: 0 0 5.5mm; }
  .pdf-sec-h { display: flex; align-items: baseline; gap: 3mm; margin-bottom: 2mm; }
  .pdf-sec-sq { width: 2.4mm; height: 2.4mm; background: #c0402a; opacity: 0.8; border-radius: 0.6mm; }
  .pdf-sec-t { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 13pt; line-height: 1.30; font-weight: 500; letter-spacing: 0.06em; }
  .pdf-sec-sub { margin: 4mm 0 1.5mm; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 11pt; line-height: 1.30; font-weight: 500; color: #1e2521; }
  .pdf-sec-p { margin: 0; font-size: 10pt; line-height: 1.55; color: #5d675f; text-align: justify; }

  /* 开运锦囊 */
  .pdf-luck { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; margin-top: 2mm; }
  .pdf-luck-it { background: #fbf4cc; border: 1px solid #e7e1bd; border-radius: 3mm; padding: 4.5mm 5mm; display: flex; align-items: center; gap: 4mm; }
  .pdf-luck-dot { width: 6mm; height: 6mm; border-radius: 50%; flex: 0 0 auto; }
  .pdf-luck-k { font-size: 9pt; line-height: 1.40; color: #8a948b; margin-bottom: 0.5mm; }
  .pdf-luck-v { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 12.5pt; line-height: 1.30; }
  /* 末页(开运锦囊)撑满:内容少时(如紫微不生成幸运属性速查表)免责被 margin-top
     auto 推到页脚,中间空白成为版心留白而非「没做完」;内容多时自动回退正常流 */
  .pdf-page-end { display: flex; flex-direction: column; }
  /* 免责不单独起页:内容量恰好卡在页界时,宁可挤回上一页页脚也不要单开一页 */
  .pdf-disc { break-before: avoid; margin-top: auto; padding-top: 7mm; border-top: 1px solid #f1ecd2; font-size: 8.5pt; line-height: 1.55; color: #8a948b; }
}

/* ─── 择日 grade 徽章（三层化表示；仅 web 壳）──────────────────────────────
   excellent=上吉朱砂底白字 / good=吉 teal 描边 / fair=平灰描边 / poor=慎用淡墨。
   modules 明细本期不展示，只加徽章。 */
html[data-shell="web"] .ze-grade {
  flex: 0 0 auto;
  display: inline-block;
  padding: 2px 7px 3px;
  font-family: var(--ze-kai, var(--font-serif));
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0.06em;
  border-radius: 6px;
  white-space: nowrap;
}
html[data-shell="web"] .ze-grade-excellent {
  color: var(--seal-ink, #fffefb);
  background: var(--seal-red);
  border: 1px solid var(--seal-red);
}
html[data-shell="web"] .ze-grade-good {
  color: var(--cinnabar-text);
  background: transparent;
  border: 1px solid var(--cinnabar-text);
}
html[data-shell="web"] .ze-grade-fair {
  color: var(--ink-faint);
  background: transparent;
  border: 1px solid var(--ink-faint);
}
html[data-shell="web"] .ze-grade-poor {
  color: var(--ink-faint);
  background: transparent;
  border: 1px solid transparent;
}

/* ─── 一掌经速览（web-only）─────────────────────────────────────────────── */
html[data-shell="web"] body.app-live .home-yzj {
  margin: 28px 0 0;
  padding: 18px 0 20px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
html[data-shell="web"] body.app-live .home-yzj .yzj-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto 6px;
  padding: 0 24px;
}
html[data-shell="web"] body.app-live .home-yzj .home-sect {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}
html[data-shell="web"] body.app-live .yzj-more {
  padding: 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--cinnabar-text);
  cursor: pointer;
}
html[data-shell="web"] body.app-live .yzj-lead {
  max-width: 880px;
  margin: 0 auto 10px;
  padding: 0 24px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
html[data-shell="web"] body.app-live .yzj-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
html[data-shell="web"] body.app-live .yzj-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
html[data-shell="web"] body.app-live .yzj-sel {
  min-height: 36px;
  padding: 4px 8px;
  font-size: 13px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
html[data-shell="web"] body.app-live .yzj-submit {
  min-height: 36px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--seal-ink, #fffefb);
  background: var(--seal-red);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
html[data-shell="web"] body.app-live .yzj-dir {
  margin: 8px 0 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}
/* 掌诀带:一条整带,宫位间发丝线分隔(去独立卡片化的 AI 网格味);
   年宫(.yzj-palace-root)是一掌经之根,朱砂顶缘+星名朱砂立主次 */
html[data-shell="web"] body.app-live .yzj-palaces {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 14px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
html[data-shell="web"] body.app-live .yzj-palace {
  padding: 13px 8px 14px;
  text-align: center;
  border-left: 1px solid var(--rule-soft);
  /* 结果入场:逐宫 stagger(40ms 间隔,250ms ease-out,只动 transform/opacity) */
  animation: yzj-in 250ms cubic-bezier(0.23, 1, 0.32, 1) both;
  animation-delay: calc(var(--yzj-i, 0) * 40ms);
}
html[data-shell="web"] body.app-live .yzj-palace:first-child {
  border-left: 0;
}
html[data-shell="web"] body.app-live .yzj-palace-root {
  box-shadow: inset 0 2.5px 0 var(--seal-red);
}
html[data-shell="web"] body.app-live .yzj-palace-root .yzj-star {
  color: var(--seal-red);
}
@keyframes yzj-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-shell="web"] body.app-live .yzj-palace {
    animation: none;
  }
}
html[data-shell="web"] body.app-live .yzj-pos {
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}
html[data-shell="web"] body.app-live .yzj-branch {
  font-size: 13px;
  color: var(--ink-soft);
}
html[data-shell="web"] body.app-live .yzj-star {
  margin: 4px 0 2px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
}
html[data-shell="web"] body.app-live .yzj-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--ink-faint);
}
/* 品级色彩语义:上品朱砂/中品 teal/下品灰(色点+文字双通道) */
html[data-shell="web"] body.app-live .yzj-grade-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: 0 0 auto;
}
html[data-shell="web"] body.app-live .yzj-grade-up { background: var(--seal-red); }
html[data-shell="web"] body.app-live .yzj-grade-mid { background: var(--cinnabar); }
html[data-shell="web"] body.app-live .yzj-grade-down { background: var(--ink-faint); opacity: 0.55; }
html[data-shell="web"] body.app-live .yzj-texts {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}
html[data-shell="web"] body.app-live .yzj-text-item {
  padding: 9px 2px;
  border-top: 1px solid var(--rule-soft);
}
html[data-shell="web"] body.app-live .yzj-text-item:first-child {
  border-top: 0;
}
html[data-shell="web"] body.app-live .yzj-text-pos {
  display: inline-block;
  margin-right: 8px;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}
html[data-shell="web"] body.app-live .yzj-text-star {
  display: inline-block;
  margin-right: 8px;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--cinnabar-text);
}
html[data-shell="web"] body.app-live .yzj-text-body {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}
html[data-shell="web"] body.app-live .yzj-cta {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
html[data-shell="web"] body.app-live .yzj-cta-btn {
  min-height: 32px;
  padding: 0 14px;
  background: none;
  border: 1px solid var(--cinnabar-mute, var(--cinnabar));
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  color: var(--cinnabar-text);
  cursor: pointer;
  transition: background 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
html[data-shell="web"] body.app-live .yzj-cta-btn:active {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  html[data-shell="web"] body.app-live .yzj-cta-btn:hover {
    background: var(--cinnabar-wash, transparent);
  }
}
/* 标题朱砂小印「掌」:接 cub 印章体系(聊/稿/问) */
html[data-shell="web"] body.app-live .yzj-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
html[data-shell="web"] body.app-live .yzj-seal {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  font-family: var(--font-serif);
  font-size: 11.5px;
  color: var(--seal-ink, #fffdf2);
  background: var(--seal-red);
  border-radius: 4.5px;
}
html[data-shell="web"] body.app-live .yzj-err,
html[data-shell="web"] body.app-live .yzj-loading {
  margin: 8px 0;
  font-size: 13px;
  color: var(--ink-faint);
}
html[data-shell="web"] .yzj-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgb(20 28 24 / 0.42);
}
html[data-shell="web"] .yzj-overlay.hidden {
  display: none;
}
html[data-shell="web"] .yzj-sheet {
  position: relative;
  width: min(640px, 100%);
  max-height: min(84vh, 720px);
  overflow: auto;
  padding: 28px 24px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgb(20 28 24 / 0.18);
}
html[data-shell="web"] .yzj-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-faint);
  background: none;
  border: none;
  cursor: pointer;
}
html[data-shell="web"] .yzj-ov-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.08em;
}
@media (max-width: 640px) {
  html[data-shell="web"] body.app-live .yzj-palaces {
    grid-template-columns: repeat(2, 1fr);
  }
  /* 2×2 折行:第二行加上缘发丝线;每行首格去左线 */
  html[data-shell="web"] body.app-live .yzj-palace:nth-child(n + 3) {
    border-top: 1px solid var(--rule-soft);
  }
  html[data-shell="web"] body.app-live .yzj-palace:nth-child(3) {
    border-left: 0;
  }
}

/* 二期：命宫卡 / 大限条 / 今年小限 */
html[data-shell="web"] body.app-live .yzj-ming {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
html[data-shell="web"] body.app-live .yzj-ming.yzj-palace-root {
  box-shadow: inset 0 2.5px 0 var(--seal-red);
}
html[data-shell="web"] body.app-live .yzj-ming-line {
  margin-bottom: 4px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--seal-red);
}
html[data-shell="web"] body.app-live .yzj-sect-label {
  margin: 0 0 6px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}
html[data-shell="web"] body.app-live .yzj-dayun {
  margin: 0 0 12px;
  /* 阻断大限条固有宽(8 段 min-content≈620px)沿 flex/grid 祖先链外泄撑破视口
     (min-width:auto 族坑,同 tabbar):contain 让内容宽不参与祖先测量,
     strip 的 overflow-x 才真正内部横滚 */
  contain: inline-size;
}
html[data-shell="web"] body.app-live .yzj-dayun-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
html[data-shell="web"] body.app-live .yzj-dayun-strip::-webkit-scrollbar {
  display: none;
}
html[data-shell="web"] body.app-live .yzj-dayun-cell {
  position: relative;
  flex: 0 0 auto;
  min-width: 72px;
  padding: 8px 10px;
  text-align: center;
  font: inherit;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
html[data-shell="web"] body.app-live .yzj-dayun-cell:hover {
  border-color: var(--rule);
}
html[data-shell="web"] body.app-live .yzj-dayun-cell:focus-visible {
  outline: 2px solid var(--seal-red);
  outline-offset: 2px;
}
html[data-shell="web"] body.app-live .yzj-dayun-cur {
  border-color: var(--seal-red);
  box-shadow: inset 0 0 0 1px var(--seal-red);
}
html[data-shell="web"] body.app-live .yzj-dayun-now {
  position: absolute;
  top: 3px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  font-family: var(--font-serif);
  font-size: 9px;
  line-height: 1;
  color: var(--seal-ink, #fffdf2);
  background: var(--seal-red);
  border-radius: 3px;
}
html[data-shell="web"] body.app-live .yzj-dayun-age {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
html[data-shell="web"] body.app-live .yzj-dayun-br {
  margin-top: 3px;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--ink);
}
html[data-shell="web"] body.app-live .yzj-dayun-detail {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
}
html[data-shell="web"] body.app-live .yzj-dayun-detail-line {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--ink);
}
html[data-shell="web"] body.app-live .yzj-dayun-detail-text {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}
html[data-shell="web"] body.app-live .yzj-year {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
}
html[data-shell="web"] body.app-live .yzj-year-line {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
html[data-shell="web"] body.app-live .yzj-year-text {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 文章标签筛选(#708):可点 pill + 列表头筛选条 */
html[data-shell="web"] .article-tag {
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  html[data-shell="web"] .article-tag:hover {
    color: var(--cinnabar-text);
    background: rgb(192 64 42 / 0.14);
    border-color: rgb(192 64 42 / 0.4);
  }
  html[data-shell="web"][data-theme="dark"] .article-tag:hover {
    background: rgb(214 106 72 / 0.18);
    border-color: rgb(214 106 72 / 0.45);
  }
}
html[data-shell="web"] .articles-tag-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
html[data-shell="web"] .articles-tag-filter-mark {
  cursor: default;
  pointer-events: none;
}
html[data-shell="web"] .articles-tag-filter-clear {
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--ink-faint);
  background: transparent;
  border: 0;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  html[data-shell="web"] .articles-tag-filter-clear:hover {
    color: var(--cinnabar-text);
  }
}

/* 文章评论区：纸感发丝线分隔，无卡片 */
html[data-shell="web"] .article-comments {
  margin: 48px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--rule);
}
html[data-shell="web"] .article-comments-title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}
html[data-shell="web"] .article-comments-list {
  display: flex;
  flex-direction: column;
}
html[data-shell="web"] .article-comments-empty {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink-faint);
}
html[data-shell="web"] .article-comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
}
html[data-shell="web"] .article-comment:last-child {
  border-bottom: 0;
}
html[data-shell="web"] .article-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
html[data-shell="web"] .article-comment-name {
  color: var(--ink-soft);
}
html[data-shell="web"] .article-comment-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
html[data-shell="web"] .article-comment-composer {
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--rule-soft);
}
html[data-shell="web"] .article-comment-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  resize: vertical;
  min-height: 72px;
}
html[data-shell="web"] .article-comment-input:focus {
  outline: none;
  border-bottom-color: var(--cinnabar);
}
html[data-shell="web"] .article-comment-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
html[data-shell="web"] .article-comment-error {
  margin: 0;
  margin-right: auto;
  font-size: 13px;
  color: var(--cinnabar-text);
}
html[data-shell="web"] .article-comment-submit,
html[data-shell="web"] .article-comment-login {
  margin: 0;
  padding: 8px 18px;
  font: inherit;
  font-size: 14px;
  color: var(--cinnabar-deep);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 6px;
  cursor: pointer;
}
html[data-shell="web"] .article-comment-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
html[data-shell="web"] .article-comment-login {
  margin-top: 18px;
}
@media (hover: hover) and (pointer: fine) {
  html[data-shell="web"] .article-comment-submit:hover:not(:disabled),
  html[data-shell="web"] .article-comment-login:hover {
    color: var(--cinnabar-text);
    border-color: rgb(192 64 42 / 0.45);
  }
}

/* ══ 2026 首页：纸上编辑感 × 动态模型 ══ */
html[data-shell="web"] body.app-live[data-tab="home"] {
  --hp-paper: #f2efe5;
  --hp-paper-light: #faf8f1;
  --hp-ink: #20251f;
  --hp-soft: #616961;
  --hp-quiet: #858b82;
  --hp-rule: #d8d3c5;
  --hp-jade: #17685f;
  --hp-jade-deep: #0e4f49;
  --hp-ethos: #0e4f49;
  --hp-jade-pale: #dce9e4;
  --hp-seal: #b74c36;
  --hp-ease: cubic-bezier(0.23, 1, 0.32, 1);
  background: var(--hp-paper);
}

html[data-shell="web"][data-theme="dark"] body.app-live[data-tab="home"] {
  --hp-paper: #15211e;
  --hp-paper-light: #1e2d29;
  --hp-ink: #ece9d8;
  --hp-soft: #a8b0a6;
  --hp-quiet: #828a80;
  --hp-rule: #34433d;
  --hp-jade: #6cc0b2;
  --hp-jade-deep: #7fcabd;
  --hp-ethos: #123f39;
  --hp-jade-pale: #1c2d29;
  --hp-seal: #d66a48;
}

html[data-shell="web"] body.app-live[data-tab="home"] #topbar {
  /* home-nav 已删，不再需要为它撑高；与内页 topbar 同高，切页时导航条不跳 */
  padding: max(10px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 10px
    max(28px, env(safe-area-inset-left));
  flex-wrap: nowrap;
  background: var(--hp-paper);
  border-bottom-color: var(--hp-rule);
}

html[data-shell="web"] body.app-live[data-tab="home"] .brand {
  min-width: max-content;
  gap: 10px;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--hp-ink);
}

html[data-shell="web"] body.app-live[data-tab="home"] .brand-seal {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--hp-seal);
  font-size: 19px;
}

html[data-shell="web"] body.app-live[data-tab="home"] .topbar-right {
  min-width: max-content;
  gap: 5px;
}

html[data-shell="web"] body.app-live[data-tab="home"] #btn-home-login {
  min-width: 78px;
  min-height: 42px;
  padding: 8px 18px;
  border-color: var(--hp-rule);
  border-radius: 7px;
  color: var(--hp-ink);
}

html[data-shell="web"] body.app-live[data-tab="home"] #btn-home-login:hover {
  border-color: var(--hp-jade);
  background: var(--hp-jade-pale);
  color: var(--hp-jade);
}

html[data-shell="web"] body.app-live[data-tab="home"] .topbar-right .btn-icon {
  color: var(--hp-soft);
}

html[data-shell="web"] body.app-live[data-tab="home"] .home-panel {
  --paper: var(--hp-paper);
  --card: var(--hp-paper-light);
  --ink: var(--hp-ink);
  --ink-soft: var(--hp-soft);
  --ink-faint: var(--hp-quiet);
  --rule: var(--hp-rule);
  --rule-soft: color-mix(in srgb, var(--hp-rule) 58%, var(--hp-paper));
  --cinnabar: var(--hp-jade);
  --cinnabar-text: var(--hp-jade);
  --cinnabar-deep: var(--hp-jade-deep);
  --cinnabar-hover: var(--hp-jade-deep);
  --cinnabar-wash: var(--hp-jade-pale);
  overflow: visible;
  color: var(--hp-ink);
  background:
    linear-gradient(rgb(32 37 31 / 0.017) 1px, transparent 1px),
    var(--hp-paper);
  background-size: 100% 36px, auto;
}

html[data-shell="web"] body.app-live[data-tab="home"] .home-panel::after {
  height: 0;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(560px, 1.2fr);
  align-items: center;
  gap: clamp(40px, 5vw, 84px);
  width: min(1460px, calc(100% - 56px));
  min-height: calc(100dvh - 73px);
  margin: 0 auto;
  padding: clamp(72px, 8vw, 128px) 0;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 26px;
  color: var(--hp-jade);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-kicker::before {
  width: 34px;
  height: 1px;
  background: var(--hp-jade);
  content: "";
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-hero h1 {
  max-width: 7.2em;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(62px, 6.8vw, 104px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-lead {
  max-width: 28em;
  margin: 30px 0 0;
  color: var(--hp-soft);
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.85;
  text-wrap: pretty;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-lead strong {
  display: block;
  margin-top: 5px;
  color: var(--hp-ink);
  font-weight: 600;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-creed {
  margin: 30px 0 0;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.12em;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-creed span {
  padding: 0 9px;
  color: var(--hp-seal);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-quick {
  display: flex;
  flex: 1 1 100%;
  gap: 8px;
  margin: 2px 0 18px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
    /* flex 子项 min-width 默认 auto：5 个 chip 的固有宽会撑破祖先造成整页横滚
       （实测 473px vs 父容器 362px），overflow-x 形同虚设。归零才真正内部横滑。 */
    min-width: 0;
    max-width: 100%;
  }

html[data-shell="web"] body.app-live[data-tab="home"] .hp-quick::-webkit-scrollbar {
  display: none;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-quick-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border: 1px solid var(--hp-rule);
  border-radius: 16px;
  background: var(--hp-paper-light);
  color: var(--hp-ink);
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-quick-chip i {
  font-family: var(--font-serif);
  font-size: 11px;
  font-style: normal;
  color: var(--seal-red);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-hero-actions > .home-daily {
  flex: 1 1 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-primary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 20px;
  border: 1px solid var(--hp-jade);
  border-radius: 7px;
  background: var(--hp-jade);
  color: var(--hp-paper-light);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgb(23 104 95 / 0.14);
  cursor: pointer;
  transition: transform 100ms var(--hp-ease), background-color 160ms var(--hp-ease);
}

html[data-shell="web"][data-theme="dark"] body.app-live[data-tab="home"] .hp-primary {
  color: #10201c;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-primary:active,
html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool:active {
  transform: scale(0.97);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--hp-rule);
  background: transparent;
  color: var(--hp-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 160ms var(--hp-ease), border-color 160ms var(--hp-ease);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-lock {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 8px;
  opacity: 0.72;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-model {
  display: grid;
  min-width: 0;
  place-items: center;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit {
  position: relative;
  width: min(100%, 650px);
  aspect-ratio: 1;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-ring,
html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-ring::before,
html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-ring::after {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--hp-jade) 26%, var(--hp-rule));
  border-radius: 50%;
  content: "";
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-ring {
  inset: 7%;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-ring::before {
  inset: 15%;
  border-color: var(--hp-rule);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-ring::after {
  inset: 34%;
  border-color: color-mix(in srgb, var(--hp-seal) 28%, var(--hp-rule));
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-accent {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background: conic-gradient(
    from 212deg,
    var(--hp-jade) 0 34deg,
    transparent 34deg 204deg,
    var(--hp-seal) 204deg 210deg,
    transparent 210deg
  );
  mask: radial-gradient(transparent 68.7%, #000 69%);
  opacity: 0.82;
  pointer-events: none;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-axis {
  position: absolute;
  inset: 50% 5% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hp-rule) 17%, var(--hp-rule) 83%, transparent);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-axis-v {
  inset: 5% auto 5% 50%;
  width: 1px;
  height: auto;
  background: linear-gradient(transparent, var(--hp-rule) 17%, var(--hp-rule) 83%, transparent);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 178px;
  aspect-ratio: 1;
  place-content: center;
  padding: 24px;
  transform: translate(-50%, -50%);
  border: 1px solid color-mix(in srgb, var(--hp-jade) 38%, var(--hp-rule));
  border-radius: 50%;
  background: var(--hp-paper-light);
  text-align: center;
  box-shadow: 0 22px 70px rgb(45 48 38 / 0.1);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-core small {
  color: var(--hp-jade);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-core strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-core span {
  display: block;
  margin-top: 7px;
  color: var(--hp-soft);
  font-size: 11px;
  line-height: 1.55;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-node {
  position: absolute;
  display: grid;
  min-width: 98px;
  min-height: 54px;
  gap: 3px;
  padding: 8px;
  border: 0;
  background: var(--hp-paper);
  color: var(--hp-ink);
  text-align: center;
  cursor: pointer;
  transition: color 180ms var(--hp-ease), transform 180ms var(--hp-ease);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-node strong {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-node span {
  color: var(--hp-quiet);
  font-size: 11px;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-node[aria-pressed="true"] {
  color: var(--hp-jade);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-node[data-orbit-node="structure"] {
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-node[data-orbit-node="relation"] {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-node[data-orbit-node="choice"] {
  bottom: 1%;
  left: 50%;
  transform: translateX(-50%);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-node[data-orbit-node="reality"] {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-source,
html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-unknown {
  position: absolute;
  color: var(--hp-soft);
  font-size: 11px;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-source {
  right: 8%;
  bottom: 12%;
  max-width: 240px;
  text-align: right;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-unknown {
  top: 13%;
  left: 7%;
  color: var(--hp-seal);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-ethos {
  background: var(--hp-ethos);
  color: #faf8f1;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-boundary {
  width: min(1460px, calc(100% - 56px));
  margin: 0 auto;
  padding: clamp(96px, 10vw, 160px) 0;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-ethos-kicker {
  margin: 0;
  color: rgb(250 248 241 / 0.66);
  font-size: 13px;
  letter-spacing: 0.14em;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-ethos h2 {
  max-width: 9em;
  margin: 28px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(54px, 7vw, 108px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin-top: clamp(70px, 8vw, 116px);
  padding-top: 24px;
  border-top: 1px solid rgb(250 248 241 / 0.28);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-values div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 16px;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-values strong {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-values span {
  color: rgb(250 248 241 / 0.68);
  font-size: 13px;
  line-height: 1.7;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-capabilities {
  width: min(1460px, calc(100% - 56px));
  margin: 0 auto;
  padding: clamp(96px, 10vw, 154px) 0 44px;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-capabilities-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 72px;
  margin-bottom: 64px;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-capabilities-head h2 {
  max-width: 11em;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(46px, 5.4vw, 78px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-capabilities-head p {
  margin: 0;
  color: var(--hp-soft);
  font-size: 14px;
  line-height: 1.8;
  text-wrap: pretty;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-master-strip {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  min-height: 184px;
  padding: 32px 0;
  border-top: 1px solid var(--hp-ink);
  border-bottom: 1px solid var(--hp-rule);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-master-strip h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(29px, 3vw, 43px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-master-strip p {
  max-width: 39em;
  margin: 0;
  color: var(--hp-soft);
  font-size: 14px;
  line-height: 1.8;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool-list {
  border-top: 1px solid var(--hp-ink);
  border-bottom: 1px solid var(--hp-ink);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool-grid {
  display: grid;
  min-width: 0;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool-grid + .hp-tool-grid {
  border-top: 1px solid var(--hp-ink);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 16px;
  row-gap: 7px;
  min-height: 154px;
  padding: 26px 28px;
  border: 0;
  border-right: 1px solid var(--hp-rule);
  background: transparent;
  color: var(--hp-ink);
  text-align: left;
  cursor: pointer;
  transition: color 160ms var(--hp-ease), background-color 160ms var(--hp-ease),
    transform 100ms var(--hp-ease);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool:last-child {
  border-right: 0;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool-glyph {
  display: grid;
  grid-row: 1 / -1;
  width: 44px;
  height: 44px;
  place-items: center;
  align-self: center;
  border: 1px solid color-mix(in srgb, var(--hp-jade) 34%, var(--hp-rule));
  border-radius: 50%;
  color: var(--hp-jade);
  font-family: var(--font-serif);
  font-size: 20px;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool strong {
  grid-column: 2;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool > span:not(.hp-tool-glyph) {
  grid-column: 2;
  color: var(--hp-soft);
  font-size: 14px;
  line-height: 1.6;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool b {
  grid-column: 3;
  grid-row: 1 / -1;
  align-self: center;
  color: var(--hp-jade);
  font-size: 20px;
  font-weight: 400;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-live-content {
  padding-top: 0;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-live-content .home-almanac,
html[data-shell="web"] body.app-live[data-tab="home"] .hp-live-content .home-yzj,
html[data-shell="web"] body.app-live[data-tab="home"] .hp-live-content .home-daily {
  margin-top: 42px;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-view,
html[data-shell="web"] body.app-live[data-tab="home"] .reader-view {
  min-height: calc(100dvh - 73px);
  padding: clamp(48px, 6vw, 88px) max(28px, calc((100% - 1120px) / 2)) 96px;
  background: var(--hp-paper);
}

html[data-shell="web"] body.app-live[data-tab="home"] .reader-view {
  width: 100%;
  max-width: none;
  margin: 0;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-head {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--hp-rule);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-back,
html[data-shell="web"] body.app-live[data-tab="home"] .reader-back {
  min-height: 38px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--hp-jade);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-kicker {
  margin: 44px 0 12px;
  color: var(--hp-quiet);
  font-size: 12px;
  letter-spacing: 0.14em;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-head h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.045em;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-desc {
  max-width: 42em;
  margin: 18px 0 0;
  color: var(--hp-soft);
  font-size: 15px;
  line-height: 1.8;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-body {
  padding-top: 34px;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-body .home-yzj {
  margin-top: 0;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-view [data-home-stage="yizhang"] .home-yzj {
  padding: 0;
  border: 0;
  background: transparent;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-view [data-home-stage="yizhang"] .yzj-head,
html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-view [data-home-stage="yizhang"] .yzj-lead {
  display: none;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-view [data-home-stage="yizhang"] .yzj-body {
  max-width: none;
  padding: 0;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-view [data-home-stage="yizhang"] .yzj-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  padding: 8px 0 36px;
  border-bottom: 1px solid var(--hp-rule);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-view [data-home-stage="yizhang"] .yzj-form::before {
  content: "输入生辰";
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--hp-ink);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-view [data-home-stage="yizhang"] .yzj-form-row {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr 0.75fr 1.45fr 0.75fr;
  gap: 10px;
  margin: 0;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-view [data-home-stage="yizhang"] .yzj-sel {
  width: 100%;
  min-height: 48px;
  padding: 6px 13px;
  border-color: var(--hp-rule);
  border-radius: 6px;
  background: var(--hp-paper-light);
  color: var(--hp-ink);
  font-size: 14px;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-view [data-home-stage="yizhang"] .yzj-submit {
  min-width: 108px;
  min-height: 48px;
  padding: 8px 20px;
  border-radius: 6px;
  background: var(--hp-jade);
  color: var(--hp-paper);
  font-size: 14px;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-view [data-home-stage="yizhang"] .yzj-submit:hover {
  background: var(--hp-jade-deep);
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-body .home-sect-books {
  margin-top: 0;
}

html[data-shell="web"] body.app-live[data-tab="home"] .reader-head {
  top: 0;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 24px;
  background: var(--hp-paper);
  border-bottom: 1px solid var(--hp-rule);
}

html[data-shell="web"] body.app-live[data-tab="home"] .reader-title {
  font-family: var(--font-serif);
  font-size: 24px;
}

html[data-shell="web"] body.app-live[data-tab="home"] .reader-body {
  max-width: 760px;
  margin: 42px auto 0;
}

@media (max-width: 760px) {
  html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-view [data-home-stage="yizhang"] .yzj-form {
    grid-template-columns: 1fr;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-view [data-home-stage="yizhang"] .yzj-submit {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-view [data-home-stage="yizhang"] .yzj-form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-feature-view [data-home-stage="yizhang"] .yzj-form-row .yzj-sel:nth-child(4) {
    grid-column: 1 / -1;
  }
}

html[data-shell="web"] body.app-live[data-tab="home"] .home-beian {
  width: min(1460px, calc(100% - 56px));
  max-width: none;
  margin-top: 54px;
  padding-right: 0;
  padding-left: 0;
}

html[data-shell="web"] body.app-live[data-tab="home"] .hp-primary:focus-visible,
html[data-shell="web"] body.app-live[data-tab="home"] .hp-text-link:focus-visible,
html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool:focus-visible,
html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-node:focus-visible,
html[data-shell="web"] body.app-live[data-tab="home"] .hp-quick-chip:focus-visible {
  outline: 0;
  border-radius: 4px;
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--hp-jade) 42%, transparent);
}

@media (hover: hover) and (pointer: fine) {
  html[data-shell="web"] body.app-live[data-tab="home"] .hp-text-link:hover {
    border-color: var(--hp-jade);
    color: var(--hp-jade);
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-primary:hover {
    background: var(--hp-jade-deep);
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-quick-chip:hover {
    border-color: var(--hp-jade);
    transform: translateY(-1px);
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-node:hover {
    color: var(--hp-jade);
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-node[data-orbit-node="structure"]:hover,
  html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-node[data-orbit-node="choice"]:hover {
    transform: translateX(-50%) translateY(-3px);
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-node[data-orbit-node="relation"]:hover,
  html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-node[data-orbit-node="reality"]:hover {
    transform: translateY(-50%) translateX(3px);
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool:hover {
    background: rgb(250 248 241 / 0.62);
    color: var(--hp-jade);
  }

  html[data-shell="web"][data-theme="dark"] body.app-live[data-tab="home"] .hp-tool:hover {
    background: rgb(255 255 255 / 0.035);
  }
}

@media (max-width: 1120px) {
  html[data-shell="web"] body.app-live[data-tab="home"] .hp-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-hero-copy {
    max-width: 760px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-hero h1 {
    max-width: 10em;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit {
    width: min(100%, 620px);
  }
}

@media (max-width: 900px) {
  html[data-shell="web"] body.app-live[data-tab="home"] #topbar {
    flex-wrap: wrap;
    }

  html[data-shell="web"] body.app-live[data-tab="home"] .topbar-right {
    margin-left: auto;
  }
}

@media (max-width: 820px) {
  html[data-shell="web"] body.app-live[data-tab="home"] .hp-values,
  html[data-shell="web"] body.app-live[data-tab="home"] .hp-capabilities-head,
  html[data-shell="web"] body.app-live[data-tab="home"] .hp-master-strip {
    grid-template-columns: 1fr;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-master-strip {
    gap: 18px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-master-strip .hp-primary {
    justify-self: start;
  }
}

@media (max-width: 640px) {

  html[data-shell="web"] body.app-live[data-tab="home"] .brand {
    padding: 0;
    font-size: 17px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] #phone-tag {
    display: none;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .topbar-right .btn-icon {
    min-height: 44px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .topbar-right .btn-theme {
    min-width: 44px;
    justify-content: center;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] #btn-home-login {
    min-height: 44px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-hero,
  html[data-shell="web"] body.app-live[data-tab="home"] .hp-boundary,
  html[data-shell="web"] body.app-live[data-tab="home"] .hp-capabilities {
    width: min(calc(100% - 28px), 540px);
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-hero {
    gap: 48px;
    padding: 58px 0 72px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-hero h1 {
    font-size: clamp(50px, 15vw, 68px);
  }

  /* 手机首屏：收紧 hero 间距，让「开始对话」CTA 完整落进 780px 可视区
     （今日行动上位后 CTA 底曾超出 ~17px；三处合计省 ~30px） */
  html[data-shell="web"] body.app-live[data-tab="home"] .hp-lead {
    margin-top: 24px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-creed {
    margin-top: 24px;
    line-height: 2;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-hero-actions {
    gap: 15px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit {
    width: min(100%, 440px);
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-core {
    width: 142px;
    padding: 17px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-core strong {
    font-size: 21px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-node {
    min-width: 76px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-node strong {
    font-size: 15px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-source {
    right: 2%;
    bottom: 8%;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-unknown {
    top: 8%;
    left: 1%;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-ethos h2 {
    font-size: clamp(50px, 14vw, 72px);
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-values {
    gap: 22px;
    margin-top: 56px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-values div {
    grid-template-columns: 112px 1fr;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-capabilities {
    padding: 80px 0 36px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-capabilities-head {
    gap: 22px;
    margin-bottom: 42px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool-grid-two,
  html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool-grid-three {
    grid-template-columns: 1fr;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool {
    min-height: 96px;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--hp-rule);
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool:last-child {
    border-bottom: 0;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .home-beian {
    width: min(calc(100% - 28px), 540px);
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 390px) {
  html[data-shell="web"] body.app-live[data-tab="home"] .hp-hero-actions {
    display: grid;
    justify-items: start;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-primary {
    width: 100%;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-source {
    right: 0;
    bottom: 4%;
    max-width: 170px;
    font-size: 9px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-orbit-unknown {
    top: 5%;
    left: 0;
    font-size: 9px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-values div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool {
    column-gap: 12px;
  }

  html[data-shell="web"] body.app-live[data-tab="home"] .hp-tool-glyph {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-shell="web"] body.app-live[data-tab="home"] *,
  html[data-shell="web"] body.app-live[data-tab="home"] *::before,
  html[data-shell="web"] body.app-live[data-tab="home"] *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
  }
}

/* ══ 命盘 Web 视觉统一：沿用首页的暖纸、墨色与青玉强调。
   深度报告跨断点共用一套配色，窄屏只调整布局与触控尺寸。 ══ */
html[data-shell="web"] body.app-live[data-tab="report"] {
  --report-paper: #f2efe5;
  --report-surface: #faf8f1;
  --report-ink: #20251f;
  --report-soft: #616961;
  --report-quiet: #858b82;
  --report-rule: #d8d3c5;
  --report-jade: #17685f;
  --paper: var(--report-paper);
  --card: var(--report-surface);
  --ink: var(--report-ink);
  --ink-soft: var(--report-soft);
  --ink-faint: var(--report-quiet);
  --rule: var(--report-rule);
  --rule-soft: color-mix(in srgb, var(--report-rule) 58%, var(--report-paper));
  --cinnabar: var(--report-jade);
  --cinnabar-text: var(--report-jade);
  --cinnabar-deep: #0e4f49;
  --cinnabar-hover: #0e4f49;
  --cinnabar-wash: #dce9e4;
  --bar-wash: color-mix(in srgb, var(--report-paper) 94%, transparent);
}

html[data-shell="web"][data-theme="dark"] body.app-live[data-tab="report"] {
  --report-paper: #15211e;
  --report-surface: #1e2d29;
  --report-ink: #ece9d8;
  --report-soft: #a8b0a6;
  --report-quiet: #828a80;
  --report-rule: #34433d;
  --report-jade: #6cc0b2;
  --cinnabar-deep: #7fcabd;
  --cinnabar-hover: #266e64;
  --cinnabar-wash: #1c2d29;
}

html[data-shell="web"] body.app-live[data-tab="report"] main,
html[data-shell="web"] body.app-live[data-tab="report"] .report-panel {
  background: var(--report-paper);
}

html[data-shell="web"] body.app-live[data-tab="report"] .report-panel {
  padding: clamp(38px, 5vw, 72px) clamp(28px, 5vw, 72px) 88px;
}

html[data-shell="web"] body.app-live[data-tab="report"] #report-list-view {
  max-width: 980px;
}

html[data-shell="web"] body.app-live[data-tab="report"] .pii-note {
  margin: 0 0 28px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--report-rule);
  color: var(--report-quiet);
  font-size: 12px;
}

html[data-shell="web"] body.app-live[data-tab="report"] .wb-workbench {
  max-width: none;
}

html[data-shell="web"] body.app-live[data-tab="report"] .wb-cur {
  padding: 32px 0 28px;
  border: 0;
  border-bottom: 1px solid var(--report-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-shell="web"].wx-mu body.app-live[data-tab="report"] .wb-cur,
html[data-shell="web"].wx-huo body.app-live[data-tab="report"] .wb-cur,
html[data-shell="web"].wx-tu body.app-live[data-tab="report"] .wb-cur,
html[data-shell="web"].wx-jin body.app-live[data-tab="report"] .wb-cur,
html[data-shell="web"].wx-shui body.app-live[data-tab="report"] .wb-cur {
  border-top: 0;
  box-shadow: none;
}

html[data-shell="web"] body.app-live[data-tab="report"] .wb-cur-label {
  color: var(--report-ink);
  font-size: clamp(32px, 4vw, 48px);
}

html[data-shell="web"] body.app-live[data-tab="report"] .wb-cur-tag,
html[data-shell="web"] body.app-live[data-tab="report"] .wb-chip {
  border-color: var(--report-rule);
  background: transparent;
}

html[data-shell="web"] body.app-live[data-tab="report"] .wb-pillars {
  gap: clamp(30px, 6vw, 72px);
  margin: 34px 0 14px;
}

html[data-shell="web"] body.app-live[data-tab="report"] .wb-pillar-gz {
  color: var(--report-ink);
  font-size: clamp(34px, 4.2vw, 48px);
}

html[data-shell="web"] body.app-live[data-tab="report"] .wb-wux {
  height: 5px;
  margin-top: 26px;
  border-radius: 0;
  box-shadow: none;
}

html[data-shell="web"] body.app-live[data-tab="report"] .wb-acts {
  gap: 8px;
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--report-rule);
}

html[data-shell="web"] body.app-live[data-tab="report"] .wb-act {
  padding: 9px 18px;
  border-color: var(--report-rule);
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
}

html[data-shell="web"] body.app-live[data-tab="report"] .wb-act:hover:not(:disabled) {
  border-color: var(--report-jade);
  box-shadow: none;
}

html[data-shell="web"] body.app-live[data-tab="report"] .wb-act-pri {
  border-color: var(--report-jade);
  background: var(--report-jade);
  box-shadow: none;
}

html[data-shell="web"] body.app-live[data-tab="report"] .wb-rep {
  margin: 22px 0 0;
  padding: 18px 0 18px 18px;
  border: 0;
  border-left: 2px solid var(--report-jade);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-shell="web"] body.app-live[data-tab="report"] .wb-others {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--report-rule);
}

html[data-shell="web"] body.app-live[data-tab="report"] .wb-ocard {
  border-color: var(--report-rule);
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
}

html[data-shell="web"] body.app-live[data-tab="report"] .cr-deck {
  --cr-bg: var(--report-paper);
  --cr-card: var(--report-surface);
  --cr-ink: var(--report-ink);
  --cr-ink-soft: var(--report-soft);
  --cr-ink-faint: var(--report-quiet);
  --cr-teal: var(--report-jade);
  --cr-teal-wash: color-mix(in srgb, var(--report-jade) 9%, transparent);
  --cr-gold: #8a6f28;
  --cr-gold-soft: #9f8848;
  --cr-rule: var(--report-rule);
  width: min(100%, 920px);
  max-width: 920px;
  border-radius: 0;
  background: var(--report-paper);
}

html[data-shell="web"][data-theme="dark"] body.app-live[data-tab="report"] .cr-deck {
  --cr-gold: #c5ab65;
  --cr-gold-soft: #a99154;
}

html[data-shell="web"] body.app-live[data-tab="report"] .dossier-head {
  width: min(100%, 920px);
  max-width: 920px;
  padding: 12px 0 18px;
  border-bottom: 1px solid var(--report-rule);
  background: var(--report-paper);
}

html[data-shell="web"] body.app-live[data-tab="report"] #report-longimg {
  margin-left: auto;
}

html[data-shell="web"] body.app-live[data-tab="report"] .dossier-share + .dossier-share {
  margin-left: 0;
}

html[data-shell="web"] body.app-live[data-tab="report"] .cr-page {
  padding: clamp(30px, 6vw, 48px) clamp(18px, 5vw, 58px) clamp(40px, 7vw, 56px);
}

html[data-shell="web"] body.app-live[data-tab="report"] .cr-page:first-child {
  display: none;
}

html[data-shell="web"] body.app-live[data-tab="report"] .cr-page:not(:last-child) {
  border-bottom-color: var(--report-rule);
}

html[data-shell="web"] body.app-live[data-tab="report"] .cr-pcard,
html[data-shell="web"] body.app-live[data-tab="report"] .cr-sscard,
html[data-shell="web"] body.app-live[data-tab="report"] .cr-lcard,
html[data-shell="web"] body.app-live[data-tab="report"] .cr-detail {
  border-radius: 6px;
}

@media (min-width: 720px) {
  html[data-shell="web"] body.app-live {
    --report-paper: #f2efe5;
    --report-surface: #faf8f1;
    --report-ink: #20251f;
    --report-soft: #616961;
    --report-quiet: #858b82;
    --report-rule: #d8d3c5;
    --report-jade: #17685f;
    --paper: var(--report-paper);
    --card: var(--report-surface);
    --ink: var(--report-ink);
    --ink-soft: var(--report-soft);
    --ink-faint: var(--report-quiet);
    --rule: var(--report-rule);
    --rule-soft: color-mix(in srgb, var(--report-rule) 58%, var(--report-paper));
    --cinnabar: var(--report-jade);
    --cinnabar-text: var(--report-jade);
    --cinnabar-deep: #0e4f49;
    --cinnabar-hover: #0e4f49;
    --cinnabar-wash: #dce9e4;
    --bar-wash: color-mix(in srgb, var(--report-paper) 94%, transparent);
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    background: var(--report-paper);
  }

  html[data-shell="web"][data-theme="dark"] body.app-live {
    --report-paper: #15211e;
    --report-surface: #1e2d29;
    --report-ink: #ece9d8;
    --report-soft: #a8b0a6;
    --report-quiet: #828a80;
    --report-rule: #34433d;
    --report-jade: #6cc0b2;
    --cinnabar-deep: #7fcabd;
    --cinnabar-hover: #266e64;
    --cinnabar-wash: #1c2d29;
  }

  html[data-shell="web"] body.app-live #topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    min-width: 0;
    padding: max(10px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 10px
      max(28px, env(safe-area-inset-left));
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--report-rule);
    background: var(--report-paper);
    box-shadow: none;
    color: var(--report-ink);
  }

  html[data-shell="web"] body.app-live .brand {
    min-width: max-content;
    padding: 0;
    color: var(--report-ink);
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.08em;
  }

  html[data-shell="web"] body.app-live #tabbar {
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0;
    overflow-x: auto;
    border: 0;
    background: transparent;
    scrollbar-width: none;
  }

  html[data-shell="web"] body.app-live #tabbar::-webkit-scrollbar {
    display: none;
  }

  html[data-shell="web"] body.app-live .tabbar .tab {
    min-height: 40px;
    padding: 8px 0;
    justify-content: center;
    border-radius: 0;
    color: var(--report-soft);
    font-size: 14px;
    white-space: nowrap;
  }

  html[data-shell="web"] body.app-live .tabbar .tab:hover {
    background: transparent;
    color: var(--report-jade);
  }

  html[data-shell="web"] body.app-live .tabbar .tab.on {
    background: transparent;
    color: var(--report-ink);
  }

  html[data-shell="web"] body.app-live .tabbar .tab.on::after {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--report-jade);
  }

  html[data-shell="web"] body.app-live .topbar-right,
  html[data-shell="web"] body.app-live #topbar-actions {
    min-width: max-content;
    margin-top: 0;
    padding-top: 0;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    border-top: 0;
  }

  html[data-shell="web"] body.app-live .topbar-right .btn-icon {
    padding: 7px 10px;
    justify-content: center;
    color: var(--report-soft);
    font-size: 13px;
  }

  html[data-shell="web"] body.app-live .topbar-right .btn-icon:hover {
    background: color-mix(in srgb, var(--report-jade) 8%, transparent);
    color: var(--report-jade);
  }

  html[data-shell="web"] body.app-live #phone-tag {
    color: var(--report-quiet);
  }

  html[data-shell="web"] body.app-live main {
    height: auto;
    background: var(--report-paper);
  }

  html[data-shell="web"] body.app-live[data-tab="chat"] .chat-area {
    max-width: 820px;
  }

  html[data-shell="web"] body.app-live[data-tab="chat"] .messages {
    padding: 28px 20px 14px;
  }

  html[data-shell="web"] body.app-live[data-tab="chat"] .composer {
    padding: 16px 20px 22px;
    border-top: 1px solid var(--report-rule);
    background: var(--report-paper);
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .articles-panel {
    padding-top: clamp(64px, 7vw, 92px);
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .articles-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(42px, 5vw, 72px);
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .articles-head {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    grid-template-rows: auto auto;
    align-items: end;
    gap: 10px clamp(42px, 5vw, 72px);
    margin: 0;
    padding: 0 0 clamp(44px, 5vw, 64px);
    border-bottom: 0;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .articles-head > p:first-child {
    grid-column: 1;
    margin: 0;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .articles-head h1 {
    grid-column: 1;
    font-size: clamp(38px, 4vw, 52px);
    line-height: 1.08;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .articles-head .articles-deck {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    max-width: 30em;
    margin: 0;
    padding-left: 22px;
    border-left: 1px solid var(--report-jade);
    font-size: 15px;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .articles-tag-filter,
  html[data-shell="web"] body.app-live[data-tab="articles"] .articles-empty {
    grid-column: 1 / -1;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .article-post {
    display: flex;
    min-height: 286px;
    padding: 26px 0 38px;
    flex-direction: column;
    border-top: 1px solid var(--report-rule);
    border-bottom: 0;
    transform: none;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .article-post::before {
    margin-bottom: 30px;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .article-post-title {
    margin-bottom: 10px;
    font-size: clamp(24px, 2.25vw, 30px);
    line-height: 1.35;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .article-post-excerpt {
    max-width: 34em;
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.9;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .article-post-more {
    margin-top: auto;
    padding-top: 18px;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .article-post-lead {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    grid-template-rows: auto auto auto 1fr;
    gap: 0 clamp(42px, 5vw, 72px);
    min-height: 318px;
    padding: 34px 0 44px;
    border-top-color: var(--report-ink);
    border-bottom: 1px solid var(--report-rule);
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .article-post-lead::before {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 24px;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .article-post-lead .article-post-title {
    grid-column: 1;
    grid-row: 2;
    max-width: 13em;
    margin: 0 0 12px;
    font-size: clamp(34px, 3.5vw, 46px);
    line-height: 1.25;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .article-post-lead .article-post-meta {
    grid-column: 1;
    grid-row: 3;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .article-post-lead .article-post-tags {
    grid-column: 1;
    grid-row: 4;
    align-self: end;
    margin-top: 16px;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .article-post-lead .article-post-excerpt {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: start;
    max-width: 32em;
    margin: 0;
    font-size: 16px;
    line-height: 2;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .article-post-lead .article-post-more {
    grid-column: 2;
    grid-row: 4;
    align-self: end;
    margin: 0;
    padding-top: 20px;
  }

  html[data-shell="web"] body.app-live[data-tab="me"] .me-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 64px;
    width: min(100%, 980px);
    max-width: none;
    padding: clamp(64px, 8vw, 104px) 32px 88px;
  }

  html[data-shell="web"] body.app-live[data-tab="me"] .me-head {
    grid-column: 1 / -1;
    gap: 18px;
    padding: 0 0 34px;
    border-bottom: 1px solid var(--report-rule);
  }

  html[data-shell="web"] body.app-live[data-tab="me"] .me-avatar {
    width: 68px;
    height: 68px;
    border-color: color-mix(in srgb, var(--report-jade) 34%, var(--report-rule));
    border-radius: 9px;
    background: color-mix(in srgb, var(--report-jade) 8%, transparent);
    color: var(--report-jade);
    font-size: 28px;
  }

  html[data-shell="web"] body.app-live[data-tab="me"] .me-nick {
    font-size: 30px;
    font-weight: 500;
  }

  html[data-shell="web"] body.app-live[data-tab="me"] .me-sub {
    margin-top: 5px;
    font-size: 12px;
  }

  html[data-shell="web"] body.app-live[data-tab="me"] .me-card {
    margin: 0;
    padding: 4px 0;
    border: 0;
    border-top: 1px solid var(--report-rule);
    border-radius: 0;
    background: transparent;
  }

  html[data-shell="web"] body.app-live[data-tab="me"] .list-row {
    padding: 16px 0;
  }

}

@media (max-width: 719px) {
  html[data-shell="web"] body.app-live[data-tab="report"] .dossier-head {
    position: static;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 8px;
    padding: 8px 0 14px;
  }

  html[data-shell="web"] body.app-live[data-tab="report"] .dossier-share {
    grid-row: 2;
    margin-left: 0;
    justify-content: center;
  }

  html[data-shell="web"] body.app-live[data-tab="report"] #report-longimg {
    grid-column: 1;
    margin-left: 0;
  }

  html[data-shell="web"] body.app-live[data-tab="report"] .dossier-share + .dossier-share {
    grid-column: 2;
    justify-self: start;
  }

  html[data-shell="web"] body.app-live[data-tab="report"] .dossier-core {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  html[data-shell="web"] body.app-live {
    --report-paper: #f2efe5;
    --report-surface: #faf8f1;
    --report-ink: #20251f;
    --report-soft: #616961;
    --report-quiet: #858b82;
    --report-rule: #d8d3c5;
    --report-jade: #17685f;
    --paper: var(--report-paper);
    --card: var(--report-surface);
    --ink: var(--report-ink);
    --ink-soft: var(--report-soft);
    --ink-faint: var(--report-quiet);
    --rule: var(--report-rule);
    --rule-soft: color-mix(in srgb, var(--report-rule) 58%, var(--report-paper));
    --cinnabar: var(--report-jade);
    --cinnabar-text: var(--report-jade);
    --cinnabar-deep: #0e4f49;
    --cinnabar-hover: #0e4f49;
    --cinnabar-wash: #dce9e4;
    --bar-wash: color-mix(in srgb, var(--report-paper) 94%, transparent);
    background: var(--report-paper);
  }

  html[data-shell="web"][data-theme="dark"] body.app-live {
    --report-paper: #15211e;
    --report-surface: #1e2d29;
    --report-ink: #ece9d8;
    --report-soft: #a8b0a6;
    --report-quiet: #828a80;
    --report-rule: #34433d;
    --report-jade: #6cc0b2;
    --cinnabar-deep: #7fcabd;
    --cinnabar-hover: #266e64;
    --cinnabar-wash: #1c2d29;
  }

  html[data-shell="web"] body.app-live #topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 14px;
    padding: max(8px, env(safe-area-inset-top)) 14px 6px;
    background: var(--report-paper);
    border-bottom: 1px solid var(--report-rule);
    box-shadow: none;
    color: var(--report-ink);
  }

  html[data-shell="web"] body.app-live .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: max-content;
    gap: 10px;
    padding: 0;
    color: var(--report-ink);
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.08em;
  }

  html[data-shell="web"] body.app-live .brand-seal {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #b74c36;
    font-size: 19px;
  }

  html[data-shell="web"][data-theme="dark"] body.app-live .brand-seal {
    background: #d66a48;
  }

  html[data-shell="web"] body.app-live #tabbar {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    gap: 22px;
    padding: 0;
    justify-content: flex-start;
    overflow-x: auto;
    background: transparent;
    border: 0;
    scrollbar-width: none;
  }

  html[data-shell="web"] body.app-live #tabbar::-webkit-scrollbar {
    display: none;
  }

  html[data-shell="web"] body.app-live .tabbar .tab {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 0;
    border-radius: 0;
    color: var(--report-soft);
    font-size: 14px;
  }

  html[data-shell="web"] body.app-live .tabbar .tab.on {
    background: transparent;
    color: var(--report-jade);
  }

  html[data-shell="web"] body.app-live .tabbar .tab.on::after {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 2px;
    background: var(--report-jade);
  }

  html[data-shell="web"] body.app-live .topbar-right {
    grid-column: 2;
    grid-row: 1;
    min-width: max-content;
    margin: 0;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    border: 0;
  }

  html[data-shell="web"] body.app-live #topbar-actions {
    flex-direction: row;
    align-items: center;
    gap: 3px;
  }

  html[data-shell="web"] body.app-live #phone-tag {
    display: none;
  }

  html[data-shell="web"] body.app-live #btn-home-login {
    min-width: 78px;
    min-height: 42px;
    padding: 8px 18px;
    border: 1px solid var(--report-rule);
    border-radius: 7px;
    color: var(--report-ink);
  }

  html[data-shell="web"] body.app-live .topbar-right .btn-icon {
    min-height: 42px;
    padding: 7px 10px;
    justify-content: center;
    color: var(--report-soft);
  }

  html[data-shell="web"] body.app-live main {
    background: var(--report-paper);
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] main {
    background:
      linear-gradient(rgb(32 37 31 / 0.017) 1px, transparent 1px),
      var(--report-paper);
    background-size: 100% 36px, auto;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .articles-panel {
    padding: 42px 20px 64px;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .articles-head {
    margin-bottom: 32px;
    padding-bottom: 30px;
    border-bottom-color: var(--report-rule);
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .articles-head h1 {
    font-size: 34px;
    line-height: 1.2;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .articles-head .articles-deck {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.9;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .article-post {
    padding: 30px 0 34px;
    border-bottom-color: var(--report-rule);
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .article-post::before {
    margin-bottom: 14px;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .article-post-title {
    margin-bottom: 8px;
    font-size: 23px;
    line-height: 1.45;
  }

  html[data-shell="web"] body.app-live[data-tab="articles"] .article-post-excerpt {
    font-size: 14px;
    line-height: 1.9;
  }

  html[data-shell="web"] body.app-live[data-tab="chat"] .chat-area {
    min-height: calc(100dvh - 105px);
    background: var(--report-paper);
  }

  html[data-shell="web"] body.app-live[data-tab="chat"] .chat-guest-gate {
    margin-top: 58px;
  }

  html[data-shell="web"] body.app-live[data-tab="chat"] .composer {
    padding: 14px 18px max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--report-rule);
    background: var(--report-paper);
  }

  html[data-shell="web"] body.app-live[data-tab="me"] .me-content {
    max-width: 560px;
    padding: 42px 20px 64px;
  }

  html[data-shell="web"] body.app-live[data-tab="me"] .me-head {
    gap: 14px;
    padding: 0 0 30px;
    border-bottom: 1px solid var(--report-rule);
  }

  html[data-shell="web"] body.app-live[data-tab="me"] .me-avatar {
    width: 56px;
    height: 56px;
    border-color: color-mix(in srgb, var(--report-jade) 34%, var(--report-rule));
    border-radius: 8px;
    background: color-mix(in srgb, var(--report-jade) 8%, transparent);
    color: var(--report-jade);
  }

  html[data-shell="web"] body.app-live[data-tab="me"] .me-nick {
    font-size: 24px;
    font-weight: 500;
  }

  html[data-shell="web"] body.app-live[data-tab="me"] .me-sub {
    margin-top: 4px;
    font-size: 12px;
  }

  html[data-shell="web"] body.app-live[data-tab="me"] .me-card {
    margin: 24px 0 0;
    padding: 4px 0;
    border: 0;
    border-top: 1px solid var(--report-rule);
    border-radius: 0;
    background: transparent;
  }

  html[data-shell="web"] body.app-live[data-tab="me"] .list-row {
    min-height: 48px;
    padding: 14px 0;
  }
}

/* ── 管理员数据统计 /admin/stats ── */
html[data-shell="web"] .admin-stats {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 46px 28px 72px;
}
html[data-shell="web"] .admin-stats-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
html[data-shell="web"] .admin-stats-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px;
}
html[data-shell="web"] .admin-stats-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}
html[data-shell="web"] .admin-stats-back {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
}
html[data-shell="web"] .admin-stats-back:hover {
  color: var(--cinnabar-deep);
}
html[data-shell="web"] .admin-stats-toggle {
  display: inline-flex;
  margin-bottom: 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  overflow: hidden;
}
html[data-shell="web"] .admin-stats-toggle-btn {
  min-height: 32px;
  padding: 0 14px;
  color: var(--ink-faint);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
html[data-shell="web"] .admin-stats-toggle-btn.on {
  color: var(--cinnabar-deep);
  background: var(--cinnabar-wash);
}
html[data-shell="web"] .admin-stats-cards,
html[data-shell="web"] .admin-stats-retention {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
html[data-shell="web"] .admin-stats-retention {
  grid-template-columns: repeat(2, minmax(0, 220px));
}
html[data-shell="web"] .admin-stats-ret-hint {
  grid-column: 1 / -1;
  margin: 0;
}
html[data-shell="web"] .admin-stats-card,
html[data-shell="web"] .admin-stats-ret-card {
  padding: 18px 16px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgb(30 37 33 / 0.07);
}
html[data-shell="web"] .admin-stats-card-num {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
}
html[data-shell="web"] .admin-stats-card-label {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-faint);
}
html[data-shell="web"] .admin-stats-block {
  margin-top: 28px;
}
html[data-shell="web"] .admin-stats-block h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
}
html[data-shell="web"] .admin-stats-hint {
  margin: -4px 0 12px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.45;
}
html[data-shell="web"] .admin-stats-bars {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 160px;
  padding: 12px 8px 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px 12px 0 0;
  overflow-x: auto;
}
html[data-shell="web"] .admin-stats-bar-col {
  display: flex;
  flex: 1 0 18px;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  min-width: 18px;
  height: 100%;
}
html[data-shell="web"] .admin-stats-bar {
  width: 70%;
  min-height: 2px;
  background: var(--cinnabar);
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}
html[data-shell="web"] .admin-stats-bars-range {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px 8px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  color: var(--ink-faint);
  font-size: 11px;
}
html[data-shell="web"] .admin-stats-table-wrap {
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
html[data-shell="web"] .admin-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
html[data-shell="web"] .admin-stats-table th,
html[data-shell="web"] .admin-stats-table td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule-soft);
}
html[data-shell="web"] .admin-stats-table th {
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 500;
}
html[data-shell="web"] .admin-stats-funnel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
html[data-shell="web"] .admin-stats-funnel-row {
  position: relative;
  min-height: 42px;
  padding: 10px 14px;
  background: var(--sage-wash);
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  overflow: hidden;
}
html[data-shell="web"] .admin-stats-funnel-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: color-mix(in srgb, var(--cinnabar) 18%, transparent);
}
html[data-shell="web"] .admin-stats-funnel-meta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
html[data-shell="web"] .admin-stats-funnel-meta strong {
  min-width: 3em;
  font-weight: 500;
}
html[data-shell="web"] .admin-stats-funnel-rate {
  margin-left: auto;
  color: var(--ink-faint);
  font-size: 12px;
}
html[data-shell="web"] .admin-stats-empty,
html[data-shell="web"] .admin-stats-status {
  margin: 0;
  color: var(--ink-faint);
  font-size: 13px;
}
@media (max-width: 720px) {
  html[data-shell="web"] .admin-stats {
    padding: 32px 18px 56px;
  }
  html[data-shell="web"] .admin-stats-head {
    align-items: stretch;
    flex-direction: column;
  }
  html[data-shell="web"] .admin-stats-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html[data-shell="web"] .admin-stats-retention {
    grid-template-columns: 1fr 1fr;
  }
}
