/* AURELIA 展示页 · 无外部字体、无框架、无构建步骤 */

:root {
  --bg: #0a0d10;
  --bg-2: #0e1216;
  --panel: #11171d;
  --line: #1d252d;
  --line-2: #2b3641;
  --ink: #e9eef4;
  --ink-2: #b4c1cd;
  --ink-3: #8593a1;
  --accent: #e8a55f;
  --accent-dim: rgba(232, 165, 95, 0.1);
  --accent-line: rgba(232, 165, 95, 0.4);
  --mono: "Cascadia Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --pad: clamp(20px, 4.5vw, 56px);
  --maxw: 1240px;
  --header: 72px;
  --inset: max(var(--pad), calc((100% - var(--maxw)) / 2));
  --radius: 2px;
  --radius-pill: 999px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

::selection {
  background: var(--accent-dim);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--accent-line);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 13, 16, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 12px var(--inset);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: none;
}

.brand__mark {
  width: 9px;
  height: 9px;
  background: var(--accent);
  transform: translateY(-1px);
}

.brand__name {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
}

.brand__sub {
  font-size: 12px;
  color: var(--ink-3);
}

.nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline-start: auto;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: none;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent-line);
}

.topbar__meta {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: min(84svh, 760px);
  border-bottom: 1px solid var(--line);
}

.hero__copy {
  align-self: end;
  padding: clamp(48px, 8vw, 120px) clamp(24px, 3vw, 48px) clamp(36px, 5vw, 64px) var(--inset);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 26px);
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

.hero__kicker::after {
  content: "";
  flex: 1;
  max-width: 88px;
  height: 1px;
  background: var(--accent-line);
}

.hero__title {
  font-size: clamp(42px, 7.2vw, 88px);
  line-height: 0.96;
  letter-spacing: 0.02em;
}

.hero__title span {
  display: block;
}

.hero__title span + span {
  margin-top: 0.12em;
  font-size: 0.62em;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}

.hero__lede {
  max-width: 34ch;
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  border-color: var(--ink-3);
  background: rgba(255, 255, 255, 0.04);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #17110a;
  font-weight: 600;
}

.btn--primary:hover {
  background: #f0b473;
  border-color: #f0b473;
}

.btn__arrow {
  font-family: var(--mono);
  font-size: 12px;
}

.hero__media {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(10, 13, 16, 0.72) 14%, rgba(10, 13, 16, 0) 42%),
    linear-gradient(0deg, rgba(10, 13, 16, 0.66) 0%, rgba(10, 13, 16, 0) 34%);
  pointer-events: none;
}

.hero__caption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(233, 238, 244, 0.72);
}

/* ---------- 指标条 ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-inline: var(--inset);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 22px 22px 24px 0;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat + .stat {
  padding-left: 22px;
}

.stat__value {
  display: block;
  font-family: var(--mono);
  font-size: clamp(22px, 2.6vw, 30px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.stat__unit {
  font-size: 12px;
  color: var(--accent);
  margin-left: 4px;
  letter-spacing: 0.04em;
}

.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ---------- 区块骨架 ---------- */

.section {
  padding: clamp(56px, 7.5vw, 104px) var(--inset);
  border-bottom: 1px solid var(--line);
}

#top,
.section {
  scroll-margin-top: var(--header);
}

.section--flush {
  padding-inline: 0;
}

.current-delivery__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
  list-style: none;
}

.gal-group { scroll-margin-top: 5rem; }

.sec-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(16px, 2.5vw, 40px);
  align-items: start;
  padding-bottom: clamp(24px, 3vw, 40px);
}

.sec-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding-top: 0.55em;
}

.sec-title {
  font-size: clamp(24px, 3.2vw, 38px);
}

.sec-body {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.sec-body p + p {
  margin-top: 12px;
}

.sec-note {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-3);
  border-left: 1px solid var(--line-2);
  padding-left: 14px;
}

.section--flush .sec-head {
  padding-inline: var(--inset);
}

.sec-head__aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- 验收基准 ---------- */

.targets {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr 1.12fr 0.88fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.target {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  padding: 0 0 20px;
}

.target__frame {
  position: relative;
  overflow: hidden;
  background: #06090b;
  aspect-ratio: 16 / 10;
}

.target__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.target:hover .target__frame img {
  transform: scale(1.03);
}

.target__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 18px 8px;
}

.target__no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
}

.target__name {
  font-size: 17px;
}

.target__checks {
  margin: 0;
  padding: 4px 18px 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.target__checks li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

.target__checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 1px;
  background: var(--accent-line);
}

.target__views {
  margin-top: auto;
  padding: 14px 18px 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* ---------- 渲染管线 ---------- */

.steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-inline: calc(var(--inset) * -1);
  padding-inline: var(--inset);
  scrollbar-color: var(--line-2) transparent;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 56px), rgba(0, 0, 0, 0.15) 100%);
}

.step {
  position: relative;
  padding: 22px 22px 26px;
  border-right: 1px solid var(--line);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s ease;
}

.step__media {
  margin: 2px -22px 4px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #06090b;
  border-block: 1px solid var(--line);
}

.step__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.step:hover .step__img {
  transform: scale(1.04);
}

.step:first-child {
  border-left: 1px solid var(--line);
}

.steps::-webkit-scrollbar {
  height: 8px;
}

.steps::-webkit-scrollbar-track {
  background: var(--line);
}

.steps::-webkit-scrollbar-thumb {
  background: var(--line-2);
}

.steps::-webkit-scrollbar-thumb:hover {
  background: var(--ink-3);
}

.rail-note {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.step:hover {
  background: var(--bg-2);
}

.step__no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.step__name {
  font-size: 17px;
}

.step__detail {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.step__module {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--ink-3);
  word-break: break-word;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  white-space: nowrap;
}

/* ---------- 技术模块 ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--ink-2);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.filter:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}

.filter[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-dim);
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(318px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.mod {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px 22px;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.mod:hover {
  background: var(--panel);
}

.mod[hidden] {
  display: none;
}

.mod__cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.mod__title {
  font-size: 17px;
  letter-spacing: -0.006em;
}

.mod__body {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-2);
}

.mod__figure {
  margin: 2px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mod__figure-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  border: 1px solid var(--line);
  background: #06090b;
}

.mod__figure-cap {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.dgm {
  margin: 2px 0 0;
  padding: 10px 10px 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.dgm svg {
  display: block;
  width: 100%;
  height: auto;
}

.dgm__text {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.01em;
}

.dgm__technical text {
  font-family: var(--mono);
  font-size: 10.5px;
}

.perf-diagrams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.perf-diagrams__item { min-width: 0; }
.perf-diagrams__item .dgm svg { max-width: 32rem; margin-inline: auto; }

.mod__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2px;
}

.metric {
  background: var(--panel);
  padding: 9px 10px 10px;
}

.metric__k {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.metric__v {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.45;
}

.mod__files {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--ink-3);
  word-break: break-word;
}

/* ---------- 效果索引 ---------- */

.gal-group {
  padding-top: clamp(28px, 4vw, 48px);
}

.gal-group__head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(16px, 2.5vw, 40px);
  align-items: baseline;
  padding: 0 var(--inset) 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.gal-group__title {
  font-size: 18px;
}

.gal-group__note {
  font-size: 13px;
  color: var(--ink-3);
}

.gal-group__count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.masonry {
  columns: 3;
  column-gap: 14px;
  padding-inline: var(--inset);
}

.masonry--pair {
  columns: 2;
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  break-inside: avoid;
  border: 1px solid var(--line);
  background: var(--bg-2);
  text-align: left;
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.shot:hover,
.shot:focus-visible {
  border-color: var(--accent-line);
}

.shot__img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease, opacity 0.3s ease;
  background: #06090b;
}

.shot:hover .shot__img {
  transform: scale(1.02);
}

.shot__cap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 13px 13px;
}

.shot__title {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.45;
}

.shot__note {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* ---------- 性能 ---------- */

.perf {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.perf-table-block + .perf-table-block {
  margin-top: 34px;
}

.chart-block {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 16px 16px 12px;
}

.chart-block + .perf-table-block,
.perf-table-block + .chart-block {
  margin-top: 26px;
}

.chart-block--compact {
  padding: 14px 14px 10px;
}

.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.chart-title {
  font-size: 14px;
  letter-spacing: 0;
}

.chart-unit {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.chart {
  width: 100%;
  height: 288px;
}

.chart-block--compact .chart {
  height: 236px;
}

.chart-caption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--ink-3);
}

.perf-caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.perf-table {
  width: 100%;
  border-collapse: collapse;
}

.perf-table th {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-align: right;
  padding: 0 0 9px;
  white-space: nowrap;
}

.perf-table th:first-child,
.perf-table td:first-child {
  text-align: left;
}

.perf-table td {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  text-align: right;
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  white-space: nowrap;
}

.perf-table td:first-child {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
}

.perf-table td.is-accent {
  color: var(--accent);
}

.bar {
  display: block;
  height: 3px;
  margin-top: 6px;
  background: var(--line-2);
  position: relative;
}

.bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
}

.findings {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.finding {
  background: var(--bg-2);
  padding: 18px 18px 20px;
}

.finding h3 {
  font-size: 14.5px;
  margin-bottom: 8px;
  letter-spacing: 0;
}

.finding p {
  font-size: 13px;
  line-height: 1.72;
  color: var(--ink-2);
}

.shortfall {
  margin-top: 1px;
  padding: 18px;
  background: rgba(232, 165, 95, 0.06);
  border: 1px solid var(--accent-line);
}

.shortfall h3 {
  font-size: 13px;
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 8px;
}

.shortfall p {
  font-size: 13px;
  line-height: 1.72;
  color: var(--ink-2);
}

.perf-source {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

.perf-source a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
}

.opt-block {
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: clamp(18px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
}

.opt-block__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 36px);
  align-items: baseline;
  padding-bottom: 16px;
}

.opt-block__title {
  font-size: clamp(18px, 2vw, 22px);
}

.opt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.opt {
  background: var(--bg-2);
  padding: 16px 18px 18px;
}

.opt__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
}

.opt__name {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}

.opt--ok .opt__name {
  color: var(--accent);
}

.opt--no .opt__name {
  color: var(--ink-3);
}

.opt--open .opt__name {
  color: var(--ink-2);
}

.opt__count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
}

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

.opt__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.opt__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.opt__label {
  font-size: 13px;
  color: var(--ink);
}

.opt--no .opt__label {
  color: var(--ink-2);
  text-decoration: line-through;
  text-decoration-color: rgba(133, 147, 161, 0.55);
}

.opt__detail {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
  font-family: var(--mono);
}

/* ---------- 验证与边界 ---------- */

.ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.ledger__col {
  background: var(--bg-2);
  padding: clamp(20px, 2.6vw, 32px);
}

.ledger__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}

.ledger__title {
  font-size: 15px;
}

.ledger__count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

.ledger__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ledger;
}

.ledger__list li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--ink-2);
}

.ledger__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ledger__list li::before {
  counter-increment: ledger;
  content: counter(ledger, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
}

.ledger__col--open .ledger__list li::before {
  color: var(--accent);
}

/* ---------- 迭代 ---------- */

.timeline {
  border-top: 1px solid var(--line);
}

.tl-item {
  display: grid;
  grid-template-columns: 56px minmax(180px, 0.55fr) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 28px);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.tl-item__n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.tl-item__name {
  font-size: 14.5px;
  color: var(--ink);
}

.tl-item__body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ---------- 文档 ---------- */

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.doc {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  transition: background 0.18s ease;
}

.doc:hover {
  background: var(--panel);
}

.doc__title {
  font-size: 14px;
  color: var(--ink);
}

.doc__title::after {
  content: " ↗";
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}

.doc__note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.iter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.iter-links a {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 6px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.iter-links a:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .85rem;
  list-style: none;
  padding: 0;
  margin: .7rem 0 0;
  font-size: .82rem;
}

.source-links li { min-width: 0; overflow-wrap: anywhere; }

#references,
.reference-group li {
  scroll-margin-top: var(--header, 6rem);
}

#references { margin-top: 3rem; }
.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.reference-group ul { list-style: none; padding: 0; }
.reference-group li { padding: .8rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.reference-group li:target { border-color: var(--accent); background: rgba(232, 165, 95, .08); }
.reference-group li span { display: block; color: var(--ink-3); font-size: .82rem; }
.reference-group li p { margin: .25rem 0 0; color: var(--ink-2); font-size: .9rem; }

.subhead {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 34px;
  margin-bottom: 12px;
}

.subhead__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.subhead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

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

.footer {
  padding: clamp(32px, 5vw, 64px) var(--inset);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-2);
}

.footer__statement {
  font-size: 14px;
  color: var(--ink-2);
}

.footer__note,
.footer__credits {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
  max-width: 82ch;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.footer__link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
}

/* ---------- 大图 ---------- */

.lightbox {
  border: 0;
  padding: 0;
  margin: auto;
  max-width: min(96vw, 1680px);
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(5, 7, 9, 0.9);
  backdrop-filter: blur(4px);
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox img {
  display: block;
  max-width: min(94vw, 1680px);
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line-2);
  background: #05080a;
}

.lightbox__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-3);
  padding-inline: 2px;
}

.lightbox__caption strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line-2);
  background: rgba(10, 13, 16, 0.86);
  border-radius: var(--radius-pill);
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 18px;
  border: 1px solid var(--line-2);
  background: rgba(10, 13, 16, 0.86);
  border-radius: var(--radius-pill);
}

.lightbox__nav--prev {
  left: 18px;
}

.lightbox__nav--next {
  right: 18px;
}

.lightbox__nav:hover,
.lightbox__close:hover {
  border-color: var(--accent-line);
  color: var(--accent);
}

/* ---------- 其他 ---------- */

.noscript {
  padding: 32px var(--inset) 64px;
  color: var(--ink-2);
  font-size: 14px;
}

.noscript ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.noscript a {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .sec-head,
  .gal-group__head {
    grid-template-columns: 64px minmax(0, 1fr);
  }

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

  .opt-block__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .sec-head .sec-body,
  .sec-head__aside,
  .gal-group__note {
    grid-column: 2;
  }

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

  .masonry {
    columns: 2;
  }

  .topbar__meta {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero__copy {
    order: 2;
    padding-inline: var(--pad);
    padding-top: 32px;
  }

  .hero__media {
    order: 1;
    min-height: 46svh;
  }

  .hero__media::after {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 13, 16, 0.35) 30%, rgba(10, 13, 16, 0) 62%);
  }

  .hero__lede {
    max-width: none;
  }

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

  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

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

  .tl-item {
    grid-template-columns: 44px minmax(0, 1fr);
    row-gap: 4px;
  }

  .tl-item__body {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .topbar__inner {
    flex-wrap: wrap;
    gap: 4px 12px;
    padding-block: 10px;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-inline-start: 0;
    padding-top: 6px;
    border-top: 1px solid var(--line);
    mask-image: linear-gradient(90deg, #000 92%, transparent);
  }

  .nav a {
    min-height: 44px;
  }

  :root {
    --header: 128px;
  }

  .brand__sub {
    display: none;
  }

  .masonry {
    columns: 1;
  }

  .steps {
    grid-auto-columns: 82vw;
  }

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

  .sec-head,
  .gal-group__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .perf-table thead {
    display: none;
  }

  .perf-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .perf-table td {
    display: block;
    padding: 0;
    border: 0;
    text-align: left;
    white-space: normal;
  }

  .perf-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--ink-3);
  }

  .perf-table td:first-child {
    grid-column: 1 / -1;
    font-weight: 500;
  }

  .perf-table td:first-child::before {
    display: none;
  }

  .sec-head .sec-body,
  .sec-head__aside,
  .gal-group__note {
    grid-column: 1;
  }

  .sec-no {
    padding-top: 0;
  }

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

  .lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .lightbox__nav--prev {
    left: 8px;
  }

  .lightbox__nav--next {
    right: 8px;
  }

  .lightbox__close {
    top: 10px;
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .reveal.is-in,
  .hero__media img,
  .target__frame img,
  .shot__img,
  .btn {
    transition: none;
  }

  .shot:hover .shot__img,
  .target:hover .target__frame img {
    transform: none;
  }
}
