@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Josefin+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  --neon: #87ff71;
  --ice: #01cdfe;
  --pink: #ff71ce;
  --ink: #192617;
  --deep: #0d150d;
  --text: #d7efd0;
  --muted: #94b28e;
  --line: rgba(135, 255, 113, 0.22);
  --line2: rgba(1, 205, 254, 0.26);
  --radius: 28px;
  --sans: "Josefin Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Cinzel", "Songti SC", "SimSun", Georgia, serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(1, 205, 254, 0.18), transparent 62%),
    radial-gradient(900px 520px at -12% 108%, rgba(255, 113, 206, 0.14), transparent 60%),
    linear-gradient(180deg, #12200f, var(--ink) 30%, #101c10 100%);
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 3px);
}

img { max-width: 100%; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

@media (min-width: 861px) {
  body { padding-left: 128px; }
}

/* ---------- 左侧竖排导航 ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 128px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 14px 20px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(1, 205, 254, 0.13), rgba(13, 21, 13, 0.95) 46%, rgba(255, 113, 206, 0.12));
  backdrop-filter: blur(8px);
  overflow-y: auto;
  overflow-x: hidden;
}

.mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--neon);
  border-radius: 12px;
  color: var(--neon);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 0 18px -4px rgba(135, 255, 113, 0.9), inset 0 0 14px -6px rgba(135, 255, 113, 0.9);
}

.mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-list li { animation: slide-in 0.5s both; animation-delay: calc(var(--i, 0) * 45ms); }

.nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 8px 8px 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.on {
  color: var(--neon);
  border-left-color: var(--neon);
  background: rgba(135, 255, 113, 0.08);
  text-shadow: 0 0 12px rgba(135, 255, 113, 0.65);
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}

.find {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.find input {
  width: 100%;
  min-height: 40px;
  padding: 6px 9px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: rgba(13, 21, 13, 0.85);
  border: 1px solid var(--line2);
  border-radius: 10px;
}

.find input::placeholder { color: #7f9a7a; }

.find button {
  min-height: 40px;
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: #0d150d;
  background: linear-gradient(90deg, var(--neon), var(--ice));
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.find button:hover { filter: brightness(1.12); }

.find-state {
  margin: 0;
  min-height: 1.2em;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ice);
}

.find-state:not(:empty) {
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(13, 21, 13, 0.94);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 20vh 6vw 13vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(168deg, #2c1031 0%, #1b2430 44%, #132314 100%);
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) hue-rotate(-8deg) contrast(1.03);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(25, 38, 23, 0.5), rgba(25, 38, 23, 0.88) 62%, var(--ink) 100%),
    linear-gradient(118deg, rgba(135, 255, 113, 0.2), transparent 46%, rgba(1, 205, 254, 0.24));
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.66;
  transform: perspective(320px) rotateX(58deg);
  transform-origin: bottom center;
  background-image:
    repeating-linear-gradient(90deg, rgba(1, 205, 254, 0.3) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(135, 255, 113, 0.2) 0 1px, transparent 1px 34px);
  -webkit-mask-image: linear-gradient(0deg, #000, transparent 90%);
  mask-image: linear-gradient(0deg, #000, transparent 90%);
}

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

.hero-kicker {
  margin: 0 0 14px;
  font-size: 16px;
  letter-spacing: 0.42em;
  color: var(--ice);
  text-shadow: 0 0 14px rgba(1, 205, 254, 0.7);
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.14;
  letter-spacing: 0.02em;
  color: #f3ffea;
  text-shadow: 0 0 20px rgba(135, 255, 113, 0.55), 0 0 52px rgba(1, 205, 254, 0.34);
}

.hero-lead {
  max-width: 44ch;
  margin: 20px 0 0;
  font-size: 17px;
  color: #b9d8b3;
}

/* ---------- 布局 ---------- */
.stage {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  max-width: 1220px;
  margin: 0 auto;
  padding: 64px 5vw 8px;
}

.main { min-width: 0; }

.rail {
  position: sticky;
  top: 104px;
  align-self: start;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(1, 205, 254, 0.1), rgba(25, 38, 23, 0.55));
  box-shadow: 0 26px 60px -38px rgba(1, 205, 254, 0.85), inset 0 0 0 1px rgba(135, 255, 113, 0.06);
}

.rail-title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(135, 255, 113, 0.6);
}

.rail-list { list-style: none; margin: 0; padding: 0; }

.rail-list li + li { border-top: 1px dashed rgba(135, 255, 113, 0.16); }

.rail-list a {
  display: block;
  min-height: 40px;
  padding: 9px 2px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  text-decoration: none;
}

.rail-list a:hover,
.rail-list a:focus-visible { color: var(--neon); }

.rail-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 12px;
  font-size: 16px;
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid rgba(1, 205, 254, 0.5);
}

/* ---------- 正文卡片 ---------- */
.doc { display: block; }

.doc > section {
  position: relative;
  margin: 0 0 24px;
  padding: 34px 28px 30px;
  border: 1px solid rgba(1, 205, 254, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(1, 205, 254, 0.055), rgba(25, 38, 23, 0.36));
  box-shadow: 0 30px 70px -48px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(135, 255, 113, 0.07);
  scroll-margin-top: 34px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.doc > section:last-child { margin-bottom: 0; }

.doc > section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--ice));
  box-shadow: 0 0 14px rgba(135, 255, 113, 0.8);
}

.doc > section:hover { transform: translateY(-2px); border-color: rgba(135, 255, 113, 0.3); }

.doc h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.32;
  letter-spacing: 0.02em;
  color: #eeffe7;
  text-shadow: 0 0 16px rgba(135, 255, 113, 0.32);
}

.doc h3 {
  margin: 26px 0 10px;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.4;
  color: #e5ffdb;
}

.doc p { margin: 0 0 16px; }

.doc a { color: var(--ice); text-underline-offset: 3px; text-decoration-color: rgba(1, 205, 254, 0.45); }
.doc a:hover { color: var(--neon); }

.doc ul,
.doc ol { padding-left: 1.35em; }
.doc li { margin: 0.35em 0; }

.doc blockquote {
  margin: 22px 0;
  padding: 12px 20px;
  border-left: 3px solid var(--neon);
  border-radius: 0 18px 18px 0;
  background: rgba(135, 255, 113, 0.07);
}

.doc img { height: auto; border-radius: 18px; }

.doc time,
.doc em { color: var(--ice); font-variant-numeric: tabular-nums; }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 56px;
  padding: 56px 5vw 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(1, 205, 254, 0.07), rgba(13, 21, 13, 0.9));
}

.foot-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  max-width: 1220px;
  margin: 0 auto;
}

.foot-brand { font-style: normal; }

.foot-name {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--neon);
  text-shadow: 0 0 18px rgba(135, 255, 113, 0.5);
}

.foot-desc { margin: 0; max-width: 44ch; font-size: 16px; color: var(--muted); }

.foot-cap {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--ice);
}

.foot-list,
.foot-mini { list-style: none; margin: 0; padding: 0; }

.foot-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.foot-list a {
  display: block;
  min-height: 40px;
  padding: 8px 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  text-decoration: none;
}

.foot-list a:hover,
.foot-list a:focus-visible { color: var(--neon); }

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: 1220px;
  margin: 34px auto 0;
  padding-top: 16px;
  border-top: 1px dashed rgba(135, 255, 113, 0.2);
}

.copy { margin: 0; font-size: 15px; letter-spacing: 0.12em; color: var(--muted); }

.foot-mini { display: flex; gap: 18px; }

.foot-mini a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: var(--ice);
  text-decoration: none;
}

.foot-mini a:hover { color: var(--neon); }

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--d, 0ms);
  }
  .rv.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 移动端 ---------- */
@media (max-width: 860px) {
  body { padding-left: 0; }

  .nav {
    position: sticky;
    top: 0;
    inset: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .mark { width: 40px; height: 40px; font-size: 17px; }

  .nav-list {
    flex: 1 1 auto;
    flex-direction: row;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-list li { flex: 0 0 auto; }

  .nav-list a {
    padding: 8px 10px;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  .nav-list a:hover,
  .nav-list a:focus-visible,
  .nav-list a.on { border-bottom-color: var(--neon); }

  .find { margin-top: 0; flex: 0 0 auto; flex-direction: row; gap: 6px; }
  .find input { width: 84px; }
  .find button { padding: 0 10px; }

  .find-state { position: absolute; top: 100%; left: 12px; right: 12px; }
  .find-state:not(:empty) { border-radius: 0 0 10px 10px; padding: 5px 10px; }

  .hero { padding: 15vh 18px 12vh; }
  .hero-kicker { font-size: 15px; letter-spacing: 0.3em; }
  .hero-lead { font-size: 16px; margin-top: 16px; }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px 18px 8px;
  }

  .rail { position: static; padding: 16px; border-radius: 20px; }
  .rail-title { margin-bottom: 10px; }
  .rail-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .rail-list li { flex: 0 0 auto; border-top: 0; }
  .rail-list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .doc > section { padding: 24px 18px; border-radius: 20px; scroll-margin-top: 78px; }
  .doc > section::before { left: 18px; width: 44px; }

  .foot { padding: 40px 18px 20px; margin-top: 40px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .foot-bar { margin-top: 26px; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
