:root {
  --ink: #172617;
  --bg: #08110a;
  --neon: #69ff69;
  --cy: #00ffff;
  --paper: #e9ffef;
  --muted: #a9c6b3;
  --line: rgba(105, 255, 105, 0.22);
  --panel: rgba(20, 42, 26, 0.62);
  --r: 28px;
  --chrome: linear-gradient(180deg, #ffffff 0%, #d7f2e0 32%, #7fa28b 52%, #e6fff2 74%, #ffffff 100%);
  --gloss: linear-gradient(150deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.04) 45%, rgba(0, 255, 255, 0.22));
  --dots: rgba(105, 255, 105, 0.16);
}

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

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

body {
  margin: 0;
  font-family: 'Didact Gothic', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--paper);
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(0, 255, 255, 0.14), transparent 62%),
    radial-gradient(900px 480px at 92% 2%, rgba(105, 255, 105, 0.16), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--dots) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

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

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

h1,
h2,
h3 {
  font-family: 'Poiret One', 'Didact Gothic', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.2;
}

div[id] {
  scroll-margin-top: 112px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: 0 0 16px 16px;
  background: var(--neon);
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
}

.skip:focus {
  top: 0;
}

/* ---------- 顶部 ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(8, 17, 10, 0.94), rgba(8, 17, 10, 0.72));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.top-inner {
  width: min(1200px, 94vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}

.nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-l ul {
  justify-content: flex-end;
}

.nav-r ul {
  justify-content: flex-start;
}

.nav-a {
  display: inline-block;
  padding: 12px 11px;
  min-height: 44px;
  line-height: 1.3;
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
  border-radius: 14px;
  letter-spacing: 0.02em;
}

.nav-a:hover,
.nav-a:focus-visible {
  color: var(--ink);
  background: var(--neon);
  box-shadow: 0 0 18px rgba(105, 255, 105, 0.55);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.35);
  background: linear-gradient(150deg, rgba(0, 255, 255, 0.12), rgba(105, 255, 105, 0.08));
  box-shadow: inset 0 0 18px rgba(0, 255, 255, 0.18);
}

.brand-badge {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--chrome);
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.5);
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: cover;
}

.brand-dot {
  background: radial-gradient(circle at 32% 28%, #ffffff, #69ff69 42%, #17603a 100%);
}

.brand-name {
  font-family: 'Poiret One', system-ui, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: #eafff2;
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.7);
  white-space: nowrap;
  animation: pulse 4.5s ease-in-out infinite;
}

/* ---------- 下拉 ---------- */

.has-drop {
  position: relative;
}

.drop-btn {
  display: inline-block;
  min-height: 44px;
  padding: 11px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  border: 1px solid rgba(0, 255, 255, 0.6);
  border-radius: 999px;
  background: var(--gloss), linear-gradient(160deg, #d8ffd8, #9dffb4);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.4), inset 0 1px 0 #ffffff;
}

.drop-btn:hover,
.drop-btn:focus-visible {
  box-shadow: 0 0 22px rgba(105, 255, 105, 0.8);
}

.drop {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 178px;
  display: block;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid rgba(0, 255, 255, 0.4);
  background: rgba(10, 22, 13, 0.97);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55), inset 0 0 24px rgba(0, 255, 255, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  flex-direction: column;
  align-items: stretch;
}

.has-drop:hover .drop,
.has-drop:focus-within .drop,
.has-drop.open .drop {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.drop li {
  width: 100%;
}

.drop .nav-a {
  display: block;
  width: 100%;
}

/* ---------- 主区 ---------- */

.page {
  position: relative;
  z-index: 1;
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 22px 0 64px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  min-height: 45vh;
  padding: 26px 0 30px;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -10px -6vw;
  z-index: -1;
  background-image: radial-gradient(rgba(0, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 76%);
  pointer-events: none;
}

.hero-txt {
  text-align: center;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5.2vw, 56px);
  letter-spacing: 0.03em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(105, 255, 105, 0.45));
}

.lead {
  margin: 0 auto 22px;
  max-width: 34em;
  color: #d7f3e2;
  font-size: 1.02rem;
}

.cta {
  display: inline-block;
  padding: 13px 30px;
  min-height: 48px;
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: var(--gloss), linear-gradient(160deg, #b9ffc6, #69ff69 55%, #24c06a);
  box-shadow: 0 0 26px rgba(105, 255, 105, 0.55), inset 0 2px 0 #ffffff, inset 0 -6px 14px rgba(23, 38, 23, 0.3);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(0, 255, 255, 0.7), inset 0 2px 0 #ffffff;
}

.hero-art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    var(--gloss),
    linear-gradient(160deg, #1d3d2a, #0d1f14 55%, #06212a);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.28), inset 0 0 30px rgba(105, 255, 105, 0.18);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r);
}

.ring {
  position: absolute;
  top: -46px;
  right: -46px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 255, 255, 0.7);
  box-shadow: 0 0 26px rgba(0, 255, 255, 0.35) inset;
  animation: spin 26s linear infinite;
  pointer-events: none;
}

.bub {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 26%, #ffffff, rgba(105, 255, 105, 0.85) 40%, rgba(0, 255, 255, 0.5) 72%, rgba(0, 255, 255, 0.05));
  box-shadow: 0 0 18px rgba(105, 255, 105, 0.5);
  opacity: 0.85;
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
}

.b1 {
  width: 26px;
  height: 26px;
  left: 7%;
  bottom: 12%;
}

.b2 {
  width: 14px;
  height: 14px;
  left: 22%;
  bottom: 32%;
  animation-delay: 1.6s;
}

.b3 {
  width: 34px;
  height: 34px;
  right: 12%;
  bottom: 8%;
  animation-delay: 3.1s;
}

.split {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 44px);
  align-items: start;
  margin-top: 26px;
}

.side {
  position: sticky;
  top: 96px;
  padding: 22px 20px 24px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--neon);
  background: var(--panel);
  box-shadow: inset 0 0 30px rgba(0, 255, 255, 0.08);
}

.side h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--neon);
  text-shadow: 0 0 14px rgba(105, 255, 105, 0.55);
}

.subtitle {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--cy);
}

.side-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sec;
}

.side-nav li {
  counter-increment: sec;
  border-top: 1px dashed rgba(105, 255, 105, 0.18);
}

.side-nav a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 11px 4px;
  min-height: 44px;
  font-size: 16px;
  color: #dff7e6;
  text-decoration: none;
}

.side-nav a::before {
  content: counter(sec, decimal-leading-zero);
  font-family: 'Poiret One', system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--cy);
}

.side-nav a:hover,
.side-nav a:focus-visible {
  color: var(--neon);
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.7);
}

.body {
  min-width: 0;
}

.content {
  min-width: 0;
  overflow-wrap: break-word;
}

.content > div + div {
  margin-top: 54px;
  padding-top: 44px;
  border-top: 1px dashed var(--line);
}

.content h2 {
  margin: 0 0 10px;
  font-size: clamp(23px, 3.2vw, 34px);
  letter-spacing: 0.02em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(0, 255, 255, 0.28));
}

.content h2 + .subtitle {
  margin-top: 0;
}

.content h3 {
  margin: 28px 0 10px;
  font-size: 1.3rem;
  color: var(--neon);
}

.content p {
  margin: 0 0 18px;
}

.content a {
  color: var(--cy);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 255, 0.45);
}

.content a:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.content strong,
.content b {
  color: var(--neon);
  font-weight: 400;
}

.content ul,
.content ol {
  margin: 0 0 18px;
  padding-left: 1.25em;
}

.content li {
  margin: 6px 0;
}

.content blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  border-left: 3px solid var(--neon);
  border-radius: 0 20px 20px 0;
  background: rgba(105, 255, 105, 0.07);
}

.content img {
  border-radius: 22px;
  margin: 22px 0;
  height: auto;
}

.content figure {
  margin: 24px 0;
}

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

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.97rem;
}

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

.content th {
  color: var(--neon);
}

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

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

.foot {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(700px 320px at 80% 0, rgba(0, 255, 255, 0.14), transparent 65%),
    linear-gradient(180deg, rgba(12, 26, 16, 0.9), rgba(6, 12, 8, 0.98));
}

.f-grid {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 44px 0 34px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.35fr;
  gap: 30px;
  align-items: start;
}

.f-col {
  min-width: 0;
}

.f-id {
  padding: 20px 20px 26px;
  border-radius: var(--r);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-bottom: 3px solid var(--cy);
  background: rgba(0, 255, 255, 0.05);
}

.f-brand {
  display: inline-block;
  font-family: 'Poiret One', system-ui, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  color: #eafff2;
  text-decoration: none;
  text-shadow: 0 0 16px rgba(105, 255, 105, 0.7);
}

.f-glow {
  display: block;
  margin-top: 14px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon), var(--cy), transparent);
  box-shadow: 0 0 16px rgba(105, 255, 105, 0.6);
}

.foot dl {
  margin: 0;
}

.foot dt {
  margin-bottom: 10px;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  color: var(--cy);
}

.foot dd {
  margin: 0;
}

.foot dl a,
.f-list a {
  display: inline-block;
  padding: 9px 0;
  min-height: 40px;
  font-size: 16px;
  color: #d9f5e3;
  text-decoration: none;
}

.foot dl a:hover,
.foot dl a:focus-visible,
.f-list a:hover,
.f-list a:focus-visible {
  color: var(--neon);
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.7);
}

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

.sub-form {
  margin: 0;
}

.sub-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  color: var(--cy);
}

.sub-row {
  display: flex;
  gap: 8px;
}

.sub-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--paper);
  border-radius: 16px;
  border: 1px solid rgba(0, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
}

.sub-row input::placeholder {
  color: #8fb39d;
}

.sub-row input:focus {
  outline: 2px solid var(--neon);
  outline-offset: 1px;
}

.sub-row button {
  flex: none;
  min-height: 46px;
  padding: 10px 18px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: var(--gloss), linear-gradient(160deg, #c9ffd4, #69ff69);
  box-shadow: 0 0 18px rgba(105, 255, 105, 0.45), inset 0 1px 0 #ffffff;
}

.f-bottom {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 16px 0 26px;
  border-top: 1px dashed rgba(105, 255, 105, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.copy {
  margin: 0;
}

.to-top {
  display: inline-block;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 999px;
  color: var(--neon);
  text-decoration: none;
  border: 1px solid rgba(105, 255, 105, 0.4);
}

.to-top:hover,
.to-top:focus-visible {
  background: var(--neon);
  color: var(--ink);
}

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

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-ready [data-reveal].in {
  opacity: 1;
  transform: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes pulse {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(105, 255, 105, 0.55);
  }
  50% {
    text-shadow: 0 0 22px rgba(0, 255, 255, 0.85);
  }
}

/* ---------- 断点 ---------- */

@media (max-width: 1000px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
    order: -1;
  }

  .side-nav ol {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0 14px;
  }

  .foot .f-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .top-inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: 10px 0;
    gap: 8px;
  }

  .brand {
    order: -1;
  }

  .nav-l ul,
  .nav-r ul {
    justify-content: center;
    gap: 2px;
  }

  .drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    background: rgba(0, 255, 255, 0.06);
    box-shadow: none;
    padding: 6px;
  }

  .has-drop li {
    width: 100%;
  }

  .drop .nav-a {
    text-align: center;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 18px 0 10px;
  }

  .hero-art {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .ring {
    width: 120px;
    height: 120px;
    top: -34px;
    right: -34px;
  }

  .page {
    padding-bottom: 44px;
  }

  .foot .f-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 32px;
  }

  .f-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 16px;
  }

  .nav-a,
  .drop-btn {
    padding: 11px 9px;
  }

  .brand-name {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .side-nav ol {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .ring,
  .bub,
  .brand-name {
    animation: none;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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