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

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

:root {
  --ink: #192617;
  --neon: #87ff71;
  --cyan: #01cdfe;
  --pink: #ff71ce;
  --paper: #e9fce6;
  --dim: #a9c8b2;
  --card: rgba(135, 255, 113, .055);
  --r: 28px;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 108px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--paper);
  overflow-x: hidden;
  background:
    radial-gradient(1100px 620px at 84% -8%, rgba(1, 205, 254, .17), transparent 62%),
    radial-gradient(820px 520px at 6% 2%, rgba(255, 113, 206, .13), transparent 58%),
    radial-gradient(900px 700px at 50% 108%, rgba(135, 255, 113, .12), transparent 60%),
    var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .32;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .3) 0 1px, transparent 1px 3px);
}

body::after {
  content: "";
  position: fixed;
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 34vh;
  z-index: 0;
  pointer-events: none;
  opacity: .45;
  transform: perspective(320px) rotateX(63deg);
  transform-origin: bottom center;
  background:
    repeating-linear-gradient(90deg, rgba(135, 255, 113, .5) 0 1px, transparent 1px 62px),
    repeating-linear-gradient(0deg, rgba(1, 205, 254, .4) 0 1px, transparent 1px 44px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 62%);
  mask-image: linear-gradient(180deg, transparent, #000 62%);
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color .2s ease, text-shadow .2s ease, background-color .2s ease;
}

a:hover,
a:focus-visible {
  color: var(--neon);
  text-shadow: 0 0 16px rgba(135, 255, 113, .75);
}

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

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

hr {
  border: 0;
  height: 1px;
  margin: 14px 0 20px;
  background: linear-gradient(90deg, var(--neon), rgba(1, 205, 254, .55), transparent);
}

.brandmark {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  color: #0e1a10;
  background: linear-gradient(150deg, var(--neon), var(--cyan));
  box-shadow: 0 0 26px rgba(135, 255, 113, .45);
  text-shadow: none;
}

.brandmark:hover,
.brandmark:focus-visible {
  color: #0e1a10;
  text-shadow: none;
  box-shadow: 0 0 34px rgba(1, 205, 254, .8);
}

.shell {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 18px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

main { min-width: 0; }

.paper { min-width: 0; }

/* 首屏 */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 42vh;
  padding: 30px 22px;
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(158deg, rgba(135, 255, 113, .17), rgba(1, 205, 254, .1) 52%, rgba(255, 113, 206, .14));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 130%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 113, 206, .22), transparent);
  filter: blur(6px);
}

.heroCopy {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
}

.chip {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--cyan);
  background: rgba(1, 205, 254, .16);
  animation: bob 5.5s ease-in-out infinite;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 6.4vw, 52px);
  line-height: 1.16;
  letter-spacing: -.02em;
  color: #f2fff0;
  text-shadow: 0 0 22px rgba(135, 255, 113, .55), 0 0 62px rgba(1, 205, 254, .34);
}

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

.heroArt {
  position: relative;
  flex: none;
  width: 92px;
  margin: 0;
  display: grid;
  place-items: center;
}

.heroArt img { border-radius: 24px; }

.glyph {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 34px;
  font-weight: 700;
  color: #0e1a10;
  background: linear-gradient(150deg, var(--neon), var(--cyan) 70%, var(--pink));
  box-shadow: 0 0 32px rgba(135, 255, 113, .5);
  animation: hueshift 11s linear infinite;
}

/* 正文块 */
div > article {
  margin-top: 26px;
  padding: 26px 22px;
  border-radius: var(--r);
  background: var(--card);
  scroll-margin-top: 82px;
  scroll-margin-bottom: 118px;
  transition: background-color .3s ease;
}

div > article:hover { background: rgba(135, 255, 113, .09); }

div > article > :first-child { margin-top: 0; }
div > article > :last-child { margin-bottom: 0; }

div h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--neon);
  text-shadow: 0 0 18px rgba(135, 255, 113, .42);
}

div h3 {
  margin: 24px 0 6px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--cyan);
}

div h2 + hr,
div h3 + hr { margin: 12px 0 18px; }

div p { margin: 0 0 14px; }

div ul,
div ol { margin: 0 0 16px; padding-left: 22px; }

div li { margin-bottom: 8px; }

div li::marker { color: var(--neon); }

div blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-radius: 0 18px 18px 0;
  background: rgba(1, 205, 254, .1);
  color: #d5f0ee;
}

div code {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 15px;
  background: rgba(135, 255, 113, .13);
  color: var(--neon);
}

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

div th,
div td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(135, 255, 113, .16);
}

div th { color: var(--neon); font-weight: 600; }

/* 右侧栏 */
.rail {
  padding: 22px 20px;
  border-radius: var(--r);
  background: rgba(1, 205, 254, .07);
}

.rail h2 {
  margin: 0 0 4px;
  font-size: 19px;
  line-height: 1.4;
  color: var(--cyan);
  letter-spacing: .04em;
}

.rail hr { margin: 10px 0 14px; }

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

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

.railList a {
  display: block;
  padding: 11px 8px;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 14px;
}

.railList a:hover,
.railList a.is-hot {
  color: var(--neon);
  background: rgba(135, 255, 113, .12);
  text-shadow: 0 0 16px rgba(135, 255, 113, .7);
}

.railTail {
  margin: 16px 0 0;
  font-size: 16px;
}

.railTail a {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(135, 255, 113, .12);
}

/* 页脚 */
.foot {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 18px 40px;
}

.giant {
  margin: 0 0 26px;
  font-size: clamp(40px, 11vw, 96px);
  line-height: .95;
  font-weight: 700;
  letter-spacing: -.035em;
  background: linear-gradient(96deg, var(--neon), var(--cyan) 52%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footCols {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

.foot dl { margin: 0; }

.foot dt {
  margin-bottom: 10px;
  font-size: 16px;
  letter-spacing: .14em;
  color: var(--neon);
}

.foot dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--dim);
}

.foot dd ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot dd a {
  display: inline-block;
  padding: 9px 0;
}

.cr {
  margin: 28px 0 0;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(135, 255, 113, .16);
  font-size: 16px;
  color: #8faa98;
}

.cr a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(135, 255, 113, .1);
}

/* 底部固定条 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 23, 13, .93);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(135, 255, 113, .18);
}

.dock::before {
  content: "";
  width: 34px;
  height: 6px;
  flex: none;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
}

.dock nav { flex: 1 1 auto; min-width: 0; }

.dock nav ul {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dock nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.5;
}

body.menu-open .dock nav ul {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 60;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 84px 22px 96px;
  overflow: auto;
  background: rgba(9, 18, 11, .97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.menu-open .dock nav a {
  padding: 14px 18px;
  font-size: 20px;
  border-radius: 18px;
  background: rgba(135, 255, 113, .07);
}

.burger {
  position: relative;
  z-index: 75;
  flex: none;
  min-width: 84px;
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .05em;
  color: #0e1a10;
  background: linear-gradient(140deg, var(--neon), var(--cyan));
  box-shadow: 0 0 22px rgba(135, 255, 113, .4);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease;
}

.burger:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(1, 205, 254, .65); }
.burger:active { transform: translateY(1px); }

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

@keyframes hueshift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

@media (min-width: 640px) {
  .hero { padding: 34px 30px; }
  .heroArt { width: 110px; }
  .glyph { width: 96px; height: 96px; font-size: 38px; }
  div > article { padding: 30px 28px; }
  .footCols { grid-template-columns: 1.5fr 1fr 1fr; }
  .cr { margin-top: 34px; }
}

@media (min-width: 900px) {
  .dock { padding: 8px 20px; gap: 16px; }
  .dock::before { display: none; }
  .dock nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
  }
  .dock nav a { padding: 8px 12px; }
  body.menu-open .dock nav a { padding: 14px 18px; }
}

@media (min-width: 960px) {
  .shell {
    grid-template-columns: minmax(0, 1fr) 268px;
    padding-top: 96px;
    gap: 30px;
  }
  .rail { position: sticky; top: 88px; }
  .hero { min-height: 44vh; }
}

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

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