:root {
  --void: #050707;
  --obsidian: #0b1112;
  --glass: rgba(10, 18, 19, 0.68);
  --glass-strong: rgba(14, 24, 25, 0.86);
  --line: rgba(205, 177, 103, 0.22);
  --line-cold: rgba(87, 178, 171, 0.24);
  --gold: #d9b76f;
  --gold-rich: #f4c76b;
  --gold-hot: #ffdf8a;
  --gold-soft: rgba(217, 183, 111, 0.15);
  --jade: #45c0b3;
  --jade-deep: #1c6f68;
  --cinnabar: #cc4e35;
  --bone: #f2ead8;
  --muted: #9ea79d;
  --dim: #69736e;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--void);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--bone);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background:
    linear-gradient(180deg, rgba(5, 7, 7, 0.12), rgba(5, 7, 7, 0.86)),
    linear-gradient(90deg, rgba(5, 7, 7, 0.34), rgba(5, 7, 7, 0.02) 48%, rgba(5, 7, 7, 0.52)),
    url("./hero-bg-v2.png") center / cover fixed,
    var(--void);
  overflow-x: hidden;
}

#cosmos-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.78;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(69, 192, 179, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 183, 111, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, black 12%, black 82%, transparent);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 54% 38%, transparent 0 22rem, rgba(5, 7, 7, 0.34) 38rem, rgba(5, 7, 7, 0.7));
  z-index: 0;
}

button,
input,
select {
  font: inherit;
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
  gap: 22px;
  width: min(1500px, calc(100vw - 34px));
  margin: 0 auto;
  padding: 22px 0;
}

.input-pane,
.result-pane {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(217, 183, 111, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(124%);
}

.input-pane {
  position: sticky;
  top: 22px;
  align-self: start;
  min-height: calc(100vh - 44px);
  padding: 22px;
  overflow: hidden;
}

.input-pane::before,
.input-pane::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.input-pane::before {
  top: -130px;
  right: -120px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(69, 192, 179, 0.12);
  border-radius: 50%;
  background:
    conic-gradient(from 140deg, transparent 0 18%, rgba(69, 192, 179, 0.18) 19% 20%, transparent 21% 46%, rgba(217, 183, 111, 0.14) 47% 48%, transparent 49%),
    radial-gradient(circle, rgba(217, 183, 111, 0.1), transparent 58%);
  animation: spin 22s linear infinite;
}

.input-pane::after {
  left: 18px;
  right: 18px;
  bottom: 68px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(69, 192, 179, 0.32), rgba(217, 183, 111, 0.36), transparent);
  box-shadow: 0 0 22px rgba(69, 192, 179, 0.2);
}

.result-pane {
  position: relative;
  min-height: calc(100vh - 44px);
  padding: 22px;
  overflow: hidden;
}

.result-pane::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(69, 192, 179, 0.08);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 0 31%, rgba(69, 192, 179, 0.06) 31% 31.2%, transparent 31.2% 69%, rgba(217, 183, 111, 0.05) 69% 69.2%, transparent 69.2%),
    linear-gradient(180deg, transparent 0 28%, rgba(69, 192, 179, 0.045) 28% 28.2%, transparent 28.2% 72%, rgba(217, 183, 111, 0.045) 72% 72.2%, transparent 72.2%);
  opacity: 0.86;
}

.result-pane > * {
  position: relative;
  z-index: 1;
}

.brand-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.brand-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  isolation: isolate;
}

.brand-orbit::before,
.brand-orbit::after,
.brand-orbit span {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.brand-orbit::before {
  inset: -2px;
  border: 1px solid rgba(217, 183, 111, 0.28);
  background:
    conic-gradient(from 0deg, rgba(217, 183, 111, 0.76) 0 2deg, transparent 2deg 40deg, rgba(69, 192, 179, 0.62) 40deg 44deg, transparent 44deg 96deg, rgba(204, 78, 53, 0.58) 96deg 99deg, transparent 99deg);
  filter: drop-shadow(0 0 13px rgba(69, 192, 179, 0.28));
  mask: radial-gradient(circle, transparent 0 46%, black 47% 51%, transparent 52%);
  animation: spin 18s linear infinite;
}

.brand-orbit::after {
  inset: 7px;
  border: 1px dashed rgba(69, 192, 179, 0.32);
  box-shadow:
    0 0 28px rgba(69, 192, 179, 0.2),
    inset 0 0 18px rgba(217, 183, 111, 0.08);
  animation: spinReverse 14s linear infinite;
}

.brand-orbit span:nth-child(1) {
  inset: 12px;
  border: 1px solid rgba(217, 183, 111, 0.18);
  background:
    radial-gradient(circle at 48% 40%, rgba(255, 255, 255, 0.13), transparent 32%),
    radial-gradient(circle, rgba(69, 192, 179, 0.12), rgba(4, 9, 10, 0.1) 55%, transparent 70%);
  box-shadow:
    inset 0 0 18px rgba(69, 192, 179, 0.16),
    0 0 20px rgba(217, 183, 111, 0.08);
  backdrop-filter: blur(4px);
}

.brand-orbit span:nth-child(2) {
  width: 1px;
  height: 84px;
  border-radius: 0;
  background: linear-gradient(transparent, rgba(217, 183, 111, 0.64), transparent);
  opacity: 0.78;
  animation: spin 8s linear infinite;
}

.brand-orbit span:nth-child(3) {
  width: 6px;
  height: 6px;
  transform: translate(32px, -22px);
  background: var(--jade);
  box-shadow: 0 0 18px var(--jade);
  animation: nodePulse 2.2s ease-in-out infinite;
}

.brand-mark {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  opacity: 0.92;
  filter:
    drop-shadow(0 0 18px rgba(69, 192, 179, 0.34))
    drop-shadow(0 0 8px rgba(217, 183, 111, 0.16));
  transform-origin: 50% 50%;
  animation: spin 28s linear infinite;
  will-change: transform;
}

.brand-copy {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--jade);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 0 30px rgba(217, 183, 111, 0.32);
}

h2 {
  margin-bottom: 14px;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.form-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 15px;
}

label > span,
.place-field > span,
.focus-box span,
.check-line span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-cold);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--bone);
  background: rgba(4, 9, 10, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

select {
  appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%),
    linear-gradient(90deg, rgba(217, 183, 111, 0.18), rgba(69, 192, 179, 0.08));
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px,
    100% 0;
  background-size: 6px 6px, 6px 6px, 44px 100%;
  background-repeat: no-repeat;
}

select option {
  color: #111;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(69, 192, 179, 0.28);
  outline-offset: 2px;
}

select:hover,
.focus-box span:hover {
  border-color: rgba(217, 183, 111, 0.46);
  box-shadow: 0 0 20px rgba(69, 192, 179, 0.12);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line-cold);
  border-radius: 8px;
  background: rgba(4, 9, 10, 0.48);
}

.segmented label {
  position: relative;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: grid;
  place-items: center;
  min-height: 40px;
  margin: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
}

.segmented input:checked + span {
  color: var(--void);
  background: linear-gradient(135deg, var(--gold), #f5dc95);
  box-shadow: 0 0 24px rgba(217, 183, 111, 0.22);
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.time-grid {
  align-items: end;
}

.place-field {
  display: grid;
  gap: 8px;
}

.place-grid {
  display: grid;
  grid-template-columns: 0.92fr 1fr 1.08fr;
  gap: 8px;
}

.place-grid label > span {
  margin-bottom: 6px;
  font-size: 11px;
}

.place-grid select {
  padding-left: 10px;
  padding-right: 34px;
  font-size: 14px;
}

.field-hint {
  margin: 0;
  color: rgba(244, 199, 107, 0.78);
  font-size: 12px;
  line-height: 1.45;
  text-shadow: 0 0 16px rgba(217, 183, 111, 0.18);
}

.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-line input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--gold);
}

.check-line span {
  margin: 0;
}

.leap-toggle {
  position: relative;
  display: block;
  min-height: 56px;
  cursor: pointer;
}

.leap-toggle input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
}

.leap-shell {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  min-height: 56px;
  border: 1px solid rgba(217, 183, 111, 0.28);
  border-radius: 8px;
  padding: 9px 12px;
  overflow: hidden;
  color: rgba(242, 234, 216, 0.78);
  background:
    linear-gradient(110deg, rgba(244, 199, 107, 0.12), rgba(69, 192, 179, 0.06)),
    rgba(4, 9, 10, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.leap-shell::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -24%;
  width: 20%;
  background: linear-gradient(90deg, transparent, rgba(255, 223, 138, 0.38), transparent);
  transform: rotate(18deg);
  opacity: 0;
}

.leap-shell i {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, #090704 0 10%, transparent 11%),
    radial-gradient(circle at 50% 70%, var(--gold-hot) 0 10%, transparent 11%),
    conic-gradient(from 90deg, #090704 0 50%, var(--gold-hot) 50% 100%);
  box-shadow:
    0 0 18px rgba(244, 199, 107, 0.22),
    inset 0 0 0 1px rgba(255, 238, 180, 0.55);
  opacity: 0.72;
}

.leap-shell b {
  font-size: 14px;
  line-height: 1.1;
}

.leap-shell small {
  min-width: 0;
  color: rgba(158, 167, 157, 0.92);
  font-size: 12px;
  line-height: 1.25;
}

.leap-toggle:hover .leap-shell,
.leap-toggle input:focus-visible + .leap-shell {
  border-color: rgba(244, 199, 107, 0.52);
  box-shadow:
    0 0 24px rgba(244, 199, 107, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.leap-toggle.is-on .leap-shell {
  border-color: rgba(255, 223, 138, 0.72);
  color: #fff2c3;
  background:
    radial-gradient(circle at 15% 50%, rgba(255, 223, 138, 0.2), transparent 34%),
    linear-gradient(110deg, rgba(244, 199, 107, 0.28), rgba(169, 109, 24, 0.16)),
    rgba(4, 9, 10, 0.66);
  box-shadow:
    0 0 32px rgba(244, 199, 107, 0.22),
    inset 0 0 20px rgba(255, 223, 138, 0.08);
}

.leap-toggle.is-on .leap-shell::after {
  animation: shineSweep 2.3s ease-in-out infinite;
}

.leap-toggle.is-on .leap-shell i {
  opacity: 1;
  animation: spin 2.6s linear infinite;
}

.leap-toggle.is-on .leap-shell small {
  color: rgba(255, 223, 138, 0.9);
}

.leap-toggle.is-locked:not(.is-on) .leap-shell {
  border-color: rgba(105, 115, 110, 0.34);
  color: rgba(158, 167, 157, 0.68);
}

.leap-toggle.is-locked:not(.is-on) .leap-shell i {
  filter: grayscale(0.4);
  opacity: 0.42;
}

.leap-toggle.is-jump .leap-shell {
  animation: goldPulse 620ms ease-out;
}

.solar-shell i {
  border: 1px solid rgba(255, 223, 138, 0.68);
  background:
    radial-gradient(circle, var(--gold-hot) 0 16%, transparent 17%),
    repeating-conic-gradient(from 0deg, rgba(255, 223, 138, 0.88) 0 8deg, transparent 8deg 22deg),
    radial-gradient(circle, rgba(69, 192, 179, 0.18), transparent 64%);
  box-shadow:
    0 0 20px rgba(255, 223, 138, 0.22),
    inset 0 0 14px rgba(69, 192, 179, 0.18);
}

.true-solar-toggle.is-on .solar-shell i {
  animation: spin 4.8s linear infinite;
}

.auto-save-toggle {
  min-height: auto;
}

.auto-save-toggle .auto-save-shell {
  min-height: 48px;
  border-color: rgba(217, 183, 111, 0.22);
}

.auto-save-shell i {
  border: 1px solid rgba(255, 223, 138, 0.58);
  background:
    url("./taiji-bagua-gold.svg") center / 23px 23px no-repeat,
    radial-gradient(circle, rgba(255, 223, 138, 0.18), transparent 64%),
    rgba(5, 7, 7, 0.7);
  box-shadow:
    0 0 20px rgba(255, 223, 138, 0.18),
    inset 0 0 16px rgba(255, 223, 138, 0.08);
}

.auto-save-toggle.is-on .auto-save-shell i {
  animation: spin 3.6s linear infinite;
}

.ai-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  border: 1px solid rgba(217, 183, 111, 0.34);
  border-radius: 8px;
  padding: 8px 11px;
  background:
    linear-gradient(90deg, rgba(217, 183, 111, 0.12), rgba(69, 192, 179, 0.08)),
    rgba(4, 9, 10, 0.5);
}

.ai-line input {
  order: 2;
  position: relative;
  width: 46px;
  min-height: 24px;
  padding: 0;
  border-radius: 999px;
  appearance: none;
  background: rgba(4, 9, 10, 0.8);
  border-color: rgba(69, 192, 179, 0.28);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ai-line input::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dim);
  box-shadow: 0 0 12px rgba(105, 115, 110, 0.5);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.ai-line input:checked {
  border-color: rgba(217, 183, 111, 0.62);
  background:
    linear-gradient(90deg, rgba(69, 192, 179, 0.32), rgba(217, 183, 111, 0.38)),
    rgba(4, 9, 10, 0.82);
  box-shadow: 0 0 22px rgba(217, 183, 111, 0.18);
}

.ai-line input:checked::before {
  transform: translateX(22px);
  background: var(--gold);
  box-shadow: 0 0 18px rgba(217, 183, 111, 0.78);
}

.ai-line span {
  margin: 0;
  color: var(--gold);
  font-weight: 700;
}

.focus-box {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.focus-box label {
  position: relative;
}

.focus-box input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.focus-box span {
  display: grid;
  place-items: center;
  min-height: 38px;
  margin: 0;
  border: 1px solid var(--line-cold);
  border-radius: 6px;
  background: rgba(4, 9, 10, 0.52);
  color: var(--muted);
  cursor: pointer;
}

.focus-box input:checked + span {
  border-color: rgba(217, 183, 111, 0.58);
  color: var(--gold);
  background: rgba(217, 183, 111, 0.1);
}

.primary-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  color: #06100f;
  background: linear-gradient(135deg, #5ed5c7, var(--gold-hot) 52%, #d76b38);
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 18px 42px rgba(69, 192, 179, 0.18),
    0 0 28px rgba(244, 199, 107, 0.16);
}

.primary-button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.12));
  mix-blend-mode: soft-light;
}

.primary-button::after {
  content: "";
  position: absolute;
  top: -80%;
  bottom: -80%;
  left: -35%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: rotate(18deg);
  animation: shineSweep 3.8s ease-in-out infinite;
}

.primary-button span {
  position: relative;
  z-index: 1;
  font-weight: 700;
}

.button-taiji {
  position: relative;
  z-index: 1;
  display: block;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  background: url("./taiji-bagua-gold.svg") center / contain no-repeat;
  filter:
    drop-shadow(0 0 8px rgba(255, 223, 138, 0.72))
    drop-shadow(0 0 16px rgba(169, 109, 24, 0.28));
  opacity: 0.94;
  transform-origin: 50% 50%;
  animation: spin 8.8s linear infinite;
}

.primary-button.is-loading {
  background:
    repeating-linear-gradient(90deg, rgba(255, 246, 207, 0.16) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 50% 50%, rgba(255, 246, 207, 0.42), transparent 25%),
    linear-gradient(135deg, #fff1b0, #e4b642 48%, #8f5812);
  box-shadow:
    0 0 30px rgba(255, 223, 138, 0.34),
    0 22px 54px rgba(169, 109, 24, 0.28);
}

.primary-button.is-loading .button-taiji,
.deep-dock button.is-loading .button-taiji {
  animation-duration: 0.86s;
  filter:
    drop-shadow(0 0 10px rgba(255, 246, 207, 0.95))
    drop-shadow(0 0 24px rgba(244, 199, 107, 0.62));
}

.primary-button.is-loading .button-taiji::before,
.deep-dock button.is-loading .button-taiji::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 246, 207, 0.9) 0 1.4deg, transparent 1.4deg 5.625deg);
  -webkit-mask: radial-gradient(circle, transparent 0 54%, black 55% 61%, transparent 62%);
  mask: radial-gradient(circle, transparent 0 54%, black 55% 61%, transparent 62%);
  animation: spin 0.92s linear infinite;
}

.primary-button.is-loading .button-taiji::after,
.deep-dock button.is-loading .button-taiji::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background:
    conic-gradient(from 90deg, transparent, rgba(255, 223, 138, 0.72), transparent 36%, rgba(255, 241, 176, 0.42), transparent 62%);
  -webkit-mask: radial-gradient(circle, transparent 0 67%, black 68% 71%, transparent 72%);
  mask: radial-gradient(circle, transparent 0 67%, black 68% 71%, transparent 72%);
  animation: spinReverse 1.35s linear infinite;
}

.primary-button:disabled {
  opacity: 0.72;
  cursor: progress;
}

.signal-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  margin-top: 20px;
  padding: 0 2px;
}

.signal-row::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(69, 192, 179, 0.5), rgba(217, 183, 111, 0.44), transparent);
  box-shadow: 0 0 18px rgba(69, 192, 179, 0.24);
}

.signal-row::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 234, 216, 0.85), transparent);
  filter: drop-shadow(0 0 10px rgba(242, 234, 216, 0.7));
  animation: railSweep 3.1s ease-in-out infinite;
}

.signal-row span {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border: 1px solid rgba(217, 183, 111, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(217, 183, 111, 0.18), transparent 56%),
    rgba(4, 9, 10, 0.62);
  box-shadow: 0 0 20px rgba(69, 192, 179, 0.12);
}

.signal-row span::before {
  color: rgba(217, 183, 111, 0.82);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 16px;
  line-height: 1;
}

.signal-row span:nth-child(1)::before {
  content: "甲";
}

.signal-row span:nth-child(2)::before {
  content: "子";
}

.signal-row span:nth-child(3)::before {
  content: "庚";
}

.signal-row span:nth-child(4)::before {
  content: "癸";
}

.signal-row span:nth-child(odd) {
  animation: nodePulse 2.8s ease-in-out infinite;
}

.signal-row span:nth-child(even) {
  animation: nodePulse 2.8s ease-in-out 1.1s infinite;
}

.small-note,
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.small-note {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
}

.empty-state {
  display: grid;
  min-height: calc(100vh - 88px);
  place-items: center;
  align-content: center;
  gap: 16px;
  color: var(--muted);
}

.empty-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 260px;
  height: 260px;
}

.empty-orbit::before,
.empty-orbit::after,
.empty-orbit span {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.empty-orbit::before {
  inset: 10px;
  border: 1px solid rgba(217, 183, 111, 0.3);
  box-shadow: inset 0 0 30px rgba(217, 183, 111, 0.12), 0 0 34px rgba(69, 192, 179, 0.16);
  animation: spin 14s linear infinite;
}

.empty-orbit::after {
  inset: 40px;
  border: 1px dashed rgba(69, 192, 179, 0.34);
  animation: spinReverse 11s linear infinite;
}

.empty-orbit span:nth-child(1) {
  inset: 0;
  background:
    conic-gradient(from 20deg, transparent 0 9%, rgba(217, 183, 111, 0.52) 10% 11%, transparent 12% 24%, rgba(69, 192, 179, 0.44) 25% 26%, transparent 27% 100%);
  mask: radial-gradient(circle, transparent 0 47%, black 48% 50%, transparent 51%);
  animation: spin 18s linear infinite;
}

.empty-orbit span:nth-child(2) {
  inset: 70px;
  border: 1px solid rgba(204, 78, 53, 0.36);
  animation: pulseRing 2.8s ease-in-out infinite;
}

.empty-orbit span:nth-child(3) {
  width: 1px;
  height: 248px;
  background: linear-gradient(transparent, rgba(217, 183, 111, 0.72), transparent);
  border-radius: 0;
  animation: spinReverse 7s linear infinite;
}

.empty-mark {
  position: relative;
  z-index: 1;
  width: 136px;
  height: 136px;
  opacity: 0.78;
  filter: drop-shadow(0 0 42px rgba(217, 183, 111, 0.34));
}

.loading-oracle {
  position: relative;
  display: grid;
  min-height: calc(100vh - 88px);
  place-items: center;
  align-content: center;
  gap: 28px;
  color: var(--gold-hot);
}

.celestial-field {
  position: absolute;
  inset: -80px -42px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.78;
  filter: drop-shadow(0 0 18px rgba(255, 223, 138, 0.16));
}

.celestial-field::before,
.celestial-field::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 22% 31%, rgba(255, 246, 207, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 77% 22%, rgba(255, 223, 138, 0.34) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 78%, rgba(69, 192, 179, 0.28) 0 1px, transparent 2px);
  opacity: 0.56;
}

.celestial-field::after {
  inset: 16%;
  opacity: 0.36;
  animation: spinReverse 34s linear infinite;
}

.celestial-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(118vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 223, 138, 0.12);
  border-radius: 50%;
  translate: -50% -50%;
  transform-origin: 50% 50%;
  animation: spin 24s linear infinite;
}

.celestial-orbit::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    conic-gradient(from 0deg, transparent 0 10%, rgba(255, 223, 138, 0.38) 10.2% 10.8%, transparent 11.2% 32%, rgba(69, 192, 179, 0.2) 32.2% 32.8%, transparent 33.2%);
  -webkit-mask: radial-gradient(circle, transparent 0 49%, black 50% 51%, transparent 52%);
  mask: radial-gradient(circle, transparent 0 49%, black 50% 51%, transparent 52%);
}

.celestial-orbit i {
  position: absolute;
  top: -4px;
  left: 50%;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff8d6 0 25%, #e7b94f 30% 62%, rgba(143, 88, 18, 0.92) 68%);
  box-shadow:
    0 0 10px rgba(255, 246, 207, 0.76),
    0 0 26px rgba(217, 169, 56, 0.34);
  translate: -50% 0;
}

.celestial-orbit-middle {
  width: min(96vw, 560px);
  border-color: rgba(69, 192, 179, 0.14);
  animation: spinReverse 31s linear infinite;
}

.celestial-orbit-middle i {
  width: 6px;
  height: 6px;
  background:
    radial-gradient(circle at 36% 32%, #dcfff9 0 22%, #45c0b3 30% 60%, rgba(9, 46, 43, 0.9) 68%);
}

.celestial-orbit-inner {
  width: min(72vw, 420px);
  border-style: dashed;
  animation: spin 18s linear infinite;
}

.celestial-orbit-inner i {
  top: -3px;
  width: 5px;
  height: 5px;
}

.loading-oracle::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(82vw, 760px);
  height: min(82vw, 760px);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 246, 207, 0.16) 0 0.82deg, transparent 0.82deg 5.625deg),
    conic-gradient(from 90deg, transparent 0 9%, rgba(255, 223, 138, 0.22) 10% 11%, transparent 12% 26%, rgba(244, 199, 107, 0.16) 27% 28%, transparent 29% 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 38%, black 39% 40.5%, transparent 41.5% 57%, black 58% 60%, transparent 61%);
  mask: radial-gradient(circle, transparent 0 38%, black 39% 40.5%, transparent 41.5% 57%, black 58% 60%, transparent 61%);
  opacity: 0.88;
  animation: spin 15s linear infinite;
}

.loading-oracle::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: calc(50% - 178px);
  left: 50%;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid rgba(255, 223, 138, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 246, 207, 0.95) 0 28%, rgba(217, 169, 56, 0.42) 29% 62%, transparent 64%),
    rgba(5, 7, 7, 0.52);
  transform: translateX(-50%);
  box-shadow:
    0 0 18px rgba(255, 223, 138, 0.34),
    0 0 42px rgba(169, 109, 24, 0.22);
}

.oracle-core,
.loading-copy {
  position: relative;
  z-index: 2;
}

.oracle-core {
  --oracle-size: 262px;
  --oracle-bagua-translate: -112px;
  --oracle-sixiang-translate: -72px;
  --oracle-hexagram-inner-translate: -126px;
  --oracle-hexagram-outer-translate: -154px;
  position: relative;
  display: grid;
  place-items: center;
  width: var(--oracle-size);
  height: var(--oracle-size);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 246, 207, 0.86) 0 2.6%, transparent 3.7%),
    radial-gradient(circle, rgba(255, 223, 138, 0.24) 0 22%, transparent 23%),
    conic-gradient(from 0deg, rgba(169, 109, 24, 0.1), #fff1b0, #d9a938, #8f5812, rgba(255, 223, 138, 0.18));
  box-shadow:
    0 0 86px rgba(244, 199, 107, 0.44),
    0 0 148px rgba(169, 109, 24, 0.28),
    inset 0 0 46px rgba(5, 7, 7, 0.66);
  isolation: isolate;
  animation: orbitDrift 2.6s ease-in-out infinite, goldPulse 2.8s ease-in-out infinite;
}

.oracle-core::before,
.oracle-core::after,
.oracle-ring,
.oracle-axis,
.oracle-hexagrams,
.oracle-bagua,
.oracle-sixiang,
.oracle-liang,
.oracle-taiji,
.oracle-hexagram-name {
  position: absolute;
}

.oracle-core::before {
  content: "";
  inset: -13px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, rgba(255, 246, 207, 0.54), transparent 14%, rgba(217, 169, 56, 0.44), transparent 36%, rgba(255, 223, 138, 0.62), transparent 67%, rgba(143, 88, 18, 0.38), transparent);
  -webkit-mask: radial-gradient(circle, transparent 0 69%, black 70% 72%, transparent 73%);
  mask: radial-gradient(circle, transparent 0 69%, black 70% 72%, transparent 73%);
  opacity: 0.86;
  animation: spin 9.2s linear infinite;
}

.oracle-core::after {
  content: "";
  inset: 16px;
  border: 1px solid rgba(255, 223, 138, 0.42);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255, 223, 138, 0.42) 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(255, 223, 138, 0.32) 50%, transparent 50.5%);
  box-shadow:
    inset 0 0 30px rgba(255, 223, 138, 0.1),
    0 0 24px rgba(255, 223, 138, 0.2);
  opacity: 0.82;
  animation: spinReverse 11s linear infinite;
}

.oracle-ring {
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.oracle-ring-hexagrams {
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 246, 207, 0.96) 0 1.15deg, transparent 1.15deg 5.625deg),
    conic-gradient(from 0deg, rgba(255, 223, 138, 0.22), transparent, rgba(255, 241, 176, 0.24), transparent, rgba(255, 223, 138, 0.22));
  -webkit-mask: radial-gradient(circle, transparent 0 83%, black 84% 88%, transparent 89%);
  mask: radial-gradient(circle, transparent 0 83%, black 84% 88%, transparent 89%);
  opacity: 0.96;
  animation: spin 3.8s linear infinite;
}

.oracle-ring-bagua {
  inset: 22px;
  border: 1px dashed rgba(255, 223, 138, 0.45);
  box-shadow: inset 0 0 34px rgba(255, 223, 138, 0.08);
  animation: spinReverse 10s linear infinite;
}

.oracle-ring-sixiang {
  inset: 66px;
  border: 1px solid rgba(255, 223, 138, 0.34);
  box-shadow: 0 0 20px rgba(255, 223, 138, 0.12);
  animation: spinPulse 13s linear infinite;
}

.oracle-ring-hexagrams,
.oracle-hexagrams,
.oracle-ring-bagua,
.oracle-bagua,
.oracle-sixiang,
.oracle-liang {
  transition: opacity 360ms ease, filter 360ms ease;
}

.loading-oracle[data-phase="0"] .oracle-liang,
.loading-oracle[data-phase="0"] .oracle-sixiang,
.loading-oracle[data-phase="0"] .oracle-bagua,
.loading-oracle[data-phase="0"] .oracle-hexagrams,
.loading-oracle[data-phase="0"] .oracle-ring-bagua,
.loading-oracle[data-phase="0"] .oracle-ring-hexagrams {
  opacity: 0.22;
}

.loading-oracle[data-phase="1"] .oracle-sixiang,
.loading-oracle[data-phase="1"] .oracle-bagua,
.loading-oracle[data-phase="1"] .oracle-hexagrams,
.loading-oracle[data-phase="1"] .oracle-ring-bagua,
.loading-oracle[data-phase="1"] .oracle-ring-hexagrams {
  opacity: 0.32;
}

.loading-oracle[data-phase="2"] .oracle-bagua,
.loading-oracle[data-phase="2"] .oracle-hexagrams,
.loading-oracle[data-phase="2"] .oracle-ring-bagua,
.loading-oracle[data-phase="2"] .oracle-ring-hexagrams {
  opacity: 0.44;
}

.loading-oracle[data-phase="3"] .oracle-ring-hexagrams {
  opacity: 0.58;
}

.loading-oracle[data-phase="4"] .oracle-ring-hexagrams,
.loading-oracle[data-phase="4"] .oracle-hexagrams,
.loading-oracle[data-phase="4"] .oracle-ring-bagua,
.loading-oracle[data-phase="4"] .oracle-bagua,
.loading-oracle[data-phase="4"] .oracle-sixiang,
.loading-oracle[data-phase="4"] .oracle-liang {
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(255, 223, 138, 0.36));
}

.oracle-hexagrams {
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  animation: spinReverse 30s linear infinite;
}

.hexagram-mini {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 26px;
  height: 16px;
  place-items: center;
  padding: 1px 2px;
  color: rgba(255, 241, 176, 0.86);
  border-radius: 999px;
  background: rgba(5, 7, 7, 0.34);
  font-family: "Noto Serif SC", "SimSun", serif;
  line-height: 1;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 223, 138, 0.14);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(var(--oracle-hexagram-inner-translate)) rotate(var(--ra));
  animation: hexagramGlow 2.8s ease-in-out infinite;
  animation-delay: var(--d);
}

.hexagram-mini--outer {
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(var(--oracle-hexagram-outer-translate)) rotate(var(--ra));
}

.hexagram-mini b,
.hexagram-mini small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font-style: normal;
  font-weight: 700;
  text-overflow: clip;
  white-space: nowrap;
}

.hexagram-mini small {
  font-size: 8px;
  transform: scale(0.98);
  transform-origin: 50% 50%;
  animation: textCounterClockwise 30s linear infinite;
}

.hexagram-mini.is-active {
  color: #fff6cf;
  background: rgba(5, 7, 7, 0.72);
  box-shadow:
    0 0 14px rgba(255, 223, 138, 0.42),
    inset 0 0 8px rgba(255, 223, 138, 0.14);
}

.oracle-axis {
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 1px;
  height: calc(var(--oracle-size) + 14px);
  border-radius: 0;
  background: linear-gradient(transparent, rgba(255, 241, 176, 0.9), transparent);
  transform-origin: 50% 50%;
}

.oracle-axis-yin {
  transform: translate(-50%, -50%) rotate(0deg);
  animation: spin 2.9s linear infinite;
}

.oracle-axis-yang {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0.66;
  animation: spinReverse 3.6s linear infinite;
}

.oracle-bagua {
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  animation: spin 24s linear infinite;
}

.oracle-bagua > span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 223, 138, 0.36);
  border-radius: 50%;
  color: #fff6cf;
  background:
    radial-gradient(circle at 48% 35%, rgba(255, 246, 207, 0.26), transparent 46%),
    rgba(5, 7, 7, 0.68);
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 223, 138, 0.78);
  box-shadow: 0 0 18px rgba(217, 183, 111, 0.13);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(var(--oracle-bagua-translate)) rotate(var(--ra));
}

.oracle-bagua > span::before {
  content: "";
  display: none;
  width: 16px;
  height: 12px;
  background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 5px);
  filter: drop-shadow(0 0 7px rgba(255, 223, 138, 0.68));
}

.trigram-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 50%;
}

.oracle-bagua .trigram-content {
  animation: textCounterSpin 24s linear infinite;
}

.oracle-bagua > span b,
.oracle-bagua > span small,
.cosmic-seal__trigram b,
.cosmic-seal__trigram small {
  display: block;
  color: inherit;
  font-style: normal;
  line-height: 1;
  text-align: center;
}

.oracle-bagua > span small {
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 10px;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255, 223, 138, 0.74);
}

.trigram-lines {
  display: grid;
  width: 24px;
  gap: 3px;
}

.trigram-line {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  box-shadow:
    0 0 8px rgba(255, 246, 207, 0.9),
    0 0 14px rgba(217, 169, 56, 0.44);
}

.trigram-line--yin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  background: transparent;
  box-shadow: none;
}

.trigram-line--yin i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: currentColor;
  box-shadow:
    0 0 8px rgba(255, 246, 207, 0.9),
    0 0 14px rgba(217, 169, 56, 0.44);
}

.oracle-hexagram-name {
  z-index: 6;
  top: 77px;
  left: 50%;
  display: block;
  min-width: 104px;
  max-width: 144px;
  padding: 5px 10px 6px;
  border: 1px solid rgba(255, 223, 138, 0.42);
  border-radius: 999px;
  color: #fff1b0;
  background: rgba(5, 7, 7, 0.72);
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 14px rgba(255, 223, 138, 0.82);
  transform: translateX(-50%);
  white-space: nowrap;
  box-shadow:
    0 0 18px rgba(255, 223, 138, 0.22),
    inset 0 0 10px rgba(255, 223, 138, 0.08);
}

.oracle-sixiang {
  inset: 54px;
  z-index: 3;
  border-radius: 50%;
  animation: spinReverse 14s linear infinite;
}

.oracle-sixiang span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid rgba(255, 223, 138, 0.34);
  border-radius: 999px;
  color: rgba(255, 246, 207, 0.92);
  background:
    radial-gradient(circle, rgba(255, 246, 207, 0.8) 0 18%, rgba(255, 223, 138, 0.24) 19% 54%, transparent 56%),
    rgba(5, 7, 7, 0.72);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(var(--oracle-sixiang-translate)) rotate(var(--ra));
  animation: nodePulse 2.4s ease-in-out infinite;
  animation-delay: var(--d);
}

.oracle-liang {
  inset: 88px;
  z-index: 4;
  border: 1px solid rgba(255, 223, 138, 0.24);
  border-radius: 50%;
  animation: spin 6.4s linear infinite;
}

.oracle-liang span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 223, 138, 0.48);
  border-radius: 50%;
  color: #fff1b0;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 246, 207, 0.34), transparent 42%),
    rgba(5, 7, 7, 0.78);
  box-shadow: 0 0 18px rgba(255, 223, 138, 0.18);
}

.oracle-liang span:first-child {
  transform: translate(-50%, -50%) translateX(36px);
}

.oracle-liang span:last-child {
  transform: translate(-50%, -50%) translateX(-36px);
}

.oracle-taiji {
  position: absolute;
  z-index: 5;
  width: 122px;
  height: 122px;
  opacity: 0.9;
  filter:
    drop-shadow(0 0 18px rgba(255, 223, 138, 0.88))
    drop-shadow(0 0 48px rgba(169, 109, 24, 0.42));
  animation: spinReverse 5.4s linear infinite;
}

.oracle-core strong {
  position: relative;
  z-index: 6;
  display: grid;
  min-width: 76px;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 223, 138, 0.44);
  border-radius: 999px;
  color: #fff1b0;
  background: rgba(5, 7, 7, 0.76);
  font-family: "Consolas", "Microsoft YaHei", monospace;
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 0 20px rgba(217, 183, 111, 0.8);
  box-shadow:
    inset 0 0 18px rgba(255, 223, 138, 0.12),
    0 0 28px rgba(5, 7, 7, 0.58);
}

.loading-copy {
  width: min(520px, 100%);
  text-align: center;
}

.loading-copy .eyebrow {
  color: rgba(255, 223, 138, 0.94);
  text-shadow: 0 0 16px rgba(255, 223, 138, 0.36);
}

.loading-copy h2 {
  color: #fff6cf;
  text-shadow:
    0 0 18px rgba(255, 223, 138, 0.54),
    0 0 36px rgba(169, 109, 24, 0.34);
}

.progress-track {
  height: 8px;
  border: 1px solid rgba(255, 223, 138, 0.38);
  border-radius: 999px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 223, 138, 0.12) 0 2px, transparent 2px 16px),
    rgba(4, 9, 10, 0.66);
  box-shadow:
    inset 0 0 12px rgba(255, 223, 138, 0.08),
    0 0 22px rgba(255, 223, 138, 0.1);
}

.progress-track div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    repeating-linear-gradient(90deg, rgba(255, 246, 207, 0.55) 0 1px, transparent 1px 9px),
    linear-gradient(90deg, #8f5812, var(--gold-rich), var(--gold-hot), var(--gold-rich));
  box-shadow: 0 0 24px rgba(255, 223, 138, 0.64);
  transition: width 360ms ease;
}

.loading-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.loading-steps span {
  border: 1px solid rgba(217, 183, 111, 0.2);
  border-radius: 999px;
  padding: 5px 10px;
  color: rgba(158, 167, 157, 0.74);
  font-size: 12px;
  background: rgba(4, 9, 10, 0.42);
}

.loading-steps span.active {
  border-color: rgba(255, 223, 138, 0.62);
  color: var(--gold-hot);
  background:
    linear-gradient(135deg, rgba(255, 223, 138, 0.12), rgba(143, 88, 18, 0.08)),
    rgba(4, 9, 10, 0.52);
  box-shadow:
    0 0 18px rgba(244, 199, 107, 0.16),
    inset 0 0 12px rgba(255, 223, 138, 0.07);
}

.hidden {
  display: none !important;
}

.result {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding-bottom: 92px;
}

.result > * {
  min-width: 0;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(69, 192, 179, 0.12), transparent 36%),
    rgba(4, 9, 10, 0.46);
}

.result-header h2 {
  margin-bottom: 7px;
  font-size: 40px;
  text-shadow: 0 0 26px rgba(217, 183, 111, 0.24);
}

.pillar-title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.34em;
  line-height: 1.16;
}

.pillar-title-token {
  white-space: nowrap;
}

.result-header > div:first-child {
  min-width: 0;
}

.result-meta {
  display: grid;
  gap: 2px;
  line-height: 1.5;
}

.result-meta__line {
  display: block;
  min-width: 0;
}

.result-meta__place {
  word-break: keep-all;
}

.cosmic-seal {
  --seal-size: 132px;
  --bagua-translate: -58px;
  --hexagram-inner-translate: -58px;
  --hexagram-outer-translate: -72px;
  --xiang-translate: -38px;
  position: relative;
  display: grid;
  flex: 0 0 var(--seal-size);
  place-items: center;
  width: var(--seal-size);
  height: var(--seal-size);
  border-radius: 50%;
  color: var(--gold-hot);
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 246, 207, 0.2) 0 9%, transparent 10%),
    radial-gradient(circle, rgba(255, 223, 138, 0.2) 0 28%, transparent 29% 100%),
    linear-gradient(145deg, rgba(255, 246, 207, 0.16), rgba(169, 109, 24, 0.08) 54%, rgba(5, 7, 7, 0.08));
  filter:
    drop-shadow(0 0 24px rgba(255, 223, 138, 0.28))
    drop-shadow(0 0 44px rgba(169, 109, 24, 0.22));
}

.cosmic-seal::before,
.cosmic-seal::after,
.cosmic-seal__halo,
.cosmic-seal__hexagrams,
.cosmic-seal__bagua,
.cosmic-seal__xiang,
.cosmic-seal__liang,
.cosmic-seal__taiji,
.cosmic-seal__caption,
.cosmic-seal__hexagram-name {
  position: absolute;
}

.cosmic-seal::before {
  content: "";
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 246, 207, 0.74) 0 1deg, transparent 1deg 5.625deg),
    conic-gradient(from 18deg, transparent 0 5.4%, rgba(255, 246, 207, 0.88) 5.8% 6.4%, transparent 6.8% 11.9%, rgba(217, 169, 56, 0.72) 12.3% 13%, transparent 13.4% 25%),
    conic-gradient(from 0deg, rgba(255, 223, 138, 0.42), rgba(143, 88, 18, 0.1), rgba(255, 246, 207, 0.34), rgba(217, 169, 56, 0.2), rgba(255, 223, 138, 0.42));
  -webkit-mask: radial-gradient(circle, transparent 0 49%, black 50% 53%, transparent 54% 63%, black 64% 65%, transparent 66%);
  mask: radial-gradient(circle, transparent 0 49%, black 50% 53%, transparent 54% 63%, black 64% 65%, transparent 66%);
  opacity: 0.98;
  animation: spin 16s linear infinite;
}

.cosmic-seal::after {
  content: "";
  inset: 14px;
  border: 1px solid rgba(255, 223, 138, 0.46);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 223, 138, 0.48) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 223, 138, 0.34) 50%, transparent 51%);
  box-shadow:
    inset 0 0 26px rgba(255, 223, 138, 0.1),
    0 0 22px rgba(255, 223, 138, 0.2);
  opacity: 0.86;
  animation: spinReverse 12s linear infinite;
}

.cosmic-seal__halo {
  inset: -10px;
  z-index: -1;
  border: 1px solid rgba(255, 223, 138, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 223, 138, 0.22), transparent 56%),
    conic-gradient(from 90deg, transparent, rgba(255, 223, 138, 0.38), transparent, rgba(69, 192, 179, 0.16), transparent);
  animation: spinPulse 18s linear infinite;
}

.cosmic-seal__bagua {
  inset: 0;
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

.cosmic-seal__hexagrams {
  inset: -6px;
  z-index: 1;
  border-radius: 50%;
  animation: spinReverse 42s linear infinite;
}

.cosmic-seal__hexagram {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 18px;
  height: 12px;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 241, 176, 0.72);
  background: rgba(5, 7, 7, 0.34);
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 6px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 5px rgba(255, 223, 138, 0.72);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(var(--hexagram-inner-translate)) rotate(var(--ra));
}

.cosmic-seal__hexagram--outer {
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(var(--hexagram-outer-translate)) rotate(var(--ra));
}

.cosmic-seal__hexagram small {
  display: block;
  transform-origin: 50% 50%;
  animation: textCounterClockwise 42s linear infinite;
}

.cosmic-seal__hexagram.is-active {
  color: #fff6cf;
  background: rgba(5, 7, 7, 0.72);
  box-shadow: 0 0 8px rgba(255, 223, 138, 0.48);
}

.cosmic-seal__trigram {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 223, 138, 0.32);
  border-radius: 50%;
  color: #fff1b0;
  background: radial-gradient(circle, rgba(255, 223, 138, 0.18), rgba(5, 7, 7, 0.56));
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 223, 138, 0.8);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(var(--bagua-translate)) rotate(var(--ra));
}

.cosmic-seal__trigram::before {
  content: "";
  display: none;
  width: 13px;
  height: 10px;
  background: repeating-linear-gradient(to bottom, currentColor 0 1.5px, transparent 1.5px 4px);
  filter: drop-shadow(0 0 6px rgba(255, 223, 138, 0.7));
}

.cosmic-seal__trigram .trigram-lines {
  width: 18px;
  gap: 2px;
}

.cosmic-seal__trigram .trigram-content {
  animation: textCounterSpin 30s linear infinite;
}

.cosmic-seal__trigram .trigram-line {
  height: 2px;
}

.cosmic-seal__trigram .trigram-line--yin {
  gap: 4px;
}

.cosmic-seal__trigram small {
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 8px;
  font-weight: 800;
}

.cosmic-seal__hexagram-name {
  z-index: 6;
  left: 50%;
  bottom: -6px;
  display: block;
  min-width: 78px;
  max-width: 104px;
  padding: 4px 7px 5px;
  border: 1px solid rgba(255, 223, 138, 0.46);
  border-radius: 999px;
  color: #fff1b0;
  background: rgba(5, 7, 7, 0.86);
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 223, 138, 0.74);
  transform: translateX(-50%);
  white-space: nowrap;
  box-shadow:
    0 0 16px rgba(255, 223, 138, 0.26),
    inset 0 0 10px rgba(255, 223, 138, 0.08);
}

.cosmic-seal__xiang {
  inset: 24px;
  border: 1px dashed rgba(255, 223, 138, 0.25);
  border-radius: 50%;
  animation: spinReverse 20s linear infinite;
}

.cosmic-seal__xiang span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 11px;
  height: 11px;
  place-items: center;
  border: 1px solid rgba(217, 183, 111, 0.3);
  border-radius: 50%;
  color: rgba(255, 246, 207, 0.88);
  background:
    radial-gradient(circle, rgba(255, 246, 207, 0.86) 0 26%, rgba(255, 223, 138, 0.24) 27% 58%, transparent 60%),
    rgba(5, 7, 7, 0.72);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(var(--xiang-translate)) rotate(var(--ra));
  animation: nodePulse 2.4s ease-in-out infinite;
  animation-delay: var(--d);
}

.cosmic-seal__liang {
  inset: 43px;
  border: 1px solid rgba(255, 223, 138, 0.22);
  border-radius: 50%;
  animation: spin 8s linear infinite;
}

.cosmic-seal__liang span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 223, 138, 0.44);
  border-radius: 50%;
  color: #fff6cf;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 246, 207, 0.34), transparent 38%),
    rgba(5, 7, 7, 0.78);
  box-shadow: 0 0 16px rgba(255, 223, 138, 0.18);
}

.cosmic-seal__liang span:first-child {
  transform: translate(-50%, -50%) translateX(29px);
}

.cosmic-seal__liang span:last-child {
  transform: translate(-50%, -50%) translateX(-29px);
}

.cosmic-seal__taiji {
  z-index: 3;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: url("./taiji-bagua-gold.svg") center / contain no-repeat;
  filter:
    drop-shadow(0 0 10px rgba(255, 246, 207, 0.82))
    drop-shadow(0 0 24px rgba(169, 109, 24, 0.42));
  opacity: 0.94;
  animation: spinReverse 5.8s linear infinite;
}

.cosmic-seal__caption {
  z-index: 4;
  left: 50%;
  bottom: 3px;
  display: block;
  min-width: 72px;
  padding: 3px 7px 4px;
  border: 1px solid rgba(255, 223, 138, 0.3);
  border-radius: 999px;
  color: #fff1b0;
  background: rgba(5, 7, 7, 0.72);
  font-size: 10px;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 12px rgba(255, 223, 138, 0.78);
  transform: translateX(-50%);
  white-space: nowrap;
}

.matrix-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.matrix-strip span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line-cold);
  border-radius: 6px;
  color: var(--jade);
  background: rgba(4, 9, 10, 0.44);
  font-family: "Consolas", "Microsoft YaHei", monospace;
  font-size: 13px;
}

.time-calibration-card {
  position: relative;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(217, 183, 111, 0.28);
  border-radius: 8px;
  padding: 13px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(217, 183, 111, 0.13), transparent 40%),
    linear-gradient(240deg, rgba(69, 192, 179, 0.1), transparent 45%),
    rgba(4, 9, 10, 0.58);
}

.time-calibration-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 223, 138, 0.9), transparent);
}

.time-calibration-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.time-calibration-head span {
  color: rgba(242, 234, 216, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.time-calibration-head strong {
  color: var(--gold-hot);
  font-family: "Consolas", "Microsoft YaHei", monospace;
  font-size: 18px;
}

.time-calibration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.time-calibration-card p {
  margin: 0;
  color: rgba(242, 234, 216, 0.62);
  font-size: 12px;
  line-height: 1.65;
}

.bazi-board {
  position: relative;
  border: 1px solid rgba(217, 183, 111, 0.32);
  border-radius: 8px;
  padding: 18px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(217, 183, 111, 0.18), transparent 27%),
    linear-gradient(225deg, rgba(69, 192, 179, 0.12), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(217, 183, 111, 0.035) 0 1px, transparent 1px 54px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 36%),
    rgba(4, 9, 10, 0.64);
  box-shadow:
    inset 0 0 0 1px rgba(255, 223, 138, 0.05),
    0 0 52px rgba(69, 192, 179, 0.1);
}

.bazi-board::before {
  content: "";
  position: absolute;
  inset: -40% -35%;
  z-index: -1;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 223, 138, 0.09) 48%, transparent 61%);
  animation: baziMatrixSweep 7.2s ease-in-out infinite;
  pointer-events: none;
}

.bazi-board::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 1px solid rgba(69, 192, 179, 0.11);
  border-radius: 6px;
  pointer-events: none;
}

.bazi-board > * {
  position: relative;
}

.bazi-board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 0 2px;
}

.bazi-board-head h2 {
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 30px;
  text-shadow: 0 0 26px rgba(217, 183, 111, 0.24);
}

.bazi-board-head .muted {
  max-width: 780px;
  margin-bottom: 0;
  color: rgba(242, 234, 216, 0.58);
  font-size: 12px;
  line-height: 1.65;
}

.bazi-pro-table-wrap {
  position: relative;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(217, 183, 111, 0.38);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 223, 138, 0.16), transparent 210px),
    radial-gradient(circle at 72% 18%, rgba(255, 49, 88, 0.065), transparent 170px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 223, 138, 0.028) 0 1px, transparent 1px 68px),
    rgba(1, 5, 6, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 223, 138, 0.065),
    inset 0 0 42px rgba(217, 183, 111, 0.05),
    0 18px 54px rgba(0, 0, 0, 0.32);
}

.bazi-pro-table-wrap::before,
.bazi-pro-table-wrap::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.bazi-pro-table-wrap::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 223, 138, 0.14), transparent),
    linear-gradient(180deg, rgba(255, 223, 138, 0.1), transparent 76px);
  opacity: 0.56;
}

.bazi-pro-table-wrap::after {
  inset: 7px;
  border: 1px solid rgba(69, 192, 179, 0.08);
  border-radius: 5px;
}

.bazi-pro-table {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
}

.bazi-pro-row {
  display: grid;
  grid-template-columns: 64px repeat(4, minmax(78px, 1fr));
  min-width: 0;
  border-bottom: 1px solid rgba(217, 183, 111, 0.13);
}

.bazi-pro-row:last-child {
  border-bottom: 0;
}

.bazi-pro-row:nth-child(odd):not(.bazi-pro-row--head) {
  background: rgba(255, 255, 255, 0.018);
}

.bazi-pro-row--head {
  background:
    linear-gradient(90deg, rgba(255, 223, 138, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.48);
}

.bazi-pro-row[data-group="pillar"] {
  background:
    radial-gradient(circle at 64% 50%, rgba(255, 223, 138, 0.07), transparent 54%),
    rgba(255, 223, 138, 0.012);
}

.bazi-pro-row[data-group="inner"],
.bazi-pro-row[data-group="omens"] {
  background:
    linear-gradient(180deg, rgba(217, 183, 111, 0.04), transparent),
    rgba(0, 0, 0, 0.08);
}

.bazi-pro-row[data-row="天干"],
.bazi-pro-row[data-row="藏干"],
.bazi-pro-row[data-row="星运"],
.bazi-pro-row[data-row="纳音"],
.bazi-pro-row[data-row="神煞"] {
  box-shadow: inset 0 1px 0 rgba(255, 223, 138, 0.18);
}

.bazi-pro-label,
.bazi-pro-head-cell,
.bazi-pro-cell {
  min-width: 0;
  border-right: 1px solid rgba(217, 183, 111, 0.105);
}

.bazi-pro-head-cell:last-child,
.bazi-pro-cell:last-child {
  border-right: 0;
}

.bazi-pro-label {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 12px 7px;
  color: rgba(217, 183, 111, 0.74);
  background:
    linear-gradient(90deg, rgba(217, 183, 111, 0.12), rgba(4, 9, 10, 0.24)),
    rgba(255, 223, 138, 0.025);
  font-family: "Noto Serif SC", "SimSun", "Songti SC", serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  box-shadow: inset -1px 0 0 rgba(255, 223, 138, 0.04);
}

.bazi-pro-corner span {
  color: rgba(255, 223, 138, 0.86);
}

.bazi-pro-corner small {
  color: rgba(69, 192, 179, 0.58);
  font-family: "Consolas", "Microsoft YaHei", monospace;
  font-size: 10px;
  font-weight: 800;
}

.bazi-pro-head-cell {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-height: 72px;
  padding: 11px 6px 10px;
}

.bazi-pro-head-cell span {
  color: rgba(242, 234, 216, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.bazi-pro-head-cell strong {
  color: var(--gold-hot);
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 22px rgba(255, 223, 138, 0.18);
}

.bazi-pro-head-cell em {
  display: inline-grid;
  min-width: 30px;
  min-height: 18px;
  place-items: center;
  border: 1px solid rgba(217, 183, 111, 0.18);
  border-radius: 999px;
  padding: 1px 6px;
  color: rgba(217, 183, 111, 0.7);
  background: rgba(255, 223, 138, 0.045);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
}

.bazi-pro-head-cell.is-day-col,
.bazi-pro-cell.is-day-col {
  background:
    linear-gradient(180deg, rgba(255, 49, 88, 0.12), transparent 60%),
    radial-gradient(circle at 50% 0%, rgba(255, 223, 138, 0.11), transparent 72%),
    rgba(255, 223, 138, 0.035);
  box-shadow:
    inset 1px 0 0 rgba(255, 223, 138, 0.08),
    inset -1px 0 0 rgba(255, 223, 138, 0.08);
}

.bazi-pro-cell {
  display: grid;
  place-items: center;
  min-height: 56px;
  padding: 10px 6px;
  text-align: center;
}

.bazi-pro-row--glyph .bazi-pro-cell {
  min-height: 98px;
}

.bazi-pro-row--stack .bazi-pro-cell,
.bazi-pro-row--tags .bazi-pro-cell {
  align-items: start;
  min-height: 122px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.bazi-pro-text {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: rgba(242, 234, 216, 0.86);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.bazi-pro-row[data-row="主星"] .bazi-pro-text {
  color: rgba(255, 248, 222, 0.96);
  font-size: 17px;
  text-shadow: 0 0 18px rgba(217, 183, 111, 0.16);
}

.bazi-pro-item {
  min-width: 0;
  background: transparent;
}

.bazi-pro-item--glyph {
  --element-ink: var(--gold-hot);
  --element-glow: rgba(255, 223, 138, 0.24);
  display: grid;
  justify-items: center;
  gap: 5px;
}

.bazi-pro-item--glyph strong {
  color: var(--element-ink);
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  text-shadow:
    0 0 24px var(--element-glow),
    0 0 1px rgba(255, 255, 255, 0.32);
}

.bazi-pro-item--glyph small {
  color: rgba(242, 234, 216, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.bazi-pro-stack {
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 100%;
}

.bazi-pro-item--stem {
  --element-ink: var(--gold-hot);
  display: inline-flex;
  max-width: 100%;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  color: var(--element-ink);
  font-weight: 900;
  line-height: 1.15;
}

.bazi-pro-item--stem strong {
  color: inherit;
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: 21px;
  line-height: 1;
}

.bazi-pro-item--stem small {
  color: inherit;
  font-size: 13px;
}

.bazi-pro-item--text {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: rgba(242, 234, 216, 0.86);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.28;
}

.bazi-pro-shensha {
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 100%;
}

.bazi-pro-shensha span {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: rgba(217, 183, 111, 0.95);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.bazi-pro-shensha .is-muted {
  color: rgba(242, 234, 216, 0.46);
}

.bazi-pro-cell--glyph .element-木,
.bazi-pro-item--stem.element-木 {
  --element-ink: #48d281;
  --element-glow: rgba(72, 210, 129, 0.22);
  background: transparent;
}

.bazi-pro-cell--glyph .element-火,
.bazi-pro-item--stem.element-火 {
  --element-ink: #ff3158;
  --element-glow: rgba(255, 49, 88, 0.25);
  background: transparent;
}

.bazi-pro-cell--glyph .element-土,
.bazi-pro-item--stem.element-土 {
  --element-ink: #c5972e;
  --element-glow: rgba(255, 223, 138, 0.22);
  background: transparent;
}

.bazi-pro-cell--glyph .element-金,
.bazi-pro-item--stem.element-金 {
  --element-ink: #f3ead3;
  --element-glow: rgba(243, 234, 211, 0.18);
  background: transparent;
}

.bazi-pro-cell--glyph .element-水,
.bazi-pro-item--stem.element-水 {
  --element-ink: #63c7ff;
  --element-glow: rgba(99, 199, 255, 0.22);
  background: transparent;
}

.bazi-pro-cell.is-day-col .bazi-pro-item--glyph strong {
  color: #ff3158;
  text-shadow: 0 0 28px rgba(255, 49, 88, 0.3);
}

.bazi-pillar-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.bazi-pillar-panel {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 12px;
  border: 1px solid rgba(69, 192, 179, 0.2);
  border-radius: 8px;
  padding: 14px;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(69, 192, 179, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(2, 6, 7, 0.6);
}

.bazi-pillar-panel::before,
.bazi-pillar-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.bazi-pillar-panel::before {
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(69, 192, 179, 0.85), rgba(217, 183, 111, 0.86), transparent);
  opacity: 0.72;
}

.bazi-pillar-panel::after {
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-right: 1px solid rgba(217, 183, 111, 0.42);
  border-bottom: 1px solid rgba(217, 183, 111, 0.42);
  opacity: 0.72;
}

.bazi-pillar-panel.is-day {
  border-color: rgba(255, 223, 138, 0.54);
  background:
    linear-gradient(150deg, rgba(255, 223, 138, 0.18), transparent 36%),
    linear-gradient(225deg, rgba(69, 192, 179, 0.1), transparent 44%),
    rgba(5, 7, 7, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(255, 223, 138, 0.08),
    0 0 34px rgba(217, 183, 111, 0.16);
}

.bazi-pillar-top,
.bazi-mobile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.bazi-pillar-title {
  display: grid;
  gap: 2px;
}

.bazi-pillar-title span,
.bazi-mobile-card-head span {
  color: rgba(242, 234, 216, 0.66);
  font-size: 13px;
  font-weight: 700;
}

.bazi-pillar-title small {
  color: rgba(69, 192, 179, 0.72);
  font-family: "Consolas", "Microsoft YaHei", monospace;
  font-size: 10px;
}

.bazi-core-badge,
.bazi-mobile-card-head em {
  flex: 0 0 auto;
  border: 1px solid rgba(217, 183, 111, 0.28);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--gold-hot);
  background: rgba(217, 183, 111, 0.08);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
}

.bazi-pillar-code {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 2px;
}

.bazi-pillar-code strong {
  color: var(--gold-hot);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 48px;
  line-height: 1;
  text-shadow:
    0 0 18px rgba(255, 223, 138, 0.35),
    0 0 42px rgba(217, 183, 111, 0.16);
}

.bazi-pillar-code span {
  max-width: 72px;
  color: rgba(242, 234, 216, 0.58);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.bazi-glyph-pair,
.bazi-mobile-glyph-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bazi-glyph-tile {
  --element-glow: rgba(217, 183, 111, 0.28);
  --element-ink: var(--gold-hot);
  display: grid;
  min-width: 0;
  min-height: 92px;
  place-items: center;
  border: 1px solid rgba(217, 183, 111, 0.18);
  border-radius: 8px;
  padding: 8px 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(1, 5, 6, 0.42);
  box-shadow: inset 0 0 22px var(--element-glow);
}

.bazi-glyph-tile[data-element="木"] {
  --element-ink: #55d987;
  --element-glow: rgba(85, 217, 135, 0.16);
}

.bazi-glyph-tile[data-element="火"] {
  --element-ink: #ff735c;
  --element-glow: rgba(255, 115, 92, 0.16);
}

.bazi-glyph-tile[data-element="土"] {
  --element-ink: #e2bb58;
  --element-glow: rgba(226, 187, 88, 0.17);
}

.bazi-glyph-tile[data-element="金"] {
  --element-ink: #e5eef0;
  --element-glow: rgba(229, 238, 240, 0.14);
}

.bazi-glyph-tile[data-element="水"] {
  --element-ink: #68c4ff;
  --element-glow: rgba(104, 196, 255, 0.17);
}

.bazi-glyph-tile span {
  color: rgba(242, 234, 216, 0.5);
  font-size: 11px;
  font-weight: 700;
}

.bazi-glyph-tile strong {
  color: var(--element-ink);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 42px;
  line-height: 1;
  text-shadow: 0 0 24px var(--element-glow);
}

.bazi-glyph-tile small {
  width: 100%;
  color: rgba(242, 234, 216, 0.62);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.bazi-mini-stats,
.bazi-mobile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.bazi-mini-stat {
  display: grid;
  min-width: 0;
  gap: 3px;
  border: 1px solid rgba(69, 192, 179, 0.14);
  border-radius: 6px;
  padding: 7px;
  background: rgba(4, 9, 10, 0.46);
}

.bazi-mini-stat small {
  color: rgba(158, 167, 157, 0.88);
  font-size: 10px;
}

.bazi-mini-stat b {
  overflow-wrap: anywhere;
  color: rgba(242, 234, 216, 0.88);
  font-size: 12px;
  line-height: 1.25;
}

.bazi-pillar-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid rgba(69, 192, 179, 0.12);
}

.bazi-mini-label,
.bazi-mobile-label {
  color: rgba(242, 234, 216, 0.55);
  font-size: 12px;
  font-weight: 800;
}

.bazi-pillar-tokens {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.bazi-analysis-board {
  position: relative;
  border: 1px solid rgba(69, 192, 179, 0.22);
  border-radius: 8px;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(69, 192, 179, 0.12), transparent 30%),
    linear-gradient(230deg, rgba(217, 183, 111, 0.12), transparent 35%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 68px),
    rgba(4, 9, 10, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(255, 223, 138, 0.045),
    0 0 42px rgba(69, 192, 179, 0.09);
}

.bazi-analysis-board::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(217, 183, 111, 0.12);
  border-radius: 6px;
  pointer-events: none;
}

.bazi-analysis-board > * {
  position: relative;
}

.bazi-analysis-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.bazi-analysis-head h2 {
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 26px;
}

.bazi-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 12px;
}

.bazi-analysis-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(69, 192, 179, 0.19);
  border-radius: 8px;
  padding: 14px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(69, 192, 179, 0.105), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(1, 5, 6, 0.46);
}

.bazi-analysis-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 26px;
  height: 26px;
  border-right: 1px solid rgba(217, 183, 111, 0.34);
  border-bottom: 1px solid rgba(217, 183, 111, 0.34);
  pointer-events: none;
}

.bazi-analysis-card .bazi-analysis-head {
  margin-bottom: 12px;
}

.bazi-analysis-card .bazi-analysis-head h2 {
  color: var(--gold-hot);
  font-size: 18px;
}

.wuxing-card {
  grid-row: span 2;
  border-color: rgba(217, 183, 111, 0.28);
  background:
    radial-gradient(circle at 50% 38%, rgba(217, 183, 111, 0.14), transparent 34%),
    linear-gradient(155deg, rgba(69, 192, 179, 0.1), transparent 38%),
    rgba(2, 6, 7, 0.54);
}

.wuxing-orbit {
  position: relative;
  min-height: 236px;
  margin: 4px 0 12px;
  border: 1px solid rgba(69, 192, 179, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(255, 223, 138, 0.14), transparent 28%),
    conic-gradient(from 12deg, rgba(69, 192, 179, 0.08), rgba(217, 183, 111, 0.14), rgba(204, 78, 53, 0.12), rgba(84, 183, 255, 0.12), rgba(69, 192, 179, 0.08));
}

.wuxing-orbit::before,
.wuxing-orbit::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 223, 138, 0.12);
  border-radius: 50%;
}

.wuxing-orbit::after {
  inset: 58px;
  border-color: rgba(69, 192, 179, 0.14);
}

.wuxing-center,
.wuxing-node {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
}

.wuxing-center {
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(255, 223, 138, 0.36);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 223, 138, 0.22), transparent 62%),
    rgba(2, 6, 7, 0.84);
  box-shadow: 0 0 28px rgba(217, 183, 111, 0.18);
  transform: translate(-50%, -50%);
}

.wuxing-center span,
.wuxing-center small,
.wuxing-node small {
  color: rgba(242, 234, 216, 0.58);
  font-size: 11px;
}

.wuxing-center strong {
  color: var(--gold-hot);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 28px;
  line-height: 1;
}

.wuxing-node {
  width: 60px;
  height: 60px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(2, 6, 7, 0.78);
  box-shadow: 0 0 22px rgba(255, 223, 138, 0.08);
}

.wuxing-node b {
  color: currentColor;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 24px;
  line-height: 1;
}

.wuxing-node:nth-child(1) {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.wuxing-node:nth-child(2) {
  top: 62px;
  right: 28px;
}

.wuxing-node:nth-child(3) {
  right: 54px;
  bottom: 20px;
}

.wuxing-node:nth-child(4) {
  bottom: 20px;
  left: 54px;
}

.wuxing-node:nth-child(5) {
  top: 62px;
  left: 28px;
}

.metric-row,
.useful-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.metric-chip {
  display: grid;
  min-width: 0;
  gap: 3px;
  border: 1px solid rgba(69, 192, 179, 0.18);
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(4, 9, 10, 0.5);
}

.metric-chip small {
  color: rgba(158, 167, 157, 0.92);
  font-size: 11px;
}

.metric-chip b {
  overflow-wrap: anywhere;
  color: #d9ded2;
  font-size: 14px;
  line-height: 1.35;
}

.metric-chip.hot {
  border-color: rgba(255, 223, 138, 0.32);
  background: rgba(217, 183, 111, 0.09);
}

.metric-chip.hot b {
  color: var(--gold-hot);
}

.metric-chip.jade b {
  color: var(--jade);
}

.analysis-note {
  margin: 12px 0 0;
  color: rgba(242, 234, 216, 0.74);
  font-size: 13px;
  line-height: 1.8;
}

.ten-star-rank {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}

.ten-star-rank span {
  display: grid;
  min-width: 0;
  gap: 4px;
  border: 1px solid rgba(217, 183, 111, 0.18);
  border-radius: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.ten-star-rank small {
  color: rgba(69, 192, 179, 0.82);
  font-family: "Consolas", "Microsoft YaHei", monospace;
  font-size: 10px;
}

.ten-star-rank b {
  color: var(--bone);
  font-size: 14px;
}

.ten-star-rank em {
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
}

.ten-group-bars {
  display: grid;
  gap: 9px;
}

.ten-group-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
}

.ten-group-row span,
.ten-group-row b {
  color: rgba(242, 234, 216, 0.68);
  font-size: 12px;
}

.ten-fill {
  color: var(--gold);
  background: linear-gradient(90deg, var(--jade), var(--gold-hot));
}

.useful-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.relation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.relation-list span {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(217, 183, 111, 0.24);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(217, 183, 111, 0.07);
}

.relation-list b {
  color: var(--gold-hot);
  font-size: 13px;
  line-height: 1;
}

.relation-list small {
  color: rgba(242, 234, 216, 0.58);
  font-size: 10px;
}

.relation-list .is-muted {
  display: inline-flex;
  color: rgba(242, 234, 216, 0.62);
}

.pattern-stack {
  display: grid;
  gap: 8px;
}

.pattern-mini {
  border-top: 1px solid rgba(69, 192, 179, 0.13);
  padding-top: 9px;
}

.pattern-mini strong {
  color: var(--jade);
  font-size: 14px;
}

.pattern-mini p {
  margin: 5px 0 0;
  color: rgba(242, 234, 216, 0.72);
  font-size: 13px;
  line-height: 1.72;
}

.bazi-table-scroller {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid rgba(217, 183, 111, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(2, 6, 7, 0.58);
  box-shadow: inset 0 0 26px rgba(69, 192, 179, 0.06);
}

.bazi-mobile-grid {
  display: none;
}

.bazi-table {
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0;
}

.bazi-table th,
.bazi-table td {
  border-right: 1px solid rgba(69, 192, 179, 0.1);
  border-bottom: 1px solid rgba(69, 192, 179, 0.13);
  padding: 12px 14px;
  text-align: center;
  vertical-align: middle;
}

.bazi-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--muted);
  font-weight: 700;
  background:
    linear-gradient(180deg, rgba(217, 183, 111, 0.1), transparent),
    rgba(12, 19, 20, 0.96);
}

.bazi-table .date-head,
.bazi-table .row-head {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 96px;
  color: rgba(242, 234, 216, 0.58);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(217, 183, 111, 0.065), rgba(4, 9, 10, 0.96));
}

.bazi-table thead .date-head {
  z-index: 4;
}

.pillar-head {
  min-width: 150px;
}

.pillar-head.is-day-col,
.bazi-table-cell.is-day-col {
  background:
    linear-gradient(180deg, rgba(255, 223, 138, 0.065), transparent 46%),
    rgba(217, 183, 111, 0.035);
}

.bazi-col-label {
  display: block;
  color: rgba(242, 234, 216, 0.78);
  font-size: 13px;
}

.pillar-head small {
  display: block;
  margin-top: 5px;
  color: var(--gold-hot);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 24px;
  line-height: 1;
}

.bazi-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.026);
}

.bazi-table tbody tr:hover {
  background: rgba(69, 192, 179, 0.055);
}

.bazi-cell-content {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.bazi-cell-content.stack,
.bazi-cell-content.tags {
  flex-direction: column;
  align-items: center;
}

.bazi-cell-content.tags {
  gap: 6px;
}

.bazi-token {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.035);
  color: #d9ded2;
  line-height: 1.35;
}

.bazi-token.glyph {
  display: inline-grid;
  gap: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.bazi-token.glyph strong {
  font-family: "SimSun", "Songti SC", serif;
  font-size: 52px;
  line-height: 1;
  text-shadow: 0 0 28px currentColor;
}

.bazi-token.glyph small {
  font-size: 13px;
  font-weight: 700;
}

.bazi-token.stack strong {
  font-size: 18px;
}

.bazi-token.stack small {
  font-size: 11px;
  color: var(--muted);
}

.bazi-token.tags {
  width: auto;
  border: 1px solid rgba(217, 183, 111, 0.2);
  border-radius: 999px;
  padding: 4px 9px;
  color: rgba(217, 183, 111, 0.9);
  background: rgba(217, 183, 111, 0.065);
  font-size: 13px;
}

.bazi-token.glyph.element-木,
.bazi-token.glyph.element-火,
.bazi-token.glyph.element-土,
.bazi-token.glyph.element-金,
.bazi-token.glyph.element-水 {
  border-color: transparent;
  background: transparent;
}

.bazi-token.element-木 {
  color: #3fd07b;
}

.bazi-token.element-火 {
  color: #ff5f46;
}

.bazi-token.element-土 {
  color: #d6a93f;
}

.bazi-token.element-金 {
  color: #d9e5e8;
}

.bazi-token.element-水 {
  color: #54b7ff;
}

@keyframes baziMatrixSweep {
  0% {
    transform: translateX(-38%) rotate(0.001deg);
    opacity: 0;
  }

  28%,
  68% {
    opacity: 1;
  }

  100% {
    transform: translateX(38%) rotate(0.001deg);
    opacity: 0;
  }
}

.deep-dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.deep-dock button {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(217, 183, 111, 0.44);
  border-radius: 8px;
  padding: 10px 18px 10px 14px;
  color: #05110f;
  background:
    linear-gradient(135deg, #ffe39a, #d9a938 58%, #9a6115),
    var(--gold-rich);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.46),
    0 0 42px rgba(217, 183, 111, 0.25);
  cursor: pointer;
  overflow: hidden;
  pointer-events: auto;
}

.deep-dock button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
  mix-blend-mode: soft-light;
}

.deep-dock button::after {
  content: "";
  position: absolute;
  top: -80%;
  bottom: -80%;
  left: -24%;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: rotate(18deg);
  animation: shineSweep 3.4s ease-in-out infinite;
}

.deep-dock span,
.deep-dock small {
  position: relative;
  z-index: 1;
  grid-column: 2;
  min-width: 0;
}

.deep-dock .button-taiji {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.deep-dock span {
  font-size: 18px;
  font-weight: 800;
}

.deep-dock small {
  margin-top: 3px;
  color: rgba(5, 17, 15, 0.72);
  font-size: 12px;
}

.deep-dock button:disabled {
  cursor: progress;
  opacity: 0.78;
}

.deep-dock button.is-loading {
  opacity: 1;
  background:
    radial-gradient(circle at 20px 50%, rgba(255, 246, 207, 0.42), transparent 38%),
    linear-gradient(135deg, #fff1b0, #d9a938 54%, #8f5812);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ai-report {
  position: relative;
  border: 1px solid rgba(217, 183, 111, 0.38);
  border-radius: 8px;
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(217, 183, 111, 0.14), transparent 32%),
    radial-gradient(circle at 90% 0%, rgba(69, 192, 179, 0.16), transparent 30%),
    rgba(5, 7, 7, 0.72);
  box-shadow: 0 0 48px rgba(217, 183, 111, 0.12);
}

.ai-report::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(69, 192, 179, 0.12);
  border-radius: 6px;
}

.ai-report h2 {
  position: relative;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 30px;
}

.ai-overview {
  position: relative;
  color: #edf2e7;
  font-size: 16px;
  line-height: 1.95;
}

.ai-retry-note {
  position: relative;
  border: 1px solid rgba(255, 223, 138, 0.24);
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(255, 241, 176, 0.92);
  background: rgba(255, 223, 138, 0.075);
  font-size: 13px;
  line-height: 1.65;
}

.ai-key-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
}

.ai-key-card {
  min-width: 0;
  border: 1px solid rgba(255, 223, 138, 0.28);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(255, 223, 138, 0.12), transparent 42%),
    rgba(4, 9, 10, 0.52);
}

.ai-key-card span {
  display: block;
  margin-bottom: 6px;
  color: rgba(158, 167, 157, 0.92);
  font-size: 12px;
}

.ai-key-card strong {
  display: block;
  color: var(--gold-hot);
  font-size: 16px;
  line-height: 1.35;
}

.ai-key-card p {
  margin: 8px 0 0;
  color: #d9ded2;
  font-size: 13px;
  line-height: 1.65;
}

.ai-section-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.ai-section-card {
  min-width: 0;
  border: 1px solid rgba(69, 192, 179, 0.2);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(69, 192, 179, 0.08), transparent 38%),
    rgba(2, 6, 7, 0.36);
}

.ai-section-card h3 {
  color: var(--gold-hot);
}

.ai-section-card p {
  margin-bottom: 0;
  color: #d9ded2;
  line-height: 1.85;
  white-space: pre-line;
}

.ai-thesis {
  margin: 0 0 10px !important;
  color: #fff1b0 !important;
  font-weight: 700;
}

.ai-evidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 11px;
}

.ai-evidence-row span {
  border: 1px solid rgba(255, 223, 138, 0.26);
  border-radius: 999px;
  padding: 4px 8px;
  color: rgba(255, 223, 138, 0.9);
  background: rgba(255, 223, 138, 0.075);
  font-size: 12px;
  line-height: 1.35;
}

.ai-action-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.ai-action-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(242, 234, 216, 0.88);
  font-size: 13px;
  line-height: 1.65;
}

.ai-action-list li::before {
  content: "";
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-hot);
  box-shadow: 0 0 12px rgba(255, 223, 138, 0.72);
}

.ai-subhead {
  position: relative;
  margin-top: 20px;
}

.ai-subhead h3 {
  margin-bottom: 12px;
  color: var(--gold);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 25px;
}

.ai-timing {
  position: relative;
}

.ai-timing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-timing-card {
  min-width: 0;
  border: 1px solid rgba(217, 183, 111, 0.24);
  border-radius: 8px;
  padding: 13px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 223, 138, 0.12), transparent 34%),
    rgba(4, 9, 10, 0.48);
}

.ai-period {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.ai-timing-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--gold-hot);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 26px;
  line-height: 1;
}

.ai-timing-card p {
  margin-bottom: 7px;
  color: #d9ded2;
  font-size: 13px;
  line-height: 1.65;
}

.ai-timing-theme,
.ai-timing-action {
  color: rgba(255, 241, 176, 0.92) !important;
  font-weight: 700;
}

.ai-advice {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.ai-advice li {
  min-height: 92px;
  border: 1px solid rgba(217, 183, 111, 0.24);
  border-radius: 8px;
  padding: 12px;
  color: var(--bone);
  background: rgba(217, 183, 111, 0.08);
  font-size: 13px;
  line-height: 1.55;
}

.ai-advice strong {
  display: block;
  margin-bottom: 7px;
  color: var(--gold-hot);
  font-size: 14px;
}

.ai-advice p {
  margin: 0;
  color: #d9ded2;
  line-height: 1.68;
}

.ai-muted {
  border-color: rgba(105, 115, 110, 0.34);
}

.pillar-card,
.plain-panel,
.report-section,
.annual-card,
.error-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(4, 9, 10, 0.58);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinReverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes textCounterSpin {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes textCounterClockwise {
  0% {
    transform: scale(0.98) rotate(0deg);
  }

  100% {
    transform: scale(0.98) rotate(360deg);
  }
}

@keyframes spinPulse {
  0% {
    transform: rotate(0deg) scale(0.94);
    opacity: 0.46;
  }

  50% {
    transform: rotate(180deg) scale(1.06);
    opacity: 0.88;
  }

  100% {
    transform: rotate(360deg) scale(0.94);
    opacity: 0.46;
  }
}

@keyframes shineSweep {
  0%,
  58% {
    transform: translateX(0) rotate(18deg);
    opacity: 0;
  }

  72% {
    opacity: 0.86;
  }

  100% {
    transform: translateX(680%) rotate(18deg);
    opacity: 0;
  }
}

@keyframes pulseRing {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.45;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.88;
  }
}

@keyframes goldPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(255, 223, 138, 0));
  }

  50% {
    filter: drop-shadow(0 0 22px rgba(255, 223, 138, 0.42));
  }
}

@keyframes orbitDrift {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.015);
  }
}

@keyframes nodePulse {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.62;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes hexagramGlow {
  0%,
  100% {
    opacity: 0.42;
    filter: drop-shadow(0 0 0 rgba(255, 223, 138, 0));
  }

  50% {
    opacity: 0.95;
    filter: drop-shadow(0 0 7px rgba(255, 223, 138, 0.44));
  }
}

@keyframes railSweep {
  0% {
    transform: translateX(-42px);
    opacity: 0;
  }

  20%,
  72% {
    opacity: 0.88;
  }

  100% {
    transform: translateX(calc(100vw + 42px));
    opacity: 0;
  }
}

@keyframes pickerRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pillar-card {
  position: relative;
  min-height: 158px;
  padding: 14px;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  inset: auto 12px 12px auto;
  width: 34px;
  height: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 0.8;
}

.pillar-label {
  color: var(--muted);
  font-size: 12px;
}

.pillar-main {
  margin: 10px 0;
  color: var(--gold);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}

.pillar-meta,
.hidden-gans {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.overview-grid,
.luck-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 14px;
}

.plain-panel,
.report-section {
  padding: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  border: 1px solid rgba(69, 192, 179, 0.32);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--jade);
  background: rgba(69, 192, 179, 0.08);
  font-size: 12px;
}

.element-bars {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 24px 1fr 48px;
  gap: 10px;
  align-items: center;
  min-height: 24px;
}

.bar-name,
.bar-value {
  color: var(--muted);
  font-size: 13px;
}

.bar-track {
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 0 14px currentColor;
}

.element-木 {
  color: #3fbf72;
  background: #3fbf72;
}

.element-火 {
  color: #e35a3c;
  background: #e35a3c;
}

.element-土 {
  color: #d9b76f;
  background: #d9b76f;
}

.element-金 {
  color: #c7d1d5;
  background: #c7d1d5;
}

.element-水 {
  color: #4aa4d8;
  background: #4aa4d8;
}

.wuxing-node.element-木,
.wuxing-node.element-火,
.wuxing-node.element-土,
.wuxing-node.element-金,
.wuxing-node.element-水 {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.12), transparent 40%),
    rgba(2, 6, 7, 0.78);
}

.bazi-token.element-木 {
  color: #3fd07b;
  background: rgba(63, 208, 123, 0.1);
  border-color: rgba(63, 208, 123, 0.28);
}

.bazi-token.element-火 {
  color: #ff5f46;
  background: rgba(255, 95, 70, 0.1);
  border-color: rgba(255, 95, 70, 0.28);
}

.bazi-token.element-土 {
  color: #d6a93f;
  background: rgba(214, 169, 63, 0.12);
  border-color: rgba(214, 169, 63, 0.3);
}

.bazi-token.element-金 {
  color: #d9e5e8;
  background: rgba(217, 229, 232, 0.1);
  border-color: rgba(217, 229, 232, 0.26);
}

.bazi-token.element-水 {
  color: #54b7ff;
  background: rgba(84, 183, 255, 0.1);
  border-color: rgba(84, 183, 255, 0.28);
}

.pattern-list,
.domain-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.pattern-item,
.domain-item {
  padding: 14px 0;
  border-top: 1px solid var(--line-cold);
}

.pattern-item strong {
  color: var(--gold);
}

.pattern-item p,
.domain-item p,
.plain-panel p {
  margin-bottom: 0;
  color: #d9ded2;
  line-height: 1.85;
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 64px 88px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-left: 3px solid rgba(69, 192, 179, 0.28);
  background: rgba(255, 255, 255, 0.035);
}

.timeline-item.current {
  border-left-color: var(--gold);
  background: rgba(217, 183, 111, 0.1);
}

.annual-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.annual-card {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 10px;
}

.annual-year {
  color: var(--muted);
  font-size: 12px;
}

.advice-list {
  margin: 0;
  padding-left: 20px;
  color: #d9ded2;
  line-height: 1.9;
}

.error-box {
  padding: 18px;
  border-color: rgba(204, 78, 53, 0.55);
  color: #ffb5a4;
}

@media (max-width: 980px) {
  body {
    background-attachment: scroll;
    background-position: center top;
  }

  .shell {
    grid-template-columns: 1fr;
    width: min(100vw - 24px, 780px);
    gap: 14px;
  }

  .input-pane {
    position: static;
  }

  .input-pane,
  .result-pane {
    min-height: auto;
  }

  .pillar-grid,
  .overview-grid,
  .luck-grid,
  .pattern-list,
  .domain-list,
  .ai-section-grid,
  .bazi-analysis-grid {
    grid-template-columns: 1fr;
  }

  .annual-grid,
  .matrix-strip,
  .ai-advice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bazi-board {
    padding: 14px;
  }

  .bazi-pillar-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wuxing-card {
    grid-row: auto;
  }

  .result-pane.is-idle {
    display: none;
  }
}

@media (max-width: 560px) {
  html,
  body {
    min-width: 320px;
  }

  .shell {
    width: min(100vw - 14px, 520px);
    padding: 7px 0 calc(18px + env(safe-area-inset-bottom));
  }

  .input-pane,
  .result-pane {
    border-radius: 8px;
    padding: 16px;
  }

  .input-pane {
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - 14px);
  }

  .brand-row {
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 3px 0 24px;
  }

  .brand-orbit {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
  }

  .brand-mark {
    width: 68px;
    height: 68px;
  }

  h1 {
    font-size: 36px;
  }

  .brand-copy {
    font-size: 12px;
  }

  .form-grid {
    gap: 14px;
  }

  input,
  select {
    min-height: 48px;
    padding: 10px 10px;
  }

  select {
    background-position:
      calc(100% - 16px) 21px,
      calc(100% - 10px) 21px,
      100% 0;
    background-size: 6px 6px, 6px 6px, 38px 100%;
  }

  .place-grid select {
    padding-left: 8px;
    padding-right: 30px;
    font-size: 14px;
  }

  .focus-box,
  .date-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .check-line {
    min-height: 28px;
  }

  .primary-button {
    min-height: 54px;
  }

  .signal-row {
    margin-top: auto;
    padding-top: 18px;
  }

  .small-note {
    margin-top: 8px;
    padding-bottom: 4px;
  }

  .result-header {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 14px;
  }

  .result-header h2 {
    font-size: 31px;
    line-height: 1.22;
  }

  .result-header .muted {
    max-width: none;
  }

  .cosmic-seal {
    --seal-size: min(260px, calc(100vw - 86px));
    --bagua-translate: calc(var(--seal-size) * -0.42);
    --hexagram-inner-translate: calc(var(--seal-size) * -0.42);
    --hexagram-outer-translate: calc(var(--seal-size) * -0.51);
    --xiang-translate: calc(var(--seal-size) * -0.29);
    align-self: center;
    flex-basis: var(--seal-size);
  }

  .cosmic-seal__hexagram {
    width: 24px;
    height: 15px;
    font-size: 7px;
  }

  .cosmic-seal__trigram {
    width: 42px;
    height: 42px;
  }

  .cosmic-seal__trigram .trigram-lines {
    width: 24px;
    gap: 3px;
  }

  .cosmic-seal__trigram .trigram-line {
    height: 3px;
  }

  .cosmic-seal__trigram small {
    font-size: 10px;
  }

  .cosmic-seal__xiang {
    inset: 54px;
  }

  .cosmic-seal__xiang span {
    width: 14px;
    height: 14px;
  }

  .cosmic-seal__liang {
    inset: 84px;
  }

  .cosmic-seal__liang span {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .cosmic-seal__liang span:first-child {
    transform: translate(-50%, -50%) translateX(54px);
  }

  .cosmic-seal__liang span:last-child {
    transform: translate(-50%, -50%) translateX(-54px);
  }

  .cosmic-seal__taiji {
    width: 116px;
    height: 116px;
  }

  .cosmic-seal__hexagram-name {
    bottom: -4px;
    min-width: 108px;
    max-width: 138px;
    padding: 5px 10px 6px;
    font-size: 13px;
  }

  .cosmic-seal__caption {
    bottom: 1px;
    min-width: 66px;
    padding: 3px 6px;
    font-size: 9px;
  }

  .matrix-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-calibration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-calibration-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .timeline-item {
    grid-template-columns: 52px 1fr;
  }

  .timeline-item span:last-child {
    grid-column: 2;
  }

  .annual-grid,
  .ai-key-grid,
  .ai-timing-grid,
  .ai-advice {
    grid-template-columns: 1fr;
  }

  .bazi-analysis-board {
    padding: 14px;
  }

  .bazi-analysis-head {
    display: block;
  }

  .bazi-analysis-head h2 {
    font-size: 23px;
  }

  .bazi-analysis-card .bazi-analysis-head h2 {
    font-size: 18px;
  }

  .wuxing-orbit {
    min-height: 222px;
  }

  .wuxing-node {
    width: 56px;
    height: 56px;
  }

  .wuxing-node:nth-child(2) {
    right: 16px;
  }

  .wuxing-node:nth-child(3) {
    right: 38px;
  }

  .wuxing-node:nth-child(4) {
    left: 38px;
  }

  .wuxing-node:nth-child(5) {
    left: 16px;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .useful-grid,
  .ten-star-rank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bazi-table-scroller {
    display: none;
  }

  .bazi-pillar-overview {
    display: none;
  }

  .bazi-mobile-grid {
    display: grid;
    gap: 12px;
  }

  .bazi-mobile-card {
    position: relative;
    border: 1px solid rgba(69, 192, 179, 0.24);
    border-radius: 8px;
    padding: 14px;
    overflow: hidden;
    background:
      linear-gradient(145deg, rgba(69, 192, 179, 0.14), transparent 34%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
      rgba(2, 6, 7, 0.64);
    box-shadow: inset 0 0 0 1px rgba(255, 223, 138, 0.035);
  }

  .bazi-mobile-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(69, 192, 179, 0.82), rgba(255, 223, 138, 0.82), transparent);
  }

  .bazi-mobile-card.is-day {
    border-color: rgba(255, 223, 138, 0.56);
    background:
      linear-gradient(145deg, rgba(255, 223, 138, 0.18), transparent 36%),
      linear-gradient(225deg, rgba(69, 192, 179, 0.08), transparent 42%),
      rgba(4, 7, 7, 0.74);
    box-shadow:
      inset 0 0 0 1px rgba(255, 223, 138, 0.08),
      0 0 30px rgba(217, 183, 111, 0.15);
  }

  .bazi-mobile-card-head {
    position: relative;
    margin-bottom: 12px;
  }

  .bazi-mobile-card-head div {
    display: grid;
    gap: 4px;
  }

  .bazi-mobile-card-head strong {
    color: var(--gold-hot);
    font-family: "SimSun", "Songti SC", serif;
    font-size: 42px;
    line-height: 1;
    text-shadow: 0 0 28px rgba(255, 223, 138, 0.28);
  }

  .bazi-mobile-glyph-pair {
    margin-bottom: 10px;
  }

  .bazi-mobile-glyph-pair .bazi-glyph-tile {
    min-height: 90px;
  }

  .bazi-mobile-glyph-pair .bazi-glyph-tile strong {
    font-size: 40px;
  }

  .bazi-mobile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
  }

  .bazi-mobile-section {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    min-width: 0;
    gap: 8px;
    align-items: start;
    padding: 10px 0;
    border-top: 1px solid rgba(69, 192, 179, 0.12);
  }

  .bazi-mobile-section:last-child {
    padding-bottom: 0;
  }

  .bazi-mobile-section .bazi-pillar-tokens {
    justify-content: flex-start;
  }

  .bazi-token.glyph strong {
    font-size: 40px;
  }

  .bazi-token.tags {
    width: auto;
  }

  .empty-orbit {
    width: 210px;
    height: 210px;
  }

  .empty-mark {
    width: 112px;
    height: 112px;
  }

  .oracle-core {
    --oracle-size: 260px;
    --oracle-bagua-translate: -110px;
    --oracle-sixiang-translate: -66px;
    --oracle-hexagram-inner-translate: -126px;
    --oracle-hexagram-outer-translate: -152px;
    width: var(--oracle-size);
    height: var(--oracle-size);
  }

  .loading-oracle::after {
    top: calc(50% - 154px);
  }

  .oracle-bagua > span {
    width: 42px;
    height: 42px;
  }

  .oracle-bagua > span small {
    font-size: 9px;
  }

  .hexagram-mini {
    width: 26px;
    height: 16px;
    padding: 1px 2px;
  }

  .hexagram-mini small {
    font-size: 8px;
  }

  .oracle-sixiang {
    inset: 44px;
  }

  .oracle-sixiang span {
    width: 13px;
    height: 13px;
  }

  .oracle-liang {
    inset: 70px;
  }

  .oracle-liang span {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .oracle-liang span:first-child {
    transform: translate(-50%, -50%) translateX(30px);
  }

  .oracle-liang span:last-child {
    transform: translate(-50%, -50%) translateX(-30px);
  }

  .oracle-taiji {
    width: 96px;
    height: 96px;
  }

  .oracle-core strong {
    min-width: 66px;
    min-height: 38px;
    font-size: 19px;
  }

  .oracle-hexagram-name {
    top: 60px;
    min-width: 94px;
    max-width: 126px;
    padding: 4px 8px 5px;
    font-size: 11px;
  }

  .loading-oracle,
  .empty-state {
    min-height: min(78svh, 640px);
  }

  .deep-dock {
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: calc(100vw - 18px);
  }
}

@media (max-width: 360px) {
  .date-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .place-grid {
    gap: 6px;
  }

  .brand-row {
    justify-content: flex-start;
  }

  .brand-orbit {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }

  h1 {
    font-size: 32px;
  }

  .result-header {
    gap: 8px;
    padding: 12px;
  }

  .result-header h2 {
    font-size: 28px;
  }

  .cosmic-seal {
    --seal-size: min(236px, calc(100vw - 82px));
    --bagua-translate: calc(var(--seal-size) * -0.42);
    --hexagram-inner-translate: calc(var(--seal-size) * -0.42);
    --hexagram-outer-translate: calc(var(--seal-size) * -0.51);
    --xiang-translate: calc(var(--seal-size) * -0.29);
  }

  .cosmic-seal__hexagram {
    width: 22px;
    height: 14px;
    font-size: 6.4px;
  }

  .cosmic-seal__trigram {
    width: 38px;
    height: 38px;
  }

  .cosmic-seal__trigram .trigram-lines {
    width: 22px;
    gap: 2px;
  }

  .cosmic-seal__trigram .trigram-line {
    height: 3px;
  }

  .cosmic-seal__trigram small {
    font-size: 9px;
  }

  .cosmic-seal__xiang {
    inset: 50px;
  }

  .cosmic-seal__xiang span {
    width: 13px;
    height: 13px;
  }

  .cosmic-seal__liang {
    inset: 78px;
  }

  .cosmic-seal__liang span {
    width: 25px;
    height: 25px;
    font-size: 11px;
  }

  .cosmic-seal__liang span:first-child {
    transform: translate(-50%, -50%) translateX(50px);
  }

  .cosmic-seal__liang span:last-child {
    transform: translate(-50%, -50%) translateX(-50px);
  }

  .cosmic-seal__taiji {
    width: 106px;
    height: 106px;
  }

  .loading-oracle {
    gap: 20px;
  }

  .loading-oracle::after {
    top: calc(50% - 142px);
  }

  .oracle-core {
    --oracle-size: 238px;
    --oracle-bagua-translate: -101px;
    --oracle-sixiang-translate: -60px;
    --oracle-hexagram-inner-translate: -116px;
    --oracle-hexagram-outer-translate: -138px;
  }

  .oracle-bagua > span {
    width: 36px;
    height: 36px;
  }

  .oracle-bagua > span small {
    font-size: 8px;
  }

  .hexagram-mini {
    width: 24px;
    height: 15px;
  }

  .hexagram-mini small {
    font-size: 7px;
  }

  .oracle-hexagram-name {
    top: 56px;
    min-width: 90px;
    font-size: 10px;
  }

  .oracle-sixiang {
    inset: 41px;
  }

  .oracle-liang {
    inset: 66px;
  }

  .oracle-liang span:first-child {
    transform: translate(-50%, -50%) translateX(28px);
  }

  .oracle-liang span:last-child {
    transform: translate(-50%, -50%) translateX(-28px);
  }

  .oracle-taiji {
    width: 90px;
    height: 90px;
  }

  .loading-steps {
    gap: 6px;
  }

  .loading-steps span {
    padding: 5px 8px;
    font-size: 11px;
  }
}

body {
  padding-bottom: calc(94px + env(safe-area-inset-bottom));
}

body.modal-open {
  overflow: hidden;
}

body.select-picker-open {
  overflow: hidden;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 16px));
  margin: 0 auto;
  padding: 8px 0 112px;
}

.app-topbar {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  min-height: 64px;
  margin-bottom: 7px;
}

.top-title {
  text-align: center;
}

.top-title h1 {
  color: var(--bone);
  font-size: 29px;
  text-shadow:
    0 0 26px rgba(255, 223, 138, 0.32),
    0 0 48px rgba(69, 192, 179, 0.16);
}

.top-icon {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(217, 183, 111, 0.26);
  border-radius: 8px;
  color: var(--gold-hot);
  background:
    linear-gradient(145deg, rgba(255, 223, 138, 0.12), transparent 42%),
    rgba(3, 8, 9, 0.58);
  box-shadow:
    inset 0 0 18px rgba(255, 223, 138, 0.04),
    0 0 22px rgba(69, 192, 179, 0.12);
  cursor: pointer;
}

.top-icon--chat span {
  position: absolute;
  width: 19px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 8px;
  opacity: 0.82;
}

.top-icon--chat span:first-child {
  transform: translate(-6px, -4px);
}

.top-icon--chat span:last-child {
  transform: translate(7px, 6px);
}

.top-icon--chat span::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: -5px;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(32deg);
}

.top-icon--taiji i {
  width: 32px;
  height: 32px;
  background: url("./taiji-bagua-gold.svg") center / contain no-repeat;
  opacity: 0.72;
  filter:
    drop-shadow(0 0 10px rgba(255, 223, 138, 0.42))
    drop-shadow(0 0 18px rgba(69, 192, 179, 0.14));
  animation: spin 16s linear infinite;
}

.top-icon--taiji::before,
.top-icon--taiji::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.top-icon--taiji::before {
  inset: 5px;
  border: 1px solid rgba(255, 223, 138, 0.24);
  animation: spinReverse 11s linear infinite;
}

.top-icon--taiji::after {
  inset: 1px;
  background: repeating-conic-gradient(from 0deg, rgba(255, 223, 138, 0.5) 0 1deg, transparent 1deg 22.5deg);
  -webkit-mask: radial-gradient(circle, transparent 0 47%, black 48% 51%, transparent 52%);
  mask: radial-gradient(circle, transparent 0 47%, black 48% 51%, transparent 52%);
  animation: spin 9s linear infinite;
}

.top-icon--altar i {
  position: relative;
  width: 28px;
  height: 24px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 4px 4px 8px 8px;
}

.top-icon--altar i::before,
.top-icon--altar i::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.top-icon--altar i::before {
  top: -12px;
  width: 10px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.top-icon--altar i::after {
  top: -18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px rgba(255, 223, 138, 0.65);
}

.tab-view {
  display: none;
  gap: 14px;
}

.tab-view.is-active {
  display: grid;
}

.tab-view--plate.is-record-detail {
  gap: 0;
}

.tab-view--plate.is-record-detail .input-pane,
.tab-view--plate.is-record-detail .quick-now-card,
.tab-view--plate.is-record-detail .almanac-card,
.tab-view--plate.is-record-detail #empty-state,
.tab-view--plate.is-record-detail:not(.is-loading-result) #loading-state {
  display: none !important;
}

.tab-view--plate.is-record-detail .result-pane {
  min-height: calc(100svh - 92px);
}

.plate-form-card.input-pane,
.tab-view--plate .result-pane,
.quick-now-card,
.almanac-card,
.feature-page {
  min-height: auto;
  border-color: rgba(217, 183, 111, 0.27);
  border-radius: 8px;
  background:
    linear-gradient(138deg, rgba(255, 223, 138, 0.1), transparent 30%),
    linear-gradient(225deg, rgba(69, 192, 179, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(5, 10, 11, 0.72);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(255, 223, 138, 0.04);
  backdrop-filter: blur(18px) saturate(126%);
}

.plate-form-card.input-pane {
  position: relative;
  top: auto;
  display: block;
  padding: 16px;
}

.plate-form-card.input-pane::after {
  bottom: auto;
  top: 102px;
}

.mobile-brand {
  margin: 0 0 18px;
}

.mobile-brand .brand-orbit {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
}

.mobile-brand .brand-mark {
  width: 50px;
  height: 50px;
}

.mobile-brand h2 {
  margin-bottom: 2px;
  color: var(--gold-hot);
  font-size: 24px;
}

.plate-form {
  gap: 0;
}

.form-row {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(217, 183, 111, 0.12);
}

.form-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.form-row > span,
.row-headline > span {
  margin: 0;
  color: rgba(242, 234, 216, 0.88);
  font-size: 16px;
  font-weight: 800;
}

.name-row {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
}

.name-row input {
  min-height: 44px;
  border: 0;
  padding-right: 0;
  color: var(--bone);
  background: transparent;
  box-shadow: none;
  font-size: 18px;
  text-align: right;
}

.name-row input::placeholder {
  color: rgba(242, 234, 216, 0.34);
}

.control-row {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 10px;
  padding: 10px 0 11px;
  border-top: 1px solid rgba(217, 183, 111, 0.12);
}

.segmented--compact {
  min-width: 0;
  border-color: rgba(217, 183, 111, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(2, 7, 8, 0.62);
}

.segmented--compact span {
  min-height: 38px;
  color: rgba(242, 234, 216, 0.58);
  font-size: 16px;
}

.segmented--compact input:checked + span {
  color: #120d05;
  background:
    radial-gradient(circle at 30% 20%, #fff8dc, transparent 24%),
    linear-gradient(135deg, #fff0b5, #d5a84a 68%, #9f641a);
}

.row-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.leap-chip {
  flex: 0 0 auto;
  min-height: auto;
}

.leap-chip .leap-chip-shell {
  grid-template-columns: 24px minmax(0, auto);
  min-height: 36px;
  column-gap: 8px;
  padding: 6px 9px;
  border-radius: 8px;
}

.leap-chip .leap-chip-shell i {
  width: 20px;
  height: 20px;
}

.leap-chip .leap-chip-shell b {
  font-size: 13px;
}

.leap-chip .leap-chip-shell small {
  display: none;
}

.date-grid,
.time-grid,
.place-grid {
  min-width: 0;
}

.plate-form label > span,
.plate-form .place-field > span {
  color: rgba(158, 167, 157, 0.88);
}

.plate-form select,
.plate-form input {
  min-height: 43px;
  border-color: rgba(69, 192, 179, 0.2);
  background-color: rgba(2, 7, 8, 0.62);
}

.plate-form select {
  color: var(--gold-hot);
  font-family: "Songti SC", "SimSun", "Noto Serif SC", "Microsoft YaHei", serif;
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(255, 223, 138, 0.18);
}

.birth-time-row .date-grid + .time-grid {
  margin-top: 6px;
}

.solar-save-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  padding: 10px 0 11px;
  border-top: 1px solid rgba(217, 183, 111, 0.12);
}

.true-solar-switch {
  min-height: auto;
}

.true-solar-switch .solar-switch-shell {
  min-height: 48px;
  border-color: rgba(217, 183, 111, 0.22);
}

.save-button,
.ghost-button {
  position: relative;
  display: inline-grid;
  min-height: 50px;
  place-items: center;
  border: 1px solid rgba(217, 183, 111, 0.26);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--gold-hot);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(2, 7, 8, 0.62);
  box-shadow: inset 0 0 18px rgba(255, 223, 138, 0.05);
  cursor: pointer;
}

.save-button span,
.ghost-button {
  font-weight: 800;
}

.plate-submit {
  min-height: 52px;
  border-radius: 8px;
  font-size: 18px;
}

.quick-now-card,
.almanac-card,
.feature-page {
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.quick-now-card {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(126px, 0.96fr);
  gap: 12px 14px;
  align-items: center;
}

.quick-now-card::before,
.almanac-card::before,
.feature-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(69, 192, 179, 0.72), rgba(255, 223, 138, 0.88), transparent);
  opacity: 0.78;
}

.now-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.now-pillar {
  display: grid;
  min-height: 96px;
  place-items: center;
  border: 1px solid rgba(217, 183, 111, 0.16);
  border-radius: 8px;
  padding: 7px 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(1, 5, 6, 0.55);
}

.now-pillar.is-day {
  border-color: rgba(255, 223, 138, 0.5);
  box-shadow: inset 0 0 18px rgba(255, 223, 138, 0.1);
}

.now-pillar b {
  color: var(--bone);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 31px;
  line-height: 0.95;
}

.now-pillar b:first-child {
  color: var(--gold-hot);
}

.now-pillar small {
  color: rgba(158, 167, 157, 0.8);
  font-size: 10px;
}

.now-error {
  grid-column: 1 / -1;
  color: var(--gold-hot);
}

.now-copy {
  display: grid;
  gap: 12px;
  justify-items: stretch;
}

.now-clock {
  margin: 0;
  color: var(--bone);
  font-family: "SimSun", "Songti SC", serif;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1;
  text-align: center;
}

.now-line {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(242, 234, 216, 0.62);
  font-size: 13px;
  line-height: 1.5;
}

.now-line + .now-line {
  margin-top: -7px;
}

.almanac-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.almanac-head h2 {
  margin-bottom: 0;
  color: var(--gold-hot);
}

.almanac-head strong {
  color: var(--gold-hot);
  font-family: "Consolas", "Microsoft YaHei", monospace;
  font-size: 42px;
  line-height: 1;
  text-shadow: 0 0 24px rgba(255, 223, 138, 0.32);
}

.almanac-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.almanac-grid.is-detailed {
  grid-template-columns: 1fr;
}

.almanac-line,
.almanac-choice-panel,
.almanac-time-board,
.almanac-direction-panel,
.almanac-meta-grid,
.almanac-raw {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 223, 138, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 223, 138, 0.11), transparent 44%),
    rgba(1, 5, 6, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 16px 42px rgba(0, 0, 0, 0.2);
}

.almanac-line {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.almanac-choice-panel {
  display: grid;
  gap: 11px;
  padding: 12px;
  overflow: hidden;
}

.almanac-choice-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 87% 30%, rgba(255, 223, 138, 0.18), transparent 84px),
    linear-gradient(90deg, rgba(255, 223, 138, 0.1), transparent 42%);
  opacity: 0.9;
}

.almanac-choice-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -12px -12px 0;
  padding: 12px 14px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(15, 10, 4, 0.8)),
    radial-gradient(circle at 80% 0%, rgba(255, 223, 138, 0.22), transparent 70px);
  border-bottom: 1px solid rgba(255, 223, 138, 0.28);
}

.almanac-choice-head div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.almanac-choice-head small,
.almanac-current-hour small {
  color: rgba(242, 234, 216, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.almanac-choice-head strong {
  color: var(--gold-hot);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 21px;
  line-height: 1.1;
}

.almanac-luck-pill {
  flex: 0 0 auto;
  min-width: 64px;
  border-radius: 8px;
  padding: 8px 12px;
  color: #080402;
  background: linear-gradient(135deg, #fff1b8, #efb94e 48%, #a8731d);
  box-shadow: 0 0 22px rgba(255, 223, 138, 0.32);
  text-align: center;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 24px;
  line-height: 1;
}

.almanac-luck-pill.is-careful {
  color: #fff6dc;
  background: linear-gradient(135deg, #ff3158, #b80028 52%, #5b0013);
  box-shadow: 0 0 22px rgba(255, 31, 88, 0.26);
}

.almanac-choice-meta {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(242, 234, 216, 0.66);
  font-size: 12px;
  line-height: 1.45;
}

.almanac-action-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding-right: 62px;
}

.almanac-action-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.almanac-action-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #0b0702;
  background: linear-gradient(135deg, #ffedbd, #c79437);
  box-shadow: 0 0 20px rgba(255, 223, 138, 0.28);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 17px;
  font-weight: 900;
}

.almanac-action-line.is-ji .almanac-action-badge {
  color: #fff3ef;
  background: linear-gradient(135deg, #ff355b, #bb0028);
  box-shadow: 0 0 20px rgba(255, 49, 88, 0.23);
}

.almanac-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  color: var(--bone);
  font-size: 14px;
  line-height: 1.45;
}

.almanac-tags em {
  border: 1px solid rgba(255, 223, 138, 0.13);
  border-radius: 999px;
  padding: 3px 7px;
  color: rgba(242, 234, 216, 0.9);
  background: rgba(255, 223, 138, 0.055);
  font-style: normal;
  white-space: nowrap;
}

.almanac-action-line.is-yi .almanac-tags em {
  color: #ffe7a0;
  border-color: rgba(255, 223, 138, 0.22);
}

.almanac-action-line.is-ji .almanac-tags em {
  color: #ffb3a8;
  border-color: rgba(255, 49, 88, 0.18);
  background: rgba(255, 49, 88, 0.055);
}

.almanac-tags .is-muted {
  color: rgba(158, 167, 157, 0.78);
}

.almanac-seal {
  position: absolute;
  right: 14px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 223, 138, 0.56);
  color: rgba(255, 223, 138, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 223, 138, 0.1), transparent),
    rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 0 3px rgba(255, 223, 138, 0.055), 0 0 26px rgba(255, 223, 138, 0.12);
  font-family: "SimSun", "Songti SC", serif;
}

.almanac-seal span,
.almanac-seal b {
  line-height: 1;
}

.almanac-seal span {
  font-size: 13px;
}

.almanac-seal b {
  font-size: 18px;
}

.almanac-time-board {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  overflow: hidden;
}

.almanac-rail {
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 223, 138, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 223, 138, 0.1), transparent 54%),
    rgba(255, 223, 138, 0.035);
}

.almanac-rail span {
  color: #ff3158;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  writing-mode: vertical-rl;
}

.almanac-time-main {
  display: grid;
  min-width: 0;
}

.almanac-time-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(116px, 0.92fr);
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 223, 138, 0.14);
}

.almanac-date-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.almanac-date-pillars span {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
}

.almanac-date-pillars small,
.almanac-hour-chip small {
  color: rgba(242, 234, 216, 0.48);
  font-size: 11px;
}

.almanac-date-pillars b {
  color: var(--gold-hot);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 25px;
  line-height: 0.92;
}

.almanac-date-pillars span.is-day b {
  color: #ff3158;
  text-shadow: 0 0 16px rgba(255, 49, 88, 0.28);
}

.almanac-current-hour {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 4px;
  min-width: 0;
}

.almanac-current-hour strong {
  color: var(--gold-hot);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 22px;
  line-height: 1;
}

.almanac-current-hour span {
  color: rgba(242, 234, 216, 0.72);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.almanac-current-hour.is-bad strong {
  color: #ff7b8d;
}

.almanac-hour-wheel {
  display: flex;
  gap: 7px;
  min-width: 0;
  padding: 11px 12px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.almanac-hour-wheel::-webkit-scrollbar {
  display: none;
}

.almanac-hour-chip {
  position: relative;
  display: grid;
  flex: 0 0 44px;
  justify-items: center;
  gap: 1px;
  min-height: 94px;
  border: 1px solid rgba(255, 223, 138, 0.13);
  border-radius: 8px;
  padding: 8px 4px 6px;
  background: rgba(3, 6, 6, 0.54);
}

.almanac-hour-chip b {
  color: rgba(242, 234, 216, 0.72);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 22px;
  line-height: 0.92;
}

.almanac-hour-chip em {
  margin-top: 3px;
  color: rgba(158, 167, 157, 0.86);
  font-style: normal;
  font-size: 13px;
  line-height: 1;
}

.almanac-hour-chip.is-good em {
  color: #ffe7a0;
}

.almanac-hour-chip.is-bad em {
  color: #ff7b8d;
}

.almanac-hour-chip.is-current {
  border-color: rgba(255, 49, 88, 0.66);
  background:
    linear-gradient(180deg, rgba(255, 49, 88, 0.14), transparent 72%),
    rgba(3, 6, 6, 0.72);
  box-shadow: 0 0 22px rgba(255, 49, 88, 0.16);
}

.almanac-hour-chip.is-current::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-right: 6px solid transparent;
  border-bottom: 7px solid #ff3158;
  border-left: 6px solid transparent;
}

.almanac-hour-chip.is-current b {
  color: #ff3158;
}

.almanac-hour-detail {
  display: grid;
  gap: 7px;
  padding: 0 12px 12px;
}

.almanac-hour-detail p {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  color: rgba(242, 234, 216, 0.78);
  font-size: 12px;
  line-height: 1.45;
}

.almanac-hour-detail span {
  color: var(--gold);
  font-weight: 800;
}

.almanac-direction-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.almanac-direction-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  padding: 11px 12px;
  border-right: 1px solid rgba(255, 223, 138, 0.12);
  border-bottom: 1px solid rgba(255, 223, 138, 0.12);
}

.almanac-direction-item:nth-child(2n) {
  border-right: 0;
}

.almanac-direction-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.almanac-direction-item small,
.almanac-meta-grid small,
.almanac-raw-grid small,
.almanac-line small {
  color: rgba(213, 178, 101, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.almanac-direction-item b {
  color: var(--bone);
  font-size: 17px;
  line-height: 1.2;
}

.almanac-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 223, 138, 0.055), transparent 40%),
    rgba(1, 5, 6, 0.46);
}

.almanac-meta-grid article {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  min-height: 76px;
  padding: 12px;
  border-right: 1px solid rgba(255, 223, 138, 0.11);
  border-bottom: 1px solid rgba(255, 223, 138, 0.11);
}

.almanac-meta-grid article:nth-child(2n) {
  border-right: 0;
}

.almanac-meta-grid article.is-wide {
  grid-column: 1 / -1;
}

.almanac-meta-grid b,
.almanac-raw-grid b,
.almanac-line b {
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(242, 234, 216, 0.9);
  font-size: 14px;
  line-height: 1.36;
}

.almanac-raw {
  padding: 0;
  overflow: hidden;
}

.almanac-raw summary {
  cursor: pointer;
  padding: 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.almanac-raw summary::-webkit-details-marker {
  display: none;
}

.almanac-raw summary::after {
  content: "›";
  float: right;
  color: var(--gold-hot);
  font-size: 20px;
  line-height: 0.8;
  transition: transform 0.2s ease;
}

.almanac-raw[open] summary::after {
  transform: rotate(90deg);
}

.almanac-raw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 223, 138, 0.12);
}

.almanac-raw-line {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border-right: 1px solid rgba(255, 223, 138, 0.08);
  border-bottom: 1px solid rgba(255, 223, 138, 0.08);
}

.almanac-raw-line:nth-child(2n) {
  border-right: 0;
}

.almanac-raw-line.is-wide {
  grid-column: 1 / -1;
}

.almanac-source {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: rgba(158, 167, 157, 0.78);
  font-size: 11px;
  line-height: 1.45;
}

.tab-view--plate .result-pane {
  padding: 14px 14px calc(200px + env(safe-area-inset-bottom));
}

.tab-view--plate .result-pane.is-idle {
  display: none;
}

.app-shell .bazi-pillar-overview,
.app-shell .bazi-table-scroller {
  display: none;
}

.app-shell .bazi-mobile-grid {
  display: grid;
  gap: 12px;
}

.app-shell .result-header {
  align-items: stretch;
  flex-direction: column;
  gap: 16px;
  padding: 14px;
}

.app-shell .cosmic-seal {
  --seal-size: min(260px, calc(100vw - 86px));
  --bagua-translate: calc(var(--seal-size) * -0.42);
  --hexagram-inner-translate: calc(var(--seal-size) * -0.42);
  --hexagram-outer-translate: calc(var(--seal-size) * -0.51);
  --xiang-translate: calc(var(--seal-size) * -0.29);
  align-self: center;
  flex-basis: var(--seal-size);
}

.app-shell .loading-oracle {
  min-height: min(76svh, 620px);
}

.feature-page {
  display: grid;
  min-height: calc(100svh - 202px);
  align-content: start;
  gap: 14px;
}

.feature-page h2 {
  margin-bottom: 0;
  color: var(--gold-hot);
  font-size: 30px;
}

.feature-orbit {
  position: relative;
  display: grid;
  width: min(72vw, 280px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  margin: 14px 0;
}

.feature-orbit span,
.feature-orbit i {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.feature-orbit span:first-child {
  inset: 0;
  border: 1px solid rgba(255, 223, 138, 0.28);
  animation: spin 18s linear infinite;
}

.feature-orbit span:nth-child(2) {
  inset: 34px;
  border: 1px dashed rgba(69, 192, 179, 0.26);
  animation: spinReverse 14s linear infinite;
}

.feature-orbit i {
  width: 86px;
  height: 86px;
  background: url("./taiji-bagua-gold.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 34px rgba(255, 223, 138, 0.34));
  animation: spin 12s linear infinite;
}

.school-page {
  gap: 13px;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

.school-page::after {
  content: "";
  position: absolute;
  top: 80px;
  right: -72px;
  width: 180px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 223, 138, 0.16);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 223, 138, 0.16) 0 1deg, transparent 1deg 11.25deg),
    radial-gradient(circle, transparent 0 56%, rgba(255, 223, 138, 0.12) 57% 60%, transparent 61%),
    radial-gradient(circle, rgba(69, 192, 179, 0.08), transparent 68%);
  opacity: 0.8;
  pointer-events: none;
  animation: spin 34s linear infinite;
}

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

.school-source {
  display: inline-grid;
  min-height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 223, 138, 0.26);
  border-radius: 999px;
  padding: 0 11px;
  color: rgba(255, 223, 138, 0.9);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 246, 207, 0.18), transparent 62%),
    rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  font-family: "Consolas", "Microsoft YaHei", monospace;
  font-size: 10px;
  font-weight: 900;
}

.school-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 9px;
  align-items: end;
  border: 1px solid rgba(255, 223, 138, 0.18);
  border-radius: 8px;
  padding: 11px;
  background:
    linear-gradient(135deg, rgba(255, 223, 138, 0.09), transparent 54%),
    rgba(0, 0, 0, 0.18);
}

.school-search label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.school-search label span {
  margin: 0;
  color: rgba(217, 183, 111, 0.86);
  font-size: 13px;
  font-weight: 900;
}

.school-search input {
  min-height: 46px;
  border-color: rgba(217, 183, 111, 0.28);
  color: var(--gold-hot);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(0, 0, 0, 0.34);
  font-family: "Songti SC", "SimSun", "Noto Serif SC", "Microsoft YaHei", serif;
  font-size: 18px;
  font-weight: 900;
}

.school-search input::placeholder {
  color: rgba(242, 234, 216, 0.36);
}

.school-search .primary-button {
  min-height: 46px;
  border-radius: 8px;
  padding: 0 10px;
}

.school-search .button-taiji {
  width: 23px;
  height: 23px;
}

.school-quick {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 1px 0 3px;
  scrollbar-width: none;
}

.school-quick::-webkit-scrollbar {
  display: none;
}

.school-quick button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(69, 192, 179, 0.22);
  border-radius: 999px;
  padding: 0 13px;
  color: rgba(242, 234, 216, 0.74);
  background:
    linear-gradient(90deg, rgba(69, 192, 179, 0.09), rgba(255, 223, 138, 0.06)),
    rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-weight: 900;
}

.school-quick button:focus-visible,
.school-quick button:hover {
  border-color: rgba(255, 223, 138, 0.48);
  color: var(--gold-hot);
  box-shadow: 0 0 20px rgba(255, 223, 138, 0.12);
}

.school-books,
.school-sections {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.school-books__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 223, 138, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  background:
    linear-gradient(90deg, rgba(255, 223, 138, 0.1), rgba(69, 192, 179, 0.055)),
    rgba(0, 0, 0, 0.2);
}

.school-books__head span {
  min-width: 0;
  overflow: hidden;
  color: var(--gold-hot);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.school-books__head small {
  color: rgba(158, 167, 157, 0.82);
  font-size: 11px;
  font-weight: 800;
}

.school-book-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 74px;
  border: 1px solid rgba(255, 223, 138, 0.22);
  border-radius: 8px;
  padding: 12px 13px;
  overflow: hidden;
  color: var(--bone);
  background:
    radial-gradient(circle at 95% 0%, rgba(255, 223, 138, 0.16), transparent 80px),
    linear-gradient(135deg, rgba(255, 223, 138, 0.09), transparent 48%),
    rgba(1, 5, 6, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.028),
    0 14px 34px rgba(0, 0, 0, 0.2);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.school-book-card::before {
  content: "";
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 223, 138, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255, 223, 138, 0.58) 46% 48%, transparent 49%),
    linear-gradient(135deg, rgba(255, 223, 138, 0.16), rgba(69, 192, 179, 0.08)),
    rgba(0, 0, 0, 0.28);
  box-shadow:
    inset 0 0 0 4px rgba(255, 223, 138, 0.04),
    0 0 22px rgba(255, 223, 138, 0.14);
}

.school-book-card::after {
  content: "›";
  position: absolute;
  right: 14px;
  top: 50%;
  color: rgba(255, 223, 138, 0.82);
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
}

.school-book-card strong,
.school-book-card span {
  grid-column: 2;
  min-width: 0;
  padding-right: 22px;
}

.school-book-card strong {
  color: var(--gold-hot);
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: 22px;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(255, 223, 138, 0.2);
}

.school-book-card span {
  color: rgba(242, 234, 216, 0.58);
  font-size: 12px;
  line-height: 1.45;
}

.school-book-card:hover,
.school-book-card:focus-visible {
  border-color: rgba(255, 223, 138, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(255, 223, 138, 0.06),
    0 0 26px rgba(255, 223, 138, 0.13);
  transform: translateY(-1px);
}

.school-reader {
  display: grid;
  gap: 11px;
  border: 1px solid rgba(255, 223, 138, 0.26);
  border-radius: 8px;
  padding: 13px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 223, 138, 0.1), transparent 38%),
    linear-gradient(225deg, rgba(69, 192, 179, 0.08), transparent 44%),
    rgba(1, 5, 6, 0.6);
  box-shadow:
    inset 0 0 0 1px rgba(255, 223, 138, 0.035),
    0 18px 48px rgba(0, 0, 0, 0.28);
}

.school-reader__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid rgba(255, 223, 138, 0.13);
  padding-bottom: 12px;
}

.school-reader__head h3 {
  margin: 0 0 4px;
  color: var(--gold-hot);
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: 26px;
  line-height: 1.12;
}

.school-reader__head span {
  display: block;
  color: rgba(242, 234, 216, 0.58);
  font-size: 12px;
  line-height: 1.45;
}

.school-reader__pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.school-reader__pager .ghost-button {
  min-height: 38px;
  padding: 0 10px;
  font-size: 13px;
}

.school-reader__pager .ghost-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.school-reader__pager b {
  display: inline-grid;
  min-width: 68px;
  min-height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 223, 138, 0.18);
  border-radius: 999px;
  color: var(--gold-hot);
  background: rgba(0, 0, 0, 0.24);
  font-family: "Consolas", "Microsoft YaHei", monospace;
  font-size: 12px;
}

.school-section-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(255, 223, 138, 0.18);
  border-radius: 8px;
  padding: 13px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(0, 0, 0, 0.23);
}

.school-section-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, var(--gold-hot), transparent);
  box-shadow: 0 0 18px rgba(255, 223, 138, 0.58);
}

.school-section-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
}

.school-section-card__head strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--gold-hot);
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: 22px;
  line-height: 1.16;
}

.school-section-card__head span {
  color: rgba(69, 192, 179, 0.88);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.school-passage-list {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.school-passage {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(255, 223, 138, 0.11);
  border-radius: 8px;
  padding: 11px 12px;
  background:
    linear-gradient(90deg, rgba(69, 192, 179, 0.06), rgba(255, 223, 138, 0.045)),
    rgba(0, 0, 0, 0.18);
}

.school-passage p,
.school-note {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.78;
}

.school-passage small {
  display: inline-grid;
  min-height: 20px;
  place-items: center;
  margin-right: 8px;
  border: 1px solid rgba(255, 223, 138, 0.2);
  border-radius: 999px;
  padding: 0 7px;
  color: rgba(255, 223, 138, 0.82);
  background: rgba(255, 223, 138, 0.055);
  font-size: 10px;
  font-weight: 900;
  vertical-align: 1px;
}

.school-original {
  color: rgba(255, 246, 218, 0.92);
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: 17px;
}

.school-translation {
  color: rgba(242, 234, 216, 0.72);
  font-size: 14px;
}

.school-annotation {
  color: rgba(69, 192, 179, 0.78);
  font-size: 13px;
}

.school-note {
  border-top: 1px solid rgba(255, 223, 138, 0.12);
  padding-top: 10px;
  color: rgba(158, 167, 157, 0.78);
  font-size: 12px;
}

.record-empty.school-empty {
  padding-top: 26px;
  padding-bottom: 26px;
}

.divination-form,
.login-card {
  display: grid;
  gap: 12px;
}

.divination-result {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(217, 183, 111, 0.2);
  border-radius: 8px;
  padding: 15px;
  background: rgba(1, 5, 6, 0.5);
}

.divination-result span,
.divination-result small {
  color: rgba(158, 167, 157, 0.84);
}

.divination-result strong {
  color: var(--gold-hot);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 34px;
  line-height: 1.15;
}

.divination-result p {
  margin: 0;
  color: rgba(242, 234, 216, 0.72);
}

.login-card {
  border: 1px solid rgba(217, 183, 111, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(1, 5, 6, 0.48);
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
  padding: 18px 12px calc(104px + env(safe-area-inset-bottom));
}

.login-modal.hidden {
  display: none;
}

.login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.login-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  border: 1px solid rgba(255, 223, 138, 0.32);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(140deg, rgba(255, 223, 138, 0.14), transparent 34%),
    rgba(4, 9, 10, 0.94);
  box-shadow:
    0 24px 84px rgba(0, 0, 0, 0.62),
    0 0 38px rgba(255, 223, 138, 0.12);
}

.login-modal__panel h2 {
  color: var(--gold-hot);
}

.login-modal__panel p {
  color: rgba(242, 234, 216, 0.72);
  line-height: 1.7;
}

.login-modal__actions {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 10px;
  margin-top: 16px;
}

.page-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-head-row .ghost-button {
  min-height: 38px;
  padding: 0 12px;
}

.account-page {
  gap: 14px;
  padding-bottom: calc(98px + env(safe-area-inset-bottom));
}

.account-card,
.records-kind-switch,
.records-summary,
.record-card,
.record-empty {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 223, 138, 0.25);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 223, 138, 0.16), transparent 92px),
    linear-gradient(140deg, rgba(255, 223, 138, 0.095), transparent 40%),
    rgba(1, 5, 6, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(255, 223, 138, 0.035),
    0 16px 44px rgba(0, 0, 0, 0.24);
}

.records-kind-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 7px;
}

.records-kind-switch button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(255, 223, 138, 0.14);
  border-radius: 8px;
  padding: 0 11px;
  color: rgba(242, 234, 216, 0.72);
  background:
    linear-gradient(135deg, rgba(69, 192, 179, 0.08), transparent 55%),
    rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.records-kind-switch button::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 223, 138, 0.12), rgba(69, 192, 179, 0.06));
  opacity: 0;
  transition: opacity 180ms ease;
}

.records-kind-switch button span,
.records-kind-switch button small {
  position: relative;
  z-index: 1;
}

.records-kind-switch button span {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-kind-switch button small {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 223, 138, 0.16);
  border-radius: 999px;
  color: rgba(255, 223, 138, 0.72);
  background: rgba(0, 0, 0, 0.22);
  font-family: "Consolas", "Microsoft YaHei", monospace;
  font-size: 11px;
  font-weight: 900;
}

.records-kind-switch button.is-active {
  border-color: rgba(255, 223, 138, 0.42);
  color: var(--gold-hot);
  box-shadow:
    inset 0 0 0 1px rgba(255, 223, 138, 0.08),
    0 0 24px rgba(255, 223, 138, 0.1);
}

.records-kind-switch button.is-active::before {
  opacity: 1;
}

.records-kind-switch button.is-active small {
  color: #100c06;
  background: linear-gradient(180deg, var(--gold-hot), var(--gold-rich));
}

.records-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: end;
  padding: 13px 14px;
}

.records-summary span,
.records-summary small {
  color: rgba(158, 167, 157, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.records-summary strong {
  grid-row: span 2;
  color: var(--gold-hot);
  font-family: "Consolas", "Microsoft YaHei", monospace;
  font-size: 42px;
  line-height: 0.88;
  text-shadow: 0 0 22px rgba(255, 223, 138, 0.28);
}

.records-list {
  display: grid;
  gap: 10px;
}

.record-card {
  display: grid;
  gap: 9px;
  padding: 16px 48px 16px 14px;
  cursor: pointer;
}

.record-card::before,
.account-card::before,
.record-empty::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 223, 138, 0.78), rgba(69, 192, 179, 0.55), transparent);
}

.record-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.record-card__head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.record-card__head span {
  width: fit-content;
  border: 1px solid rgba(69, 192, 179, 0.24);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--jade);
  background: rgba(69, 192, 179, 0.07);
  font-size: 11px;
  font-weight: 900;
}

.record-card__head strong {
  color: var(--gold-hot);
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: 21px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.record-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.record-group-chip {
  display: inline-grid;
  max-width: 100%;
  min-height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 223, 138, 0.28);
  border-radius: 999px;
  padding: 3px 9px;
  overflow: hidden;
  color: rgba(255, 223, 138, 0.92);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 246, 185, 0.18), transparent 70%),
    linear-gradient(90deg, rgba(255, 223, 138, 0.13), rgba(69, 192, 179, 0.06)),
    rgba(0, 0, 0, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 18px rgba(255, 223, 138, 0.12);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-group-chip--jade {
  border-color: rgba(69, 192, 179, 0.28);
  color: rgba(132, 236, 222, 0.9);
  background:
    linear-gradient(90deg, rgba(69, 192, 179, 0.13), rgba(255, 223, 138, 0.05)),
    rgba(0, 0, 0, 0.22);
}

.record-group-chip--solid {
  border-color: rgba(255, 223, 138, 0.55);
  color: #100c06;
  background: linear-gradient(180deg, var(--gold-hot), var(--gold-rich));
  box-shadow: 0 0 20px rgba(255, 223, 138, 0.18);
}

.unlock-record-card .record-pillars {
  font-size: 28px;
}

.record-delete {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid rgba(255, 107, 88, 0.22);
  border-radius: 8px;
  padding: 0 9px;
  color: #ffb5a4;
  background: rgba(255, 107, 88, 0.075);
  font-size: 12px;
  font-weight: 800;
}

.record-delete--floating {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 30px;
  min-height: 30px;
  place-items: center;
  border-radius: 50%;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.record-pillars {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--gold-hot);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow:
    0 0 20px rgba(255, 223, 138, 0.34),
    0 0 38px rgba(69, 192, 179, 0.12);
}

.record-input-line,
.record-matrix-line {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.record-input-line {
  color: rgba(242, 234, 216, 0.72);
  font-size: 12px;
}

.record-matrix-line {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(255, 223, 138, 0.14);
  border-radius: 999px;
  padding: 5px 9px;
  color: rgba(255, 223, 138, 0.88);
  background:
    linear-gradient(90deg, rgba(255, 223, 138, 0.1), rgba(69, 192, 179, 0.06)),
    rgba(0, 0, 0, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.record-meta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.record-meta-grid span {
  min-width: 0;
  border: 1px solid rgba(255, 223, 138, 0.11);
  border-radius: 8px;
  padding: 7px 8px;
  overflow-wrap: anywhere;
  color: rgba(242, 234, 216, 0.72);
  background: rgba(0, 0, 0, 0.18);
  font-size: 12px;
  line-height: 1.35;
}

.record-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 16px;
  text-align: center;
}

.record-empty > span,
.account-orbit {
  position: relative;
  display: grid;
  width: 94px;
  aspect-ratio: 1;
  place-items: center;
}

.record-empty > span::before,
.record-empty > span::after,
.account-orbit span,
.auth-seal span {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.record-empty > span::before,
.account-orbit span:first-child,
.auth-seal span:first-child {
  inset: 0;
  border: 1px solid rgba(255, 223, 138, 0.35);
  animation: spin 16s linear infinite;
}

.record-empty > span::after,
.account-orbit span:nth-child(2),
.auth-seal span:nth-child(2) {
  inset: 16px;
  border: 1px dashed rgba(69, 192, 179, 0.32);
  animation: spinReverse 12s linear infinite;
}

.record-empty > span {
  background: url("./taiji-bagua-gold.svg") center / 58px 58px no-repeat;
  filter: drop-shadow(0 0 20px rgba(255, 223, 138, 0.22));
}

.record-empty strong,
.account-card > strong {
  color: var(--gold-hot);
  font-size: 20px;
}

.record-empty p,
.account-card p {
  margin: 0;
  color: rgba(242, 234, 216, 0.68);
  font-size: 13px;
  line-height: 1.65;
}

.account-card {
  display: grid;
  justify-items: stretch;
  gap: 13px;
  padding: 16px;
}

.account-card--guest {
  text-align: center;
}

.account-orbit {
  justify-self: center;
  width: 132px;
}

.account-orbit i,
.auth-seal i {
  width: 72%;
  aspect-ratio: 1;
  background: url("./taiji-bagua-gold.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 24px rgba(255, 223, 138, 0.3));
  animation: spin 18s linear infinite;
}

.account-actions,
.auth-split-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: 10px;
}

.wechat-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 223, 138, 0.32);
  border-radius: 8px;
  padding: 8px 13px;
  color: var(--gold-hot);
  background:
    radial-gradient(circle at 22px 12px, rgba(255, 223, 138, 0.24), transparent 58px),
    linear-gradient(135deg, rgba(255, 223, 138, 0.13), rgba(69, 192, 179, 0.08)),
    rgba(1, 7, 8, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 28px rgba(255, 223, 138, 0.11),
    0 0 20px rgba(69, 192, 179, 0.08);
  font-weight: 900;
}

.wechat-button i {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 223, 138, 0.48);
  border-radius: 50%;
  background:
    url("./taiji-bagua-gold.svg") center / 28px 28px no-repeat,
    radial-gradient(circle, rgba(255, 223, 138, 0.2), transparent 65%),
    rgba(0, 0, 0, 0.24);
  box-shadow:
    inset 0 0 0 3px rgba(255, 223, 138, 0.045),
    0 0 22px rgba(255, 223, 138, 0.24);
  font-style: normal;
  animation: spin 13s linear infinite;
}

.wechat-button i::before,
.wechat-button i::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.wechat-button i::before {
  inset: -5px;
  border: 1px dashed rgba(69, 192, 179, 0.28);
  animation: spinReverse 9s linear infinite;
}

.wechat-button i::after {
  inset: -1px;
  background: repeating-conic-gradient(from 0deg, rgba(255, 223, 138, 0.58) 0 1deg, transparent 1deg 22.5deg);
  -webkit-mask: radial-gradient(circle, transparent 0 57%, black 58% 62%, transparent 63%);
  mask: radial-gradient(circle, transparent 0 57%, black 58% 62%, transparent 63%);
  animation: spin 7s linear infinite;
}

.profile-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.profile-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 223, 138, 0.48);
  border-radius: 50%;
  color: #120902;
  background:
    radial-gradient(circle at 30% 20%, #fff7d2, transparent 28%),
    linear-gradient(135deg, #ffe7a1, #d49b30 58%, #8f5710);
  box-shadow: 0 0 28px rgba(255, 223, 138, 0.26);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 27px;
  font-weight: 900;
}

.profile-head strong {
  display: block;
  margin-top: 3px;
  color: var(--gold-hot);
  font-size: 22px;
  overflow-wrap: anywhere;
}

.profile-head p {
  margin-top: 2px;
}

.profile-status {
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(255, 223, 138, 0.15);
  border-radius: 8px;
  padding: 10px 8px;
  background: rgba(0, 0, 0, 0.2);
}

.profile-grid small {
  color: rgba(158, 167, 157, 0.78);
  font-size: 11px;
}

.profile-grid b {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--gold-hot);
  font-size: 18px;
  line-height: 1.1;
}

.auth-panel {
  display: grid;
  gap: 12px;
  place-items: stretch;
}

.auth-close {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 223, 138, 0.22);
  border-radius: 8px;
  color: var(--gold-hot);
  background: rgba(0, 0, 0, 0.28);
  font-size: 24px;
  line-height: 1;
}

.auth-seal {
  position: relative;
  display: grid;
  width: 120px;
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  margin-top: 2px;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label span {
  color: rgba(217, 183, 111, 0.86);
  font-size: 13px;
  font-weight: 900;
}

.auth-form input {
  min-height: 48px;
  border: 1px solid rgba(217, 183, 111, 0.25);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--gold-hot);
  outline: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(0, 0, 0, 0.32);
}

.auth-form input:focus {
  border-color: rgba(255, 223, 138, 0.72);
  box-shadow: 0 0 0 3px rgba(217, 183, 111, 0.12);
}

.auth-message {
  min-height: 20px;
  margin: -2px 0 0;
  color: rgba(158, 167, 157, 0.86);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.auth-message.is-ok {
  color: var(--gold-hot);
}

.auth-message.is-error {
  color: #ffb5a4;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(184px + env(safe-area-inset-bottom));
  z-index: 70;
  width: min(calc(100vw - 34px), 420px);
  border: 1px solid rgba(255, 223, 138, 0.34);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--gold-hot);
  background:
    linear-gradient(135deg, rgba(255, 223, 138, 0.16), rgba(69, 192, 179, 0.08)),
    rgba(2, 7, 8, 0.92);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(255, 223, 138, 0.13);
  backdrop-filter: blur(16px);
  text-align: center;
  transform: translateX(-50%);
}

.app-toast[data-type="error"] {
  border-color: rgba(255, 107, 88, 0.34);
  color: #ffb5a4;
}

.select-picker {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: grid;
  place-items: end center;
  padding: 12px 8px calc(12px + env(safe-area-inset-bottom));
}

.select-picker.hidden {
  display: none;
}

.select-picker__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background:
    radial-gradient(circle at 50% 70%, rgba(255, 223, 138, 0.16), transparent 260px),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px) saturate(128%);
  cursor: pointer;
}

.select-picker__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(100%, 520px);
  max-height: min(76vh, 720px);
  border: 1px solid rgba(255, 223, 138, 0.36);
  border-radius: 8px;
  padding: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% -10%, rgba(255, 223, 138, 0.22), transparent 126px),
    radial-gradient(circle at 92% 8%, rgba(69, 192, 179, 0.14), transparent 120px),
    linear-gradient(145deg, rgba(255, 223, 138, 0.13), transparent 36%),
    rgba(4, 8, 9, 0.96);
  box-shadow:
    0 -24px 90px rgba(0, 0, 0, 0.72),
    0 0 54px rgba(255, 223, 138, 0.15),
    inset 0 0 0 1px rgba(255, 223, 138, 0.06);
  animation: pickerRise 220ms ease-out both;
}

.select-picker__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 223, 138, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 192, 179, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
  opacity: 0.8;
}

.select-picker__header,
.select-picker__subtitle,
.select-picker__search,
.select-picker__options,
.select-picker__count {
  position: relative;
  z-index: 1;
}

.select-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.select-picker__title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.select-picker__mark {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 223, 138, 0.36);
  border-radius: 50%;
  background:
    url("./taiji-bagua-gold.svg") center / 30px 30px no-repeat,
    radial-gradient(circle, rgba(255, 223, 138, 0.18), transparent 64%);
  box-shadow:
    inset 0 0 0 4px rgba(255, 223, 138, 0.045),
    0 0 24px rgba(255, 223, 138, 0.24);
  animation: spin 13s linear infinite;
}

.select-picker__mark::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  background: repeating-conic-gradient(from 0deg, rgba(255, 223, 138, 0.52) 0 1deg, transparent 1deg 16deg);
  -webkit-mask: radial-gradient(circle, transparent 0 61%, black 62% 66%, transparent 67%);
  mask: radial-gradient(circle, transparent 0 61%, black 62% 66%, transparent 67%);
  animation: spinReverse 9s linear infinite;
}

.select-picker__title div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.select-picker__title small {
  color: var(--jade);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.select-picker__title h2 {
  margin: 0;
  color: var(--gold-hot);
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: 27px;
  line-height: 1.05;
  text-shadow: 0 0 24px rgba(255, 223, 138, 0.25);
}

.select-picker__close {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  min-height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 223, 138, 0.28);
  border-radius: 8px;
  color: var(--gold-hot);
  background: rgba(0, 0, 0, 0.28);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.select-picker__subtitle {
  margin: -4px 0 0 51px;
  color: rgba(242, 234, 216, 0.58);
  font-size: 12px;
}

.select-picker__search {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 223, 138, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.26);
}

.select-picker__search.hidden {
  display: none;
}

.select-picker__search span {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.select-picker__search input {
  min-height: 34px;
  border: 0;
  padding: 6px 0;
  color: var(--gold-hot);
  background: transparent;
  box-shadow: none;
  font-size: 15px;
}

.select-picker__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-height: 92px;
  max-height: min(52vh, 470px);
  overflow: auto;
  padding: 2px 1px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 223, 138, 0.38) rgba(0, 0, 0, 0.18);
}

.select-picker--year .select-picker__options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.select-picker--province .select-picker__options,
.select-picker--city .select-picker__options,
.select-picker--area .select-picker__options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.select-picker__option {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  border: 1px solid rgba(255, 223, 138, 0.18);
  border-radius: 8px;
  padding: 8px 6px;
  color: var(--gold-hot);
  background:
    linear-gradient(145deg, rgba(255, 223, 138, 0.09), transparent 58%),
    rgba(1, 5, 6, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.select-picker__option span {
  max-width: 100%;
  overflow: hidden;
  color: var(--gold-hot);
  font-family: "Songti SC", "SimSun", "Noto Serif SC", "Microsoft YaHei", serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 0 16px rgba(255, 223, 138, 0.14);
  white-space: nowrap;
}

.select-picker--province .select-picker__option span,
.select-picker--city .select-picker__option span,
.select-picker--area .select-picker__option span {
  font-size: 18px;
}

.select-picker--year .select-picker__option span {
  font-family: "Consolas", "Microsoft YaHei", monospace;
  font-size: 18px;
}

.select-picker__option small {
  color: rgba(158, 167, 157, 0.76);
  font-size: 10px;
  font-weight: 800;
}

.select-picker__option.is-selected {
  border-color: rgba(255, 223, 138, 0.72);
  color: #120902;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.46), transparent 38%),
    linear-gradient(135deg, #fff0b2, #e4ae3f 48%, #9b6717);
  box-shadow:
    0 0 24px rgba(255, 223, 138, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.select-picker__option.is-selected span,
.select-picker__option.is-selected small {
  color: #120902;
  text-shadow: none;
}

.select-picker__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 0;
  color: rgba(242, 234, 216, 0.62);
  text-align: center;
}

.select-picker__count {
  margin: -2px 0 0;
  color: rgba(158, 167, 157, 0.76);
  font-size: 11px;
  text-align: right;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: min(520px, calc(100vw - 16px));
  min-height: 76px;
  padding: 8px;
  border: 1px solid rgba(217, 183, 111, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.015)),
    rgba(3, 8, 9, 0.86);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 223, 138, 0.045);
  backdrop-filter: blur(18px) saturate(130%);
  transform: translateX(-50%);
}

.bottom-nav button {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 5px;
  border: 0;
  border-radius: 8px;
  padding: 5px 4px;
  color: rgba(242, 234, 216, 0.55);
  background: transparent;
  cursor: pointer;
}

.bottom-nav button.is-active {
  color: var(--gold-hot);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 223, 138, 0.2), transparent 54%),
    rgba(217, 183, 111, 0.08);
}

.bottom-nav span {
  font-size: 13px;
  font-weight: 800;
}

.nav-icon {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  color: currentColor;
}

.nav-icon--plate {
  background: url("./taiji-bagua-gold.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 12px rgba(255, 223, 138, 0.34));
  animation: spin 12s linear infinite;
}

.nav-icon--records::before,
.nav-icon--records::after,
.nav-icon--oracle::before,
.nav-icon--oracle::after,
.nav-icon--school::before,
.nav-icon--school::after,
.nav-icon--mine::before,
.nav-icon--mine::after {
  content: "";
  position: absolute;
  inset: 0;
}

.nav-icon--records::before {
  inset: 4px 6px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.nav-icon--records::after {
  inset: 9px 11px 4px 13px;
  border-left: 2px solid currentColor;
  box-shadow:
    5px 0 0 currentColor,
    -5px 0 0 currentColor;
}

.nav-icon--oracle::before {
  left: 5px;
  right: 5px;
  top: 6px;
  height: 3px;
  background: currentColor;
  box-shadow:
    0 7px 0 currentColor,
    0 14px 0 currentColor;
}

.nav-icon--oracle::after {
  top: 13px;
  left: 12px;
  width: 4px;
  height: 3px;
  background: rgba(3, 8, 9, 0.92);
  box-shadow:
    -7px 0 0 rgba(3, 8, 9, 0.92),
    7px 0 0 rgba(3, 8, 9, 0.92);
}

.nav-icon--school::before {
  inset: 4px 6px 5px;
  border: 2px solid currentColor;
  border-radius: 4px;
  transform: skewY(-6deg);
}

.nav-icon--school::after {
  top: 7px;
  bottom: 7px;
  left: 50%;
  width: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow:
    -6px 0 0 rgba(255, 223, 138, 0.48),
    6px 0 0 rgba(255, 223, 138, 0.48),
    0 0 14px rgba(255, 223, 138, 0.42);
  transform: translateX(-50%);
}

.bottom-nav button.is-active .nav-icon--school::before {
  box-shadow: 0 0 18px rgba(255, 223, 138, 0.22);
}

.nav-icon--mine::before {
  top: 4px;
  left: 9px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-icon--mine::after {
  left: 5px;
  right: 5px;
  bottom: 4px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 4px 4px;
}

.deep-dock {
  bottom: calc(96px + env(safe-area-inset-bottom));
  width: min(520px, calc(100vw - 16px));
}

@media (max-width: 420px) {
  .app-shell {
    width: 100%;
    max-width: 420px;
    padding: 6px 6px 112px;
  }

  .app-topbar {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    min-height: 60px;
  }

  .top-title h1 {
    font-size: 28px;
  }

  .top-icon {
    width: 40px;
    height: 40px;
  }

  .plate-form-card.input-pane,
  .quick-now-card,
  .almanac-card,
  .feature-page {
    padding: 14px;
  }

  .control-row {
    grid-template-columns: 0.82fr 1.18fr;
    gap: 8px;
  }

  .segmented--compact span {
    font-size: 15px;
  }

  .date-grid,
  .time-grid {
    gap: 7px;
  }

  .place-grid {
    grid-template-columns: 0.92fr 1fr 1.08fr;
    gap: 6px;
  }

  .plate-form select {
    padding-left: 8px;
    padding-right: 29px;
    font-size: 16px;
  }

  .plate-form .place-grid select {
    font-size: 15px;
  }

  .tab-view--plate .result-pane {
    padding: 12px 12px calc(208px + env(safe-area-inset-bottom));
  }

  .tab-view--plate.is-record-detail .result-pane {
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
  }

  .record-card {
    padding: 15px 44px 15px 13px;
  }

  .record-pillars {
    font-size: 28px;
  }

  .bazi-board {
    padding: 12px 9px 96px;
  }

  .bazi-board-head {
    margin-bottom: 10px;
  }

  .bazi-board-head .eyebrow {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .bazi-board-head h2 {
    margin-bottom: 4px;
    font-size: 26px;
  }

  .bazi-board-head .muted {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .bazi-pro-row {
    grid-template-columns: 48px repeat(4, minmax(0, 1fr));
  }

  .bazi-pro-label {
    padding: 10px 4px;
    font-size: 12px;
  }

  .bazi-pro-head-cell {
    min-height: 66px;
    padding: 9px 3px 8px;
    gap: 3px;
  }

  .bazi-pro-head-cell span {
    font-size: 11px;
  }

  .bazi-pro-head-cell strong {
    font-size: 19px;
  }

  .bazi-pro-head-cell em {
    min-height: 16px;
    padding: 1px 5px;
    font-size: 9px;
  }

  .bazi-pro-cell {
    min-height: 50px;
    padding: 8px 3px;
  }

  .bazi-pro-row--glyph .bazi-pro-cell {
    min-height: 84px;
  }

  .bazi-pro-row--stack .bazi-pro-cell,
  .bazi-pro-row--tags .bazi-pro-cell {
    min-height: 108px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .bazi-pro-item--glyph strong {
    font-size: 42px;
  }

  .bazi-pro-item--glyph small {
    font-size: 11px;
  }

  .bazi-pro-stack {
    gap: 4px;
  }

  .bazi-pro-item--stem strong {
    font-size: 18px;
  }

  .bazi-pro-item--stem small {
    font-size: 12px;
  }

  .bazi-pro-text,
  .bazi-pro-row[data-row="主星"] .bazi-pro-text {
    font-size: 13px;
  }

  .bazi-pro-shensha span {
    font-size: 12px;
  }

  .quick-now-card {
    grid-template-columns: 1fr;
  }

  .now-copy {
    grid-template-columns: 1fr 128px;
    align-items: center;
  }

  .now-clock {
    text-align: left;
  }
}

@media (max-width: 360px) {
  .top-title h1 {
    font-size: 25px;
  }

  .mobile-brand .brand-orbit {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .mobile-brand .brand-mark {
    width: 44px;
    height: 44px;
  }

  .mobile-brand h2 {
    font-size: 22px;
  }

  .name-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .name-row input {
    font-size: 16px;
  }

  .login-modal__actions {
    grid-template-columns: 1fr;
  }

  .bazi-pro-row {
    grid-template-columns: 44px repeat(4, minmax(0, 1fr));
  }

  .bazi-pro-label {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 11px;
  }

  .bazi-pro-head-cell strong {
    font-size: 17px;
  }

  .bazi-pro-head-cell em {
    min-width: 26px;
    font-size: 8px;
  }

  .bazi-pro-item--glyph strong {
    font-size: 36px;
  }

  .bazi-pro-item--stem strong {
    font-size: 15px;
  }

  .bazi-pro-item--stem small,
  .bazi-pro-shensha span {
    font-size: 11px;
  }

  .now-pillar {
    min-height: 86px;
  }

  .now-pillar b {
    font-size: 27px;
  }

  .now-copy {
    grid-template-columns: 1fr;
  }

  .almanac-grid {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    width: min(100vw - 10px, 360px);
  }
}

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

  #cosmos-canvas {
    display: none;
  }
}
