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

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

:root {
  --red: #ff0000;
  --pink: #ff006e;
  --ink: #1a1a2e;
  --bg: #07070e;
  --txt: #efeaff;
  --dim: #a6a1c4;
  --cyan: #25e2ff;
  --edge: rgba(255, 0, 110, .34);
  --glass: rgba(255, 255, 255, .05);
  --r: 10px;
  --mono: "Space Mono", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-monospace, SFMono-Regular, monospace;
  --wide: "Syncopate", "Space Mono", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

body {
  margin: 0;
  padding-bottom: 104px;
  min-height: 100vh;
  color: var(--txt);
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(255, 0, 110, .2), transparent 62%),
    radial-gradient(760px 480px at -6% 4%, rgba(37, 226, 255, .12), transparent 58%),
    var(--bg);
  background-attachment: fixed;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  opacity: .55;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .055) 0 1px, transparent 1px 3px);
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

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

.corner {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 120;
  display: grid;
  place-items: center;
  min-width: 46px;
  min-height: 46px;
  padding: 7px 12px;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: rgba(7, 7, 14, .78);
  backdrop-filter: blur(8px);
  text-decoration: none;
  font-family: var(--wide);
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--pink);
  text-shadow: 0 0 10px var(--pink);
  box-shadow: 0 0 18px rgba(255, 0, 110, .25);
}

.corner img { display: block; width: 30px; height: 30px; object-fit: contain; }
.corner:hover, .corner:focus-visible { color: #fff; border-color: #fff; }
.corner-word { line-height: 1; }

/* ---------- 首屏 ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(22px, 4vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100svh;
  padding: clamp(92px, 13vh, 132px) clamp(18px, 5vw, 64px) clamp(40px, 7vh, 72px);
}

.hero-copy { max-width: 36ch; }

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--wide);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .3em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(37, 226, 255, .8);
}

h1 {
  margin: 0 0 18px;
  font-family: var(--wide);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 60px);
  line-height: 1.16;
  color: #fff;
  letter-spacing: .01em;
  text-shadow:
    0 0 10px rgba(255, 0, 110, .95),
    0 0 34px rgba(255, 0, 110, .55),
    3px 3px 0 rgba(255, 0, 0, .4);
}

.lede {
  margin: 0;
  max-width: 40ch;
  font-size: 16px;
  color: var(--dim);
}

.hero-art {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: linear-gradient(150deg, rgba(255, 0, 110, .16), rgba(37, 226, 255, .09) 60%, rgba(26, 26, 46, .5));
  box-shadow: 0 0 46px rgba(255, 0, 110, .22), inset 0 0 70px rgba(37, 226, 255, .07);
}

.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.2) contrast(1.06); }

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(7, 7, 14, .65));
}

.hero-art.is-geo { display: grid; place-items: center; }

.hero-art.is-geo .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 34px 34px;
}

.hero-art.is-geo .orb {
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .92), rgba(255, 0, 110, .8) 32%, rgba(26, 26, 46, .9) 70%);
  box-shadow: 0 0 60px rgba(255, 0, 110, .7);
  animation: float 7s ease-in-out infinite;
}

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

/* ---------- 主体骨架 ---------- */

.shell {
  display: grid;
  grid-template-columns: minmax(0, 242px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 64px) clamp(18px, 5vw, 64px);
}

.rail {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 18px 16px;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 26px rgba(255, 0, 110, .12);
}

.rail-title {
  margin: 0 0 6px;
  font-family: var(--wide);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: .12em;
  color: #fff;
  text-shadow: 0 0 10px var(--pink);
}

.rail .subtitle {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--cyan);
}

.rail ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: r;
}

.rail li { counter-increment: r; }

.rail a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-height: 42px;
  padding: 9px 4px;
  border-bottom: 1px dashed rgba(255, 255, 255, .1);
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.45;
}

.rail a::before {
  content: counter(r, decimal-leading-zero);
  color: var(--pink);
  font-size: 12px;
  letter-spacing: .06em;
}

.rail a:hover, .rail a:focus-visible { color: #fff; text-shadow: 0 0 10px var(--pink); }

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

.prose article {
  margin: 0 0 clamp(18px, 3vw, 28px);
  padding: clamp(24px, 3.6vw, 40px) clamp(16px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--r);
  background: linear-gradient(150deg, rgba(26, 26, 46, .74), rgba(26, 26, 46, .34));
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(255, 0, 110, .06), 0 20px 44px -30px rgba(0, 0, 0, .95);
}

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

.prose article, .prose h2, .prose h3 { scroll-margin-top: 104px; }

.prose h2 {
  margin: 0 0 14px;
  font-family: var(--wide);
  font-size: clamp(20px, 3.1vw, 27px);
  line-height: 1.32;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 0, 110, .7);
}

.prose h3 {
  margin: 1.4em 0 .6em;
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 0 9px rgba(37, 226, 255, .55);
}

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

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(37, 226, 255, .55);
}

.prose a:hover { text-shadow: 0 0 12px var(--cyan); }

.prose ul, .prose ol { margin: 0 0 1.05em; padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--pink); }

.prose blockquote {
  margin: 0 0 1.05em;
  padding: 12px 16px;
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(255, 0, 110, .08);
  color: #e8e3ff;
}

.prose strong, .prose b { color: #fff; }

.prose time {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: .08em;
}

.prose figure { margin: 0 0 1.05em; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--dim); }
.prose img { border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, .12); text-align: left; }

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

.site-foot {
  position: relative;
  z-index: 2;
  margin-top: clamp(36px, 6vw, 80px);
  border-top: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(26, 26, 46, .92), rgba(7, 7, 14, .98));
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr .8fr 1.2fr;
  gap: clamp(18px, 3vw, 38px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 54px) clamp(18px, 5vw, 64px) 26px;
}

.foot-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--wide);
  font-size: 15px;
  letter-spacing: .14em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 12px var(--pink);
}

.site-foot address {
  margin: 10px 0 0;
  font-style: normal;
  font-size: 16px;
  line-height: 1.5;
  color: var(--dim);
  word-break: break-all;
}

.foot-nav dl {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 12px;
  margin: 0;
}

.foot-nav dt {
  color: var(--pink);
  font-size: 12px;
  letter-spacing: .1em;
}

.foot-nav dd { margin: 0; }

.foot-nav a, .foot-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 5px 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--dim);
  text-decoration: none;
}

.foot-nav a:hover, .foot-nav a:focus-visible,
.foot-links a:hover, .foot-links a:focus-visible { color: #fff; text-shadow: 0 0 10px var(--pink); }

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

.sub-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--dim);
  letter-spacing: .06em;
}

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

.sub-row input {
  flex: 1 1 130px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: rgba(7, 7, 14, .72);
  color: var(--txt);
  font: inherit;
  font-size: 16px;
}

.sub-row input::placeholder { color: #6f6a90; }

.sub-row button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--pink);
  border-radius: var(--r);
  background: rgba(255, 0, 110, .18);
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  text-shadow: 0 0 10px var(--pink);
}

.sub-row button:hover { background: rgba(255, 0, 110, .32); box-shadow: 0 0 18px rgba(255, 0, 110, .45); }

.foot-bar {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 16px clamp(18px, 5vw, 64px);
  text-align: center;
}

.foot-bar p {
  margin: 0;
  font-size: 15px;
  letter-spacing: .06em;
  color: #8b86a9;
}

/* ---------- 底部固定导航 ---------- */

.deck {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px clamp(8px, 2.5vw, 24px);
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--edge);
  background: rgba(8, 8, 16, .86);
  backdrop-filter: blur(14px);
  box-shadow: 0 -12px 34px rgba(0, 0, 0, .62);
}

.deck ul {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.deck ul::-webkit-scrollbar { display: none; }
.deck li { flex: 0 0 auto; }

.deck a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--r);
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--dim);
  text-decoration: none;
}

.deck a:hover, .deck a:focus-visible, .deck a.is-active {
  color: #fff;
  background: rgba(255, 0, 110, .16);
  text-shadow: 0 0 10px var(--pink);
  box-shadow: inset 0 0 0 1px rgba(255, 0, 110, .42);
}

.deck .deck-cta {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--pink);
  border-radius: var(--r);
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 10px var(--pink);
  background: linear-gradient(120deg, rgba(255, 0, 0, .3), rgba(255, 0, 110, .3));
  box-shadow: 0 0 18px rgba(255, 0, 110, .35);
}

.deck .deck-cta:hover, .deck .deck-cta:focus-visible { background: linear-gradient(120deg, rgba(255, 0, 0, .5), rgba(255, 0, 110, .5)); }

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

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  }

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

  .js .stagger > * {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .45s ease, transform .45s ease;
  }

  .js .stagger.in > * { opacity: 1; transform: none; }

  .js .stagger.in > *:nth-child(2) { transition-delay: .05s; }
  .js .stagger.in > *:nth-child(3) { transition-delay: .1s; }
  .js .stagger.in > *:nth-child(4) { transition-delay: .15s; }
  .js .stagger.in > *:nth-child(5) { transition-delay: .2s; }
  .js .stagger.in > *:nth-child(6) { transition-delay: .25s; }
  .js .stagger.in > *:nth-child(7) { transition-delay: .3s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art.is-geo .orb { animation: none; }
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding-top: 96px;
    gap: 26px;
  }

  .hero-copy { max-width: none; }
  .hero-art { justify-self: start; max-width: 100%; aspect-ratio: 16 / 10; }
  .shell { grid-template-columns: 1fr; padding-top: 28px; }
  .rail { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; padding-bottom: 96px; }
  .foot-grid { grid-template-columns: 1fr; }
  .deck a { padding: 8px 10px; font-size: 14px; }
  .foot-bar { padding-bottom: 18px; }
  .prose time { font-size: 13px; }
}

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