/* ==========================================================================
   百汇电玩大家乐 · 共享站点样式 /assets/site.css
   气质：夜间街机厅 × 数据仪表盘
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd { margin: 0; }

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

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

a { color: inherit; }

button { font: inherit; color: inherit; }

main { display: block; }

#main-content { scroll-margin-top: calc(var(--header-h) + 20px); }
#main-content:focus { outline: none; }

/* --------------------------------------------------------------- 变量 */
:root {
  --ink: #0B0E1A;
  --ink-2: #141A2B;
  --ink-3: #101728;
  --purple: #7B2FF7;
  --cyan: #00E5FF;
  --yellow: #F5FF3D;
  --pink: #FF3D8B;
  --paper: #F7F3E8;
  --fog: #8B93A7;
  --line: #39415A;
  --line-soft: rgba(57, 65, 90, 0.6);
  --text-body: #D6D9E4;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1440px;
  --gutter: clamp(18px, 3vw, 32px);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- 基础 */
body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 520px at 88% -12%, rgba(123, 47, 247, 0.22), transparent 62%),
    radial-gradient(760px 460px at 6% 8%, rgba(0, 229, 255, 0.12), transparent 60%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 全站细扫描线 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.026) 0 1px,
    transparent 1px 4px
  );
}

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

::selection {
  background: var(--purple);
  color: var(--paper);
}

/* --------------------------------------------------------------- 布局 */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(44px, 6.5vw, 92px); }
.section--tight { padding-block: clamp(26px, 4vw, 52px); }

.grid { display: grid; gap: clamp(14px, 1.8vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.divider {
  height: 1px;
  border: 0;
  margin-block: clamp(24px, 4vw, 46px);
  background: linear-gradient(90deg, var(--line), rgba(57, 65, 90, 0.15) 70%, transparent);
}

/* --------------------------------------------------------------- 排版 */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.h3 {
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
  color: var(--text-body);
  max-width: 62ch;
}

.muted { color: var(--fog); }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text-body);
}

.prose > * + * { margin-top: 1.05em; }

.prose h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin-top: 2em;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: clamp(18px, 1.8vw, 22px);
  margin-top: 1.6em;
}

.prose strong { color: var(--paper); font-weight: 700; }

.prose a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

.prose ul { list-style: none; }

.prose ul li {
  position: relative;
  padding-left: 20px;
}

.prose ul li + li { margin-top: 0.5em; }

.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--purple);
}

.prose blockquote {
  border-left: 3px solid var(--cyan);
  padding-left: 18px;
  color: var(--fog);
}

/* --------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.16s var(--ease),
    color 0.16s var(--ease),
    border-color 0.16s var(--ease),
    box-shadow 0.16s var(--ease),
    transform 0.16s var(--ease);
}

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

.btn--primary {
  background: var(--purple);
  color: var(--paper);
  box-shadow: 0 0 0 1px rgba(123, 47, 247, 0.55), 0 12px 28px -18px rgba(123, 47, 247, 0.95);
}

.btn--primary:hover {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.6), 0 14px 30px -16px rgba(0, 229, 255, 0.85);
}

.btn--ghost {
  background: rgba(247, 243, 232, 0.03);
  border-color: var(--line);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 12px 28px -18px rgba(245, 255, 61, 0.9);
}

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

.btn--mini {
  padding: 9px 15px;
  font-size: 13px;
}

/* --------------------------------------------------------------- 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 243, 232, 0.04);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  white-space: nowrap;
}

.tag--purple {
  border-color: rgba(123, 47, 247, 0.6);
  background: rgba(123, 47, 247, 0.16);
  color: #CBA9FF;
}

.tag--cyan {
  border-color: rgba(0, 229, 255, 0.5);
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
}

.tag--yellow {
  border-color: rgba(245, 255, 61, 0.55);
  background: rgba(245, 255, 61, 0.12);
  color: var(--yellow);
}

.tag--pink {
  border-color: rgba(255, 61, 139, 0.55);
  background: rgba(255, 61, 139, 0.12);
  color: var(--pink);
}

/* --------------------------------------------------------------- 卡片 */
.card {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(20, 26, 43, 0.96), rgba(11, 14, 26, 0.96));
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.card:hover {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.14), 0 22px 46px -34px rgba(0, 229, 255, 0.8);
}

.card--paper {
  background: var(--paper);
  border-color: #DCD5C4;
  color: var(--ink-2);
}

.card--paper h2,
.card--paper h3,
.card--paper .h3 { color: var(--ink); }

.card--paper .muted { color: #5B6276; }

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel {
  padding: clamp(18px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}

/* --------------------------------------------------------------- 数据 */
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--yellow);
  text-shadow: 0 0 20px rgba(245, 255, 61, 0.28);
}

.stat__value--cyan {
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.32);
}

.stat__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--fog);
}

/* --------------------------------------------------------------- 图片容器 */
.media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #1B2440, #0B0E1A 72%);
}

.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 4 / 5; }

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06) brightness(0.82);
  transition: transform 0.5s var(--ease), filter 0.4s var(--ease);
}

.media:hover .media__img {
  transform: scale(1.03);
  filter: saturate(1.02) contrast(1.06) brightness(0.9);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to bottom, rgba(0, 229, 255, 0.055) 0 1px, transparent 1px 4px),
    radial-gradient(130% 110% at 82% -10%, transparent 38%, rgba(11, 14, 26, 0.74) 100%);
}

.media__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.media__caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 14, 26, 0.76);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------- 面包屑 */
.breadcrumbs {
  padding-block: 18px 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fog);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: rgba(57, 65, 90, 0.95);
}

.breadcrumbs__link {
  color: var(--fog);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.breadcrumbs__link:hover { color: var(--cyan); }

.breadcrumbs__item[aria-current="page"] { color: var(--paper); }

/* --------------------------------------------------------------- 跳转链接 */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* --------------------------------------------------------------- 头部 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 14, 26, 0.97);
  border-bottom: 1px solid var(--line);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5), rgba(123, 47, 247, 0.5), transparent);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 3;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
  min-height: var(--header-h);
  padding-block: 10px;
}

/* 品牌锁标 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--paper);
  transition: opacity 0.16s var(--ease);
}

.brand:hover { opacity: 0.92; }

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  background: linear-gradient(145deg, rgba(123, 47, 247, 0.95), rgba(11, 14, 26, 0.94));
  box-shadow: 0 0 20px -6px rgba(123, 47, 247, 0.95), inset 0 0 14px rgba(0, 229, 255, 0.12);
}

.brand__mark::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(245, 255, 61, 0.85);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(0, 229, 255, 0.32);
  border-radius: 7px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--paper);
  white-space: nowrap;
}

.brand__name em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.45);
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
  white-space: nowrap;
}

/* 桌面导航 */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.8vw, 26px);
  flex: 1 1 auto;
  min-width: 0;
}

.header-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.3vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  color: var(--fog);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s var(--ease);
}

.header-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease);
}

.header-nav__link:hover,
.header-nav__link:focus-visible { color: var(--paper); }

.header-nav__link:hover::after,
.header-nav__link:focus-visible::after { transform: scaleX(1); }

.header-nav__link[aria-current="page"] {
  color: var(--yellow);
  font-weight: 700;
}

.header-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(245, 255, 61, 0.6);
}

.header-nav__utils {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: clamp(12px, 1.6vw, 22px);
  border-left: 1px solid var(--line);
}

.header-util {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-body);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.header-util:hover {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.55);
  background: rgba(0, 229, 255, 0.07);
}

/* 移动端开合按钮 */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 80;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 26, 43, 0.9);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(0, 229, 255, 0.6);
  color: var(--cyan);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: background-color 0.18s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

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

.nav-toggle__label { line-height: 1; }

.site-header[data-open] .nav-toggle {
  border-color: rgba(245, 255, 61, 0.6);
  color: var(--yellow);
}

.site-header[data-open] .nav-toggle__bars,
.site-header[data-open] .nav-toggle__bars::before,
.site-header[data-open] .nav-toggle__bars::after {
  background-color: var(--yellow);
}

.site-header[data-open] .nav-toggle__bars { background-color: transparent; }
.site-header[data-open] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 移动端遮罩 */
.nav-scrim {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--header-h);
  z-index: 65;
  display: none;
  background: rgba(11, 14, 26, 0.76);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), visibility 0s linear 0.22s;
}

.site-header[data-open] .nav-scrim {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s var(--ease), visibility 0s;
}

/* --------------------------------------------------------------- 页脚 */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 104px);
  padding-block: clamp(32px, 4.5vw, 58px) 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--purple), var(--cyan) 45%, transparent 88%);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 0.85fr 1.25fr;
  gap: clamp(22px, 3vw, 48px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer-tagline {
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fog);
}

.footer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col { min-width: 0; }

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link {
  position: relative;
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.5;
  color: #C8CDDB;
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.16s var(--ease);
}

.footer-link:hover { color: var(--cyan); }
.footer-link:hover::after { transform: scaleX(1); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 13px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact__key {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
}

.footer-contact__val {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
  word-break: break-word;
}

.footer-contact__val--addr {
  font-family: var(--font-body);
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  margin-top: clamp(26px, 3.5vw, 46px);
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fog);
}

.footer-note {
  flex: 1 1 320px;
  max-width: 56ch;
  line-height: 1.65;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal .footer-link { font-size: 13px; }

.footer-copy {
  flex: 1 1 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(139, 147, 167, 0.9);
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 26, 43, 0.94);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    border-color 0.16s var(--ease),
    color 0.16s var(--ease),
    visibility 0s linear 0.2s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    border-color 0.16s var(--ease),
    color 0.16s var(--ease),
    visibility 0s;
}

.to-top:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* --------------------------------------------------------------- 进入视口 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

/* --------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
  :root { --header-h: 66px; }

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

  .nav-scrim { display: block; }

  .header-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: min(336px, 86vw);
    padding: calc(var(--header-h) + 20px) 20px 30px;
    overflow-y: auto;
    background: linear-gradient(180deg, #151C30, #0B0E1A 64%);
    border-left: 1px solid var(--line);
    box-shadow: -28px 0 64px -34px rgba(0, 0, 0, 0.95);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.22s var(--ease), visibility 0s linear 0.22s;
  }

  .site-header[data-open] .header-nav {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.22s var(--ease), visibility 0s;
  }

  .header-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .header-nav__link {
    display: block;
    padding: 14px 15px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 700;
    color: var(--paper);
    white-space: normal;
  }

  .header-nav__link::after { display: none; }

  .header-nav__link:hover {
    border-color: var(--line);
    background: rgba(0, 229, 255, 0.07);
  }

  .header-nav__link[aria-current="page"] {
    color: var(--yellow);
    border-color: rgba(245, 255, 61, 0.5);
    background: rgba(245, 255, 61, 0.09);
  }

  .header-nav__utils {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .header-util {
    padding: 12px 15px;
    text-align: center;
    font-size: 14px;
  }

  .header-nav__utils .btn { width: 100%; padding-block: 13px; }

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

  .footer-brand { grid-column: 1 / -1; }

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

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

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .display { font-size: clamp(38px, 12vw, 60px); }

  .breadcrumbs { padding-block: 14px 4px; }

  .to-top { padding: 9px 14px; font-size: 12px; }
}

@media (max-width: 640px) {
  .footer-main { grid-template-columns: 1fr; gap: 28px; }

  .footer-bottom { gap: 14px; }

  .footer-legal { gap: 14px; }

  .brand__tag { font-size: 9px; letter-spacing: 0.12em; }

  .section { padding-block: clamp(36px, 9vw, 56px); }
}

/* --------------------------------------------------------------- 减少动效 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .media:hover .media__img { transform: none; }
}
