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

:root {
  --void: #000000;
  --panel: #121212;
  --panel-2: #171717;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #e7eaee;
  --muted: #98a2ac;
  --neon: #3ef2b4;
  --blue: #5b8cff;
  --gold: #ffcf5c;
  --radius: 4px;
  --shell: 1240px;
  --display: 'Orbitron', 'Exo 2', system-ui, sans-serif;
  --sans: 'Exo 2', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html {
  background: var(--void);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 108px;
  background:
    radial-gradient(90% 60% at 50% 0%, #0a0f0d 0%, var(--void) 62%) no-repeat,
    var(--void);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  overflow-x: hidden;
}

a {
  color: var(--neon);
}

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

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

/* ---------- 底部胶囊导航 ---------- */

.nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(8, 8, 8, 0.84);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.8);
}

.nav__brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(62, 242, 180, 0.4);
  border-radius: 999px;
  background: rgba(62, 242, 180, 0.07);
  color: var(--neon);
  font-family: var(--display);
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(62, 242, 180, 0.45);
  white-space: nowrap;
}

.nav ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 2px;
  flex: 1 1 auto;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.nav ol::-webkit-scrollbar {
  display: none;
}

.nav li {
  flex: 0 0 auto;
}

.nav ol a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #dfe4e9;
  font-size: 0.94rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.nav ol a:hover,
.nav ol a.is-on {
  background: rgba(62, 242, 180, 0.14);
  border-color: rgba(62, 242, 180, 0.48);
  color: #c8fdec;
}

.pill__i {
  font-family: var(--display);
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--neon);
  opacity: 0.7;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero__media {
  position: absolute;
  inset: -6% 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.85) contrast(1.05);
  will-change: transform;
  transform: scale(1.04);
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(115% 85% at 50% 22%, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.92) 72%, #000 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.35) 45%, #000 96%);
}

.hero__slash {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -1px;
  height: 132px;
  z-index: 2;
  background: linear-gradient(100deg,
    transparent 0 41%,
    rgba(62, 242, 180, 0.85) 41% 42.4%,
    rgba(91, 140, 255, 0.85) 42.4% 43.8%,
    rgba(255, 207, 92, 0.55) 43.8% 44.6%,
    transparent 44.6%);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  opacity: 0.75;
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 940px;
  padding: 32px 22px;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.05rem, 7.4vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: 0.015em;
  color: #fff;
  text-shadow: 0 0 22px rgba(62, 242, 180, 0.32), 0 0 60px rgba(91, 140, 255, 0.18);
  word-break: break-word;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 26px;
  padding: 0 26px;
  border: 1px solid rgba(62, 242, 180, 0.55);
  border-radius: 999px;
  background: rgba(62, 242, 180, 0.1);
  color: #d6fff0;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.24s ease, transform 0.24s ease;
}

.hero__cta:hover {
  background: rgba(62, 242, 180, 0.2);
  transform: translateY(-2px);
}

/* ---------- 主体骨架：aside 左 / div 右 ---------- */

main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 20px 72px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 26px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23, 23, 23, 0.78), rgba(10, 10, 10, 0.7));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.rail p {
  margin: 0;
}

.rail__title {
  margin-bottom: 12px !important;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  color: var(--neon);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

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

.rail a {
  display: block;
  padding: 9px 0 9px 11px;
  border-left: 2px solid transparent;
  color: #c6ced6;
  font-size: 0.94rem;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rail a:hover {
  color: #fff;
  border-left-color: var(--neon);
  background: rgba(62, 242, 180, 0.06);
}

div {
  min-width: 0;
}

.lede {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.lede h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.42rem, 3.4vw, 2.15rem);
  line-height: 1.24;
  color: #fff;
}

.subtitle {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

/* ---------- 正文区块 ---------- */

div > article {
  padding: 42px 0;
  scroll-margin-top: 84px;
}

div > article + article {
  border-top: 1px solid var(--line);
  background-image: linear-gradient(90deg, rgba(62, 242, 180, 0.35), transparent 120px);
  background-size: 120px 1px;
  background-repeat: no-repeat;
}

div > article:target {
  background-color: rgba(62, 242, 180, 0.03);
}

div h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.28rem, 2.8vw, 1.82rem);
  line-height: 1.3;
  color: #fff;
  letter-spacing: 0.01em;
}

div h3 {
  margin: 26px 0 10px;
  font-size: 1.14rem;
  font-weight: 600;
  color: #cdfce9;
}

div p {
  margin: 0 0 16px;
  max-width: 70ch;
  color: #c7cfd7;
}

div ul,
div ol {
  max-width: 70ch;
  padding-left: 1.25em;
  color: #c7cfd7;
}

div li {
  margin: 0 0 8px;
}

div a {
  color: #8ef0cd;
  text-underline-offset: 3px;
}

div strong {
  color: #fff;
}

div blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 2px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(91, 140, 255, 0.08);
  color: #dfe6f4;
}

div blockquote p:last-child {
  margin-bottom: 0;
}

div table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.97rem;
}

div th,
div td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

div th {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

div figure {
  margin: 22px 0;
}

div figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- 页脚 ---------- */

.foot {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #070707, #000 60%);
}

.foot__grid {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 46px 20px 34px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.foot__logo {
  font-family: var(--display);
  font-size: 1.06rem;
  letter-spacing: 0.1em;
  color: var(--neon);
  text-decoration: none;
  text-shadow: 0 0 12px rgba(62, 242, 180, 0.4);
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.foot dl {
  margin: 0;
}

.foot dt {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: #7c8892;
}

.foot dd {
  margin: 0;
}

.foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #bcc5cd;
  font-size: 0.95rem;
  text-decoration: none;
}

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

.foot__base {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 15px 20px 26px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #78838c;
}

.foot__base p {
  margin: 0;
}

.foot__links {
  display: flex;
  gap: 16px;
}

.foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #9aa5ae;
  text-decoration: none;
}

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

/* ---------- 动效 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s ease, transform 0.62s cubic-bezier(0.22, 0.68, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  main {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-top: 38px;
  }

  .rail {
    position: static;
    padding: 16px;
  }

  .rail ol {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 2px 12px;
  }

  .rail a {
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding-left: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  .foot__grid {
    grid-template-columns: 1fr 1fr;
    padding-top: 36px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
    padding-bottom: 98px;
  }

  .nav {
    gap: 8px;
    padding: 9px 10px;
  }

  .nav__brand {
    padding: 0 13px;
    font-size: 0.86rem;
  }

  .nav ol a {
    padding: 0 13px;
    font-size: 0.9rem;
  }

  main {
    padding: 30px 15px 56px;
  }

  .hero__slash {
    height: 92px;
  }

  .foot__grid {
    padding: 30px 15px 24px;
    gap: 20px;
  }

  .foot__base {
    padding: 14px 15px 22px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__img {
    transform: none;
  }

  .hero__cta {
    transition: none;
  }
}

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