/* ==========================================================================
   泓途网络 · 产品目录
   设计方向：深海极光（Deep Aurora）
   - 近黑底 + 极光渐层 + 细网格与颗粒，玻璃卡片承载截图
   - 大字号中文标题、克制的双色强调（薄荷 / 天蓝），运动只回应操作与入场
   - 唯一数据源 data/site.mjs，结构由 scripts/build.mjs 生成
   ========================================================================== */

/* 1. 令牌 ---------------------------------------------------------------- */
:root {
  --ink-0: #05070a;
  --ink-1: #0a0e13;
  --ink-2: #11161d;
  --text: #f3f6f8;
  --muted: #93a0a8;
  --muted-2: #6b7780;
  --mint: #6fe9cf;
  --blue: #6c9dff;
  --amber: #f3cb93;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.07);

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
    -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;

  --wrap: 1280px;
  --gutter: 32px;
  --header-h: 72px;
  --radius: 20px;
  --radius-sm: 12px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 168px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. 基础 ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html.is-locked {
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--ink-0);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 极光底 + 网格 + 颗粒：全部 CSS / 内联 SVG，无外部请求 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(50% 46% at 78% -6%, rgba(111, 233, 207, 0.16), transparent 62%),
    radial-gradient(46% 42% at 12% 4%, rgba(108, 157, 255, 0.14), transparent 60%),
    radial-gradient(56% 50% at 52% 108%, rgba(108, 157, 255, 0.1), transparent 64%),
    var(--ink-0);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 88px, 88px 88px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  opacity: 0.55;
}

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

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

h1,
h2,
h3 {
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(28px, 3.6vw, 46px);
}

h3 {
  font-size: 20px;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

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

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

::selection {
  background: rgba(111, 233, 207, 0.28);
  color: #fff;
}

[hidden] {
  display: none !important;
}

/* 3. 布局 ---------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--mint);
  color: #04120f;
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus-visible {
  left: 16px;
  top: 16px;
}

/* 4. 页头 ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 7, 10, 0.62);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand__logo {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13.5px;
  color: var(--text);
}

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

/* 滚动进度：贴在页头下沿的一条极光细线 */
.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--mint), var(--blue));
  opacity: 0.9;
}

/* 5. 首屏 ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 9vh, 120px);
  padding-bottom: clamp(40px, 6vh, 80px);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-5);
  font-size: 13px;
  color: var(--muted);
}

.hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--mint), transparent);
}

.hero h1 {
  max-width: 12ch;
  background: linear-gradient(180deg, #ffffff 38%, #c6d6db 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--mint), var(--blue) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 44ch;
  margin-top: var(--space-6);
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--muted);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

.hero__stat {
  display: grid;
  gap: 4px;
}

.hero__stat b {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.hero__stat span {
  font-size: 12.5px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-7);
}

/* 右侧：三张截图叠成一副牌 */
.stack {
  position: relative;
  aspect-ratio: 1 / 0.94;
  min-width: 0;
  isolation: isolate;
}

/* 牌后面的极光光斑（用渐变的柔边代替 blur，避免额外的滤镜图层） */
.stack::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  background: radial-gradient(42% 42% at 52% 44%, rgba(111, 233, 207, 0.16), transparent 72%),
    radial-gradient(38% 38% at 72% 72%, rgba(108, 157, 255, 0.14), transparent 74%);
  pointer-events: none;
}

.stack__item {
  position: absolute;
  width: 74%;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.stack__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.stack__item--a {
  top: 2%;
  left: 0;
  transform: rotate(-7deg);
  z-index: 1;
}

.stack__item--b {
  top: 20%;
  right: 0;
  transform: rotate(5.5deg);
  z-index: 2;
}

.stack__item--c {
  bottom: 0;
  left: 12%;
  width: 78%;
  transform: rotate(-1.5deg);
  z-index: 3;
}

/* 首屏文案的入场：一次，不逐块 */
.hero__eyebrow,
.hero h1,
.hero__lead,
.hero__stats,
.hero__actions {
  animation: rise-in 0.8s var(--ease) both;
}

.hero__eyebrow {
  animation-delay: 0.02s;
}
.hero h1 {
  animation-delay: 0.08s;
}
.hero__lead {
  animation-delay: 0.16s;
}
.hero__stats {
  animation-delay: 0.24s;
}
.hero__actions {
  animation-delay: 0.3s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 6. 按钮 ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.24s var(--ease), background 0.24s var(--ease), border-color 0.24s var(--ease),
    box-shadow 0.24s var(--ease), color 0.24s var(--ease);
}

.btn--primary {
  background: linear-gradient(100deg, var(--mint), var(--blue));
  color: #04120f;
  box-shadow: 0 12px 40px rgba(111, 233, 207, 0.24);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 50px rgba(111, 233, 207, 0.34);
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: var(--panel);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: var(--panel-2);
}

.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 13.5px;
}

/* 7. 分组 ---------------------------------------------------------------- */
.group {
  padding-top: clamp(48px, 6vw, 96px);
}

.group__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--space-4) var(--space-6);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
}

.group__index {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--mint);
  letter-spacing: 0.08em;
}

.group__head h2 {
  grid-column: 2;
}

.group__count {
  grid-column: 3;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* 8. 展品卡 -------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

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

/* 只有一套的分组：做成横向展卡，图与文案左右分栏，避免整幅大图拖成一条 */
.grid--single .card {
  flex-direction: row;
  align-items: stretch;
  min-height: 340px;
}

.grid--single .card__media {
  flex: 0 0 55%;
  margin: 0;
}

.grid--single .card__media img {
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: top center;
}

.grid--single .card__body {
  flex: 1;
  align-content: center;
  padding: var(--space-7) var(--space-7) var(--space-7) var(--space-8);
}

.grid--single .card__title {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3;
}

.grid--single .card__sub {
  font-size: 14.5px;
  max-width: 32ch;
}

.grid--single .card__desc {
  max-width: 36ch;
  margin-top: var(--space-2);
}

.grid--single .card__no {
  padding-top: 8px;
  font-size: 12.5px;
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

/* 光标跟随的高光 */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 0%),
    rgba(111, 233, 207, 0.16),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(111, 233, 207, 0.32);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.card:hover::before,
.card:focus-visible::before {
  opacity: 1;
}

.card__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
}

.card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
  filter: saturate(1.02);
}

.card:hover .card__media img {
  transform: scale(1.03);
  filter: saturate(1.08);
}

.card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px var(--space-4);
  padding: var(--space-4) var(--space-3) var(--space-3);
}

.card__title {
  grid-column: 1;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.card__no {
  grid-column: 2;
  align-self: start;
  padding-top: 5px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--mint);
  letter-spacing: 0.06em;
}

.card__sub {
  grid-column: 1 / -1;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
}

.card__facts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-2);
}

.card__facts li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

/* 横向展卡里补一段说明，右侧不至于太空 */
.card__desc {
  grid-column: 1 / -1;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

/* 9. 收尾 ---------------------------------------------------------------- */
.outro {
  max-width: 56ch;
  margin-top: clamp(72px, 9vw, 140px);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* 10. 详情页 -------------------------------------------------------------- */
.detail {
  padding-top: var(--space-5);
  padding-bottom: var(--space-10);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-block: var(--space-4) var(--space-7);
  font-size: 13px;
  color: var(--muted-2);
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb span[aria-hidden] {
  color: var(--line-2);
}

.detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-5);
}

.detail__meta span {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

.detail__meta span:first-child {
  color: var(--mint);
  border-color: rgba(111, 233, 207, 0.3);
}

.detail h1 {
  max-width: 22ch;
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1.12;
}

.detail__sub {
  max-width: 46ch;
  margin-top: var(--space-5);
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-5);
}

.detail__tags li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  background: var(--panel);
}

.detail__cover {
  position: relative;
  margin: var(--space-7) 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}

.detail__cover img {
  width: 100%;
  object-fit: cover;
  object-position: top center;
}

.detail__cover figcaption {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* 通用区块 */
.section {
  padding-top: clamp(56px, 7vw, 96px);
}

.section__title {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* 方案说明 */
.prose {
  max-width: 74ch;
}

.prose p {
  font-size: 15.5px;
  line-height: 1.9;
  color: #c9d2d8;
}

.prose p + p {
  margin-top: var(--space-4);
}

/* 长图 + 信息卡 */
.viewer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
  gap: var(--space-6);
  align-items: start;
}

.viewer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-1);
  overflow: hidden;
}

.viewer__scroll {
  max-height: 640px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.viewer__scroll img {
  width: 100%;
  height: auto;
}

.viewer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.viewer__hint {
  font-size: 12.5px;
  color: var(--muted);
}

.panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(8px);
}

.panel h2 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.panel__facts div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-3);
  padding: 8px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}

.panel__facts dt {
  color: var(--muted);
}

.panel__facts dd {
  margin: 0;
}

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

.module-list li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text);
  background: var(--panel);
}

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

.panel__actions .btn {
  width: 100%;
}

/* 适用场景 */
.scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.scene {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.scene h3 {
  font-size: 15.5px;
  margin-bottom: 6px;
}

.scene p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* 底部行动区 */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid rgba(111, 233, 207, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(80% 120% at 12% 0%, rgba(111, 233, 207, 0.14), transparent 60%),
    radial-gradient(70% 120% at 92% 100%, rgba(108, 157, 255, 0.16), transparent 62%),
    rgba(255, 255, 255, 0.03);
}

.cta h2 {
  font-size: clamp(24px, 2.8vw, 38px);
  max-width: 20ch;
}

.cta p {
  margin-top: var(--space-3);
  font-size: 14px;
  color: var(--muted);
  max-width: 40ch;
}

/* 11. 长图查看器 ---------------------------------------------------------- */
.lightbox {
  width: min(1120px, 92vw);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: #04070a;
  color: var(--text);
  overflow: hidden;
}

.lightbox:not([open]) {
  display: none;
}

.lightbox::backdrop {
  background: rgba(2, 4, 6, 0.86);
  backdrop-filter: blur(4px);
}

.lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.lightbox__close {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  border-color: var(--mint);
  color: var(--mint);
}

.lightbox__body {
  max-height: calc(92vh - 56px);
  overflow: auto;
  overscroll-behavior: contain;
}

.lightbox__body img {
  width: 100%;
  height: auto;
}

/* 12. 响应式 ------------------------------------------------------------- */
@media (max-width: 1080px) {
  :root {
    --gutter: 24px;
  }

  .hero {
    padding-top: var(--space-8);
    padding-bottom: var(--space-9);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-9);
  }

  .stack {
    max-width: 560px;
    aspect-ratio: 1 / 0.8;
  }

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

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

  .panel {
    position: static;
  }

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

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav.is-open {
    position: absolute;
    inset-inline: 0;
    top: var(--header-h);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-3) var(--gutter) var(--space-4);
    background: rgba(5, 7, 10, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open a {
    width: 100%;
    min-height: 52px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  .stack {
    display: none;
  }

  .grid--single .card {
    flex-direction: column;
    min-height: 0;
  }

  .grid--single .card__media {
    flex: none;
  }

  .grid--single .card__media img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .grid--single .card__body {
    padding: var(--space-4) var(--space-3) var(--space-3);
  }

  .hero__stats {
    gap: var(--space-5) var(--space-7);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
  }

  h1 {
    font-size: 42px;
  }

  .hero__lead {
    font-size: 15.5px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .group__head {
    grid-template-columns: auto 1fr;
    row-gap: var(--space-3);
  }

  .group__index {
    grid-column: 1;
    grid-row: 1;
  }

  .group__head h2 {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .group__count {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .card__title {
    font-size: 17px;
  }

  .cta .btn {
    width: 100%;
  }

  .viewer__scroll {
    max-height: 460px;
  }
}

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

  .stack__item,
  .hero__eyebrow,
  .hero h1,
  .hero__lead,
  .hero__stats,
  .hero__actions {
    animation: none;
    opacity: 1;
    transform: none;
    translate: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header,
  .lightbox,
  .stack {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
  }
}
