:root {
  color-scheme: dark;
  --bg: #0b0e0d;
  --surface: rgba(20, 26, 23, 0.82);
  --surface-strong: #141a17;
  --line: rgba(237, 241, 226, 0.15);
  --ink: #f2f0e7;
  --muted: #9ca79d;
  --acid: #c7ff63;
  --coral: #ff7659;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  --radius: 26px;
  --max: 1180px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #ecebdd;
  --surface: rgba(250, 248, 236, 0.85);
  --surface-strong: #faf8ed;
  --line: rgba(13, 25, 19, 0.16);
  --ink: #102019;
  --muted: #5e6b62;
  --acid: #3c7f16;
  --coral: #c2472f;
  --shadow: 0 30px 90px rgba(37, 48, 38, 0.14);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font: inherit; }

::selection {
  background: var(--acid);
  color: #0b0e0d;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--acid);
  color: #0b0e0d;
  text-decoration: none;
  transition: top 160ms ease;
}

.skip-link:focus { top: 16px; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image: radial-gradient(rgba(236, 241, 222, 0.08) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 88%);
}

.glow {
  position: absolute;
  display: block;
  width: 46vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.17;
}

.glow-a { top: -16vw; right: -12vw; background: var(--acid); }
.glow-b { top: 42vh; left: -24vw; background: var(--coral); opacity: .09; }

.grain {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
}

.site-header {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--acid);
  font-family: Georgia, "Songti SC", serif;
  font-size: 20px;
  font-style: italic;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}

.site-nav > a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav > a:hover { color: var(--ink); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-icon { color: var(--acid); }

main, .site-footer {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.hero {
  min-height: min(760px, calc(100vh - 92px));
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  align-items: center;
  gap: clamp(32px, 7vw, 110px);
  padding: clamp(72px, 9vw, 126px) 0;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow, .section-kicker {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.eyebrow { display: flex; align-items: center; gap: 10px; }

.pulse, .live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 0 rgba(199, 255, 99, .5);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199,255,99,.32); }
  50% { box-shadow: 0 0 0 7px rgba(199,255,99,0); }
}

h1 {
  margin: 0;
  max-width: 900px;
  font-family: "Songti SC", SimSun, Georgia, serif;
  font-size: clamp(56px, 9vw, 118px);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.065em;
}

h1 em {
  color: var(--acid);
  font-weight: 500;
}

.hero-lede {
  max-width: 640px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.9;
}

.hero-lede strong { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--acid); border-color: var(--acid); color: #0b0e0d; }
.button-ghost:hover { border-color: var(--ink); }

.hero-art {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  justify-self: end;
}

.orbit {
  position: absolute;
  inset: 13%;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit-two { inset: 2%; transform: rotate(58deg) scaleY(.55); }
.orbit-three { inset: 25%; transform: rotate(-38deg) scaleX(.58); border-color: rgba(199,255,99,.25); }
.orbit-one { animation: spin 24s linear infinite; }
.orbit-two { animation: spin-reverse 34s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-302deg) scaleY(.55); } }

.core {
  position: absolute;
  inset: 34%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--acid);
  color: #0b0e0d;
  box-shadow: 0 0 90px rgba(199, 255, 99, .17);
}

.core::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, transparent 10%, rgba(255,255,255,.55) 48%, transparent 58%);
  transform: translateX(-120%);
  animation: sheen 7s ease-in-out infinite;
}

@keyframes sheen { 48%, 100% { transform: translateX(120%); } }

.core span {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(54px, 8vw, 96px);
  font-style: italic;
}

.satellite {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 20px rgba(255, 118, 89, .55);
}

.satellite-a { left: 9%; top: 25%; }
.satellite-b { right: 15%; bottom: 13%; width: 8px; height: 8px; background: var(--ink); box-shadow: none; }

.art-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .18em;
  text-align: right;
}

.status-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 34px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.status-panel h2, .section-intro h2 {
  margin: 0;
  font-family: "Songti SC", SimSun, Georgia, serif;
  font-weight: 500;
  letter-spacing: -.04em;
}

.status-panel h2 { font-size: 34px; }
.section-kicker { margin-bottom: 12px; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.status-grid > div {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.status-grid dt {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
}

.status-grid dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  word-break: break-word;
}

.copy-domain {
  margin-left: 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}

.copy-domain:hover { color: var(--acid); border-color: var(--acid); }

.about { padding: clamp(90px, 12vw, 160px) 0; }

.section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 46px;
}

.section-intro h2 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.12;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.card:hover { transform: translateY(-5px); border-color: rgba(199,255,99,.45); }

.card-index {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
}

.card h3 {
  margin: auto 0 18px;
  font-family: "Songti SC", SimSun, Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.card-note {
  margin-top: 20px !important;
  color: var(--acid) !important;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card-featured {
  background: var(--acid);
  border-color: var(--acid);
  color: #0b0e0d;
}

.card-featured .card-index,
.card-featured p,
.card-featured .card-note { color: rgba(11,14,13,.68) !important; }

.card-wide {
  grid-column: 1 / -1;
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, .6fr);
  align-items: end;
  gap: 40px;
  background: var(--surface-strong);
}

.card-wide h3 { margin: 64px 0 14px; font-size: clamp(30px, 4vw, 48px); }
.card-wide p { max-width: 720px; }

.signature {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: .14em;
  text-align: right;
}

.signature-line {
  width: 72px;
  height: 1px;
  background: var(--line);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer p { margin: 0; }
.back-top { text-decoration: none; }
.back-top:hover { color: var(--acid); }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { width: min(80vw, 380px); justify-self: center; margin-top: 20px; }
  .status-panel { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header, main, .site-footer { width: min(calc(100% - 32px), var(--max)); }
  .site-header { min-height: 74px; }
  .site-nav { gap: 14px; }
  .site-nav > a { display: none; }
  .theme-label { display: none; }
  .hero { padding-top: 64px; }
  h1 { font-size: clamp(48px, 16vw, 76px); }
  .hero-lede { font-size: 15px; }
  .status-panel { padding: 24px; }
  .status-grid { grid-template-columns: 1fr; }
  .status-grid > div { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .section-intro { align-items: flex-start; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 270px; }
  .card-wide { grid-template-columns: 1fr; }
  .signature { justify-content: flex-start; }
  .site-footer { flex-wrap: wrap; }
  .back-top { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
