:root {
  --ink: #071A16;
  --ink-2: #101614;
  --panel: #0E2B24;
  --amber: #D9A441;
  --orange: #FF6B3D;
  --white: #F4F7F3;
  --mute: #A9B8B2;
  --mint: #DCE7E1;
  --line: #2A4A40;
  --glow: #F2C46D;
  --rail-w: 264px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --pill: 999px;
  --font-display: "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .68, .28, 1);
  --shadow-ticket: 0 22px 48px -30px rgba(0, 0, 0, .95);
  --ticket-notch: #071A16;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-left: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    radial-gradient(90% 46% at 88% -6%, rgba(217, 164, 65, .07), transparent 62%),
    radial-gradient(70% 42% at 4% 104%, rgba(42, 74, 64, .5), transparent 72%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: .01em;
  color: var(--white);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.4vw, 1.16rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 8px;
}

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

ul, ol { margin: 0; padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

strong, b { font-weight: 600; color: var(--white); }

::selection {
  background: rgba(217, 164, 65, .34);
  color: var(--white);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

/* ============ 跳过链接 ============ */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: .62rem 1.1rem;
  border-radius: var(--pill);
  background: var(--amber);
  color: #10110F;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ============ 头部框架 ============ */
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: var(--rail-w);
  padding: 22px 20px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(120% 42% at 50% 0%, rgba(217, 164, 65, .14), transparent 66%),
    linear-gradient(180deg, #103029 0%, #0A211B 46%, #071A16 100%);
}

.rail-progress {
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--amber), var(--orange));
  transform: scaleY(0);
  transform-origin: top center;
  opacity: .85;
  pointer-events: none;
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(217, 164, 65, .5);
  border-radius: var(--r-sm);
  background: linear-gradient(150deg, rgba(217, 164, 65, .24), rgba(217, 164, 65, .04));
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .06em;
}

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

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: .06em;
  line-height: 1.25;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .2em;
  color: var(--mute);
  line-height: 1.5;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid rgba(217, 164, 65, .45);
  border-radius: var(--pill);
  background: rgba(217, 164, 65, .09);
  color: var(--amber);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.nav-toggle:hover { background: rgba(217, 164, 65, .18); }

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 14px;
}
.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease);
}
.site-header[data-open="true"] .nav-toggle__bars span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}
.site-header[data-open="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.header__panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.site-nav {
  flex: 1 1 auto;
  min-height: 0;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  border-radius: 12px;
  color: var(--mute);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .18s var(--ease), background .18s var(--ease);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  transform: translateY(-50%);
  border-radius: 3px;
  background: var(--amber);
  transition: height .22s var(--ease);
}

.nav-num {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: rgba(217, 164, 65, .72);
  transition: color .18s var(--ease);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(244, 247, 243, .05);
}
.nav-link:hover::before { height: 16px; }

.nav-link[aria-current="page"] {
  color: var(--white);
  background: rgba(217, 164, 65, .11);
  font-weight: 600;
}
.nav-link[aria-current="page"]::before { height: 24px; }
.nav-link[aria-current="page"] .nav-num { color: var(--amber); }

.header__cta {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.rail-note {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(42, 74, 64, .7);
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .18em;
  color: rgba(169, 184, 178, .62);
}

.quickbar { display: none; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.btn--solid {
  background: var(--orange);
  color: #100E0B;
  border-color: var(--orange);
  box-shadow: 0 12px 26px -18px rgba(255, 107, 61, .95);
}
.btn--solid:hover { background: #FF855F; border-color: #FF855F; }

.btn--ghost {
  background: rgba(244, 247, 243, .04);
  border-color: var(--line);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: rgba(217, 164, 65, .7);
  color: var(--amber);
  background: rgba(217, 164, 65, .08);
}

.btn--block { width: 100%; }

/* ============ 页脚 ============ */
.site-footer {
  position: relative;
  margin: 64px 24px 24px;
  padding: 34px clamp(20px, 3vw, 44px) 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(217, 164, 65, .07), transparent 62%),
    linear-gradient(178deg, #101614 0%, #0B1311 72%, #0A100E 100%);
  box-shadow: var(--shadow-ticket);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px dashed var(--line);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(217, 164, 65, .45);
  border-radius: var(--r-sm);
  background: rgba(217, 164, 65, .1);
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .06em;
}

.footer__brandtext {
  display: flex;
  flex-direction: column;
}

.footer__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .06em;
  line-height: 1.3;
}

.footer__tag {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .2em;
  color: var(--mute);
}

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

.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(22px, 3vw, 40px);
  padding: 30px 0 26px;
}

.footer__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--amber);
  line-height: 1.4;
}

.footer__list li + li { margin-top: 7px; }

.footer__list a {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  color: var(--mute);
  font-size: .92rem;
  text-decoration: none;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer__list a:hover {
  color: var(--amber);
  border-bottom-color: rgba(217, 164, 65, .6);
}

.footer__list--plain li {
  color: var(--mute);
  font-size: .92rem;
  line-height: 1.7;
}

.footer__key {
  display: block;
  margin-bottom: 1px;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .18em;
  color: rgba(217, 164, 65, .78);
}

.footer__hint {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(42, 74, 64, .8);
  max-width: 36ch;
  font-size: .8rem !important;
  line-height: 1.72;
  color: rgba(169, 184, 178, .74) !important;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: rgba(169, 184, 178, .8);
}
.footer__legal,
.footer__copy { margin: 0; }

/* ============ 通用版式 ============ */
#main-content {
  display: block;
  min-height: 60vh;
}
#main-content:focus { outline: none; }

.container {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

.section {
  padding: clamp(42px, 6vw, 74px) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.eyebrow {
  display: block;
  margin: 0 0 .6em;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--amber);
  text-transform: uppercase;
}

.prose {
  max-width: 68ch;
  color: var(--mute);
  line-height: 1.88;
}
.prose strong { color: var(--white); }

.rule {
  height: 0;
  margin: 30px 0;
  border: 0;
  border-top: 1px dashed var(--line);
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}
.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)); }

/* ============ 票根卡片 / 标签 ============ */
.ticket {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(217, 164, 65, .08), transparent 58%),
    linear-gradient(168deg, rgba(14, 43, 36, .96), rgba(9, 24, 20, .96));
  box-shadow: var(--shadow-ticket);
}
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ticket-notch);
  transform: translateY(-50%);
}
.ticket::before { left: -10px; }
.ticket::after { right: -10px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .72rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(244, 247, 243, .04);
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  line-height: 1.6;
}
.chip--amber {
  border-color: rgba(217, 164, 65, .45);
  background: rgba(217, 164, 65, .1);
  color: var(--amber);
}

/* ============ 面包屑 ============ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--mute);
}
.breadcrumb a {
  color: var(--mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.breadcrumb a:hover {
  color: var(--amber);
  border-bottom-color: rgba(217, 164, 65, .6);
}
.breadcrumb__sep { color: rgba(42, 74, 64, .95); }
.breadcrumb [aria-current="page"] { color: var(--white); }

/* ============ 图片容器基础 ============ */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(135deg, rgba(42, 74, 64, .35) 0 2px, transparent 2px 12px),
    linear-gradient(148deg, #0E2B24, #071A16 62%, #10201B);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--square { aspect-ratio: 1 / 1; }
.media--wide { aspect-ratio: 21 / 9; }

.media__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: .18rem .6rem;
  border-radius: var(--pill);
  background: rgba(7, 26, 22, .78);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  color: var(--mute);
}

/* ============ 渐显 ============ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ============ 平板与手机 ============ */
@media (max-width: 1119px) {
  html { scroll-padding-top: 84px; }

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

  .site-header {
    position: sticky;
    inset: auto;
    top: 0;
    width: auto;
    gap: 0;
    padding: 0;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #0F2C25 0%, #0A1F1A 100%);
  }

  .rail-progress { display: none; }

  .header__bar {
    justify-content: space-between;
    gap: 14px;
    padding: 11px 16px;
  }

  .brand__mark { width: 38px; height: 38px; font-size: .84rem; }
  .brand__name { font-size: 1.06rem; }
  .brand__tag { font-size: .58rem; letter-spacing: .16em; }

  .nav-toggle { display: inline-flex; }

  .header__panel { display: none; }

  .site-header[data-open="true"] .header__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 14px 16px 20px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #0C2620 0%, #081C17 100%);
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .95);
    animation: panelIn .2s var(--ease);
  }

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

  .nav-link {
    padding: 12px 12px 12px 14px;
    font-size: 1rem;
  }

  .header__cta {
    flex-direction: row;
    padding-top: 14px;
  }
  .header__cta .btn { flex: 1 1 0; }

  .rail-note { padding-top: 10px; }

  .quickbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: rgba(10, 25, 21, .97);
  }

  .quickbar__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 7px 4px;
    border-radius: var(--r-sm);
    color: var(--mute);
    font-size: .76rem;
    letter-spacing: .04em;
    text-decoration: none;
    transition: color .18s var(--ease), background .18s var(--ease);
  }
  .quickbar__link:hover { color: var(--white); background: rgba(244, 247, 243, .06); }
  .quickbar__link[aria-current="page"] {
    color: var(--amber);
    background: rgba(217, 164, 65, .12);
  }

  .quickbar__num {
    font-family: var(--font-mono);
    font-size: .6rem;
    letter-spacing: .12em;
    color: rgba(217, 164, 65, .68);
  }

  .site-footer {
    margin: 44px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    padding: 28px 20px 18px;
    border-radius: var(--r-md);
  }

  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    padding: 26px 0 22px;
  }

  .footer__col:last-child { grid-column: 1 / -1; }
}

@media (min-width: 1120px) {
  body { padding-left: var(--rail-w); }
  html { scroll-padding-top: 24px; }
}

@media (max-width: 980px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 32px); }

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

  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .footer__col:last-child { grid-column: auto; }

  .footer__top { align-items: flex-start; }
  .footer__actions { width: 100%; }
  .footer__actions .btn { flex: 1 1 0; }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ticket::before,
  .ticket::after { display: none; }
}

@media (max-width: 420px) {
  .nav-list { grid-template-columns: minmax(0, 1fr); }
  .brand__tag { display: none; }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
