:root {
  color-scheme: dark;
  --bg: #1a0b16;
  --bg-soft: #2d1b22;
  --panel: rgba(92, 26, 66, 0.54);
  --panel-strong: rgba(115, 30, 78, 0.76);
  --line: rgba(255, 105, 180, 0.52);
  --line-hot: rgba(255, 20, 147, 0.72);
  --line-gold: rgba(255, 215, 0, 0.56);
  --text: #fff7fb;
  --muted: #e9bfd6;
  --dim: #b98aa6;
  --pink: #ff1493;
  --pink-soft: #ff69b4;
  --gold: #ffd700;
  --white-hot: #fffaff;
  --glass-highlight: rgba(255, 255, 255, 0.16);
  --shadow: 0 26px 82px rgba(0, 0, 0, 0.48);
  --pink-shadow: 0 0 24px rgba(255, 20, 147, 0.42), 0 0 54px rgba(255, 105, 180, 0.18);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(118deg, rgba(255, 20, 147, 0.12), transparent 27%),
    linear-gradient(252deg, rgba(255, 105, 180, 0.16), transparent 34%),
    linear-gradient(180deg, #1a0b16 0%, #2d1b22 44%, #160813 100%);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(104deg, transparent 0 42px, rgba(255, 20, 147, 0.09) 43px 45px, transparent 46px 120px),
    repeating-linear-gradient(176deg, transparent 0 74px, rgba(255, 215, 0, 0.08) 75px 76px, transparent 77px 156px),
    linear-gradient(90deg, rgba(255, 20, 147, 0.24), transparent 30%, rgba(255, 215, 0, 0.08) 58%, transparent 84%);
  filter: blur(0.2px);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.38;
  background-image:
    linear-gradient(135deg, rgba(255, 215, 0, 0.16) 0 1px, transparent 1px 18px),
    linear-gradient(45deg, rgba(255, 105, 180, 0.1) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 5px);
  background-size: 54px 54px, 54px 54px, 100% 6px;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 84%, transparent);
  pointer-events: none;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--gold);
  color: #1a0b16;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line-gold);
  background:
    linear-gradient(90deg, rgba(255, 20, 147, 0.12), transparent 32%, rgba(255, 215, 0, 0.06)),
    rgba(26, 11, 22, 0.84);
  backdrop-filter: blur(20px) saturate(1.28);
  box-shadow: 0 14px 34px rgba(255, 20, 147, 0.13);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: block;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center;
  background: var(--bg-soft);
  box-shadow: var(--pink-shadow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  text-shadow:
    0 0 7px rgba(255, 250, 255, 0.9),
    0 0 18px rgba(255, 20, 147, 0.92),
    0 0 34px rgba(255, 105, 180, 0.5);
  animation: neon-pulse 3.6s ease-in-out infinite;
}

.brand-sub {
  margin-top: -4px;
  color: var(--dim);
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.nav-download {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 105, 180, 0.025);
  cursor: pointer;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--line-hot);
  color: #fff;
  background: rgba(255, 20, 147, 0.13);
  box-shadow: inset 0 0 18px rgba(255, 20, 147, 0.18), 0 0 20px rgba(255, 105, 180, 0.18);
}

.nav-download {
  border-color: var(--line-gold);
  color: #1a0b16;
  font-weight: 800;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), transparent 42%),
    linear-gradient(135deg, var(--gold), #fff7bf 48%, var(--pink-soft));
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.42), 0 0 36px rgba(255, 20, 147, 0.24);
}

.page-shell {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(90deg, rgba(26, 11, 22, 0.94) 0%, rgba(45, 27, 34, 0.78) 36%, rgba(255, 20, 147, 0.18) 68%, rgba(26, 11, 22, 0.7) 100%),
    linear-gradient(180deg, rgba(255, 20, 147, 0.26), rgba(26, 11, 22, 0.08) 48%, rgba(26, 11, 22, 0.78)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.22) contrast(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, transparent 62%, var(--bg) 100%),
    repeating-linear-gradient(90deg, rgba(255, 215, 0, 0.14) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(255, 20, 147, 0.08) 0 1px, transparent 1px 7px);
  opacity: 0.82;
  pointer-events: none;
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.74fr);
  align-items: end;
  gap: 36px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 10px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  color: var(--gold);
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.14), rgba(255, 20, 147, 0.1));
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08), 0 0 22px rgba(255, 215, 0, 0.18);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.55rem, 7vw, 5.9rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow:
    0 0 8px rgba(255, 250, 255, 0.92),
    0 0 18px rgba(255, 20, 147, 0.96),
    0 0 42px rgba(255, 105, 180, 0.6),
    0 0 74px rgba(255, 20, 147, 0.24);
  animation: neon-pulse 4.2s ease-in-out infinite;
}

.hero-lede,
.page-lede {
  max-width: 720px;
  margin: 20px 0 0;
  color: #ffe3f0;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn,
.text-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  cursor: pointer;
}

.btn {
  border: 1px solid var(--line-hot);
  padding: 10px 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 46%),
    rgba(255, 20, 147, 0.12);
  box-shadow: inset 0 0 18px rgba(255, 105, 180, 0.13);
}

.btn-primary {
  border-color: var(--line-gold);
  color: #1a0b16;
  font-weight: 900;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 44%),
    linear-gradient(135deg, var(--gold) 0%, #fff8c9 44%, var(--pink-soft) 100%);
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.48), 0 0 46px rgba(255, 20, 147, 0.34);
}

.btn:hover,
.btn:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
}

.text-link {
  padding: 6px 0;
  color: var(--gold);
  font-weight: 800;
}

.hero-panel,
.glass-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 20, 147, 0.18), rgba(45, 27, 34, 0.48)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.42);
}

.hero-panel {
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow), var(--pink-shadow);
}

.hero-panel::before,
.card::before,
.article-panel::before,
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.72), rgba(255, 20, 147, 0.72), rgba(255, 255, 255, 0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.72;
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(255, 215, 0, 0.28);
  filter: saturate(1.18) hue-rotate(314deg) contrast(1.05);
  animation: breathe 5.2s ease-in-out infinite;
}

.hero-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 16px 0 0;
}

.hero-panel div {
  min-width: 0;
}

.hero-panel dt,
.meta-list dt,
.stat dt {
  color: var(--dim);
  font-size: 0.82rem;
}

.hero-panel dd,
.meta-list dd,
.stat dd {
  margin: 2px 0 0;
  color: #fff;
  font-weight: 800;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.section + .section {
  border-top: 1px solid rgba(255, 215, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 105, 180, 0.18);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.42fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.section-label {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.28);
}

h2,
.section-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.72rem, 3vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(255, 20, 147, 0.5);
}

h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.16rem;
  line-height: 1.35;
}

p {
  margin: 0;
}

p + p {
  margin-top: 12px;
}

.muted {
  color: var(--muted);
}

.dim {
  color: var(--dim);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

.card {
  min-width: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 20, 147, 0.11), rgba(45, 27, 34, 0.28));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(1.28);
}

.card-body {
  padding: 20px;
}

.card:hover {
  border-color: rgba(255, 215, 0, 0.72);
  box-shadow: 0 24px 72px rgba(255, 20, 147, 0.26), 0 0 26px rgba(255, 105, 180, 0.2);
}

.card:hover::before,
.gallery-item:hover::before {
  opacity: 1;
}

.image-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.12) sepia(0.08) hue-rotate(316deg) contrast(1.04);
}

.image-card .card-body {
  min-height: 154px;
}

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

.meta-list div,
.stat {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 105, 180, 0.38);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), transparent 32%),
    rgba(26, 11, 22, 0.58);
}

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

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline-item {
  position: relative;
  padding: 18px 18px 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255, 20, 147, 0.1), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 0 20px rgba(255, 105, 180, 0.08);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pink), var(--gold));
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.pill-list li {
  padding: 7px 10px;
  border: 1px solid rgba(255, 105, 180, 0.52);
  border-radius: var(--radius);
  color: #ffe9f4;
  background: rgba(255, 20, 147, 0.13);
  box-shadow: inset 0 0 14px rgba(255, 105, 180, 0.1);
}

.index-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.index-card a {
  margin-top: auto;
  color: var(--gold);
  font-weight: 800;
}

.guide-list {
  display: grid;
  gap: 12px;
  counter-reset: guide;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-list li {
  position: relative;
  padding: 16px 16px 16px 58px;
  border: 1px solid rgba(255, 105, 180, 0.42);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.11), rgba(255, 255, 255, 0.045));
}

.guide-list li::before {
  counter-increment: guide;
  content: counter(guide);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1a0b16;
  font-weight: 900;
  background: var(--gold);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.11), rgba(255, 255, 255, 0.045));
  overflow: hidden;
  box-shadow: inset 0 0 18px rgba(255, 105, 180, 0.08);
}

.faq-list summary {
  cursor: pointer;
  padding: 16px 18px;
  color: #fff;
  font-weight: 800;
}

.faq-list details[open] summary {
  border-bottom: 1px solid rgba(255, 105, 180, 0.18);
}

.faq-list details p {
  padding: 0 18px 18px;
  color: var(--muted);
}

.link-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-strip a {
  padding: 8px 10px;
  border: 1px solid rgba(255, 105, 180, 0.44);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 20, 147, 0.09);
}

.link-strip a:hover,
.link-strip a:focus-visible {
  color: #fff;
  border-color: var(--line-gold);
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--line-gold);
  background:
    linear-gradient(90deg, rgba(255, 20, 147, 0.12), transparent 36%, rgba(255, 215, 0, 0.08)),
    rgba(15, 5, 12, 0.84);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  color: var(--dim);
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
}

.page-hero {
  position: relative;
  isolation: isolate;
  padding: 92px 0 58px;
  border-bottom: 1px solid rgba(255, 105, 180, 0.2);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(26, 11, 22, 0.94), rgba(45, 27, 34, 0.68), rgba(255, 20, 147, 0.18), rgba(26, 11, 22, 0.86)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.18) contrast(1.04);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}

.page-hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--dim);
  font-size: 0.92rem;
}

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

.article-layout {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}

.article-main {
  display: grid;
  gap: 22px;
}

.article-panel {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 20, 147, 0.11), rgba(45, 27, 34, 0.32));
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px) saturate(1.3);
}

.article-panel h2 {
  margin-bottom: 14px;
}

.side-panel {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 14px;
}

.side-panel .card-body {
  padding: 18px;
}

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

.toc a {
  color: var(--muted);
}

.toc a:hover {
  color: var(--gold);
}

.notice {
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.14), rgba(255, 20, 147, 0.08));
  color: #ffeec1;
}

.gallery-grid {
  columns: 3 240px;
  column-gap: 16px;
}

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 20, 147, 0.1);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.gallery-item img {
  width: 100%;
  cursor: zoom-in;
  filter: saturate(0.92) sepia(0.18) hue-rotate(312deg) contrast(1.02);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.gallery-item img:hover,
.gallery-item img:focus-visible {
  filter: none;
  transform: scale(1.01);
}

.gallery-caption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 20, 147, 0.14), transparent 40%),
    rgba(12, 4, 10, 0.9);
}

.lightbox.is-open {
  display: grid;
}

.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.lightbox img {
  max-height: min(84vh, 860px);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 20, 147, 0.24), transparent 38%),
    linear-gradient(255deg, rgba(255, 215, 0, 0.1), transparent 42%),
    linear-gradient(180deg, #1a0b16, #2d1b22);
}

.error-card {
  width: min(720px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 30%),
    var(--panel);
  box-shadow: var(--shadow), var(--pink-shadow);
}

@keyframes neon-pulse {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }
  47% {
    opacity: 0.95;
    filter: brightness(1.16);
  }
  50% {
    opacity: 0.88;
    filter: brightness(0.96);
  }
  53% {
    opacity: 1;
    filter: brightness(1.2);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.018);
  }
}

.error-code {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: clamp(3rem, 18vw, 8rem);
  line-height: 0.9;
  font-weight: 900;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
      linear-gradient(135deg, rgba(255, 20, 147, 0.18), rgba(26, 11, 22, 0.96)),
      rgba(26, 11, 22, 0.96);
    box-shadow: var(--shadow), var(--pink-shadow);
    backdrop-filter: blur(22px) saturate(1.32);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .nav-download {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 78px;
  }

  .hero-panel {
    max-width: 540px;
  }

  .section-head,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

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

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

@media (max-width: 640px) {
  .nav-wrap,
  .section,
  .footer-inner,
  .article-layout,
  .page-hero-inner,
  .hero-inner {
    width: min(100% - 22px, var(--max));
  }

  .brand-sub {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero::before {
    background-position: 58% center;
  }

  .hero-inner {
    padding: 58px 0 48px;
    gap: 18px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.32rem, 14vw, 3.9rem);
  }

  .section,
  .article-layout {
    padding: 48px 0;
  }

  .page-hero {
    padding: 62px 0 42px;
  }

  .grid-4,
  .grid-5,
  .grid-3,
  .grid-2,
  .stats,
  .meta-list,
  .hero-panel dl {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .card-body,
  .article-panel {
    padding: 18px;
  }

  .hero-actions,
  .section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .text-link {
    width: 100%;
  }
}

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




/* Whitehat data slots: site-native news and download confirmation styles. */
.site-nav a[data-seo-managed="download-link"] { border-color: var(--line-gold); color: #1a0b16; background: linear-gradient(180deg, rgba(255, 255, 255, .65), transparent 42%), linear-gradient(135deg, var(--gold), #fff7bf 48%, var(--pink-soft)); box-shadow: 0 0 22px rgba(255, 215, 0, .42), 0 0 36px rgba(255, 20, 147, .24); }
:where(.wh-news-home, .wh-news-page) { --wh-bg: var(--bg); --wh-text: var(--text); --wh-accent: var(--gold); --wh-panel: var(--panel); --wh-line: var(--line); color: var(--wh-text); }
.wh-news-home { position: relative; }
.wh-news-home .wh-news-grid { align-items: stretch; }
.wh-news-home .wh-news-nav, .wh-news-home .section-actions { margin-top: 24px; }
.wh-news-page { min-width: 0; min-height: 100vh; color: var(--wh-text); }
.wh-news-page .wh-news-shell { position: relative; z-index: 1; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 76px; }
.wh-news-page .wh-news-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 28px; }
.wh-news-page .wh-news-back { color: var(--wh-accent); }
.wh-news-page-heading { margin-bottom: 28px; padding-bottom: 22px; }
.wh-news-page .wh-news-title { margin: 8px 0 0; color: var(--wh-text); font-size: 2rem; line-height: 1.3; letter-spacing: 0; text-shadow: none; overflow-wrap: anywhere; }
.wh-news-page .wh-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.wh-news-card { min-width: 0; overflow-wrap: anywhere; }
.wh-news-date { display: block; margin: 0 0 10px; color: var(--muted); font-size: .86rem; }
.wh-news-summary { margin: 0 0 18px; color: var(--muted); line-height: 1.75; }
.wh-news-link { width: fit-content; }
.wh-news-empty { grid-column: 1 / -1; margin: 0; padding: 14px 18px; border-left: 3px solid var(--wh-accent); background: var(--wh-panel); color: var(--muted); }
.wh-news-page .wh-news-article { margin: 24px 0; overflow-wrap: anywhere; }
.wh-news-page .wh-news-meta { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }
.wh-news-page .wh-news-article .wh-news-title { margin: 8px 0 18px; }
.wh-news-page .wh-news-summary { padding-bottom: 20px; border-bottom: 1px solid var(--wh-line); }
.wh-news-page .wh-news-content { margin: 20px 0 0; color: var(--wh-text); font-size: 1.02rem; line-height: 1.9; overflow-wrap: anywhere; }
.wh-news-page--train .wh-news-page-heading { border-bottom: 2px dashed var(--wh-line); }
.wh-news-page--train .wh-news-title { font-family: var(--mono); }
.wh-news-page--train .wh-news-article { border: 2px solid var(--coal); border-radius: 4px; box-shadow: 6px 6px 0 rgba(55, 65, 81, .18); }
.wh-news-page--train .wh-news-empty { border: 2px dashed var(--wh-line); box-shadow: 4px 4px 0 rgba(55, 65, 81, .12); }
.wh-news-page--rail .wh-news-page-heading { border-bottom: 1px solid var(--warning); box-shadow: inset 0 -3px 0 rgba(255, 0, 85, .16); }
.wh-news-page--rail .wh-news-article { border-left: 3px solid var(--warning); }
.wh-news-page--rail .wh-news-empty { border-left-width: 4px; background: linear-gradient(90deg, rgba(255, 127, 0, .08), transparent 60%), var(--panel); }
.wh-news-page--neon .wh-news-page-heading { border-bottom: 1px solid var(--line); box-shadow: 0 8px 22px -18px var(--mint); }
.wh-news-page--neon .wh-news-article { box-shadow: var(--shadow), 0 0 26px rgba(157, 78, 221, .12); }
.wh-news-page--neon .wh-news-empty { background: linear-gradient(110deg, rgba(157, 78, 221, .12), rgba(255, 0, 127, .06), transparent), var(--panel); }
.wh-news-page--rose .wh-news-page-heading { border-bottom: 1px solid var(--line-gold); box-shadow: 0 8px 24px -20px var(--pink); }
.wh-news-page--rose .wh-news-article { border-color: var(--line-gold); box-shadow: var(--shadow), 0 0 24px rgba(255, 20, 147, .12); }
.wh-news-page--rose .wh-news-empty { background: linear-gradient(100deg, rgba(255, 20, 147, .12), transparent 70%), var(--panel); }
.download-confirm-backdrop { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .7); }
.download-confirm-panel { width: min(440px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); box-shadow: 0 16px 56px rgba(0, 0, 0, .3); }
.download-confirm-panel h2 { margin: 0 0 16px; color: var(--text); font-size: 1.4rem; line-height: 1.5; text-shadow: none; }
.download-confirm-panel p { margin: 0 0 24px; line-height: 1.8; }
.download-confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.download-confirm-actions button { padding: 10px 20px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font: inherit; }
.download-confirm-cancel { background: transparent; color: var(--text); }
.download-confirm-continue { background: var(--gold); color: var(--bg); }
.download-confirm-actions button:focus-visible, :where(.wh-news-home, .wh-news-page) a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (max-width: 760px) { .wh-news-page .wh-news-grid { grid-template-columns: 1fr; } .wh-news-page .wh-news-title { font-size: 1.65rem; } .wh-news-page .wh-news-shell { padding-top: 24px; } }
