/* =========================================================
   888棋牌电玩 · 共享样式表 /assets/site.css
   赛博棋牌夜场：深空蓝黑 + 霓虹青/品红 + 金色高光
   ========================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink: #060A18;
  --ink-2: #0D1530;
  --panel: #16224A;
  --cyan: #22E6D2;
  --magenta: #FF3D9A;
  --gold: #FFC24B;
  --white: #E9EFFA;
  --muted: #94A3C6;
  --green: #3BE08A;
  --warn: #FF7A5C;

  --rail-w: 92px;
  --bar-h: 64px;
  --maxw: 1360px;
  --gutter: 20px;

  --radius: 14px;
  --radius-sm: 10px;

  --line: rgba(34, 230, 210, 0.25);
  --line-soft: rgba(148, 163, 198, 0.18);
  --hard: 6px 6px 0 rgba(0, 0, 0, 0.55);
  --hard-lg: 9px 9px 0 rgba(0, 0, 0, 0.6);

  --font-sans: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Roboto Mono", Consolas, "Courier New", monospace;

  --ease: cubic-bezier(0.3, 0.8, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--magenta) var(--ink);
}

body { margin: 0; }

h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

#main-content:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; }

/* ---------- 3. 中文排版与全局背景 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    radial-gradient(920px 520px at 92% -12%, rgba(255, 61, 154, 0.16), transparent 62%),
    radial-gradient(780px 460px at 2% 4%, rgba(34, 230, 210, 0.12), transparent 60%),
    linear-gradient(180deg, #060A18 0%, #070C1E 58%, #060A18 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(32px, 5.2vw, 56px); }
h2 { font-size: clamp(24px, 3.2vw, 36px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; letter-spacing: 0; }

p { max-width: 68ch; }
strong { font-weight: 700; }

::selection {
  background: var(--magenta);
  color: #12030B;
}

/* ---------- 4. 工具类 ---------- */
.mono,
.stat__num,
.footer-contact__val.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.glow-text {
  text-shadow: 0 0 22px rgba(34, 230, 210, 0.55), 0 0 64px rgba(34, 230, 210, 0.22);
}

.text-cyan { color: var(--cyan); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.container--narrow { max-width: 960px; }

.section { padding-block: 52px; }
.section--tight { padding-block: 32px; }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  border-radius: 2px;
}

.section__title { font-size: clamp(26px, 3.6vw, 40px); }

.section__lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}

/* ---------- 6. Bento 网格 ---------- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.bento > * { min-width: 0; }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-align: center;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(132deg, var(--cyan), #16B9C6 46%, var(--magenta));
  color: #04121C;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(34, 230, 210, 0.45);
}

.btn--primary:hover {
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.6), 0 0 26px rgba(34, 230, 210, 0.5);
}

.btn--gold {
  border-color: var(--gold);
  background: rgba(255, 194, 75, 0.08);
  color: var(--gold);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

.btn--gold:hover {
  background: var(--gold);
  color: #1A1206;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.55), 0 0 26px rgba(255, 194, 75, 0.5);
}

.btn--ghost {
  border-color: rgba(34, 230, 210, 0.5);
  background: rgba(22, 34, 74, 0.6);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 230, 210, 0.35);
}

.btn--sm { min-height: 38px; padding: 8px 16px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- 8. 卡片 / 数据 / 媒体容器 ---------- */
.card {
  position: relative;
  padding: 22px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(22, 34, 74, 0.94), rgba(11, 18, 42, 0.95));
  box-shadow: var(--hard);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--hard-lg); border-color: rgba(34, 230, 210, 0.45); }

.card--glow::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--cyan), var(--gold) 55%, var(--magenta));
}

.stat { display: grid; gap: 6px; }

.stat__num {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cyan);
}

.stat__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.stat--gold .stat__num { color: var(--gold); }
.stat--magenta .stat__num { color: var(--magenta); }
.stat--green .stat__num { color: var(--green); }

.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(148deg, #101A3D 0%, #0A1026 58%, #1A1040 100%);
  isolation: isolate;
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(34, 230, 210, 0.3) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.45;
  z-index: 0;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(116deg, transparent 40%, rgba(255, 61, 154, 0.22) 50%, transparent 60%);
  z-index: 0;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__caption {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

/* ---------- 9. 分段切换 / 芯片 / 折叠 / 步骤条 ---------- */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 21, 48, 0.82);
}

.segmented__btn {
  padding: 8px 16px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.segmented__btn:hover { color: var(--white); border-color: rgba(34, 230, 210, 0.4); }

.segmented__btn[aria-selected="true"] {
  color: #04121C;
  background: linear-gradient(132deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 20px rgba(34, 230, 210, 0.38);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 21, 48, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.chip:hover { color: var(--white); border-color: rgba(34, 230, 210, 0.5); }

.chip[aria-pressed="true"] {
  color: #04121C;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(34, 230, 210, 0.4);
}

.accordion { display: grid; gap: 12px; }

.accordion__item {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(22, 34, 74, 0.9), rgba(13, 21, 48, 0.94));
  box-shadow: var(--hard);
  overflow: hidden;
}

.accordion__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.accordion__btn::-webkit-details-marker { display: none; }

.accordion__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
}

.accordion__arrow {
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.accordion__item[open] .accordion__arrow { transform: rotate(-135deg); }

.accordion__panel {
  padding: 0 18px 18px;
  font-size: 15px;
  color: #CBD5EC;
}

.step-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.step-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 0 auto;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 21, 48, 0.7);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.step-bar__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.step-bar__item[aria-current="step"] {
  color: var(--white);
  border-color: var(--cyan);
  background: rgba(34, 230, 210, 0.12);
  box-shadow: 0 0 18px rgba(34, 230, 210, 0.22);
}

/* ---------- 10. 面包屑与正文 ---------- */
.breadcrumb { padding-block: 16px; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

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

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(148, 163, 198, 0.45);
}

.breadcrumb__link { border-bottom: 1px solid transparent; transition: color 0.18s, border-color 0.18s; }
.breadcrumb__link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.breadcrumb__current { color: var(--white); }

.prose { max-width: 68ch; color: #D5DEF2; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 22px; margin-top: 2em; color: var(--white); }
.prose h3 { font-size: 18px; margin-top: 1.6em; color: var(--cyan); }
.prose ul { display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 2px;
  background: var(--cyan);
}
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 11. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--cyan);
  color: #04121C;
  font-weight: 700;
  font-size: 14px;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* ---------- 12. 头部：移动端顶栏 + 抽屉 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--bar-h);
  padding: 0 14px;
  background: linear-gradient(100deg, #08101F 0%, #0D1530 56%, #131C3C 100%);
  border-bottom: 2px solid rgba(34, 230, 210, 0.3);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 2px solid var(--gold);
  border-radius: 10px;
  background:
    radial-gradient(120% 120% at 18% 8%, rgba(255, 61, 154, 0.38), transparent 62%),
    #111A3C;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.05em;
  box-shadow: 0 0 16px rgba(255, 194, 75, 0.3), 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.brand__sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 14px 0 12px;
  border: 2px solid rgba(34, 230, 210, 0.55);
  border-radius: 12px;
  background: rgba(22, 34, 74, 0.78);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  box-shadow: 0 0 18px rgba(34, 230, 210, 0.22), 3px 3px 0 rgba(0, 0, 0, 0.5);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.nav-toggle:hover { border-color: var(--cyan); box-shadow: 0 0 26px rgba(34, 230, 210, 0.42), 3px 3px 0 rgba(0, 0, 0, 0.5); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  flex: none;
}

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

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 5px; transform: rotate(-45deg); }

.nav-list { display: flex; flex-direction: column; gap: 6px; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-link__dot {
  flex: none;
  width: 10px;
  height: 10px;
  background: rgba(148, 163, 198, 0.5);
  transform: rotate(45deg);
  transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.nav-link__label { display: block; }

.nav-link:hover {
  background: rgba(34, 230, 210, 0.1);
  border-color: rgba(34, 230, 210, 0.35);
  color: var(--cyan);
}

.nav-link:hover .nav-link__dot { background: var(--cyan); box-shadow: 0 0 10px rgba(34, 230, 210, 0.8); }

.nav-link[aria-current="page"] {
  color: var(--cyan);
  border-color: rgba(34, 230, 210, 0.45);
  background: linear-gradient(90deg, rgba(34, 230, 210, 0.16), rgba(34, 230, 210, 0));
}

.nav-link[aria-current="page"] .nav-link__dot {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 194, 75, 0.85);
}

.nav-link[aria-current="page"] .nav-link__label {
  text-shadow: 0 0 14px rgba(34, 230, 210, 0.6);
}

.nav-cta { display: grid; gap: 10px; margin-top: 4px; }

.nav-note {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
}

@media (max-width: 1023px) {
  .site-nav {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    bottom: 0;
    z-index: 79;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: min(86vw, 340px);
    padding: 18px 16px 32px;
    overflow-y: auto;
    background: linear-gradient(170deg, #0B1332 0%, #070C1E 76%);
    border-right: 2px solid rgba(34, 230, 210, 0.35);
    box-shadow: 10px 0 34px rgba(0, 0, 0, 0.58);
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform 0.28s var(--ease), visibility 0.28s var(--ease);
  }

  .site-nav[data-open] { transform: translateX(0); visibility: visible; }

  html.nav-open,
  html.nav-open body { overflow: hidden; }

  body { padding-top: var(--bar-h); }
}

/* ---------- 13. 头部：桌面竖向轨道 ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: var(--rail-w);
    height: 100vh;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 16px 0 14px;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, #0A1130 0%, #080E22 58%, #060A18 100%);
    border-bottom: 0;
    border-right: 2px solid rgba(34, 230, 210, 0.22);
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.4);
  }

  .site-header::-webkit-scrollbar { width: 0; }

  .header-bar { flex: none; justify-content: center; }

  .brand { justify-content: center; }
  .brand__text { display: none; }

  .brand__mark {
    width: 46px;
    height: 46px;
    font-size: 13px;
    border-radius: 12px;
  }

  .nav-toggle { display: none; }

  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 4px 8px 0;
  }

  .nav-list { width: 100%; gap: 4px; }

  .nav-link {
    flex-direction: column;
    gap: 6px;
    padding: 10px 0;
    font-size: 11px;
    letter-spacing: 0.1em;
    border-radius: 10px;
    text-align: center;
  }

  .nav-link__dot { width: 8px; height: 8px; }

  .nav-link__label {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.16em;
    line-height: 1.1;
  }

  .nav-link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 26px;
    border-radius: 2px;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(34, 230, 210, 0.9);
  }

  .nav-cta {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-cta .btn {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    min-height: 0;
    padding: 16px 9px;
    font-size: 12px;
    letter-spacing: 0.2em;
  }

  .nav-cta__alt { display: none; }
  .nav-note { display: none; }
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  background: linear-gradient(180deg, #101A3E 0%, #0A1026 62%, #070C1B 100%);
  color: var(--white);
}

.footer-stripe {
  height: 46px;
  background: linear-gradient(100deg, var(--cyan) 0%, #7B5BFF 34%, var(--magenta) 66%, var(--gold) 100%);
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
  opacity: 0.9;
}

.footer-stripe::after {
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(180deg, rgba(6, 10, 24, 0) 62%, rgba(6, 10, 24, 0.85) 100%);
}

.footer-inner {
  display: grid;
  gap: 34px;
  padding-block: 44px 38px;
  border-bottom: 1px solid var(--line-soft);
}

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

.footer-logo { display: inline-flex; align-items: center; gap: 10px; }

.footer-logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--gold);
  border-radius: 11px;
  background: radial-gradient(120% 120% at 18% 8%, rgba(255, 61, 154, 0.36), transparent 62%), #111A3C;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.05em;
  box-shadow: 0 0 16px rgba(255, 194, 75, 0.28), 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.footer-logo__text { font-size: 17px; font-weight: 800; letter-spacing: 0.02em; }

.footer-brand__note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 34ch;
}

.footer-cols {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

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

.footer-col__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-links { display: grid; gap: 9px; }

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: #C6D2EA;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  transform: translateX(3px);
}

.footer-contact__list { display: grid; gap: 2px; }

.footer-contact__row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: baseline;
  padding-block: 7px;
  border-bottom: 1px dashed var(--line-soft);
}

.footer-contact__key {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.footer-contact__val {
  font-size: 14px;
  color: var(--white);
  word-break: break-word;
  line-height: 1.6;
}

.footer-base { padding-block: 20px 26px; }

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

.footer-base__legal {
  font-size: 13px;
  color: var(--muted);
  max-width: none;
}

.footer-base__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  max-width: none;
}

.footer-base__dot { color: rgba(148, 163, 198, 0.5); }

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .footer-base__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1120px) {
  .footer-inner {
    grid-template-columns: 1.05fr 1.35fr 0.95fr;
    gap: 52px;
    padding-block: 56px 46px;
  }
}

/* ---------- 15. 网格与错位（桌面增强） ---------- */
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(12, 1fr); gap: 20px; }
  .bento > * { grid-column: span 12; }
  .bento > .span-4,
  .bento > .span-5,
  .bento > .span-6,
  .bento > .span-7,
  .bento > .span-8 { grid-column: span 6; }
}

@media (min-width: 1200px) {
  .bento { gap: 24px; }
  .bento > .span-4 { grid-column: span 4; }
  .bento > .span-5 { grid-column: span 5; }
  .bento > .span-6 { grid-column: span 6; }
  .bento > .span-7 { grid-column: span 7; }
  .bento > .span-8 { grid-column: span 8; }
  .bento > .span-12 { grid-column: span 12; }
  .shift-up { transform: translateY(-18px); }
  .shift-down { transform: translateY(18px); }
  .section { padding-block: 88px; }
  .section--tight { padding-block: 48px; }
}

/* ---------- 16. 动效：进度条与显现 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  pointer-events: none;
  background: rgba(233, 239, 250, 0.06);
}

.scroll-progress__bar {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 58%, var(--gold));
  box-shadow: 0 0 12px rgba(34, 230, 210, 0.55);
}

@media (min-width: 1024px) {
  .scroll-progress { left: var(--rail-w); }
}

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

/* ---------- 17. 响应式补充 ---------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .section { padding-block: 64px; }
  .card { padding: 26px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 40px; }
}

@media (min-width: 1400px) {
  :root { --rail-w: 100px; }
}

/* ---------- 18. 降低动效 ---------- */
@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;
  }

  .btn:hover,
  .card:hover,
  .footer-link:hover { transform: none; }

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

  .scroll-progress__bar { transition: none; }
}
