@font-face {
  font-family: "JX Serif";
  src: url("../fonts/jx-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JX Serif";
  src: url("../fonts/jx-serif-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 单一深色视觉：釉黑为底，酒液琥珀为唯一强调色 */
:root {
  color-scheme: dark;

  --glaze: #120e0b;
  --cellar: #1b1511;
  --jar: #261e18;
  --amber: #d6a15a;
  --amber-hi: #f0c98b;
  --sorghum: #8e2a26;
  --qu: #ede6da;
  --muted: #a99d8e;
  --faint: #857a6d;
  --ok: #b7cfa2;

  --line: rgba(237, 230, 218, 0.09);
  --line-strong: rgba(237, 230, 218, 0.17);
  --amber-line: rgba(214, 161, 90, 0.38);
  --amber-wash: rgba(214, 161, 90, 0.08);

  --serif: "JX Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei UI",
    "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "WenQuanYi Zen Hei", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --fs-hero: clamp(36px, 5vw, 72px);
  --fs-h2: clamp(30px, 3.9vw, 52px);
  --fs-h3: clamp(26px, 2.6vw, 38px);
  --fs-lead: clamp(17px, 1.35vw, 19px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-micro: 12px;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--glaze);
  color: var(--qu);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 釉面颗粒 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg,
canvas {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(214, 161, 90, 0.35);
  color: var(--qu);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--amber);
  color: var(--glaze);
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header[data-scrolled],
.site-header[data-open] {
  background: rgba(18, 14, 11, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--qu);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.12em;
}
.brand svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 36px);
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--qu);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.text-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.text-link:hover {
  color: var(--qu);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  color: var(--qu);
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.25s ease;
}
.site-header[data-open] .menu-btn span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.site-header[data-open] .menu-btn span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-panel {
  display: none;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn-primary {
  background: var(--amber);
  color: #1c130a;
}
.btn-primary:hover {
  background: var(--amber-hi);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--qu);
}
.btn-ghost:hover {
  border-color: var(--amber-line);
  background: var(--amber-wash);
}
.btn-sm {
  min-height: 38px;
  padding: 0 18px;
  font-size: 14px;
}
.btn[aria-disabled="true"] {
  border-color: var(--line);
  color: var(--faint);
  background: transparent;
  cursor: default;
}

/* ---------- 通用排版 ---------- */
.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

.section {
  position: relative;
  padding-block: clamp(80px, 10vw, 144px);
  border-top: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
}

.chapter {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  align-self: start;
  display: flex;
  gap: 14px;
  margin: 8px 0 0;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.5em;
  color: var(--amber);
}
.chapter small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--faint);
}

.section-title {
  margin: 0;
  max-width: 15em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.section-title span {
  display: inline-block;
}

.section-lead {
  margin: 24px 0 0;
  max-width: 36em;
  font-size: var(--fs-lead);
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 88px) clamp(72px, 9vw, 128px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(214, 161, 90, 0.1), transparent);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(237, 230, 218, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 230, 218, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 10%, transparent 72%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy {
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-title {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 1.14;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.hero-title span {
  display: inline-block;
}
.hero-title em {
  font-style: normal;
  color: var(--amber-hi);
}

.hero-lead {
  margin: 28px 0 0;
  max-width: 31em;
  font-size: var(--fs-lead);
  line-height: 1.9;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 16px clamp(28px, 4vw, 56px);
  margin: 56px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.facts div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.facts dt {
  order: 2;
  font-size: var(--fs-small);
  color: var(--faint);
}
.facts dd {
  order: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.2;
  color: var(--qu);
}
.facts dd small {
  margin-left: 4px;
  font-size: 15px;
  color: var(--muted);
}

.hero-art {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
}
.hero-art canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--faint);
}
.hud span {
  position: absolute;
  white-space: nowrap;
}
.hud b {
  font-weight: 400;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.hud-tl {
  top: 14px;
  left: 18px;
  color: var(--amber);
}
.hud-tr {
  top: 14px;
  right: 18px;
}
.hud-bl {
  bottom: 14px;
  left: 18px;
}
.hud-br {
  bottom: 14px;
  right: 18px;
}
.corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--amber-line);
}
.corner.tl {
  top: 0;
  left: 0;
  border-top-width: 1px;
  border-left-width: 1px;
}
.corner.tr {
  top: 0;
  right: 0;
  border-top-width: 1px;
  border-right-width: 1px;
}
.corner.bl {
  bottom: 0;
  left: 0;
  border-bottom-width: 1px;
  border-left-width: 1px;
}
.corner.br {
  bottom: 0;
  right: 0;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

@keyframes rise {
  from {
    transform: translateY(14px);
  }
  to {
    transform: none;
  }
}

/* ---------- 内核 · 回执链 ---------- */
.chain {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.chain::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-hi), transparent);
  animation: flow 6s linear infinite;
}
@keyframes flow {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(560%);
  }
}

.step {
  position: relative;
  padding: 32px 28px 0 0;
}
.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--glaze);
  border: 1px solid var(--amber);
}
.step-no {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  color: var(--amber);
}
.step h3 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
}
.step code {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  overflow-wrap: anywhere;
}
.step p {
  margin: 14px 0 0;
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--muted);
}

/* 回执流终端 */
.console {
  position: relative;
  margin-top: 64px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(214, 161, 90, 0.035), transparent 40%), #0d0a08;
  font-family: var(--mono);
  font-size: 12.5px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.console::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(237, 230, 218, 0.018) 0 1px, transparent 1px 3px);
}
.console-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  letter-spacing: 0.06em;
}
.console-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  color: var(--qu);
  letter-spacing: 0.1em;
}
.console-tag {
  margin-left: auto;
}
.live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(183, 207, 162, 0.5);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  to {
    box-shadow: 0 0 0 8px rgba(183, 207, 162, 0);
  }
}
.console-head,
.log-line {
  display: grid;
  grid-template-columns: 112px 200px minmax(0, 1fr) minmax(0, 200px);
  gap: 16px;
  padding: 0 18px;
}
.console-head {
  padding-top: 12px;
  padding-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--faint);
  opacity: 0.7;
}
.console-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: calc(10 * 30px + 12px);
  padding-bottom: 12px;
  overflow: hidden;
}
.log-line {
  align-items: center;
  flex: none;
  height: 30px;
  color: var(--muted);
  white-space: nowrap;
}
.log-line > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.log-line.enter {
  animation: logIn 0.4s ease-out both;
}
@keyframes logIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.log-time {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.log-stage {
  color: var(--amber);
}
.log-stage small {
  margin-left: 6px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--faint);
}
.log-cap {
  color: var(--qu);
}
.log-out {
  font-variant-numeric: tabular-nums;
}
.log-line.receipt .log-out {
  color: var(--ok);
}
.log-line.receipt {
  background: linear-gradient(90deg, rgba(183, 207, 162, 0.06), transparent 70%);
}
.log-line.gap {
  height: 12px;
}

/* 指针光边 */
.glow {
  position: relative;
}
.glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(240, 201, 139, 0.75), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.glow:hover::before {
  opacity: 1;
}

.note {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 56px 0 0;
  max-width: 44em;
  font-size: var(--fs-small);
  color: var(--faint);
}
.note::before {
  content: "";
  flex: none;
  width: 24px;
  height: 1px;
  background: var(--amber);
  transform: translateY(-4px);
}

/* ---------- 能力 ---------- */
.cap-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  margin-top: 72px;
}

.cap-index {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  align-self: start;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.cap-index a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 19px;
  transition: color 0.25s ease;
}
.cap-index a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  transition: background-color 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}
.cap-index a:hover {
  color: var(--muted);
}
.cap-index a[aria-current="true"] {
  color: var(--qu);
}
.cap-index a[aria-current="true"]::before {
  background: var(--amber);
  opacity: 1;
  box-shadow: 0 0 12px var(--amber);
}

.cap-list {
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 9vw, 128px);
}

.cap {
  scroll-margin-top: calc(var(--header-h) + 40px);
}
.cap-ns {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--amber);
}
.cap h3 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.25;
  text-wrap: balance;
}
.cap h3 span {
  color: var(--faint);
}
.cap > p {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--muted);
}

.points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  max-width: 560px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.points li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 9px;
  height: 1px;
  background: var(--amber);
}

/* 示意面板 */
.specimen {
  margin-top: 36px;
  max-width: 560px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(237, 230, 218, 0.025), rgba(237, 230, 218, 0)) var(--cellar);
  font-size: var(--fs-small);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.spec-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.spec-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--jar);
  border: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 16px;
}
.spec-title {
  font-size: 15px;
  color: var(--qu);
}
.spec-sub {
  font-size: 12.5px;
  color: var(--faint);
}
.spec-body {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(214, 161, 90, 0.06);
  border: 1px solid rgba(214, 161, 90, 0.16);
  line-height: 1.75;
  color: var(--qu);
}
.spec-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.spec-row.split {
  justify-content: space-between;
}
.spec-row .spec-row {
  margin-top: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.chip.ok {
  color: var(--ok);
  border-color: rgba(183, 207, 162, 0.3);
}
.chip.wait {
  color: var(--amber-hi);
  border-color: var(--amber-line);
  background: var(--amber-wash);
}
.chip.ok::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.mini-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--muted);
}
.mini-btn.primary {
  border-color: transparent;
  background: var(--amber);
  color: #1c130a;
}

.bars {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.bar {
  display: grid;
  grid-template-columns: 3.5em minmax(0, 1fr) 2em;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.bar i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(214, 161, 90, 0.5), var(--amber));
}
.bar b {
  font-weight: 400;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--qu);
}
.bar.low i {
  background: linear-gradient(90deg, rgba(142, 42, 38, 0.6), #b4473c);
}

.frames {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.frame {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
  color: var(--faint);
}
.frame i {
  display: block;
  aspect-ratio: 9 / 13;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.frame:nth-child(1) i {
  background: radial-gradient(120% 70% at 50% 20%, rgba(237, 230, 218, 0.28), transparent 60%),
    linear-gradient(180deg, #3a3631, #16120e);
}
.frame:nth-child(2) i {
  background: radial-gradient(90% 60% at 50% 70%, #a8352f, transparent 70%),
    linear-gradient(180deg, #2a1411, #140c0a);
}
.frame:nth-child(3) i {
  background: radial-gradient(55% 45% at 50% 58%, #7a5433, #2a1c13 70%), #140e0b;
}
.frame:nth-child(4) i {
  background: radial-gradient(40% 32% at 50% 55%, #f0c98b, #9a6428 60%, #1c130c 100%);
}

.steps-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--faint);
}
.steps-inline span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.steps-inline span + span::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--line-strong);
}
.steps-inline .done {
  color: var(--muted);
}
.steps-inline .now {
  color: var(--amber-hi);
}

.progress {
  margin-top: 16px;
}
.progress-track {
  height: 6px;
  border-radius: 3px;
  background: var(--jar);
  overflow: hidden;
}
.progress-track i {
  display: block;
  height: 100%;
  width: 70%;
  background: linear-gradient(90deg, rgba(214, 161, 90, 0.5), var(--amber));
}
.progress-label {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.ask {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.ask svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--faint);
}

.ecosystem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 48px;
  margin-top: clamp(80px, 9vw, 128px);
  padding: 28px 0;
  border-block: 1px solid var(--line);
}
.ecosystem h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
}
.ecosystem p {
  margin: 6px 0 0;
  max-width: 36em;
  font-size: var(--fs-small);
  color: var(--muted);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- 角色 ---------- */
.roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid var(--line);
}
.role {
  padding: 32px 28px 8px 0;
}
.role + .role {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.role h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
}
.role .where {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--amber);
}
.role p:last-child {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- 治理 ---------- */
.governance {
  background: radial-gradient(60% 80% at 100% 0%, rgba(142, 42, 38, 0.14), transparent 70%), var(--glaze);
}
.gov-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid var(--line);
}
.gov-item {
  padding: 32px 32px 32px 0;
  border-bottom: 1px solid var(--line);
}
.gov-item:nth-child(even) {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.gov-item h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
}
.gov-item h3 svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--amber);
}
.gov-item p {
  margin: 12px 0 0;
  max-width: 28em;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- 多端 ---------- */
.platforms {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 64px;
}
.ptile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(237, 230, 218, 0.025), rgba(237, 230, 218, 0));
}
.ptile.featured {
  grid-row: span 2;
  padding: 32px;
  border-color: var(--amber-line);
  background: radial-gradient(90% 70% at 100% 0%, rgba(214, 161, 90, 0.14), transparent 70%), var(--cellar);
}
.ptile.mine {
  border-color: var(--amber-line);
}
.ptile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ptile-icon {
  width: 28px;
  height: 28px;
  color: var(--amber);
}
.ptile h3 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
}
.ptile.featured h3 {
  font-size: 30px;
  font-weight: 400;
}
.ptile .kind {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--faint);
}
.ptile .desc {
  margin: 6px 0 0;
  max-width: 24em;
  font-size: 15px;
  color: var(--muted);
}
.ptile .ptile-action {
  margin-top: auto;
  padding-top: 16px;
}
.ptile .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 4px;
  font-size: var(--fs-small);
}
.ptile .links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.ptile .links a:hover {
  color: var(--qu);
  border-color: var(--amber);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status.available {
  color: var(--ok);
  border-color: rgba(183, 207, 162, 0.32);
}
.status.coming {
  color: var(--amber);
  border-color: var(--amber-line);
}
.mine-tag {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--amber-hi);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  color: var(--qu);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid var(--amber-line);
  padding-bottom: 4px;
}
.more-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.more-link:hover svg {
  transform: translateX(3px);
}

/* ---------- 结尾 ---------- */
.closing {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 12vw, 176px);
  border-top: 1px solid var(--line);
}
.closing::before {
  content: "";
  position: absolute;
  right: -15%;
  bottom: -60%;
  width: 80%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(214, 161, 90, 0.16), rgba(142, 42, 38, 0.06) 55%, transparent);
  pointer-events: none;
}
.closing-title {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 148px);
  line-height: 1;
  letter-spacing: 0.08em;
}
.closing-title em {
  font-style: normal;
  color: var(--amber-hi);
}
.closing p {
  position: relative;
  margin: 36px 0 0;
  max-width: 30em;
  font-size: var(--fs-lead);
  line-height: 1.9;
  color: var(--muted);
}
.closing .actions {
  position: relative;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding-block: 64px 40px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--faint);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.footer-grid p {
  margin: 14px 0 0;
  max-width: 22em;
}
.footer-grid h2 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-grid a {
  color: var(--faint);
  text-decoration: none;
}
.footer-grid a:hover {
  color: var(--qu);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}

/* ---------- 下载中心 ---------- */
.dl-hero {
  padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px);
}
.dl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: end;
  gap: clamp(32px, 6vw, 96px);
}
.dl-hero .hero-title {
  font-size: clamp(34px, 4.6vw, 64px);
}

.recommend {
  margin-top: 40px;
  padding: 28px;
  max-width: 640px;
  border: 1px solid var(--amber-line);
  border-radius: 16px;
  background: radial-gradient(80% 90% at 0% 0%, rgba(214, 161, 90, 0.12), transparent 70%), var(--cellar);
}
.recommend .eyebrow {
  color: var(--amber-hi);
}
.recommend h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
}
.recommend p {
  margin: 10px 0 0;
  color: var(--muted);
}
.recommend .actions {
  margin-top: 24px;
}

.qr-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cellar);
}
.qr-box {
  padding: 14px;
  border-radius: 10px;
  background: var(--qu);
}
.qr-box svg {
  display: block;
  width: 100%;
  height: auto;
}
.qr-card h2 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
}
.qr-card p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--faint);
}

.dl-rows {
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.dl-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.dl-row.mine {
  background: linear-gradient(90deg, var(--amber-wash), transparent 60%);
}
.dl-row .ptile-icon {
  margin-left: 12px;
}
.dl-name h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
}
.dl-name p,
.dl-req {
  margin: 4px 0 0;
  font-size: var(--fs-small);
  color: var(--faint);
}
.dl-meta {
  display: grid;
  gap: 4px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dl-meta .dim {
  color: var(--faint);
}
.dl-action {
  display: flex;
  justify-content: flex-end;
}
.dl-hash {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
.dl-hash code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.copy-btn {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  cursor: pointer;
}
.copy-btn:hover {
  border-color: var(--amber-line);
  color: var(--qu);
}

.web-entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}
.web-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.web-entry:hover {
  border-color: var(--amber-line);
  background: var(--amber-wash);
}
.web-entry h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
}
.web-entry span {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--amber);
  overflow-wrap: anywhere;
}
.web-entry p {
  margin: 4px 0 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.releases {
  margin-top: 56px;
}
.release {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.release-when {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
}
.release-when b {
  display: block;
  font-weight: 400;
  font-size: 15px;
  color: var(--qu);
}
.release ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--muted);
}
.empty {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--faint);
}

.guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.guide {
  min-width: 0;
  padding: 32px 28px 0 0;
}
.guide + .guide {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.guide h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
}
.guide p,
.guide li {
  font-size: 15px;
  color: var(--muted);
}
.guide ol {
  margin: 14px 0 0;
  padding-left: 1.2em;
}
.guide pre {
  margin: 12px 0 0;
  padding: 12px 14px;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--cellar);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--qu);
}
.guide pre span {
  color: var(--faint);
}

/* ---------- 404 ---------- */
.lost {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding-block: 96px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .chain {
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
    border-left: 1px solid var(--line-strong);
    margin-left: 4px;
  }
  .chain::before {
    display: none;
  }
  .step {
    padding: 0 0 36px 32px;
  }
  .step:last-child {
    padding-bottom: 0;
  }
  .step::before {
    top: 4px;
    left: -5px;
  }
  .step p {
    max-width: 34em;
  }
  .roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .role:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .role:nth-child(n + 3) {
    border-top: 1px solid var(--line);
    margin-top: 24px;
  }
  .platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ptile.featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .dl-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }
  .dl-req,
  .dl-meta {
    grid-column: 2 / 3;
  }
  .dl-action {
    grid-column: 3;
    grid-row: 1;
  }
  .web-entries,
  .guides {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide,
  .guide + .guide {
    padding: 28px 0;
    border-left: 0;
  }
  .guide + .guide {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .dl-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-art {
    justify-self: center;
    max-width: 460px;
  }
  .cap-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .cap-index {
    display: none;
  }
  .qr-card {
    display: none;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .nav,
  .header-actions .text-link,
  .header-actions .btn {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .site-header[data-open] .mobile-panel {
    display: grid;
    gap: 4px;
    padding-bottom: 24px;
  }
  .mobile-panel a:not(.btn) {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: var(--qu);
    text-decoration: none;
    font-family: var(--serif);
    font-size: 20px;
  }
  .mobile-panel .actions {
    margin-top: 20px;
  }
}

@media (max-width: 720px) {
  .section-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .console-head {
    display: none;
  }
  .console-tag {
    margin-left: 0;
  }
  .log-line {
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-areas: "time stage" "time cap" "time out";
    font-size: 12px;
    gap: 0 12px;
    height: auto;
    padding-block: 6px;
  }
  .log-line.gap {
    height: 6px;
    padding-block: 0;
  }
  .log-time {
    grid-area: time;
    align-self: start;
  }
  .log-stage {
    grid-area: stage;
  }
  .log-cap {
    grid-area: cap;
  }
  .log-out {
    grid-area: out;
  }
  .console-body {
    height: 420px;
  }
  .hud {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .hud-tr,
  .hud-bl {
    display: none;
  }
  .chapter {
    position: static;
    writing-mode: horizontal-tb;
    align-items: baseline;
    letter-spacing: 0.3em;
    font-size: 14px;
  }
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .facts dd {
    font-size: 24px;
  }
  .points {
    grid-template-columns: minmax(0, 1fr);
  }
  .frames {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ecosystem {
    grid-template-columns: minmax(0, 1fr);
  }
  .roles,
  .gov-grid,
  .platforms {
    grid-template-columns: minmax(0, 1fr);
  }
  .role,
  .role + .role,
  .role:nth-child(3) {
    padding: 28px 0;
    margin-top: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .role:first-child {
    border-top: 0;
  }
  .gov-item,
  .gov-item:nth-child(even) {
    padding: 28px 0;
    border-left: 0;
  }
  .ptile.featured {
    padding: 24px;
  }
  .dl-row {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 24px 0;
  }
  .dl-row .ptile-icon {
    margin-left: 4px;
  }
  .dl-req,
  .dl-meta,
  .dl-action,
  .dl-hash {
    grid-column: 2 / -1;
  }
  .dl-action {
    grid-row: auto;
    justify-content: flex-start;
  }
  .dl-action:has([aria-disabled="true"]) {
    display: none;
  }
  .release {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

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