:root {
  color-scheme: dark;
  --rail: 92px;
  --ink: #10110f;
  --ink-soft: #171915;
  --paper: #f4ead8;
  --paper-muted: rgba(244, 234, 216, 0.68);
  --paper-low: rgba(244, 234, 216, 0.46);
  --line: rgba(244, 234, 216, 0.18);
  --gold: #caa95d;
  --red: #a83a2d;
  --jade: #45685d;
  --blue: #263f52;
  --panel: rgba(18, 19, 16, 0.72);
  --panel-strong: rgba(18, 19, 16, 0.9);
  --font-body: "Noto Sans SC", "Source Han Sans SC", "HarmonyOS Sans SC",
    "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "DengXian",
    system-ui, sans-serif;
  --font-serif: "FangSong", "STFangsong", "Noto Serif SC",
    "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-title: "KaiTi", "STKaiti", "Kaiti SC", "FZYaoti", "STXingkai",
    "FZShuTi", "FangSong", "SimSun", serif;
  --font-seal: "KaiTi", "STKaiti", "FZShuTi", "STXingkai", "SimSun", serif;
  --title-shadow:
    0 1px 0 rgba(105, 41, 28, 0.74),
    0 0 18px rgba(202, 169, 93, 0.15),
    0 16px 38px rgba(0, 0, 0, 0.6);
  font-family: var(--font-body);
}

.theme-en {
  --font-body: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-title: Georgia, "Times New Roman", serif;
  --font-seal: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: #0d0f0e;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(168, 58, 45, 0.18), transparent 28%),
    radial-gradient(circle at 78% 8%, rgba(69, 104, 93, 0.18), transparent 26%),
    linear-gradient(180deg, #0d0f0e, #17130f 42%, #0f1110);
  color: var(--paper);
  font-size: 16px;
  line-height: 1.7;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 2000;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: #10110f;
  color: var(--paper);
  font-weight: 700;
  transform: translate(-50%, -160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  content: "";
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(244, 234, 216, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 234, 216, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, black 12%, black 88%, transparent);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
}

.optimized-picture {
  display: block;
}

.optimized-picture > img {
  display: block;
}

button,
input {
  font: inherit;
}

.site-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: grid;
  width: var(--rail);
  grid-template-rows: auto 1fr;
  gap: 28px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: rgba(11, 13, 12, 0.74);
  backdrop-filter: blur(18px);
}

.rail-brand {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.seal {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(202, 169, 93, 0.58);
  border-radius: 12px 4px 12px 4px;
  color: var(--gold);
  background: rgba(168, 58, 45, 0.16);
  font-family: var(--font-seal);
  font-size: 22px;
  font-weight: 700;
}

.rail-brand img.seal {
  border: none;
  background: none;
  border-radius: 50%;
  object-fit: cover;
  padding: 0;
  box-shadow: 0 0 0 1px rgba(202, 169, 93, 0.28), 0 6px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rail-brand:hover img.seal {
  transform: scale(1.05);
  box-shadow: 0 0 0 1px rgba(202, 169, 93, 0.55), 0 8px 22px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .rail-brand img.seal,
  .rail-brand:hover img.seal {
    transition: none;
    transform: none;
  }
}

.lang-switch {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 1400;
  font-family: inherit;
}
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(206, 178, 107, 0.45);
  border-radius: 999px;
  background: rgba(20, 19, 16, 0.74);
  color: #f4ead8;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.lang-switch__btn:hover {
  border-color: rgba(206, 178, 107, 0.85);
}
.lang-switch__btn svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}
.lang-switch__caret {
  font-size: 9px;
  opacity: 0.8;
  transition: transform 0.18s;
}
.lang-switch.open .lang-switch__caret {
  transform: rotate(180deg);
}
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  display: none;
  flex-direction: column;
  padding: 6px;
  border: 1px solid rgba(206, 178, 107, 0.32);
  border-radius: 14px;
  background: rgba(22, 21, 18, 0.97);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lang-switch.open .lang-switch__menu {
  display: flex;
}
.lang-switch__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #e9dcc2;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
.lang-switch__menu a:hover {
  background: rgba(206, 178, 107, 0.16);
}
.lang-switch__menu a[aria-current="true"] {
  color: #caa95d;
  font-weight: 600;
}
.lang-switch__menu a[aria-current="true"]::after {
  content: "\2713";
  font-size: 12px;
}
@media (max-width: 640px) {
  .lang-switch {
    top: 10px;
    right: 10px;
  }
  .lang-switch__btn {
    padding: 6px 10px;
    font-size: 12px;
  }
}

.brand-copy {
  display: grid;
  gap: 2px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.brand-copy strong {
  font-family: var(--font-title);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.brand-copy small {
  color: var(--paper-low);
  font-size: 11px;
}

.theme-en .brand-copy {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.theme-en .brand-copy strong,
.theme-en .rail-brand > span > strong {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
}

.theme-en .brand-copy small,
.theme-en .rail-brand > span > small {
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1.25;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  scrollbar-width: none;
}

.rail-nav::-webkit-scrollbar,
.dossier-drawer::-webkit-scrollbar {
  display: none;
}

.rail-nav > a,
.rail-root {
  appearance: none;
  display: grid;
  width: 100%;
  min-height: 48px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--paper-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.rail-nav > a:hover,
.rail-nav > a:focus-visible,
.rail-root:hover,
.rail-root:focus-visible,
.rail-branch.is-open .rail-root {
  border-color: rgba(202, 169, 93, 0.45);
  background: rgba(202, 169, 93, 0.1);
  color: var(--paper);
  transform: translateX(3px);
}

.rail-branch {
  position: relative;
  width: 100%;
}

.rail-flyout {
  position: fixed;
  top: 0;
  left: var(--rail);
  z-index: 31;
  width: min(860px, calc(100vw - var(--rail) - 18px));
  min-height: 100dvh;
  padding: clamp(34px, 7vh, 76px) clamp(24px, 4vw, 46px);
  border-right: 1px solid rgba(244, 234, 216, 0.14);
  border-left: 1px solid rgba(202, 169, 93, 0.12);
  background:
    radial-gradient(circle at 16% 12%, rgba(168, 58, 45, 0.2), transparent 34%),
    radial-gradient(circle at 94% 8%, rgba(69, 104, 93, 0.2), transparent 30%),
    linear-gradient(115deg, rgba(13, 15, 14, 0.98), rgba(21, 19, 15, 0.95));
  box-shadow: 34px 0 70px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
  visibility: hidden;
}

.rail-branch:hover .rail-flyout,
.rail-branch:focus-within .rail-flyout,
.rail-branch.is-open .rail-flyout {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
}

.rail-flyout-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: clamp(26px, 5vh, 48px);
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(244, 234, 216, 0.14);
}

.rail-flyout-head span {
  font-family: var(--font-title);
  color: var(--paper);
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  text-shadow: var(--title-shadow);
}

.rail-flyout-head a {
  flex: 0 0 auto;
  margin-top: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.rail-step-tree {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(190px, 0.82fr) minmax(220px, 1fr) minmax(230px, 1.08fr);
  align-items: stretch;
  min-height: clamp(330px, 44vh, 520px);
  overflow: hidden;
  border: 1px solid rgba(244, 234, 216, 0.12);
  border-radius: 18px 6px 18px 6px;
  background: rgba(7, 9, 8, 0.44);
}

.rail-step-art {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: min(58%, 520px);
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.22;
  filter: saturate(0.86) contrast(1.08);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.72) 34%, black 100%);
}

.rail-step-column {
  position: relative;
  z-index: 1;
  display: none;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  border-left: 1px solid rgba(244, 234, 216, 0.1);
}

.rail-step-column:first-child {
  border-left: 0;
}

.rail-step-column.is-visible {
  display: grid;
  animation: railStepIn 180ms ease-out;
}

.rail-step-column[data-step-level="2"].is-visible,
.rail-step-column[data-step-level="3"].is-visible {
  background:
    linear-gradient(90deg, rgba(202, 169, 93, 0.05), transparent 28%),
    rgba(15, 17, 15, 0.3);
}

.rail-step-column::before {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.rail-step-column[data-step-level="1"]::before {
  content: "先选一支";
}

.rail-step-column[data-step-level="2"]::before {
  content: "再选下一层";
}

.rail-step-column[data-step-level="3"]::before {
  content: "当前细分";
}

.rail-step-item,
.rail-step-link,
.rail-step-leaf {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 12px 4px 12px 4px;
  color: rgba(244, 234, 216, 0.82);
  font-family: var(--font-title);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.rail-step-item {
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.rail-step-item::after {
  flex: 0 0 auto;
  color: rgba(202, 169, 93, 0.58);
  content: "›";
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
}

.rail-step-item:hover,
.rail-step-item:focus-visible,
.rail-step-item.is-active,
.rail-step-link:hover,
.rail-step-link:focus-visible {
  border-color: rgba(202, 169, 93, 0.34);
  background: rgba(202, 169, 93, 0.1);
  color: var(--paper);
}

.rail-step-item.is-active {
  box-shadow: inset 3px 0 0 rgba(202, 169, 93, 0.72);
}

.rail-step-link {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(202, 169, 93, 0.45);
  text-underline-offset: 5px;
}

.rail-step-leaf {
  justify-content: flex-start;
  min-height: 38px;
  color: rgba(244, 234, 216, 0.72);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
}

.rail-step-leaf::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 1px solid rgba(202, 169, 93, 0.64);
  border-radius: 50%;
  content: "";
}

.rail-step-note {
  margin: 0;
  border-left: 2px solid rgba(202, 169, 93, 0.58);
  padding: 12px 0 12px 14px;
  color: rgba(244, 234, 216, 0.72);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
}

@keyframes railStepIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

main,
.site-footer {
  margin-left: var(--rail);
}

.portal-hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-video,
.hero-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.05) contrast(1.04);
}

.hero-wash {
  background:
    radial-gradient(circle at 50% 13%, rgba(244, 234, 216, 0.12), transparent 21%),
    linear-gradient(90deg, rgba(7, 9, 8, 0.86), rgba(7, 9, 8, 0.2) 46%, rgba(7, 9, 8, 0.66)),
    linear-gradient(180deg, rgba(7, 9, 8, 0.06), rgba(7, 9, 8, 0.92));
}

.hero-title-block {
  position: absolute;
  left: clamp(28px, 6vw, 78px);
  bottom: clamp(42px, 10vh, 96px);
  z-index: 2;
  width: min(760px, calc(100% - 420px));
  padding-left: clamp(18px, 2vw, 28px);
  border-left: 3px solid var(--gold);
}

.small-label {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-title-block h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(44px, 6.2vw, 82px);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.13;
  text-wrap: balance;
  text-shadow: var(--title-shadow);
  -webkit-text-stroke: 0.35px rgba(202, 169, 93, 0.22);
}

.theme-en .hero-title-block h1 {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.2vw, 68px);
  letter-spacing: 0;
  line-height: 1.06;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-text-stroke: 0;
}

.hero-title-block p:last-child {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(244, 234, 216, 0.86);
  font-size: clamp(16px, 1.5vw, 19px);
}

.oracle-panel {
  position: absolute;
  right: clamp(22px, 4vw, 64px);
  bottom: clamp(36px, 8vh, 82px);
  z-index: 3;
  width: min(348px, calc(100% - 44px));
  padding: 18px;
  border: 1px solid rgba(244, 234, 216, 0.22);
  border-radius: 18px 6px 18px 6px;
  background:
    linear-gradient(135deg, rgba(244, 234, 216, 0.12), transparent 34%),
    rgba(12, 14, 13, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(244, 234, 216, 0.12),
    0 24px 90px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(20px);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--paper-low);
  font-size: 13px;
}

.quiet-button {
  border: 0;
  border-bottom: 1px solid rgba(202, 169, 93, 0.48);
  padding: 2px 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}

.oracle-search label {
  display: block;
  margin-bottom: 9px;
  color: var(--paper);
  font-size: 15px;
  font-weight: 800;
}

.oracle-search div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.oracle-search input {
  min-width: 0;
  border: 1px solid rgba(244, 234, 216, 0.22);
  border-radius: 10px;
  padding: 12px;
  background: rgba(244, 234, 216, 0.08);
  color: var(--paper);
  outline: 0;
}

.oracle-search input:focus {
  border-color: var(--gold);
}

.oracle-search button,
.dossier-card a,
.path-main em {
  border: 1px solid rgba(202, 169, 93, 0.62);
  border-radius: 10px;
  background: rgba(202, 169, 93, 0.12);
  color: var(--paper);
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.oracle-search button {
  padding: 0 16px;
}

.oracle-search button:hover,
.dossier-card a:hover,
.path-main:hover em {
  border-color: var(--gold);
  background: rgba(168, 58, 45, 0.38);
}

.oracle-search button:active,
.dossier-card a:active,
.path-main:active em {
  transform: translateY(1px);
}

.search-results {
  max-height: min(300px, 36vh);
  margin-top: 12px;
  overflow-y: auto;
  border-top: 1px solid rgba(244, 234, 216, 0.16);
  padding-top: 10px;
}

.search-results[hidden] {
  display: none;
}

.search-results__status {
  margin: 0;
  color: var(--paper-muted);
  font-size: 13px;
}

.search-results__list {
  display: grid;
  gap: 2px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.search-result-link {
  display: grid;
  gap: 2px;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 6px;
}

.search-result-link:hover,
.search-result-link:focus-visible {
  background: rgba(202, 169, 93, 0.12);
  outline: none;
}

.search-result-link strong {
  color: var(--paper);
  font-size: 14px;
}

.search-result-link span {
  color: var(--paper-low);
  font-size: 12px;
}

.quick-thread {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.quick-thread a {
  border: 1px solid rgba(244, 234, 216, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--paper-muted);
  font-size: 12px;
}

.realm-dial {
  position: absolute;
  top: 15vh;
  right: clamp(18px, 4vw, 62px);
  z-index: 2;
  display: grid;
  gap: 12px;
  width: 250px;
}

.dial-item {
  display: grid;
  gap: 3px;
  padding: 13px 16px;
  border: 1px solid rgba(244, 234, 216, 0.18);
  border-radius: 999px;
  background: rgba(12, 14, 13, 0.5);
  backdrop-filter: blur(12px);
}

.dial-item:nth-child(2) {
  transform: translateX(-34px);
}

.dial-item:nth-child(3) {
  transform: translateX(-8px);
}

.dial-item span {
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dial-item small {
  color: var(--paper-low);
  font-size: 12px;
}

.path-section,
.scope-section,
.atlas-section,
.image-river,
.dossier-section,
.method-ledger {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 118px) 0;
}

.path-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: end;
}

.section-copy h2,
.scope-lead h2,
.atlas-note h2,
.river-panel h2,
.dossier-lead h2,
.ledger-title h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.14;
  text-wrap: balance;
  text-shadow: var(--title-shadow);
  -webkit-text-stroke: 0.3px rgba(202, 169, 93, 0.2);
}

.scope-lead h2,
.dossier-lead h2,
.ledger-title h2 {
  max-width: 1120px;
  font-size: clamp(32px, 3.2vw, 46px);
}

.section-copy p,
.scope-lead p,
.atlas-note p,
.river-panel p,
.dossier-lead p,
.ledger-title p {
  margin: 20px 0 0;
  color: var(--paper-muted);
}

.path-board {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: repeat(3, minmax(148px, auto));
  gap: 16px;
}

.path-main,
.path-slim {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(244, 234, 216, 0.18);
  border-radius: 24px 8px 24px 8px;
  background:
    linear-gradient(140deg, rgba(202, 169, 93, 0.16), rgba(69, 104, 93, 0.08)),
    rgba(18, 19, 16, 0.72);
  min-height: 100%;
  padding: 24px;
}

.path-main {
  grid-row: 1 / span 3;
  min-height: 476px;
}

.path-main::before,
.path-slim::before {
  position: absolute;
  inset: -30% -20% auto auto;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(202, 169, 93, 0.22);
  border-radius: 999px;
  content: "";
}

.path-main span,
.path-slim span,
.dossier-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.path-main strong,
.path-slim strong {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-family: var(--font-title);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-shadow:
    0 1px 0 rgba(104, 40, 27, 0.7),
    0 10px 28px rgba(0, 0, 0, 0.45);
  -webkit-text-stroke: 0.25px rgba(202, 169, 93, 0.18);
}

.path-slim strong {
  font-size: clamp(20px, 2vw, 26px);
}

.path-main em {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: 26px;
  padding: 10px 14px;
  font-style: normal;
}

.scope-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.scope-lead {
  position: static;
  width: min(1120px, 100%);
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  border-bottom: 1px solid rgba(202, 169, 93, 0.55);
  color: var(--gold);
  font-weight: 800;
}

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

.scope-grid article {
  min-height: 132px;
  border: 1px solid rgba(244, 234, 216, 0.16);
  border-radius: 18px 6px 18px 6px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(69, 104, 93, 0.13), transparent 58%),
    rgba(18, 19, 16, 0.68);
}

.scope-grid span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.scope-grid strong {
  display: block;
  margin-top: 10px;
  color: rgba(244, 234, 216, 0.88);
  font-family: var(--font-title);
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.22;
}

.atlas-section {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(280px, 0.66fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: center;
}

.atlas-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 234, 216, 0.22);
  border-radius: 34px 10px 34px 10px;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.32);
}

.atlas-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.map-pin {
  position: absolute;
  display: grid;
  min-width: 128px;
  gap: 2px;
  padding: 9px 12px;
  border: 1px solid rgba(244, 234, 216, 0.22);
  border-radius: 12px;
  background: rgba(10, 12, 11, 0.72);
  backdrop-filter: blur(10px);
}

.map-pin strong {
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: 0.04em;
}

.map-pin span {
  color: var(--paper-low);
  font-size: 12px;
}

.pin-heaven {
  top: 10%;
  left: 47%;
}

.pin-ocean {
  right: 9%;
  top: 46%;
}

.pin-underworld {
  left: 40%;
  bottom: 12%;
}

.atlas-note {
  display: grid;
  align-content: center;
}

.atlas-note dl {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
}

.atlas-note dl div {
  display: grid;
  gap: 4px;
  border-left: 2px solid rgba(202, 169, 93, 0.7);
  padding-left: 14px;
}

.atlas-note dt {
  color: var(--gold);
  font-weight: 800;
}

.atlas-note dd {
  margin: 0;
  color: var(--paper-muted);
}

.image-river {
  display: grid;
  gap: 22px;
}

.river-panel {
  display: grid;
  grid-template-columns: 0.72fr 0.48fr;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(244, 234, 216, 0.18);
  border-radius: 30px 8px 30px 8px;
  background: rgba(18, 19, 16, 0.68);
}

.river-panel.heaven {
  background:
    linear-gradient(135deg, rgba(202, 169, 93, 0.14), rgba(69, 104, 93, 0.08)),
    rgba(18, 19, 16, 0.7);
}

.river-panel.no-media {
  grid-template-columns: 1fr;
}

.river-panel.no-media div {
  min-height: 340px;
}

.river-panel:nth-child(2) {
  grid-template-columns: 0.48fr 0.72fr;
}

.river-panel:nth-child(2) img {
  order: 2;
}

.river-panel > .optimized-picture {
  height: 100%;
}

.river-panel:nth-child(2) > .optimized-picture {
  order: 2;
}

.river-panel img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.river-panel.heaven img {
  object-position: center center;
}

.river-panel div {
  display: grid;
  align-content: end;
  padding: clamp(26px, 5vw, 54px);
}

.dossier-section {
  display: grid;
  gap: 30px;
}

.dossier-lead {
  width: min(1120px, 100%);
}

.dossier-drawer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

.dossier-card {
  display: grid;
  min-height: 430px;
  align-content: start;
  border: 1px solid rgba(244, 234, 216, 0.18);
  border-radius: 22px 6px 22px 6px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(69, 104, 93, 0.16), rgba(38, 63, 82, 0.1)),
    rgba(18, 19, 16, 0.72);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.dossier-card.active {
  border-color: rgba(202, 169, 93, 0.72);
  background:
    linear-gradient(145deg, rgba(168, 58, 45, 0.22), rgba(202, 169, 93, 0.08)),
    rgba(18, 19, 16, 0.86);
  transform: none;
}

.dossier-card h3 {
  margin: 14px 0 0;
  font-family: var(--font-title);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-shadow:
    0 1px 0 rgba(104, 40, 27, 0.62),
    0 10px 26px rgba(0, 0, 0, 0.42);
  -webkit-text-stroke: 0.22px rgba(202, 169, 93, 0.16);
}

.dossier-card p {
  margin: 16px 0 18px;
  color: var(--paper-muted);
}

.dossier-card dl {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.dossier-card dl div {
  border-left: 2px solid rgba(202, 169, 93, 0.42);
  padding-left: 12px;
}

.dossier-card dt {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.dossier-card dd {
  margin: 3px 0 0;
  color: rgba(244, 234, 216, 0.72);
  font-size: 14px;
  line-height: 1.65;
}

.dossier-card a {
  width: fit-content;
  align-self: end;
  padding: 9px 13px;
}

.method-ledger {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.ledger-title {
  width: min(1120px, 100%);
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(244, 234, 216, 0.12);
}

.ledger-grid section {
  min-height: 220px;
  padding: 22px;
  background: var(--ink);
}

.ledger-grid h3 {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-title);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: 0;
}

.ledger-grid p {
  margin: 14px 0 0;
  color: var(--paper-muted);
}

.source-ledger-note {
  grid-column: 1 / -1;
  border: 1px solid rgba(244, 234, 216, 0.16);
  border-radius: 18px 6px 18px 6px;
  padding: 18px 20px;
  background:
    linear-gradient(90deg, rgba(168, 58, 45, 0.12), transparent 56%),
    rgba(18, 19, 16, 0.66);
  color: var(--paper-muted);
}

.source-ledger-note strong {
  color: var(--gold);
}

.source-ledger-note span {
  margin-left: 8px;
}

main.article-shell {
  margin-left: var(--rail);
}

.article-shell > article {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) 0;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.64fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: end;
  padding-bottom: clamp(36px, 6vw, 68px);
}

.article-hero.text-only-hero {
  grid-template-columns: 1fr;
  max-width: 980px;
}

.article-hero.text-only-hero p:last-child {
  max-width: 900px;
}

.article-hero > *,
.article-layout > *,
.scope-section > * {
  min-width: 0;
}

.article-hero h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.15;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: var(--title-shadow);
  -webkit-text-stroke: 0.3px rgba(202, 169, 93, 0.2);
}

.theme-en .article-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.4vw, 64px);
  letter-spacing: 0;
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  -webkit-text-stroke: 0;
}

.article-hero p:last-child {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(244, 234, 216, 0.82);
  font-size: clamp(17px, 1.7vw, 20px);
}

.article-hero p.article-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 22px 0 0;
  color: var(--paper-low);
  font-size: 14px;
  line-height: 1.5;
}

.article-meta-line span:first-child {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(202, 169, 93, 0.44);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--gold);
  background: rgba(202, 169, 93, 0.08);
  font-weight: 800;
}

.article-hero figure,
.article-figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(244, 234, 216, 0.18);
  border-radius: 28px 8px 28px 8px;
  background: rgba(18, 19, 16, 0.72);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
}

.article-hero figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article-hero figure {
  min-height: 360px;
}

.split-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.42fr);
  align-items: stretch;
}

.portrait-figure {
  aspect-ratio: 2 / 3;
  min-height: 520px;
}

.portrait-figure img {
  min-height: inherit;
  object-position: center top;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(244, 234, 216, 0.16);
  border-radius: 22px 6px 22px 6px;
  background: rgba(244, 234, 216, 0.12);
}

.quick-facts div {
  min-height: 118px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(202, 169, 93, 0.09), transparent 60%),
    var(--ink);
}

.quick-facts span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.quick-facts strong {
  display: block;
  margin-top: 8px;
  color: rgba(244, 234, 216, 0.9);
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 780px);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  justify-content: center;
  padding-top: clamp(42px, 7vw, 82px);
}

.published-article > .article-hero {
  width: 100%;
}

.article-content {
  min-width: 0;
  max-width: 75ch;
  color: rgba(244, 234, 216, 0.82);
  font-size: 18px;
  line-height: 1.92;
}

.article-content section + section {
  margin-top: clamp(38px, 6vw, 68px);
}

.article-content h2 {
  margin: 0 0 18px;
  color: var(--paper);
  font-family: var(--font-title);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  text-wrap: balance;
}

.theme-en .article-content h2 {
  font-family: var(--font-serif);
  overflow-wrap: normal;
  word-break: normal;
}

.article-content p {
  margin: 0;
}

.article-content p + p {
  margin-top: 1em;
}

.article-toc {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(202, 169, 93, 0.5);
  padding-top: 12px;
  color: var(--paper-low);
  font-size: 14px;
}

.article-toc > summary {
  min-height: 34px;
  color: var(--gold);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style-position: inside;
}

.article-toc[open] > summary {
  margin-bottom: 4px;
}

.article-toc strong {
  color: var(--gold);
  font-size: 13px;
}

.article-toc a:hover,
.article-toc a:focus-visible {
  color: var(--paper);
}

.article-body {
  color: rgba(244, 234, 216, 0.82);
  font-size: 18px;
  line-height: 1.92;
}

.article-body section + section,
.article-body figure + section,
.article-body section + figure {
  margin-top: clamp(42px, 7vw, 72px);
}

.article-body h2 {
  margin: 0 0 20px;
  color: var(--paper);
  font-family: var(--font-title);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.18;
  text-wrap: balance;
}

.article-body h3 {
  margin: 0 0 8px;
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 26px;
  letter-spacing: 0.02em;
}

.article-body p {
  margin: 0;
}

.article-body p + p {
  margin-top: 18px;
}

.article-figure {
  display: grid;
}

.article-figure.wide img {
  aspect-ratio: 16 / 9;
}

.article-figure figcaption {
  border-top: 1px solid rgba(244, 234, 216, 0.12);
  padding: 12px 16px;
  color: var(--paper-low);
  font-size: 14px;
  line-height: 1.6;
}

.taxonomy-table,
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

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

.taxonomy-table article,
.faq-list article,
.article-callout {
  border: 1px solid rgba(244, 234, 216, 0.16);
  border-radius: 18px 6px 18px 6px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(69, 104, 93, 0.12), transparent 60%),
    rgba(18, 19, 16, 0.68);
}

.taxonomy-table span,
.article-callout strong {
  color: var(--gold);
  font-weight: 800;
}

.taxonomy-table p,
.faq-list p,
.article-callout p {
  margin-top: 8px;
  color: rgba(244, 234, 216, 0.74);
  font-size: 16px;
  line-height: 1.75;
}

.heaven-tree-page .article-shell > article {
  width: min(1280px, calc(100% - 44px));
  padding-top: clamp(40px, 6vw, 72px);
}

.heaven-tree-page .article-layout {
  grid-template-columns: 190px minmax(0, 960px);
  padding-top: clamp(26px, 4vw, 42px);
}

.heaven-tree-page .article-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  max-width: none;
  align-items: center;
  padding-bottom: clamp(18px, 3vw, 34px);
}

.heaven-tree-page .article-hero h1 {
  font-size: clamp(42px, 5.4vw, 70px);
}

.heaven-tree-page .article-hero p:last-child {
  max-width: 860px;
}

.heaven-tree-page .article-hero .heaven-hero-figure {
  width: 100%;
  min-height: 0;
  height: clamp(280px, 30vw, 360px);
}

.heaven-tree-page .article-hero .heaven-hero-figure img {
  min-height: 0;
  height: 100%;
  object-position: center top;
}

/* 天庭专题 hero 改用与山海/地府专题一致的 split-hero 近正方图位，承载正方专题图。
   这页文字列含“五级谱系入口”提示框、列高较高，用 center 让图位保持近正方而非被拉长，避免正方图被左右裁切过多。 */
.heaven-tree-page .article-hero.split-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.42fr);
  align-items: center;
}

.heaven-tree {
  display: grid;
  gap: 22px;
}

.tree-root,
.tree-level,
.thunder-grid .tree-branch {
  border: 1px solid rgba(244, 234, 216, 0.16);
  background:
    linear-gradient(145deg, rgba(202, 169, 93, 0.1), transparent 48%),
    rgba(15, 17, 15, 0.78);
}

.tree-root {
  display: grid;
  gap: 8px;
  border-radius: 24px 6px 24px 6px;
  padding: 22px;
}

.tree-root span,
.tree-level-title span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.tree-root strong {
  color: var(--paper);
  font-family: var(--font-title);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0.04em;
  line-height: 1.12;
}

.tree-root p {
  color: rgba(244, 234, 216, 0.74);
  font-size: 17px;
  line-height: 1.8;
}

.tree-level {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  border-radius: 22px 6px 22px 6px;
  padding: 18px;
}

.tree-level-title {
  display: grid;
  align-content: start;
  gap: 8px;
  border-left: 2px solid rgba(202, 169, 93, 0.55);
  padding-left: 14px;
}

.tree-level-title h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
}

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

.tree-branch {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(244, 234, 216, 0.14);
  border-radius: 18px 6px 18px 6px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(69, 104, 93, 0.13), rgba(168, 58, 45, 0.05)),
    rgba(18, 19, 16, 0.76);
}

.tree-branch.featured {
  border-color: rgba(202, 169, 93, 0.42);
  background:
    linear-gradient(135deg, rgba(202, 169, 93, 0.14), rgba(168, 58, 45, 0.11)),
    rgba(18, 19, 16, 0.82);
}

.tree-branch.wide-branch {
  grid-column: 1 / -1;
}

.central-rank-grid {
  gap: 14px;
}

.central-rank-card {
  position: relative;
  overflow: hidden;
}

.central-rank-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(202, 169, 93, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(244, 234, 216, 0.05), transparent 54%);
  opacity: 0.72;
}

.central-rank-card > * {
  position: relative;
}

.central-rank-top {
  grid-template-columns: minmax(140px, 0.24fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 20px;
  padding: 22px;
  border-color: rgba(202, 169, 93, 0.48);
  background:
    linear-gradient(135deg, rgba(202, 169, 93, 0.18), rgba(69, 104, 93, 0.1)),
    rgba(18, 19, 16, 0.86);
}

.central-rank-top h4 {
  display: grid;
  align-content: center;
  min-height: 132px;
  border-right: 1px solid rgba(202, 169, 93, 0.24);
  padding-right: 20px;
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.08;
}

.central-rank-top .node-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.central-rank-top .node-list li {
  min-height: 132px;
  border: 1px solid rgba(202, 169, 93, 0.2);
  border-left: 2px solid rgba(202, 169, 93, 0.58);
  border-radius: 16px 4px 16px 4px;
  padding: 14px 14px 14px 16px;
  background:
    linear-gradient(180deg, rgba(244, 234, 216, 0.055), transparent 60%),
    rgba(11, 13, 12, 0.34);
}

.central-rank-top .node-list strong {
  color: var(--paper);
  font-size: 18px;
}

.central-rank-grid .central-rank-card:not(.central-rank-top) {
  min-height: 236px;
}

.tree-branch h4 {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-title);
  font-size: clamp(23px, 2.6vw, 31px);
  letter-spacing: 0.03em;
  line-height: 1.18;
}

.tree-branch p {
  color: rgba(244, 234, 216, 0.76);
  font-size: 16px;
  line-height: 1.78;
}

.node-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.node-list li {
  display: grid;
  gap: 4px;
  border-left: 2px solid rgba(202, 169, 93, 0.36);
  padding-left: 12px;
}

.node-list strong {
  color: rgba(244, 234, 216, 0.96);
  font-size: 16px;
  line-height: 1.38;
}

.node-list span {
  color: rgba(244, 234, 216, 0.64);
  font-size: 14px;
  line-height: 1.62;
}

.name-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.name-cloud span {
  border: 1px solid rgba(244, 234, 216, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(244, 234, 216, 0.05);
  color: rgba(244, 234, 216, 0.78);
  font-size: 14px;
  line-height: 1.3;
}

.strong-cloud span {
  border-color: rgba(202, 169, 93, 0.44);
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 22px;
}

.compact-cloud span {
  border-radius: 10px 3px 10px 3px;
  padding: 7px 9px;
}

.department-link {
  width: max-content;
  border-bottom: 1px solid rgba(202, 169, 93, 0.7);
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
}

.office-ledger {
  margin-top: clamp(46px, 8vw, 82px);
}

.department-ledger {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.department-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  border: 1px solid rgba(244, 234, 216, 0.14);
  border-radius: 20px 6px 20px 6px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(69, 104, 93, 0.13), rgba(168, 58, 45, 0.05)),
    rgba(18, 19, 16, 0.76);
}

.department-card.major {
  border-color: rgba(202, 169, 93, 0.4);
  background:
    linear-gradient(135deg, rgba(202, 169, 93, 0.14), rgba(69, 104, 93, 0.1)),
    rgba(18, 19, 16, 0.84);
}

.department-heading {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid rgba(244, 234, 216, 0.1);
  padding-bottom: 14px;
}

.department-heading span {
  width: max-content;
  border: 1px solid rgba(202, 169, 93, 0.42);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.department-heading h3 {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-title);
  font-size: clamp(24px, 2.9vw, 34px);
  letter-spacing: 0.02em;
  line-height: 1.18;
  text-wrap: balance;
}

.department-topic-page .article-shell > article {
  max-width: 1220px;
}

.department-topic-page .article-hero {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 24px;
  padding-bottom: clamp(30px, 5vw, 56px);
}

.department-topic-page .article-hero > div {
  max-width: 1040px;
}

.department-topic-page .article-hero h1 {
  max-width: 1040px;
  letter-spacing: 0;
  overflow-wrap: normal;
}

.department-topic-page .article-hero p:last-child {
  max-width: 1040px;
}

.department-hero-art {
  position: relative;
  width: 100%;
}

.department-topic-page .article-hero .department-hero-art {
  min-height: 0;
}

.department-topic-page .article-hero .department-hero-art img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.thunder-hero-art img {
  object-position: center;
}

.department-art-label {
  position: absolute;
  top: 50%;
  left: 60%;
  right: 8%;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 0;
  transform: translateY(-50%);
  text-align: center;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.72);
}

.department-art-label span {
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
}

.department-art-label strong {
  color: var(--paper);
  font-family: var(--font-title);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.department-art-label small {
  color: rgba(244, 234, 216, 0.72);
  font-size: 0.94rem;
  line-height: 1.5;
}

.department-emblem {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  border: 1px solid rgba(244, 234, 216, 0.18);
  border-radius: 30px 8px 30px 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(202, 169, 93, 0.2), transparent 30%),
    linear-gradient(145deg, rgba(11, 13, 12, 0.96), rgba(30, 27, 20, 0.9));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
}

.department-emblem::before,
.department-emblem::after {
  position: absolute;
  border: 1px solid rgba(202, 169, 93, 0.2);
  content: "";
}

.department-emblem::before {
  inset: 48px;
  border-radius: 50%;
}

.department-emblem::after {
  inset: 84px 42px;
  border-radius: 22px 6px 22px 6px;
  transform: rotate(-4deg);
}

.department-emblem-core {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: min(290px, 72%);
  min-height: 188px;
  place-items: center;
  border: 1px solid rgba(202, 169, 93, 0.48);
  border-radius: 24px 6px 24px 6px;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(202, 169, 93, 0.12), transparent 62%),
    rgba(13, 15, 14, 0.86);
}

.department-emblem-core span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.department-emblem-core strong {
  color: var(--paper);
  font-family: var(--font-title);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.04;
}

.department-emblem-core small {
  color: rgba(244, 234, 216, 0.64);
  font-size: 15px;
  line-height: 1.5;
}

.dept-fire {
  background:
    radial-gradient(circle at 55% 35%, rgba(168, 58, 45, 0.34), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(202, 169, 93, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(11, 13, 12, 0.96), rgba(43, 18, 14, 0.9));
}

.dept-plague {
  background:
    radial-gradient(circle at 58% 30%, rgba(69, 104, 93, 0.32), transparent 30%),
    radial-gradient(circle at 22% 78%, rgba(116, 90, 48, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(11, 13, 12, 0.96), rgba(20, 33, 27, 0.9));
}

.dept-dipper {
  background:
    radial-gradient(circle at 50% 35%, rgba(38, 63, 82, 0.36), transparent 32%),
    radial-gradient(circle at 22% 80%, rgba(202, 169, 93, 0.14), transparent 26%),
    linear-gradient(145deg, rgba(11, 13, 12, 0.96), rgba(14, 22, 32, 0.9));
}

.dept-water {
  background:
    radial-gradient(circle at 55% 35%, rgba(38, 63, 82, 0.36), transparent 30%),
    radial-gradient(circle at 22% 78%, rgba(69, 104, 93, 0.2), transparent 28%),
    linear-gradient(145deg, rgba(11, 13, 12, 0.96), rgba(13, 30, 36, 0.9));
}

.dept-wealth {
  background:
    radial-gradient(circle at 55% 35%, rgba(202, 169, 93, 0.32), transparent 30%),
    radial-gradient(circle at 22% 78%, rgba(168, 58, 45, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(11, 13, 12, 0.96), rgba(37, 30, 16, 0.9));
}

.dept-taisui {
  background:
    radial-gradient(circle at 50% 35%, rgba(202, 169, 93, 0.22), transparent 30%),
    repeating-conic-gradient(from 0deg, rgba(202, 169, 93, 0.08) 0 4deg, transparent 4deg 12deg),
    linear-gradient(145deg, rgba(11, 13, 12, 0.96), rgba(25, 26, 19, 0.9));
}

.dept-pox {
  background:
    radial-gradient(circle at 55% 35%, rgba(168, 58, 45, 0.22), transparent 28%),
    radial-gradient(circle at 22% 78%, rgba(69, 104, 93, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(11, 13, 12, 0.96), rgba(29, 22, 24, 0.9));
}

.thunder-page .article-shell > article {
  max-width: 1220px;
}

.thunder-hero {
  grid-template-columns: 1fr;
  align-items: start;
}

.thunder-sigil {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  border-radius: 30px 8px 30px 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(202, 169, 93, 0.28), transparent 27%),
    radial-gradient(circle at 50% 50%, rgba(53, 80, 91, 0.3), transparent 52%),
    linear-gradient(145deg, rgba(11, 13, 12, 0.94), rgba(33, 28, 19, 0.86));
}

.thunder-sigil::before,
.thunder-sigil::after {
  position: absolute;
  inset: 52px;
  border: 1px solid rgba(202, 169, 93, 0.26);
  border-radius: 50%;
  content: "";
}

.thunder-sigil::after {
  inset: 96px;
  border-style: dashed;
  opacity: 0.68;
  transform: rotate(18deg);
}

.sigil-core {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(260px, 68%);
  min-height: 164px;
  place-items: center;
  border: 1px solid rgba(202, 169, 93, 0.5);
  border-radius: 22px 6px 22px 6px;
  padding: 22px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(202, 169, 93, 0.12), rgba(168, 58, 45, 0.1)),
    rgba(13, 15, 14, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.sigil-core span,
.sigil-ring span,
.order-rank > span,
.thunder-profile > span,
.fengshen-lead > span,
.fengshen-list > span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.sigil-core strong {
  color: var(--paper);
  font-family: var(--font-title);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  text-wrap: balance;
}

.sigil-ring {
  position: absolute;
  inset: 34px;
}

.sigil-ring span {
  position: absolute;
  display: grid;
  min-width: 112px;
  min-height: 48px;
  place-items: center;
  border: 1px solid rgba(244, 234, 216, 0.16);
  border-radius: 14px 4px 14px 4px;
  padding: 8px 12px;
  background: rgba(13, 15, 14, 0.8);
  color: rgba(244, 234, 216, 0.86);
  text-align: center;
}

.sigil-ring span:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.sigil-ring span:nth-child(2) {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.sigil-ring span:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.sigil-ring span:nth-child(4) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.thunder-facts strong {
  font-size: clamp(19px, 2vw, 24px);
}

.thunder-order,
.thunder-profile-grid,
.fengshen-board {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.thunder-order {
  grid-template-columns: minmax(0, 1fr);
  counter-reset: thunder-rank;
}

.order-rank,
.thunder-profile,
.fengshen-lead,
.fengshen-list,
.thunder-name-ledger {
  border: 1px solid rgba(244, 234, 216, 0.15);
  border-radius: 20px 6px 20px 6px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(69, 104, 93, 0.12), transparent 62%),
    rgba(18, 19, 16, 0.72);
}

.order-rank {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.order-rank::before {
  content: none;
}

.rank-prime {
  border-color: rgba(202, 169, 93, 0.42);
  background:
    linear-gradient(135deg, rgba(202, 169, 93, 0.16), rgba(168, 58, 45, 0.08)),
    rgba(18, 19, 16, 0.82);
}

.order-rank h3,
.thunder-profile h3,
.fengshen-lead h3,
.thunder-name-ledger h3 {
  margin: 0 0 4px;
  color: var(--paper);
  font-family: var(--font-title);
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.2;
}

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

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

.thunder-profile.major {
  grid-column: 1 / -1;
  border-color: rgba(202, 169, 93, 0.42);
  background:
    linear-gradient(135deg, rgba(202, 169, 93, 0.14), rgba(69, 104, 93, 0.1)),
    rgba(18, 19, 16, 0.84);
}

.thunder-name-ledger {
  margin-top: 14px;
}

.fengshen-board {
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
}

.fengshen-list p {
  margin-top: 8px;
}

.source-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  border-left: 2px solid rgba(202, 169, 93, 0.48);
  padding-left: 14px;
  color: rgba(244, 234, 216, 0.76);
}

.next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
}

.next-links a {
  border: 1px solid rgba(202, 169, 93, 0.55);
  border-radius: 12px 4px 12px 4px;
  padding: 10px 14px;
  color: var(--paper);
  font-weight: 800;
}

.heaven-database-page .article-shell > article,
.heaven-database-page .article-shell > .heaven-detail-page-card {
  width: min(1360px, calc(100% - 44px));
}

.heaven-database-hero {
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.58fr);
  align-items: center;
}

.source-layer-notice,
.variant-note-box {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  border: 1px solid rgba(202, 169, 93, 0.24);
  border-radius: 18px 6px 18px 6px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(202, 169, 93, 0.1), rgba(69, 104, 93, 0.08)),
    rgba(13, 15, 14, 0.62);
}

.source-layer-notice strong,
.variant-note-box strong {
  color: var(--gold);
  font-size: 15px;
}

.source-layer-notice span,
.variant-note-box p {
  margin: 0;
  color: rgba(244, 234, 216, 0.72);
  line-height: 1.72;
}

.heaven-stage-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}

.heaven-stage-summary article {
  display: grid;
  min-height: 110px;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(244, 234, 216, 0.15);
  border-radius: 18px 6px 18px 6px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(69, 104, 93, 0.12), rgba(168, 58, 45, 0.05)),
    rgba(18, 19, 16, 0.74);
}

.heaven-stage-summary strong {
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 2.35rem;
  line-height: 1;
}

.heaven-stage-summary span {
  color: rgba(244, 234, 216, 0.66);
  font-weight: 800;
}

.heaven-path-section,
.heaven-route-board {
  margin-top: clamp(46px, 7vw, 76px);
}

.heaven-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.heaven-section-head h2 {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 2.35rem;
  line-height: 1.18;
  text-shadow: var(--title-shadow);
}

.heaven-section-head > p {
  max-width: 560px;
  margin: 0;
  color: rgba(244, 234, 216, 0.68);
}

.heaven-path-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.36fr);
  gap: 16px;
  align-items: start;
}

.heaven-path-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.heaven-path-column,
.heaven-current-panel,
.heaven-route-grid a,
.heaven-detail-page-card .heaven-detail-sections > section,
.heaven-detail-page-card .variant-note-box {
  border: 1px solid rgba(244, 234, 216, 0.14);
  border-radius: 18px 6px 18px 6px;
  background:
    linear-gradient(145deg, rgba(69, 104, 93, 0.1), transparent 60%),
    rgba(18, 19, 16, 0.74);
}

.heaven-path-column {
  min-width: 0;
  overflow: hidden;
}

.heaven-path-column h3 {
  margin: 0;
  border-bottom: 1px solid rgba(244, 234, 216, 0.1);
  padding: 14px 14px 12px;
  color: var(--gold);
  font-size: 0.92rem;
}

.heaven-node-list {
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
  padding: 10px;
}

.heaven-node-button {
  appearance: none;
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 82px;
  border: 1px solid rgba(244, 234, 216, 0.1);
  border-radius: 14px 4px 14px 4px;
  padding: 12px;
  background: rgba(244, 234, 216, 0.045);
  color: var(--paper);
  cursor: pointer;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.heaven-node-button:hover,
.heaven-node-button:focus-visible,
.heaven-node-button.is-active {
  border-color: rgba(202, 169, 93, 0.52);
  background:
    linear-gradient(135deg, rgba(202, 169, 93, 0.12), rgba(168, 58, 45, 0.06)),
    rgba(244, 234, 216, 0.05);
  outline: 0;
}

.heaven-node-button:hover,
.heaven-node-button:focus-visible {
  transform: translateY(-1px);
}

.heaven-node-button span {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.24;
}

.heaven-node-button small {
  color: rgba(244, 234, 216, 0.6);
  font-size: 0.82rem;
  line-height: 1.5;
}

.heaven-current-panel {
  position: sticky;
  top: 24px;
  min-width: 0;
  padding: 16px;
}

.heaven-detail-card {
  display: grid;
  gap: 16px;
}

.heaven-detail-card h2 {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 2rem;
  line-height: 1.18;
  text-wrap: balance;
}

.heaven-detail-card h3,
.heaven-detail-sections h2 {
  margin: 0 0 10px;
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 1.45rem;
  line-height: 1.25;
}

.heaven-detail-card p,
.heaven-detail-sections p {
  margin: 0;
  color: rgba(244, 234, 216, 0.7);
}

.source-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  color: rgba(244, 234, 216, 0.58);
  font-size: 0.9rem;
}

.article-status-line > span:first-child {
  color: rgba(202, 169, 93, 0.86);
  font-weight: 800;
}

.source-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 30px;
  border: 1px solid rgba(202, 169, 93, 0.32);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(202, 169, 93, 0.09);
  color: rgba(244, 234, 216, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.status-pill {
  border-color: rgba(69, 104, 93, 0.62);
  background: rgba(69, 104, 93, 0.2);
}

.heaven-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.heaven-stat-grid div {
  border: 1px solid rgba(244, 234, 216, 0.12);
  border-radius: 12px 4px 12px 4px;
  padding: 10px;
  background: rgba(244, 234, 216, 0.04);
}

.heaven-stat-grid dt {
  color: rgba(244, 234, 216, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
}

.heaven-stat-grid dd {
  margin: 2px 0 0;
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 1.65rem;
  line-height: 1;
}

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

.heaven-route-grid a {
  display: grid;
  min-height: 150px;
  align-content: end;
  gap: 10px;
  padding: 18px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.heaven-route-grid a:hover,
.heaven-route-grid a:focus-visible {
  border-color: rgba(202, 169, 93, 0.52);
  background:
    linear-gradient(145deg, rgba(202, 169, 93, 0.12), rgba(69, 104, 93, 0.1)),
    rgba(18, 19, 16, 0.82);
  outline: 0;
  transform: translateY(-1px);
}

.heaven-route-grid strong {
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 1.45rem;
  line-height: 1.22;
}

.heaven-route-grid span {
  color: rgba(244, 234, 216, 0.64);
  line-height: 1.62;
}

.heaven-detail-page-card {
  display: grid;
  gap: 22px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 92px) 0;
}

.heaven-data-hero {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.heaven-data-hero h1 {
  max-width: 820px;
}

.heaven-data-hero p {
  max-width: 760px;
}

.heaven-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(244, 234, 216, 0.12);
  border-radius: 14px 4px 14px 4px;
  padding: 12px 14px;
  background: rgba(244, 234, 216, 0.04);
  color: rgba(244, 234, 216, 0.62);
  font-size: 0.9rem;
}

.heaven-breadcrumb a {
  color: var(--gold);
  font-weight: 800;
}

.heaven-breadcrumb span {
  color: rgba(244, 234, 216, 0.35);
}

.heaven-detail-sections {
  display: block;
  column-count: 2;
  column-gap: 14px;
}

.heaven-detail-page-card .heaven-detail-sections > section,
.heaven-detail-page-card .variant-note-box {
  display: block;
  break-inside: avoid;
  margin: 0 0 14px;
  padding: 18px;
}

.heaven-link-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.heaven-link-list li {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(244, 234, 216, 0.1);
  border-radius: 12px 4px 12px 4px;
  padding: 12px;
  background: rgba(244, 234, 216, 0.035);
}

.heaven-link-list a,
.heaven-info-list a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(202, 169, 93, 0.42);
  text-underline-offset: 5px;
}

.heaven-link-list span {
  color: rgba(244, 234, 216, 0.62);
  font-size: 0.92rem;
  line-height: 1.58;
}

.heaven-info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.heaven-info-list div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid rgba(244, 234, 216, 0.08);
  padding-bottom: 10px;
}

.heaven-info-list dt {
  color: var(--gold);
  font-weight: 800;
}

.heaven-info-list dd {
  margin: 0;
  color: rgba(244, 234, 216, 0.74);
}

.heaven-article-body {
  grid-column: 1 / -1;
  column-span: all;
  width: min(100%, 980px);
  margin-right: auto !important;
  margin-left: auto !important;
}

.heaven-article-figure {
  margin-bottom: 24px;
}

.heaven-article-body .article-toc {
  margin: 0 0 22px;
  border-top: 1px solid rgba(202, 169, 93, 0.34);
  border-bottom: 1px solid rgba(244, 234, 216, 0.1);
  padding: 16px 0;
}

.heaven-article-body .article-toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 1.2rem;
}

.heaven-article-body .article-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding-left: 22px;
}

.heaven-article-body .article-toc li {
  color: rgba(202, 169, 93, 0.82);
  line-height: 1.55;
}

.heaven-article-body .article-toc a {
  color: rgba(244, 234, 216, 0.82);
  text-decoration: none;
}

.heaven-article-body .article-toc a:hover,
.heaven-article-body .article-toc a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.heaven-article-section {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(244, 234, 216, 0.1);
  padding-top: 16px;
}

.heaven-article-section + .heaven-article-section {
  margin-top: 18px;
}

.heaven-article-section h3 {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 1.35rem;
  line-height: 1.25;
}

.heaven-article-section p {
  max-width: none;
  line-height: 1.88;
}

.heaven-empty {
  margin: 0;
  color: rgba(244, 234, 216, 0.58);
}

.underworld-database-page .seal {
  border-color: rgba(120, 146, 128, 0.6);
  background: rgba(69, 104, 93, 0.22);
}

.underworld-database-hero {
  align-items: stretch;
}

.underworld-hero-figure {
  min-height: clamp(280px, 34vw, 440px);
}

.underworld-hero-figure img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.underworld-stage-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.underworld-stage-summary article {
  min-width: 0;
}

.underworld-path-explorer {
  grid-template-columns: minmax(0, 1.68fr) minmax(300px, 0.62fr);
}

.underworld-path-columns {
  grid-template-columns: repeat(5, minmax(168px, 1fr));
  overflow-x: auto;
  scrollbar-width: thin;
}

.underworld-path-columns .heaven-path-column {
  min-width: 168px;
}

.underworld-path-columns .heaven-node-list {
  max-height: 610px;
}

.underworld-detail-card .underworld-heaven-box,
.underworld-heaven-box {
  border-color: rgba(120, 146, 128, 0.35);
  background:
    linear-gradient(135deg, rgba(69, 104, 93, 0.16), rgba(202, 169, 93, 0.06)),
    rgba(244, 234, 216, 0.035);
}

.underworld-heaven-box .heaven-link-list li {
  background: rgba(8, 13, 11, 0.22);
}

.underworld-route-board .heaven-route-grid a:hover,
.underworld-route-board .heaven-route-grid a:focus-visible {
  background:
    linear-gradient(145deg, rgba(69, 104, 93, 0.16), rgba(202, 169, 93, 0.08)),
    rgba(18, 19, 16, 0.84);
}

.shanhai-database-page .seal {
  border-color: rgba(91, 124, 150, 0.66);
  background: rgba(38, 63, 82, 0.28);
}

.shanhai-database-hero {
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.72fr);
  align-items: center;
}

.shanhai-database-hero .shanhai-hero-figure {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.shanhai-database-hero .shanhai-hero-figure img {
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.shanhai-stage-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.shanhai-stage-summary article {
  min-width: 0;
}

.shanhai-path-explorer {
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.62fr);
}

.shanhai-path-columns {
  grid-template-columns: repeat(5, minmax(172px, 1fr));
  overflow-x: auto;
  scrollbar-width: thin;
}

.shanhai-path-columns .heaven-path-column {
  min-width: 172px;
}

.shanhai-path-columns .heaven-node-list {
  max-height: 640px;
}

.shanhai-detail-card .shanhai-boundary-box,
.shanhai-boundary-box {
  border-color: rgba(91, 124, 150, 0.36);
  background:
    linear-gradient(135deg, rgba(38, 63, 82, 0.18), rgba(202, 169, 93, 0.05)),
    rgba(244, 234, 216, 0.035);
}

.shanhai-detail-card .shanhai-cross-box,
.shanhai-cross-box {
  border-color: rgba(202, 169, 93, 0.32);
  background:
    linear-gradient(135deg, rgba(202, 169, 93, 0.08), rgba(69, 104, 93, 0.1)),
    rgba(13, 15, 14, 0.42);
}

.shanhai-source-status {
  margin-top: 16px;
}

.source-status-pill {
  border-color: rgba(91, 124, 150, 0.45);
  color: rgba(244, 234, 216, 0.82);
  background: rgba(38, 63, 82, 0.24);
}

.shanhai-entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.shanhai-entity-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid rgba(244, 234, 216, 0.13);
  border-radius: 12px;
  background: rgba(14, 17, 16, 0.66);
}

.shanhai-entity-card > span {
  width: fit-content;
  padding: 2px 8px;
  border: 1px solid rgba(91, 124, 150, 0.34);
  border-radius: 999px;
  color: rgba(244, 234, 216, 0.7);
  font-size: 0.78rem;
}

.shanhai-entity-card h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.35rem;
  line-height: 1.25;
}

.shanhai-entity-card p {
  margin: 0;
  color: var(--paper-muted);
}

.shanhai-entity-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.shanhai-entity-card small {
  color: var(--paper-low);
}

.shanhai-route-board .heaven-route-grid a:hover,
.shanhai-route-board .heaven-route-grid a:focus-visible {
  background:
    linear-gradient(145deg, rgba(38, 63, 82, 0.18), rgba(202, 169, 93, 0.07)),
    rgba(18, 19, 16, 0.84);
}

.shanhai-notice-grid,
.shanhai-card-grid,
.shanhai-myth-map,
.shanhai-cross-list,
.shanhai-route-list {
  display: grid;
  gap: 14px;
}

.shanhai-notice-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: clamp(28px, 4vw, 44px);
}

.shanhai-notice-grid .variant-note-box {
  margin: 0;
}

.shanhai-home-section {
  margin-top: clamp(32px, 5vw, 62px);
}

.shanhai-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.shanhai-home-card,
.shanhai-myth-card,
.shanhai-cross-item,
.shanhai-route-list a {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(244, 234, 216, 0.13);
  border-radius: 8px;
  padding: 16px;
  background: rgba(14, 17, 16, 0.62);
  color: var(--paper);
  text-decoration: none;
}

.shanhai-home-card > span,
.shanhai-myth-card > span,
.shanhai-cross-item > span {
  width: fit-content;
  border: 1px solid rgba(91, 124, 150, 0.34);
  border-radius: 999px;
  padding: 2px 8px;
  color: rgba(244, 234, 216, 0.72);
  font-size: 0.78rem;
}

.shanhai-home-card h3,
.shanhai-myth-card h3,
.shanhai-cross-item h3,
.shanhai-route-list strong {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.28rem;
  line-height: 1.28;
}

.shanhai-myth-card h3 a,
.shanhai-cross-item h3 a {
  color: inherit;
  text-decoration: none;
}

.shanhai-myth-card h3 a:hover,
.shanhai-myth-card h3 a:focus-visible,
.shanhai-cross-item h3 a:hover,
.shanhai-cross-item h3 a:focus-visible,
.shanhai-route-list a:hover,
.shanhai-route-list a:focus-visible {
  color: var(--gold);
}

.shanhai-home-card p,
.shanhai-myth-card p,
.shanhai-cross-item p,
.shanhai-route-list span {
  margin: 0;
  color: var(--paper-muted);
  line-height: 1.75;
}

.shanhai-home-card dl,
.shanhai-myth-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.shanhai-myth-card dl {
  grid-template-columns: 1fr;
}

.shanhai-home-card dl div,
.shanhai-myth-card dl div {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(244, 234, 216, 0.1);
  border-radius: 8px;
  padding: 8px;
  background: rgba(244, 234, 216, 0.035);
}

.shanhai-home-card dt,
.shanhai-myth-card dt {
  color: var(--paper-low);
  font-size: 0.78rem;
}

.shanhai-home-card dd,
.shanhai-myth-card dd {
  margin: 0;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.shanhai-category-grid .name-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(202, 169, 93, 0.24);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--paper);
  text-decoration: none;
  background: rgba(202, 169, 93, 0.07);
}

.shanhai-category-grid .name-cloud a:hover,
.shanhai-category-grid .name-cloud a:focus-visible {
  border-color: rgba(202, 169, 93, 0.56);
  color: var(--gold);
}

.shanhai-myth-map {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.shanhai-cross-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.shanhai-route-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.heaven-catalog-tools {
  display: grid;
  gap: 16px;
  margin-top: clamp(32px, 5vw, 58px);
}

.heaven-catalog-search {
  display: grid;
  gap: 8px;
  max-width: 620px;
}

.heaven-catalog-search label {
  color: var(--gold);
  font-weight: 800;
}

.heaven-catalog-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(244, 234, 216, 0.18);
  border-radius: 14px 4px 14px 4px;
  padding: 0 14px;
  background: rgba(244, 234, 216, 0.06);
  color: var(--paper);
  outline: 0;
}

.heaven-catalog-search input:focus {
  border-color: rgba(202, 169, 93, 0.65);
}

.heaven-catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.heaven-catalog-tabs button {
  appearance: none;
  min-height: 38px;
  border: 1px solid rgba(244, 234, 216, 0.15);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(244, 234, 216, 0.04);
  color: rgba(244, 234, 216, 0.72);
  cursor: pointer;
  font-weight: 800;
}

.heaven-catalog-tabs button:hover,
.heaven-catalog-tabs button:focus-visible,
.heaven-catalog-tabs button.is-active {
  border-color: rgba(202, 169, 93, 0.58);
  background: rgba(202, 169, 93, 0.12);
  color: var(--paper);
  outline: 0;
}

.heaven-catalog-count {
  color: rgba(244, 234, 216, 0.62);
  font-weight: 800;
}

.heaven-catalog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.heaven-catalog-item {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 156px;
  border: 1px solid rgba(244, 234, 216, 0.13);
  border-radius: 16px 5px 16px 5px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(69, 104, 93, 0.1), transparent 64%),
    rgba(18, 19, 16, 0.72);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.heaven-catalog-item:hover,
.heaven-catalog-item:focus-visible {
  border-color: rgba(202, 169, 93, 0.5);
  background:
    linear-gradient(145deg, rgba(202, 169, 93, 0.12), rgba(69, 104, 93, 0.1)),
    rgba(18, 19, 16, 0.82);
  outline: 0;
  transform: translateY(-1px);
}

.heaven-catalog-item span {
  width: max-content;
  border: 1px solid rgba(202, 169, 93, 0.28);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.heaven-catalog-item strong {
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 1.35rem;
  line-height: 1.22;
}

.heaven-catalog-item small {
  color: rgba(244, 234, 216, 0.52);
  font-weight: 800;
  line-height: 1.4;
}

.heaven-catalog-item p {
  margin: 0;
  color: rgba(244, 234, 216, 0.66);
  font-size: 0.92rem;
  line-height: 1.58;
}

.heaven-health-board {
  display: grid;
  gap: 18px;
  margin-top: clamp(32px, 5vw, 58px);
}

.heaven-health-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.heaven-health-summary article,
.heaven-health-section,
.heaven-health-samples > article {
  border: 1px solid rgba(244, 234, 216, 0.14);
  border-radius: 18px 6px 18px 6px;
  background:
    linear-gradient(145deg, rgba(69, 104, 93, 0.1), transparent 62%),
    rgba(18, 19, 16, 0.72);
}

.heaven-health-summary article {
  display: grid;
  gap: 8px;
  min-height: 168px;
  align-content: start;
  padding: 16px;
}

.heaven-health-summary article.is-good {
  border-color: rgba(69, 104, 93, 0.5);
}

.heaven-health-summary article.is-warn {
  border-color: rgba(168, 58, 45, 0.58);
}

.heaven-health-summary span {
  width: max-content;
  border: 1px solid rgba(202, 169, 93, 0.28);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.heaven-health-summary strong,
.heaven-health-section h2,
.heaven-health-samples h3 {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-title);
  line-height: 1.22;
}

.heaven-health-summary strong {
  font-size: 1.35rem;
}

.heaven-health-summary em {
  color: var(--paper);
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-style: normal;
  line-height: 1;
}

.heaven-health-summary p,
.heaven-health-section p {
  margin: 0;
  color: rgba(244, 234, 216, 0.66);
}

.heaven-health-section {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.heaven-health-section h2 {
  font-size: 1.55rem;
}

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

.heaven-health-samples > article {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.heaven-health-samples h3 {
  font-size: 1.3rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(22px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--paper-low);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 1080px) {
  :root {
    --rail: 0px;
  }

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

  .site-rail {
    position: sticky;
    inset: 0 0 auto 0;
    width: 100%;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    align-items: center;
    min-height: 72px;
    padding: 12px 104px 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-brand {
    display: flex;
    justify-items: start;
    text-align: left;
  }

  .brand-copy {
    writing-mode: horizontal-tb;
  }

  .rail-nav {
    flex-direction: row;
    justify-content: flex-end;
    overflow-x: auto;
    min-width: 0;
  }

  .rail-nav > a,
  .rail-root {
    min-height: 44px;
    white-space: nowrap;
    padding: 7px 12px;
  }

  .rail-branch {
    position: static;
    width: auto;
  }

  .rail-flyout {
    top: 72px;
    right: 16px;
    left: 16px;
    width: auto;
    min-height: 0;
    max-height: min(70dvh, 560px);
    overflow: auto;
    padding: 22px;
    border: 1px solid rgba(244, 234, 216, 0.14);
    border-radius: 18px 6px 18px 6px;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.48);
    transform: translateY(-8px);
  }

  .rail-branch:hover .rail-flyout,
  .rail-branch:focus-within .rail-flyout,
  .rail-branch.is-open .rail-flyout {
    transform: translateY(0);
  }

  .rail-flyout-head {
    margin-bottom: 18px;
    padding-bottom: 16px;
  }

  .rail-flyout-head span {
    font-size: clamp(30px, 7vw, 44px);
  }

  .rail-step-tree {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 360px;
  }

  .rail-step-column {
    padding: 14px;
  }

  .rail-step-item,
  .rail-step-link,
  .rail-step-leaf {
    font-size: 17px;
  }

  main,
  main.article-shell,
  .site-footer {
    margin-left: 0;
  }

  .hero-title-block {
    width: min(670px, calc(100% - 380px));
  }

  .realm-dial {
    width: 210px;
  }

  .heaven-path-explorer {
    grid-template-columns: 1fr;
  }

  .heaven-current-panel {
    position: static;
  }

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

@media (max-width: 840px) {
  .portal-hero {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: clamp(150px, 20vh, 190px) 18px 28px;
  }

  .hero-title-block {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    width: 100%;
  }

  .hero-title-block h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .oracle-panel {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: clamp(42px, 7vh, 64px);
  }

  .realm-dial {
    display: none;
  }

  .path-section,
  .scope-section,
  .atlas-section,
  .method-ledger {
    grid-template-columns: 1fr;
  }

  .scope-grid,
  .ledger-grid,
  .dossier-drawer {
    grid-template-columns: 1fr;
  }

  .scope-lead {
    position: static;
  }

  .article-hero,
  .split-hero,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .heaven-article-body .article-toc ol {
    grid-template-columns: 1fr;
  }

  .heaven-tree-page .article-layout,
  .heaven-tree-page .article-hero,
  .tree-level {
    grid-template-columns: 1fr;
  }

  .heaven-tree-page .article-hero .heaven-hero-figure {
    min-height: 0;
    height: clamp(220px, 58vw, 280px);
  }

  .tree-branch-grid,
  .department-ledger,
  .thunder-grid,
  .thunder-hero,
  .department-topic-page .article-hero,
  .thunder-function-grid,
  .thunder-profile-grid,
  .fengshen-board {
    grid-template-columns: 1fr;
  }

  .department-emblem {
    min-height: 340px;
  }

  .heaven-database-hero,
  .heaven-detail-sections {
    grid-template-columns: 1fr;
  }

  .heaven-detail-sections {
    column-count: 1;
  }

  .heaven-health-summary,
  .heaven-health-samples {
    grid-template-columns: 1fr;
  }

  .heaven-section-head {
    display: grid;
  }

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

  .thunder-sigil {
    min-height: 340px;
  }

  .order-rank {
    grid-template-columns: 1fr;
  }

  .central-rank-top {
    grid-template-columns: 1fr;
  }

  .central-rank-top h4 {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(202, 169, 93, 0.24);
    padding-right: 0;
    padding-bottom: 12px;
  }

  .central-rank-top .node-list {
    grid-template-columns: 1fr;
  }

  .central-rank-top .node-list li,
  .central-rank-grid .central-rank-card:not(.central-rank-top) {
    min-height: 0;
  }

  .article-toc {
    position: static;
    grid-template-columns: 1fr;
  }

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

  .path-board {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .path-main {
    grid-row: auto;
    min-height: 300px;
  }

  .atlas-media {
    border-radius: 24px 8px 24px 8px;
  }

  .map-pin {
    min-width: auto;
    padding: 7px 9px;
  }

  .map-pin strong {
    font-size: 17px;
  }

  .pin-heaven {
    top: 8%;
    left: 42%;
  }

  .pin-ocean {
    top: 42%;
    right: 5%;
  }

  .pin-underworld {
    left: 38%;
    bottom: 8%;
  }

  .river-panel,
  .river-panel:nth-child(2) {
    grid-template-columns: 1fr;
  }

  .river-panel:nth-child(2) img {
    order: 0;
  }

  .river-panel:nth-child(2) > .optimized-picture {
    order: 0;
  }

  .river-panel img {
    min-height: 260px;
  }

  .ledger-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-rail {
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr);
    padding-right: 88px;
  }

  .seal {
    width: 42px;
    height: 42px;
  }

  .brand-copy {
    display: none;
  }

  .rail-brand > span {
    display: none;
  }

  .rail-nav {
    gap: 6px;
    justify-content: flex-start;
  }

  .rail-nav > a,
  .rail-root {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .rail-flyout {
    top: 68px;
    right: 10px;
    left: 10px;
    max-height: 74dvh;
    padding: 18px;
  }

  .rail-flyout-head {
    display: grid;
    gap: 8px;
  }

  .rail-flyout-head a {
    margin-top: 0;
  }

  .rail-step-tree {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .rail-step-art {
    width: 100%;
    opacity: 0.12;
    mask-image: linear-gradient(180deg, transparent 0%, black 42%, transparent 100%);
  }

  .rail-step-column {
    border-top: 1px solid rgba(244, 234, 216, 0.1);
    border-left: 0;
  }

  .rail-step-column:first-child {
    border-top: 0;
  }

  .rail-step-item,
  .rail-step-link,
  .rail-step-leaf {
    font-size: 16px;
  }

  .portal-hero {
    min-height: 100dvh;
  }

  .hero-title-block {
    top: auto;
    padding-left: 14px;
  }

  .hero-title-block p:last-child {
    font-size: 15px;
  }

  .oracle-panel {
    padding: 14px;
  }

  .oracle-search div {
    grid-template-columns: 1fr;
  }

  .oracle-search button {
    min-height: 44px;
  }

  .path-section,
  .scope-section,
  .atlas-section,
  .image-river,
  .dossier-section,
  .method-ledger {
    width: min(100% - 28px, 1240px);
    padding: 58px 0;
  }

  .section-copy h2,
  .scope-lead h2,
  .atlas-note h2,
  .river-panel h2,
  .dossier-lead h2,
  .ledger-title h2 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .dossier-drawer {
    grid-auto-columns: initial;
    grid-auto-flow: row;
  }

  .scope-grid,
  .taxonomy-table,
  .quick-facts,
  .article-toc {
    grid-template-columns: 1fr;
  }

  .article-shell > article {
    width: min(1180px, calc(100% - 28px));
    padding: 44px 0;
  }

  .heaven-tree-page .article-shell > article {
    width: min(1280px, calc(100% - 28px));
  }

  .article-hero h1 {
    font-size: clamp(36px, 10.5vw, 54px);
  }

  .tree-root,
  .tree-level,
  .department-card,
  .tree-branch,
  .department-emblem-core,
  .order-rank,
  .thunder-profile,
  .fengshen-lead,
  .fengshen-list,
  .thunder-name-ledger {
    padding: 14px;
  }

  .thunder-sigil {
    min-height: 300px;
  }

  .department-emblem {
    min-height: 300px;
  }

  .department-art-label {
    left: 56%;
    right: 7%;
    gap: 6px;
  }

  .department-art-label strong {
    font-size: clamp(28px, 9vw, 42px);
  }

  .department-art-label small {
    font-size: 0.82rem;
  }

  .department-emblem::before {
    inset: 32px;
  }

  .department-emblem::after {
    inset: 62px 24px;
  }

  .department-emblem-core {
    width: min(230px, 70%);
    min-height: 150px;
  }

  .sigil-ring {
    inset: 22px;
  }

  .sigil-ring span {
    min-width: 74px;
    min-height: 40px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .sigil-core {
    width: min(180px, 50%);
    min-height: 124px;
    padding: 16px;
  }

  .sigil-core strong {
    font-size: clamp(22px, 7vw, 28px);
  }

  .tree-level-title {
    border-left: 0;
    border-top: 2px solid rgba(202, 169, 93, 0.48);
    padding: 12px 0 0;
  }

  .compact-cloud span {
    font-size: 13px;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.86;
  }

  .source-ledger-note span {
    display: block;
    margin: 8px 0 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .heaven-database-page .article-shell > article,
  .heaven-database-page .article-shell > .heaven-detail-page-card {
    width: min(100% - 28px, 1360px);
  }

  .heaven-path-columns,
  .heaven-route-grid,
  .heaven-stage-summary {
    grid-template-columns: 1fr;
  }

  .heaven-node-list {
    max-height: none;
  }

  .heaven-info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 1180px) {
  .underworld-path-explorer,
  .shanhai-path-explorer {
    grid-template-columns: 1fr;
  }

  .underworld-path-columns,
  .shanhai-path-columns {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
  }

  .underworld-stage-summary,
  .shanhai-stage-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .underworld-path-columns,
  .shanhai-path-columns {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
  }

  .underworld-stage-summary,
  .shanhai-stage-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .underworld-path-columns,
  .shanhai-path-columns {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .underworld-path-columns .heaven-path-column,
  .shanhai-path-columns .heaven-path-column {
    min-width: min(82vw, 300px);
    scroll-snap-align: start;
  }

  .underworld-stage-summary,
  .shanhai-stage-summary {
    grid-template-columns: 1fr;
  }
}
