:root {
  color-scheme: dark;
  /* 墨·羊皮纸·黄铜 — 暖墨底色,告别冷调赛博紫 */
  --bg: #14110c;
  --bg-2: #1c1810;
  --surface: rgba(240, 230, 210, 0.06);
  --surface-strong: rgba(240, 230, 210, 0.1);
  --surface-soft: rgba(240, 230, 210, 0.04);
  --line: rgba(214, 196, 158, 0.16);
  --line-strong: rgba(214, 196, 158, 0.3);
  --text: #f3ece0;
  --muted: #c2b6a1;
  --soft: #8f8470;
  /* 单一强调色:黄铜金,饱和度压到 80% 以下 */
  --accent: #c9a14a;
  --accent-strong: #e3c878;
  --accent-ink: #1a1408;
  --danger: #e08a6a;
  --radius: 8px;
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --mono: "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  /* 暖色阴影,带背景色相而非纯黑 */
  --shadow: 0 24px 80px rgba(20, 14, 4, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  /* 古朴暖褐底:去掉近黑,换成陈年皮革/木纹色阶,进入后不再是"黑" */
  background:
    radial-gradient(120% 82% at 78% -8%, rgba(201, 161, 74, 0.16), transparent 48%),
    radial-gradient(100% 70% at 20% 108%, rgba(120, 84, 38, 0.18), transparent 52%),
    linear-gradient(180deg, #2a2013 0%, #241a0f 46%, #1c140b 100%);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  /* 极轻羊皮纸噪点纹理,去掉冷色玻璃叠层 */
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

a {
  color: inherit;
  text-decoration: none;
}

/* 跳到正文:键盘用户可用,平时隐藏,聚焦时浮出——无障碍必备,不改视觉 */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  transition: top 180ms ease;
}
.skip-link:focus {
  top: 12px;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(214, 196, 158, 0.12);
  background: rgba(20, 17, 12, 0.74);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(227, 200, 120, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(201, 161, 74, 0.1);
  color: var(--accent-strong);
  font-family: var(--serif);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-links {
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  border-radius: 999px;
  padding: 8px 10px;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  background: rgba(240, 230, 210, 0.08);
  color: var(--text);
}

.nav-links a.nav-cta {
  border: 1px solid rgba(214, 196, 158, 0.7);
  background: linear-gradient(180deg, #e8cd84, var(--accent));
  color: var(--accent-ink);
  font-weight: 700;
}

.nav-links a.nav-cta:hover {
  background: linear-gradient(180deg, #f2dca0, #d4ad55);
  color: var(--accent-ink);
}

/* 章目式导航（redesign nav）：五枚编号 tab —— 封面·选择方向 / 一·排盘登记 /
   二·命书总览 / 三·完整命书 / 四·小福追问。取消「六维」入口。每枚是一个描边小卡，
   编号用衬线金字，标签跟随；当前页 tab 高亮为暖金实描边。纯导航层，不改任何数据流。 */
.dossier-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(6px, 1.2vw, 12px);
  color: var(--muted);
}

.nav-tab {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(240, 230, 210, 0.03);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-tab .nav-tab-index {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  color: var(--soft);
  transition: color 180ms ease;
}

/* 锁态图标:单色描边挂锁 SVG,继承 nav-tab-index 的黄铜色,与 ✦ 同色同粗细。 */
.nav-tab .nav-tab-index--lock {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.nav-tab .nav-tab-index--lock svg {
  display: block;
}

.nav-tab .nav-tab-label {
  font-weight: 500;
}

.nav-tab:hover {
  border-color: var(--line-strong);
  background: rgba(240, 230, 210, 0.07);
  color: var(--text);
}

.nav-tab:hover .nav-tab-index {
  color: var(--accent-strong);
}

.nav-tab.is-active,
.nav-tab[aria-current="page"] {
  border-color: rgba(227, 200, 120, 0.6);
  background: rgba(201, 161, 74, 0.12);
  color: var(--accent-strong);
}

.nav-tab.is-active .nav-tab-index,
.nav-tab[aria-current="page"] .nav-tab-index {
  color: var(--accent-strong);
}

.nav-tab:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .dossier-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .dossier-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-tab {
    padding: 6px 11px;
    font-size: 13px;
  }
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(30px, 6vw, 92px);
  align-items: center;
  min-height: calc(100dvh - 72px);
  padding: clamp(46px, 7vw, 88px) clamp(18px, 5vw, 64px);
}

.hero-copy {
  max-width: 760px;
}

.kicker,
.small-label,
.dossier-label {
  margin: 0;
  color: var(--accent-strong);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(44px, 6.4vw, 78px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.hero-lede {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.primary-link,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.primary-link,
.primary-button {
  border: 1px solid rgba(214, 196, 158, 0.8);
  background: linear-gradient(180deg, #e8cd84, var(--accent));
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 230, 0.55),
    0 12px 34px rgba(201, 161, 74, 0.22);
}

.primary-link {
  padding: 0 20px;
}

.primary-button {
  padding: 0 24px;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: rgba(240, 230, 210, 0.055);
  color: var(--text);
  padding: 0 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.primary-link:hover,
.primary-button:hover {
  background: linear-gradient(180deg, #f2dca0, #d4ad55);
}

.secondary-button:hover {
  border-color: rgba(214, 196, 158, 0.56);
  background: rgba(240, 230, 210, 0.085);
}

.primary-link:active,
.primary-button:active,
.secondary-button:active {
  transform: translateY(1px) scale(0.99);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.dossier-panel {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(240, 230, 210, 0.16), rgba(240, 230, 210, 0.04)),
    rgba(24, 19, 12, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dossier-panel::before {
  position: absolute;
  inset: 1px;
  z-index: 2;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

.archive-image {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 62%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05);
}

.dossier-copy {
  position: absolute;
  z-index: 3;
  right: 30px;
  bottom: 30px;
  left: 30px;
  border: 1px solid rgba(214, 196, 158, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(240, 230, 210, 0.14), rgba(240, 230, 210, 0.06)),
    rgba(20, 16, 10, 0.58);
  padding: 24px;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.dossier-copy h2 {
  margin: 10px 0 12px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.24;
}

.dossier-copy p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.workbench,
.report-layout,
.evidence-section,
.method-section,
.landing-dimensions {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 64px);
}

/* PC 端内容居中(修复:总览封面之外的分区左贴边)。报告页 .report-layout 里的各分区
   统一收进一条 1180 居中列,左右边与封面对齐;dimension.html 同享,更整齐。 */
.report-layout > .section-heading,
.report-layout > .state-banner,
.report-layout > .dossier-switcher,
.report-layout > .invite-banner,
.report-layout > .report-console,
.report-layout > .full-report-panel,
.report-layout > .chat-panel,
.report-layout > .report-footnote {
  margin-left: auto;
  margin-right: auto;
}
.report-layout > .section-heading {
  max-width: 1180px;
}
/* 排盘页(input.html)同样收进一条 1180 居中列,PC 端不再左贴边,与封面/总览左右对齐。 */
.workbench > .dimension-breadcrumb,
.workbench > .input-dossier-header,
.workbench > .input-form {
  margin-left: auto;
  margin-right: auto;
}
.workbench > .dimension-breadcrumb,
.workbench > .input-dossier-header {
  max-width: 1180px;
  width: 100%;
}
/* 章目锚点跳转时给粘性页眉让位,标题不被顶栏盖住 */
#top,
#paid,
#full-report,
#chat {
  scroll-margin-top: 92px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section-heading p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.input-form {
  display: grid;
  gap: 18px;
  max-width: 1180px;
}

fieldset {
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  /* 古朴陈皮/牛皮纸底:暖褐渐层 + 一道内侧高光,替换原来偏灰的近黑面 */
  background:
    linear-gradient(180deg, rgba(58, 44, 26, 0.5), rgba(34, 26, 15, 0.72)),
    rgba(40, 31, 18, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 240, 205, 0.08), 0 12px 40px rgba(20, 14, 4, 0.28);
}

legend {
  padding: 0 8px;
  color: var(--accent-strong);
  font-family: var(--serif);
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.field-hint {
  color: var(--soft);
  font-family: var(--serif);
  font-size: 12px;
}

.wide-field {
  grid-column: span 2;
}

.birth-datetime-field {
  grid-column: span 2;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(214, 196, 158, 0.14);
  border-radius: var(--radius);
  background: rgba(16, 13, 8, 0.58);
  color: var(--text);
  padding: 0 13px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

select {
  /* 移除 color-scheme: dark -- Chrome 126 会渲染空白下拉框 */
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23e3c878' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
  cursor: pointer;
}

input[readonly] {
  color: var(--accent-strong);
}

select option {
  background: #1a150d;
  color: #f0e6d2;
}

#birth-datetime {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.04em;
}

input:focus,
select:focus {
  border-color: rgba(227, 200, 120, 0.72);
  box-shadow:
    0 0 0 3px rgba(201, 161, 74, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.form-note {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
}

.form-note.error {
  color: var(--danger);
}

/* --- 命书封面（报告页顶部 Hero） -------------------------------------- */
.report-cover {
  position: relative;
  max-width: 1180px;
  margin: 0 auto clamp(20px, 4vw, 36px);
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(214, 196, 158, 0.34);
  border-radius: 12px;
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(201, 161, 74, 0.14), transparent 52%),
    linear-gradient(180deg, rgba(240, 230, 210, 0.09), rgba(240, 230, 210, 0.03)),
    rgba(24, 20, 12, 0.92);
  box-shadow: var(--shadow), inset 0 0 0 4px rgba(201, 161, 74, 0.08);
  overflow: hidden;
}

.report-cover.is-hidden {
  display: none;
}

/* 四角云纹描角：纯装饰边框角，呼应命书档案皮质框。 */
.report-cover-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(201, 161, 74, 0.5);
  pointer-events: none;
}

.report-cover-corner.tl {
  top: 12px;
  left: 12px;
  border-right: none;
  border-bottom: none;
}

.report-cover-corner.tr {
  top: 12px;
  right: 12px;
  border-left: none;
  border-bottom: none;
}

.report-cover-corner.bl {
  bottom: 12px;
  left: 12px;
  border-right: none;
  border-top: none;
}

.report-cover-corner.br {
  bottom: 12px;
  right: 12px;
  border-left: none;
  border-top: none;
}

.report-cover-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.9fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: stretch;
}

.report-cover-eyebrow {
  margin: 0 0 10px;
  color: var(--soft);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.report-cover-title {
  position: relative;
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}

.report-cover-seal {
  display: inline-block;
  margin-left: 12px;
  width: clamp(30px, 5vw, 44px);
  height: clamp(30px, 5vw, 44px);
  line-height: clamp(30px, 5vw, 44px);
  text-align: center;
  vertical-align: middle;
  border-radius: 6px;
  background: var(--cinnabar, #a5321f);
  color: #f7ecd6;
  font-size: clamp(18px, 3vw, 26px);
  box-shadow: 0 4px 14px rgba(120, 30, 12, 0.4);
}

.report-cover-dossier-no {
  margin: 0 0 clamp(16px, 3vw, 24px);
  color: var(--accent-strong);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.report-cover-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.report-cover-grid dt {
  margin: 0;
  padding: 10px 14px 2px;
  background: rgba(16, 13, 8, 0.5);
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.report-cover-grid dd {
  margin: 0;
  padding: 0 14px 12px;
  background: rgba(16, 13, 8, 0.5);
  color: var(--accent-strong);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.report-cover-focus {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(201, 161, 74, 0.34);
  border-radius: 10px;
  background:
    radial-gradient(80% 80% at 50% 30%, rgba(201, 161, 74, 0.12), transparent 70%),
    rgba(16, 13, 8, 0.4);
  text-align: center;
}

.report-cover-focus-label {
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.report-cover-focus-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(201, 161, 74, 0.5);
  border-radius: 50%;
  color: var(--accent-strong);
  font-size: 24px;
}

.report-cover-focus-name {
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.report-cover-focus-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .report-cover-body {
    grid-template-columns: 1fr;
  }
  .report-cover-grid {
    grid-template-columns: 1fr;
  }
}

.report-console {
  max-width: 1180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(240, 230, 210, 0.08), rgba(240, 230, 210, 0.025)),
    rgba(26, 21, 13, 0.84);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.report-console.is-fresh {
  border-color: rgba(227, 200, 120, 0.72);
  box-shadow:
    var(--shadow),
    0 0 0 4px rgba(201, 161, 74, 0.14);
}

.report-head {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 1.22fr);
  gap: clamp(18px, 4vw, 38px);
  align-items: center;
  padding: clamp(16px, 2vw, 24px) clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 13, 8, 0.2);
}

.report-head h3 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.2;
}

.paid-bar p {
  color: var(--muted);
  line-height: 1.75;
}

.time-correction {
  margin: 0;
  border-left: 1px solid rgba(227, 200, 120, 0.32);
  padding-left: clamp(16px, 3vw, 28px);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.75;
}

.card-reader {
  border-bottom: 1px solid var(--line);
  background: rgba(240, 230, 210, 0.03);
}

/* --- Natal chart wheel (free preview) ----------------------------------- */
.natal-wheel {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: clamp(18px, 3vw, 30px) clamp(16px, 3vw, 34px) clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 50% 36%, rgba(201, 161, 74, 0.08), transparent 70%),
    rgba(16, 13, 8, 0.18);
}

.natal-wheel.is-hidden {
  display: none;
}

.natal-wheel-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
  width: 100%;
}

.natal-structure {
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 360px;
}

.natal-structure.is-hidden {
  display: none;
}

.natal-structure-title {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.natal-structure-meta {
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.natal-structure-meta dt {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
}

.natal-structure-meta dd {
  margin: 0;
  color: var(--accent-strong);
  font-size: 14px;
}

.natal-structure-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.natal-structure-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.natal-structure-planet {
  color: var(--muted);
}

.natal-structure-place {
  color: var(--accent-strong);
  text-align: right;
  white-space: nowrap;
}

.natal-structure-house {
  color: var(--soft);
  font-family: var(--serif);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.natal-wheel-canvas {
  width: min(360px, 86vw);
  aspect-ratio: 1 / 1;
}

.natal-wheel-canvas svg {
  display: block;
  width: 100%;
  height: 100%;
}

.natal-wheel-caption {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

/* --- 行星位置 / 宫位信息表（整宫制） ---------------------------------- */
.natal-tables {
  width: 100%;
  margin-top: clamp(18px, 3vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 30px);
  align-items: start;
}

.natal-tables.is-hidden {
  display: none;
}

.natal-table-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 13, 8, 0.28);
  overflow: hidden;
}

.natal-table-title {
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(201, 161, 74, 0.08);
  color: var(--accent-strong);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.natal-table-note {
  color: var(--soft);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.natal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  /* 数据表:等宽数字,让度数/落宫等数字按列对齐,不再因比例字宽参差 */
  font-variant-numeric: tabular-nums;
}

.natal-table th,
.natal-table td {
  padding: 8px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.natal-table thead th {
  color: var(--soft);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.05em;
  background: rgba(240, 230, 210, 0.03);
}

.natal-table tbody tr:last-child td {
  border-bottom: none;
}

.natal-table tbody td:first-child {
  color: var(--muted);
}

.natal-table tbody td:nth-child(2) {
  color: var(--accent-strong);
}

.natal-table-deg {
  font-family: var(--serif);
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .natal-tables {
    grid-template-columns: 1fr;
  }
}

.wheel-ring {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
}

.wheel-spoke {
  stroke: var(--line);
  stroke-width: 1;
}

.wheel-spoke-asc {
  stroke: var(--accent);
  stroke-width: 1.4;
}

.wheel-hub {
  fill: rgba(201, 161, 74, 0.05);
}

.wheel-sign-glyph {
  fill: var(--accent-strong);
  font-family: var(--serif);
  font-size: 16px;
}

.wheel-house-number {
  fill: var(--soft);
  font-family: var(--serif);
  font-size: 10px;
}

.wheel-asc-line {
  stroke: var(--accent);
  stroke-width: 1.6;
}

.wheel-asc-label {
  fill: var(--accent-strong);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
}

.wheel-planet-dot {
  fill: #211a0f;
  stroke: var(--accent);
  stroke-width: 1.4;
}

.wheel-planet-leader {
  stroke: var(--line-strong);
  stroke-width: 0.8;
}

.wheel-planet-tick {
  fill: var(--accent);
}

.wheel-planet-glyph {
  fill: var(--accent-strong);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  cursor: default;
}

.card-track-window {
  overflow: hidden;
  padding: clamp(12px, 1.8vw, 18px) 0;
}

.report-card-track,
.full-report-sections {
  display: flex;
  transition: transform 260ms ease;
  will-change: transform;
}

.report-card,
.full-report-card {
  flex: 0 0 100%;
  min-width: 0;
  min-height: clamp(250px, 26vw, 330px);
  border-top: 1px solid rgba(214, 196, 158, 0.14);
  border-bottom: 1px solid rgba(214, 196, 158, 0.14);
  border-radius: 0;
  padding: clamp(24px, 3.2vw, 38px);
  background:
    linear-gradient(180deg, rgba(240, 230, 210, 0.115), rgba(240, 230, 210, 0.045)),
    rgba(20, 16, 10, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    0 18px 54px rgba(4, 5, 12, 0.22);
}

.report-card:nth-child(even),
.full-report-card:nth-child(even) {
  background:
    linear-gradient(180deg, rgba(227, 200, 120, 0.12), rgba(240, 230, 210, 0.04)),
    rgba(24, 19, 12, 0.8);
}

.report-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.report-card.is-hero-card {
  justify-content: center;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(201, 161, 74, 0.18), rgba(240, 230, 210, 0.04) 60%),
    rgba(24, 19, 12, 0.85);
}

.report-card p,
.full-report-card li {
  color: var(--muted);
  line-height: 1.76;
}

/* 部分加粗：每一维的解读是连贯可读的正文，重点只落在「断语词」上——即内容层
   用 **…** 标出的关键吉凶/强弱判断片段。正文（.section-para）平铺为正常段落，
   断语片段（.verdict-mark）渲染成黄铜加粗，恰好把判断词从行文里挑出来，而不是
   「亮一段、灰一片」，也不是通篇加粗。 */
.section-body {
  display: grid;
  gap: clamp(12px, 1.6vw, 18px);
}

.section-para {
  margin: 0;
  color: var(--text);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.76;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

/* 段落小标题：家庭条件维度固定输出的六个小节标题（总断/祖业/父系/母系/父母关系/
   家底落点），由内容层 @@…@@ 标记抽出。做成一条带黄铜竖杠的小标题，和紧随其后的
   正文抱紧（用负 margin 抵消 .section-body 的 grid gap），把这一维读成有小节的结构。 */
.section-subheading {
  margin: 0 0 -6px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-strong);
  color: var(--accent-strong);
  font-family: var(--serif);
  font-size: clamp(16px, 1.55vw, 19px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* 断语词：内容层 **…** 标出的关键判断片段，黄铜加粗，从正文里挑出来。 */
.verdict-mark {
  color: var(--accent-strong);
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

/* 渐进披露(P3):命书第五章「命理依据」的逐条溯源默认折叠进一个「查证」抽屉,
   想核对依据的人点开、其余人不被证据流淹没。抽屉标题用弱化的说明色 + ▸ 指示,
   与正文明显区隔但不喧宾夺主;展开后内部段落沿用正文/小标题样式。 */
.section-trace-fold {
  margin: clamp(14px, 1.8vw, 20px) 0 0;
  border: 1px solid rgba(200, 168, 120, 0.32);
  border-radius: 12px;
  background: rgba(200, 168, 120, 0.06);
}

.section-trace-fold-summary {
  cursor: pointer;
  list-style: none;
  padding: clamp(10px, 1.4vw, 14px) clamp(14px, 1.8vw, 18px);
  color: var(--muted, #9a8c73);
  font-family: var(--serif);
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-trace-fold-summary::-webkit-details-marker {
  display: none;
}

.section-trace-fold-summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.15s ease;
}

.section-trace-fold[open] > .section-trace-fold-summary::before {
  transform: rotate(90deg);
}

.section-trace-fold-body {
  padding: 0 clamp(14px, 1.8vw, 18px) clamp(14px, 1.8vw, 18px);
}

.report-card.is-hero-card p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.5;
}

.report-card h3 {
  margin: 10px 0 10px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 600;
  line-height: 1.2;
}

.report-card p {
  max-width: 720px;
  margin: 10px 0 0;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.8;
}

.card-controls {
  display: grid;
  grid-template-columns: auto minmax(72px, auto) auto;
  gap: 12px;
  align-items: center;
  justify-content: end;
  padding: 14px clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line);
  background: rgba(16, 13, 8, 0.34);
}

.card-counter {
  color: var(--accent-strong);
  font-family: var(--serif);
  font-size: 13px;
  text-align: center;
}

.secondary-button:disabled {
  cursor: default;
  opacity: 0.42;
  transform: none;
}

.paid-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(110deg, rgba(227, 200, 120, 0.12), rgba(240, 230, 210, 0.035) 48%),
    rgba(240, 230, 210, 0.06);
}

.paid-bar h3 {
  margin: 10px 0 8px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.15;
}

.paid-bar p {
  max-width: 680px;
  margin: 0;
}

.paid-bar .secondary-button {
  min-width: 152px;
  border-color: rgba(227, 200, 120, 0.48);
  background: rgba(240, 230, 210, 0.09);
}

.chat-entrance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(201, 161, 74, 0.36);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(201, 161, 74, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: var(--shadow-soft);
}

.chat-entrance p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.chat-entrance .secondary-button {
  flex: 0 0 auto;
  text-align: center;
}

.paid-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.share-hint {
  margin: 2px 0 0;
  max-width: 200px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted, #b6ab93);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 152px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(214, 196, 158, 0.32);
  background: transparent;
  color: var(--muted, #b6ab93);
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.ghost-button:hover {
  border-color: rgba(227, 200, 120, 0.55);
  color: var(--text);
}

.invite-banner {
  margin-bottom: 18px;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid rgba(227, 200, 120, 0.4);
  border-radius: 16px;
  background:
    linear-gradient(110deg, rgba(227, 200, 120, 0.16), rgba(240, 230, 210, 0.04) 60%),
    rgba(240, 230, 210, 0.05);
}

.invite-banner p {
  margin: 8px 0 0;
}

.share-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: clamp(16px, 2.2vw, 22px);
  border: 1px dashed rgba(227, 200, 120, 0.4);
  border-radius: 14px;
  background: rgba(240, 230, 210, 0.04);
}

.share-result .small-label {
  flex-basis: 100%;
}

.share-result input {
  flex: 1 1 280px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(214, 196, 158, 0.32);
  background: rgba(20, 18, 14, 0.4);
  color: var(--text);
  font-size: 14px;
}

.share-result .form-note {
  flex-basis: 100%;
  margin: 0;
}

.is-hidden {
  display: none;
}

.report-console p,
.report-console h3 {
  overflow-wrap: anywhere;
}

.evidence-list {
  display: grid;
  gap: 0;
  max-width: 920px;
  counter-reset: evidence;
}

.evidence-list article {
  position: relative;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: clamp(24px, 3vw, 34px) 0 clamp(24px, 3vw, 34px) clamp(56px, 7vw, 88px);
}

.evidence-list article:last-child {
  border-bottom: 1px solid var(--line);
}

/* 案卷序号:01 / 02 / 03,错落而非三等分并排 */
.evidence-list article::before {
  position: absolute;
  top: clamp(22px, 3vw, 32px);
  left: 0;
  counter-increment: evidence;
  content: "0" counter(evidence);
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  line-height: 1;
  opacity: 0.7;
}

/* 偶数项整体右移,打破对称 */
.evidence-list article:nth-child(even) {
  margin-left: clamp(24px, 8vw, 96px);
}

.evidence-list h3 {
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
}

.evidence-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.full-report-panel {
  max-width: 1180px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(240, 230, 210, 0.1), rgba(240, 230, 210, 0.035)),
    rgba(26, 21, 13, 0.76);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.full-report-panel.is-hidden {
  display: none;
}

.full-report-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: end;
  padding: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.full-report-head h3 {
  margin: 14px 0 0;
  font-size: clamp(25px, 3.2vw, 36px);
  line-height: 1.08;
}

.full-report-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* 出品印鉴:补「付费内容已解锁」左侧留白。一枚朱砂白文方印(红底阴文),
   与墨·羊皮纸·黄铜主色互补——古法批命盖章的仪式感,也是「官方出品」的信心锚点。
   纯 CSS,零素材依赖;不用光效/重阴影,古章讲究拙朴。 */
.full-report-head-lead {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 22px);
}

.full-report-head-title {
  min-width: 0;
}

.full-report-seal {
  --seal-red: #a5342b;
  --seal-red-deep: #7f241d;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(66px, 8vw, 84px);
  height: clamp(66px, 8vw, 84px);
  padding: 6px;
  border-radius: 6px;
  color: #f6ede0;
  background:
    radial-gradient(120% 120% at 30% 22%, var(--seal-red), var(--seal-red-deep) 78%);
  /* 篆刻边框:双线阴文印的粗外框 + 细内衬,不用阴影堆叠 */
  box-shadow:
    inset 0 0 0 2px rgba(246, 237, 224, 0.9),
    inset 0 0 0 5px var(--seal-red),
    inset 0 0 0 6px rgba(246, 237, 224, 0.55);
  /* 极轻做旧噪点,断掉数码平面感 */
  background-blend-mode: normal;
  transform: rotate(-3deg);
  filter: saturate(0.9);
}

.full-report-seal-face {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px 2px;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.95;
  font-size: clamp(19px, 2.4vw, 25px);
  letter-spacing: -0.02em;
  text-align: center;
}

.full-report-seal-face b {
  display: block;
}

@media (max-width: 720px) {
  .full-report-seal {
    width: 58px;
    height: 58px;
  }

  .full-report-seal-face {
    font-size: 18px;
  }
}

.compact-controls {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(240, 230, 210, 0.035);
}

.full-report-sections h4 {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: clamp(24px, 2.8vw, 34px);
}

.full-report-sections ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.full-report-sections li {
  color: var(--muted);
  line-height: 1.72;
}

/* 命书摘录总览 — 免费预览区（design.md §7.3）。羊皮纸档案卡片风，呼应封面命书质感；
   内容全部来自后端 focus_excerpts，前端只排布。 */
.excerpt-overview {
  border-bottom: 1px solid var(--line);
  padding: clamp(20px, 3vw, 34px) clamp(22px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(227, 196, 121, 0.06), rgba(227, 196, 121, 0.02)),
    rgba(20, 16, 10, 0.4);
}

.excerpt-overview-head {
  max-width: 640px;
  margin-bottom: clamp(16px, 2.4vw, 24px);
}

.excerpt-overview-head h3 {
  margin: 12px 0 0;
  font-family: var(--serif, "Noto Serif SC", serif);
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.excerpt-overview-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

/* 朱砂印章式小标（命书摘录 / 命书 · 方向），封面与总览共用视觉语言 */
.dossier-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--serif, "Noto Serif SC", serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #f4e4c4;
  background: radial-gradient(circle at 35% 30%, #a5321f, #8f2817);
  border-radius: 3px;
  padding: 5px 12px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), inset 0 0 6px rgba(0, 0, 0, 0.35);
}

.excerpt-empty {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

/* 命书摘录条目（design.md §7.3）：羊皮纸档案卡，纵向排布三条，01/02/03 朱砂编号。 */
.focus-excerpts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vw, 18px);
}

.focus-excerpt {
  position: relative;
  display: flex;
  gap: clamp(14px, 2vw, 20px);
  align-items: flex-start;
  border: 1px solid var(--paper-line, #cdb689);
  border-left: 3px solid var(--cinnabar, #a5321f);
  border-radius: var(--radius);
  padding: clamp(16px, 2.2vw, 24px);
  background:
    linear-gradient(180deg, rgba(239, 227, 204, 0.14), rgba(239, 227, 204, 0.05)),
    rgba(20, 16, 10, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.focus-excerpt-index {
  flex: none;
  font-family: var(--serif, "Noto Serif SC", serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1;
  color: var(--cinnabar, #a5321f);
  letter-spacing: 0.02em;
  padding-top: 2px;
}

.focus-excerpt-body {
  margin: 0;
  color: var(--text-onink, #e9d9ba);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.dimension-chip {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 22px);
  background:
    linear-gradient(180deg, rgba(240, 230, 210, 0.085), rgba(240, 230, 210, 0.03)),
    rgba(20, 16, 10, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 180ms ease, transform 180ms ease;
}

.dimension-chip:hover {
  border-color: rgba(227, 200, 120, 0.42);
  transform: translateY(-2px);
}

.dimension-index {
  display: block;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.dimension-chip h4 {
  margin: 8px 0 8px;
  color: var(--accent-strong);
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 600;
}

.dimension-chip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

/* Clickable dimension cards (report.html) that jump to the detail page. */
.dimension-link {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.dimension-link:hover,
.dimension-link:focus-visible {
  border-color: rgba(227, 200, 120, 0.42);
  transform: translateY(-2px);
  outline: none;
}

.dimension-link:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 2px rgba(227, 200, 120, 0.5);
}

.dimension-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 180ms ease;
}

.dimension-link:hover .dimension-more,
.dimension-link:focus-visible .dimension-more {
  transform: translateX(3px);
}

/* 六维深度解读 — 完整报告区 */
.full-dimensions {
  padding: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: rgba(240, 230, 210, 0.025);
}

.full-dimensions:empty {
  display: none;
}

.full-dimensions-head {
  max-width: 640px;
  margin-bottom: clamp(16px, 2vw, 22px);
}

.full-dimensions-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.full-dimensions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}

.full-dimension-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px);
  background:
    linear-gradient(180deg, rgba(240, 230, 210, 0.1), rgba(240, 230, 210, 0.035)),
    rgba(20, 16, 10, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.full-dimension-card:nth-child(even) {
  background:
    linear-gradient(180deg, rgba(227, 200, 120, 0.1), rgba(240, 230, 210, 0.035)),
    rgba(24, 19, 12, 0.78);
}

.full-dimension-card h4 {
  margin: 8px 0 14px;
  color: var(--accent-strong);
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
}

.full-dimension-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.full-dimension-card li {
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 16px);
  line-height: 1.72;
  overflow-wrap: anywhere;
}

/* 完整报告手风琴：一次解锁后逐维折叠，点开哪一维才现算那一维（懒加载）。
   每个 <details> 是一维：summary 是可点标题行，展开后 body 渲染断语正文。 */
.dim-accordion-list {
  display: grid;
  gap: clamp(10px, 1.4vw, 14px);
}

.dim-accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(240, 230, 210, 0.08), rgba(240, 230, 210, 0.03)),
    rgba(20, 16, 10, 0.76);
  overflow: hidden;
}

.dim-accordion[open] {
  background:
    linear-gradient(180deg, rgba(227, 200, 120, 0.1), rgba(240, 230, 210, 0.035)),
    rgba(24, 19, 12, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dim-accordion.is-paid-group {
  border-style: dashed;
}

.dim-accordion-summary {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 16px);
  padding: clamp(15px, 1.9vw, 20px) clamp(18px, 2.2vw, 26px);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.dim-accordion-summary::-webkit-details-marker {
  display: none;
}

.dim-accordion-summary:hover .dim-accordion-title {
  color: var(--accent-strong);
}

.dim-accordion-title {
  flex: 1;
  color: var(--accent-strong);
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 600;
}

.dim-accordion-hint {
  color: var(--muted);
  font-size: clamp(12px, 1vw, 13px);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.dim-accordion-hint::before {
  content: "▸ ";
}

.dim-accordion[open] .dim-accordion-hint::before {
  content: "▾ ";
}

.dim-accordion-body {
  padding: 0 clamp(18px, 2.2vw, 26px) clamp(18px, 2.2vw, 24px);
}

.dim-accordion-body:empty {
  display: none;
}

/* AI 精讲失败降级提示：某维回落到规则层底稿时，在正文顶部插的一条醒目说明。
   用告警色描边 + 柔和底色，和正文明显区隔，但不喧宾夺主。 */
.section-degraded-notice {
  margin: 0 0 clamp(12px, 1.6vw, 16px);
  padding: clamp(10px, 1.4vw, 14px) clamp(14px, 1.8vw, 18px);
  border: 1px solid rgba(224, 138, 106, 0.5);
  border-radius: 12px;
  background: rgba(224, 138, 106, 0.08);
  color: var(--danger);
  font-size: 14px;
  line-height: 1.6;
}

/* 降级维度末尾的「让 AI 重跑」按钮：与正文留出间距，靠左排。 */
.section-degraded-retry {
  margin-top: clamp(14px, 1.8vw, 18px);
}

/* 盘顶摘要的降级提示：文字 + 「让 AI 重跑摘要」按钮同排，窄屏自然换行。 */
.summary-degraded {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 1.4vw, 14px);
  margin-top: clamp(10px, 1.4vw, 14px);
}

.summary-degraded > span {
  flex: 1 1 auto;
  min-width: 200px;
}

/* Landing: 方法背书区 */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
  max-width: 1180px;
  margin-inline: auto;
}

/* AI 卖点区块：三张卡，自适应换行，窄屏自然堆叠（不依赖断点，避免与
   通用 .method-grid 媒体查询产生特异性冲突）。 */
.method-grid.trio {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  max-width: 980px;
  margin-inline: auto;
}

.method-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px);
  background:
    linear-gradient(180deg, rgba(240, 230, 210, 0.08), rgba(240, 230, 210, 0.03)),
    rgba(20, 16, 10, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.method-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(227, 200, 120, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    rgba(201, 161, 74, 0.1);
  color: var(--accent-strong);
  font-family: var(--serif);
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.method-card h3 {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
}

.method-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* 改动5：首页三处落地区整体居中（选择方向 / 给判断不给安慰 / 古典定吉凶AI）。
   .section-heading 是全站通用类（报告页也在用），不裸改；这里只在这三个 landing
   区块内 scope 居中，卡片文字也一并居中。纯视觉排布，不改任何内容。 */
.dossier-books .section-heading,
#method .section-heading,
#ai .section-heading {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.dossier-books .section-heading p,
#method .section-heading p,
#ai .section-heading p {
  margin-left: auto;
  margin-right: auto;
}

/* 卡片文字全部居中：感情/事业双入口卡 + 四张方法卡 + AI 三张卡。 */
.dossier-books .focus-entry-card {
  align-items: center;
  text-align: center;
}

.dossier-books .focus-entry-card ul {
  padding-left: 0;
  list-style-position: inside;
  text-align: center;
}

#method .method-card,
#ai .method-card {
  text-align: center;
}

#method .method-card .method-mark,
#ai .method-card .method-mark {
  margin-left: auto;
  margin-right: auto;
}

/* Landing: 六维介绍区 — reuse .dimension-grid / .dimension-chip */
.landing-dimensions .dimension-grid {
  max-width: 1180px;
}

/* Landing: 结尾行动召唤区（跳转录入页） */
.landing-cta {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 50% -20%, rgba(201, 161, 74, 0.14), transparent 58%),
    rgba(240, 230, 210, 0.025);
}

.landing-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.landing-cta-inner h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.landing-cta-inner p {
  margin: 0 auto 28px;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

/* Report page: 状态横幅 */
.state-banner {
  max-width: 1180px;
  margin-bottom: 18px;
  padding: clamp(14px, 2vw, 20px) clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(240, 230, 210, 0.05);
  color: var(--muted);
  line-height: 1.6;
}

.state-banner.is-error {
  border-color: rgba(224, 138, 106, 0.5);
  color: var(--danger);
}

/* Landing: 双命书入口区（design.md §5.1 / §7.1）—— 复用 .section-heading 标题样式 */
.focus-entry-section {
  margin: clamp(28px, 5vw, 56px) 0;
}

.focus-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(16px, 2.4vw, 26px);
}

.focus-entry-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 30px);
  background:
    linear-gradient(180deg, rgba(240, 230, 210, 0.085), rgba(240, 230, 210, 0.03)),
    rgba(20, 16, 10, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 180ms ease, transform 180ms ease;
}

.focus-entry-card:hover {
  border-color: rgba(227, 200, 120, 0.42);
  transform: translateY(-2px);
}

.focus-entry-index {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.focus-entry-card h3 {
  margin: 4px 0 0;
  color: var(--accent-strong);
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
}

.focus-entry-card p {
  margin: 0 0 clamp(12px, 1.6vw, 18px);
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.focus-entry-link {
  margin-top: auto;
}

/* Report: 命书方向切换器（design.md §5.2 / §7.1）—— 一次录入两向切换 */
.dossier-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(8px, 1.4vw, 14px);
  max-width: 1180px;
  margin-bottom: 18px;
  padding: clamp(12px, 1.8vw, 18px) clamp(16px, 2.2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(240, 230, 210, 0.045);
}

.dossier-switcher-label {
  flex: 0 0 auto;
}

.dossier-switch-option {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 18px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.dossier-switch-option:hover {
  border-color: rgba(227, 200, 120, 0.42);
  color: var(--text);
}

.dossier-switch-option[aria-selected="true"] {
  border-color: var(--accent);
  background: rgba(201, 161, 74, 0.14);
  color: var(--accent-strong);
}

.dossier-switcher-note {
  flex: 1 1 100%;
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

/* Report page: 页脚回链 */
/* Dimension detail page (dimension.html) */
.dimension-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  margin: 0 0 clamp(14px, 2vw, 20px);
  color: var(--soft);
  font-size: 14px;
}

.dimension-detail-head {
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

.dimension-detail-head .dimension-index {
  margin-bottom: 6px;
}

.dimension-detail-head h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
}

.dimension-chart-line {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.dimension-detail-body {
  padding: clamp(20px, 3vw, 32px) clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

#dimension-detail-card h4 {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
}

#dimension-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#dimension-detail-card.is-unlocked {
  border-color: rgba(227, 200, 120, 0.42);
  box-shadow: inset 0 0 0 1px rgba(227, 200, 120, 0.18);
}

.report-footnote {
  max-width: 1180px;
  margin: clamp(24px, 3vw, 36px) 0 0;
  color: var(--soft);
  font-size: 14px;
}

.inline-link {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: var(--accent);
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .dossier-copy,
  fieldset,
  .report-console,
  .full-report-panel,
  .secondary-button {
    background: var(--bg-2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .dossier-panel,
  .workbench,
  .report-layout,
  .evidence-section,
  .method-section,
  .landing-dimensions {
    animation: reveal-up 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .dossier-panel {
    animation-delay: 90ms;
  }

  .workbench,
  .report-layout,
  .evidence-section,
  .method-section,
  .landing-dimensions {
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .evidence-list article:nth-child(even) {
    margin-left: 0;
  }

  .report-head,
  .paid-bar,
  .chat-entrance,
  .full-report-head {
    grid-template-columns: 1fr;
  }

  .chat-entrance {
    align-items: stretch;
    flex-direction: column;
  }

  .report-head {
    gap: 14px;
  }

  .time-correction {
    border-top: 1px solid rgba(227, 200, 120, 0.25);
    border-left: 0;
    padding-top: 14px;
    padding-left: 0;
  }

  .report-card,
  .full-report-card {
    min-height: 300px;
  }

  .card-controls {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    justify-content: stretch;
  }

  .paid-bar .secondary-button {
    width: 100%;
  }

  .hero-shell {
    min-height: auto;
  }

  .dossier-panel {
    min-height: 500px;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dimension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .full-dimensions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .hero-shell,
  .workbench,
  .report-layout,
  .evidence-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .form-grid,
  .wide-field,
  .birth-datetime-field {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .dimension-grid {
    grid-template-columns: 1fr;
  }

  .focus-entry-grid {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .report-card,
  .full-report-card {
    min-height: 286px;
    padding: 24px;
  }

  .report-head h3 {
    font-size: 22px;
  }

  .paid-bar h3 {
    font-size: 25px;
  }

  .card-controls {
    gap: 10px;
    padding: 14px;
  }

  .card-controls .secondary-button {
    min-height: 44px;
    padding: 0 12px;
  }

  .dossier-panel {
    min-height: 430px;
  }

  .dossier-copy {
    right: 18px;
    bottom: 18px;
    left: 18px;
    padding: 20px;
  }

  /* 逐章手风琴:窄屏收紧左右内边距,标题不再挤成两行;点开提示("点开看详解")
     在很窄时容易和标题抢地方,超窄屏隐掉,靠 ▸/▾ 箭头指示开合即可。纯呈现层。 */
  .dim-accordion-summary {
    padding: 15px 16px;
    gap: 10px;
  }
  .dim-accordion-body {
    padding: 0 16px 18px;
  }
}

@media (max-width: 400px) {
  .dim-accordion-hint {
    display: none;
  }
}

/* --- 接地对话（grounded chat）--------------------------------------------- */
.chat-panel {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chat-head h3 {
  margin: 6px 0 8px;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--text);
}

.chat-head p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.chat-window {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
  padding: 18px;
  max-height: 440px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.chat-message {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 84%;
}

.chat-message.is-user {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-message.is-astrologer {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-author {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--soft);
}

.chat-message p {
  margin: 0;
  padding: 12px 15px;
  border-radius: var(--radius);
  font-size: 0.98rem;
  line-height: 1.74;
  white-space: pre-wrap;
}

.chat-message.is-astrologer p {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  border-top-left-radius: 2px;
}

.chat-message.is-user p {
  border: 1px solid var(--line-strong);
  background: rgba(201, 161, 74, 0.16);
  color: var(--text);
  border-top-right-radius: 2px;
}

.chat-form {
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--text);
}

.chat-input::placeholder {
  color: var(--soft);
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-input:disabled,
.chat-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chat-chip {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.86rem;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.chat-chip:hover {
  border-color: var(--accent);
  background: rgba(201, 161, 74, 0.1);
  color: var(--text);
}

.chat-tone {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}

.chat-tone-label {
  margin-right: 4px;
}

.chat-tone-option {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.86rem;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.chat-tone-option:hover {
  border-color: var(--accent);
  color: var(--text);
}

.chat-tone-option.is-active {
  border-color: var(--accent);
  background: rgba(201, 161, 74, 0.16);
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 640px) {
  .chat-panel {
    padding: 20px;
  }
  .chat-message {
    max-width: 92%;
  }
  /* 手机窄屏:对话窗留足高度但不过占屏,输入区与发送键上下堆叠、各自撑满一行,
     发送键做成整行大按钮,拇指好按。纯呈现层微调,不改任何逻辑。 */
  .chat-window {
    max-height: 60vh;
    padding: 14px;
  }
  .chat-form {
    flex-wrap: wrap;
  }
  .chat-form .chat-input {
    flex: 1 1 100%;
  }
  .chat-form .secondary-button {
    flex: 1 1 100%;
    min-height: 46px;
  }
  /* 追问建议 / 语气切换在窄屏做成可横滑的一行,芯片抬高到易点尺寸。 */
  .chat-chip,
  .chat-tone-option {
    padding: 10px 15px;
    font-size: 0.92rem;
  }
}

/* iOS 聚焦缩放兜底:Safari 会在获得焦点的输入框字号 <16px 时自动放大整页,
   造成布局跳动。把所有表单控件在触屏窄屏下钉到 16px,消除这次意外缩放。
   纯呈现层,不改任何取值或计算。 */
@media (max-width: 640px) {
  input,
  select,
  textarea,
  .chat-input {
    font-size: 16px;
  }
}

/* ── 免责声明页脚 ──────────────────────────────────────────────────────────── */
/* 合规底线：仅供娱乐参考、反封建迷信、不承诺改运、不诱导付费、保护未成年人与隐私。
   每个页面 </main> 之后都挂同一份 .site-footer，口径一致、全站可见。 */
.site-footer {
  margin: 64px auto 0;
  max-width: 1180px;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.84rem;
  line-height: 1.75;
}

.site-footer .footer-disclaimer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 18px 20px;
}

.site-footer .footer-disclaimer-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-footer .footer-disclaimer ul {
  margin: 0;
  padding-left: 1.2em;
  list-style: disc;
}

.site-footer .footer-disclaimer li {
  margin: 4px 0;
}

.site-footer .footer-disclaimer strong {
  color: var(--muted);
  font-weight: 600;
}

.site-footer .footer-meta {
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--soft);
  font-size: 0.8rem;
}

.site-footer .footer-meta a {
  color: var(--soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.site-footer .footer-meta a:hover {
  color: var(--muted);
  border-bottom-color: var(--line-strong);
}

@media (max-width: 640px) {
  .site-footer {
    padding: 24px 18px 36px;
    font-size: 0.82rem;
  }
}

/* ── 必选同意闸（录入页免责声明勾选）─────────────────────────────────────────── */
/* 合规：生成报告前必须明示勾选同意免责声明（含成年确认）。未勾选时按钮禁用。 */
.consent-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  cursor: pointer;
}

.consent-field input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent-field a {
  color: var(--accent-strong);
}

/* ── 卷首题辞 ValensPreface（纯静态题辞模块）──────────────────────────────────
   古书扉页题辞卡片：羊皮纸底 + 黄铜竖线 + 朱砂题辞印章。默认折叠只露摘要与两句
   精选引文，展开后先给现代边界声明再给完整瓦伦斯段落。仅前端展示，不参与命盘判断。 */
.valens-preface {
  position: relative;
  max-width: 880px;
  margin: 32px auto 40px;
  padding: 28px 32px;
  background: #f3e3bf;
  color: #3a2718;
  border: 1px solid rgba(185, 138, 61, 0.7);
  border-left: 4px solid #b98a3d;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.valens-preface__seal {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #9d3026;
  border: 1px solid rgba(157, 48, 38, 0.55);
  padding: 4px 7px;
  font-size: 13px;
  letter-spacing: 0.12em;
  transform: rotate(-6deg);
}

.valens-preface__eyebrow {
  margin: 0 0 8px;
  color: #7a6244;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.valens-preface__title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: #2d1d10;
}

.valens-preface__summary {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
}

.valens-preface__quote {
  margin: 14px 0;
  padding-left: 16px;
  border-left: 1px solid rgba(185, 138, 61, 0.6);
  color: #4b321f;
  font-size: 15px;
  line-height: 1.9;
}

.valens-preface__boundary {
  margin: 20px 0;
  padding: 12px 14px;
  background: rgba(157, 48, 38, 0.08);
  border: 1px solid rgba(157, 48, 38, 0.18);
  border-radius: 8px;
  color: #5a3827;
  font-size: 14px;
  line-height: 1.8;
}

.valens-preface__body {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.95;
  color: #3a2718;
}

/* 展开态高度自然展开 + 透明度渐显（轻动效，180–240ms） */
.valens-preface__full {
  opacity: 1;
  transition: opacity 200ms ease;
}

.valens-preface.is-collapsed .valens-preface__full[hidden] {
  display: none;
}

.valens-preface__toggle {
  margin-top: 16px;
  padding: 0;
  color: #8a642a;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(138, 100, 42, 0.45);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
}

.valens-preface__toggle:hover {
  color: #9d3026;
}

@media (max-width: 640px) {
  .valens-preface {
    margin: 24px 0 32px;
    padding: 22px 20px;
  }

  .valens-preface__title {
    font-size: 22px;
  }

  .valens-preface__summary {
    font-size: 16px;
  }

  .valens-preface__seal {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
    transform: rotate(-4deg);
  }
}

/* ── Task 3: 双入口命书首页（redesign 2026-07-07）─────────────────────────── */
.dossier-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(72px, 12vw, 144px) clamp(20px, 5vw, 56px) clamp(48px, 8vw, 96px);
}

.dossier-kicker,
.dossier-seal {
  color: var(--accent, #c9a14a);
  font-family: var(--serif, "Noto Serif SC", "Songti SC", Georgia, serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dossier-hero h1 {
  max-width: 820px;
  margin: 16px 0 20px;
  font-family: var(--serif, serif);
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.98;
}

.dossier-hero-copy {
  max-width: 720px;
  color: var(--muted, rgba(243, 236, 224, 0.72));
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.dossier-hero .focus-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
  margin-top: clamp(36px, 6vw, 72px);
}

.dossier-hero .focus-entry-card {
  position: relative;
  display: block;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid color-mix(in srgb, var(--accent, #c9a14a) 38%, transparent);
  border-radius: var(--radius, 12px);
  background:
    linear-gradient(135deg, rgba(240, 230, 210, 0.11), rgba(240, 230, 210, 0.035)),
    rgba(20, 17, 12, 0.72);
  box-shadow: 0 24px 80px rgba(20, 14, 4, 0.36);
  cursor: pointer;
}

.dossier-hero .focus-entry-card h2 {
  margin: 18px 0 12px;
  font-family: var(--serif, serif);
  font-size: clamp(26px, 3.5vw, 42px);
}

.dossier-hero .focus-entry-card ul {
  margin: 0 0 4px;
  padding-left: 1.1em;
}

.dossier-hero .focus-entry-card p,
.dossier-hero .focus-entry-card li,
.method-note li span,
.compliance-note p {
  color: var(--muted, rgba(243, 236, 224, 0.72));
  line-height: 1.75;
}

.primary-cta {
  margin-top: 24px;
  border: 1px solid var(--accent, #c9a14a);
  border-radius: 8px;
  background: var(--accent, #c9a14a);
  color: #1f170b;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.method-note,
.compliance-note {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 56px);
}

.method-note h2 {
  font-family: var(--serif, serif);
  color: var(--accent-strong, #e3c878);
  margin-bottom: 18px;
  text-align: center;
}

/* 改动(整块居中):「它如何给出判断」原来 ol 靠 padding-left 左排,且 1120 宽列比旁边
   居中标题更靠左,整体偏左。这里把标题居中(见上)、列表收窄居中,每条 strong+span
   也居中。纯视觉排布,不改任何文案。 */
.method-note ol {
  margin: 0 auto;
  padding-left: 0;
  max-width: 760px;
  list-style: none;
  display: grid;
  gap: 12px;
  text-align: center;
}

.method-note li strong {
  color: var(--accent-strong, #e3c878);
  margin-right: 8px;
}

.compliance-note {
  border-top: 1px solid rgba(201, 161, 74, 0.24);
  font-size: 14px;
}

@media (max-width: 760px) {
  .dossier-hero .focus-entry-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Task 4: 录入页方向上下文 + 同意闸（redesign 2026-07-07）──────────────── */
.input-dossier-header {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.input-dossier-header .dossier-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.consent-gate {
  display: grid;
  gap: 12px;
}

.consent-gate [data-privacy-notice]:empty {
  display: none;
}

.form-error {
  margin: 0;
  color: var(--danger, #e06a5a);
  font-size: 14px;
  line-height: 1.6;
}

.form-error[hidden] {
  display: none;
}

/* Task 7 命书完整章节渲染（补充类，与既有 full-report 折叠面板并存） */
.report-chapter {
  padding: clamp(22px, 4vw, 40px) 0;
  border-top: 1px solid rgba(201, 161, 74, 0.22);
}

.chapter-index {
  color: var(--accent, #c9a14a);
  font-family: var(--serif, "Noto Serif SC", "Songti SC", Georgia, serif);
  letter-spacing: 0.14em;
}

.report-chapter h3,
.report-summary h3 {
  font-family: var(--serif, serif);
  font-size: clamp(24px, 3vw, 36px);
}

.chapter-body,
.report-summary p {
  color: var(--text, #f3ece0);
  line-height: 1.9;
  font-size: clamp(16px, 1.7vw, 19px);
}

/* Task 9 维度详情方向白名单：不属于当前命书方向的维度以受控文案代替详情 */
.dimension-unavailable {
  max-width: 640px;
  margin: clamp(40px, 10vw, 120px) auto;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(201, 161, 74, 0.24);
  background: rgba(240, 230, 210, 0.05);
  text-align: center;
}

.dimension-unavailable h2 {
  font-family: var(--serif, serif);
  font-size: clamp(24px, 3.4vw, 34px);
  margin: 12px 0 16px;
}

.dimension-unavailable p {
  color: var(--muted, #c2b6a1);
  line-height: 1.8;
}

.dimension-unavailable .primary-cta {
  display: inline-block;
  margin-top: 24px;
}

/* Task 10 命书最终视觉打磨 + 无障碍/减动效 */
:root {
  --dossier-line: rgba(201, 161, 74, 0.24);
  --dossier-surface: rgba(240, 230, 210, 0.055);
  --dossier-surface-strong: rgba(240, 230, 210, 0.09);
}

.dossier-header,
.focus-entry-card,
.unlock-panel,
.xiaofu-followup,
.supporting-dimensions-notice {
  background-image:
    linear-gradient(135deg, rgba(255, 244, 220, 0.08), transparent 42%),
    linear-gradient(180deg, var(--dossier-surface-strong), var(--dossier-surface));
}

.dossier-helper,
.unlock-hint,
.loading-line {
  color: var(--muted, rgba(243, 236, 224, 0.72));
  line-height: 1.75;
}

button,
a.primary-cta {
  transition: transform 160ms ease-out, border-color 160ms ease-out, background 160ms ease-out;
}

button:hover,
a.primary-cta:hover {
  transform: translateY(-1px);
}

button:focus-visible,
a.primary-cta:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent, #c9a14a);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   福星命书 · 封面（Hero）—— 依据「前端生成模板 §2/§5」古典命书档案风重排。
   开卷古书背景（assets/hero-archive.png）+ 黄铜书脊显影 + 朱砂上标标题 +
   双卷 CTA（带 focusIntent 进登记页）。纯前端呈现层，data-focus-entry 钩子保留，
   点击行为仍走 index.js。设计令牌以 --fx-* 命名，避免与既有变量冲突。
   ========================================================================= */
:root {
  --fx-ink: #20160f;
  --fx-paper: #efe3cc;
  --fx-paper-2: #e6d6b8;
  --fx-brass: #b08733;
  --fx-brass-lt: #e3c479;
  --fx-cinnabar: #a5321f;
  --fx-cinnabar-2: #8f2817;
  --fx-onink-mute: #b39a71;
  --fx-serif: var(--serif);
  --fx-gutter: clamp(1.25rem, 5vw, 5rem);
}

/* 品牌印章升级为朱砂圆印（覆盖既有方形 brand-mark，全站统一） */
.brand-mark {
  border-radius: 50%;
  border: none;
  background:
    radial-gradient(circle at 35% 30%, var(--fx-cinnabar), var(--fx-cinnabar-2));
  color: #f4e4c4;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.19), inset 0 0 6px rgba(0, 0, 0, 0.33);
}

.dossier-cover {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) var(--fx-gutter) clamp(3rem, 7vw, 5.5rem);
}

.dossier-cover-book {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  background: url("./assets/hero-archive.png") center center / cover no-repeat;
  animation: fxBookReveal 1.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dossier-cover-book::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(65% 55% at 50% 42%, transparent 0%, rgba(20, 22, 15, 0.13) 60%, rgba(20, 22, 15, 0.8) 100%),
    linear-gradient(180deg, rgba(20, 22, 15, 0.4) 0%, transparent 24%, transparent 44%, rgba(20, 22, 15, 0.86) 82%, var(--fx-ink) 100%);
}

@keyframes fxBookReveal {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

.dossier-cover-spine {
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  height: 0;
  z-index: 1;
  pointer-events: none;
}

.dossier-cover-spine i {
  position: absolute;
  top: 0;
  height: 1px;
  width: 44vw;
  transform: scaleX(0);
  opacity: 0.7;
}

.dossier-cover-spine i.l {
  right: 52%;
  transform-origin: right;
  background: linear-gradient(270deg, transparent, var(--fx-brass) 40%, var(--fx-brass-lt));
  animation: fxLineGrow 1.5s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dossier-cover-spine i.r {
  left: 52%;
  transform-origin: left;
  background: linear-gradient(90deg, transparent, var(--fx-brass) 40%, var(--fx-brass-lt));
  animation: fxLineGrow 1.5s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fxLineGrow {
  to { transform: scaleX(1); }
}

.dossier-cover-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dossier-cover-eyebrow {
  font-family: var(--fx-serif);
  color: var(--fx-brass-lt);
  letter-spacing: 0.42em;
  font-size: 0.78rem;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 8px #000;
  opacity: 0;
  animation: fxFadeUp 1s 1.1s forwards;
}

.dossier-cover h1 {
  margin: 0;
  font-family: var(--fx-serif);
  font-weight: 900;
  color: var(--fx-paper);
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 1.05;
  letter-spacing: 0.14em;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.67), 0 1px 2px #000;
  opacity: 0;
  transform: translateY(24px);
  animation: fxFadeUp 1.2s 1.15s forwards;
}

.dossier-cover h1 .seal-sup {
  font-size: 0.24em;
  color: var(--fx-cinnabar);
  vertical-align: 0.9em;
  margin-left: 0.15em;
  font-weight: 700;
}

.dossier-cover-lead {
  margin-top: 1.5rem;
  max-width: 34ch;
  color: var(--fx-paper-2);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0.08em;
  font-family: var(--fx-serif);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  opacity: 0;
  animation: fxFadeUp 1.2s 1.4s forwards;
}

.dossier-cover-divider {
  margin: 1.6rem 0 0.4rem;
  color: var(--fx-brass);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
  opacity: 0;
  animation: fxFadeUp 1s 1.6s forwards;
}

.dossier-cover-cta {
  margin-top: 1.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fxFadeUp 1.2s 1.7s forwards;
}

@keyframes fxFadeUp {
  to { opacity: 1; transform: none; }
}

.fx-btn {
  font-family: var(--fx-serif);
  font-size: 1rem;
  padding: 0.95rem 2rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.05em;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border-color 0.3s;
}

.fx-btn-primary {
  background: linear-gradient(180deg, var(--fx-brass-lt), var(--fx-brass));
  color: #2a1c0e;
  font-weight: 600;
  box-shadow: 0 8px 22px -10px #000, inset 0 1px 0 rgba(255, 255, 255, 0.33);
}

.fx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px #000, inset 0 1px 0 rgba(255, 255, 255, 0.33);
}

.fx-btn-ghost {
  background: transparent;
  color: var(--fx-brass-lt);
  border: 1px solid rgba(176, 135, 51, 0.4);
}

.fx-btn-ghost:hover {
  background: rgba(176, 135, 51, 0.09);
  border-color: var(--fx-brass);
}

.dossier-cover-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--fx-brass-lt);
  font-family: var(--fx-serif);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  opacity: 0;
  animation: fxFadeUp 1s 2s forwards;
}

.dossier-cover-hint span {
  display: block;
  margin-top: 0.4rem;
  animation: fxBob 2.4s ease-in-out infinite;
}

@keyframes fxBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .dossier-cover-book,
  .dossier-cover-spine i,
  .dossier-cover-eyebrow,
  .dossier-cover h1,
  .dossier-cover-lead,
  .dossier-cover-divider,
  .dossier-cover-cta,
  .dossier-cover-hint {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =====================================================================
   命书总览 · 浅羊皮纸内页(对齐设计稿) —— 纯视觉层
   ---------------------------------------------------------------------
   设计稿里报告内页是「深皮桌面上摊开的一张浅羊皮纸卷」:纸面米白、墨字,
   命盘轮图+行星位置+宫位信息排成一行,轮图外圈是深色黄道环带。这里把这
   套观感 scoped 到 .dossier-report(仅 report.html 带此类),不影响共用
   .report-console/.paid-bar 的 dimension.html。零改数据:行星仍七政、
   宫位仍整宫制,只改颜色/背景/排布。
   ===================================================================== */
.dossier-report {
  /* 纸面 / 墨色 / 描金 / 朱砂 令牌,仅在本页作用域内覆盖。
     博物馆级米白档案纸:纸面提到象牙白,墨字压到近黑暖灰,描金收薄,
     朱砂单一强调色。整体从「深棕压深底」翻到「象牙纸上清墨」,拉满对比。 */
  --paper: #f0e7d4;
  --paper-2: #e6dcc4;
  --paper-line: #c8a86a;
  --paper-line-soft: #ddcba0;
  --ink: #221c15;
  --ink-soft: #4d3b26;
  --ink-mute: #5f4a30;
  --brass-ink: #6b4a12;
  --cinnabar: #8c1e0a;
}

/* 内页容器:真实扫描感羊皮旧纸 + 暗边纤维叠层,替换原浅纸渐变 */
.dossier-report .report-cover,
.dossier-report .report-console {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(72, 39, 18, 0.34);
  background-image:
    radial-gradient(64% 54% at 48% 43%, rgba(255, 224, 158, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(35, 19, 8, 0.08), rgba(35, 19, 8, 0.16)),
    url("./assets/parchment-realistic.png");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  box-shadow:
    0 34px 92px rgba(20, 10, 3, 0.58),
    inset 0 0 0 1px rgba(72, 39, 18, 0.34),
    inset 0 0 64px rgba(46, 22, 9, 0.42),
    inset 0 0 140px rgba(30, 12, 4, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--ink);
}

.dossier-report .report-cover::before,
.dossier-report .report-console::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(18% 88% at 0% 48%, rgba(26, 12, 4, 0.46), transparent 72%),
    radial-gradient(18% 88% at 100% 48%, rgba(27, 12, 5, 0.4), transparent 72%),
    radial-gradient(92% 18% at 50% 0%, rgba(29, 13, 5, 0.38), transparent 78%),
    radial-gradient(90% 18% at 50% 100%, rgba(29, 13, 5, 0.42), transparent 78%),
    radial-gradient(18% 22% at 74% 62%, rgba(58, 30, 12, 0.16), transparent 70%),
    radial-gradient(16% 18% at 22% 24%, rgba(71, 38, 16, 0.13), transparent 70%);
  mix-blend-mode: multiply;
}

.dossier-report .report-cover::after,
.dossier-report .report-console::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='360' height='360' filter='url(%23n)' opacity='.18'/%3E%3Cpath d='M11 76c56-16 99 8 151-7 43-13 83-25 179-8M22 222c72 18 127-18 192-2 39 10 81 18 130 4' fill='none' stroke='%23614125' stroke-width='.75' opacity='.18'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(62, 35, 16, 0.04) 28px 29px);
}

.dossier-report .report-cover > *,
.dossier-report .report-console > :not(.chart-watermark) {
  position: relative;
  z-index: 2;
}

.dossier-report .chart-watermark {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}
.dossier-report .chart-watermark svg {
  width: min(83%, 690px);
  height: auto;
  opacity: 0.08;
  mix-blend-mode: multiply;
  transform: translate(8%, 3%) rotate(-2deg);
  filter: blur(0.05px);
}
.dossier-report .wm-ring {
  fill: none;
  stroke: #2b1a0d;
  stroke-width: 1.1;
}
.dossier-report .wm-band {
  fill: none;
  stroke: #2b1a0d;
  stroke-width: 30;
  opacity: 0.1;
}
.dossier-report .wm-spoke {
  stroke: #2b1a0d;
  stroke-width: 0.82;
  opacity: 0.7;
}
.dossier-report .wm-spoke-asc {
  stroke: #6d2b1e;
  stroke-width: 1.4;
  opacity: 0.86;
}
.dossier-report .wm-sign {
  fill: #2b1a0d;
  font-family: var(--serif);
  font-size: 20px;
}
.dossier-report .wm-house-num {
  fill: #4e321a;
  font-family: var(--serif);
  font-size: 12px;
}
.dossier-report .wm-planet {
  fill: #24170d;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}
.dossier-report .wm-planet-dot {
  fill: none;
  stroke: #2b1a0d;
  stroke-width: 1;
}
.dossier-report .wm-leader {
  stroke: #2b1a0d;
  stroke-width: 0.7;
  opacity: 0.6;
}
.dossier-report .wm-tick {
  fill: #2b1a0d;
}
.dossier-report .wm-asc-label {
  fill: #6d2b1e;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.dossier-report .verdict-mark {
  color: var(--brass-ink);
  font-weight: 800;
  text-shadow: none;
  background: linear-gradient(180deg, transparent 62%, rgba(122, 85, 28, 0.18) 62%);
  padding: 0 0.06em;
}

/* 封面小字反色:提眉与卷宗编号落在封面顶部被压暗的纸边(有效底约 rgb(131,88,43),
   任何深墨在此对比都 <3),故改浅色压深边角,对比度提到 5+ 清晰可读,兼得烫印质感。 */
/* 封面小字:连续纸卷后封面顶部不再是被压暗的深边,故浅色反字会糊在亮纸上;
   改回黄铜墨/深墨,贴亮牛皮纸对比清晰,并保留烫金题签质感。 */
.dossier-report .report-cover-eyebrow {
  color: #4a3110;
  letter-spacing: 0.14em;
}
.dossier-report .report-cover-title {
  color: var(--ink);
}
.dossier-report .report-cover-dossier-no {
  color: var(--ink);
}
.dossier-report .report-cover-corner {
  border-color: rgba(138, 106, 36, 0.55);
}

/* 出生资料网格:彻底裸贴旧纸,去底去块,只留一层淡墨横分隔线勾出「项/值」栏目结构;
   dt/dd 一律用深墨 --ink(裸贴中亮纸上对比 6.6~7.7,--ink-soft 仅 3.5 不达标),
   仅以字重区分层级,不再用任何底色分块,与牛皮纸融为一体。 */
.dossier-report .report-cover-grid {
  background: transparent;
  border: none;
  row-gap: 0;
}
.dossier-report .report-cover-grid dt {
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  opacity: 0.85;
  border-bottom: 1px solid rgba(74, 52, 24, 0.26);
  padding-top: 9px;
  padding-bottom: 9px;
}
.dossier-report .report-cover-grid dd {
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid rgba(74, 52, 24, 0.26);
  padding-top: 9px;
  padding-bottom: 9px;
}

/* 当前方向卡「朱砂点睛」:整体裸贴旧纸(去底去描边去浮卡),视觉锚点收敛到一枚
   与封面「福」印同色系的朱砂小印章上——面积极小故明显但不喧宾夺主;标签两侧
   配一对描金短横,做成卷宗题签的样子,示意「这是感情/事业部分」。 */
.dossier-report .report-cover-focus {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  gap: 10px;
}
.dossier-report .report-cover-focus-label {
  color: var(--brass-ink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dossier-report .report-cover-focus-label::before,
.dossier-report .report-cover-focus-label::after {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(138, 106, 36, 0.55);
}
.dossier-report .report-cover-focus-seal {
  width: 52px;
  height: 52px;
  border: 1.5px solid rgba(165, 50, 31, 0.55);
  color: var(--fx-cinnabar);
  background: radial-gradient(circle at 50% 45%, rgba(165, 50, 31, 0.14), transparent 70%);
}
.dossier-report .report-cover-focus-name {
  color: var(--ink);
  font-size: clamp(20px, 3.4vw, 25px);
  font-weight: 800;
}
.dossier-report .report-cover-focus-note {
  color: #3f2c15;
}

/* 内页各分区抬头/正文改墨色 */
.dossier-report .report-head {
  border-bottom-color: var(--paper-line);
  background: rgba(247, 235, 210, 0.4);
}
.dossier-report .report-head h3,
.dossier-report .report-console h3 {
  color: var(--ink);
}
.dossier-report .report-console .small-label {
  color: var(--brass-ink);
}
.dossier-report .time-correction {
  color: var(--ink-soft);
  border-left-color: rgba(138, 106, 36, 0.4);
}

/* 命盘轮图区:浅底 + 一行排布(轮图 | 行星位置 | 宫位信息) */
.dossier-report .natal-wheel {
  border-bottom-color: var(--paper-line);
  background:
    radial-gradient(70% 60% at 26% 40%, rgba(201, 161, 74, 0.08), transparent 72%),
    rgba(247, 235, 210, 0.34);
}
.dossier-report .natal-wheel-layout {
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: clamp(18px, 3vw, 40px);
}
.dossier-report .natal-wheel-canvas {
  flex: 0 0 auto;
  width: min(340px, 42vw);
}
.dossier-report .natal-tables {
  flex: 1 1 auto;
  margin-top: 6px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.dossier-report .natal-wheel-caption {
  color: var(--ink-soft);
}

/* 行星/宫位表:直接刻在纸上——去奶油底与外框(避免浮卡),只留描金抬头分隔线与
   行间细线勾出栏目;墨字。 */
.dossier-report .natal-table-block {
  border: none;
  background: transparent;
}
.dossier-report .natal-table-title {
  border-bottom-color: rgba(138, 106, 36, 0.5);
  background: transparent;
  color: #4a3110;
}
.dossier-report .natal-table-note {
  color: var(--ink-soft);
}
.dossier-report .natal-table th,
.dossier-report .natal-table td {
  border-bottom-color: var(--paper-line-soft);
}
.dossier-report .natal-table thead th {
  color: #4a3110;
  background: transparent;
}
.dossier-report .natal-table tbody td:first-child {
  color: var(--ink);
}
.dossier-report .natal-table tbody td:nth-child(2) {
  color: #4a3110;
}
.dossier-report .natal-table-deg {
  color: var(--ink-soft);
}

/* 轮图深色黄道环带 + 浅底上的墨色刻度 */
.wheel-zodiac-band {
  fill: none;
  stroke: #241b10;
}
.dossier-report .wheel-ring {
  stroke: rgba(138, 106, 36, 0.55);
}
.dossier-report .wheel-spoke {
  stroke: rgba(138, 106, 36, 0.28);
}
.dossier-report .wheel-hub {
  fill: rgba(201, 161, 74, 0.12);
}
.dossier-report .wheel-sign-glyph {
  fill: #e7cd8f;
}
.dossier-report .wheel-house-number {
  fill: var(--ink-mute);
}
.dossier-report .wheel-planet-dot {
  fill: #efe3c8;
  stroke: var(--brass-ink);
}
.dossier-report .wheel-planet-glyph {
  fill: #4a3212;
}
.dossier-report .wheel-planet-leader {
  stroke: rgba(138, 106, 36, 0.4);
}
.dossier-report .wheel-planet-tick {
  fill: var(--brass-ink);
}

/* 卷首题辞:裸贴纸面,仅左侧一道描金细边收束,不做浮卡 */
.dossier-report .valens-preface {
  border: none;
  border-left: 2px solid rgba(138, 106, 36, 0.45);
  background: transparent;
  color: var(--ink);
}
.dossier-report .valens-preface__eyebrow {
  color: var(--brass-ink);
}
.dossier-report .valens-preface__title {
  color: var(--ink);
}
.dossier-report .valens-preface__summary,
.dossier-report .valens-preface__body,
.dossier-report .valens-preface__boundary {
  color: var(--ink-soft);
}
.dossier-report .valens-preface__quote {
  color: var(--ink);
}

/* 命书摘录区 + 条目:浅底墨字,朱砂编号/描边保留 */
.dossier-report .excerpt-overview {
  border-bottom-color: var(--paper-line);
  background:
    linear-gradient(180deg, rgba(201, 161, 74, 0.08), rgba(201, 161, 74, 0.02)),
    rgba(247, 235, 210, 0.42);
}
.dossier-report .excerpt-overview-head h3 {
  color: var(--ink);
}
.dossier-report .excerpt-overview-head p,
.dossier-report .excerpt-empty {
  color: var(--ink-soft);
}
.dossier-report .focus-excerpt {
  border: none;
  border-left: 3px solid var(--cinnabar, #a5321f);
  background: transparent;
  box-shadow: none;
}
.dossier-report .focus-excerpt-body {
  color: var(--ink);
}

/* 付费栏:浅底墨字 */
.dossier-report .paid-bar {
  background: rgba(247, 235, 210, 0.5);
}
.dossier-report .paid-bar h3 {
  color: var(--ink);
}
.dossier-report .paid-bar p {
  color: var(--ink-soft);
}
.dossier-report .paid-bar .small-label {
  color: var(--brass-ink);
}

/* 付费栏按钮:浅纸底上原按钮为浅字→隐形,改墨字描金,恢复可读(修复问题一) */
.dossier-report .secondary-button {
  border-color: rgba(138, 106, 36, 0.5);
  background: rgba(201, 161, 74, 0.14);
  color: var(--ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.dossier-report .secondary-button:hover {
  border-color: rgba(138, 106, 36, 0.85);
  background: rgba(201, 161, 74, 0.24);
}
.dossier-report .paid-bar .secondary-button {
  border-color: rgba(138, 106, 36, 0.5);
  background: rgba(201, 161, 74, 0.14);
}
.dossier-report .ghost-button {
  border-color: rgba(138, 106, 36, 0.42);
  color: var(--ink-soft);
}
.dossier-report .ghost-button:hover {
  border-color: rgba(138, 106, 36, 0.8);
  color: var(--ink);
}
.dossier-report .share-hint,
.dossier-report .form-note {
  color: var(--ink-soft);
}

/* 完整命书面板 + 追问面板:同为浅羊皮纸,解锁后接在总览之下不再是深色断层
   (修复问题三:解锁段/追问段背景与封面·总览不符) */
.dossier-report .full-report-panel,
.dossier-report .chat-panel {
  border-color: rgba(72, 39, 18, 0.34);
  background-image:
    radial-gradient(64% 54% at 48% 43%, rgba(255, 224, 158, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(35, 19, 8, 0.08), rgba(35, 19, 8, 0.16)),
    url("./assets/parchment-realistic.png");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  box-shadow:
    0 24px 64px rgba(20, 10, 3, 0.5),
    inset 0 0 0 2px rgba(201, 161, 74, 0.18);
  color: var(--ink);
}
.dossier-report .full-report-head {
  border-bottom-color: var(--paper-line);
}
.dossier-report .full-report-head h3,
.dossier-report .full-report-panel h3,
.dossier-report .chat-head h3 {
  color: var(--ink);
}
.dossier-report .full-report-head p,
.dossier-report .full-report-panel p,
.dossier-report .chat-head p {
  color: var(--ink-soft);
}
.dossier-report .full-report-panel .small-label,
.dossier-report .chat-panel .small-label {
  color: var(--brass-ink);
}
.dossier-report .full-dimensions {
  border-bottom-color: var(--paper-line);
  background: transparent;
}
.dossier-report .full-dimensions-head p {
  color: var(--ink-soft);
}
/* ⑦ 逐章手风琴:裸贴纸面,去白色内高光与奶油底,仅以一道细线勾边;展开时给极
   淡描金底做「翻开」的态,不再是浮起来的卡。 */
.dossier-report .dim-accordion {
  border-color: rgba(138, 106, 36, 0.34);
  background: transparent;
  box-shadow: none;
}
.dossier-report .dim-accordion[open] {
  background: linear-gradient(180deg, rgba(201, 161, 74, 0.1), transparent 60%);
  box-shadow: none;
}
.dossier-report .dim-accordion-title,
.dossier-report .dim-accordion-summary:hover .dim-accordion-title {
  color: var(--brass-ink);
}
.dossier-report .dim-accordion-hint {
  color: var(--ink-soft);
}
.dossier-report .dim-accordion-body .section-para {
  color: var(--ink);
}
.dossier-report .dim-accordion-body .section-subheading {
  color: var(--brass-ink);
  border-left-color: var(--brass-ink);
}
.dossier-report .full-dimension-card,
.dossier-report .full-dimension-card:nth-child(even) {
  border: none;
  border-left: 2px solid rgba(138, 106, 36, 0.4);
  background: transparent;
  box-shadow: none;
}
.dossier-report .report-card,
.dossier-report .full-report-card,
.dossier-report .report-card:nth-child(even),
.dossier-report .full-report-card:nth-child(even),
.dossier-report .report-card.is-hero-card {
  border-top-color: rgba(138, 106, 36, 0.34);
  border-bottom-color: rgba(138, 106, 36, 0.34);
  background: transparent;
  box-shadow: none;
}
.dossier-report .report-card p,
.dossier-report .full-report-card li,
.dossier-report .full-report-sections li,
.dossier-report .section-para {
  color: var(--ink);
}
.dossier-report .full-report-sections h4 {
  color: var(--brass-ink);
}
.dossier-report .compact-controls {
  border-color: transparent;
  background: transparent;
}

/* 追问区:裸贴纸面的对话栏,气泡与输入框以细线/淡描金勾勒,不再是浮在纸上的奶油卡 */
.dossier-report .chat-window {
  border-color: rgba(138, 106, 36, 0.28);
  background: transparent;
}
.dossier-report .chat-author {
  color: var(--ink-mute);
}
.dossier-report .chat-message.is-astrologer p {
  border: none;
  border-left: 3px solid var(--cinnabar, #a5321f);
  background: transparent;
  color: var(--ink);
}
.dossier-report .chat-message.is-user p {
  border: none;
  border-left: 3px solid rgba(138, 106, 36, 0.6);
  background: rgba(201, 161, 74, 0.12);
  color: var(--ink);
}
.dossier-report .chat-input {
  border-color: rgba(138, 106, 36, 0.42);
  background: rgba(46, 22, 9, 0.06);
  color: var(--ink);
}
.dossier-report .chat-input::placeholder {
  color: var(--ink-mute);
}
.dossier-report .chat-chip,
.dossier-report .chat-tone-option {
  border-color: rgba(138, 106, 36, 0.5);
  background: transparent;
  color: var(--ink-soft);
}
.dossier-report .chat-chip:hover,
.dossier-report .chat-tone-option:hover {
  border-color: rgba(138, 106, 36, 0.8);
  color: var(--ink);
}
.dossier-report .chat-tone-option.is-active {
  border-color: rgba(138, 106, 36, 0.85);
  background: rgba(201, 161, 74, 0.2);
  color: var(--ink);
}

/* 状态条 / 分享结果 / 命书切换器 / 邀请条:裸贴纸面的内嵌区块,仅以细线/淡描金
   勾边分隔,去掉投影与奶油底,不再是浮在纸上的卡。 */
.dossier-report .state-banner,
.dossier-report .dossier-switcher,
.dossier-report .invite-banner,
.dossier-report .share-result {
  border-color: rgba(138, 106, 36, 0.34);
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: var(--ink);
}
/* ⑥ 失败态:通用 .state-banner.is-error 的红字被上面的纸色规则覆盖回墨色,这里在
   报告页 scope 里提权,恢复红字 + 红边 + 淡红底,并给出高亮脉冲动画类(JS 失败时挂)。 */
.dossier-report .state-banner.is-error {
  border-color: rgba(198, 74, 52, 0.6);
  background: rgba(224, 138, 106, 0.16);
  color: #b23a22;
  font-weight: 600;
}
.dossier-report .state-banner.is-error .state-banner-retry {
  color: inherit;
}
.state-banner-retry {
  margin-left: 12px;
  padding: 6px 14px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, transform 120ms ease;
}
.state-banner-retry:hover {
  background: rgba(198, 74, 52, 0.12);
}
.state-banner-retry:active {
  transform: translateY(1px);
}
.state-banner.is-flash {
  animation: bannerFlash 1.1s ease;
}
@keyframes bannerFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 74, 52, 0.55);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(198, 74, 52, 0);
  }
}
/* 切换器标签与说明文字:总览里“选择感情/事业切换”那段,原来用 --ink-soft
   贴在浅纸上偏灰、看不清,这里改用深墨/黄铜墨,提高对比度。 */
.dossier-report .dossier-switcher-label {
  color: var(--ink);
  font-weight: 600;
}
.dossier-report .dossier-switcher-note {
  color: var(--brass-ink);
}
.dossier-report .dossier-switch-option {
  border-color: var(--brass-ink);
  background: rgba(247, 235, 210, 0.55);
  color: var(--ink);
}
.dossier-report .dossier-switch-option:hover {
  border-color: rgba(138, 106, 36, 0.85);
  color: var(--brass-ink);
}
.dossier-report .dossier-switch-option[aria-selected="true"] {
  border-color: rgba(138, 106, 36, 0.95);
  background: rgba(201, 161, 74, 0.28);
  color: var(--ink);
  font-weight: 600;
}
.dossier-report .share-result input {
  border-color: var(--paper-line);
  background: rgba(247, 235, 210, 0.85);
  color: var(--ink);
}
.dossier-report .report-footnote {
  color: var(--ink-soft);
}
/* 命书页页脚在浅羊皮纸上:基础 .inline-link 的浅金(--accent-strong)对比仅
   1.33:1 看不清,改深琥珀金(5.83:1,过 WCAG AA),hover 再压深。 */
.dossier-report .report-footnote .inline-link {
  color: #7a4e18;
}
.dossier-report .report-footnote .inline-link:hover {
  color: #6f4512;
}

/* 命盘输入页:整页收进羊皮纸卷宗,表单控件改「刻在旧纸上」的墨字样式
   (.workbench 仅存在于 input.html,借此隔离,不外泄到 report/full-report) */
.dossier-report .workbench fieldset {
  border-color: rgba(160, 130, 74, 0.4);
  background-color: rgba(255, 251, 242, 0.7);
  background-image:
    radial-gradient(120% 140% at 50% 0%, rgba(255, 246, 224, 0.5), transparent 70%),
    url("./assets/parchment-realistic.png");
  background-size: cover, cover;
  background-position: center, center;
  background-blend-mode: normal, soft-light;
  box-shadow:
    0 10px 30px rgba(60, 40, 12, 0.14),
    inset 0 0 0 1px rgba(160, 130, 74, 0.24);
}
.dossier-report .workbench legend {
  /* 默认 legend 骑在 fieldset 上边框上,上半截会浮到深色书案上像被裁切;
     改成浮动块让它整体落进羊皮纸内页里,边框在其上方画成完整矩形。 */
  float: left;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  color: var(--brass-ink);
}
.dossier-report .workbench legend + * {
  clear: both;
}
.dossier-report .workbench label {
  color: var(--ink);
}
.dossier-report .workbench .field-hint {
  color: var(--brass-ink);
}
/* 录入页顶部标题区(面包屑/眉标/H2/引言)落在深色书案上,而非羊皮纸内页,
   故不能沿用羊皮纸深墨令牌(深棕压深底=看不清)。此处显式回落到深底浅字令牌:
   金铜眉标 + 浅色标题 + 柔白引言,仅限 .workbench 作用域,report 页不受影响。 */
.dossier-report .workbench .dossier-kicker {
  color: var(--accent);
}
.dossier-report .workbench .inline-link {
  color: var(--accent);
}
.dossier-report .workbench .input-dossier-header h2 {
  color: var(--text);
}
.dossier-report .workbench .input-dossier-header p {
  color: var(--muted);
}
.dossier-report .workbench input,
.dossier-report .workbench select {
  border: 1px solid var(--paper-line);
  background: rgba(252, 246, 232, 0.82);
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(74, 52, 24, 0.14);
}
.dossier-report .workbench input[readonly] {
  color: var(--brass-ink);
}
.dossier-report .workbench select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%237a551c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}
.dossier-report .workbench input:focus,
.dossier-report .workbench select:focus {
  border-color: rgba(138, 106, 36, 0.85);
  box-shadow:
    0 0 0 3px rgba(201, 161, 74, 0.28),
    inset 0 1px 2px rgba(74, 52, 24, 0.14);
}
.dossier-report .workbench select option {
  background: #f0e6d2;
  color: #24170d;
}
/* 同意闸/隐私提示/状态行落在深色书案上(不在羊皮纸内页),
   深墨令牌会「深字压深底」看不清,统一回落到深底浅字令牌。 */
.dossier-report .workbench .consent-gate .field-hint {
  color: var(--muted);
}
.dossier-report .workbench .consent-field {
  color: var(--text);
}
.dossier-report .workbench .consent-field a {
  color: var(--accent);
}
.dossier-report .workbench .form-note {
  color: var(--muted);
}

/* =====================================================================
   连续羊皮纸重构:整卷报告合为「一张连续旧纸」
   —— 深皮革(body)仅作书案外框,report-layout 本体即那张纸;封面/切换器/
   命盘台/完整报告/追问诸分区一律去掉各自的深色浮卡(边框·圆角·投影·毛玻璃),
   化作同一张纸上的段落;模块之间以描金细线 + 朱砂小印分隔,消灭深色断层。
   仅 report.html / full-report.html 带 .dossier-report,dimension.html 不受影响。
   纯呈现层:不改任何数据,行星仍七政、宫位仍整宫制。
   ===================================================================== */
.dossier-report .report-layout {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1240px;
  margin: clamp(22px, 4vw, 52px) auto;
  padding: clamp(30px, 4vw, 60px) clamp(22px, 3.4vw, 52px) clamp(40px, 5vw, 72px);
  border: 1px solid rgba(160, 130, 74, 0.4);
  border-radius: 16px;
  background-color: var(--paper);
  background-image:
    radial-gradient(58% 42% at 50% 22%, rgba(255, 246, 224, 0.6), transparent 72%),
    linear-gradient(180deg, var(--paper), var(--paper-2)),
    url("./assets/parchment-realistic.png");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-blend-mode: normal, normal, soft-light;
  box-shadow:
    0 40px 110px rgba(15, 8, 2, 0.42),
    inset 0 0 0 1px rgba(160, 130, 74, 0.28),
    inset 0 0 90px rgba(120, 92, 48, 0.1);
  color: var(--ink);
}
/* 纸卷四边压暗:让整张纸有陈旧卷边,而不是均匀色块 */
.dossier-report .report-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(14% 66% at 0% 50%, rgba(120, 92, 48, 0.14), transparent 72%),
    radial-gradient(14% 66% at 100% 50%, rgba(120, 92, 48, 0.12), transparent 72%),
    radial-gradient(82% 11% at 50% 0%, rgba(120, 92, 48, 0.1), transparent 80%),
    radial-gradient(82% 11% at 50% 100%, rgba(120, 92, 48, 0.12), transparent 80%);
  mix-blend-mode: multiply;
}
/* 纸纹噪点 + 极淡横向纤维,复用命盘台同款纹理 */
.dossier-report .report-layout::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.24;
  mix-blend-mode: multiply;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='360' height='360' filter='url(%23n)' opacity='.18'/%3E%3Cpath d='M11 76c56-16 99 8 151-7 43-13 83-25 179-8M22 222c72 18 127-18 192-2 39 10 81 18 130 4' fill='none' stroke='%23614125' stroke-width='.75' opacity='.18'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(62, 35, 16, 0.04) 28px 29px);
}
/* 所有分区抬到纹理之上 */
.dossier-report .report-layout > * {
  position: relative;
  z-index: 1;
}

/* 拆除分区各自的「深色浮卡」外观,让它们裸贴在同一张纸上 */
.dossier-report .report-cover,
.dossier-report .report-console,
.dossier-report .full-report-panel,
.dossier-report .chat-panel,
.dossier-report .dossier-switcher,
.dossier-report .state-banner:not(.is-error),
.dossier-report .invite-banner,
.dossier-report .share-result {
  border: none;
  border-radius: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* 关掉封面/命盘台原先的「岛屿压边」伪层——纸卷压边已由 report-layout 统一负责 */
.dossier-report .report-cover::before,
.dossier-report .report-cover::after,
.dossier-report .report-console::after {
  display: none;
}

/* 封面(卷首题名)与下文之间:一道描金细线收束 */
.dossier-report .report-cover {
  margin-bottom: clamp(6px, 1.2vw, 14px);
  padding-bottom: clamp(18px, 3vw, 30px);
  border-bottom: 1px solid rgba(138, 106, 36, 0.34);
}

/* 总览标题:原为深底浅字,是最刺眼的断层——改为纸上墨字,与整卷同源 */
.dossier-report .section-heading h2 {
  color: var(--ink);
}
.dossier-report .section-heading p {
  color: #3f2c15;
}

/* 命盘台内部各「整幅横带」原来各刷一层浅奶油底,在连续纸卷上会变成一条条浅色横
   条,重新造成分层错觉。这里把整幅横带的底一律透空,只保留它们的描金细分隔线;
   真正需要凸显的「内嵌卡片/表格」(行星表·摘录条·逐章卡)仍保留浅纸底,读作压
   在同一张纸上的贴条,而非另起一块深/浅面。 */
.dossier-report .report-head,
.dossier-report .natal-wheel,
.dossier-report .excerpt-overview,
.dossier-report .paid-bar,
.dossier-report .full-dimensions {
  background: transparent;
  background-image: none;
}

/* 命盘台(正文主段)顶部:仅留描金细线分段,不再放圆印小章(去掉「肚脐眼」) */
.dossier-report .report-console {
  margin-top: clamp(18px, 3vw, 30px);
  padding-top: clamp(22px, 3.2vw, 38px);
  border-top: 1px solid rgba(138, 106, 36, 0.42);
  overflow: visible;
}
.dossier-report .report-console::before {
  display: none;
}

/* 窄屏:回到轮图上、两表在下的纵向堆叠 */
@media (max-width: 900px) {
  .dossier-report .natal-wheel-layout {
    flex-wrap: wrap;
    justify-content: center;
  }
  .dossier-report .natal-wheel-canvas {
    width: min(340px, 86vw);
  }
  .dossier-report .natal-tables {
    flex-basis: 100%;
  }
}
@media (max-width: 640px) {
  .dossier-report .natal-tables {
    grid-template-columns: 1fr;
  }
}
