:root {
  --paper: #f6f1e7;
  --paper-deep: #eee6d7;
  --surface: #fffdf8;
  --surface-muted: #f2ecdf;
  --ink: #1d211e;
  --muted: #687069;
  --line: #d9d1c3;
  --line-strong: #bfb5a5;
  --pine: #315c52;
  --pine-dark: #254940;
  --pine-soft: #e2ebe6;
  --cinnabar: #a64b38;
  --cinnabar-soft: #f3e3dc;
  --brass: #b68a4a;
  --brass-soft: #f1e6d2;
  --danger: #9c3f35;
  --success: #2f6958;
  --shadow-sm: 0 8px 24px rgba(42, 38, 30, 0.07);
  --shadow-md: 0 18px 48px rgba(42, 38, 30, 0.1);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 18px;
  --content: 1180px;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-height: 100vh; min-height: 100dvh; margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 4px; background: var(--cinnabar); z-index: 90; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; }
a { color: var(--pine); }
img { max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--cinnabar); outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 200; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.offline-banner { position: relative; z-index: 100; padding: 10px 20px; text-align: center; color: #fff; background: var(--cinnabar); font-size: 14px; }
.site-header { position: sticky; top: 0; z-index: 80; border-bottom: 1px solid rgba(191,181,165,.75); background: rgba(246,241,231,.96); }
.header-inner { width: min(var(--content), calc(100% - 40px)); min-height: 72px; margin: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex: none; }
.brand-seal { width: 46px; height: 46px; display: grid; place-items: center; flex: none; padding: 1px; background: transparent; }
.brand-seal img, .home-preview-seal img, .auth-seal img, .loading-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-seal img { filter: drop-shadow(0 2px 3px rgba(125,54,41,.18)); }
.brand-copy { min-width: 118px; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font: 700 20px/1.1 "STSong", "Songti SC", serif; letter-spacing: .12em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.desktop-nav a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 10px; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; }
.desktop-nav a:hover, .desktop-nav a.is-active, .desktop-nav a[aria-current="page"] { color: var(--ink); border-color: var(--cinnabar); }
.header-cta { flex: none; }
.header-account { min-width: 0; flex: none; display: flex; align-items: center; gap: 6px; }
.admin-shortcut { padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--pine); font-size: 12px; font-weight: 700; text-decoration: none; background: rgba(255,253,248,.76); }
.admin-shortcut:hover { border-color: var(--pine); background: var(--surface); }
.header-auth-links { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,253,248,.72); }
.header-auth-links a { min-height: 34px; display: inline-flex; align-items: center; padding: 0 11px; color: var(--muted); border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 700; }
.header-auth-links a:hover { color: var(--ink); background: var(--surface); }
.header-auth-links .auth-register-link { color: #fff; background: var(--pine); }
.header-auth-links .auth-register-link:hover { color: #fff; background: var(--pine-dark); }
.header-user-link { min-width: 0; min-height: 44px; display: grid; grid-template-columns: 34px minmax(0, auto) 12px; align-items: center; gap: 9px; padding: 4px 9px 4px 5px; color: var(--ink); border: 1px solid transparent; border-radius: 12px; text-decoration: none; }
.header-user-link:hover { border-color: var(--line); background: rgba(255,253,248,.82); }
.header-user-link > span:nth-child(2) { min-width: 0; }
.header-user-link strong, .header-user-link small { display: block; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-user-link strong { font-size: 13px; line-height: 1.35; }
.header-user-link small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.header-user-link > span:last-child { color: var(--muted); font-size: 11px; }
.account-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: none; color: #fff; border-radius: 10px 10px 10px 3px; background: var(--cinnabar); font: 700 16px/1 "STSong", "Songti SC", serif; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }

.app { min-height: calc(100vh - 220px); }
.print-root { display: none; }
.page { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; padding: 52px 0 80px; }
.page-narrow { width: min(760px, calc(100% - 40px)); }
.page-header { margin-bottom: 30px; }
.membership-page .page-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px; }
.membership-header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.membership-return-link { white-space: nowrap; }
.page-header-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.eyebrow, .section-kicker { margin: 0 0 10px; color: var(--cinnabar); font-size: 12px; font-weight: 750; letter-spacing: .16em; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: "STSong", "Songti SC", "Noto Serif CJK SC", serif; }
.page-header h1 { max-width: min(760px, 17em); margin: 0; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.16; letter-spacing: -.035em; overflow-wrap: normal; word-break: normal; line-break: strict; text-wrap: balance; }
.page-header p { max-width: 720px; margin: 15px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.section { margin-top: 72px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); }
.section-heading p { max-width: 580px; margin: 8px 0 0; color: var(--muted); line-height: 1.7; }
.meta, .helper-text { color: var(--muted); font-size: 13px; line-height: 1.6; }

.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; text-decoration: none; font-weight: 700; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button-primary { color: #fff; background: var(--pine); border-color: var(--pine); }
.button-primary:hover:not(:disabled) { background: var(--pine-dark); }
.button-secondary { color: var(--pine); background: var(--surface); border-color: var(--pine); }
.button-quiet { color: var(--ink); background: transparent; border-color: var(--line); }
.button-danger { color: var(--danger); background: var(--surface); border-color: rgba(156,63,53,.45); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-button { min-height: 42px; padding: 0; border: 0; color: var(--pine); background: transparent; font-weight: 700; cursor: pointer; }
.badge, .status-label { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 8px; color: var(--pine); background: var(--pine-soft); border-radius: 7px; font-size: 12px; font-weight: 700; }
.badge-warm, .status-upcoming { color: #744f1c; background: var(--brass-soft); }
.badge-alert { color: var(--danger); background: var(--cinnabar-soft); }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 50px; align-items: center; padding-top: 62px; }
.hero > * { min-width: 0; max-width: 100%; }
.hero-copy h1 { max-width: min(100%, 13em); margin: 0; font-size: clamp(40px, 4.4vw, 54px); line-height: 1.14; letter-spacing: -.045em; overflow-wrap: normal; word-break: normal; line-break: strict; text-wrap: balance; }
.hero-title > span { display: block; white-space: nowrap; }
.hero-copy .lead { max-width: 650px; margin: 22px 0 0; color: #4e5650; font-size: 19px; line-height: 1.85; }
.hero-copy > p { max-width: 650px; margin: 22px 0 0; color: #4e5650; font-size: 18px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.microcopy, .form-note, .section-note { color: var(--muted); font-size: 13px; line-height: 1.65; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-facts span, .privacy-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 9px; color: var(--pine); border: 1px solid var(--line); border-radius: 8px; background: var(--pine-soft); font-size: 12px; font-weight: 700; }
.seal { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; border-radius: 12px 12px 12px 4px; background: var(--cinnabar); font: 700 23px/1 "STSong", "Songti SC", serif; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 13px; }
.hero-card { position: relative; padding: 30px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.hero-card::before { content: "观序小引"; display: block; margin-bottom: 22px; color: var(--cinnabar); font-size: 12px; font-weight: 750; letter-spacing: .14em; }
.hero-summary { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: #485049; line-height: 1.75; }
.mini-pillars, .pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mini-pillar, .pillar-card { min-width: 0; padding: 16px 10px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.mini-pillar span, .pillar-card small { display: block; color: var(--muted); font-size: 12px; }
.pillar-card > span { display: block; color: var(--muted); font-size: 12px; }
.mini-pillar strong, .pillar-card strong { display: block; margin-top: 8px; color: var(--ink); font: 700 25px/1.25 "STSong", "Songti SC", serif; letter-spacing: .1em; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.trust-card { padding: 19px 20px; border-top: 2px solid var(--pine); background: var(--surface); }
.trust-card strong { display: block; margin-bottom: 6px; }
.trust-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.module-card { min-height: 210px; display: flex; flex-direction: column; padding: 23px; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.module-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.module-card h2, .module-card h3 { margin: 24px 0 8px; font-size: 23px; }
.module-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.module-card.featured { border-color: var(--pine); box-shadow: var(--shadow-sm); }
.module-card.coming { background: var(--surface-muted); }
.module-card > strong, .module-card > a { margin-top: auto; padding-top: 22px; font-size: 13px; text-decoration: none; }
.module-card .module-footer { margin-top: auto; padding-top: 22px; color: var(--pine); font-weight: 700; font-size: 13px; }
.module-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--cinnabar); font-family: "STSong", "Songti SC", serif; font-size: 20px; }

.page-home { padding-top: 30px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 52px; align-items: center; padding: 24px 0 18px; }
.home-hero-copy { align-self: center; padding: 28px 0; }
.home-hero-copy h1 { max-width: 11em; margin: 0; font-size: clamp(42px, 4.4vw, 58px); line-height: 1.14; letter-spacing: -.045em; overflow-wrap: normal; word-break: normal; }
.home-hero-copy > p { max-width: 650px; margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.home-hero-copy .home-hero-note { margin-top: 15px; font-size: 13px; }
.home-report-preview { position: relative; min-height: 420px; display: block; padding: 30px 31px 28px; color: inherit; text-decoration: none; border: 1px solid var(--line-strong); border-radius: 4px 18px 18px 18px; background: var(--surface); box-shadow: 18px 20px 0 -12px var(--paper-deep), var(--shadow-md); cursor: pointer; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.home-report-preview:hover { transform: translateY(-3px); border-color: #a99a83; box-shadow: 18px 23px 0 -12px var(--paper-deep), 0 18px 38px rgba(41, 37, 31, .13); }
.home-report-preview:focus-visible { outline: 3px solid rgba(170, 71, 45, .24); outline-offset: 4px; }
.home-report-preview::before { content: ""; position: absolute; top: 0; left: 0; width: 72px; border-top: 3px solid var(--cinnabar); }
.home-report-preview header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.home-report-preview header span { color: var(--ink); font-family: "STSong", "Songti SC", serif; font-weight: 700; letter-spacing: .08em; }
.home-report-preview header small { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.home-preview-seal { width: 54px; height: 54px; display: grid; place-items: center; margin: 28px 0 24px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.home-preview-kicker { color: var(--cinnabar); font-size: 12px; font-weight: 750; letter-spacing: .13em; }
.home-report-preview h2 { margin: 12px 0 13px; font-size: 30px; line-height: 1.35; }
.home-report-preview > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.home-preview-chapters { display: flex; flex-wrap: wrap; align-items: center; margin-top: 23px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-preview-chapters span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.home-preview-chapters span + span::before { content: "·"; margin: 0 10px; color: var(--line-strong); }
.home-preview-action { display: inline-flex; align-items: center; margin-top: 20px; color: var(--pine); font-size: 13px; letter-spacing: .04em; }
.home-trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-trust-strip > div { padding: 17px 20px; border-left: 1px solid var(--line); }
.home-trust-strip > div:first-child { border-left: 0; }
.home-trust-strip strong, .home-trust-strip span { display: block; }
.home-trust-strip span { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.home-section-head { margin-bottom: 21px; }
.home-section-head h2 { margin: 0; font-size: clamp(27px, 3vw, 35px); }
.home-section-head p { max-width: 650px; margin: 9px 0 0; color: var(--muted); line-height: 1.7; }
.home-card-kicker { color: var(--cinnabar); font-size: 12px; font-weight: 750; letter-spacing: .1em; }
.home-reading-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-reading-steps li { min-width: 0; display: grid; grid-template-columns: 39px minmax(0, 1fr); gap: 14px; padding: 25px 24px; border-left: 1px solid var(--line); }
.home-reading-steps li:first-child { border-left: 0; }
.home-reading-steps li > span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--cinnabar); border: 1px solid var(--line-strong); border-radius: 50%; font: 700 16px/1 "STSong", "Songti SC", serif; }
.home-reading-steps strong { display: block; padding-top: 5px; font-size: 18px; }
.home-reading-steps p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.home-route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-route-grid > a { min-height: 210px; display: flex; flex-direction: column; padding: 24px 25px; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.home-route-grid > a:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.home-route-grid > a:focus-visible { outline: 3px solid rgba(170, 71, 45, .2); outline-offset: 3px; }
.home-route-grid h3 { margin: 18px 0 8px; font-size: 24px; }
.home-route-grid p { margin: 0; color: var(--muted); line-height: 1.7; }
.home-route-grid strong { margin-top: auto; padding-top: 22px; color: var(--pine); font-size: 13px; }

.wizard-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.wizard-card, .panel, .result-card, .settings-card, .consent-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.stepper { position: sticky; top: 98px; margin: 0; padding: 8px 0; list-style: none; counter-reset: step; }
.stepper li { position: relative; min-height: 55px; padding: 3px 0 18px 42px; color: var(--muted); font-size: 14px; counter-increment: step; }
.stepper li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--paper); font-size: 12px; }
.stepper li::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; border-left: 1px solid var(--line); }
.stepper li:last-child::after { display: none; }
.stepper li.is-active { color: var(--ink); font-weight: 700; }
.stepper li.is-active::before, .stepper li.is-complete::before { color: #fff; border-color: var(--pine); background: var(--pine); }
.wizard-head { padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.wizard-head h1, .wizard-head h2 { margin: 0; font-size: 30px; }
.wizard-head p { margin: 10px 0 0; color: var(--muted); line-height: 1.7; }
.form-section { margin: 0; padding: 0; border: 0; }
.form-section + .form-section { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section legend { width: 100%; margin-bottom: 17px; padding: 0; font: 700 21px/1.35 "STSong", "Songti SC", serif; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { min-width: 0; display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label, .field-label { font-weight: 700; font-size: 14px; }
.required { color: var(--cinnabar); }
.field input, .field select, .field textarea, .search-input { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.birth-date-field { min-width: 0; display: grid; gap: 9px; margin: 0; padding: 0; border: 0; }
.birth-date-field legend { margin-bottom: 1px; padding: 0; font-size: 14px; font-weight: 700; }
.birth-date-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, .82fr)); gap: 10px; }
.birth-date-row label { min-width: 0; display: grid; gap: 5px; }
.birth-date-row label > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.birth-date-row select { width: 100%; min-width: 0; min-height: 52px; padding: 10px 30px 10px 12px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; background-color: #fff; font-size: 16px; font-variant-numeric: tabular-nums; }
.birth-date-preview { min-height: 43px; display: flex; align-items: center; padding: 9px 12px; color: var(--pine-dark); border: 1px solid #c6d6ce; border-radius: 9px; background: var(--pine-soft); font-size: 14px; font-weight: 700; }
.birth-date-field > small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.region-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.coordinate-card { display: grid; gap: 7px; margin-top: 18px; padding: 18px 20px; border: 1px solid var(--pine); border-radius: 12px; background: var(--pine-soft); }
.coordinate-card.muted { border-color: var(--line); background: var(--surface-muted); }
.coordinate-card > span { color: var(--cinnabar); font-size: 12px; font-weight: 750; letter-spacing: .12em; }
.coordinate-card > strong { font: 700 21px/1.45 "STSong", "Songti SC", serif; }
.coordinate-card p, .coordinate-card small { margin: 0; color: #45554e; line-height: 1.6; }
.check-row { min-height: 44px; display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; line-height: 1.55; cursor: pointer; }
.check-row input { width: 19px; height: 19px; margin-top: 2px; flex: none; accent-color: var(--pine); }
.wizard-aside .trust-card { margin-top: 20px; }
.confirmation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; padding: 1px; border-radius: 12px; background: var(--line); }
.confirmation-list > div { padding: 14px 16px; background: var(--surface); }
.confirmation-list dt { color: var(--muted); font-size: 12px; }
.confirmation-list dd { margin: 5px 0 0; font-weight: 700; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--pine); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #fff9f7; }
.field-error { margin: 0; color: var(--danger); font-size: 13px; }
.error-summary { margin-bottom: 22px; padding: 16px 18px; border-left: 4px solid var(--danger); background: var(--cinnabar-soft); border-radius: 0 10px 10px 0; }
.error-summary strong { display: block; margin-bottom: 5px; }
.error-summary a { color: var(--danger); }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice-card { position: relative; display: block; min-height: 82px; padding: 15px 15px 15px 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.choice-card input { position: absolute; top: 18px; left: 16px; width: 18px; height: 18px; accent-color: var(--pine); }
.choice-card:has(input:checked) { border-color: var(--pine); background: var(--pine-soft); }
.choice-card strong, .choice-card small { display: block; }
.choice-card small { margin-top: 4px; color: var(--muted); line-height: 1.5; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.privacy-note, .info-note { margin-top: 18px; padding: 14px 16px; color: #3e514a; background: var(--pine-soft); border-radius: 10px; font-size: 13px; line-height: 1.65; }

.trace { margin: 8px 0 0; padding: 0; list-style: none; }
.trace-step { position: relative; display: grid; grid-template-columns: 155px 1fr; gap: 22px; padding: 0 0 24px 32px; }
.trace-step::before { content: ""; position: absolute; left: 4px; top: 7px; width: 10px; height: 10px; border: 3px solid var(--surface); border-radius: 50%; background: var(--pine); box-shadow: 0 0 0 1px var(--pine); }
.trace-step::after { content: ""; position: absolute; left: 9px; top: 21px; bottom: 0; border-left: 1px solid var(--line-strong); }
.trace-step:last-child::after { display: none; }
.trace-step > span { color: var(--cinnabar); font-size: 13px; font-weight: 700; }
.trace-step > p { margin: 0; line-height: 1.65; }
.trace-label { color: var(--muted); font-size: 13px; }
.trace-value { font-weight: 700; }
.boundary-warning, .uncertainty { padding: 18px; border: 1px solid #d5b58a; border-radius: 12px; background: var(--brass-soft); }

.result-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 24px; align-items: start; }
.result-layout.is-single { display: block; }
.result-layout.is-single .result-main { max-width: 1180px; margin-inline: auto; }
.result-main { min-width: 0; max-width: 100%; display: grid; gap: 20px; }
.result-sidebar { position: sticky; top: 96px; display: grid; gap: 16px; }
.result-header { padding: 28px; color: #fff; background: var(--pine); border-radius: var(--radius-lg); }
.result-header .eyebrow, .result-header .meta { color: #dbe8e2; }
.result-header h1 { max-width: 750px; margin: 8px 0 14px; font-size: clamp(29px, 4vw, 44px); line-height: 1.25; }
.result-header p { max-width: 760px; margin: 0; color: #edf4f0; line-height: 1.8; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.result-actions .button { color: var(--ink); background: var(--surface); border-color: var(--surface); }
.report-toolbar { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; margin: -7px 0 20px; padding: 9px 10px 9px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,253,248,.72); }
.report-toolbar-status { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.report-toolbar-status span { flex: none; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.report-toolbar-status strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.report-toolbar-actions { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 3px; }
.report-tool { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 7px 11px; color: var(--pine); border: 0; border-radius: 8px; background: transparent; text-decoration: none; white-space: nowrap; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.4; cursor: pointer; appearance: none; transition: color .18s ease, background .18s ease; }
.report-tool:hover { color: var(--pine-dark); background: var(--pine-soft); }
.report-tool:focus-visible { outline: 2px solid var(--cinnabar); outline-offset: 1px; }
.result-overview { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 18px; margin: 20px 0; }
.calculation-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.calculation-card h2, .result-caution h2 { margin: 0 0 17px; font-size: 24px; }
.fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.fact-list > div { min-width: 0; padding: 12px 14px; background: var(--surface); }
.fact-list dt { color: var(--muted); font-size: 12px; }
.fact-list dd { margin: 5px 0 0; font-weight: 650; line-height: 1.55; }
.result-caution { margin: 0; }
.view-toggle { width: min(100%, 620px); min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-muted); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.view-toggle button { min-width: 0; min-height: 64px; display: flex; align-items: center; justify-content: flex-start; padding: 9px 14px; border: 1px solid transparent; border-radius: 10px; color: #56605a; background: transparent; text-align: left; line-height: 1.25; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.view-toggle button:hover:not([aria-pressed="true"]):not(.is-active) { color: var(--ink); border-color: var(--line); background: rgba(255,253,248,.72); }
.view-toggle button.is-active, .view-toggle button[aria-pressed="true"] { color: #fff; border-color: var(--pine); background: var(--pine); box-shadow: 0 4px 12px rgba(37,73,64,.18); }
.view-toggle button:focus-visible { position: relative; z-index: 1; outline-offset: 2px; }
.view-toggle-copy, .view-toggle button.view-toggle-copy, .view-toggle button .view-toggle-copy { min-width: 0; display: grid; gap: 3px; }
.view-toggle-copy > strong, .view-toggle-copy > span:first-child, .view-toggle button.view-toggle-copy > strong, .view-toggle button.view-toggle-copy > span:first-child { color: inherit; font-size: 15px; font-weight: 750; letter-spacing: .02em; }
.view-toggle-copy > small, .view-toggle button.view-toggle-copy > small { display: block; color: #69726c; font-size: 11px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.view-toggle button.is-active .view-toggle-copy > small, .view-toggle button[aria-pressed="true"] .view-toggle-copy > small, .view-toggle button.is-active.view-toggle-copy > small, .view-toggle button[aria-pressed="true"].view-toggle-copy > small { color: #e4eee9; }
.view-mode-note { width: min(100%, 720px); min-width: 0; margin: 9px 0 22px; padding-left: 12px; color: #58635d; border-left: 3px solid var(--line-strong); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.result-page.is-beginner .professional-only, .result-page.is-professional .beginner-only { display: none !important; }
.result-page.is-beginner .result-main { gap: 24px; }
.result-page.is-beginner .view-mode-note { border-left-color: var(--pine); }
.result-page.is-professional .view-mode-note { color: #5d533f; border-left-color: var(--brass); }
.result-page.is-professional .result-header { border: 1px solid #41675e; border-radius: 10px; background: #243d37; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.result-page.is-professional .result-main { gap: 14px; }
.result-page.is-professional .result-card { border-color: var(--line-strong); border-radius: 8px; box-shadow: none; }
.result-page.is-professional .result-card > .section-heading { margin-bottom: 18px; padding-bottom: 13px; border-bottom: 2px solid var(--line-strong); }
.result-page.is-professional .result-card > .section-heading h2 { font-size: clamp(22px, 2.5vw, 28px); }
.result-page.is-professional .report-toc { border-left-color: var(--pine); border-radius: 4px; box-shadow: none; }
.result-page.is-professional .bazi-board-wrap { border-width: 2px; border-radius: 6px; box-shadow: none; }
.result-page.is-professional .bazi-board thead th { color: #fff; border-color: #54776f; background: var(--pine-dark); }
.result-page.is-professional .bazi-board thead th small { color: #f1d9ad; }
.result-page.is-professional .bazi-board thead th:first-child { background: #1f3f37; }

.beginner-summary { min-width: 0; max-width: 100%; display: grid; gap: 18px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line-strong); border-top: 4px solid var(--cinnabar); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.beginner-summary > :first-child { margin-top: 0; }
.beginner-summary > :last-child { margin-bottom: 0; }
.beginner-summary h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.35; }
.beginner-summary p { max-width: 760px; line-height: 1.8; }
.summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.summary-grid > article { position: relative; padding-top: 20px; border-top: 3px solid var(--pine); }
.summary-grid > article:nth-child(2) { border-top-color: var(--brass); }
.summary-grid > article:nth-child(3) { border-top-color: var(--cinnabar); }
.summary-grid > article > span:first-child { display: inline-flex; margin-bottom: 7px; color: var(--cinnabar); font-size: 11px; font-weight: 750; letter-spacing: .1em; }
.summary-grid > article h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.45; }
.finding-section { min-width: 0; margin-top: 4px; padding-top: 23px; border-top: 1px solid var(--line); }
.subsection-heading { max-width: 720px; margin-bottom: 17px; }
.subsection-heading > span { display: block; margin-bottom: 6px; color: var(--cinnabar); font-size: 11px; font-weight: 750; letter-spacing: .13em; }
.subsection-heading h3 { margin: 0 0 7px; font-size: clamp(21px, 2.5vw, 27px); line-height: 1.45; }
.subsection-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.finding-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.finding-card { position: relative; min-width: 0; padding: 21px 20px 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: linear-gradient(145deg, var(--surface) 0%, #fcf8ef 100%); }
.finding-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--brass); opacity: .7; }
.finding-card > span:first-child { display: block; margin-bottom: 8px; color: var(--brass); font: 700 12px/1 "STSong", "Songti SC", serif; letter-spacing: .12em; }
.finding-card h4 { margin: 0 0 10px; font: 700 20px/1.45 "STSong", "Songti SC", serif; }
.finding-card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.finding-card .finding-conclusion { color: #30473f; font-size: 15px; font-weight: 700; }
.finding-card details { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.finding-card summary { color: var(--pine); font-size: 13px; font-weight: 700; cursor: pointer; }
.finding-card ul { margin: 10px 0 0; padding-left: 19px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.structure-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.structure-tags span { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; color: #5d4725; border: 1px solid #d8c39d; border-radius: 999px; background: var(--brass-soft); font-size: 12px; font-weight: 700; }
.answer-direct { min-width: 0; max-width: 100%; padding: 19px 21px; color: #263d36; border-left: 5px solid var(--pine); border-radius: 0 12px 12px 0; background: var(--pine-soft); overflow-wrap: anywhere; }
.answer-direct > strong:first-child, .answer-direct > h3:first-child { display: block; margin: 0 0 8px; color: var(--pine-dark); font: 750 20px/1.45 "STSong", "Songti SC", serif; }
.answer-direct p { margin: 0; color: #344b43; font-size: 17px; line-height: 1.85; }
.answer-grid { min-width: 0; max-width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.answer-grid > * { min-width: 0; max-width: 100%; padding: 17px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow-wrap: anywhere; }
.answer-grid > * > strong:first-child, .answer-grid > * > h3:first-child { display: block; margin: 0 0 7px; color: var(--cinnabar); font-size: 15px; line-height: 1.5; }
.answer-grid > * p { margin: 0; color: #505a53; font-size: 14px; line-height: 1.75; }
.answer-list { min-width: 0; max-width: 100%; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.answer-list > li { position: relative; min-width: 0; padding: 11px 13px 11px 35px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); line-height: 1.7; overflow-wrap: anywhere; }
.answer-list > li::before { content: ""; position: absolute; top: 18px; left: 15px; width: 8px; height: 8px; border: 2px solid var(--surface); border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 1px var(--brass); }
.optional-details { min-width: 0; max-width: 100%; margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.optional-details > summary { min-width: 0; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; color: var(--pine); background: var(--surface-muted); font-weight: 750; line-height: 1.55; list-style: none; cursor: pointer; overflow-wrap: anywhere; }
.optional-details > summary::-webkit-details-marker { display: none; }
.optional-details > summary::after { content: "＋"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; color: var(--cinnabar); border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); font-size: 17px; line-height: 1; }
.optional-details:not([open]) > :not(summary) { display: none; }
.optional-details[open] > summary { border-bottom: 1px solid var(--line); }
.optional-details[open] > summary::after { content: "－"; }
.optional-details > summary:focus-visible { outline-offset: -4px; }
.optional-details > summary ~ * { max-width: calc(100% - 36px); margin-right: 18px; margin-left: 18px; }
.optional-details > summary + * { margin-top: 16px; }
.optional-details > :last-child { margin-bottom: 18px; }
.result-page.is-professional .optional-details { border-color: var(--line-strong); border-radius: 6px; }
.result-page.is-professional .optional-details > summary { color: var(--ink); background: var(--paper-deep); }
.result-section { scroll-margin-top: 158px; }
.report-toc { position: sticky; top: 82px; z-index: 68; min-width: 0; max-width: 100%; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px 12px; margin: 20px 0; padding: 9px 14px; border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: 0 10px 10px 0; background: rgba(255,253,248,.96); box-shadow: 0 8px 24px rgba(42,38,30,.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.report-toc > strong, .report-toc > span { flex: none; color: var(--cinnabar); font: 700 14px/1.5 "STSong", "Songti SC", serif; letter-spacing: .08em; }
.report-toc ul, .report-toc ol { min-width: 0; display: flex; flex: 1 1 auto; flex-wrap: nowrap; gap: 4px; margin: 0; padding: 0 2px 2px; overflow-x: auto; overflow-y: hidden; list-style: none; scrollbar-width: thin; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.report-toc li { min-width: 0; flex: 0 0 auto; }
.report-toc :is(a, button) { min-height: 36px; max-width: 100%; display: inline-flex; align-items: center; padding: 5px 10px; color: var(--pine); border: 1px solid transparent; border-radius: 7px; background: transparent; text-decoration: none; white-space: nowrap; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.4; cursor: pointer; appearance: none; }
.report-toc :is(a, button):hover { color: var(--pine-dark); border-color: var(--line); background: var(--surface-muted); }
.report-toc :is(a, button)[aria-current="location"], .report-toc :is(a, button)[aria-current="true"] { color: var(--pine-dark); border-color: #b5c8bd; background: var(--pine-soft); box-shadow: inset 0 -2px 0 var(--pine); }
.report-toc :is(a, button):focus-visible { outline-color: var(--cinnabar); outline-offset: 1px; background: var(--surface); }
.result-card { min-width: 0; max-width: 100%; overflow: hidden; }
.result-card h2, .result-card h3 { margin: 0 0 18px; }
.analysis-overview { margin: 0; padding: 18px 20px; color: #344b43; border-left: 4px solid var(--pine); border-radius: 0 12px 12px 0; background: var(--pine-soft); font-size: 17px; line-height: 1.85; }
.analysis-core { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.analysis-core > article, .core-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-top: 3px solid var(--pine); border-radius: var(--radius-sm); background: var(--surface); }
.analysis-core > article > span, .core-card > span { display: block; color: var(--cinnabar); font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.analysis-core > article h3, .core-card h3 { margin: 8px 0; font-size: 21px; line-height: 1.35; }
.analysis-core > article p, .core-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.reading-note { min-width: 0; margin-top: 20px; padding: 16px 18px; color: #5b4727; border: 1px solid #d8bc8e; border-left: 4px solid var(--brass); border-radius: 0 12px 12px 0; background: var(--brass-soft); }
.reading-note > strong { display: block; margin-bottom: 6px; color: #6d4e1f; font-family: "STSong", "Songti SC", serif; font-size: 17px; }
.reading-note p { margin: 0; line-height: 1.75; }
.interaction-block { min-width: 0; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.interaction-block > h3 { margin: 0 0 14px; font-size: 21px; }
.interaction-list { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.interaction-list > article { min-width: 0; padding: 17px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-muted); }
.interaction-list > article > span { display: inline-flex; min-height: 25px; align-items: center; margin-bottom: 9px; padding: 3px 8px; color: var(--cinnabar); border: 1px solid #d9afa3; border-radius: 999px; background: var(--cinnabar-soft); font-size: 12px; font-weight: 750; }
.interaction-list > article > strong { display: block; font-family: "STSong", "Songti SC", serif; font-size: 18px; line-height: 1.45; }
.interaction-list > article p { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.bazi-board-wrap { width: 100%; min-width: 0; max-width: 100%; margin-top: 20px; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); overscroll-behavior-x: contain; scrollbar-color: var(--line-strong) var(--surface-muted); scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.bazi-board-wrap:focus-visible { outline: 3px solid var(--cinnabar); outline-offset: 3px; }
.bazi-board { width: 100%; min-width: 680px; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: var(--surface); font-size: 14px; }
.bazi-board th, .bazi-board td { min-width: 0; padding: 11px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; overflow-wrap: anywhere; }
.bazi-board tr > :last-child { border-right: 0; }
.bazi-board tbody tr:last-child > * { border-bottom: 0; }
.bazi-board thead th { color: #4e554f; background: var(--surface-muted); font-size: 13px; font-weight: 750; }
.bazi-board thead th small { display: block; margin-top: 4px; color: var(--cinnabar); font-size: 10px; line-height: 1.35; }
.bazi-board thead th:first-child, .bazi-board tbody th { position: sticky; left: 0; width: 88px; z-index: 2; background: var(--paper-deep); box-shadow: 1px 0 0 var(--line-strong); }
.bazi-board thead th:first-child { z-index: 4; }
.bazi-board tbody th { color: #4e554f; font-size: 12px; letter-spacing: .04em; }
.bazi-board tbody th > small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: 0; line-height: 1.3; }
.bazi-board td > small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.bazi-board .major-row td { padding-block: 14px; }
.bazi-board .day-column { background: var(--cinnabar-soft); box-shadow: inset 1px 0 0 #d9afa3, inset -1px 0 0 #d9afa3; }
.bazi-glyph { --element-color: var(--ink); --element-bg: var(--surface-muted); --element-line: var(--line-strong); width: 42px; height: 42px; display: inline-grid; place-items: center; color: var(--element-color); border: 1px solid var(--element-line); border-radius: 11px 11px 11px 4px; background: var(--element-bg); font: 700 25px/1 "STSong", "Songti SC", serif; }
.stacked-values { min-width: 0; display: grid; justify-items: center; gap: 6px; }
.stacked-values > span { min-width: 0; display: inline-flex; align-items: baseline; justify-content: center; gap: 4px; line-height: 1.35; }
.stacked-values b { color: var(--element-color, var(--ink)); font-family: "STSong", "Songti SC", serif; font-size: 16px; }
.stacked-values small { color: var(--muted); font-size: 10px; }
.stacked-values.text-values > span { color: #4e554f; font-size: 12px; }
.element-wood, .bazi-board .wood { --element-color: #245c49; --element-bg: #e4efe8; --element-line: #9ebdaa; color: var(--element-color); }
.element-fire, .bazi-board .fire { --element-color: #8d3528; --element-bg: #f5e3de; --element-line: #d5a79d; color: var(--element-color); }
.element-earth, .bazi-board .earth { --element-color: #73571d; --element-bg: #f3ead1; --element-line: #d5bd80; color: var(--element-color); }
.element-metal, .bazi-board .metal { --element-color: #4f5b5b; --element-bg: #e8ecea; --element-line: #aeb8b4; color: var(--element-color); }
.element-water, .bazi-board .water { --element-color: #2e5669; --element-bg: #e3edf1; --element-line: #a3bdc9; color: var(--element-color); }
.bazi-glyph.element-wood, .bazi-glyph.element-fire, .bazi-glyph.element-earth, .bazi-glyph.element-metal, .bazi-glyph.element-water, .bazi-glyph.wood, .bazi-glyph.fire, .bazi-glyph.earth, .bazi-glyph.metal, .bazi-glyph.water { color: var(--element-color); border-color: var(--element-line); background: var(--element-bg); }
.bazi-calculated-meaning { min-width: 0; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.bazi-calculated-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.bazi-calculated-heading h3 { margin: 7px 0 8px; font-size: 28px; }
.bazi-calculated-heading p { max-width: 880px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.bazi-calculated-heading > a { flex: 0 0 auto; padding-bottom: 3px; color: var(--pine-dark); border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 800; text-decoration: none; }
.bazi-tier-note { flex: 0 0 auto; padding: 7px 10px; color: var(--pine-dark); border: 1px solid var(--line); border-radius: 999px; background: var(--pine-soft); font-size: 11px; font-weight: 800; white-space: nowrap; }
.bazi-pillar-meaning-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.bazi-pillar-meaning-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-top: 3px solid var(--brass); border-radius: 12px; background: #fffefa; }
.bazi-pillar-meaning-card > header { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bazi-pillar-meaning-card > header div { min-width: 0; }
.bazi-pillar-meaning-card > header span { display: block; color: var(--cinnabar); font-size: 12px; font-weight: 850; letter-spacing: .06em; }
.bazi-pillar-meaning-card > header small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.bazi-pillar-meaning-card > header > strong { flex: 0 0 auto; color: var(--ink); font: 800 31px/1 "STSong", "Songti SC", serif; }
.bazi-symbol-meaning-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.bazi-symbol-meaning { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-muted); }
.bazi-symbol-meaning > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.bazi-symbol-meaning h4 { margin: 7px 0 6px; font-size: 16px; line-height: 1.4; }
.bazi-symbol-meaning h4 b { margin-right: 2px; font: 800 23px/1 "STSong", "Songti SC", serif; }
.bazi-symbol-meaning > p { min-height: 66px; margin: 0; color: #4f5952; font-size: 12px; line-height: 1.7; }
.bazi-symbol-meaning > div { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.bazi-symbol-meaning > div strong, .bazi-symbol-meaning > div small { display: block; }
.bazi-symbol-meaning > div strong { color: var(--pine-dark); font-size: 12px; }
.bazi-symbol-meaning > div small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.bazi-specific-reading { display: grid; gap: 0; margin: 14px 0 0; border-top: 1px solid var(--line); }
.bazi-specific-reading > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.bazi-specific-reading dt { color: var(--cinnabar); font-size: 12px; font-weight: 850; }
.bazi-specific-reading dd { min-width: 0; margin: 0; color: #46534d; font-size: 12px; line-height: 1.7; }
.bazi-specific-reading dd strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 13px; }
.bazi-specific-reading dd span { display: block; }
.bazi-specific-reading > .bazi-pillar-check { margin-top: 8px; padding: 12px; border: 0; border-radius: 8px; background: var(--pine-soft); }
.bazi-specific-reading > .bazi-pillar-check dt { color: var(--pine-dark); }
.bazi-card-boundary { margin: 14px 0 0; padding: 10px 13px; color: var(--muted); border-left: 3px solid var(--brass); border-radius: 0 7px 7px 0; background: var(--surface-muted); font-size: 11px; line-height: 1.65; }
.bazi-card-boundary strong { color: var(--ink); }
.bazi-pillar-meaning-card.is-unknown { border-top-color: var(--line-strong); }
.bazi-reading-tier { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-muted); }
.bazi-reading-tier > div { min-width: 0; padding: 14px 16px; }
.bazi-reading-tier > div + div { border-left: 1px solid var(--line); background: var(--brass-soft); }
.bazi-reading-tier strong, .bazi-reading-tier span { display: block; }
.bazi-reading-tier strong { color: var(--pine-dark); font-size: 12px; }
.bazi-reading-tier span { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.bazi-field-guide { margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-left: 4px solid var(--pine); border-radius: 13px; background: #fffdfa; }
.bazi-field-guide > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; cursor: pointer; list-style: none; }
.bazi-field-guide > summary::-webkit-details-marker { display: none; }
.bazi-field-guide > summary > div { min-width: 0; }
.bazi-field-guide > summary strong, .bazi-field-guide > summary small { display: block; }
.bazi-field-guide > summary strong { margin-top: 4px; color: var(--ink); font-size: 16px; }
.bazi-field-guide > summary small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.bazi-guide-toggle { flex: 0 0 auto; padding: 5px 10px; color: var(--pine-dark); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 11px; font-weight: 800; }
.bazi-field-guide[open] > summary { border-bottom: 1px solid var(--line); }
.bazi-field-guide[open] .bazi-guide-toggle { color: var(--cinnabar); }
.bazi-field-guide[open] .bazi-guide-toggle::before { content: "收起"; font-size: 11px; }
.bazi-field-guide[open] .bazi-guide-toggle { font-size: 0; }
.bazi-field-guide-body { padding: 18px; }
.bazi-field-guide-body > p { max-width: 860px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.bazi-term-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.bazi-term-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted); }
.bazi-term-card > span { display: inline-block; padding: 4px 8px; color: var(--cinnabar); border-radius: 999px; background: var(--cinnabar-soft); font-size: 11px; font-weight: 850; letter-spacing: .06em; }
.bazi-term-card h4 { margin: 10px 0 7px; font-size: 16px; line-height: 1.45; }
.bazi-term-card p { margin: 0; color: #505852; font-size: 13px; line-height: 1.72; }
.bazi-pillar-details { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.bazi-pillar-details > summary { padding: 14px 16px; color: var(--pine-dark); font-weight: 800; cursor: pointer; }
.bazi-pillar-details[open] > summary { border-bottom: 1px solid var(--line); }
.bazi-pillar-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.bazi-pillar-guide { min-width: 0; padding: 16px; border: 1px solid var(--line); border-top: 3px solid var(--brass); border-radius: 10px; background: #fffefa; }
.bazi-pillar-guide header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bazi-pillar-guide header span { color: var(--cinnabar); font-size: 12px; font-weight: 800; }
.bazi-pillar-guide header strong { font: 800 22px/1.2 "STSong", "Songti SC", serif; }
.bazi-pillar-guide > p { margin: 10px 0 13px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.bazi-pillar-guide dl { display: grid; gap: 8px; margin: 0; }
.bazi-pillar-guide dl > div { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; align-items: start; padding-top: 8px; border-top: 1px solid var(--line); }
.bazi-pillar-guide dt { color: var(--muted); font-size: 12px; font-weight: 750; }
.bazi-pillar-guide dd { min-width: 0; margin: 0; }
.bazi-pillar-guide dd b { display: block; color: var(--ink); font-size: 14px; }
.bazi-pillar-guide dd small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.bazi-pillar-guide.is-unknown { border-top-color: var(--line-strong); }
.ten-god-grid { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.ten-god-grid > article, .ten-god-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.ten-god-grid > article.prominent, .ten-god-card.prominent { border-top: 3px solid var(--cinnabar); background: #fffaf6; }
.ten-god-grid > article > div:first-child, .ten-god-card > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ten-god-grid > article > div:first-child span, .ten-god-card > div:first-child span { color: var(--muted); font-size: 12px; }
.ten-god-grid > article > div:first-child strong, .ten-god-card > div:first-child strong { min-width: 34px; min-height: 34px; display: inline-grid; place-items: center; padding: 4px; color: #fff; border-radius: 50%; background: var(--pine); font: 700 15px/1 "STSong", "Songti SC", serif; }
.ten-god-grid > article h3, .ten-god-card h3 { margin: 12px 0 8px; font-size: 21px; }
.ten-god-grid > article p, .ten-god-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.pillar-card.current { border-color: var(--cinnabar); background: var(--cinnabar-soft); }
.pillar-caption { margin-top: 8px; color: var(--muted); font-size: 12px; }
.element-bars { display: grid; gap: 14px; }
.element-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) minmax(118px, auto); gap: 12px; align-items: center; }
.element-row strong { font-family: "STSong", "Songti SC", serif; }
.element-track { width: 100%; height: 11px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-muted); appearance: none; }
.element-track::-webkit-progress-bar { background: var(--surface-muted); }
.element-track::-webkit-progress-value { background: var(--pine); }
.element-track::-moz-progress-bar { background: var(--pine); }
.element-row:nth-child(2) .element-track::-webkit-progress-value { background: var(--cinnabar); }
.element-row:nth-child(2) .element-track::-moz-progress-bar { background: var(--cinnabar); }
.element-row:nth-child(3) .element-track::-webkit-progress-value { background: var(--brass); }
.element-row:nth-child(3) .element-track::-moz-progress-bar { background: var(--brass); }
.element-row:nth-child(4) .element-track::-webkit-progress-value { background: #7c6954; }
.element-row:nth-child(4) .element-track::-moz-progress-bar { background: #7c6954; }
.element-row:nth-child(5) .element-track::-webkit-progress-value { background: #526d78; }
.element-row:nth-child(5) .element-track::-moz-progress-bar { background: #526d78; }
.theme-grid, .report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.theme-card, .report-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.theme-card h3, .report-card h3 { margin: 0 0 10px; font-size: 21px; }
.theme-card p, .report-card p { margin: 0; color: var(--muted); line-height: 1.75; }
.theme-card.locked, .timeline-item.locked { border-style: dashed; background: var(--surface-muted); }
.theme-card footer { margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.structure-lead { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.structure-lead article { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-muted); }
.structure-lead span { color: var(--muted); font-size: 12px; }
.structure-lead strong { display: block; margin: 7px 0; font: 700 22px/1.35 "STSong", "Songti SC", serif; }
.structure-lead p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-list span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 13px; }
.tag-list strong { color: var(--cinnabar); }
.detail-disclosure { min-width: 0; max-width: 100%; margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.detail-disclosure > summary { min-height: 48px; padding: 13px 16px; color: var(--pine); font-weight: 750; cursor: pointer; }
.detail-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow: auto; }
.data-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.data-table thead th { color: var(--muted); background: var(--surface-muted); font-size: 12px; }
.data-table tr.is-current { background: var(--cinnabar-soft); }
.current-mark { margin-left: 5px; padding: 2px 6px; color: #fff; border-radius: 6px; background: var(--cinnabar); font-size: 11px; }
.theme-detail-list { display: grid; gap: 14px; }
.theme-detail { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.theme-detail.locked { border-style: dashed; background: var(--surface-muted); }
.theme-number { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--pine); font: 700 16px/1 "STSong", "Songti SC", serif; }
.theme-detail h3 { margin: 2px 0 10px; }
.theme-detail p, .theme-detail li { color: #505852; line-height: 1.75; }
.theme-detail h4 { margin: 16px 0 6px; }
.theme-detail ul { margin: 0; padding-left: 20px; }
.theme-kicker { display: block; margin: 1px 0 7px; color: var(--cinnabar); font-size: 11px; font-weight: 750; letter-spacing: .13em; }
.theme-detail .theme-summary { margin: -2px 0 0; padding-left: 12px; color: #46534d; border-left: 3px solid var(--brass); font-size: 15px; }
.theme-scenes { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 17px; }
.theme-scenes > section { min-width: 0; padding: 15px 16px; border: 1px solid #bdd0c5; border-radius: 10px; background: var(--pine-soft); }
.theme-scenes > section.watch { border-color: #dfc0b7; background: var(--cinnabar-soft); }
.theme-scenes h4 { margin: 0 0 8px; color: var(--pine-dark); font-size: 14px; }
.theme-scenes .watch h4 { color: var(--danger); }
.theme-scenes ul { padding-left: 18px; }
.theme-scenes li { color: #3f5149; font-size: 14px; line-height: 1.65; }
.theme-scenes .watch li { color: #68463f; }
.theme-detail .answer-list { display: block; margin-top: 17px; }
.theme-detail .answer-list > h4 { margin: 0 0 9px; font-size: 15px; }
.theme-detail .answer-list > ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: action-step; }
.theme-detail .answer-list > ol > li { position: relative; padding: 10px 12px 10px 38px; border: 1px solid var(--line); border-radius: 9px; background: #fffefa; counter-increment: action-step; }
.theme-detail .answer-list > ol > li::before { content: counter(action-step); position: absolute; top: 10px; left: 11px; width: 20px; height: 20px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--pine); font-size: 11px; font-weight: 700; }
.theme-detail .optional-details { margin-top: 17px; }
.theme-basis { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
.theme-basis.is-single { grid-template-columns: minmax(0, 1fr); }
.theme-basis-item { min-width: 0; padding: 16px 17px; border: 1px solid var(--line); border-radius: 10px; background: #fffefa; }
.theme-basis-item.is-reason { border-top: 3px solid var(--pine); background: var(--pine-soft); }
.theme-basis-item.is-boundary { border-top: 3px solid var(--brass); background: var(--brass-soft); }
.theme-basis dt { margin: 0 0 9px; color: var(--ink); font-weight: 750; line-height: 1.45; }
.theme-basis dt small { display: block; margin-bottom: 4px; color: var(--cinnabar); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.theme-basis dd { margin: 0; color: #505852; font-size: 14px; line-height: 1.75; }
.theme-raw-evidence { margin-top: 12px; border-top: 1px solid var(--line); }
.theme-raw-evidence > summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; }
.theme-raw-evidence > summary::-webkit-details-marker { display: none; }
.theme-raw-evidence > summary::after { content: "展开"; color: var(--pine); font-size: 11px; }
.theme-raw-evidence[open] > summary::after { content: "收起"; }
.theme-raw-evidence ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.theme-raw-evidence li { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-muted); }
.theme-raw-evidence li span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.theme-raw-evidence li strong { display: block; color: var(--ink); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.theme-raw-evidence > p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.method-note { margin: 18px 0 0; padding: 13px 15px; color: var(--muted); border-left: 3px solid var(--brass); background: var(--brass-soft); font-size: 13px; line-height: 1.65; }
.evidence { margin-top: 15px; border-top: 1px solid var(--line); }
.evidence details, details.evidence { padding: 14px 0; border-bottom: 1px solid var(--line); }
.evidence summary, details.evidence summary { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; cursor: pointer; }
.evidence summary::after, .accordion-item summary::after { content: "+"; color: var(--cinnabar); font-size: 22px; }
.evidence details[open] summary::after, details.evidence[open] summary::after, .accordion-item[open] summary::after { content: "−"; }
.evidence-body { padding: 4px 0 8px; color: var(--muted); line-height: 1.75; }
.uncertainty h3 { margin-top: 0; font-size: 18px; }
.uncertainty p, .uncertainty li { color: #5e4a2c; line-height: 1.7; }
.sticky-actions { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.sticky-actions .button { width: 100%; }
.sticky-actions .button + .button { margin-top: 9px; }

.timeline { width: 100%; min-width: 0; max-width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 22px 0 8px; overflow: visible; }
.timeline-item { position: relative; min-width: 0; max-width: 100%; min-height: 172px; display: flex; flex-direction: column; padding: 25px 18px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow-wrap: anywhere; }
.timeline-item::before { content: ""; position: absolute; top: 0; left: 18px; width: 28px; border-top: 4px solid var(--line-strong); }
.timeline-item.is-current { border-color: var(--cinnabar); background: var(--cinnabar-soft); }
.timeline-item.is-current::before { border-color: var(--cinnabar); }
.timeline-item time { color: var(--muted); font-size: 12px; }
.timeline-item h3 { margin: 8px 0; font-size: 19px; line-height: 1.45; }
.timeline-item p { margin: 0; color: var(--muted); line-height: 1.65; }
.timeline-item small { display: block; margin-top: auto; padding-top: 13px; color: var(--muted); line-height: 1.55; }
.timeline-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.detailed-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 15px; }
.detailed-month { min-height: 0; padding: 24px 20px 20px; border-radius: 14px; box-shadow: 0 7px 20px rgba(42,38,30,.045); }
.detailed-month::before { width: 42px; border-top-color: var(--brass); }
.month-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; }
.month-meta time { color: #555f59; font-size: 12px; font-weight: 700; }
.month-meta span { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; color: #6c4d1f; border-radius: 999px; background: var(--brass-soft); font-size: 11px; font-weight: 700; }
.detailed-month > h3 { margin: 12px 0 7px; font-size: 22px; }
.detailed-month .month-focus { min-height: 3.3em; color: #4d5852; font-size: 14px; line-height: 1.7; }
.month-examples { margin-top: 13px; padding: 13px 14px; border: 1px solid #e2d6bf; border-radius: 10px; background: #fbf7ef; }
.month-examples strong { display: block; margin-bottom: 7px; color: #795622; font-size: 12px; }
.month-examples ul { display: grid; gap: 5px; margin: 0; padding-left: 18px; }
.month-examples li { color: #514b40; font-size: 13px; line-height: 1.65; }
.month-examples small { display: block; margin-top: 8px; color: #81796d; font-size: 10px; line-height: 1.5; }
.month-guidance { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.month-guidance > section { min-width: 0; padding: 14px 14px 13px; border: 1px solid #bfd0c7; border-radius: 10px; background: var(--pine-soft); }
.month-guidance > section.watch { border-color: #dec0b8; background: var(--cinnabar-soft); }
.month-guidance h4 { margin: 0 0 8px; color: var(--pine-dark); font-size: 13px; }
.month-guidance .watch h4 { color: var(--danger); }
.month-guidance ul { margin: 0; padding-left: 17px; }
.month-guidance li { color: #3d5048; font-size: 13px; line-height: 1.65; }
.month-guidance .watch li { color: #68463f; }
.month-question { margin: 13px 0 0; padding: 12px 14px; border-left: 3px solid var(--brass); border-radius: 0 9px 9px 0; background: #f8f2e7; }
.month-question span { display: block; margin-bottom: 4px; color: #795622; font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.month-question p { color: #514b40; font-size: 13px; line-height: 1.65; }
.month-basis { margin-top: 13px; }
.month-basis > summary { min-height: 46px; padding: 10px 13px; font-size: 12px; }
.month-basis .optional-details-body { color: var(--muted); font-size: 13px; line-height: 1.7; }
.month-basis .optional-details-body > p { margin-top: 0; }
.month-basis .optional-details-body ul { margin: 9px 0 13px; padding-left: 19px; }
.month-lock { display: grid; gap: 11px; margin-top: 17px; padding: 16px; border: 1px dashed var(--line-strong); border-radius: 11px; background: rgba(255,253,248,.7); }
.month-lock > span { color: var(--cinnabar); font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.month-lock p { font-size: 13px; line-height: 1.65; }
.month-lock .button { width: max-content; max-width: 100%; min-height: 40px; font-size: 13px; }

.relationship-flow { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px; margin-bottom: 26px; align-items: start; }
.relationship-flow > * { min-width: 0; }
.consent-card { box-shadow: none; }
.consent-card h2 { margin-top: 0; }
.consent-list { padding-left: 20px; color: var(--muted); line-height: 1.8; }
.invite-card { padding: 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface); }
.invite-code { margin: 18px auto; padding: 14px; max-width: 520px; border: 1px solid var(--line); background: var(--surface-muted); font-family: ui-monospace, monospace; word-break: break-all; }

.records-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.profile-card { display: flex; flex-direction: column; min-height: 225px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.profile-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.profile-card-head { display: flex; justify-content: space-between; gap: 12px; }
.profile-card h2, .profile-card h3 { margin: 0; font-size: 23px; }
.profile-card p { color: var(--muted); line-height: 1.65; }
.profile-card > .button, .profile-card > form { margin-top: 10px; }
.profile-card > small { display: block; margin-top: 8px; color: var(--muted); line-height: 1.55; }
.profile-card-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.record-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 22px; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.pricing-card { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.pricing-card.featured { border: 2px solid var(--pine); box-shadow: var(--shadow-md); }
.pricing-card h2, .pricing-card h3 { margin: 0; font-size: 23px; }
.price { margin: 20px 0; font: 700 36px/1 "STSong", "Songti SC", serif; }
.price small { color: var(--muted); font: 400 13px/1.4 system-ui, sans-serif; }
.feature-list { margin: 0 0 24px; padding-left: 20px; color: var(--muted); line-height: 1.85; }
.pricing-card .button { width: 100%; margin-top: auto; }
.renewal-note { margin-top: 12px; color: var(--muted); font-size: 12px; text-align: center; }
.comparison-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.comparison-table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--surface); }
.comparison-table th, .comparison-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.comparison-table th { color: var(--muted); background: var(--surface-muted); font-size: 13px; }
.comparison-table th:not(:first-child), .comparison-table td:not(:first-child) { text-align: center; }

.knowledge-page .page-header, .page:has(> .knowledge-list) .page-header { max-width: 860px; margin-bottom: 25px; }
.knowledge-page .page-header h1, .page:has(> .knowledge-list) .page-header h1 { max-width: 18em; font-size: clamp(31px, 3.8vw, 44px); line-height: 1.2; }
.knowledge-page .page-header p, .page:has(> .knowledge-list) .page-header p { max-width: 680px; margin-top: 12px; }
.knowledge-layout { min-width: 0; max-width: 100%; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
.knowledge-nav { position: sticky; top: 96px; align-self: start; display: grid; gap: 4px; }
.knowledge-nav a { min-height: 42px; display: flex; align-items: center; padding: 0 12px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.knowledge-nav a.is-active { color: var(--ink); border-color: var(--cinnabar); background: var(--surface-muted); }
.knowledge-list { width: min(100%, 900px); min-width: 0; max-width: 100%; display: grid; align-items: start; gap: 10px; }
.accordion-item { min-width: 0; max-width: 100%; min-height: 0; align-self: start; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.accordion-item summary { min-width: 0; min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 18px; font-weight: 700; line-height: 1.55; cursor: pointer; list-style: none; overflow-wrap: anywhere; }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after { flex: none; }
.accordion-item summary:focus-visible { outline-offset: -4px; }
.accordion-item[open] summary { border-bottom: 1px solid var(--line); background: var(--surface-muted); }
.accordion-item > p, .accordion-body { width: min(100%, 76ch); max-width: 100%; margin: 0; padding: 17px 18px 20px; color: #555e58; font-size: 15px; line-height: 1.85; }
.accordion-body > :first-child { margin-top: 0; }
.accordion-body > :last-child { margin-bottom: 0; }
.accordion-body p { margin: 0 0 12px; }
.accordion-body p:last-child { margin-bottom: 0; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.settings-card { box-shadow: none; }
.settings-card h2, .settings-card h3 { margin-top: 0; }
.settings-card p { color: var(--muted); line-height: 1.7; }
.setting-row { min-height: 62px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.setting-row:first-of-type { border-top: 0; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-muted); cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 20px; height: 20px; top: 3px; left: 3px; border-radius: 50%; background: var(--muted); transition: transform .18s ease; }
.switch input:checked + span { border-color: var(--pine); background: var(--pine-soft); }
.switch input:checked + span::after { transform: translateX(20px); background: var(--pine); }
.danger-zone { border-color: rgba(156,63,53,.4); }
.danger { color: var(--danger); border-color: rgba(156,63,53,.45); }
.local-demo-note, .response-note { margin: 16px 0; padding: 13px 15px; color: #3e514a; border-left: 4px solid var(--pine); border-radius: 0 10px 10px 0; background: var(--pine-soft); line-height: 1.65; }
.records-search, .ai-form { display: flex; align-items: end; gap: 12px; margin-bottom: 30px; }
.records-search .field, .ai-form .field { flex: 1; }
.ai-replies { display: grid; gap: 14px; margin-top: 20px; }
.suggestion-row { display: flex; flex-wrap: wrap; gap: 10px; }
.comparison-panel { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.comparison-panel h2 { margin-top: 0; }
.price-large { margin: 8px 0; color: var(--ink) !important; font: 700 40px/1.1 "STSong", "Songti SC", serif; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-button:focus-within { outline: 3px solid var(--cinnabar); outline-offset: 3px; }
.modal { position: relative; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 44px; padding: 0; font-size: 24px; }
.empty-state.compact { min-height: 140px; padding: 24px; }
.result-card pre { max-width: 100%; overflow: auto; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted); font: 13px/1.65 ui-monospace, monospace; white-space: pre-wrap; }

.auth-page { width: min(1080px, calc(100% - 40px)); padding-top: 64px; }
.auth-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-md); }
.auth-layout > * { min-width: 0; }
.auth-intro { position: relative; isolation: isolate; padding: clamp(38px, 5vw, 62px); overflow: hidden; color: #fff; background: var(--pine-dark); }
.auth-intro::before { content: ""; position: absolute; z-index: -1; inset: -20% -20% auto auto; width: 390px; height: 390px; border: 1px solid rgba(241,230,210,.12); border-radius: 50%; box-shadow: 0 0 0 44px rgba(241,230,210,.035), 0 0 0 88px rgba(241,230,210,.025); }
.auth-intro::after { content: ""; position: absolute; z-index: -1; right: 42px; bottom: 38px; width: 82px; height: 82px; border-right: 1px solid rgba(241,230,210,.14); border-bottom: 1px solid rgba(241,230,210,.14); }
.auth-intro .eyebrow { color: #e8c892; }
.auth-seal { width: 64px; height: 64px; display: grid; place-items: center; margin: 42px 0 28px; padding: 7px; border: 1px solid rgba(255,255,255,.4); border-radius: 15px; background: rgba(255,253,248,.96); box-shadow: 0 12px 28px rgba(21,39,34,.24); }
.auth-intro h1 { max-width: 8em; margin: 0; color: #fffdf8; font-size: clamp(34px, 4vw, 48px); line-height: 1.2; letter-spacing: -.025em; }
.auth-intro > p { max-width: 560px; margin: 18px 0 0; color: #dbe7e1; font-size: 16px; line-height: 1.85; }
.auth-promises { display: grid; gap: 11px; margin: 30px 0 0; padding: 0; list-style: none; }
.auth-promises li { position: relative; padding-left: 24px; color: #edf4f0; font-size: 14px; line-height: 1.65; }
.auth-promises li::before { content: ""; position: absolute; top: .55em; left: 2px; width: 8px; height: 8px; border: 2px solid var(--pine-dark); border-radius: 50%; background: #e8c892; box-shadow: 0 0 0 1px #e8c892; }
.local-account-note { max-width: 560px; margin-top: 34px; padding: 16px 18px; border: 1px solid rgba(232,200,146,.3); border-radius: 12px; background: rgba(18,42,36,.42); }
.local-account-note strong { display: block; color: #f2d9ad; font: 700 16px/1.45 "STSong", "Songti SC", serif; }
.local-account-note p { margin: 6px 0 0; color: #cbd9d3; font-size: 12px; line-height: 1.7; }
.auth-card { align-self: stretch; padding: clamp(34px, 5vw, 56px); border-left: 1px solid var(--line); background: var(--surface); }
.auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; margin-bottom: 30px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-muted); }
.auth-tabs a { min-height: 42px; display: grid; place-items: center; color: var(--muted); border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 750; }
.auth-tabs a:hover { color: var(--ink); background: rgba(255,253,248,.72); }
.auth-tabs a.is-active { color: #fff; background: var(--pine); box-shadow: 0 4px 10px rgba(37,73,64,.16); }
.auth-card > h2 { margin: 0; font-size: 30px; }
.auth-card > h2 + p { margin: 9px 0 24px; color: var(--muted); line-height: 1.7; }
.auth-form { display: grid; gap: 17px; }
.auth-form .field small { color: var(--muted); font-size: 11px; line-height: 1.55; }
.auth-form .check-row { min-height: 0; margin: -2px 0 0; color: #4f5852; font-size: 13px; }
.auth-submit { width: 100%; min-height: 49px; margin-top: 3px; }
.auth-switch { margin: 0; color: var(--muted); text-align: center; font-size: 13px; }
.auth-switch a { font-weight: 700; }
.auth-guest-link { min-height: 42px; display: flex; justify-content: center; align-items: center; margin-top: 19px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 13px; }
.auth-guest-link:hover { color: var(--pine); }
.auth-error { margin-bottom: 18px; padding: 13px 15px; color: #713d34; border: 1px solid #dfbdb4; border-left: 4px solid var(--danger); border-radius: 0 10px 10px 0; background: var(--cinnabar-soft); }
.auth-error strong { display: block; font-size: 14px; }
.auth-error p { margin: 4px 0 0; color: #713d34; font-size: 12px; line-height: 1.6; }

.account-page .page-header { max-width: 880px; }
.account-hero { min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 18px; padding: 26px 28px; color: #fff; border: 1px solid #41675e; border-radius: var(--radius-lg); background: linear-gradient(125deg, var(--pine-dark), var(--pine)); box-shadow: var(--shadow-sm); }
.account-identity { min-width: 0; display: flex; align-items: center; gap: 17px; }
.account-avatar.large { width: 62px; height: 62px; border-radius: 17px 17px 17px 5px; font-size: 28px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 10px 22px rgba(21,39,34,.18); }
.account-identity > div { min-width: 0; }
.account-identity > div > span { color: #ddede5; font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.account-identity h2 { margin: 4px 0 3px; color: #fff; font-size: 28px; }
.account-identity p { margin: 0; color: #d8e6df; font-size: 13px; line-height: 1.65; }
.account-hero .button { flex: none; color: #fff; border-color: rgba(255,255,255,.48); background: transparent; }
.account-hero .button:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.account-stats { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.account-stats article { position: relative; min-width: 0; padding: 19px 20px 17px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 6px 18px rgba(42,38,30,.04); }
.account-stats article::before { content: ""; position: absolute; top: 0; left: 19px; width: 30px; border-top: 3px solid var(--brass); }
.account-stats span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.account-stats strong { display: block; margin: 6px 0 9px; font: 700 30px/1.1 "STSong", "Songti SC", serif; }
.account-stats a { font-size: 12px; font-weight: 700; text-decoration: none; }
.account-stats a:hover { text-decoration: underline; text-underline-offset: 3px; }
.account-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.account-grid .settings-card { min-width: 0; box-shadow: var(--shadow-sm); }
.account-grid .settings-card > .eyebrow { display: block; }
.account-grid .settings-card > h2 { margin-bottom: 9px; }
.account-grid .settings-card > p { margin-top: 0; }
.account-grid form { display: grid; gap: 15px; margin-top: 21px; }
.account-grid form .button { width: max-content; max-width: 100%; }
.account-local-card { border-top: 3px solid var(--brass); }
.account-local-card ul { margin: 18px 0 22px; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.account-links { display: grid; gap: 8px; margin-top: 19px; }
.account-links a { min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 13px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; background: #fffefa; text-decoration: none; font-weight: 700; }
.account-links a:hover { color: var(--pine); border-color: #aebfb6; background: var(--pine-soft); }
.account-links a span { color: var(--cinnabar); }

.site-footer { border-top: 1px solid var(--line); background: var(--surface-muted); }
body[data-route="result"] .site-footer, body[data-route="share"] .site-footer { display: none; }
.footer-inner { width: min(var(--content), calc(100% - 40px)); margin: auto; padding: 30px 0; display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; }
.footer-inner strong { font-family: "STSong", "Songti SC", serif; font-size: 20px; }
.footer-inner p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-inner nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-disclaimer { grid-column: 1 / -1; padding-top: 17px; border-top: 1px solid var(--line); }
.mobile-nav { display: none; }

.modal-backdrop { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(20,23,21,.64); }
.modal { width: min(560px, 100%); max-height: min(760px, calc(100dvh - 40px)); overflow-y: auto; overscroll-behavior: contain; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.modal h2 { margin: 0 0 12px; font-size: 27px; }
.modal p { color: var(--muted); line-height: 1.7; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 180; max-width: min(400px, calc(100% - 32px)); padding: 13px 16px; color: #fff; background: var(--ink); border-radius: 10px; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible, .toast.show { opacity: 1; transform: translateY(0); }
.initial-loading, .loading-state, .empty-state, .error-state { min-height: 360px; display: grid; place-items: center; align-content: center; gap: 14px; padding: 48px 20px; text-align: center; }
.loading-mark { width: 58px; height: 58px; display: grid; place-items: center; padding: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 13px; animation: breathe 1.5s ease-in-out infinite; }
.loading-state::before { content: ""; width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--cinnabar); border-radius: 50%; animation: spin .8s linear infinite; }
.empty-state, .error-state { min-height: 290px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface); }
.empty-state h2, .error-state h2 { margin: 0; }
.empty-state p, .error-state p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.7; }
.error-state { border-color: rgba(156,63,53,.5); }
.noscript-note { position: fixed; inset: auto 16px 16px; z-index: 220; padding: 14px; color: #fff; background: var(--danger); border-radius: 10px; text-align: center; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .68; transform: translateY(-2px); } }

@media (max-width: 1080px) {
  .header-inner { gap: 14px; }
  .desktop-nav { gap: 0; }
  .desktop-nav a { padding-inline: 7px; font-size: 13px; }
  .nav-settings { display: none !important; }
  .module-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .records-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(370px, .9fr); }
}

@media (max-width: 820px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .header-inner { width: min(100% - 28px, var(--content)); min-height: 64px; }
  .brand, .header-auth-links a { min-height: 44px; }
  .brand-copy small, .desktop-nav, .header-cta { display: none; }
  .brand-copy strong { font-size: 19px; }
  .header-account { margin-left: auto; }
  .site-header { position: relative; }
  .page { width: min(100% - 28px, var(--content)); padding: 36px 0 62px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .hero-copy h1 { max-width: 13em; font-size: clamp(38px, 7vw, 48px); }
  .hero-card { max-width: 620px; }
  .page-home { padding-top: 22px; }
  .home-hero, .home-reading-steps, .home-route-grid { grid-template-columns: 1fr; }
  .home-hero-copy { padding: 10px 0 4px; }
  .home-report-preview { max-width: 620px; }
  .home-reading-steps li { border-top: 1px solid var(--line); border-left: 0; }
  .home-reading-steps li:first-child { border-top: 0; }
  .home-trust-strip { grid-template-columns: 1fr; }
  .home-trust-strip > div { border-top: 1px solid var(--line); border-left: 0; }
  .home-trust-strip > div:first-child { border-top: 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .wizard-layout, .result-layout, .knowledge-layout, .result-overview { grid-template-columns: minmax(0, 1fr); }
  .stepper { position: static; width: 100%; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; overflow: visible; padding: 2px 0 14px; }
  .stepper li { min-width: 0; min-height: 48px; padding: 36px 2px 0; text-align: center; font-size: 11px; }
  .stepper li::before { left: 50%; transform: translateX(-50%); }
  .stepper li::after { top: 14px; right: calc(-50% + 14px); bottom: auto; left: calc(50% + 14px); border: 0; border-top: 1px solid var(--line); }
  .result-sidebar, .knowledge-nav { position: static; }
  .result-sidebar { grid-template-columns: repeat(2, 1fr); }
  .result-page.is-professional .result-sidebar { order: -1; grid-template-columns: 1fr; }
  .report-toolbar { margin-top: -5px; }
  .sticky-actions { grid-column: 1 / -1; }
  .analysis-core, .ten-god-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-page { width: min(100% - 28px, var(--content)); padding-top: 36px; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); }
  .auth-card { order: -1; border-bottom: 1px solid var(--line); border-left: 0; }
  .auth-intro { padding: 38px; }
  .auth-seal { margin: 26px 0 20px; }
  .auth-intro h1 { max-width: 12em; }
  .account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .relationship-flow { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 120; min-height: calc(68px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px 8px env(safe-area-inset-bottom); border-top: 1px solid rgba(191,181,165,.9); background: rgba(255,253,248,.96); box-shadow: 0 -8px 24px rgba(42,38,30,.07); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .mobile-nav a { min-width: 0; min-height: 60px; display: grid; grid-template-rows: 32px 16px; place-items: center; align-content: center; gap: 2px; color: var(--muted); border-radius: 12px; text-decoration: none; font-size: 11px; line-height: 16px; }
  .mobile-nav-icon { position: relative; width: 32px; height: 32px; display: grid; place-items: center; color: currentColor; border-radius: 10px; transition: color .16s ease, background-color .16s ease; }
  .mobile-nav-label { display: block; min-width: 2em; text-align: center; }
  .mobile-nav-icon svg { width: 24px; height: 24px; display: block; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .mobile-nav a.is-active, .mobile-nav a[aria-current="page"] { color: var(--cinnabar); font-weight: 700; }
  .mobile-nav a.is-active .mobile-nav-icon, .mobile-nav a[aria-current="page"] .mobile-nav-icon { background: var(--cinnabar-soft); }
  body[data-route="result"], body[data-route="share"] { padding-bottom: 0; }
  body[data-route="result"] .mobile-nav, body[data-route="share"] .mobile-nav { display: none; }
  body[data-route="result"] .toast, body[data-route="share"] .toast { bottom: 14px; }
  .site-footer { display: none; }
  .toast { right: 14px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 14px; max-width: none; }
}

@media (max-width: 560px) {
  .field input, .field select, .field textarea, .search-input { min-height: 50px; font-size: 16px; }
  .page-header-row, .section-heading, .record-toolbar { align-items: stretch; flex-direction: column; }
  .page-header h1 { max-width: 100%; font-size: clamp(30px, 9vw, 36px); line-height: 1.2; }
  .hero-copy h1 { max-width: 12em; font-size: clamp(31px, 9.2vw, 39px); line-height: 1.18; }
  .home-hero-copy h1 { font-size: clamp(32px, 9vw, 39px); }
  .home-report-preview, .home-route-grid > a { padding: 21px; }
  .home-report-preview { min-height: 0; }
  .home-report-preview h2 { font-size: 26px; }
  .home-reading-steps li { padding: 21px 0; }
  .report-toolbar { align-items: stretch; flex-direction: column; gap: 8px; padding: 11px; }
  .report-toolbar-status { padding: 2px 4px 0; }
  .report-toolbar-actions { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; }
  .report-tool { min-height: 44px; border: 1px solid var(--line); background: var(--surface); }
  .page-header p, .hero-copy .lead { font-size: 16px; }
  .hero-actions .button, .form-actions .button { flex: 1; }
  .hero-card, .wizard-card, .panel, .result-card, .settings-card, .consent-card { padding: 20px; }
  .module-grid, .records-grid, .pricing-grid, .settings-grid, .theme-grid, .report-grid, .result-sidebar { grid-template-columns: 1fr; }
  .module-card { min-height: 180px; }
  .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .field-row, .confirmation-list, .region-grid, .fact-list, .structure-lead { grid-template-columns: 1fr; }
  .records-search, .ai-form { align-items: stretch; flex-direction: column; }
  .pillar-grid, .mini-pillars { gap: 6px; }
  .pillar-card, .mini-pillar { padding: 12px 4px; }
  .pillar-card strong, .mini-pillar strong { font-size: 20px; }
  .trace-step { grid-template-columns: 1fr; gap: 4px; padding-left: 28px; }
  .relationship-flow { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 11px; padding: 16px 0 2px; overflow: visible; }
  .timeline-item { min-width: 0; min-height: 0; padding: 23px 16px 17px; }
  .timeline-item::before { top: 0; left: 16px; width: 28px; border-top-width: 4px; }
  .result-header { padding: 22px; }
  .result-actions .button { flex: 1 1 130px; }
  .view-toggle { width: 100%; }
  .view-toggle button { min-height: 70px; padding: 8px 10px; }
  .view-toggle-copy > strong, .view-toggle-copy > span:first-child, .view-toggle button.view-toggle-copy > strong, .view-toggle button.view-toggle-copy > span:first-child { font-size: 14px; }
  .view-toggle-copy > small, .view-toggle button.view-toggle-copy > small { font-size: 10px; line-height: 1.4; }
  .view-mode-note { margin-bottom: 18px; padding-left: 10px; }
  .beginner-summary { gap: 15px; padding: 19px; }
  .beginner-summary h2 { font-size: 26px; }
  .answer-direct { padding: 16px; }
  .answer-direct p { font-size: 16px; line-height: 1.8; }
  .answer-grid { grid-template-columns: minmax(0, 1fr); }
  .answer-grid > * { padding: 15px 16px; }
  .optional-details > summary { padding-inline: 14px; }
  .optional-details > summary ~ * { max-width: calc(100% - 28px); margin-right: 14px; margin-left: 14px; }
  .result-page.is-professional .result-card { padding: 17px; }
  .result-section { scroll-margin-top: 76px; }
  .report-toc { top: 0; z-index: 82; align-items: center; gap: 7px; margin: 14px 0 18px; padding: 8px 10px; border-radius: 0 9px 9px 0; }
  .report-toc > strong, .report-toc > span { width: auto; }
  .report-toc ul, .report-toc ol { flex: 1 1 auto; flex-basis: auto; }
  .report-toc :is(a, button) { min-height: 38px; padding-inline: 9px; }
  .accordion-item summary { min-height: 54px; padding: 12px 15px; }
  .accordion-item > p, .accordion-body { padding: 15px 15px 18px; font-size: 14px; line-height: 1.8; }
  .analysis-overview { padding: 16px; font-size: 16px; line-height: 1.8; }
  .analysis-core, .interaction-list, .ten-god-grid { grid-template-columns: minmax(0, 1fr); }
  .analysis-core > article, .core-card, .interaction-list > article, .ten-god-grid > article, .ten-god-card { padding: 16px; }
  .reading-note { padding: 15px 16px; }
  .bazi-board { min-width: 620px; }
  .bazi-board th, .bazi-board td { padding-inline: 8px; }
  .bazi-glyph { width: 38px; height: 38px; font-size: 22px; }
  .element-row { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; }
  .element-row > span { grid-column: 2; color: var(--muted); font-size: 12px; }
  .theme-detail { grid-template-columns: 30px minmax(0, 1fr); padding: 17px; }
  .theme-number { width: 28px; height: 28px; }
  .finding-grid, .theme-scenes, .month-guidance, .account-grid { grid-template-columns: minmax(0, 1fr); }
  .theme-basis { grid-template-columns: minmax(0, 1fr); }
  .theme-basis-item { padding: 14px 15px; }
  .finding-card { padding: 18px 17px 16px; }
  .detailed-month { padding: 23px 17px 17px; }
  .detailed-month .month-focus { min-height: 0; }
  .auth-page { width: calc(100% - 22px); padding-top: 24px; }
  .auth-layout { border-radius: 16px; }
  .auth-card { padding: 27px 22px; }
  .auth-intro { padding: 29px 24px; }
  .auth-intro::before { width: 280px; height: 280px; }
  .auth-seal { width: 48px; height: 48px; margin: 19px 0 17px; font-size: 23px; }
  .auth-intro h1 { font-size: 32px; }
  .auth-intro > p { font-size: 14px; line-height: 1.75; }
  .auth-promises { margin-top: 22px; }
  .local-account-note { margin-top: 23px; }
  .account-hero { align-items: stretch; flex-direction: column; padding: 22px; }
  .account-hero .button { width: 100%; }
  .account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .account-stats article { padding: 17px 16px 15px; }
  .account-grid .settings-card { padding: 20px; }
  .wizard-card > .form-actions { position: sticky; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 30; margin-inline: -20px; padding: 12px 20px; border-top: 1px solid var(--line); background: rgba(255,253,248,.97); box-shadow: 0 -8px 18px rgba(42,38,30,.06); backdrop-filter: blur(12px); }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 88dvh; padding-bottom: calc(26px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
}

@media (max-width: 390px) {
  .page, .header-inner { width: calc(100% - 22px); }
  .hero-copy h1, .page-header h1 { font-size: clamp(29px, 9vw, 34px); }
  .hero-card { padding: 18px; }
  .brand-seal { width: 36px; height: 36px; }
  .button { padding-inline: 14px; }
  .birth-date-row { gap: 6px; }
  .birth-date-row select { padding-right: 24px; padding-left: 9px; }
  .view-toggle { gap: 3px; padding: 3px; border-radius: 11px; }
  .view-toggle button { min-height: 68px; padding-inline: 8px; border-radius: 8px; }
  .view-toggle-copy > small, .view-toggle button.view-toggle-copy > small { font-size: 9.5px; }
  .answer-direct, .answer-grid > *, .answer-list > li { max-width: 100%; }
  .answer-list > li { padding-right: 11px; padding-left: 32px; }
  .answer-list > li::before { left: 13px; }
  .header-auth-links a { padding-inline: 9px; }
  .header-user-link { grid-template-columns: 34px 12px; }
  .header-user-link > span:nth-child(2) { display: none; }
  .account-identity { align-items: flex-start; }
  .account-avatar.large { width: 54px; height: 54px; font-size: 24px; }
  .account-identity h2 { font-size: 24px; }
  .account-stats { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  @page { size: A4 portrait; margin: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { width: 210mm; min-width: 0; margin: 0; padding: 0 !important; background: #fff !important; }
  body::before, .skip-link, .site-header, .app, .site-footer, .mobile-nav, .offline-banner, .toast, #toast, #dialog-root, .noscript-note { display: none !important; }
  .print-root { display: block !important; width: 210mm; margin: 0; color: #211f1a; background: #fff; font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; }
  .print-document { width: 210mm; }
  .print-sheet { position: relative; width: 210mm; min-height: 297mm; padding: 16mm 16mm 15mm; background: #fff; break-after: page; page-break-after: always; }
  .print-sheet:last-child { break-after: auto; page-break-after: auto; }
  .print-sheet-body { padding-bottom: 11mm; }
  .print-sheet-head { display: flex; align-items: end; justify-content: space-between; gap: 12mm; margin-bottom: 8mm; padding-bottom: 4mm; border-bottom: .35mm solid #aa4b38; }
  .print-sheet-head span, .print-kicker { color: #9e4938; font: 700 8.5pt/1.4 "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: .16em; }
  .print-sheet-head h2 { margin: 0; font-size: 22pt; line-height: 1.15; letter-spacing: .03em; }
  .print-sheet-foot { position: absolute; right: 16mm; bottom: 7mm; left: 16mm; display: flex; justify-content: space-between; padding-top: 2.5mm; color: #777269; border-top: .2mm solid #d7d1c6; font: 7.5pt/1.3 "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: .06em; }
  .print-cover .print-sheet-body { min-height: 252mm; display: flex; flex-direction: column; justify-content: center; }
  .print-cover-mark { width: 24mm; height: 24mm; display: grid; place-items: center; margin: 0 0 10mm; }
  .print-cover-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .print-cover h1 { max-width: 150mm; margin: 5mm 0 9mm; font-size: 31pt; line-height: 1.28; letter-spacing: .02em; }
  .print-cover-person { display: flex; align-items: baseline; gap: 4mm; padding: 4mm 0; border-top: .3mm solid #39372f; border-bottom: .3mm solid #d7d1c6; }
  .print-cover-person strong { font-size: 18pt; }
  .print-cover-person span { color: #716d64; font: 9pt/1.5 "PingFang SC", "Microsoft YaHei", sans-serif; }
  .print-cover-lead { max-width: 125mm; margin: 11mm 0 0; color: #49463f; font-size: 12pt; line-height: 1.85; }
  .print-cover-meta { display: grid; gap: 1.5mm; margin-top: 18mm; }
  .print-cover-meta span { color: #777269; font: 8pt/1.4 "PingFang SC", "Microsoft YaHei", sans-serif; }
  .print-cover-meta strong { font-size: 11pt; }
  .print-disclaimer { max-width: 145mm; margin: 8mm 0 0; color: #777269; font: 8pt/1.7 "PingFang SC", "Microsoft YaHei", sans-serif; }
  .print-lead { margin: 0 0 8mm; padding: 5mm 6mm; color: #34322d; border-left: 1mm solid #aa4b38; background: #f7f2e9; font-size: 12pt; line-height: 1.85; }
  .print-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4mm; }
  .print-summary-grid article { min-height: 82mm; padding: 6mm 5.5mm; border: .25mm solid #d7d1c6; }
  .print-summary-grid span, .print-structure-row span, .print-theme > div > span { color: #9e4938; font: 700 8pt/1.4 "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: .08em; }
  .print-summary-grid h3 { margin: 5mm 0 3mm; font-size: 15pt; line-height: 1.45; }
  .print-summary-grid p { margin: 0; color: #504d46; font: 9.5pt/1.75 "PingFang SC", "Microsoft YaHei", sans-serif; }
  .print-caution { margin-top: 7mm; padding: 4.5mm 5mm; border-top: .4mm solid #315c52; background: #f3f5f1; }
  .print-caution strong { font-size: 10pt; }
  .print-caution p { margin: 2mm 0 0; color: #504d46; font: 9pt/1.65 "PingFang SC", "Microsoft YaHei", sans-serif; }
  .print-birth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 7mm; border-top: .25mm solid #bdb6aa; border-left: .25mm solid #bdb6aa; }
  .print-birth-grid > div { padding: 3.5mm 4mm; border-right: .25mm solid #bdb6aa; border-bottom: .25mm solid #bdb6aa; }
  .print-birth-grid dt { color: #777269; font: 7.5pt/1.4 "PingFang SC", "Microsoft YaHei", sans-serif; }
  .print-birth-grid dd { margin: 1.5mm 0 0; font-size: 9.5pt; line-height: 1.5; }
  .print-pillar-table, .print-data-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
  .print-pillar-table th, .print-pillar-table td, .print-data-table th, .print-data-table td { padding: 3mm 2mm; text-align: center; border: .25mm solid #aaa397; }
  .print-pillar-table th, .print-data-table th { background: #f3eee5; font: 700 8.5pt/1.4 "PingFang SC", "Microsoft YaHei", sans-serif; }
  .print-pillar-table td { font-size: 9.5pt; line-height: 1.45; }
  .print-gan-zhi { font-size: 18pt; letter-spacing: .12em; }
  .print-structure-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; margin-top: 7mm; }
  .print-structure-row article { padding: 4mm; border-top: .6mm solid #315c52; background: #f4f5f1; }
  .print-structure-row strong { display: block; margin-top: 2.5mm; font-size: 12pt; line-height: 1.45; }
  .print-theme-list { display: grid; gap: 6mm; }
  .print-theme { display: grid; grid-template-columns: 10mm minmax(0, 1fr); gap: 4mm; padding-bottom: 6mm; border-bottom: .25mm solid #d7d1c6; break-inside: avoid; }
  .print-theme:last-child { border-bottom: 0; }
  .print-theme-number { width: 9mm; height: 9mm; display: grid; place-items: center; color: #fff; background: #aa4b38; font: 700 8pt/1 "PingFang SC", "Microsoft YaHei", sans-serif; }
  .print-theme h3 { margin: 2.5mm 0 4mm; font-size: 16pt; line-height: 1.42; }
  .print-theme section { margin-top: 3.5mm; }
  .print-theme h4 { margin: 0 0 1.5mm; font: 700 8.5pt/1.4 "PingFang SC", "Microsoft YaHei", sans-serif; }
  .print-theme ul, .print-theme ol { margin: 0; padding-left: 5mm; color: #4f4c45; font: 9pt/1.6 "PingFang SC", "Microsoft YaHei", sans-serif; }
  .print-month-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5mm; }
  .print-month { min-height: 105mm; padding: 5mm; border: .25mm solid #c8c1b5; break-inside: avoid; }
  .print-month header { display: flex; justify-content: space-between; gap: 3mm; color: #777269; font: 7.5pt/1.4 "PingFang SC", "Microsoft YaHei", sans-serif; }
  .print-month h3 { margin: 4mm 0 2mm; font-size: 14pt; }
  .print-month > p { margin: 0 0 3.5mm; color: #4f4c45; font: 9pt/1.65 "PingFang SC", "Microsoft YaHei", sans-serif; }
  .print-month dl { display: grid; gap: 2mm; margin: 0; }
  .print-month dl > div { display: grid; grid-template-columns: 7mm minmax(0, 1fr); gap: 2mm; }
  .print-month dt { color: #9e4938; font-weight: 700; }
  .print-month dd { margin: 0; color: #4f4c45; font: 8.5pt/1.5 "PingFang SC", "Microsoft YaHei", sans-serif; }
  .print-section-note { margin: -3mm 0 6mm; color: #777269; font: 8.5pt/1.65 "PingFang SC", "Microsoft YaHei", sans-serif; }
  .print-appendix-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7mm; }
  .print-appendix-grid h3, .print-boundaries h3 { margin: 0 0 4mm; font-size: 14pt; }
  .print-data-table { font: 8.5pt/1.4 "PingFang SC", "Microsoft YaHei", sans-serif; }
  .print-method-list { display: grid; gap: 3mm; margin: 0; }
  .print-method-list > div { padding-bottom: 3mm; border-bottom: .25mm solid #d7d1c6; }
  .print-method-list dt { color: #777269; font: 8pt/1.4 "PingFang SC", "Microsoft YaHei", sans-serif; }
  .print-method-list dd { margin: 1.5mm 0 0; font-size: 9pt; line-height: 1.6; }
  .print-boundaries { margin-top: 8mm; padding: 5mm 6mm; border-left: 1mm solid #aa4b38; background: #f7f2e9; }
  .print-boundaries ul { margin: 0; padding-left: 5mm; }
  .print-boundaries li, .print-boundaries p { color: #4f4c45; font: 9pt/1.65 "PingFang SC", "Microsoft YaHei", sans-serif; }
  .print-boundaries p:last-child { margin-bottom: 0; }
}

@media (forced-colors: active) {
  .view-toggle, .view-toggle button, .beginner-summary, .answer-direct, .answer-grid > *, .answer-list > li, .optional-details, .optional-details > summary::after, .report-toc, .analysis-overview, .reading-note, .analysis-core > article, .core-card, .interaction-list > article, .bazi-board-wrap, .ten-god-grid > article, .ten-god-card, .finding-card, .theme-scenes > section, .month-guidance > section, .month-question, .auth-layout, .auth-card, .account-hero, .account-stats article, .account-grid .settings-card { border-color: CanvasText; box-shadow: none; }
  .view-toggle button.is-active, .view-toggle button[aria-pressed="true"] { color: HighlightText; border-color: Highlight; background: Highlight; }
  .view-toggle button.is-active .view-toggle-copy > small, .view-toggle button[aria-pressed="true"] .view-toggle-copy > small, .view-toggle button.is-active.view-toggle-copy > small, .view-toggle button[aria-pressed="true"].view-toggle-copy > small { color: HighlightText; }
  .result-page.is-beginner .view-mode-note, .result-page.is-professional .view-mode-note, .answer-direct { border-left-color: Highlight; }
  .beginner-summary { border-top-color: Highlight; }
  .answer-list > li::before { border-color: Canvas; background: Highlight; box-shadow: 0 0 0 1px Highlight; }
  .optional-details > summary::after { color: Highlight; background: Canvas; }
  .report-toc :is(a, button):hover, .report-toc :is(a, button)[aria-current="location"], .report-toc :is(a, button)[aria-current="true"] { border-color: Highlight; }
  .bazi-board .day-column { outline: 2px solid Highlight; outline-offset: -2px; box-shadow: none; }
  .bazi-glyph { border: 2px solid currentColor; background: Canvas; }
  .ten-god-grid > article.prominent, .ten-god-card.prominent { border-top-color: Highlight; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* v2.2: 纸本阅读体系。松石用于操作，朱砂用于章节，铜金只标记传统盘面。 */
.result-header {
  position: relative;
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cinnabar);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.result-header::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 76px;
  height: 76px;
  border: 1px solid color-mix(in srgb, var(--cinnabar) 22%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--cinnabar) 5%, transparent);
  pointer-events: none;
}
.result-header .eyebrow, .result-header .meta { color: var(--cinnabar); }
.result-header p { max-width: 900px; padding-right: 110px; color: var(--muted); }
.result-page .result-card { border-color: var(--line); border-radius: var(--radius-md); box-shadow: 0 10px 28px rgba(47, 42, 34, .055); }
.result-page .result-card > .section-heading { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.result-page .result-card > .section-heading .eyebrow { color: var(--cinnabar); }
.report-toc { border-left-color: var(--cinnabar); }
.report-toc > strong, .report-toc > span { color: var(--cinnabar); }
.module-card.featured { border-color: var(--line); border-top: 3px solid var(--cinnabar); }
.section-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-report-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 14px 0 4px; }
.profile-report-links > div { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted); }
.profile-report-links strong { color: var(--cinnabar); font-size: 13px; }
.profile-report-links a { color: var(--pine); font-weight: 750; text-decoration: none; }
.profile-report-links a:hover { text-decoration: underline; }

.ziwei-main { display: grid; gap: 24px; }
.ziwei-chart-section { overflow: visible; }
.ziwei-board {
  min-width: 940px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(176px, auto));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--line);
}
.ziwei-chart-section { overflow-x: auto; scrollbar-width: thin; }
.ziwei-palace { min-width: 0; padding: 14px; background: var(--surface); }
.ziwei-palace header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.ziwei-palace h3 { margin: 0; color: var(--ink); font-size: 18px; }
.ziwei-palace header span { color: var(--cinnabar); font-weight: 800; }
.ziwei-palace footer { min-height: 28px; display: flex; flex-wrap: wrap; align-items: end; gap: 5px; margin-top: 12px; }
.ziwei-palace footer strong { padding: 3px 6px; color: var(--pine-dark); border-radius: 5px; background: var(--pine-soft); font-size: 10px; }
.ziwei-palace footer small { margin-left: auto; color: var(--muted); }
.ziwei-palace.is-body { box-shadow: inset 0 0 0 2px var(--brass); }
.ziwei-palace.is-current { box-shadow: inset 0 0 0 2px var(--cinnabar); background: #fffaf4; }
.ziwei-palace.is-body.is-current { box-shadow: inset 0 0 0 2px var(--cinnabar), inset 0 0 0 5px var(--brass-soft); }
.ziwei-major-stars { min-height: 48px; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; }
.ziwei-star { display: inline-flex; align-items: center; gap: 4px; }
.ziwei-star.major b { color: var(--cinnabar); font: 800 17px/1.2 "STSong", "Songti SC", serif; }
.ziwei-star.major small { color: var(--muted); font-size: 9px; }
.ziwei-star.major i { padding: 2px 4px; color: #fff; border-radius: 4px; background: var(--pine); font-size: 9px; font-style: normal; }
.ziwei-empty-star { color: var(--muted); font-size: 12px; }
.ziwei-minor-stars { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.ziwei-center { grid-area: 2 / 2 / 4 / 4; display: flex; flex-direction: column; justify-content: center; padding: 30px; background: var(--paper-deep); }
.ziwei-center h2 { margin: 8px 0 18px; font-size: clamp(25px, 3vw, 38px); }
.ziwei-center dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.ziwei-center dl > div { padding: 10px 12px; border-top: 2px solid var(--brass); background: rgba(255,253,248,.72); }
.ziwei-center dt { color: var(--muted); font-size: 11px; }
.ziwei-center dd { margin: 4px 0 0; font-weight: 800; }
.ziwei-center > small { margin-top: 16px; color: var(--muted); }
.ziwei-position-0 { grid-area: 1 / 1; }
.ziwei-position-1 { grid-area: 1 / 2; }
.ziwei-position-2 { grid-area: 1 / 3; }
.ziwei-position-3 { grid-area: 1 / 4; }
.ziwei-position-4 { grid-area: 2 / 4; }
.ziwei-position-5 { grid-area: 3 / 4; }
.ziwei-position-6 { grid-area: 4 / 4; }
.ziwei-position-7 { grid-area: 4 / 3; }
.ziwei-position-8 { grid-area: 4 / 2; }
.ziwei-position-9 { grid-area: 4 / 1; }
.ziwei-position-10 { grid-area: 3 / 1; }
.ziwei-position-11 { grid-area: 2 / 1; }
.ziwei-reading-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ziwei-palace-reading { min-width: 0; padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--brass); border-radius: 12px; background: var(--surface); }
.ziwei-palace-reading header { display: flex; justify-content: space-between; gap: 18px; }
.ziwei-palace-reading header span { color: var(--cinnabar); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.ziwei-palace-reading header h3 { margin: 6px 0 14px; font-size: 23px; }
.ziwei-palace-reading header > b { flex: none; color: var(--brass); font-size: 20px; }
.ziwei-palace-reading > p { color: #4e5550; line-height: 1.8; }
.ziwei-palace-reading .ziwei-focus { color: var(--ink); font-weight: 700; }
.ziwei-star-readings { display: grid; gap: 8px; margin: 16px 0; }
.ziwei-star-readings > div { padding: 12px 14px; border-left: 3px solid var(--pine); background: var(--pine-soft); }
.ziwei-star-readings p { margin: 5px 0; color: #46514c; line-height: 1.7; }
.ziwei-star-readings small { color: var(--muted); line-height: 1.6; }
.ziwei-support { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ziwei-support > div { padding: 10px 12px; border: 1px solid var(--line); background: var(--surface-muted); }
.ziwei-support dt { color: var(--muted); font-size: 11px; }
.ziwei-support dd { margin: 5px 0 0; line-height: 1.55; }
.ziwei-palace-reading blockquote { margin: 16px 0 0; padding: 12px 14px; color: #76502f; border-left: 3px solid var(--brass); background: var(--brass-soft); line-height: 1.65; }
.ziwei-palace-reading blockquote span { display: block; margin-bottom: 4px; color: var(--cinnabar); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.ziwei-reality-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 17px 0; }
.ziwei-reality-grid section { min-width: 0; padding: 14px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--pine-soft); }
.ziwei-reality-grid section.watch { background: var(--cinnabar-soft); }
.ziwei-reality-grid h4 { margin: 0 0 8px; font-size: 15px; }
.ziwei-reality-grid ul { margin: 0; padding-left: 18px; color: #4e5550; line-height: 1.7; }
.ziwei-star-basis { margin: 14px 0; }
.ziwei-term-note { margin: 16px 0 0; }
.ziwei-overview-membership { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.ziwei-overview-membership > article { min-width: 0; padding: 19px; border: 1px solid var(--line); border-top: 3px solid var(--pine); border-radius: 11px; background: var(--surface); }
.ziwei-overview-membership > article:nth-child(2) { border-top-color: var(--brass); }
.ziwei-overview-membership > article:nth-child(3) { border-top-color: var(--cinnabar); }
.ziwei-overview-membership span { color: var(--cinnabar); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.ziwei-overview-membership h3 { margin: 8px 0 10px; font-size: 21px; }
.ziwei-overview-membership p, .ziwei-overview-membership li { color: #4d5752; font-size: 13px; line-height: 1.72; }
.ziwei-overview-membership ul { margin: 10px 0 0; padding-left: 18px; }
.ziwei-overview-membership small { display: block; margin-top: 10px; padding-top: 10px; color: var(--muted); border-top: 1px dashed var(--line); line-height: 1.65; }
.ziwei-member-lock { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 18px; padding: 20px; border: 1px solid rgba(187,142,70,.38); border-left: 4px solid var(--brass); border-radius: 11px; background: var(--brass-soft); }
.ziwei-member-lock span, .ziwei-member-title span { color: var(--cinnabar); font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.ziwei-member-lock h3 { margin: 5px 0; font-size: 21px; }
.ziwei-member-lock p { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.7; }
.ziwei-member-lock .button { flex: none; }
.member-frosted { position: relative; isolation: isolate; min-height: 340px; max-height: 620px; margin-top: 18px; overflow: hidden; border: 1px solid rgba(47,101,88,.24); border-radius: 14px; background: var(--surface-muted); box-shadow: inset 0 0 0 1px rgba(255,255,255,.48); }
.member-frosted-preview { min-height: inherit; pointer-events: none; user-select: none; opacity: .72; filter: blur(7px) saturate(.72); transform: scale(1.025); transform-origin: center; }
.member-frosted-glass { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; padding: 30px; background: linear-gradient(135deg, rgba(245,241,232,.48), rgba(224,234,228,.64)); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.member-frosted-callout { width: min(520px, 100%); padding: 26px 28px; text-align: center; border: 1px solid rgba(47,101,88,.3); border-radius: 15px; background: rgba(255,253,248,.9); box-shadow: 0 18px 44px rgba(38,51,45,.16); }
.member-frosted-callout > span { display: inline-block; color: var(--cinnabar); font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.member-frosted-callout h3 { margin: 8px 0 10px; font-size: 24px; line-height: 1.4; }
.member-frosted-callout p { margin: 0 auto 18px; color: #4d5752; line-height: 1.75; }
.member-frosted-callout .button { min-width: 230px; }
.member-frosted-callout small { display: block; margin-top: 11px; color: var(--muted); line-height: 1.55; }
.member-frosted--modules { min-height: 560px; max-height: 720px; }
.member-frosted--relation { min-height: 380px; max-height: 500px; margin: 14px; }
.member-frosted--relation .relation-life-reading { margin: 0; }
.member-frosted--ziwei { min-height: 330px; max-height: 490px; }
.member-frosted--ziwei .ziwei-overview-membership,
.member-frosted--ziwei .ziwei-period-member-grid,
.member-frosted--ziwei .ziwei-member-detail { margin-top: 0; }
.ziwei-member-detail { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(180deg, var(--surface-muted), var(--surface)); }
.ziwei-member-title { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.ziwei-member-title h4 { margin: 0; font-size: 18px; line-height: 1.45; }
.ziwei-member-conclusion { margin: 13px 0; color: #303b36; font-size: 15px; line-height: 1.82; }
.ziwei-member-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.ziwei-member-columns section { min-width: 0; padding: 13px 14px; border-radius: 9px; background: var(--pine-soft); }
.ziwei-member-columns section.watch { background: var(--cinnabar-soft); }
.ziwei-member-columns section.action { background: var(--brass-soft); }
.ziwei-member-columns strong { font-size: 13px; }
.ziwei-member-columns :is(ul, ol) { margin: 8px 0 0; padding-left: 19px; color: #46514c; font-size: 13px; line-height: 1.72; }
.ziwei-period-member-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.ziwei-period-member-grid > .ziwei-member-detail { margin-top: 0; }
.ziwei-period-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ziwei-period-grid > article { min-width: 0; padding: 18px; border: 1px solid var(--line); border-top: 3px solid var(--pine); border-radius: 11px; background: var(--surface); }
.ziwei-period-grid > article + article { border-top-color: var(--brass); }
.ziwei-period-grid span { color: var(--cinnabar); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.ziwei-period-grid h3 { margin: 8px 0 10px; font-size: 22px; }
.ziwei-period-grid p { min-height: 3.4em; color: var(--muted); line-height: 1.7; }
.ziwei-period-grid strong { display: block; color: var(--pine-dark); font-size: 13px; line-height: 1.65; }
.ziwei-mutagen-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.ziwei-mutagen-grid article { min-width: 0; padding: 13px; border-radius: 9px; background: var(--surface-muted); }
.ziwei-mutagen-grid span { color: var(--cinnabar); font-size: 11px; font-weight: 800; }
.ziwei-mutagen-grid strong { display: block; margin: 6px 0; font-size: 18px; }
.ziwei-mutagen-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.plain-note { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--pine); background: var(--pine-soft); }
.plain-note p { margin: 6px 0 0; color: #46514c; line-height: 1.75; }

.profile-reuse-page { max-width: 1180px; }
.profile-reuse-list { display: grid; gap: 14px; margin-top: 22px; }
.profile-reuse-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px 26px; border: 1px solid var(--line); border-left: 4px solid var(--pine); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.profile-reuse-copy > span { color: var(--cinnabar); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.profile-reuse-copy h2 { margin: 7px 0 8px; font-size: 26px; }
.profile-reuse-copy p { margin: 0; color: var(--muted); }
.profile-reuse-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 9px; }
.profile-reuse-new { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 22px 26px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface-muted); }
.profile-reuse-new h2 { margin: 5px 0; font-size: 22px; }
.profile-reuse-new p { margin: 0; color: var(--muted); }

.relation-map { margin: 22px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--surface-muted), var(--surface)); }
.relation-map-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.relation-map-heading h3 { margin: 5px 0 0; font-size: 23px; }
.relation-map-heading p { max-width: 760px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.relation-legend { display: flex; gap: 8px; }
.relation-legend span { padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.relation-legend .harmony { color: var(--pine-dark); background: var(--pine-soft); }
.relation-legend .clash { color: var(--cinnabar); background: var(--cinnabar-soft); }
.relation-legend .assembly { color: #75541f; background: var(--brass-soft); }
.relation-map svg { width: 100%; min-width: 540px; margin: 8px 0 0; overflow: visible; }
.relation-map .relation-axis text { fill: var(--muted); font-size: 4px; text-anchor: middle; }
.relation-map .relation-axis line { stroke: var(--line-strong); stroke-width: .5; }
.relation-line path { fill: none !important; stroke-width: 1.15; }
.relation-line circle { stroke: var(--surface); stroke-width: .7; }
.relation-line text { font-size: 3.2px; font-weight: 800; text-anchor: middle; paint-order: stroke; stroke: var(--surface); stroke-width: 1.4px; }
.relation-harmony path { stroke: var(--pine); }
.relation-harmony circle { stroke: var(--pine); fill: var(--pine); }
.relation-harmony text { fill: var(--pine-dark); }
.relation-clash path { stroke: var(--cinnabar); stroke-dasharray: 2 1; }
.relation-clash circle { stroke: var(--cinnabar); fill: var(--cinnabar); }
.relation-clash text { fill: var(--cinnabar); }
.relation-assembly path { stroke: var(--brass); }
.relation-assembly circle { stroke: var(--brass); fill: var(--brass); }
.relation-assembly text { fill: #75541f; }
.relation-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.relation-list > li { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.relation-list > li > header { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--line); background: var(--surface-muted); }
.relation-list > li > header strong { flex: none; color: var(--cinnabar); font-size: 12px; }
.relation-list > li > header span { min-width: 0; font-weight: 800; }
.relation-domain-lead { padding: 16px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--surface), var(--surface-muted)); }
.relation-domain-lead > span, .relation-life-title > span, .relation-member-lock span { color: var(--cinnabar); font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.relation-domain-lead h4 { margin: 6px 0; font-size: 19px; line-height: 1.45; }
.relation-domain-lead p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.72; }
.relation-life-reading { margin: 14px; padding: 18px; border: 1px solid rgba(47, 101, 88, .28); border-left: 4px solid var(--pine); border-radius: 10px; background: #f7faf8; }
.relation-life-title { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.relation-life-title h4 { margin: 6px 0; font-size: 21px; line-height: 1.45; }
.relation-life-title p { margin: 0; color: var(--muted); font-size: 12px; }
.relation-life-conclusion { margin: 14px 0; color: #35443e; font-size: 15px; line-height: 1.82; }
.relation-life-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.relation-life-grid section { min-width: 0; padding: 13px 14px; border-radius: 8px; background: var(--surface); }
.relation-life-grid section.is-support { background: var(--pine-soft); }
.relation-life-grid section.is-friction { background: var(--cinnabar-soft); }
.relation-life-grid section.is-action { background: var(--brass-soft); }
.relation-life-grid b { color: var(--pine-dark); font-size: 12px; }
.relation-life-grid .is-friction b { color: var(--cinnabar); }
.relation-life-grid p { margin: 6px 0 0; color: #4e5752; font-size: 13px; line-height: 1.7; }
.relation-life-evidence, .relation-term-details { border-top: 1px solid var(--line); }
.relation-life-evidence { margin-top: 14px; }
.relation-life-evidence summary, .relation-term-details summary { cursor: pointer; padding: 12px 2px; color: var(--pine-dark); font-size: 13px; font-weight: 800; }
.relation-life-evidence > div { padding: 0 2px 12px; }
.relation-life-evidence p { margin: 0; color: #4e5752; font-size: 13px; line-height: 1.72; }
.relation-life-evidence small { display: block; margin-top: 7px; color: var(--muted); line-height: 1.6; }
.relation-term-details { margin: 0 14px 14px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.relation-term-details summary { padding: 12px 14px; background: var(--surface-muted); }
.relation-member-lock { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 14px; padding: 18px; border: 1px solid rgba(187, 142, 70, .38); border-left: 4px solid var(--brass); border-radius: 10px; background: var(--brass-soft); }
.relation-member-lock h4 { margin: 5px 0; font-size: 19px; }
.relation-member-lock p { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.relation-member-lock .button { flex: none; }
.relation-explanation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.relation-explanation > section { min-width: 0; padding: 14px 15px; border-right: 1px solid var(--line); }
.relation-explanation > section:last-child { border-right: 0; }
.relation-explanation b { color: var(--pine-dark); font-size: 12px; }
.relation-explanation p { margin: 6px 0 0; color: #4e5752; font-size: 13px; line-height: 1.7; }
.relation-explanation small { display: block; margin-top: 8px; padding-top: 8px; color: var(--muted); border-top: 1px dashed var(--line); font-size: 11px; line-height: 1.6; }
.relation-explanation .relation-plain { background: var(--pine-soft); }
.relation-explanation .relation-check { background: #fffdfa; }
.relation-boundary-note { margin: 0; padding: 10px 14px; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface-muted); font-size: 11px; line-height: 1.65; }
.relation-boundary-note strong { color: var(--ink); }
.relation-map.is-empty { display: flex; }
.relation-map.is-empty h3 { margin: 5px 0; }
.relation-map.is-empty p { margin: 0; color: var(--muted); }

.guanxu-chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 22px 0; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--surface); }
.guanxu-chain > div { position: relative; padding: 18px; border-right: 1px solid var(--line); }
.guanxu-chain > div:last-child { border-right: 0; }
.guanxu-chain span { color: var(--cinnabar); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.guanxu-chain strong { display: block; margin: 7px 0; font-family: "STSong", "Songti SC", serif; font-size: 18px; }
.guanxu-chain p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.premium-reading-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.premium-module { padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--pine); border-radius: 13px; background: var(--surface); }
.premium-module > header { display: flex; align-items: start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.premium-module > header > span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; color: #fff; border-radius: 8px; background: var(--cinnabar); font-weight: 850; }
.premium-module header div { min-width: 0; flex: 1; }
.premium-module header h3 { margin: 0; font-size: 23px; }
.premium-module header p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.premium-module header b { flex: none; padding: 4px 7px; color: var(--pine-dark); border-radius: 999px; background: var(--pine-soft); font-size: 10px; }
.premium-module > h4 { margin: 18px 0 12px; font-size: 19px; line-height: 1.55; }
.premium-direct { margin: 18px 0; padding: 16px 17px; border-left: 4px solid var(--pine); border-radius: 0 10px 10px 0; background: linear-gradient(90deg, var(--pine-soft), rgba(235,241,237,.46)); }
.premium-direct > span { color: var(--cinnabar); font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.premium-direct h4 { margin: 7px 0 9px; font-size: 19px; line-height: 1.6; }
.premium-direct p { margin: 0; color: #43504a; font-size: 13px; line-height: 1.75; }
.premium-origin-extra { display: grid; gap: 8px; margin: 13px 0; padding-top: 12px; border-top: 1px solid rgba(45,94,82,.17); }
.premium-origin-extra p { padding: 9px 11px; border-radius: 8px; background: rgba(255,255,255,.62); }
.premium-origin-extra p:nth-child(2) { color: #765147; background: var(--cinnabar-soft); }
.premium-origin-extra p:nth-child(3) { color: #665327; background: var(--gold-soft); }
.premium-direct .premium-check { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(45,94,82,.24); color: var(--ink); font-size: 14px; }
.premium-basis { margin: 16px 0; padding: 12px 14px; border-left: 3px solid var(--brass); background: var(--brass-soft); }
.premium-basis small { color: #7a5a2c; font-weight: 800; }
.premium-basis p { margin: 5px 0 0; }
.premium-lock-copy { padding-top: 4px; }
.premium-lock-copy p { color: var(--muted); line-height: 1.7; }
.premium-scenes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.premium-scenes section { padding: 13px; border-radius: 9px; background: var(--pine-soft); }
.premium-scenes section + section { background: var(--cinnabar-soft); }
.premium-scenes ul { margin-bottom: 0; padding-left: 18px; }

.luck-current-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.luck-current-grid article { padding: 15px; border: 1px solid var(--line); border-top: 3px solid var(--brass); border-radius: 10px; background: var(--surface-muted); }
.luck-current-grid span { color: var(--muted); font-size: 11px; }
.luck-current-grid strong { display: block; margin: 7px 0; color: var(--ink); font: 800 22px/1.2 "STSong", "Songti SC", serif; }
.luck-current-grid p { margin: 0; color: var(--muted); font-size: 12px; }
.monthly-reading-heading { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.question-member-lock { border-top: 3px solid var(--brass); }
.question-member-lock > p { max-width: 760px; color: var(--muted); line-height: 1.75; }

@media (max-width: 820px) {
  .result-header::after { display: none; }
  .result-header p { padding-right: 0; }
  .ziwei-board { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 8px; border: 0; background: transparent; }
  .ziwei-center { grid-area: auto; grid-column: 1 / -1; order: -1; border: 1px solid var(--line); border-radius: 12px; }
  .ziwei-palace[class*="ziwei-position-"] { grid-area: auto; border: 1px solid var(--line); border-radius: 10px; }
  .ziwei-reading-list { grid-template-columns: 1fr; }
  .profile-reuse-card { grid-template-columns: 1fr; }
  .profile-reuse-actions { justify-content: start; }
  .guanxu-chain, .premium-reading-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ziwei-mutagen-grid, .ziwei-overview-membership { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ziwei-overview-membership > article:last-child { grid-column: 1 / -1; }
  .guanxu-chain > div:nth-child(2) { border-right: 0; }
  .guanxu-chain > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .luck-current-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bazi-term-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bazi-pillar-meaning-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .membership-page .page-header { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .membership-header-actions { justify-content: flex-start; }
  .ziwei-member-lock { align-items: stretch; flex-direction: column; }
  .ziwei-member-lock .button { width: 100%; text-align: center; }
  .section-actions, .section-actions .button { width: 100%; }
  .profile-report-links, .ziwei-board, .ziwei-support { grid-template-columns: 1fr; }
  .ziwei-center { grid-column: 1; padding: 22px; }
  .ziwei-center dl { grid-template-columns: 1fr 1fr; }
  .ziwei-palace-reading { padding: 18px; }
  .profile-reuse-new { align-items: stretch; flex-direction: column; }
  .profile-reuse-actions, .profile-reuse-actions .button, .profile-reuse-new .button { width: 100%; }
  .profile-reuse-actions .button { text-align: center; }
  .relation-map { overflow-x: auto; }
  .relation-list, .relation-life-grid, .guanxu-chain, .premium-reading-grid, .premium-scenes, .luck-current-grid, .ziwei-reality-grid, .ziwei-period-grid, .ziwei-period-member-grid, .ziwei-mutagen-grid, .ziwei-overview-membership { grid-template-columns: 1fr; }
  .ziwei-overview-membership > article:last-child { grid-column: auto; }
  .bazi-calculated-heading { align-items: start; flex-direction: column; gap: 8px; }
  .bazi-symbol-meaning-grid, .bazi-reading-tier, .bazi-term-grid, .bazi-pillar-guide-grid, .relation-explanation { grid-template-columns: 1fr; }
  .bazi-symbol-meaning > p { min-height: 0; }
  .bazi-specific-reading > div { grid-template-columns: 1fr; gap: 4px; }
  .bazi-reading-tier > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .bazi-field-guide > summary { align-items: start; padding: 15px; }
  .bazi-field-guide-body { padding: 15px; }
  .relation-explanation > section { border-right: 0; border-bottom: 1px solid var(--line); }
  .relation-explanation > section:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .relation-explanation > section:last-child { border-bottom: 0; }
  .relation-member-lock { align-items: stretch; flex-direction: column; }
  .relation-member-lock .button { width: 100%; text-align: center; }
  .member-frosted-glass { padding: 14px; }
  .member-frosted-callout { padding: 19px 17px; }
  .member-frosted-callout h3 { font-size: 21px; }
  .member-frosted-callout .button { width: 100%; min-width: 0; }
  .member-frosted--modules { min-height: 590px; }
  .member-frosted--relation { min-height: 430px; margin: 10px; }
  .guanxu-chain > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .guanxu-chain > div:last-child { border-bottom: 0; }
}

/* -------------------------------------------------------------------------- */
/* 观序视觉系统 2026.07 · 宣传主视觉同源改版                                  */
/* -------------------------------------------------------------------------- */

:root {
  --paper: #f5f0e6;
  --paper-deep: #e9dfce;
  --surface: #fffdf7;
  --surface-muted: #f2eadc;
  --ink: #102d27;
  --muted: #68756f;
  --line: #d9cdb9;
  --line-strong: #bda98c;
  --pine: #0f4b3e;
  --pine-dark: #093b32;
  --pine-soft: #e4ede8;
  --cinnabar: #b33b2e;
  --cinnabar-soft: #f4e2dc;
  --brass: #b88a43;
  --brass-soft: #f3e5c9;
  --gold: #c99a4f;
  --gold-soft: #f7ecd6;
  --shadow-sm: 0 12px 34px rgba(25, 48, 40, .075);
  --shadow-md: 0 28px 72px rgba(23, 47, 39, .13);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --content: 1240px;
}

html {
  background: var(--paper);
}

body {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 86% 8%, rgba(15, 75, 62, .09) 0 13%, transparent 13.2%),
    radial-gradient(circle at 86% 8%, transparent 0 18%, rgba(15, 75, 62, .045) 18.2% 22%, transparent 22.2%),
    linear-gradient(135deg, rgba(255,255,255,.36), transparent 42%),
    var(--paper);
}

body::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 18%, var(--cinnabar) 50%, var(--gold) 82%, transparent);
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: auto -12vw -26vw auto;
  width: 62vw;
  aspect-ratio: 1;
  border: 1px solid rgba(184, 138, 67, .16);
  border-radius: 50%;
  box-shadow:
    0 0 0 7vw rgba(15, 75, 62, .025),
    0 0 0 14vw rgba(184, 138, 67, .018);
  pointer-events: none;
}

.site-header {
  top: 0;
  border-bottom-color: rgba(184, 138, 67, .28);
  background: rgba(247, 242, 232, .88);
  box-shadow: 0 10px 36px rgba(27, 54, 45, .055);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.header-inner {
  min-height: 82px;
  gap: 32px;
}

.brand-seal {
  width: 46px;
  height: 46px;
  padding: 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-copy strong {
  color: var(--pine-dark);
  font-size: 21px;
  letter-spacing: .16em;
}

.brand-copy small {
  color: #8a7150;
  letter-spacing: .13em;
}

.desktop-nav {
  gap: 7px;
}

.desktop-nav a {
  min-height: 46px;
  padding-inline: 13px;
  border-bottom: 0;
  border-radius: 12px;
  transition: color .18s ease, background .18s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.desktop-nav a[aria-current="page"] {
  color: var(--pine-dark);
  border-color: transparent;
  background: rgba(15, 75, 62, .08);
}

.header-cta {
  min-height: 48px;
  padding-inline: 22px;
  border-color: var(--pine);
  box-shadow: 0 10px 24px rgba(15, 75, 62, .18);
}

.button {
  min-height: 48px;
  padding-inline: 21px;
  border-radius: 14px;
}

.button-primary {
  background: linear-gradient(135deg, var(--pine), var(--pine-dark));
  box-shadow: 0 10px 24px rgba(15, 75, 62, .16);
}

.button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #155a4b, var(--pine));
  box-shadow: 0 14px 28px rgba(15, 75, 62, .2);
}

.button-secondary {
  color: var(--pine-dark);
  border-color: rgba(15, 75, 62, .38);
  background: rgba(255, 253, 247, .78);
}

.page {
  padding-top: 60px;
}

.page-header {
  position: relative;
  padding: 30px 34px;
  overflow: hidden;
  border: 1px solid rgba(184, 138, 67, .28);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 94% 4%, rgba(15, 75, 62, .12), transparent 28%),
    linear-gradient(135deg, rgba(255,253,247,.94), rgba(246,239,225,.88));
  box-shadow: var(--shadow-sm);
}

.page-header::after {
  content: "序";
  position: absolute;
  right: 32px;
  top: 50%;
  color: rgba(179, 59, 46, .07);
  font: 700 116px/1 "STSong", "Songti SC", serif;
  transform: translateY(-50%);
  pointer-events: none;
}

.page-header > * {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--pine-dark);
  font-size: clamp(38px, 4.5vw, 56px);
}

.eyebrow,
.section-kicker,
.home-card-kicker {
  color: var(--cinnabar);
  letter-spacing: .19em;
}

.wizard-card,
.panel,
.result-card,
.settings-card,
.consent-card,
.module-card,
.record-card,
.profile-reuse-card,
.empty-state,
.error-state {
  border-color: rgba(189, 169, 140, .58);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255,255,255,.38), transparent 34%),
    rgba(255, 253, 247, .94);
  box-shadow: var(--shadow-sm);
}

.module-card,
.home-route-grid > a,
.settings-card,
.record-card {
  position: relative;
  overflow: hidden;
}

.module-card::before,
.home-route-grid > a::before,
.settings-card::before,
.record-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), transparent 74%);
}

.module-card:hover,
.home-route-grid > a:hover {
  border-color: rgba(184, 138, 67, .75);
  box-shadow: 0 20px 48px rgba(25, 48, 40, .11);
}

.page-home {
  position: relative;
  padding-top: 42px;
}

.page-home::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18px;
  right: -12vw;
  width: min(720px, 58vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 43%, rgba(184, 138, 67, .16) 43.2% 43.5%, transparent 43.8% 55%, rgba(15, 75, 62, .075) 55.2% 65%, transparent 65.2%);
  pointer-events: none;
}

.home-hero {
  min-height: 650px;
  grid-template-columns: minmax(0, .95fr) minmax(440px, .88fr);
  gap: clamp(48px, 7vw, 92px);
  padding: 36px 0 42px;
}

.home-hero-copy {
  padding-block: 56px;
}

.home-hero-copy h1 {
  max-width: 9em;
  color: var(--pine-dark);
  font-size: clamp(54px, 5.5vw, 76px);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.home-hero-copy h1::after {
  content: "";
  display: block;
  width: 96px;
  height: 2px;
  margin-top: 28px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold));
}

.home-hero-copy > p {
  max-width: 610px;
  color: #52615b;
  font-size: 18px;
}

.home-hero-actions {
  margin-top: 32px;
}

.home-report-preview {
  min-height: 548px;
  padding: 0 34px 34px;
  overflow: hidden;
  border: 6px solid #15342d;
  border-radius: 46px;
  background:
    linear-gradient(180deg, var(--pine-dark) 0 92px, transparent 92px),
    var(--surface);
  box-shadow:
    0 38px 76px rgba(15, 46, 38, .2),
    inset 0 0 0 1px rgba(255,255,255,.42);
}

.home-report-preview::before {
  top: 0;
  left: 50%;
  width: 132px;
  height: 26px;
  border: 0;
  border-radius: 0 0 18px 18px;
  background: #15342d;
  transform: translateX(-50%);
}

.home-report-preview header {
  min-height: 92px;
  margin: 0 -34px;
  padding: 22px 32px 15px;
  border-bottom: 0;
}

.home-report-preview header span {
  color: #f8ead0;
  font-size: 17px;
}

.home-report-preview header small {
  color: rgba(248, 234, 208, .7);
}

.home-preview-seal {
  margin: 27px 0 18px;
  border-color: rgba(179, 59, 46, .22);
  border-radius: 14px;
  box-shadow: 0 9px 24px rgba(113, 46, 37, .08);
}

.home-report-preview h2 {
  color: var(--pine-dark);
  font-size: 33px;
}

.home-preview-chapters {
  border-color: rgba(184, 138, 67, .3);
}

.home-preview-action {
  color: var(--cinnabar);
}

.home-trust-strip {
  overflow: hidden;
  border: 1px solid rgba(184, 138, 67, .28);
  border-radius: 20px;
  background: rgba(255, 253, 247, .74);
  box-shadow: var(--shadow-sm);
}

.home-trust-strip > div {
  padding: 23px 24px;
  border-left-color: rgba(184, 138, 67, .24);
}

.home-reading-steps {
  overflow: hidden;
  border: 1px solid rgba(184, 138, 67, .28);
  border-radius: 22px;
  background: rgba(255, 253, 247, .78);
  box-shadow: var(--shadow-sm);
}

.home-reading-steps li {
  padding: 30px 27px;
  border-left-color: rgba(184, 138, 67, .25);
}

.home-reading-steps li > span {
  color: #fff9ed;
  border-color: var(--pine);
  background: var(--pine);
  box-shadow: 0 8px 18px rgba(15, 75, 62, .18);
}

.home-route-grid {
  gap: 22px;
}

.home-route-grid > a {
  min-height: 250px;
  padding: 29px;
  border-color: rgba(189, 169, 140, .62);
  border-radius: 24px;
  background: rgba(255, 253, 247, .92);
}

.home-route-grid > a:first-child {
  color: #f9f2e5;
  border-color: var(--pine);
  background:
    radial-gradient(circle at 100% 0, rgba(201,154,79,.18), transparent 34%),
    linear-gradient(145deg, var(--pine), var(--pine-dark));
}

.home-route-grid > a:first-child :is(.home-card-kicker, strong) {
  color: #e9c889;
}

.home-route-grid > a:first-child p {
  color: rgba(249, 242, 229, .75);
}

.wizard-layout {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
}

.stepper {
  padding: 22px 18px;
  border: 1px solid rgba(184, 138, 67, .26);
  border-radius: 22px;
  background: rgba(255,253,247,.68);
  backdrop-filter: blur(12px);
}

.stepper li::before {
  border-color: rgba(184, 138, 67, .52);
  background: var(--surface);
}

.wizard-card {
  padding: 34px;
}

.field input,
.field select,
.field textarea,
.birth-date-field select,
.records-search input,
.ai-form input {
  min-height: 52px;
  border-color: rgba(189, 169, 140, .72);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 2px rgba(40, 54, 48, .035);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.birth-date-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,154,79,.14);
}

.coordinate-card,
.birth-date-field,
.local-account-note {
  border-color: rgba(184, 138, 67, .28);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--gold-soft), rgba(255,253,247,.78));
}

.result-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 38px 40px;
  color: #fff9ed;
  border: 1px solid rgba(201, 154, 79, .5);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 12%, rgba(201,154,79,.24), transparent 24%),
    linear-gradient(145deg, var(--pine), var(--pine-dark));
  box-shadow: var(--shadow-md);
}

.result-header::after {
  content: "序";
  display: block;
  right: 38px;
  top: 50%;
  color: rgba(249, 242, 229, .1);
  border: 1px solid rgba(249,242,229,.11);
  background: transparent;
  font-size: 82px;
  transform: translateY(-50%);
}

.result-header h1,
.result-header p {
  position: relative;
  z-index: 1;
  color: inherit;
}

.result-header .eyebrow,
.result-header .meta {
  color: #e9c889;
}

.result-page .result-card {
  border-color: rgba(189, 169, 140, .55);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(25, 48, 40, .075);
}

.report-toc {
  overflow: hidden;
  border-left-color: var(--gold);
  border-radius: 0 16px 16px 0;
  background: rgba(255,253,247,.86);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.auth-layout {
  border-color: rgba(184, 138, 67, .42);
  border-radius: 32px;
  box-shadow: 0 34px 84px rgba(17, 52, 43, .17);
}

.auth-intro {
  background:
    radial-gradient(circle at 88% 8%, rgba(201,154,79,.2), transparent 28%),
    linear-gradient(145deg, var(--pine), var(--pine-dark));
}

.auth-card {
  background:
    radial-gradient(circle at 100% 0, rgba(184,138,67,.1), transparent 28%),
    var(--surface);
}

.site-footer {
  color: #efe6d6;
  border-top-color: rgba(201, 154, 79, .42);
  background:
    radial-gradient(circle at 90% 0, rgba(201,154,79,.14), transparent 34%),
    var(--pine-dark);
}

.footer-inner {
  padding-block: 42px;
}

.footer-inner strong {
  color: #fff9ed;
}

.footer-inner p,
.footer-inner nav a,
.footer-disclaimer {
  color: rgba(239, 230, 214, .7);
}

.footer-inner nav a:hover {
  color: #e9c889;
}

@media (max-width: 1080px) {
  .header-inner {
    gap: 18px;
  }

  .desktop-nav a {
    padding-inline: 9px;
  }

  .home-hero {
    grid-template-columns: minmax(0, .9fr) minmax(390px, .8fr);
    gap: 44px;
  }
}

@media (max-width: 820px) {
  body {
    background:
      radial-gradient(circle at 100% 0, rgba(15,75,62,.08), transparent 26%),
      var(--paper);
  }

  body::after {
    display: none;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-seal {
    width: 46px;
    height: 46px;
    border-radius: 0;
  }

  .page {
    width: min(var(--content), calc(100% - 28px));
    padding-top: 30px;
  }

  .page-header {
    padding: 25px;
    border-radius: 24px;
  }

  .page-header::after {
    right: 18px;
    font-size: 88px;
  }

  .page-home::before {
    top: 320px;
    right: -45vw;
    width: 120vw;
  }

  .home-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 8px;
  }

  .home-hero-copy {
    padding: 28px 4px 10px;
  }

  .home-hero-copy h1 {
    max-width: 10em;
    font-size: clamp(44px, 10vw, 60px);
  }

  .home-report-preview {
    width: min(590px, 100%);
    max-width: none;
    min-height: 520px;
    margin-inline: auto;
  }

  .wizard-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .stepper {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 12px 10px;
    overflow: hidden;
    border-radius: 18px;
  }

  .stepper li {
    min-height: 54px;
    padding: 35px 2px 0;
    text-align: center;
    font-size: 11px;
  }

  .stepper li::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .stepper li::after {
    top: 14px;
    right: -50%;
    bottom: auto;
    left: 50%;
    width: 100%;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .result-header {
    padding: 30px 28px;
  }

  .mobile-nav {
    min-height: calc(76px + env(safe-area-inset-bottom));
    padding: 6px 10px env(safe-area-inset-bottom);
    border-top-color: rgba(184, 138, 67, .34);
    background: rgba(255, 253, 247, .91);
    box-shadow: 0 -14px 36px rgba(18, 52, 43, .12);
  }

  .mobile-nav a {
    min-height: 64px;
    border-radius: 17px;
  }

  .mobile-nav a.is-active,
  .mobile-nav a[aria-current="page"] {
    color: var(--pine);
  }

  .mobile-nav a.is-active .mobile-nav-icon,
  .mobile-nav a[aria-current="page"] .mobile-nav-icon {
    color: #fff9ed;
    background: var(--pine);
    box-shadow: 0 8px 18px rgba(15, 75, 62, .2);
  }
}

@media (max-width: 560px) {
  .page {
    width: calc(100% - 20px);
    padding: 22px 0 calc(94px + env(safe-area-inset-bottom));
  }

  .page-header {
    margin-bottom: 18px;
    padding: 22px 20px;
    border-radius: 21px;
  }

  .page-header h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .page-header p {
    font-size: 15px;
    line-height: 1.72;
  }

  .page-header::after {
    right: 10px;
    font-size: 68px;
  }

  .home-hero-copy {
    padding: 20px 8px 4px;
  }

  .home-hero-copy h1 {
    max-width: 9em;
    font-size: clamp(39px, 12vw, 50px);
    line-height: 1.11;
  }

  .home-hero-copy h1::after {
    margin-top: 20px;
  }

  .home-hero-copy > p {
    font-size: 16px;
  }

  .home-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-hero-actions .button {
    width: 100%;
  }

  .home-report-preview {
    min-height: 0;
    padding: 0 21px 25px;
    border-width: 4px;
    border-radius: 32px;
    background:
      linear-gradient(180deg, var(--pine-dark) 0 78px, transparent 78px),
      var(--surface);
  }

  .home-report-preview::before {
    width: 100px;
    height: 21px;
  }

  .home-report-preview header {
    min-height: 78px;
    margin-inline: -21px;
    padding: 18px 20px 12px;
  }

  .home-report-preview header span {
    font-size: 15px;
  }

  .home-report-preview header small {
    max-width: 104px;
    text-align: right;
  }

  .home-report-preview h2 {
    font-size: 27px;
  }

  .home-trust-strip,
  .home-reading-steps {
    border-radius: 18px;
  }

  .home-trust-strip > div,
  .home-reading-steps li {
    padding: 21px 19px;
  }

  .home-route-grid > a {
    min-height: 220px;
    padding: 24px;
    border-radius: 21px;
  }

  .wizard-card,
  .panel,
  .result-card,
  .settings-card,
  .consent-card {
    padding: 21px;
    border-radius: 20px;
  }

  .wizard-card {
    padding-bottom: 86px;
  }

  .wizard-card > .form-actions {
    bottom: calc(78px + env(safe-area-inset-bottom));
    margin-inline: -21px;
    padding: 13px 21px;
    border-top-color: rgba(184, 138, 67, .28);
    background: rgba(255,253,247,.94);
  }

  .result-header {
    padding: 25px 22px;
    border-radius: 22px;
  }

  .result-header h1 {
    font-size: 32px;
  }

  .result-header::after {
    display: none;
  }

  .result-page .result-card {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .auth-page {
    width: calc(100% - 18px);
  }

  .auth-layout {
    border-radius: 24px;
  }

  .auth-card {
    padding: 27px 20px;
  }

  .auth-intro {
    padding: 31px 23px;
  }

  .field input,
  .field select,
  .birth-date-field select {
    min-height: 50px;
  }
}
