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

:root {
  --green: #87ff71;
  --cyan: #01cdfe;
  --ink: #192617;
  --bg: #0b1410;
  --bg2: #101c15;
  --glass: rgba(255, 255, 255, 0.055);
  --line: rgba(135, 255, 113, 0.22);
  --line-soft: rgba(135, 255, 113, 0.13);
  --txt: #e6f4e8;
  --mid: #c2d7c7;
  --dim: #9db3a3;
  --r: 10px;
  --maxw: 1120px;
  --font: "Poppins", "Open Sans", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--txt);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
  background:
    radial-gradient(90% 55% at 50% -8%, rgba(1, 205, 254, 0.18), transparent 62%),
    radial-gradient(65% 45% at 106% 4%, rgba(135, 255, 113, 0.13), transparent 58%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 3px);
}

body.menu-open {
  overflow: hidden;
}

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

h1,
h2,
h3 {
  line-height: 1.3;
  margin: 0 0 12px;
}

.main {
  display: block;
}

/* 顶部两行 */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 17, 12, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.top__brand {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px dashed var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 2px;
  color: var(--green);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-shadow: 0 0 16px rgba(135, 255, 113, 0.55);
}

.brand__mark {
  display: inline-flex;
  align-items: center;
}

.brand__mark img,
.brand__mark svg {
  height: 22px;
  width: auto;
  display: block;
}

.top__menu {
  display: flex;
  align-items: center;
  padding: 7px 18px 9px;
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 15px;
  color: var(--green);
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.06em;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.burger:hover {
  background: rgba(1, 205, 254, 0.14);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.burger__i {
  width: 20px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

/* 全屏遮罩菜单 */
.nav {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 110px 22px 46px;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  background:
    radial-gradient(120% 85% at 50% 0%, rgba(1, 205, 254, 0.18), transparent 62%),
    rgba(8, 15, 10, 0.965);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.menu-open .nav {
  opacity: 1;
  visibility: visible;
}

.nav p {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 22px;
  color: var(--txt);
  font-size: 19px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transform: translateY(-2px);
}

/* HERO */
.hero {
  position: relative;
  min-height: 45vh;
  padding: 46px 20px 66px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
  background: linear-gradient(160deg, #14291f 0%, #0d1b14 55%, #0b1410 100%);
}

.hero__fig {
  position: absolute;
  inset: 0;
  margin: 0;
  background: linear-gradient(155deg, rgba(1, 205, 254, 0.45), rgba(135, 255, 113, 0.2) 48%, rgba(11, 20, 16, 0.95));
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.42;
  filter: saturate(1.15) contrast(1.05);
}

.hero::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -6%;
  height: 72%;
  opacity: 0.6;
  pointer-events: none;
  transform: perspective(300px) rotateX(62deg);
  transform-origin: bottom center;
  background-image:
    linear-gradient(rgba(1, 205, 254, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 255, 113, 0.28) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 82%);
  mask-image: linear-gradient(to top, #000 8%, transparent 82%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(72% 100% at 50% 104%, rgba(9, 17, 12, 0.9), transparent 68%);
}

.hero__copy {
  position: relative;
  z-index: 3;
  max-width: 22em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(26px, 5.6vw, 46px);
  line-height: 1.28;
  letter-spacing: 0.02em;
  color: #f2fff4;
  text-shadow: 0 0 18px rgba(135, 255, 113, 0.55), 0 0 46px rgba(1, 205, 254, 0.3);
  animation: glowPulse 5.5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 16px rgba(135, 255, 113, 0.5), 0 0 42px rgba(1, 205, 254, 0.24);
  }
  50% {
    text-shadow: 0 0 28px rgba(1, 205, 254, 0.62), 0 0 64px rgba(135, 255, 113, 0.32);
  }
}

.hero__band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  z-index: 2;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--cyan));
  background-size: 220% 100%;
  animation: bandShift 7s linear infinite;
}

@keyframes bandShift {
  to {
    background-position: 220% 0;
  }
}

/* 正文 + 侧栏 */
.stage {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 34px;
  align-items: start;
}

.stage__main {
  min-width: 0;
}

.lede {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line-soft);
}

.lede__t {
  margin: 0 0 8px;
  font-size: clamp(21px, 2.6vw, 27px);
  letter-spacing: 0.02em;
  color: var(--green);
  text-shadow: 0 0 22px rgba(135, 255, 113, 0.42);
}

.subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dim);
}

.content {
  font-size: 17px;
  color: var(--mid);
}

.content > article {
  margin: 0 0 26px;
  padding: 26px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  scroll-margin-top: 128px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.content > article:hover {
  border-color: var(--line);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 34px -18px rgba(1, 205, 254, 0.7);
}

.content h2 {
  font-size: 22px;
  letter-spacing: 0.015em;
  color: #ecfff0;
  text-shadow: 0 0 20px rgba(1, 205, 254, 0.32);
}

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

.content h3 {
  font-size: 18px;
  color: var(--green);
  margin-top: 20px;
}

.content p {
  margin: 0 0 14px;
  color: var(--mid);
}

.content p:last-child,
.content ul:last-child,
.content ol:last-child {
  margin-bottom: 0;
}

.content ul,
.content ol {
  margin: 0 0 14px;
  padding-left: 1.25em;
  color: var(--mid);
}

.content li {
  margin-bottom: 6px;
}

.content a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(1, 205, 254, 0.45);
  text-underline-offset: 3px;
}

.content a:hover {
  color: var(--green);
}

.content strong {
  color: #effff2;
}

.content img {
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
}

.content blockquote {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  background: rgba(1, 205, 254, 0.07);
  color: var(--mid);
}

.content code {
  font-size: 15px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
  margin-bottom: 14px;
}

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

/* 右栏 */
.side {
  position: sticky;
  top: 118px;
  padding: 18px 15px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.side__t {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(1, 205, 254, 0.45);
}

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

.side__list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 10px;
  font-size: 16px;
  color: var(--txt);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.side__list a:hover {
  color: var(--green);
  background: rgba(135, 255, 113, 0.1);
  border-left-color: var(--green);
}

/* 页脚 */
.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 20px 44px;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 22px 26px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.foot p {
  margin: 0;
}

.foot__brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--green);
  text-shadow: 0 0 16px rgba(135, 255, 113, 0.4);
}

.foot__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  font-size: 16px;
}

.foot__jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dim);
  text-decoration: none;
}

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

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

.sub__input {
  flex: 1 1 130px;
  min-width: 0;
  min-height: 44px;
  padding: 0 13px;
  font: inherit;
  font-size: 16px;
  color: var(--txt);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

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

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

.sub__btn {
  min-height: 44px;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.sub__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.foot__copy {
  grid-column: 1 / -1;
  padding-top: 12px;
  text-align: center;
  font-size: 16px;
  color: var(--dim);
  border-top: 1px dashed var(--line-soft);
}

/* 滚动出现 */
.js-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 860px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 34px;
  }

  .side {
    position: static;
    top: auto;
  }

  .content > article {
    scroll-margin-top: 140px;
  }

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

  .foot__copy {
    grid-column: auto;
  }
}

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

  .content {
    font-size: 17px;
  }

  .content > article {
    padding: 22px 16px;
  }

  .hero {
    padding: 40px 16px 58px;
  }
}

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

  .hero h1,
  .hero__band {
    animation: none;
  }

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

  .content > article:hover,
  .burger:hover,
  .sub__btn:hover {
    transform: none;
  }
}

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