/* ============================================================
   星轨 · 古典占星 — "玄金几何 / Hermetic Gold Geometry" theme
   Near-black void + hair-thin 24k gold. Dignity rendered as metal.
   ============================================================ */
:root {
  --bg: #05080A;
  --bg-in: #0C1310;
  --bg-out: #03060A;
  --surface: #0B100E;
  --panel: rgba(11, 16, 14, 0.72);
  --raised: #121A16;
  --scrim: rgba(3, 6, 10, 0.85);

  --primary: #E6C869;
  --gold-deep: #8A6D2F;
  --gold-mid: #CAA24A;
  --gold-bright: #F3E3A6;
  --gold-line: #9A8A5E;
  --accent: #F3E3A6;
  --gold-soft: #D9C58F;      /* 柔金：后台面板文字 / 蜡烛上传框 / 祈祷文等（以前从未定义，审计 B16） */

  --text: #E8E2CF;
  --muted: #9A8A5E;
  --faint: #6B6450;

  --dignified: #F7ECBF;
  --debilitated: #7E9486;
  --neutral: #C9C2A8;
  --oxblood: #B85C4A;
  --oxblood-deep: #7A1F2B;
  --verdigris: #4F8F7A;

  --hair: rgba(230, 200, 105, 0.18);
  --hair-strong: rgba(230, 200, 105, 0.30);
  --border: rgba(230, 200, 105, 0.28);
  --focus: #F3E3A6;

  --f-disp: "Cinzel", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --f-sec: "Cormorant Garamond", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Garamond, serif;
  --f-lat: "EB Garamond", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Garamond, serif;
  --f-zh: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;

  --sp: 8px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 90% at 50% -8%, var(--bg-in) 0%, var(--bg) 55%, var(--bg-out) 100%) fixed;
  color: var(--text);
  font-family: var(--f-zh);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgba(230, 200, 105, 0.22); color: #fff; }

/* ---------- ambient mandala ---------- */
.void-mandala {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.07;
}
.void-mandala svg {
  width: min(150vh, 150vw); height: min(150vh, 150vw);
  animation: spin 240s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- views ---------- */
.view { position: relative; z-index: 1; display: none; min-height: 100vh; }
.view.active { display: block; animation: viewIn 0.7s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.btn-primary {
  appearance: none; cursor: pointer;
  background: transparent; color: var(--gold-bright);
  border: 1px solid var(--primary); border-radius: 999px;
  font-family: var(--f-disp); font-size: 14px; font-weight: 500;
  letter-spacing: 0.28em; padding: 14px 34px 14px 40px;
  position: relative; transition: all 0.35s ease; overflow: hidden;
}
.btn-primary .btn-orn { margin-left: 6px; color: var(--gold-mid); }
.btn-primary::after {
  content: ""; position: absolute; inset: -1px; border-radius: 999px;
  border: 1px solid var(--accent); opacity: 0; transform: scale(1.08); transition: all 0.4s ease;
}
.btn-primary:hover { border-color: var(--accent); color: #fff; box-shadow: 0 0 24px rgba(243, 227, 166, 0.18); }
.btn-primary:hover::after { opacity: 0.5; transform: scale(1); }
.btn-primary:disabled { opacity: 0.5; cursor: wait; }
.btn-primary.loading { color: transparent; }
.btn-primary.loading::before {
  content: "✦"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--gold-bright); animation: pulse 1s ease-in-out infinite; letter-spacing: 0;
}
.btn-sm { padding: 10px 22px; font-size: 12px; }
.btn-ghost {
  background: transparent; color: var(--muted); cursor: pointer;
  border: 1px solid var(--hair); border-radius: 999px; padding: 8px 18px;
  font-family: var(--f-zh); font-size: 13px; letter-spacing: 0.08em; transition: all 0.3s ease;
}
.btn-ghost:hover { color: var(--gold-bright); border-color: var(--border); }
.back-link {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-family: var(--f-zh); font-size: 14px; letter-spacing: 0.1em; padding: 4px 0; margin-bottom: 18px; position: relative;
}
.back-link::before { content: ""; position: absolute; inset: -8px -6px; }   /* 44px 触控热区 */
.back-link:hover { color: var(--gold-bright); }

/* ---------- landing ---------- */
.landing-inner {
  max-width: 640px; margin: 0 auto; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 22px;
}
.sigil svg { width: 64px; height: 64px; fill: none; stroke: var(--primary); stroke-width: 0.8;
  opacity: 0.85; margin-bottom: 28px; }
.sigil svg polygon { stroke: var(--gold-mid); }
.kicker { font-family: var(--f-disp); font-size: 11px; letter-spacing: 0.42em;
  color: var(--muted); margin: 0 0 18px; text-indent: 0.42em; }
.title { font-family: var(--f-sec); font-weight: 500;
  font-size: clamp(56px, 13vw, 104px); letter-spacing: 0.22em; margin: 0;
  color: var(--gold-bright); text-indent: 0.22em;
  text-shadow: 0 0 40px rgba(230, 200, 105, 0.22); }
.subtitle { font-family: var(--f-zh); font-weight: 500; font-size: clamp(17px, 3.4vw, 22px);
  letter-spacing: 0.34em; color: var(--text); margin: 14px 0 0; text-indent: 0.34em; }
.lede { color: var(--muted); font-size: 15px; line-height: 2; margin: 26px 0 38px; max-width: 30em; }
.disclaimer { color: var(--faint); font-size: 12px; letter-spacing: 0.05em; margin-top: 40px; }
.hairrule, .landing-inner::before {
  content: ""; width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
}

/* ---------- milled panel ---------- */
.form-inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 22px 100px; }
.form-inner { max-width: 480px; }
#birth-form {
  position: relative; background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(11, 16, 14, 0.6), inset 0 0 0 2px var(--hair), 0 24px 60px rgba(3, 6, 10, 0.6);
  padding: 32px; border-radius: 2px;
}
#birth-form::before, #birth-form::after {
  content: "✦"; position: absolute; color: var(--gold-mid); font-size: 9px; opacity: 0.6;
}
#birth-form::before { top: 7px; left: 9px; }
#birth-form::after { bottom: 7px; right: 9px; }

.panel-title { font-family: var(--f-zh); font-weight: 600; font-size: 22px;
  letter-spacing: 0.16em; color: var(--gold-bright); margin: 0 0 6px; }
.form-hint, .form-inner > .form-hint { color: var(--muted); font-size: 13.5px; margin: 0 0 26px; }
.form-hint strong { color: var(--gold-bright); font-weight: 500; }

/* ---------- form fields (baseline underline) ---------- */
.field-row { display: flex; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 22px; flex: 1; position: relative; }
.field-narrow { flex: 0 0 30%; }
.field-label { font-family: var(--f-disp); font-size: 10.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  appearance: none; background: transparent; border: none;
  border-bottom: 1px solid var(--hair-strong);
  color: var(--text); font-family: var(--f-zh); font-size: 16px;
  padding: 8px 2px; transition: border-color 0.3s ease; width: 100%;
}
.field select { cursor: pointer; }
.field option { background: var(--surface); color: var(--text); }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--accent); }
.field input::placeholder { color: var(--faint); }
.field input[type="date"], .field input[type="time"] { color-scheme: dark; }

.checkrow { display: flex; align-items: center; gap: 10px; color: var(--muted);
  font-size: 14px; cursor: pointer; margin: -8px 0 6px; }
.checkrow input { accent-color: var(--gold-mid); width: 16px; height: 16px; }
.inline-note { color: var(--gold-mid); font-size: 12.5px; margin: 2px 0 18px; line-height: 1.6; }

.city-wrap { position: relative; }
.suggest-box {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30;
  background: var(--raised); border: 1px solid var(--border); border-radius: 2px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6); max-height: 260px; overflow-y: auto; display: none;
}
.suggest-box.open { display: block; }
.suggest-item { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px;
  cursor: pointer; border-bottom: 1px solid var(--hair); transition: background 0.15s; }
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: rgba(230, 200, 105, 0.08); }
.sg-zh { color: var(--text); font-size: 15px; }
.sg-en { color: var(--muted); font-size: 12px; font-family: var(--f-lat); }
.sg-tz { margin-left: auto; color: var(--faint); font-size: 11px; font-family: var(--f-lat); }
.coords-tag { color: var(--gold-mid); font-size: 12px; letter-spacing: 0.06em; min-height: 16px; margin-top: 6px; }

.form-error { color: var(--oxblood); font-size: 13px; min-height: 18px; margin: 4px 0 14px; }
#birth-form .btn-primary { width: 100%; margin-top: 8px; }

.chart-wheel { width: 100%; height: auto; display: block; }
.v-dig { color: var(--dignified); }
.v-deb { color: var(--debilitated); }
.v-neu { color: var(--neutral); }
/* ---------- interpretation ---------- */
.interpret-note { color: var(--muted); font-size: 14px; padding: 14px; border: 1px dashed var(--hair);
  border-radius: 2px; line-height: 1.8; }
.cursor-blink { animation: pulse 1.1s ease-in-out infinite; color: var(--gold-mid); }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ============================================================
   CHART WHEEL
   ============================================================ */
.w-ring { fill: none; stroke: url(#goldStroke); stroke-width: 1; opacity: 0.85; }
.w-ring-guard { stroke-width: 1.4; }
.w-ring-hub { opacity: 0.5; }
.w-tick { stroke: var(--gold-line); stroke-width: 0.4; opacity: 0.4; }
.w-tick-major { stroke: var(--gold-mid); stroke-width: 0.7; opacity: 0.7; }
.w-spoke { stroke: var(--gold-line); stroke-width: 0.7; opacity: 0.5; }

.w-sign, .w-pl-glyph, .w-sect-glyph {
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Noto Serif SC", serif;
}
.w-sign { font-size: 22px; fill: var(--dignified); }
.w-elem-Fire { fill: #F0D9A0; } .w-elem-Earth { fill: #D9CF9E; }
.w-elem-Air { fill: #E6DEC0; } .w-elem-Water { fill: #CFE0D2; }

.w-house { font-family: var(--f-disp); font-size: 13px; fill: var(--gold-line);
  letter-spacing: 0.04em; opacity: 0.8; }

.w-axis { stroke: var(--accent); stroke-width: 1.8; opacity: 0.88; }
.w-axis-mcic { opacity: 0.7; }
.w-axis-tag { font-family: var(--f-disp); font-size: 12px; fill: var(--accent);
  letter-spacing: 0.14em; }
.w-axis-ghost { opacity: 0.4 !important; stroke-dasharray: 4 5; }
.w-unknown-tag { font-family: var(--f-zh); font-size: 12px; fill: var(--gold-mid); letter-spacing: 0.1em; }

.w-asp { stroke-linecap: round; transition: opacity 0.3s; }
.w-asp-trine { stroke: var(--primary); stroke-width: 1.4; }
.w-asp-sextile { stroke: var(--gold-mid); stroke-width: 1; }
.w-asp-square { stroke: var(--verdigris); stroke-width: 1; stroke-dasharray: 3 4; }
.w-asp-opp { stroke: var(--oxblood); stroke-width: 1.4; stroke-dasharray: 4 4; }
.w-asp-conj { fill: none; stroke: var(--gold-bright); stroke-width: 1; }
.w-aspects .asp-dim { opacity: 0.12 !important; }

.w-ptick { stroke: var(--gold-mid); stroke-width: 0.8; opacity: 0.6; }
.w-pl-disc { fill: #06090B; stroke: var(--neutral); stroke-width: 1.3; }
.w-pl-glyph { font-size: 19px; fill: var(--neutral); }
.w-pl-deg { font-family: var(--f-sec); font-size: 11px; fill: var(--muted); }
.w-pl-retro { font-size: 11px; fill: var(--oxblood); }

.w-planet { cursor: pointer; transition: transform 0.25s ease; transform-box: fill-box;
  transform-origin: center; outline: none; }
.w-planet:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 50%; }
.w-planet.is-active, .w-planet:hover { transform: scale(1.15); }

.is-dignified .w-pl-disc { stroke: var(--gold-bright); stroke-width: 1.6; }
.is-dignified .w-pl-glyph { fill: var(--dignified); filter: url(#dignGlow); }
.is-dignified { animation: dignPulse 4s ease-in-out infinite; }
@keyframes dignPulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
.is-debilitated .w-pl-disc { stroke: var(--debilitated); }
.is-debilitated .w-pl-glyph { fill: var(--debilitated); opacity: 0.75; }
.is-neutral .w-pl-disc { stroke: var(--neutral); }
.is-cazimi .w-pl-glyph { fill: var(--gold-bright); filter: url(#dignGlow); }
.is-cazimi .w-pl-disc { stroke: var(--gold-bright); stroke-width: 2; }
.is-combust .w-pl-glyph { fill: var(--oxblood); opacity: 0.85; }
.is-combust .w-pl-disc { stroke: var(--oxblood); }

.w-sect-disc { fill: rgba(12, 19, 16, 0.9); stroke: var(--gold-mid); stroke-width: 1; }
.w-sect-day .w-sect-glyph, .w-sect-disc.w-sect-day { stroke: var(--gold-bright); }
.w-sect-glyph { font-size: 26px; fill: var(--gold-bright); }
.w-sect-night ~ .w-sect-glyph { fill: var(--text); }
.w-sect-label { font-family: var(--f-disp); font-size: 8px; fill: var(--muted); letter-spacing: 0.12em; }

/* ============================================================
   RESPONSIVE  (breakpoint 960)
   ============================================================ */
@media (max-width: 960px) {
}
@media (max-width: 620px) {
  .field-row { flex-direction: column; gap: 0; }
  .field-narrow { flex: 1; }
  .form-inner { padding: 40px 14px 80px; }
  #birth-form { padding: 22px 16px; }
}

/* ============================================================
   THE REPORT  (multi-chapter, print/PDF optimized)
   ============================================================ */
#view-report { padding: 0; }
.rpt-loading { min-height: 78vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 20px; animation: viewIn 0.4s ease both; }
.rpt-loading .orbit { font-size: 32px; color: var(--gold-bright); animation: pulse 1.2s ease-in-out infinite; }
.rpt-loading-sigil svg { width: 78px; height: 78px; fill: none; stroke: var(--primary); stroke-width: 0.7;
  opacity: 0.9; animation: spin 8s linear infinite; filter: drop-shadow(0 0 14px rgba(230,200,105,0.25)); }
.rpt-loading-sigil svg polygon { stroke: var(--gold-mid); }
.rpt-loading-title { font-family: var(--f-zh); font-weight: 600; font-size: 19px; letter-spacing: 0.14em;
  color: var(--gold-bright); margin: 0; }
.rpt-loading-sub { color: var(--muted); font-size: 13.5px; letter-spacing: 0.08em; margin: 0;
  animation: pulse 1.6s ease-in-out infinite; min-height: 1.2em; }
.rpt-err { color: var(--oxblood); text-align: center; padding: 80px 20px; }

.report-toolbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 22px; background: rgba(5, 8, 10, 0.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.rtb-title { font-family: var(--f-zh); font-weight: 600; letter-spacing: 0.1em; color: var(--gold-bright); font-size: 15px; }
.rtb-actions { margin-left: auto; display: flex; gap: 8px; }
.rtb-progress { width: 100%; display: none; align-items: center; gap: 12px; margin-top: 6px; }
.rtb-progress.active { display: flex; }
.rtb-bar { flex: 1; height: 4px; background: rgba(230, 200, 105, 0.12); border-radius: 2px; overflow: hidden; }
.rtb-bar i { display: block; height: 100%; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  box-shadow: 0 0 8px rgba(243, 227, 166, 0.4); transition: width 0.6s ease; }
.rtb-ptext { color: var(--gold-mid); font-size: 12.5px; letter-spacing: 0.05em; white-space: nowrap; }

.report-doc { max-width: 860px; margin: 0 auto; padding: 0 22px 120px; }

.chapter {
  position: relative; padding: 56px 0 44px; border-top: 1px solid var(--hair);
}
.chapter:first-child { border-top: none; }

/* cover */
.cover-chapter { min-height: 94vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; border: none; }
.cover-kicker { font-family: var(--f-disp); font-size: 11px; letter-spacing: 0.4em; color: var(--muted); }
.cover-name { font-family: var(--f-sec); font-weight: 500; font-size: clamp(40px, 8vw, 76px);
  color: var(--gold-bright); letter-spacing: 0.1em; margin: 10px 0 6px; text-shadow: 0 0 36px rgba(230,200,105,0.2); }
.cover-meta { color: var(--muted); font-family: var(--f-lat); font-size: 14px; letter-spacing: 0.04em; }
.cover-wheel { width: min(560px, 92%); margin: 18px auto 8px; }
.cover-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 40px; justify-content: center;
  margin: 12px 0 6px; }
.cover-facts div { font-size: 15px; color: var(--gold-bright); }
.cover-facts span { display: block; font-family: var(--f-disp); font-size: 9.5px; letter-spacing: 0.18em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 2px; }
.cover-rule { width: 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-mid), transparent); margin: 24px auto; }
.cover-tag { color: var(--faint); font-size: 12px; letter-spacing: 0.12em; }

/* chapter heads */
.ch-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 22px; }
.ch-no { font-family: var(--f-disp); font-size: 34px; color: var(--gold-deep); line-height: 1; min-width: 1.4em; }
.ch-sub { font-family: var(--f-disp); font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.ch-title { font-family: var(--f-zh); font-weight: 600; font-size: 25px; letter-spacing: 0.12em; color: var(--gold-bright); margin: 3px 0 0; }

.ch-data { margin-bottom: 20px; }
.ch-data h5, .ch-ai h5 { font-family: var(--f-zh); font-weight: 600; color: var(--gold-mid); letter-spacing: 0.1em;
  font-size: 14px; margin: 18px 0 8px; }

/* report tables */
.rtab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rtab thead th { font-family: var(--f-disp); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--hair-strong); font-weight: 500; }
.rtab td { padding: 9px; border-bottom: 1px solid var(--hair); }
.rtab td.c { text-align: center; }
.rtab tr.v-dig { border-left: 2px solid var(--dignified); }
.rtab tr.v-deb { border-left: 2px solid var(--debilitated); }
.rtab .v-dig { color: var(--dignified); } .rtab .v-deb { color: var(--debilitated); } .rtab .v-neu { color: var(--neutral); }
.pg { font-size: 17px; margin-right: 7px; font-family: "Segoe UI Symbol","Noto Sans Symbols 2", serif; }

.kv { font-size: 14px; color: var(--text); padding: 7px 0; border-bottom: 1px solid var(--hair); line-height: 1.8; }
.kv b { color: var(--gold-mid); font-weight: 500; margin-right: 8px; font-size: 12.5px; letter-spacing: 0.05em; }
.muted-note { color: var(--faint); font-size: 12px; }

.humors { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.hbar { display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.hbar-track { height: 8px; background: rgba(230,200,105,0.1); border-radius: 4px; overflow: hidden; }
.hbar-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); }
.hbar-v { color: var(--gold-bright); text-align: right; }

.lotgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lotcell { background: rgba(18,26,22,0.5); border: 1px solid var(--hair); border-radius: 2px; padding: 10px 12px; font-size: 13px; color: var(--text); }
.lotcell b { display: block; color: var(--gold-bright); font-weight: 500; margin-bottom: 3px; font-size: 12.5px; }
.reclist { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-direction: column; gap: 6px; }
.reclist li { font-size: 13.5px; color: var(--text); padding: 8px 12px; border: 1px solid var(--hair); border-radius: 2px; background: rgba(18,26,22,0.4); line-height: 1.6; }
.reclist b { color: var(--gold-mid); font-weight: 500; }

/* AI narrative */
.ch-ai { font-family: var(--f-zh); font-size: 15.5px; line-height: 2.05; color: var(--text); }
.ch-ai p { margin: 0 0 16px; }
.ch-ai strong { color: var(--gold-bright); font-weight: 500; }
.ch-ai ul { margin: 0 0 16px; padding-left: 1.2em; }
.ch-ai li { margin: 4px 0; }
.ch-ai.streaming { color: var(--text); }
.ai-gen { background: transparent; border: 1px solid var(--border); color: var(--gold-bright); cursor: pointer;
  font-family: var(--f-disp); font-size: 12px; letter-spacing: 0.16em; padding: 11px 24px; border-radius: 999px; transition: all .3s; }
.ai-gen:hover { border-color: var(--accent); box-shadow: 0 0 18px rgba(243,227,166,0.15); }
.ai-gen:disabled { opacity: .55; cursor: wait; }
.interpret-note { color: var(--muted); font-size: 14px; padding: 14px; border: 1px dashed var(--hair); border-radius: 2px; }
.ai-fail { display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 16px 18px; border: 1px dashed var(--hair-strong); border-radius: 4px; background: rgba(138,109,47,0.06); }
.ai-fail-msg { color: var(--muted); font-family: var(--f-zh); font-size: 14px; line-height: 1.7; }
.ai-retry { color: var(--accent); }

/* 后台生成按钮 + 提示 */
#btn-bgpdf { margin-top: 12px; width: 100%; min-height: 44px; }
.bgpdf-hint { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin: 8px 2px 0; text-align: center; }
.bgpdf-panel { display: none; }   /* 旧的单任务面板已停用，改用右下角浮动任务盘 */

/* 右下角浮动「后台报告任务」盘 —— 多任务，跨页面常驻，互不顶掉。
   bottom 86px = 让开右下角 54px 的 ✦ 助手球（assistant.js：bottom 18px），别再盖住「下载」按钮。
   可点「收起」变成一颗小球挂在右边缘，再点球展开；状态记在 localStorage(xg_tray_min)。 */
#bg-tray { position: fixed; right: 16px; bottom: 86px; z-index: 900; width: min(340px, calc(100vw - 32px));
  background: var(--panel, #17140d); border: 1px solid var(--hair-strong); border-radius: 10px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.45); padding: 12px 13px; font-family: var(--f-zh); }
#bg-tray[hidden] { display: none; }
.bg-head { color: var(--gold-bright); font-size: 12.5px; letter-spacing: .04em; margin-bottom: 9px;
  display: flex; align-items: center; gap: 8px; }
.bg-hint { color: var(--muted); font-size: 11px; font-weight: normal; letter-spacing: 0; margin-left: auto; }
.bg-min { flex: 0 0 auto; background: none; border: 1px solid var(--hair-strong); border-radius: 999px;
  color: var(--muted); cursor: pointer; font-family: var(--f-zh); font-size: 11px; line-height: 1.2; padding: 4px 9px; position: relative; }
.bg-min::before { content: ""; position: absolute; inset: -10px -6px; }   /* 44px 触控热区 */
.bg-min:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
/* 收起态（默认）：一颗 54px 的球，和右下角 ✦ 助手球（54px，right 18px，bottom 18px）上下成对：
   同尺寸、同右边距、间距 12px → bottom = 18 + 54 + 12 = 84px。两颗球各管各的，不合并。 */
#bg-tray.min { right: 18px; bottom: 84px; width: auto; padding: 0; background: none; border: none; box-shadow: none; }
.bg-ball { position: relative; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; padding: 0;
  background: var(--panel, #17140d); border: 1px solid var(--accent); color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 14px rgba(243,227,166,.14);
  display: flex; align-items: center; justify-content: center; font-family: var(--f-zh); font-size: 22px; line-height: 1;
  transition: transform .18s; }
.bg-ball:hover { transform: translateY(-2px) scale(1.05); }
.bg-ball.pct { font-size: 13px; letter-spacing: 0; }
.bg-ball.run { animation: bgpulse 1.6s ease-in-out infinite; }
.bg-ball.done { border-color: var(--gold-bright); color: var(--gold-bright);
  box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 22px rgba(243,227,166,.35); }
.bg-ball.fail { border-color: var(--debilitated); color: var(--debilitated); }
.bg-badge { position: absolute; top: -5px; left: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #171207; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
@keyframes bgpulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 0 0 rgba(243,227,166,.35); }
  50% { box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 0 9px rgba(243,227,166,0); }
}
.bg-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid var(--hair); }
.bg-row:first-of-type { border-top: none; }
.bg-l { flex: 1; color: var(--text); font-size: 13px; line-height: 1.4; min-width: 0; }
.bg-l.bg-fail { color: var(--debilitated); }
.bg-mbar { flex: 0 0 74px; height: 6px; border-radius: 999px; background: var(--hair); overflow: hidden; }
.bg-mbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-bright), var(--accent)); transition: width .5s ease; }
.bg-dl { flex: 0 0 auto; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px;
  padding: 5px 13px; text-decoration: none; font-size: 12.5px; white-space: nowrap; }
.bg-dl:hover { box-shadow: 0 0 14px rgba(243,227,166,0.18); }
.bg-x { flex: 0 0 auto; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 4px; position: relative; }
.bg-x::before { content: ""; position: absolute; inset: -12px -8px; }   /* 44px 触控热区 */

/* Q&A */
.qa-bar { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.qa-input { flex: 1; min-width: 220px; background: transparent; border: none; border-bottom: 1px solid var(--hair-strong);
  color: var(--text); font-family: var(--f-zh); font-size: 16px; padding: 9px 2px; }
.qa-input:focus { outline: none; border-bottom-color: var(--accent); }
.qa-block { margin-bottom: 24px; }
.qa-qline { color: var(--gold-bright); font-size: 15px; margin-bottom: 10px; letter-spacing: 0.03em; }
.qa-aline { font-family: var(--f-zh); font-size: 15.5px; line-height: 2.05; color: var(--text); }
.qa-aline p { margin: 0 0 14px; } .qa-aline strong { color: var(--gold-bright); }

.closing-chapter { text-align: center; }
.closing-line { font-family: var(--f-zh); font-weight: 600; letter-spacing: 0.16em; color: var(--gold-bright); font-size: 18px; }
.closing-disc { color: var(--faint); font-size: 12.5px; max-width: 40em; margin: 14px auto; line-height: 1.9; }
.closing-sig { font-family: var(--f-disp); font-size: 10px; letter-spacing: 0.3em; color: var(--muted); margin-top: 22px; }

@media (max-width: 620px) {
  .cover-facts { grid-template-columns: repeat(2, auto); gap: 10px 24px; }
  .lotgrid { grid-template-columns: 1fr 1fr; }
  .hbar { grid-template-columns: 92px 1fr 40px; }
  .rtab { font-size: 12.5px; }
  .ch-no { font-size: 26px; }
  /* toolbar: stack title over a full-width, evenly-split action row */
  .report-toolbar { padding: 10px 14px; gap: 8px; }
  .rtb-title { font-size: 13.5px; width: 100%; text-align: center; }
  .rtb-actions { margin-left: 0; width: 100%; gap: 6px; }
  .rtb-actions .btn-sm { flex: 1; min-height: 40px; padding: 8px 6px; font-size: 12px; text-align: center; }
  .report-doc { padding: 0 14px 100px; }
  .rtb-ptext { white-space: normal; }
}

/* ---------- report visualizations (B) ---------- */
.viz-title { font-family: var(--f-zh); font-weight: 600; color: var(--gold-mid); letter-spacing: 0.1em; font-size: 14px; margin: 8px 0 12px; }
.viz-sub { color: var(--faint); font-size: 12px; font-weight: 400; letter-spacing: 0.04em; }
.tl-wrap { margin: 4px 0 24px; }
.tl-svg { width: 100%; height: auto; display: block; overflow: visible; }
.tl-sg { font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", serif; font-size: 22px; fill: #05080A; }
.tl-peak { font-size: 16px; fill: var(--gold-bright); }
.tl-tick { stroke: var(--hair-strong); stroke-width: 1; }
.tl-axis { font-family: var(--f-lat); font-size: 13px; fill: var(--muted); }
.tl-now { stroke: var(--oxblood); stroke-width: 1.5; }
.tl-now-l { font-family: var(--f-zh); font-size: 14px; fill: var(--oxblood); }
.db-wrap { margin: 18px 0 4px; }
.db-row { display: grid; grid-template-columns: 28px 1fr 40px; align-items: center; gap: 10px; margin: 7px 0; }
.db-g { font-size: 17px; text-align: center; font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", serif; }
.db-track { position: relative; height: 12px; background: rgba(230, 200, 105, 0.07); border-radius: 3px; }
.db-zero { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--hair-strong); }
.db-bar { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.db-v { font-family: var(--f-sec); font-size: 15px; text-align: right; }

/* ---------- access gate ---------- */
.gate-input { background: transparent; border: none; border-bottom: 1px solid var(--hair-strong);
  color: var(--text); font-family: var(--f-zh); font-size: 18px; letter-spacing: 0.3em; text-align: center;
  padding: 10px 4px; margin: 8px 0 4px; width: min(280px, 80vw); }
.gate-input:focus { outline: none; border-bottom-color: var(--accent); }
#view-gate .btn-primary { margin-top: 14px; }

/* ---------- synastry ---------- */
.landing-syn { margin-top: 14px; letter-spacing: 0.16em; }
.syn-form-inner { max-width: 880px; }
.syn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 18px; }
.syn-person { background: var(--panel); border: 1px solid var(--border); border-radius: 2px; padding: 22px 20px;
  box-shadow: inset 0 0 0 1px var(--hair); }
.syn-person-title { font-family: var(--f-zh); font-weight: 600; font-size: 16px; letter-spacing: 0.12em;
  color: var(--gold-bright); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--hair); }
.syn-person .field { margin-bottom: 16px; }
.syn-relation { max-width: 280px; }
#syn-go, .syn-form-inner .btn-primary { width: 100%; }

.syn-amp { color: var(--gold-mid); font-size: 0.7em; margin: 0 0.2em; }
.syn-wheels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; max-width: 760px; margin: 20px auto 0; }
.syn-wheel-name { font-family: var(--f-zh); font-weight: 600; letter-spacing: 0.12em; color: var(--gold-bright);
  text-align: center; margin-bottom: 8px; font-size: 15px; }

.ov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.ov-cell { background: rgba(18,26,22,0.5); border: 1px solid var(--hair); border-radius: 2px; padding: 9px 10px;
  font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.ov-cell span { margin-left: auto; color: var(--gold-bright); font-size: 12px; }

@media (max-width: 700px) {
  .syn-grid, .syn-wheels { grid-template-columns: 1fr; }
  .ov-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- PRINT / PDF ---------- */
@media print {
  /* PDF prints reliably without "background graphics": flip to a light parchment
     palette (dark ink on cream) so text is always visible. */
  :root {
    --bg: #fdfbf4; --bg-in: #fdfbf4; --bg-out: #fdfbf4; --surface: #fff; --panel: #fff; --raised: #faf6ea;
    --primary: #8a6d2f; --gold-deep: #6b4e16; --gold-mid: #8a6d2f; --gold-bright: #5e4310;
    --accent: #6b4e16; --gold-line: #a8915a;
    --text: #2a2419; --muted: #6b5d3a; --faint: #8a7d5a;
    --dignified: #6b4e10; --debilitated: #2f6b58; --neutral: #5a5443; --oxblood: #9a3324; --verdigris: #2f6b58;
    --hair: rgba(120,100,40,0.22); --hair-strong: rgba(120,100,40,0.38); --border: rgba(120,100,40,0.35);
  }
  .no-print, .report-toolbar, .void-mandala, .ai-gen, .qa-bar, .starfield { display: none !important; }
  html, body { background: #fdfbf4 !important; color: #2a2419 !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report-doc { max-width: 100%; padding: 0 6mm; }
  .chapter { page-break-before: always; border-top: none; padding: 12mm 0 6mm; }
  .cover-chapter { page-break-before: avoid; min-height: 0; padding-top: 2mm; }
  .ch-ai .interpret-note { display: none; }
.lotcell, .reclist li, .syn-person, .ov-cell { background: #faf6ea !important; }
  .cover-name, .ch-title, .closing-line, .rtb-title { text-shadow: none !important; }
.rtab td, .reclist li, .ch-ai p, .lotcell, .tl-wrap, .db-wrap { break-inside: avoid; }
}

/* ---------- accessibility / motion ---------- */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important; }
  .void-mandala svg { animation: none; }
  .is-dignified { opacity: 1; }
}


/* ---------- 现代关系盘 (composite / davison) ---------- */
.modern-tag { font-family: var(--f-zh); font-size: 11px; color: #1a1410; background: var(--gold-mid);
  border-radius: 4px; padding: 1px 7px; vertical-align: middle; margin-left: 8px; letter-spacing: 0.05em; font-weight: 500; }
.modern-note { color: var(--faint); font-size: 12.5px; line-height: 1.7; margin: 4px 0 14px; font-style: italic; }
.rel-wheel { max-width: 420px; margin: 0 auto 16px; }
.rel-asc { color: var(--gold-soft); font-size: 13.5px; margin: 6px 0 10px; }
.rel-asc b { color: var(--gold-bright); }

/* ---------- 读前小词典 (primer) ---------- */
.primer-lede { color: var(--gold-soft); font-size: 14.5px; line-height: 1.85; margin: 4px 0 16px; }
.primer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.primer-item { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: rgba(255,255,255,0.015); }
.primer-item b { display: block; color: var(--gold-bright); font-weight: 500; font-size: 13.5px; margin-bottom: 4px; letter-spacing: 0.04em; }
.primer-item span { color: var(--ink-soft, #cdbfa3); font-size: 12.8px; line-height: 1.7; }
.primer-item i { color: var(--gold-mid); font-style: normal; }
.primer-note { margin-top: 14px; font-size: 12.5px; line-height: 1.75; color: var(--faint);
  border-left: 2px solid var(--gold-deep); padding: 6px 0 6px 12px; }
.primer-note b { color: var(--gold-soft); font-weight: 500; }
@media (max-width: 620px) { .primer-grid { grid-template-columns: 1fr; } }

/* ---------- 生时矫正 (rectify) ---------- */
.rc-events-wrap { margin-top: 6px; }
.rc-events-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rc-evrow { display: flex; gap: 8px; align-items: center; margin: 7px 0; }
.rc-evrow input[type=date], .rc-evrow select { background: rgba(255,255,255,0.03); color: var(--gold-soft);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 16px; }
.rc-evrow input[type=date] { flex: 0 0 150px; }
.rc-evrow select { flex: 1; }
.rc-ev-del { background: none; border: 1px solid var(--border); color: var(--faint); border-radius: 8px;
  width: 34px; height: 34px; cursor: pointer; font-size: 13px; }
.rc-ev-del:hover { color: var(--oxblood); border-color: var(--oxblood); }
.rc-bars { margin: 8px 0 14px; }
.rc-bar { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 8px; }
.rc-bar.rc-top { background: rgba(184,146,60,0.12); box-shadow: 0 0 0 1px rgba(184,146,60,0.3) inset; }
.rc-bsign { font-family: var(--f-zh); font-size: 15px; color: var(--gold-bright); min-width: 64px; }
.rc-bwin { font-variant-numeric: tabular-nums; color: var(--gold-mid); font-size: 12.5px; min-width: 100px; }
.rc-btrack { flex: 1; height: 8px; background: rgba(230,200,105,0.1); border-radius: 4px; overflow: hidden; }
.rc-btrack i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); border-radius: 4px; }
.rc-bscore { color: var(--gold-soft); font-size: 13px; min-width: 22px; text-align: right; }
.rc-anim { color: var(--gold-soft); font-size: 13.5px; margin: 10px 0 6px; line-height: 1.7; }
.rc-anim b { color: var(--gold-bright); }
/* 矫正 v2：来源先验 / 特质 / A-B 自检 */
.rc-traits-wrap { margin: 6px 0 2px; }
.rc-traits { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; margin-top: 8px; }
.rc-traits label { display: flex; align-items: center; gap: 8px; color: var(--gold-soft); font-size: 13.5px; cursor: pointer; }
.rc-traits input { accent-color: var(--gold-bright); }
.rc-prior { color: var(--gold-soft); font-size: 13.5px; line-height: 1.8; margin-top: 12px;
  border: 1px dashed var(--border); border-radius: 8px; padding: 10px 14px; display: inline-block; }
.rc-prior b { color: var(--gold-bright); }
.rc-ab { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 10px; }
.rc-ab-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: rgba(230,200,105,0.05); }
.rc-ab-sign { color: var(--gold-bright); font-family: var(--f-zh); font-size: 16px; margin-bottom: 8px; }
.rc-ab-card ul { margin: 0 0 12px; padding-left: 18px; }
.rc-ab-card li { color: var(--gold-soft); font-size: 13.5px; line-height: 1.8; }

/* ---------- 如尼石 · 卢恩占卜 (runes) ---------- */
.rn-spreads { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.rn-sp { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; transition: border-color .2s, background .2s; }
.rn-sp:has(input:checked) { border-color: var(--accent); background: rgba(230,200,105,0.06); }
.field .rn-sp input, .rn-sp input {           /* 压过全局 .field input 的全宽下划线样式 */
  appearance: radio; -webkit-appearance: radio;
  width: 16px; height: 16px; flex: 0 0 16px;
  padding: 0; margin: 0; border: none; border-bottom: none;
  accent-color: var(--gold-bright);
}
.rn-sp span { color: var(--gold-soft); font-size: 13.5px; line-height: 1.5; flex: 1 1 auto; min-width: 0; }
.rn-sp b { display: block; color: var(--text); font-size: 15px; margin-bottom: 1px; }

.rune-doc .cover-kicker { letter-spacing: 0.42em; }

/* ============ 管理后台 ============ */
/* 右下角三颗球自下而上：✦ 助手球(assistant.js, bottom 18) → 后台任务球(#bg-tray.min, bottom 84) → ⚙ 管理球(bottom 150)，互不重叠 */
.adm-fab { position: fixed; right: 18px; bottom: 150px; z-index: 60; min-height: 44px;
  background: rgba(24,21,14,0.92); color: var(--gold-soft);
  border: 1px solid var(--gold-mid); border-radius: 999px; padding: 9px 16px;
  font-size: 13px; letter-spacing: 0.1em; cursor: pointer; backdrop-filter: blur(4px); }
.adm-fab:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
.adm-fab.hidden { display: none; }
.adm-inner { max-width: 860px; margin: 0 auto; padding: 28px 16px 70px; }
.adm-topline { display: flex; justify-content: space-between; align-items: center; }
#view-admin-login .gate-input { margin-bottom: 12px; }
.adm-title { font-family: var(--f-sec); font-size: 26px; letter-spacing: 0.2em;
  color: var(--gold-bright); margin: 10px 0 4px; }
.adm-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 18px; }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px; margin-bottom: 22px; }
.adm-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px 12px;
  background: rgba(255,255,255,0.02); text-align: center; }
.adm-card-v { font-family: var(--f-lat); font-size: 26px; color: var(--gold-bright); }
.adm-card-t { color: var(--muted); font-size: 12px; margin-top: 3px; letter-spacing: 0.08em; }
.adm-panel { border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 16px 14px; margin-bottom: 18px; background: rgba(255,255,255,0.015); }
.adm-panel h2 { font-size: 15px; letter-spacing: 0.24em; color: var(--gold-soft); margin-bottom: 12px; }
.adm-panel h3 { font-size: 12.5px; color: var(--muted); letter-spacing: 0.12em; margin: 10px 0 6px; }
.adm-newkey { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.adm-newkey input { background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); padding: 9px 10px; font-size: 16px; }
.adm-newkey input:focus { outline: none; border-color: var(--accent); }
.adm-newkey .btn-primary { padding: 9px 10px; font-size: 13.5px; }
.adm-keyout { margin-top: 10px; font-size: 13.5px; color: var(--gold-soft); min-height: 18px; }
.adm-code { font-family: var(--f-lat); background: rgba(230,200,105,0.08);
  border: 1px dashed rgba(230,200,105,0.4); border-radius: 6px; padding: 2px 8px;
  cursor: pointer; letter-spacing: 0.06em; white-space: nowrap; }
.adm-keynew { font-size: 16px; padding: 4px 12px; }
.adm-scroll { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px;
  letter-spacing: 0.08em; padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.adm-table td { padding: 8px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.adm-off td { opacity: 0.45; }
.adm-dim { color: var(--muted); font-size: 12px; }
.adm-geo { color: var(--gold-mid); font-size: 11.5px; margin-top: 1px; white-space: nowrap; }
.adm-mini { background: none; border: 1px solid var(--border); color: var(--gold-soft);
  border-radius: 6px; padding: 3px 9px; font-size: 12px; cursor: pointer; text-decoration: none; position: relative; }
.adm-mini::after { content: ""; position: absolute; inset: -10px 0; }   /* 44px 触控热区（横向不扩，免得相邻按钮打架） */
.adm-mini:hover { border-color: var(--gold-mid); color: var(--gold-bright); }
.adm-mini.adm-danger { color: #d9707f; border-color: rgba(217,112,127,0.45); }
.adm-mini.adm-danger:hover { color: #ff8a99; border-color: #d9707f; }
.adm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .adm-two { grid-template-columns: 1fr; } }
.adm-bar { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 12.5px; }
.adm-bar-l { flex: 0 0 92px; color: var(--gold-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-bar-track { flex: 1; height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
.adm-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, #8f6b2a, #e6c869); }
.adm-bar-n { flex: 0 0 34px; text-align: right; color: var(--muted); font-family: var(--f-lat); }
.adm-daily { display: flex; align-items: flex-end; gap: 3px; height: 64px; padding-top: 4px; }
.adm-day { flex: 1; height: 100%; display: flex; align-items: flex-end;
  background: rgba(255,255,255,0.03); border-radius: 2px; }
.adm-day-fill { width: 100%; background: linear-gradient(180deg, #e6c869, #8f6b2a); border-radius: 2px; min-height: 1px; }
/* ============ 蜡烛解读 ============ */
.cn-up { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px dashed rgba(230,200,105,0.42); border-radius: 14px; padding: 26px 16px;
  background: rgba(230,200,105,0.035); cursor: pointer; text-align: center;
  color: var(--gold-soft); font-size: 13.5px; transition: border-color .2s, background .2s; }
.cn-up:hover { border-color: var(--gold-bright); background: rgba(230,200,105,0.07); }
.cn-upicon { font-size: 30px; line-height: 1; filter: drop-shadow(0 0 10px rgba(230,200,105,0.5)); }
.cn-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cn-thumb { position: relative; width: 88px; height: 88px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); }
.cn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cn-del { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.66); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.cn-del::before { content: ""; position: absolute; inset: -11px; }   /* 44px 触控热区 */
.cn-del:hover { background: #d9707f; }
.cn-shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cn-shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(230,200,105,0.28);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 22px rgba(230,200,105,0.10);
  max-width: min(340px, 88vw);
  opacity: 0; animation: pcDeal .55s cubic-bezier(.2,.9,.25,1.1) forwards; animation-delay: calc(var(--i) * 140ms); }
.candle-doc.restored .cn-shot { animation: none !important; opacity: 1 !important; }
.cn-shot img { display: block; width: 100%; height: auto; }
/* ---- 蜡烛解读 · 多支排队 + 解读记录（2026-11-13）---- */
.cn-multi { margin: 4px 0 10px; padding: 10px 12px; border-radius: 10px; line-height: 1.75;
  border: 1px solid rgba(230,200,105,0.28); background: rgba(230,200,105,0.05); color: var(--gold-soft); }
.cn-go-one { display: block; width: 100%; margin-top: 10px; min-height: 44px; font-size: 13.5px; letter-spacing: .04em; }
.cn-go-one[hidden], .cn-multi[hidden] { display: none; }
.cn-loglink { display: block; margin: 10px auto 0; padding: 9px 16px; min-height: 40px; border-radius: 999px;
  border: 1px solid rgba(230,200,105,0.30); background: rgba(230,200,105,0.05); color: var(--gold-soft);
  font-size: 13px; letter-spacing: .04em; cursor: pointer; font-family: inherit; }
.cn-loglink.hot { border-color: var(--gold-bright); color: var(--gold-bright); box-shadow: 0 0 14px rgba(230,200,105,0.18); }
.cn-tolist { margin: 0 0 14px; }
.cn-log { max-width: 760px; margin: 0 auto; padding: 14px 14px 60px; }
.cn-log-tip { margin: 0 0 14px; padding: 11px 13px; border-radius: 10px; font-size: 13.5px; line-height: 1.75;
  border: 1px solid rgba(230,200,105,0.24); background: rgba(230,200,105,0.05); color: var(--gold-soft); }
.cn-log-tip.warn { border-color: rgba(217,112,127,0.55); background: rgba(217,112,127,0.08); }
.cn-item { display: flex; gap: 12px; padding: 12px; margin-bottom: 12px; border-radius: 14px;
  border: 1px solid rgba(230,200,105,0.22); background: rgba(255,255,255,0.025); }
.cn-item.st-done { border-color: rgba(230,200,105,0.42); }
.cn-item.st-fail { border-color: rgba(217,112,127,0.45); }
.cn-item-pic { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; display: block;
  border: 1px solid var(--border); cursor: pointer; }
.cn-item-nopic { display: flex; align-items: center; justify-content: center; font-size: 26px; background: rgba(230,200,105,0.06); }
.cn-item-main { flex: 1 1 auto; min-width: 0; }
.cn-item-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.cn-item-hd b { font-family: var(--f-sec); font-size: 15.5px; color: var(--gold-bright); cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.cn-chip { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(230,200,105,0.35); color: var(--gold-soft); }
.st-run .cn-chip, .st-up .cn-chip { animation: pulse 1.4s ease-in-out infinite; }
.st-done .cn-chip { background: rgba(230,200,105,0.16); color: var(--gold-bright); border-color: var(--gold-bright); }
.st-fail .cn-chip { border-color: rgba(217,112,127,0.6); color: #e39aa5; }
.cn-new { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #b8383f; color: #fff; }
.cn-item-meta { margin-top: 3px; font-size: 12px; color: var(--muted); }
.cn-item-pre { margin: 6px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-fail .cn-item-pre { -webkit-line-clamp: 4; color: #e3b0b7; }
.cn-item-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cn-act { min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; cursor: pointer; font-family: inherit;
  border: 1px solid rgba(230,200,105,0.32); background: transparent; color: var(--gold-soft); }
.cn-act-main { background: rgba(230,200,105,0.14); border-color: var(--gold-bright); color: var(--gold-bright); }
.cn-act-del { margin-left: auto; border-color: transparent; color: var(--muted); padding: 0 8px; }
.cn-log-foot { margin: 18px 0 0; font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.cn-log-foot .cn-act-del { display: block; margin: 8px 0 0; text-decoration: underline; }
.cn-toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 9999;
  max-width: calc(100vw - 28px); padding: 11px 18px; min-height: 44px; border-radius: 999px; cursor: pointer; font-family: inherit;
  border: 1px solid var(--gold-bright); background: #17120a; color: var(--gold-bright); font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(230,200,105,0.22); }
@media (max-width: 520px) {
  .cn-item { padding: 10px; gap: 10px; }
  .cn-item-pic { flex-basis: 60px; width: 60px; height: 60px; }
  .cn-act { flex: 1 1 auto; padding: 0 10px; }
  .cn-act-del { flex: 0 0 auto; }
}
.adm-sw-row { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.adm-sw-txt { flex: 1 1 220px; min-width: 0; font-size: 13px; }
.adm-sw-on { color: #e0b45c; }
.adm-sw-off { color: #6fb89a; }
.adm-sw-row .adm-mini { flex: 0 0 auto; padding: 7px 14px; }

.fl-opt, .fl-need { font-size: 10.5px; letter-spacing: .1em; border-radius: 999px;
  padding: 1px 8px; margin-left: 6px; vertical-align: 1px; }
.fl-opt { color: var(--muted); border: 1px solid var(--border); }
.fl-need { color: #e0b45c; border: 1px solid rgba(224,180,92,0.5); background: rgba(224,180,92,0.08); }

/* 推荐蜡烛卡片（含官方祈祷文） */
.cn-rec { display: none; }
.cn-rec.show { display: block; }
.cn-prod { border: 1px solid rgba(230,200,105,0.32); border-radius: 14px; padding: 16px 18px;
  margin-bottom: 14px; background: linear-gradient(160deg, rgba(230,200,105,0.07), rgba(230,200,105,0.02));
  display: flex; gap: 16px; align-items: flex-start; }
.cn-prod-pic { flex: 0 0 128px; border-radius: 11px; overflow: hidden;
  border: 1px solid rgba(230,200,105,0.22); box-shadow: 0 6px 18px rgba(0,0,0,0.45); }
.cn-prod-pic img { display: block; width: 100%; height: auto; }
.cn-prod-body { flex: 1 1 auto; min-width: 0; }
@media (max-width: 560px) {
  .cn-prod { flex-direction: column; gap: 12px; }
  .cn-prod-pic { flex: 0 0 auto; width: 100%; max-width: 220px; margin: 0 auto; }
}
.cn-prod-sub { font-size: 13px; line-height: 1.6; color: var(--muted, #b8a98a); margin-bottom: 8px; }
.cn-prod-hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.cn-prod-hd b { font-family: var(--f-sec); font-size: 19px; color: var(--gold-bright); letter-spacing: .04em; }
.cn-prod-en { font-family: var(--f-lat); font-size: 12px; color: var(--gold-mid); letter-spacing: .08em; }
.cn-prod-cat { margin-left: auto; font-size: 11.5px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; }
.cn-prod-intro { color: var(--text); font-size: 14.5px; line-height: 1.85; margin: 0; }
.cn-pray { margin-top: 12px; padding: 12px 14px; border-left: 2px solid var(--gold-mid);
  background: rgba(0,0,0,0.22); border-radius: 0 10px 10px 0; }
.cn-pray-t { font-size: 11.5px; letter-spacing: .2em; color: var(--gold-mid); margin-bottom: 6px; }
.cn-pray p { margin: 0; font-family: var(--f-sec); font-size: 14.5px; line-height: 1.95;
  color: var(--gold-soft); font-style: italic; }

/* KEY 明细弹窗 */
#kd-modal, #lm-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.kd-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.62); backdrop-filter: blur(3px); }
.kd-box { position: relative; z-index: 1; width: min(620px, 96vw); max-height: 88vh; overflow-y: auto;
  background: #14110c; border: 1px solid var(--gold-mid); border-radius: 16px;
  padding: 20px 20px 22px; box-shadow: 0 24px 70px rgba(0,0,0,0.6); }
.kd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.kd-head b { color: var(--gold-bright); font-size: 16px; }
.kd-head .adm-code { display: inline-block; margin-left: 6px; font-size: 12px; }
.kd-stat { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.kd-stat b { color: var(--gold-soft); font-family: var(--f-lat); }
.kd-box h3 { font-size: 12.5px; color: var(--muted); letter-spacing: 0.12em; margin: 16px 0 8px; }
.kd-kinds .adm-bar { margin: 3px 0; }
.kd-sub { font-size: 11.5px; color: var(--muted); margin: 0 0 8px 100px; }
.kd-timeline { max-height: 340px; overflow-y: auto; }
/* 额度编辑器 */
.lm-global { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.lm-global label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.lm-global input { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 8px 10px; font-size: 16px; width: 120px; }
.lm-table td { vertical-align: middle; }
.lm-table input { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 7px;
  color: var(--text); padding: 6px 8px; font-size: 16px; width: 92px; }
.lm-global input:focus, .lm-table input:focus { outline: none; border-color: var(--accent); }
.lm-actions { margin-top: 16px; text-align: right; }
.lm-actions .btn-primary { padding: 10px 22px; }
/* 卢恩报告：封面不占整屏，紧凑起头 + 明确"往下翻"提示 */
.rune-doc .cover-chapter { min-height: 0; padding: 30px 0 4px; justify-content: flex-start; }
.rune-doc .cover-name { font-size: clamp(24px, 5.6vw, 34px); letter-spacing: 0.06em; margin: 8px 0 4px; }
.rune-doc .chapter { padding: 30px 0 24px; }
.rune-scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 1px;
  margin-top: 16px; color: var(--gold-mid); font-size: 12px; letter-spacing: 0.22em; }
.rune-scroll-cue .arr { font-size: 17px; line-height: 1; animation: cueBob 1.6s ease-in-out infinite; }
@keyframes cueBob { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(6px); opacity: 1; } }
@media (max-width: 560px) {
  .rune-doc .cover-chapter { padding-top: 18px; }
  .rune-doc .chapter { padding: 20px 0 18px; }
  .rune-stone figcaption { margin-top: 6px; }
}

/* ============ 扑克牌占卜 ============ */
.card-cast { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: clamp(14px, 3vw, 30px); padding: 8px 0 4px; perspective: 1600px; margin: 0 auto; }
/* 多张牌阵：限宽让其换成整齐的居中多行 */
.card-cast.cards-6 { max-width: 470px; }
.card-cast.cards-7 { max-width: 630px; }
.card-cast.cards-10 { max-width: 800px; }
/* 恢复缓存时：牌直接翻开呈现，不重放发牌/翻牌动画 */
.card-cast.restored .pcard-fig { animation: none !important; opacity: 1 !important; transform: none !important; }
.card-cast.restored .pcard-inner { transition: none !important; }
.rune-doc.restored .rune-stone { animation: none !important; opacity: 1 !important; transform: none !important; }
.pcard-fig { margin: 0; text-align: center; flex: 0 0 clamp(88px, 20vw, 132px);
  width: clamp(88px, 20vw, 132px); min-width: 0;
  opacity: 0; transform: translateY(-70px) rotate(-10deg) scale(0.82);
  animation: pcDeal 0.6s cubic-bezier(.2,.9,.25,1.12) forwards;
  animation-delay: calc(var(--i) * 130ms); }
.pcard-fig figcaption { width: 100%; }
.pc-pos, .pc-name, .pc-kw { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
@keyframes pcDeal { to { opacity: 1; transform: none; } }
.pcard { position: relative; width: 100%; aspect-ratio: 5 / 7; transform-style: preserve-3d; }
.pcard-inner { position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateY(180deg); transition: transform 0.8s cubic-bezier(.2,.72,.2,1); }
.pcard-fig.flipped .pcard-inner { transform: rotateY(360deg); }
.pcard-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pcard-front { transform: rotateY(0deg); }
.pcard-back { transform: rotateY(180deg); }
.pcard-face .pc-svg { width: 100%; height: 100%; display: block;
  border-radius: 9px; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5)); }
.pcard-fig.flipped .pcard { animation: pcGlow 1.1s ease 0.15s; }
@keyframes pcGlow { 0% { filter: none; } 40% { filter: drop-shadow(0 0 16px rgba(230,200,105,0.55)); } 100% { filter: none; } }
.pcard-fig figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.pc-pos { color: var(--gold-mid); font-size: 12px; letter-spacing: 0.06em; }
.pc-name { font-family: var(--f-sec); font-size: 16px; font-weight: 600; letter-spacing: 0.04em; }
.pc-kw { color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) {
  .card-cast { gap: 12px 10px; }
  .card-cast.cards-6, .card-cast.cards-7, .card-cast.cards-10 { max-width: 100%; }
  .pcard-fig { flex: 0 0 29vw; width: 29vw; }   /* 固定宽度: 每行整齐 3 张、居中 */
  .pcard-fig figcaption { margin-top: 7px; }
  .pc-name { font-size: 13px; }
  .pc-pos, .pc-kw { font-size: 11px; }
}
/* ============ 透特塔罗 ============ */
/* 骨架与扑克一致（发牌→翻牌），差别是牌面是真实画作图片、比例更修长（塔罗约 2:3）*/
.tcard-cast { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: clamp(14px, 3vw, 28px); padding: 8px 0 4px; perspective: 1600px; margin: 0 auto; }
.tcard-cast.tcards-6 { max-width: 500px; }
.tcard-cast.tcards-7 { max-width: 660px; }
.tcard-cast.tcards-10 { max-width: 840px; }
.tcard-cast.restored .tcard-fig { animation: none !important; opacity: 1 !important; transform: none !important; }
.tcard-cast.restored .tcard-inner { transition: none !important; }
.tcard-fig { margin: 0; text-align: center; flex: 0 0 clamp(92px, 21vw, 138px);
  width: clamp(92px, 21vw, 138px); min-width: 0; cursor: zoom-in;
  opacity: 0; transform: translateY(-70px) rotate(-10deg) scale(0.82);
  animation: pcDeal 0.6s cubic-bezier(.2,.9,.25,1.12) forwards;
  animation-delay: calc(var(--i) * 130ms); }
.tcard { position: relative; width: 100%; aspect-ratio: 2 / 3; transform-style: preserve-3d; }
.tcard-inner { position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateY(180deg); transition: transform 0.8s cubic-bezier(.2,.72,.2,1); }
.tcard-fig.flipped .tcard-inner { transform: rotateY(360deg); }
.tcard-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tcard-front { transform: rotateY(0deg); }
.tcard-back { transform: rotateY(180deg); }
.tcard-face img, .tcard-face .tc-svg { width: 100%; height: 100%; display: block; object-fit: cover;
  border-radius: 7px; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5)); }
.tcard-fig.flipped .tcard { animation: pcGlow 1.1s ease 0.15s; }
.tcard-fig figcaption { margin-top: 11px; display: flex; flex-direction: column; gap: 2px; width: 100%; }
.tc-name { font-family: var(--f-sec); font-size: 15px; font-weight: 600; letter-spacing: 0.03em; }
.tc-en { color: var(--gold-mid); font-size: 11px; letter-spacing: 0.03em; opacity: .85; }
.tc-name, .tc-en { max-width: 100%; overflow-wrap: anywhere; }
.tc-el { font-style: normal; font-size: 10.5px; margin-left: 5px; padding: 1px 5px; border-radius: 6px;
  vertical-align: 1.5px; border: 1px solid currentColor; opacity: .85; }
.tc-el-火 { color: #e0834f; } .tc-el-水 { color: #6aa6d8; }
.tc-el-风 { color: #b9a7e0; } .tc-el-土 { color: #97a86a; }
.tc-tip { text-align: center; margin-top: 12px; opacity: .7; }
/* 点牌放大 */
.tc-zoom { position: fixed; inset: 0; z-index: 90; background: rgba(8,7,16,.9);
  display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.tc-zoom-in { position: relative; max-width: 420px; width: 100%; text-align: center; }
.tc-zoom-in img { width: 100%; max-height: 74vh; object-fit: contain; border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0,0,0,.65); }
.tc-zoom-t { margin-top: 14px; color: var(--ink, #e7e2d6); font-family: var(--f-sec); font-size: 16px; }
.tc-zoom-t span { display: block; margin-top: 5px; color: var(--muted); font-size: 12.5px; }
.tc-zoom-x { position: absolute; top: -6px; right: -4px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--gold-mid); background: rgba(20,18,34,.85); color: var(--gold-soft);
  font-size: 20px; line-height: 1; cursor: pointer; }
@media (max-width: 560px) {
  .tcard-cast { gap: 12px 10px; }
  .tcard-cast.tcards-6, .tcard-cast.tcards-7, .tcard-cast.tcards-10 { max-width: 100%; }
  .tcard-fig { flex: 0 0 29vw; width: 29vw; }   /* 手机上每行整齐 3 张 */
  .tcard-fig figcaption { margin-top: 7px; }
  .tc-name { font-size: 12.5px; } .tc-en { font-size: 10px; }
}

.rune-cast { display: flex; flex-wrap: wrap; gap: 22px 26px; justify-content: center; margin: 8px 0 6px; }
.rune-stone { margin: 0; width: 132px; text-align: center; opacity: 0; transform: translateY(-26px) scale(.7) rotate(-8deg);
  animation: runeDrop .62s cubic-bezier(.34,1.4,.5,1) forwards; }
@keyframes runeDrop { 60% { opacity: 1; transform: translateY(6px) scale(1.03) rotate(2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
.rune-stone-art { width: 132px; height: 132px; }
.rune-svg { width: 100%; height: 100%; display: block; }
.rune-stone figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 9px; }
.rn-pos { color: var(--gold-mid); font-size: 11.5px; letter-spacing: 0.05em; }
.rn-name { color: var(--gold-bright); font-family: var(--f-zh); font-size: 15px; }
.rn-kw { color: var(--muted); font-size: 12px; }
.rn-up { color: #7fae86; font-size: 11.5px; margin-left: 6px; }
.rn-rev { color: var(--debilitated); font-size: 11.5px; margin-left: 6px; }
@media (max-width: 560px) { .rune-cast { gap: 16px; } .rune-stone, .rune-stone-art { width: 104px; } .rune-stone-art { height: 104px; } }

/* ---------- 婚运 (marriage) ---------- */
.mr-tab { width: 100%; border-collapse: collapse; }
.mr-tab th { text-align: left; vertical-align: top; width: 130px; color: var(--gold-mid); font-weight: 500;
  font-size: 13px; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.mr-tab td { color: var(--ink-soft, #cdbfa3); font-size: 13.5px; padding: 9px 0; border-bottom: 1px solid var(--border); line-height: 1.7; }
.mr-tab td b { color: var(--gold-bright); font-weight: 500; }
.mr-sub { color: var(--gold-mid); font-size: 13px; letter-spacing: 0.06em; margin: 16px 0 6px; font-weight: 600; }
.mr-years { list-style: none; padding: 0; margin: 0; }
.mr-years li { display: flex; align-items: baseline; gap: 12px; padding: 6px 10px; border-radius: 8px; }
.mr-years li:nth-child(odd) { background: rgba(255,255,255,0.02); }
.mr-yr { font-family: "Cinzel", serif; font-size: 17px; color: var(--gold-bright); min-width: 56px; }
.mr-age { color: var(--faint); font-size: 12px; min-width: 42px; }
.mr-why { color: var(--ink-soft, #cdbfa3); font-size: 13px; }
.mr-trs { list-style: none; padding: 0; margin: 4px 0 0; }
.mr-trs li { font-size: 13px; color: var(--ink-soft, #cdbfa3); padding: 2px 0; }

/* ---------- 未来半年预报 (forecast) ---------- */
.fc-hook { max-width: 640px; margin: 14px auto 0; color: var(--gold-soft); font-size: 15px; line-height: 1.8; text-align: center; }
.fc-hook b { color: var(--gold-bright); font-weight: 500; }
.fc-tl { margin: 6px 0 14px; overflow-x: auto; }
.fc-tl-svg { width: 100%; min-width: 680px; height: auto; display: block; }
.fc-band { font-family: var(--f-zh); font-size: 9px; fill: var(--gold-bright); letter-spacing: 0.04em; }
.fc-mlab { font-family: var(--f-zh); font-size: 11px; fill: var(--gold-mid); }
.fc-ev { font-family: var(--f-zh); font-size: 9.5px; }
.fc-dt { font-family: "Segoe UI", sans-serif; font-size: 8px; fill: var(--faint); }
.fc-leg { font-family: var(--f-zh); font-size: 9.5px; fill: var(--faint); }
.fc-keydates { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.fc-kd { flex: 1; min-width: 220px; }
.fc-kd-t { display: inline-block; font-family: var(--f-zh); font-size: 13px; letter-spacing: 0.08em; margin-bottom: 4px; }
.fc-kd ul { list-style: none; padding: 0; margin: 0; }
.fc-kd li { font-size: 13px; color: var(--ink-soft, #cdbfa3); padding: 2px 0; }
.fc-good { color: #7fb893; } .fc-kd-t.fc-good { color: #7fb893; }
.fc-hard { color: #d98a80; } .fc-kd-t.fc-hard { color: #d98a80; }
.fc-d { display: inline-block; min-width: 42px; color: var(--gold-mid); font-variant-numeric: tabular-nums; }
.fc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fc-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: rgba(255,255,255,0.015); }
.fc-card.fc-now { border-color: var(--gold-deep); box-shadow: 0 0 0 1px rgba(184,146,60,0.25) inset; }
.fc-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fc-card-m { font-family: var(--f-zh); font-weight: 600; color: var(--gold-bright); letter-spacing: 0.06em; }
.fc-card-area { font-size: 12px; color: var(--gold-mid); }
.fc-lucky { display: flex; flex-wrap: wrap; gap: 5px 8px; margin: 8px 0 6px; }
.fc-lucky span { font-size: 11.5px; color: var(--gold-soft); background: rgba(184,146,60,0.08);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; }
.fc-lucky i { font-style: normal; color: var(--gold-mid); margin-right: 5px; }
.fc-card-lord { font-size: 12.5px; color: var(--faint); margin: 4px 0 8px; }
.fc-card-lord b { color: var(--gold-soft); }
.fc-evs { list-style: none; padding: 0; margin: 0; }
.fc-evs li { font-size: 13px; padding: 2px 0; color: var(--ink-soft, #cdbfa3); }
.fc-quiet { font-size: 12.5px; color: var(--faint); font-style: italic; }
.fc-luns { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.fc-lun { font-size: 11px; color: var(--gold-mid); }
@media (max-width: 620px) { .fc-cards { grid-template-columns: 1fr; } }
