/* ============================================================
   Trace Browser — Specimen Plate
   档案纸底 + 单一钴蓝锚点 + 宋体/等宽双层排版。
   规则：展示软件的段落用深色，描述软件的段落用纸色。
   字体全部走系统栈（国内可用，不依赖 Google Fonts）。
   ============================================================ */

:root {
  /* —— 纸 —— */
  --paper: #ede7db;
  --paper-2: #e4ddce;
  --paper-3: #f4f0e7;

  /* —— 墨 —— */
  --ink: #14161a;
  --ink-2: #5a6069;
  --ink-3: #8b9199;

  /* —— 唯一高饱和锚点色 —— */
  --cobalt: #2742ce;
  --cobalt-soft: rgba(39, 66, 206, 0.1);

  /* —— 深色段（仅用于产品截图） —— */
  --dark: #14171c;
  --dark-2: #1b1f26;
  --dark-3: #232830;
  --on-dark: #ece7dd;
  --on-dark-2: #8e959e;

  /* —— 细线 —— */
  --rule: rgba(20, 22, 26, 0.16);
  --rule-strong: rgba(20, 22, 26, 0.34);
  --rule-dark: rgba(236, 231, 221, 0.14);
  --rule-dark-strong: rgba(236, 231, 221, 0.3);

  /* —— 字体 —— */
  --f-display: "Palatino Linotype", Palatino, "Iowan Old Style", Georgia, "Songti SC", "STSong",
    "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", SimSun, serif;
  --f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --f-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, Menlo, monospace;

  /* —— 度量 —— */
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --r: 4px;
  --r-pill: 999px;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

svg {
  display: block;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

p {
  margin: 0;
}

dl,
dd,
dt,
ul,
ol,
li,
figure,
figcaption {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

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

/* ============================================================
   工具
   ============================================================ */

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  border-radius: var(--r);
  padding: 10px 16px;
  color: var(--paper);
  background: var(--cobalt);
  font-weight: 600;
}

/* 等宽微标注：英文元数据与代码值 */
.micro {
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.band-dark .micro {
  color: var(--on-dark-2);
}

.micro-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--cobalt);
  vertical-align: 2px;
  box-shadow: 0 0 0 4px var(--cobalt-soft);
}

/* ============================================================
   按钮
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease,
    transform 200ms ease;
}

.btn span {
  font-size: 0.92em;
  transition: transform 200ms ease;
}

.btn-solid {
  color: var(--paper);
  background: var(--ink);
}

.btn-solid:hover {
  background: var(--cobalt);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(20, 22, 26, 0.05);
}

.btn:hover span {
  transform: translate(2px, -2px);
}

.btn-ghost:hover span {
  transform: translateX(3px);
}

.btn-lg {
  min-height: 56px;
  padding: 0 32px;
  font-size: 16px;
}

/* ============================================================
   顶栏 — 深色悬浮胶囊（在纸色和深色段上都成立）
   ============================================================ */

.topbar {
  position: fixed;
  z-index: 60;
  top: 14px;
  left: 50%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  border: 1px solid var(--rule-dark);
  border-radius: var(--r-pill);
  padding: 8px 8px 8px 18px;
  background: rgba(20, 23, 28, 0.9);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transform: translateX(-50%);
  transition: box-shadow 260ms ease, background-color 260ms ease;
}

.topbar.is-scrolled {
  background: rgba(20, 23, 28, 0.96);
  box-shadow: 0 16px 44px rgba(20, 22, 26, 0.24);
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark);
  font-family: var(--f-display);
  font-size: 17px;
}

.topbar-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.topbar-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.topbar-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: var(--r-pill);
  padding: 0 15px;
  color: var(--on-dark-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 200ms ease, background-color 200ms ease;
}

.topbar-nav a:hover {
  color: var(--on-dark);
  background: rgba(236, 231, 221, 0.08);
}

.topbar-nav a.is-active {
  color: var(--on-dark);
}

.topbar-nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cobalt);
  transform: translateX(-50%);
}

.topbar-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border-radius: var(--r-pill);
  padding: 0 17px;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 200ms ease, color 200ms ease;
}

.topbar-cta:hover {
  color: var(--paper);
  background: var(--cobalt);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 36px;
  border: 1px solid var(--rule-dark-strong);
  border-radius: var(--r-pill);
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 14px;
  height: 1.5px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--on-dark);
  transition: transform 220ms ease;
}

.nav-toggle[aria-expanded="true"] span:not(.sr-only):first-of-type {
  transform: translateY(2.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-of-type(2) {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* ============================================================
   标本图版 —— 页面的签名元素
   ============================================================ */

.plate {
  min-width: 0;
}

.plate-frame {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 40px);
  background-color: var(--paper-2);
  /* 半调网点：印刷复制质感 */
  background-image: radial-gradient(rgba(20, 22, 26, 0.11) 0.6px, transparent 0.7px);
  background-size: 4px 4px;
}

/* 四角配准十字 */
.reg {
  position: absolute;
  width: 13px;
  height: 13px;
  opacity: 0.55;
  background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: 100% 1px, 1px 100%;
  background-position: center center, center center;
}

.reg-tl {
  top: 12px;
  left: 12px;
}
.reg-tr {
  top: 12px;
  right: 12px;
}
.reg-bl {
  bottom: 12px;
  left: 12px;
}
.reg-br {
  bottom: 12px;
  right: 12px;
}

.plate-id {
  position: absolute;
  right: 34px;
  bottom: 22px;
  color: var(--cobalt);
}

.plate figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--rule);
  margin-top: 12px;
  padding-top: 10px;
}

/* — 指纹 — */
.fp {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.fp-ridge {
  stroke: var(--ink);
  stroke-width: 1.2;
  opacity: 0.78;
}

/* 中段以钴蓝标出，并轻微套印错位 —— 唯一的高饱和区域 */
.fp-band {
  stroke: var(--cobalt);
  stroke-width: 1.9;
  transform: translate(2.5px, -1.5px);
}

.fp-core {
  fill: var(--cobalt);
  stroke: none;
}

/* — 场景示意图 — */
.dia {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.dia-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.1;
  stroke-linecap: round;
  opacity: 0.62;
}

.dia-dash {
  stroke-dasharray: 5 4;
}

.dia-accent-line {
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.dia-accent-fill {
  fill: var(--cobalt);
  stroke: none;
}

.dia-label,
.dia-accent-text,
.dia-cap {
  stroke: none;
  opacity: 1;
}

.dia-label {
  fill: var(--paper);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.dia-accent-text {
  fill: var(--cobalt);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.dia-cap {
  fill: var(--ink-2);
  font-family: var(--f-body);
  font-size: 12px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 118px var(--gutter) clamp(70px, 8vw, 110px);
}

.colophon {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 28px;
  width: min(var(--wrap), 100%);
  margin: 0 auto clamp(38px, 5vw, 66px);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  width: min(var(--wrap), 100%);
  margin-inline: auto;
}

/* 中文不走等宽，避免 CJK 回退字体和字距不匹配 */
.hero-eyebrow {
  display: flex;
  align-items: center;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin: 20px 0 0;
  font-family: var(--f-display);
  line-height: 1.06;
  letter-spacing: -0.012em;
}

.hero-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: clamp(22px, 2.9vw, 38px);
  color: var(--ink-2);
}

.hero-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  margin-left: 0.24em;
}

.hero-brand-mark {
  width: 0.84em;
  height: 0.84em;
  border-radius: 22%;
  align-self: center;
}

.hero-brand-name {
  color: var(--ink);
}

.hero-line-lead {
  margin-top: 0.08em;
  font-size: clamp(40px, 6.6vw, 92px);
  color: var(--ink);
}

.hero-copy {
  max-width: 520px;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.78;
  text-wrap: pretty;
}

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

.spec {
  margin-top: clamp(34px, 4vw, 52px);
  border-top: 1px solid var(--rule);
}

.spec-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  border-bottom: 1px solid var(--rule);
  padding: 11px 0;
}

.spec-row dt {
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.spec-row dd {
  color: var(--ink);
  font-size: 13.5px;
}

/* ============================================================
   段落容器
   ============================================================ */

.band {
  padding: clamp(80px, 9.5vw, 132px) var(--gutter);
}

.band-dark {
  color: var(--on-dark);
  background: var(--dark);
}

.band-head,
.switch-tabs,
.case-stack,
.feature-stack,
.pipeline,
.ticket,
.value-grid,
.gallery {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
}

.band-head {
  margin-bottom: clamp(36px, 4.6vw, 60px);
}

.band-head h2 {
  max-width: 1040px;
  margin-top: 18px;
  font-family: var(--f-display);
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.band-sub {
  max-width: 640px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.78;
  text-wrap: pretty;
}

.band-dark .band-sub {
  color: var(--on-dark-2);
}

/* ============================================================
   切换标签
   ============================================================ */

.switch-tabs {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  overflow-x: auto;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(28px, 3.4vw, 44px);
  scrollbar-width: none;
}

.switch-tabs::-webkit-scrollbar {
  display: none;
}

.band-dark .switch-tabs {
  border-bottom-color: var(--rule-dark);
}

.switch-tabs button {
  position: relative;
  flex: 0 0 auto;
  min-height: 44px;
  border: 0;
  padding: 0 0 12px;
  color: var(--ink-2);
  background: transparent;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 500;
  white-space: nowrap;
  transition: color 200ms ease;
}

.band-dark .switch-tabs button {
  color: var(--on-dark-2);
}

.switch-tabs button::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.switch-tabs button:hover {
  color: var(--ink);
}

.band-dark .switch-tabs button:hover {
  color: var(--on-dark);
}

.switch-tabs .is-active {
  color: var(--ink);
}

.band-dark .switch-tabs .is-active {
  color: var(--on-dark);
}

.switch-tabs .is-active::after {
  transform: scaleX(1);
}

/* ============================================================
   场景
   ============================================================ */

.case {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.case[hidden] {
  display: none;
}

/* 固定高度，避免切换标签时四张示意图高度不同造成跳动 */
.plate-sm .plate-frame {
  min-height: clamp(280px, 29vw, 356px);
  padding: clamp(20px, 2.4vw, 32px);
}

.case-code {
  color: var(--cobalt);
}

.case-body h3 {
  margin-top: 16px;
  font-family: var(--f-display);
  font-size: clamp(25px, 2.9vw, 40px);
  line-height: 1.18;
  text-wrap: balance;
}

.case-copy {
  max-width: 560px;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.78;
  text-wrap: pretty;
}

.case-spec {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-top: 28px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

.case-spec > div {
  display: grid;
  gap: 4px;
}

.case-spec dt {
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-spec dd {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink);
}

/* ============================================================
   能力（深色段）
   ============================================================ */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.feature[hidden] {
  display: none;
}

.feature-body h3 {
  margin-top: 16px;
  font-family: var(--f-display);
  font-size: clamp(24px, 2.7vw, 36px);
  line-height: 1.2;
  color: var(--on-dark);
  text-wrap: balance;
}

.feature-copy {
  margin-top: 16px;
  color: var(--on-dark-2);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.78;
  text-wrap: pretty;
}

.feature-list {
  margin-top: 26px;
  border-top: 1px solid var(--rule-dark);
}

.feature-list li {
  position: relative;
  border-bottom: 1px solid var(--rule-dark);
  padding: 13px 0 13px 22px;
  font-size: 14.5px;
  line-height: 1.55;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 2px;
  width: 6px;
  height: 1px;
  background: var(--cobalt);
}

.shot {
  overflow: hidden;
  border: 1px solid var(--rule-dark);
  border-radius: var(--r);
  padding: 10px;
  background: var(--dark-2);
}

.shot img {
  width: 100%;
  height: clamp(240px, 30vw, 440px);
  border-radius: 2px;
  object-fit: cover;
  object-position: left top;
  background: var(--dark-3);
}

/* ============================================================
   交接流程
   ============================================================ */

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--rule);
}

.step {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--paper);
  transition: background-color 300ms ease;
}

.step:hover {
  background: var(--paper-3);
}

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

.step-index span {
  color: var(--cobalt);
  font-size: 13px;
}

.step h3 {
  margin-top: 16px;
  font-family: var(--f-display);
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.32;
  text-wrap: balance;
}

.step-copy {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.7;
  text-wrap: pretty;
}

.readout {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 26px;
}

.readout-line {
  display: grid;
  gap: 3px;
}

.readout-line small {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.readout-line b {
  font-family: var(--f-mono);
  font-size: 13.5px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.readout-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: 12px;
}

.readout-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-2);
}

.readout-status-accent {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.readout-status-accent i {
  background: var(--cobalt);
}

.meter {
  height: 5px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: rgba(20, 22, 26, 0.12);
}

.meter i {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: var(--cobalt);
}

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

.pills li {
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-size: 11.5px;
  color: var(--ink-2);
}

/* ============================================================
   交接单 —— 纸面上唯一的深色实物
   ============================================================ */

.ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(210px, 24vw, 264px);
  margin-top: clamp(40px, 4.6vw, 64px);
  border-radius: var(--r);
  color: var(--on-dark);
  background: var(--dark);
  box-shadow: 0 30px 70px rgba(20, 22, 26, 0.28);
}

.ticket .micro {
  color: var(--on-dark-2);
}

.ticket-main {
  padding: clamp(28px, 3.4vw, 46px);
}

.ticket-code {
  display: block;
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: clamp(32px, 5vw, 62px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.ticket-note {
  max-width: 420px;
  margin-top: 20px;
  color: var(--on-dark-2);
  font-size: 14.5px;
  line-height: 1.78;
  text-wrap: pretty;
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: 28px;
  border-top: 1px solid var(--rule-dark);
  padding-top: 20px;
}

.ticket-meta > div {
  display: grid;
  gap: 4px;
}

.ticket-meta dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--on-dark-2);
}

.ticket-meta dd {
  font-family: var(--f-mono);
  font-size: 14px;
}

/* 副券 + 撕线 */
.ticket-stub {
  position: relative;
  display: flex;
  flex-direction: column;
  border-left: 2px dashed var(--rule-dark-strong);
  padding: clamp(28px, 3.4vw, 46px) clamp(20px, 2.2vw, 30px);
}

.ticket-stub::before,
.ticket-stub::after {
  content: "";
  position: absolute;
  left: -13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
}

.ticket-stub::before {
  top: -12px;
}

.ticket-stub::after {
  bottom: -12px;
}

.ticket-scope {
  margin-top: 12px;
  border-top: 1px solid var(--rule-dark);
}

.ticket-scope li {
  border-bottom: 1px solid var(--rule-dark);
  padding: 9px 0;
  font-size: 13px;
}

.ticket .ticket-foot {
  margin-top: auto;
  padding-top: 20px;
  color: #8fa0ff;
}

/* ============================================================
   价值
   ============================================================ */

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

.value {
  padding: clamp(26px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
  background: var(--paper);
}

.value:first-child {
  padding-left: 0;
}

.value:last-child {
  padding-right: 0;
}

.value h3 {
  margin-top: 16px;
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.28;
  text-wrap: balance;
}

.value p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.78;
  text-wrap: pretty;
}

/* ============================================================
   界面画廊（深色段）
   ============================================================ */

.gallery-stage {
  position: relative;
  border: 1px solid var(--rule-dark);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--dark-2);
}

.gallery-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 330px);
  align-items: stretch;
}

.gallery-shot {
  padding: clamp(16px, 2vw, 28px);
  background: var(--dark-3);
}

.gallery-shot img {
  width: 100%;
  height: clamp(280px, 34vw, 470px);
  border-radius: 2px;
  object-fit: contain;
  transition: opacity 260ms ease, transform 260ms ease;
}

.gallery-slide figcaption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--rule-dark);
  padding: clamp(24px, 2.6vw, 36px);
}

.gallery-slide figcaption strong {
  margin-top: 16px;
  font-family: var(--f-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.26;
  text-wrap: balance;
}

.gallery-slide figcaption p {
  margin-top: 14px;
  color: var(--on-dark-2);
  font-size: 14px;
  line-height: 1.72;
  text-wrap: pretty;
}

.gallery.is-swapping .gallery-shot img,
.gallery.is-swapping figcaption strong,
.gallery.is-swapping figcaption p {
  opacity: 0.32;
  transform: translateY(5px);
}

.gallery-arrow {
  position: absolute;
  bottom: clamp(16px, 2vw, 28px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule-dark-strong);
  border-radius: 50%;
  color: var(--on-dark);
  background: rgba(20, 23, 28, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 15px;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.gallery-arrow:hover {
  border-color: var(--cobalt);
  color: #9fb0ff;
}

.gallery-arrow-prev {
  right: calc(clamp(16px, 2vw, 28px) + 48px);
}

.gallery-arrow-next {
  right: clamp(16px, 2vw, 28px);
}

.gallery-progress {
  height: 2px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--rule-dark);
}

.gallery-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left center;
}

.gallery.is-playing .gallery-progress span {
  animation: gallery-progress 5600ms linear infinite;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.thumb {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rule-dark);
  border-radius: 3px;
  padding: 7px;
  color: var(--on-dark-2);
  background: var(--dark-2);
  transition: border-color 200ms ease, color 200ms ease;
}

.thumb img {
  width: 100%;
  height: 62px;
  border-radius: 2px;
  object-fit: cover;
  object-position: left top;
  background: var(--dark-3);
  opacity: 0.5;
  transition: opacity 200ms ease;
}

.thumb span {
  overflow: hidden;
  font-size: 11.5px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumb:hover,
.thumb.is-active {
  color: var(--on-dark);
  border-color: var(--rule-dark-strong);
}

.thumb:hover img,
.thumb.is-active img {
  opacity: 1;
}

.thumb.is-active {
  border-color: var(--cobalt);
}

/* ============================================================
   收尾
   ============================================================ */

.closing {
  display: grid;
  justify-items: center;
  text-align: center;
}

.closing h2 {
  max-width: 900px;
  margin-top: 20px;
  font-family: var(--f-display);
  font-size: clamp(34px, 5.6vw, 74px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.closing-copy {
  max-width: 480px;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.78;
  text-wrap: pretty;
}

.closing .btn {
  margin-top: 32px;
}

.closing-note {
  margin-top: 22px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  border-top: 1px solid var(--rule);
  padding: 26px var(--gutter) 40px;
  color: var(--ink-2);
  font-size: 13px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 16px;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.footer-copy {
  flex: 1 1 320px;
  min-width: 0;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease;
}

.footer-link:hover {
  color: var(--cobalt);
  border-color: var(--cobalt);
}

/* ============================================================
   动效
   ============================================================ */

@keyframes gallery-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 640ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 640ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* hero 载入序列（只作用于 hero 内，场景里的图版走 reveal） */
.js .colophon,
.js .hero .plate,
.js .hero-eyebrow,
.js .hero-title,
.js .hero-copy,
.js .hero-actions,
.js .hero .spec {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-enter 900ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.js .colophon {
  animation-delay: 80ms;
}
.js .hero-eyebrow {
  animation-delay: 200ms;
}
.js .hero-title {
  animation-delay: 290ms;
}
.js .hero-copy {
  animation-delay: 390ms;
}
.js .hero-actions {
  animation-delay: 470ms;
}
.js .hero .plate {
  animation-delay: 540ms;
}
.js .hero .spec {
  animation-delay: 620ms;
}

@keyframes hero-enter {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .plate {
    order: 2;
    max-width: 460px;
  }

  .hero-lead {
    order: 1;
  }

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

  .gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 8px 8px 8px 15px;
  }

  .nav-toggle {
    display: block;
  }

  .topbar-cta {
    display: none;
  }

  .topbar-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--rule-dark);
    border-radius: 18px;
    padding: 8px;
    background: rgba(20, 23, 28, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 22px 50px rgba(20, 22, 26, 0.32);
  }

  .topbar-nav.is-open {
    display: flex;
  }

  .topbar-nav a {
    justify-content: flex-start;
    min-height: 48px;
    border-radius: 12px;
    font-size: 15px;
  }

  .topbar-nav a.is-active::after {
    left: auto;
    right: 15px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .case,
  .feature,
  .gallery-slide {
    grid-template-columns: minmax(0, 1fr);
  }

  .plate-sm {
    max-width: 460px;
  }

  .gallery-slide figcaption {
    border-left: 0;
    border-top: 1px solid var(--rule-dark);
    padding-bottom: 84px;
  }

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

  .value {
    padding-left: 0;
    padding-right: 0;
  }

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

  .ticket-stub {
    border-left: 0;
    border-top: 2px dashed var(--rule-dark-strong);
  }

  .ticket-stub::before,
  .ticket-stub::after {
    top: -13px;
    bottom: auto;
    left: auto;
  }

  .ticket-stub::before {
    left: -12px;
  }

  .ticket-stub::after {
    right: -12px;
  }
}

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

  .colophon {
    flex-direction: column;
    gap: 6px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

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

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

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .hero-line {
    font-size: 20px;
  }

  .hero-line-lead {
    font-size: 36px;
  }

  .ticket-code {
    font-size: 28px;
  }

  .plate-frame {
    padding: 18px;
  }

  .reg {
    width: 10px;
  }
}

/* ============================================================
   降低动效
   ============================================================ */

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal,
  .js .colophon,
  .js .hero .plate,
  .js .hero-eyebrow,
  .js .hero-title,
  .js .hero-copy,
  .js .hero-actions,
  .js .hero .spec {
    opacity: 1;
    transform: none;
  }
}
