:root {
  --bg: #08090c;
  --bg-2: #0c0f14;
  --bg-elev: rgba(16, 20, 28, 0.82);
  --stroke: rgba(148, 163, 184, 0.16);
  --stroke-strong: rgba(94, 234, 212, 0.32);
  --ink: #e8edf2;
  --muted: #8b96a8;
  --cyan: #5eead4;
  --cyan-dim: #2a9d8f;
  --amber: #e4b86a;
  --violet: #c4b5fd;
  --danger: #fb7185;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --max: 1120px;
  --header-h: 4.25rem;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "Cascadia Mono", "Sarasa Mono SC", "JetBrains Mono", "Consolas", "Microsoft YaHei Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.reduce-motion {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  line-height: 1.75;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(720px 380px at 8% -10%, rgba(94, 234, 212, 0.06), transparent 55%),
    linear-gradient(180deg, transparent 0%, var(--bg) 78%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 0 1px,
      transparent 1px 48px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0 1px,
      transparent 1px 48px
    );
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    rgba(0, 0, 0, 0.035) 3px 4px
  );
  opacity: 0.35;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #99f6e4;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.4rem 0.7rem;
  background: var(--cyan);
  color: #04221c;
  z-index: 40;
}

.skip-link:focus {
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(6, 8, 13, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(6, 8, 13, 0.92);
  border-bottom-color: var(--stroke);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.brand-name {
  font-weight: 650;
  letter-spacing: 0.04em;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  border: 1px solid var(--stroke);
  border-radius: 4px;
  padding: 0.35rem 0.75rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-family: var(--mono);
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(94, 234, 212, 0.1);
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 1.4rem auto 3.5rem;
}

.page-home main {
  width: 100%;
  margin: 0 0 3.5rem;
}

.page-wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

h1,
h2,
h3 {
  line-height: 1.28;
  font-weight: 700;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.15rem);
  letter-spacing: 0.02em;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.32rem;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--amber);
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-family: var(--mono);
}

.mono {
  font-family: var(--mono);
}

.section-title {
  margin: 0 0 1rem;
  font-size: 1.32rem;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--mono);
}

.meta-line span + span::before {
  content: "· ";
  color: var(--cyan-dim);
}

.lead {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-cinematic {
  position: relative;
  min-height: min(68vh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-cinematic canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 40%, rgba(94, 234, 212, 0.2), transparent 28%),
    radial-gradient(circle at 70% 30%, rgba(245, 193, 108, 0.14), transparent 24%),
    repeating-linear-gradient(
      90deg,
      transparent 0 46px,
      rgba(94, 234, 212, 0.05) 46px 47px
    ),
    var(--bg-2);
  animation: fallback-drift 18s linear infinite;
}

.hero-fallback[hidden],
.fallback-msg[hidden],
canvas[hidden] {
  display: none !important;
}

@keyframes fallback-drift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 0 0, 180px 0; }
}

.hero-cinematic .hero-copy {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0 0 4.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 8, 13, 0.2) 35%, rgba(6, 8, 13, 0.88) 100%);
  width: 100%;
  padding: 8rem 0 4.5rem;
}

.hero-cinematic .hero-copy-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.scroll-hint {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-family: var(--mono);
}

.page-hero {
  padding: 1.6rem 0 1.2rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0.4rem;
}

.bench-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}

.bench-list > li + li {
  border-top: 1px solid var(--stroke);
}

.bench-list a,
.bench-row {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  gap: 0.35rem 0.95rem;
  align-items: start;
  padding: 0.95rem 1.15rem;
  text-decoration: none;
  color: inherit;
}

.bench-list a:hover {
  background: rgba(94, 234, 212, 0.05);
  color: inherit;
}

.bench-idx {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan-dim);
  padding-top: 0.18rem;
}

.bench-name {
  display: block;
  font-weight: 650;
  margin-bottom: 0.2rem;
}

.bench-note {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.bench-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  padding-top: 0.22rem;
  white-space: nowrap;
}

.bench-status.is-live {
  color: var(--amber);
}

.bench-status.is-wip {
  color: var(--muted);
}

.crumb {
  margin: 0 0 0.45rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--cyan);
}

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--stroke);
}

.feed li {
  position: relative;
  padding: 0 0 1.35rem 1.35rem;
}

.feed li:last-child {
  padding-bottom: 0;
}

.feed li::before {
  content: "";
  position: absolute;
  left: -0.4rem;
  top: 0.45rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.12);
}

.feed li.is-next::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(228, 184, 106, 0.16);
}

.feed time,
.feed .when {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--amber);
  margin-bottom: 0.15rem;
}

.feed h2,
.feed h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.feed p {
  margin: 0;
  color: var(--muted);
}

.feed.is-full li {
  padding-bottom: 1.55rem;
}

.more-row {
  margin: 1.1rem 0 0;
}

.more-link {
  font-family: var(--mono);
  font-size: 0.82rem;
  text-decoration: none;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.interest-card {
  padding: 1.05rem 1.1rem 1.15rem;
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.interest-card .mono {
  display: block;
  color: var(--cyan-dim);
  font-size: 0.72rem;
  margin-bottom: 0.45rem;
}

.interest-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.interest-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.card,
.panel,
.note {
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card,
.panel {
  padding: 1.3rem 1.35rem 1.4rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.card:hover {
  border-color: var(--stroke-strong);
  transform: translateY(-3px);
  color: inherit;
}

.card p,
.panel p,
.note p {
  margin: 0;
  color: var(--muted);
}

.tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.tag.is-live {
  color: var(--amber);
}

.section {
  margin-top: 2.4rem;
}

.two-col {
  grid-template-columns: 1.2fr 0.8fr;
}

.note {
  padding: 1.15rem 1.2rem;
  background: rgba(18, 28, 36, 0.9);
}

.list {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.list li + li {
  margin-top: 0.4rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }

html.reduce-motion .reveal {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.demo-stage {
  position: relative;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  background: #05070c;
  box-shadow: var(--shadow);
}

.demo-stage canvas {
  display: block;
  width: 100%;
  height: 480px;
  touch-action: none;
}

.demo-stage.is-ai canvas#net-canvas {
  height: 420px;
}

.demo-stats {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  right: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  pointer-events: none;
  z-index: 2;
}

.stat-pill {
  background: rgba(6, 10, 18, 0.78);
  border: 1px solid var(--stroke);
  border-radius: 4px;
  padding: 0.28rem 0.65rem;
  font-size: 0.74rem;
  font-family: var(--mono);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.stat-pill b {
  color: var(--cyan);
  font-weight: 650;
}

.demo-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 1rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 12, 0.94));
}

.hud-btn {
  appearance: none;
  border: 1px solid var(--stroke-strong);
  background: rgba(94, 234, 212, 0.1);
  color: var(--ink);
  border-radius: 4px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.86rem;
  font-family: var(--mono);
  cursor: pointer;
}

.hud-btn:hover {
  background: rgba(94, 234, 212, 0.22);
}

.hud-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.hud-range {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.hud-range input {
  accent-color: var(--cyan);
  width: 120px;
}

.disclaimer {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.fallback-msg {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 3;
  max-width: 16rem;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  background: rgba(245, 193, 108, 0.12);
  border: 1px solid rgba(245, 193, 108, 0.35);
  color: var(--amber);
  font-size: 0.75rem;
}

.ai-layout {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.ai-sliders {
  display: grid;
  gap: 1rem;
}

.slider-row label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}

.slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
}

.heat-wrap {
  margin-top: 1rem;
}

.heat-wrap canvas {
  width: min(100%, 260px);
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: #071016;
  cursor: crosshair;
  image-rendering: pixelated;
}

.dash-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.counter-card {
  text-align: center;
  padding: 1.4rem 1rem;
}

.counter {
  font-family: var(--mono);
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  font-weight: 650;
  color: var(--cyan);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.counter-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.status-grid {
  grid-template-columns: repeat(3, 1fr);
}

.status-card .bar-track {
  margin-top: 0.9rem;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.status-card .bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  transition: width 1.1s ease;
}

.status-card.is-in .bar-fill {
  background: linear-gradient(90deg, #b45309, var(--amber));
}

.status-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.chip {
  display: inline-block;
  border-radius: 4px;
  padding: 0.12rem 0.5rem;
  border: 1px solid var(--stroke);
  font-size: 0.7rem;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.chip.is-wait {
  color: var(--amber);
  border-color: rgba(245, 193, 108, 0.35);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--stroke);
}

.timeline li {
  position: relative;
  padding: 0 0 1.5rem 1.35rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0.42rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.14);
}

.timeline li.is-next::before {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 193, 108, 0.16);
}

.when {
  display: block;
  color: var(--amber);
  font-size: 0.8rem;
  font-family: var(--mono);
  margin-bottom: 0.12rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--stroke);
  background: #05070b;
  padding: 1.45rem 1.25rem 1.9rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner p {
  margin: 0 0 0.45rem;
}

.beian {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: center;
}

.beian-no {
  color: var(--ink);
}

.beian-link.is-placeholder {
  color: var(--muted);
  pointer-events: none;
  cursor: default;
  text-decoration: underline;
  text-decoration-style: dotted;
}

@media (max-width: 1100px) {
  .interest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .cards,
  .two-col,
  .ai-layout,
  .dash-counters,
  .status-grid,
  .interest-grid {
    grid-template-columns: 1fr;
  }

  .bench-list a,
  .bench-row {
    grid-template-columns: 2.2rem minmax(0, 1fr);
  }

  .bench-status {
    grid-column: 2;
    padding-top: 0;
  }

  .demo-stage canvas,
  .demo-stage.is-ai canvas#net-canvas {
    height: 360px;
  }

  .nav-toggle-label {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(10, 14, 22, 0.96);
    border-bottom: 1px solid var(--stroke);
    padding: 0.5rem 1rem 0.85rem;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .nav-toggle:checked ~ .site-nav {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fallback,
  .card {
    animation: none;
    transition: none;
  }
}
