/* ============================================================
   Geist Pixel — Vercel 像素字体（5 变体，OFL 协议）
   仓库：https://github.com/vercel/geist-pixel-font
   ============================================================ */
@font-face {
  font-family: "Geist Pixel Square";
  src: url("./assets/fonts/geist-pixel/GeistPixel-Square.woff2") format("woff2"),
       url("./assets/fonts/geist-pixel/GeistPixel-Square.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Pixel Grid";
  src: url("./assets/fonts/geist-pixel/GeistPixel-Grid.woff2") format("woff2"),
       url("./assets/fonts/geist-pixel/GeistPixel-Grid.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Pixel Circle";
  src: url("./assets/fonts/geist-pixel/GeistPixel-Circle.woff2") format("woff2"),
       url("./assets/fonts/geist-pixel/GeistPixel-Circle.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Pixel Triangle";
  src: url("./assets/fonts/geist-pixel/GeistPixel-Triangle.woff2") format("woff2"),
       url("./assets/fonts/geist-pixel/GeistPixel-Triangle.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Pixel Line";
  src: url("./assets/fonts/geist-pixel/GeistPixel-Line.woff2") format("woff2"),
       url("./assets/fonts/geist-pixel/GeistPixel-Line.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #03040b;
  --bg-soft: #0a0d1a;
  --panel: #111521;
  --panel-2: #171b2a;
  --text: #f5f7ff;
  --muted: #aeb6d7;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #b9ccff;
  --green: #8ee6ff;
  --magenta: #c4a6ff;
  --amber: #eef4ff;
  --danger: #ff6d9e;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(137, 162, 255, 0.14), transparent 28rem),
    radial-gradient(circle at 86% 16%, rgba(196, 166, 255, 0.11), transparent 25rem),
    linear-gradient(180deg, #03040b 0%, #080a14 46%, #03040b 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 51% 15%, rgba(235, 240, 255, 0.13), rgba(177, 194, 255, 0.055) 18%, transparent 44%),
    linear-gradient(180deg, rgba(206, 222, 255, 0.045), transparent 22%),
    linear-gradient(90deg, rgba(206, 222, 255, 0.05), transparent 18%, transparent 82%, rgba(206, 222, 255, 0.05));
  mix-blend-mode: screen;
}

.ascii-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.58;
}

/* ✦ 波动布料海浪：覆盖整个视口 fixed 层，但 canvas 内只画 horizonY 以下 */
.ocean-waves {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

/* 月光体积光：垫在 main 之上、用 screen blend 让暗部透明，只把月光透出来 */
.moon-rays {
  position: fixed;
  inset: 0;
  z-index: 6;          /* 高于 main(1)/body::before(1)，低于站点 header(本身没 z-index)，pointer-events:none 不挡交互 */
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  mix-blend-mode: screen;
}
.liquid-water {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;          /* 在 body bg 之上、main(z:1) 之下 */
  pointer-events: none; /* 鼠标事件挂在 window 上，不挡页面点击 */
  overflow: hidden;
}
.liquid-water > canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 100% 4px, 52px 100%;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 78%, transparent);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 40px;
  background: rgba(3, 4, 11, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 44px;
  height: 38px;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 0 14px rgba(214, 235, 255, 0.3));
}

.brand-word {
  position: relative;
  display: inline-block;
  color: #f7f8ff;
  font-family:
    "SF Pro Display",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: clamp(21px, 2.15vw, 30px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.95),
    0 0 12px rgba(185, 204, 255, 0.36),
    0 0 28px rgba(196, 166, 255, 0.2);
}

.brand-word::before,
.brand-word::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.brand-word::before {
  color: rgba(185, 204, 255, 0.34);
  transform: translate(1px, 0);
  clip-path: inset(58% 0 0 0);
}

.brand-word::after {
  color: rgba(255, 109, 158, 0.24);
  transform: translate(-1px, 1px);
  clip-path: inset(0 0 62% 0);
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  min-height: 36px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 14px;
  border-radius: 6px;
}

nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

main {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 210px 48px 40px;
}

.hero-copy,
.section,
.download-panel {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
}

.hero-copy {
  width: 100%;
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 11ch;
  font-size: clamp(48px, 6.1vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.88),
    0 0 18px rgba(185, 204, 255, 0.2),
    0 0 42px rgba(137, 162, 255, 0.16);
}

/* Hero 主标题改用印刷感 serif（Essays1743 Caslon 风），不再用像素字 */
.hero h1 {
  font-family:
    "Essays1743",
    "Kingthings Typewriter",
    "Cuomotype",
    "Huiwen Mincho",
    Georgia,
    "Times New Roman",
    serif;
  letter-spacing: 0;
  /* 打开浏览器字体抗锯齿，让印刷字边缘平滑 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  text-shadow:
    0 0 22px rgba(185, 204, 255, 0.18),
    0 0 48px rgba(137, 162, 255, 0.10);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.lead {
  max-width: 590px;
  font-size: 18px;
  color: #d4dbf4;
  text-shadow:
    0 0 12px rgba(185, 204, 255, 0.2),
    0 0 28px rgba(3, 4, 11, 0.92);
}

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

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 760;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
}

.button::after {
  content: "///// 0101 /////";
  position: absolute;
  inset: auto 0 4px;
  color: rgba(255, 255, 255, 0.22);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.button:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.button.primary {
  color: #060815;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  box-shadow:
    0 12px 38px rgba(137, 162, 255, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.button.secondary {
  color: var(--text);
  border-color: rgba(185, 204, 255, 0.24);
  background: rgba(17, 21, 33, 0.72);
  box-shadow: inset 0 0 22px rgba(137, 162, 255, 0.06);
}

.download-actions .button {
  width: 188px;
}

.download-actions .button::after {
  content: none;
}

.button.windows {
  color: #f5f7ff;
  border-color: rgba(222, 229, 244, 0.38);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.34), transparent 18%),
    radial-gradient(ellipse at 80% 25%, rgba(222, 229, 244, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(72, 78, 96, 0.98), rgba(18, 22, 34, 0.96) 56%, rgba(9, 11, 19, 0.98));
  box-shadow:
    0 12px 34px rgba(185, 204, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset -18px -10px 28px rgba(3, 4, 11, 0.42);
}

.button.windows:hover {
  border-color: rgba(245, 247, 255, 0.66);
  box-shadow:
    0 14px 38px rgba(185, 204, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    inset -18px -10px 28px rgba(3, 4, 11, 0.38);
}

.button.disabled {
  color: #697481;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: not-allowed;
}

.release-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 34px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.release-strip div {
  padding: 16px;
  background: rgba(17, 21, 33, 0.82);
}

dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 0;
  color: var(--text);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.showcase {
  position: relative;
  width: min(720px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(137, 162, 255, 0.1), transparent 34%),
    rgba(9, 11, 22, 0.9);
  box-shadow: var(--shadow);
}

.showcase::before,
.download-panel > div:first-child::before,
.doctor-band::before {
  content: "+-- signal ------------------------------+";
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  overflow: hidden;
  color: rgba(185, 204, 255, 0.36);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.showcase-frame {
  position: relative;
  aspect-ratio: 18 / 11;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #080b10;
}

.showcase-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 180ms ease, transform 260ms ease;
}

.showcase-frame.is-switching img {
  opacity: 0.22;
  transform: scale(1.012);
}

.showcase-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.showcase-chrome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 136px;
  padding: 22px;
}

.showcase-kicker {
  margin-bottom: 8px;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase h2 {
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1.16;
}

.showcase p {
  margin-bottom: 0;
  line-height: 1.62;
}

.showcase-controls {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--text);
  font-size: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: #070816;
  outline: none;
  background: var(--green);
}

.showcase-dots {
  display: flex;
  gap: 7px;
  padding: 0 22px 20px;
}

.showcase-dots button {
  width: 27px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.showcase-dots button[aria-current="true"] {
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.section {
  padding: 92px 0;
}

.section-tight {
  padding-top: 48px;
}

.section-heading {
  max-width: 760px;
}

.feature-grid,
.view-grid {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.view-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article,
.analysis-card,
.release-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 21, 33, 0.72);
  box-shadow: inset 0 0 28px rgba(137, 162, 255, 0.035);
}

.feature-grid article,
.analysis-card {
  min-height: 210px;
  padding: 22px;
}

.analysis-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.analysis-card:hover,
.analysis-card:focus-visible {
  outline: none;
  border-color: rgba(185, 204, 255, 0.52);
  background:
    linear-gradient(145deg, rgba(137, 162, 255, 0.14), transparent 48%),
    rgba(17, 21, 33, 0.92);
  transform: translateY(-2px);
}

.analysis-card p {
  margin-bottom: 20px;
}

.view-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 26px;
  margin-bottom: 24px;
  color: #061014;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 850;
  border-radius: 5px;
  background: var(--cyan);
}

.analysis-card:nth-child(2) .view-index,
.analysis-card:nth-child(6) .view-index {
  background: var(--green);
}

.analysis-card:nth-child(3) .view-index,
.analysis-card:nth-child(7) .view-index {
  background: var(--amber);
}

.analysis-card:nth-child(4) .view-index,
.analysis-card:nth-child(8) .view-index {
  background: var(--magenta);
}

.card-action {
  margin-top: auto;
  color: #dce5ff;
  font-size: 13px;
  font-weight: 760;
}

.card-action::after {
  content: " ->";
  color: var(--danger);
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 28px;
  margin-bottom: 24px;
  color: #061014;
  font-size: 12px;
  font-weight: 860;
  border-radius: 5px;
  background: var(--amber);
}

.feature-grid article:nth-child(2) .feature-index {
  background: var(--cyan);
}

.feature-grid article:nth-child(3) .feature-index {
  background: var(--green);
}

.feature-grid article:nth-child(4) .feature-index {
  background: var(--magenta);
}

.doctor-band {
  position: relative;
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(360px, 440px);
  gap: 36px;
  align-items: center;
  justify-content: center;
  padding: 72px 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(137, 162, 255, 0.13), transparent 34%),
    linear-gradient(315deg, rgba(196, 166, 255, 0.11), transparent 34%),
    rgba(17, 21, 33, 0.78);
}

.doctor-copy p:last-child {
  margin-bottom: 0;
}

.workflow {
  display: grid;
  gap: 10px;
}

.workflow div {
  position: relative;
  padding: 18px 20px;
  color: #e3e8ff;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(5, 6, 8, 0.58);
}

.workflow div::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px rgba(142, 230, 255, 0.58);
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.56fr);
  gap: 30px;
  align-items: stretch;
  padding: 64px 0 18px;
}

.download-panel > div:first-child {
  position: relative;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(137, 162, 255, 0.13), transparent 40%),
    rgba(17, 21, 33, 0.84);
}

.release-card {
  padding: 28px;
}

.release-card dl {
  display: grid;
  gap: 20px;
  margin: 0;
}

.release-card dd {
  overflow-wrap: anywhere;
}

.identity-watermark {
  margin: 26px 0 0;
  overflow: hidden;
  color: rgba(220, 229, 255, 0.42);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 8px rgba(185, 204, 255, 0.22),
    0 0 20px rgba(196, 166, 255, 0.12),
    0 0 24px rgba(3, 4, 11, 0.92);
  white-space: pre;
}

.checksum {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #c7d3f2;
}

.checksum details {
  width: 100%;
}

.checksum summary {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  color: #dce5ff;
  cursor: pointer;
}

.checksum summary::marker {
  color: var(--magenta);
}

.checksum code {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  color: #dce5ff;
  border: 1px solid rgba(137, 162, 255, 0.18);
  border-radius: 6px;
  background: rgba(7, 8, 18, 0.64);
}

.install-section {
  padding-top: 56px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  min-height: 150px;
  padding: 22px;
  color: #d6dee8;
  line-height: 1.58;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 22, 31, 0.72);
  counter-increment: steps;
}

.steps li::before {
  content: counter(steps, decimal-leading-zero);
  display: block;
  margin-bottom: 26px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 40px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.analysis-dialog {
  width: min(1080px, calc(100vw - 32px));
  max-height: min(86vh, 920px);
  padding: 0;
  color: var(--text);
  border: 0;
  background: transparent;
}

.analysis-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
}

.analysis-dialog-panel {
  position: relative;
  max-height: min(86vh, 920px);
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(137, 162, 255, 0.12), transparent 30%),
    linear-gradient(320deg, rgba(196, 166, 255, 0.1), transparent 32%),
    rgba(7, 8, 18, 0.98);
  box-shadow: 0 28px 120px rgba(0, 0, 0, 0.62);
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  color: #060815;
  outline: none;
  background: var(--green);
}

.dialog-header {
  max-width: 820px;
  padding-right: 56px;
}

.dialog-header h2 {
  font-size: clamp(34px, 5vw, 62px);
}

.dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 34px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.detail-section h3,
.formula-section h3,
.source-section h3 {
  margin-bottom: 14px;
  color: #f2f6ff;
  font-size: 18px;
  text-shadow: 0 0 14px rgba(185, 204, 255, 0.18);
}

.detail-section ul,
.formula-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: #cfd8f5;
  line-height: 1.68;
}

.analysis-dialog strong,
.detail-section strong,
.formula-section strong {
  color: #eef3ff;
  text-shadow: 0 0 10px rgba(185, 204, 255, 0.22);
}

.detail-section li::marker,
.formula-section li::marker {
  color: rgba(185, 204, 255, 0.78);
}

.formula-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.formula-section code {
  display: inline-block;
  max-width: 100%;
  padding: 3px 6px;
  overflow-wrap: anywhere;
  color: #dde8ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  border: 1px solid rgba(137, 162, 255, 0.24);
  border-radius: 5px;
  background: rgba(137, 162, 255, 0.09);
}

.source-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.source-heading {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 16px;
}

.source-heading p:last-child {
  margin: 0;
  color: #9ba8b6;
  line-height: 1.65;
}

.source-list {
  display: grid;
  gap: 10px;
}

.source-snippet {
  border: 1px solid rgba(137, 162, 255, 0.18);
  border-radius: 8px;
  background: rgba(4, 8, 12, 0.72);
  overflow: hidden;
}

.source-snippet summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  min-height: 46px;
  padding: 12px 14px;
  cursor: pointer;
  color: #eef7fb;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  list-style: none;
}

.source-snippet summary::-webkit-details-marker {
  display: none;
}

.source-snippet summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--green);
  border: 1px solid rgba(137, 162, 255, 0.28);
  border-radius: 50%;
}

.source-snippet[open] summary::before {
  content: "-";
}

.source-snippet summary span:first-child {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow-wrap: anywhere;
}

.source-snippet summary span:last-child {
  color: #7f8d9b;
  font-size: 12px;
  white-space: nowrap;
}

.source-snippet pre {
  max-height: min(56vh, 620px);
  margin: 0;
  padding: 16px;
  overflow: auto;
  color: #d9e2ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.58;
  border-top: 1px solid rgba(137, 162, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(137, 162, 255, 0.08), transparent 24px),
    #03040b;
}

.source-snippet code {
  white-space: pre;
}

.source-empty {
  margin: 0;
  color: #9ba8b6;
}

@media (prefers-reduced-motion: reduce) {
  .button::after,
  .analysis-card {
    transition: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 22px;
  }

  /* 桌面 nav 走 wrap：在 980 以下文字变小、不再隐藏，避免移动端没导航 */
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 13px;
  }
  nav a {
    padding: 4px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 140px 24px 34px;
  }

  .hero-visual {
    justify-content: center;
    min-height: auto;
  }

  .hero-copy,
  .section,
  .download-panel {
    width: min(100%, calc(100vw - 32px));
  }

  .feature-grid,
  .view-grid,
  .steps,
  .doctor-band,
  .download-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    gap: 28px;
    padding-top: 132px;
  }

  h1 {
    font-size: clamp(40px, 11.2vw, 46px);
    line-height: 1.05;
  }

  .lead {
    font-size: 16px;
  }

  .release-strip,
  .feature-grid,
  .view-grid,
  .steps,
  .doctor-band,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .showcase-chrome {
    grid-template-columns: 1fr;
  }

  .showcase-controls {
    justify-content: flex-start;
  }

  .dialog-grid {
    grid-template-columns: 1fr;
  }

  .source-heading,
  .source-snippet summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .source-snippet summary span:last-child {
    grid-column: 2;
    white-space: normal;
  }

  .analysis-dialog-panel {
    padding: 28px 22px;
  }

  .dialog-header {
    padding-right: 46px;
  }

  .section {
    padding: 64px 0;
  }

  .doctor-band,
  .download-panel > div:first-child {
    padding: 42px 24px;
  }

  .site-footer {
    flex-direction: column;
    padding: 26px 24px;
  }
}

/* —— ≤ 480 超小屏：iPhone 竖屏宽度，把所有 2 列网格塌成 1 列，按钮 / 表格 / footer 全压紧 —— */
@media (max-width: 480px) {
  body { font-size: 15px; }

  .site-header {
    min-height: 60px;
    padding: 0 14px;
    gap: 8px;
  }
  .brand img { width: 22px; height: 22px; }
  .brand-word { font-size: 14px; letter-spacing: 0.08em; }
  nav { font-size: 12px; gap: 4px 10px; }

  .hero {
    padding: 110px 16px 28px;
    gap: 22px;
  }
  .eyebrow { font-size: 11px; }
  .lead { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .button { width: 100%; text-align: center; }

  .release-strip { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* 全部 2 列卡片塌成 1 列 */
  .feature-grid,
  .view-grid,
  .download-panel { grid-template-columns: 1fr !important; }

  .section { padding: 48px 0; }
  .section-tight { padding: 38px 0; }

  .workflow {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 12px;
  }
  .doctor-band { padding: 28px 16px !important; }

  /* A3 入口按钮再小一圈，避免顶到屏边 */
  .a3-portal { padding: 56px 12px 72px; gap: 14px; }
  .a3-hold-trigger { min-width: 200px; min-height: 84px; font-size: 26px; padding: 0 22px; }
  .a3-hold-ring { width: 110px; height: 110px; }
  .a3-portal-hint { font-size: 12px; }

  /* download 校验值整段 word-break，否则 SHA 字符串撑爆容器 */
  .checksum code { word-break: break-all; font-size: 11px; }

  /* footer 文案居中 + 字号 */
  .site-footer { font-size: 12px; gap: 6px; padding: 22px 16px; text-align: center; }
}

/* ============================================================
   打字机/明朝体（答辩节点字、A3 标签用）
   ============================================================ */
@font-face {
  font-family: "Huiwen Mincho";
  src: url("./defense/assets/fonts/typewriter/HuiwenMincho.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
  unicode-range: U+4E00-9FFF, U+3000-303F, U+FF00-FFEF, U+2E80-2EFF;  /* 中文范围 */
}
@font-face {
  font-family: "Cuomotype";
  src: url("./defense/assets/fonts/typewriter/Cuomotype.otf") format("opentype");
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: "Essays1743";
  src: url("./defense/assets/fonts/typewriter/Essays1743.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}
/* —— 给小字号正文用的清爽款 —— */
@font-face {
  font-family: "Kingthings Typewriter";
  src: url("./defense/assets/fonts/typewriter/KingthingsTypewriter.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: "Huiwen Tsukiji5";
  src: url("./defense/assets/fonts/typewriter/HuiwenTsukiji5.otf") format("opentype");
  font-display: swap;
  font-weight: 400;
  unicode-range: U+4E00-9FFF, U+3000-303F, U+FF00-FFEF, U+2E80-2EFF;
}
@font-face {
  font-family: "Tongwen Dict";
  src: url("./defense/assets/fonts/typewriter/TongwenDict.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
  unicode-range: U+4E00-9FFF, U+3000-303F, U+FF00-FFEF, U+2E80-2EFF;
}

/* ============================================================
   A3 长按入口 · Source × View × Book Portal
   位置：八卡片 .view-grid 与 #download 之间
   ============================================================ */

.a3-portal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 140px 24px 160px;
  text-align: center;
  isolation: isolate;
}

/* Galaxy 背景：默认隐身，鼠标悬停 .a3-portal 才淡入；
   深底覆盖底下的 liquid-water，避免水痕和星空对打 */
.a3-portal .galaxy-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #03040b;
  opacity: 0;
  transition: opacity 620ms cubic-bezier(.4, 0, .2, 1);
}
.a3-portal:hover .galaxy-bg,
.a3-portal:focus-within .galaxy-bg,
.a3-portal.is-holding .galaxy-bg,
.a3-portal.is-fired .galaxy-bg {
  opacity: 1;
}
@media (hover: none) {
  /* 触屏没有 hover，长按时也露出来 */
  .a3-portal .galaxy-bg { opacity: 0.9; }
}

.a3-portal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(185, 204, 255, 0.10), transparent 38rem),
    radial-gradient(circle at 50% 65%, rgba(125, 233, 255, 0.05), transparent 30rem);
  opacity: calc(0.55 + var(--hold-progress, 0) * 0.45);
  transition: opacity 240ms ease;
  z-index: -1;
}

/* 按住时：click here 周围保持亮，外圈渐暗，营造沉静 vignette */
.a3-portal::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent 180px,
    rgba(3, 4, 11, 0.55) 360px,
    rgba(3, 4, 11, 0.82) 720px,
    rgba(3, 4, 11, 0.92) 100%
  );
  opacity: 0;
  transition: opacity 360ms ease;
  z-index: 1;
}
.a3-portal.is-holding::after,
.a3-portal.is-fired::after {
  opacity: 1;
}
/* 让 click here 按钮和文案永远浮在暗角上方 */
.a3-portal-copy,
.a3-portal-hint,
.a3-hold-trigger {
  position: relative;
  z-index: 2;
}

.a3-portal-copy {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #cbd4f0;
}

.a3-portal-copy .eyebrow {
  margin: 0;
  color: #b9ccff;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.a3-portal-copy h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f4f6ff;
}

.a3-portal-copy p {
  margin: 0;
  color: #97a2c5;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* —— 中心长按触发器 · 完全无框，只有发光字 —— */
.a3-hold-trigger {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  min-height: 120px;
  padding: 20px 36px;
  background: transparent;
  border: 0;
  outline: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: "Kingthings Typewriter", "Essays1743", "Avenir Next Condensed", "Futura", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: 0.16em;
  color: #ffffff;
  text-shadow:
    0 0 calc(14px + var(--hold-progress, 0) * 22px) rgba(245, 248, 255, 0.95),
    0 0 calc(34px + var(--hold-progress, 0) * 60px) rgba(174, 215, 255, 0.62),
    0 0 calc(68px + var(--hold-progress, 0) * 100px) rgba(178, 151, 255, 0.32);
  transition: text-shadow 220ms ease, transform 320ms cubic-bezier(.2, .8, .2, 1);
  transform: scale(calc(1 + var(--hold-progress, 0) * 0.06));
}

.a3-hold-trigger:hover { color: #ffffff; }
.a3-hold-trigger:focus-visible {
  outline: 1px dashed rgba(185, 204, 255, 0.4);
  outline-offset: 12px;
}

.a3-hold-text {
  position: relative;
  z-index: 2;
}

/* 蓄力进度环 — 极轻，不要按钮感 */
.a3-hold-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  width: calc(160px + var(--hold-progress, 0) * 80px);
  height: calc(160px + var(--hold-progress, 0) * 80px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%,
      transparent calc(48% - var(--hold-progress, 0) * 4%),
      rgba(185, 204, 255, calc(0.18 + var(--hold-progress, 0) * 0.42)) calc(50% - var(--hold-progress, 0) * 2%),
      transparent calc(52% + var(--hold-progress, 0) * 4%)
    );
  opacity: calc(0.32 + var(--hold-progress, 0) * 0.68);
  filter: blur(calc(0.4px + var(--hold-progress, 0) * 1.2px));
  transition: opacity 220ms ease;
}

.a3-portal.is-holding .a3-hold-ring {
  animation: a3-ring-pulse 1.6s ease-in-out infinite;
}

@keyframes a3-ring-pulse {
  0%, 100% { filter: blur(0.4px) brightness(1); }
  50%      { filter: blur(1.4px) brightness(1.18); }
}

.a3-portal-hint {
  margin: 0;
  color: #7882a4;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: calc(1 - var(--hold-progress, 0) * 0.7);
  transition: opacity 240ms ease;
}

/* —— 触发后虫洞推进阶段（旧 "click here 飞脸" 已替为 hyperspeed 光带） —— */
.a3-portal.is-fired .a3-hold-trigger {
  animation: a3-hold-trigger-out 220ms ease-out forwards;
}

.a3-portal.is-fired .a3-portal-copy,
.a3-portal.is-fired .a3-portal-hint {
  animation: a3-fade-blur 600ms ease forwards;
}

@keyframes a3-hold-trigger-out {
  0%   { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1.06); opacity: 0; }
}

@keyframes a3-fade-blur {
  0%   { opacity: 1; filter: blur(0); }
  100% { opacity: 0; filter: blur(8px); }
}

/* 全屏前的暗场挤压 */
body.a3-portal-active::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 0%, transparent 18%, rgba(3, 4, 11, 0.78) 78%);
  animation: a3-vignette-pinch 900ms ease forwards;
}

@keyframes a3-vignette-pinch {
  0%   { opacity: 0; transform: scale(1.4); }
  60%  { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(0.92); }
}

/* —— A3 全屏 overlay —— */
.a3-portal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #03040b;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.a3-portal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  animation: a3-overlay-zoom-in 520ms cubic-bezier(.2, .8, .2, 1);
}

@keyframes a3-overlay-zoom-in {
  0%   { transform: scale(1.18); filter: blur(8px); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scale(1); filter: blur(0); opacity: 1; }
}

.a3-portal-overlay .a3-3d-container {
  position: absolute;
  inset: 0;
}

/* ESC 闪烁提示 */
.a3-esc-hint {
  position: absolute;
  top: 28px;
  left: 32px;
  z-index: 10;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font-family: "Kingthings Typewriter", "Essays1743", "Avenir Next Condensed", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-shadow:
    0 0 10px rgba(245, 248, 255, 0.92),
    0 0 28px rgba(174, 215, 255, 0.55),
    0 0 56px rgba(178, 151, 255, 0.28);
  cursor: pointer;
  pointer-events: auto;
  animation: a3-esc-blink 2.2s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.a3-esc-hint:hover { animation-play-state: paused; opacity: 1; }
.a3-esc-hint:focus-visible {
  outline: 1px solid rgba(255,255,255,0.6);
  outline-offset: 4px;
}
.a3-esc-icon { display: none; font-size: 24px; font-style: normal; letter-spacing: 0; }

/* 触屏 / 没 hover 的设备：ESC 文字换成 ✕ 圆形大按钮，方便点 */
@media (hover: none), (pointer: coarse) {
  .a3-esc-hint {
    top: 18px;
    left: auto;
    right: 18px;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    background: rgba(8, 10, 20, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: none;
    opacity: 1;
  }
  .a3-esc-label { display: none; }
  .a3-esc-icon { display: inline-block; }
}

@keyframes a3-esc-blink {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
  .a3-hold-trigger,
  .a3-portal.is-fired .a3-hold-trigger,
  .a3-portal.is-fired .a3-portal-copy,
  .a3-portal.is-fired .a3-portal-hint,
  .a3-portal-overlay.is-open,
  body.a3-portal-active::after,
  .a3-esc-hint {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .a3-portal { padding: 80px 18px 96px; gap: 18px; }
  .a3-hold-trigger { min-width: 240px; min-height: 96px; font-size: 32px; }
  .a3-hold-ring { width: 130px; height: 130px; }
  .a3-esc-hint { top: 16px; left: 16px; font-size: 11px; }
}

/* A3 虫洞隧道 canvas — 由 portal-wormhole.js 创建并 append 到 body */
.a3-wormhole-canvas {
  position: fixed;
  inset: 0;
  z-index: 9000;        /* 高于页面、低于 overlay (9999) */
  pointer-events: none;
  opacity: 0;
  transition: opacity 360ms cubic-bezier(.2, .8, .2, 1);
  mix-blend-mode: screen;
  contain: strict;
}
.a3-wormhole-canvas.is-on {
  opacity: 1;
}
body.a3-portal-active .a3-wormhole-canvas {
  opacity: 1;
}
/* 松手 fire 瞬间：让光环以透视关系飞出画外 */
.a3-wormhole-canvas.is-flying {
  transform-origin: 50% 50%;
  animation: a3-rings-flyout 360ms cubic-bezier(.35, 0, .15, 1) forwards;
  will-change: transform, opacity, filter;
}
@keyframes a3-rings-flyout {
  0%   { transform: perspective(900px) translateZ(0) scale(1);     opacity: 1;    filter: blur(0); }
  55%  { transform: perspective(900px) translateZ(520px) scale(2.6); opacity: 0.85; filter: blur(0.8px); }
  100% { transform: perspective(900px) translateZ(1600px) scale(7); opacity: 0;    filter: blur(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .a3-wormhole-canvas { display: none !important; }
}

/* A3 Hyperspeed 光带 canvas — 由 hyperspeed.js 创建并 append 到 body */
.a3-hyperspeed-canvas {
  position: fixed;
  inset: 0;
  z-index: 9050;        /* 在虫洞环 (9000) 之上、overlay (9999) 之下 */
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms ease;
  mix-blend-mode: screen;
  contain: strict;
}
@media (prefers-reduced-motion: reduce) {
  .a3-hyperspeed-canvas { display: none !important; }
}
