@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&display=swap');

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

:root {
  --ink: #192617;
  --deep: #0d160e;
  --neon: #87ff71;
  --cyan: #01cdfe;
  --pink: #ff71ce;
  --violet: #b967ff;
  --text: #e4f6e0;
  --muted: #a9c6a2;
  --line: rgba(135, 255, 113, 0.26);
  --card: #213220;
  --r: 28px;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  overflow-x: hidden;
}

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

h1, h2, h3, .brandmark, .ticker, button, .rail-list b, .foot-nav dt {
  font-family: "Space Grotesk", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 顶部 */
.top { position: relative; z-index: 50; }

.ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 20px;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: #0b1409;
  background: linear-gradient(90deg, var(--pink), var(--cyan) 52%, var(--neon));
}

.ticker span {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: rgba(13, 22, 14, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brandmark {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--neon), var(--cyan) 55%, var(--violet));
  box-shadow: 0 0 18px rgba(135, 255, 113, 0.3);
}

.mark {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  background: var(--ink);
  transform: rotate(45deg);
}

.mark-img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

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

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

.mainnav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 16px;
  color: var(--neon);
  text-decoration: none;
}

.mainnav a:hover,
.mainnav a:focus-visible {
  background: rgba(135, 255, 113, 0.14);
  color: #ffffff;
  outline: none;
}

.dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--cyan);
  transform: rotate(45deg);
}

/* 首屏 */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 100vh;
  padding: 110px 0 70px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 70% at 100% 108%, rgba(255, 113, 206, 0.42), transparent 62%),
    radial-gradient(95% 55% at 92% 26%, rgba(1, 205, 254, 0.28), transparent 66%),
    linear-gradient(180deg, rgba(185, 103, 255, 0.24), rgba(25, 38, 23, 0.86) 56%, var(--ink));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(135, 255, 113, 0.32) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 38%, #000);
  mask-image: linear-gradient(180deg, transparent, #000 38%, #000);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background-image:
    linear-gradient(rgba(135, 255, 113, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 205, 254, 0.34) 1px, transparent 1px);
  background-size: 100% 28px, 46px 100%;
  transform: perspective(320px) rotateX(66deg);
  transform-origin: bottom center;
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  padding: 0 24px;
  text-align: right;
  will-change: transform;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 10.5vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: #f2fff0;
  overflow-wrap: anywhere;
  animation: glitch 5.5s ease-in-out infinite;
}

@keyframes glitch {
  0%, 100% {
    text-shadow: 0 0 22px rgba(135, 255, 113, 0.5), 5px 0 0 rgba(1, 205, 254, 0.6), -5px 0 0 rgba(255, 113, 206, 0.55);
  }
  45% {
    text-shadow: 0 0 30px rgba(1, 205, 254, 0.6), -6px 0 0 rgba(255, 113, 206, 0.65), 6px 0 0 rgba(135, 255, 113, 0.6);
  }
  55% {
    text-shadow: 0 0 18px rgba(255, 113, 206, 0.55), 4px 0 0 rgba(135, 255, 113, 0.6), -4px 0 0 rgba(1, 205, 254, 0.6);
  }
}

/* 正文骨架 */
.sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  align-items: start;
  gap: 44px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 76px;
}

.sheet > div {
  grid-column: 1;
  min-width: 0;
}

.sheet > aside {
  grid-column: 2;
  grid-row: 1 / span 60;
  position: sticky;
  top: 78px;
}

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

.lead { padding-top: 50px; }

.lead h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.05;
  color: var(--neon);
  text-shadow: 0 0 22px rgba(135, 255, 113, 0.35);
}

p.subtitle {
  margin: 0 0 22px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 17px;
}

.sheet h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  line-height: 1.16;
  color: var(--cyan);
  overflow-wrap: anywhere;
}

.sheet h3 {
  margin: 28px 0 8px;
  font-size: 1.2rem;
  color: var(--neon);
}

.sheet p { margin: 0 0 1em; max-width: 70ch; }

.sheet ul,
.sheet ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
  max-width: 70ch;
}

.sheet li { margin: 0.32em 0; }

.sheet strong { color: var(--neon); }

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

.sheet blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--card);
  border-radius: var(--r);
}

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

.sheet figure { margin: 24px 0; }
.sheet img { max-width: 100%; height: auto; border-radius: var(--r); display: block; }

/* 侧栏卡片 */
.panel {
  background: var(--card);
  border-radius: var(--r);
  padding: 22px 18px;
}

.rail-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--neon);
  letter-spacing: 0.02em;
}

.rail-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 6px;
  border-radius: 14px;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: rgba(1, 205, 254, 0.14);
  color: #ffffff;
  outline: none;
}

.rail-list b { color: var(--cyan); font-size: 16px; }

/* 页脚 */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 26px;
  padding: 26px 20px;
  background: var(--deep);
  border-top: 1px solid var(--line);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--neon);
}

.foot-nav { min-width: 0; }

.foot-nav dl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
  margin: 0;
}

.foot-nav dt {
  padding: 8px 0 8px 8px;
  color: var(--cyan);
  font-size: 16px;
}

.foot-nav dd { margin: 0; }

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 6px;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
}

.foot-nav a:hover,
.foot-nav a:focus-visible { color: var(--neon); outline: none; }

.subform {
  display: flex;
  gap: 8px;
}

.subform input {
  min-height: 44px;
  width: 190px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #1b2a1a;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

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

.subform button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  color: #0b1409;
  font-size: 16px;
  cursor: pointer;
}

.subform button:hover { filter: hue-rotate(-25deg); }

.foot-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 16px;
}

.foot-copy p { margin: 0; }

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: var(--neon);
  text-decoration: none;
}

/* 位移入场 */
.rev {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 900px) {
  .sheet { grid-template-columns: 1fr; gap: 30px; padding-bottom: 60px; }
  .sheet > aside { grid-column: 1; grid-row: auto; position: static; }
  .rail-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .ticker { padding: 8px 14px; font-size: 16px; letter-spacing: 0.08em; }
  .bar { padding: 8px 12px; gap: 10px; align-items: flex-start; }
  .brandmark { width: 42px; height: 42px; }
  .mainnav ul { gap: 0; }
  .mainnav a { padding: 8px 9px; font-size: 16px; }
  .hero { padding: 96px 0 64px; }
  .hero-inner { padding: 0 18px; }
  .sheet { padding: 0 16px 56px; }
  .lead { padding-top: 38px; }
  .sheet > div + div { margin-top: 34px; padding-top: 34px; }
  .rail-list { grid-template-columns: 1fr; }
  .foot { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 16px; }
  .subform { width: 100%; }
  .subform input { flex: 1 1 auto; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 { animation: none; text-shadow: 0 0 22px rgba(135, 255, 113, 0.45); }
  .rev { opacity: 1; transform: none; transition: none; }
}

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