:root {
  --ink: #192617;
  --neon: #87ff71;
  --cyan: #01cdfe;
  --pink: #ff71ce;
  --violet: #b967ff;
  --bg: #0a1109;
  --txt: #d9ebd5;
  --dim: #9ab297;
  --line: rgba(135, 255, 113, 0.22);
  --line-c: rgba(1, 205, 254, 0.28);
  --r: 4px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.68;
  color: var(--txt);
  background:
    radial-gradient(1100px 560px at 88% -8%, rgba(1, 205, 254, 0.18), transparent 62%),
    radial-gradient(820px 480px at 6% -6%, rgba(255, 113, 206, 0.14), transparent 60%),
    radial-gradient(700px 640px at 50% 118%, rgba(135, 255, 113, 0.1), transparent 66%),
    var(--bg);
  background-attachment: fixed;
}

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

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

a {
  color: var(--neon);
  text-decoration: none;
}

a:hover {
  color: var(--cyan);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* 顶栏：品牌行 + 菜单行 */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 15, 8, 0.97), rgba(8, 15, 8, 0.82));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px clamp(14px, 4vw, 40px) 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding-right: 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #eefce9;
  text-shadow: 0 0 14px rgba(135, 255, 113, 0.45);
}

.brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(1, 205, 254, 0.75));
}

.brand-name {
  animation: flicker 7s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  49% { opacity: 1; }
  50% { opacity: 0.82; }
  52% { opacity: 1; }
}

.find {
  display: flex;
  flex: 1 1 160px;
  gap: 6px;
  min-width: 0;
  max-width: 330px;
  margin-left: auto;
}

.find-in {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
  color: var(--txt);
  border: 1px solid var(--line-c);
  border-radius: var(--r);
  background: rgba(10, 20, 14, 0.85);
}

.find-in::placeholder {
  color: var(--dim);
}

.find-btn {
  height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--neon);
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(135, 255, 113, 0.1);
}

.find-btn:hover {
  background: rgba(135, 255, 113, 0.2);
}

.top-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 40px) 8px;
}

.menu {
  border-top: 1px dashed rgba(135, 255, 113, 0.16);
}

.menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 10px 4px 0;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--dim);
  cursor: pointer;
  list-style: none;
}

.menu > summary::-webkit-details-marker {
  display: none;
}

.menu > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--neon);
  border-bottom: 1.5px solid var(--neon);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}

.menu[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.menu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 6px;
  padding: 0;
  list-style: none;
}

.menu-list li {
  display: flex;
}

.menu-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  font-size: 16px;
  color: #cfe4cb;
  border: 1px solid transparent;
  border-radius: var(--r);
}

.menu-list a:hover,
.menu-list a:focus-visible {
  color: #ffffff;
  border-color: var(--line-c);
  background: rgba(1, 205, 254, 0.1);
  text-shadow: 0 0 12px rgba(1, 205, 254, 0.8);
}

/* 主体 */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 40px);
}

article {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  min-height: 45vh;
  padding: clamp(18px, 4vw, 34px) 0;
}

.hero-art {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-c);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--pink) 0%, var(--violet) 40%, var(--cyan) 76%, #0a1109 100%);
}

.hero-art img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  opacity: 0.92;
  mix-blend-mode: luminosity;
  filter: saturate(1.1) contrast(1.05);
}

.hero-art::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 46%;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(1, 205, 254, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 205, 254, 0.7) 1px, transparent 1px);
  background-size: 26px 26px;
  transform: perspective(220px) rotateX(62deg);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
  mask-image: linear-gradient(180deg, transparent, #000 70%);
}

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

.hero-txt h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.4vw, 50px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #f4ffee;
  text-shadow: 0 0 18px rgba(135, 255, 113, 0.5), 0 0 48px rgba(1, 205, 254, 0.32);
}

.hero-desc {
  max-width: 34ch;
  margin: 0 auto;
  font-size: 17px;
  color: #c6dbc2;
}

/* 正文区：左侧栏 + 正文 */
.bento {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  padding: 4px 0 40px;
  border-top: 1px solid var(--line);
}

.rail {
  order: -1;
  padding-top: 22px;
}

@media (min-width: 901px) {
  .rail {
    position: sticky;
    top: 136px;
    align-self: start;
    max-height: calc(100vh - 160px);
    overflow: auto;
  }
}

.rail-h {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--dim);
}

.rail-h span::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 8px;
  vertical-align: 4px;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
}

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

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

.rail-list a {
  display: block;
  padding: 7px 4px;
  color: #b8d0b4;
}

.rail-i {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.rail-n {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--cyan);
  opacity: 0.85;
}

.rail-list a:hover .rail-i {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(1, 205, 254, 0.8);
}

.rail-list a:hover .rail-n {
  color: var(--neon);
}

.prose {
  min-width: 0;
  max-width: 74ch;
  padding-top: 22px;
  overflow-wrap: break-word;
}

.prose > div {
  padding: 26px 0;
  border-bottom: 1px solid rgba(135, 255, 113, 0.12);
  scroll-margin-top: 148px;
}

.prose > div:last-child {
  border-bottom: 0;
  padding-bottom: 8px;
}

.prose h2 {
  margin: 0 0 12px;
  padding-left: 14px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.32;
  color: #eefbe9;
  border-left: 2px solid rgba(1, 205, 254, 0.65);
  text-shadow: 0 0 16px rgba(135, 255, 113, 0.28);
}

.prose h2 span,
.prose h3 span {
  display: inline;
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  color: #dff5da;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.prose li {
  margin: 6px 0;
}

.prose strong {
  color: #f4fff0;
}

.prose blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 2px solid var(--neon);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(135, 255, 113, 0.07);
}

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

.prose a {
  border-bottom: 1px solid rgba(135, 255, 113, 0.45);
}

.prose figure {
  margin: 16px 0;
}

.prose img {
  border: 1px solid var(--line-c);
  border-radius: var(--r);
}

.prose table {
  width: 100%;
  margin: 14px 0;
  font-size: 16px;
  border-collapse: collapse;
}

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

.prose th {
  color: #eaffdf;
  background: rgba(1, 205, 254, 0.08);
}

.prose code {
  padding: 1px 5px;
  font-size: 15px;
  border-radius: 3px;
  background: rgba(1, 205, 254, 0.14);
}

.prose pre {
  overflow-x: auto;
  padding: 12px;
  border: 1px solid var(--line-c);
  border-radius: var(--r);
  background: rgba(6, 14, 8, 0.8);
}

/* 页脚 */
.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 40px) 28px;
}

.cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 22px;
  padding: clamp(20px, 4vw, 34px);
  overflow: hidden;
  border: 1px solid var(--line-c);
  border-radius: var(--r);
  background: linear-gradient(140deg, rgba(255, 113, 206, 0.18), rgba(1, 205, 254, 0.15) 46%, rgba(135, 255, 113, 0.16));
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 9px);
}

.cta-h {
  position: relative;
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #f7fff3;
  text-shadow: 0 0 20px rgba(1, 205, 254, 0.6);
}

.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  font-weight: 500;
  color: #eaffdf;
  border: 1px solid var(--neon);
  border-radius: var(--r);
  background: rgba(135, 255, 113, 0.16);
}

.cta-btn:hover {
  color: #0b1409;
  background: var(--neon);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.foot-logo {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  order: 2;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 9px;
  color: #b8d0b4;
  border-radius: var(--r);
}

.foot-nav a:hover {
  color: #ffffff;
  background: rgba(1, 205, 254, 0.12);
}

.foot-copy {
  order: 3;
  margin: 0;
  font-size: 16px;
  color: var(--dim);
}

/* 动效 */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

  * {
    animation: none !important;
  }
}

/* 窄屏 */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 16px 0 22px;
  }

  .hero-txt {
    order: 1;
  }

  .hero-art {
    order: 2;
  }

  .bento {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rail {
    position: static;
    max-height: none;
    padding: 14px 0 10px;
    border-bottom: 1px solid var(--line);
  }

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

  .rail-list li + li {
    border-top: 0;
  }

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

  .prose {
    max-width: none;
    padding-top: 6px;
  }

  .prose > div {
    padding: 22px 0;
    scroll-margin-top: 190px;
  }

  .foot-nav {
    order: 3;
  }

  .foot-copy {
    order: 2;
  }
}

@media (max-width: 760px) {
  .prose table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 17px;
  }

  .find-btn {
    padding: 0 11px;
  }

  .hero-art img {
    max-height: 58vw;
  }
}

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