/* =========================================================
   万博娱乐中心 — 共享样式表 /assets/site.css
   夜炭黑底 + Bento 模块化 + 印刷边框 + 霓虹青功能高亮
   ========================================================= */

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

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

body,
h1, h2, h3, h4, h5,
p, ul, ol, li, dl, dd, figure, blockquote {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

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

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0A0C10;
  --slate: #12161C;
  --slate-2: #0E1218;
  --graphite: #262D36;
  --cyan: #29E0C8;
  --blue: #35BDF5;
  --orange: #FF8A3D;
  --amber: #FFC46B;
  --violet: #7A5BFF;
  --mist: #E9EEF4;
  --muted: #97A3B0;

  --cut: #0A0C10;
  --font-head: "HarmonyOS Sans SC", "Archivo Expanded", "Archivo", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-body: "Inter", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 32px;
  --gap: 24px;
  --maxw: 1240px;
  --header-h: 76px;
  --header-h-compact: 56px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --glow-cyan: 0 0 12px rgba(41, 224, 200, 0.30);
  --glow-cyan-strong: 0 0 18px rgba(41, 224, 200, 0.42);
  --glow-amber: 0 0 12px rgba(255, 196, 107, 0.50);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--mist);
  background:
    radial-gradient(900px 520px at 6% -8%, rgba(122, 91, 255, 0.14), transparent 62%),
    radial-gradient(760px 460px at 102% 0%, rgba(41, 224, 200, 0.10), transparent 60%),
    var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.16;
  color: var(--mist);
}

h1 { font-size: clamp(34px, 5.2vw, 68px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 25px); }
h4 { font-size: 18px; }

p { font-size: 1em; }

::selection {
  background: rgba(41, 224, 200, 0.28);
  color: var(--mist);
}

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

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

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

.divider {
  height: 1px;
  border: 0;
  background: var(--graphite);
  margin: 32px 0;
}

/* ---------- 4. 容器与章节 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.prose { max-width: 42em; }
.prose p + p { margin-top: 1em; }
.prose h2 { margin: 40px 0 14px; }
.prose h3 { margin: 28px 0 10px; }

.section {
  position: relative;
  padding: 72px 0;
}

.section--tight { padding: 48px 0; }

[data-section] { scroll-margin-top: 96px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  margin-bottom: 32px;
}

.section-title { font-size: clamp(24px, 3vw, 38px); }
.section-sub { color: var(--muted); font-size: 15px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 10px;
}

.band {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  border-top: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
  background: linear-gradient(118deg,
      rgba(41, 224, 200, 0.07),
      rgba(122, 91, 255, 0.09) 55%,
      rgba(255, 138, 61, 0.06));
  --cut: #0D131A;
}

.light-trail {
  position: absolute;
  left: -12%;
  bottom: -20%;
  width: 130%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), transparent);
  opacity: 0.45;
  transform: rotate(-12deg);
  animation: trail-drift 20s linear infinite;
}

@keyframes trail-drift {
  0%   { transform: translateX(-5%) rotate(-12deg); }
  50%  { transform: translateX(5%) rotate(-12deg); }
  100% { transform: translateX(-5%) rotate(-12deg); }
}

/* ---------- 5. 头部 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04120F;
  font-weight: 700;
  font-size: 14px;
  transition: top 0.16s var(--ease);
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 12, 16, 0.90);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--graphite);
  color: var(--mist);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 138, 61, 0));
}

.header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: min-height 0.2s var(--ease);
}

.site-header[data-compact="true"] .header-inner {
  min-height: var(--header-h-compact);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.brand-mark {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--mist);
  white-space: nowrap;
}

.brand-slogan {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.site-header[data-compact="true"] .brand-slogan { display: none; }

/* 头部 CTA */
.header-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  background: rgba(41, 224, 200, 0.08);
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease),
              background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.site-header[data-compact="true"] .header-cta {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.header-cta:hover {
  background: rgba(41, 224, 200, 0.16);
  box-shadow: var(--glow-cyan-strong);
}

/* 导航 */
.site-nav { margin-left: 12px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
              background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.nav-link:hover {
  color: var(--mist);
  border-color: var(--graphite);
  background: rgba(233, 238, 244, 0.05);
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  border-color: rgba(41, 224, 200, 0.42);
  background: rgba(41, 224, 200, 0.09);
  box-shadow: var(--glow-cyan);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border: 1px solid var(--graphite);
  border-radius: 999px;
  color: var(--mist);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  transition: background 0.18s var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.18s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* 阅读进度 */
.reading-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(38, 45, 54, 0.7);
  overflow: hidden;
}

.reading-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  background: #070A0E;
  border-top: 1px solid var(--graphite);
  color: var(--muted);
  font-size: 14px;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--cyan) 42%, var(--violet));
  opacity: 0.85;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.5fr 1fr;
  gap: 48px;
  padding: 58px 0 40px;
}

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

.footer-col--nav {
  border-left: 1px solid var(--graphite);
  border-right: 1px solid var(--graphite);
  padding: 0 32px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .brand-mark {
  width: 22px;
  height: 22px;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.footer-claim {
  max-width: 26em;
  margin-bottom: 22px;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.75;
}

.footer-entry-list {
  display: grid;
  gap: 10px;
}

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

.footer-entry-label {
  display: inline-block;
  flex: none;
  padding: 2px 8px;
  border: 1px solid var(--graphite);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.footer-entry-link {
  color: var(--cyan);
  font-weight: 700;
  font-size: 13px;
  transition: color 0.16s var(--ease), text-shadow 0.16s var(--ease);
}

.footer-entry-link:hover {
  color: var(--amber);
  text-shadow: var(--glow-amber);
}

.footer-col-title {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--graphite);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.footer-nav-list {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.footer-nav-item { display: grid; gap: 4px; }

.footer-nav-link {
  justify-self: start;
  padding-left: 10px;
  border-left: 2px solid var(--graphite);
  color: var(--mist);
  font-size: 14px;
  font-weight: 700;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

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

.footer-nav-link[aria-current="page"] {
  border-color: var(--orange);
  color: var(--amber);
}

.footer-nav-desc {
  padding-left: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.footer-tip-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--graphite);
  color: var(--mist);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.footer-tip-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.footer-tip-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 2px solid var(--cyan);
  background: rgba(41, 224, 200, 0.06);
  color: var(--mist);
  font-size: 13px;
  line-height: 1.7;
}

.footer-meta-list {
  display: grid;
  gap: 13px;
  margin-bottom: 22px;
}

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

.footer-meta-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.footer-meta-value {
  color: var(--mist);
  font-size: 13px;
  word-break: break-word;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 18px;
  border-top: 1px solid var(--graphite);
}

.footer-link {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.16s var(--ease);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 20px 0 34px;
  border-top: 1px solid var(--graphite);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid var(--graphite);
  background: var(--slate);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}

.btn--primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #04120F;
  box-shadow: 0 0 18px rgba(41, 224, 200, 0.35);
}

.btn--primary:hover {
  background: #4BEDD8;
  color: #04120F;
  box-shadow: 0 0 24px rgba(41, 224, 200, 0.5);
}

.btn--action {
  border-color: var(--orange);
  background: var(--orange);
  color: #1A0A01;
  box-shadow: 0 0 18px rgba(255, 138, 61, 0.32);
}

.btn--action:hover {
  border-color: var(--amber);
  background: var(--amber);
  color: #1A0A01;
  box-shadow: 0 0 22px rgba(255, 196, 107, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(41, 224, 200, 0.45);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
}

/* ---------- 8. 标签 / 卡片 / Bento ---------- */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--graphite);
  background: var(--slate-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.tag--focus {
  color: var(--cyan);
  border-color: rgba(41, 224, 200, 0.40);
  background: rgba(41, 224, 200, 0.08);
}

.tag--action {
  color: var(--orange);
  border-color: rgba(255, 138, 61, 0.42);
  background: rgba(255, 138, 61, 0.08);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.bento-cell { grid-column: span 12; min-width: 0; }

.card {
  position: relative;
  height: 100%;
  padding: 26px;
  background: var(--slate);
  border: 1px solid var(--graphite);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  background: var(--cut);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  pointer-events: none;
}

.card:hover,
.card:focus-within {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.card--focus {
  background: linear-gradient(158deg, rgba(41, 224, 200, 0.10), var(--slate) 58%);
}

.card--action {
  border-color: rgba(255, 138, 61, 0.35);
  background: linear-gradient(158deg, rgba(255, 138, 61, 0.10), var(--slate) 62%);
}

.card-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.card-title {
  margin-bottom: 10px;
  font-size: 22px;
}

.card-text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- 9. 索引块 ---------- */
.index-block {
  border: 1px solid var(--graphite);
  background: var(--slate-2);
  --cut: #0E1218;
}

.index-list { display: grid; }

.index-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--graphite);
}

.index-item:last-child { border-bottom: 0; }

.index-num {
  flex: none;
  min-width: 2.2em;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
}

.index-label {
  font-weight: 700;
  color: var(--mist);
}

.index-desc {
  flex: 1 1 16em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 10. 提示条 / 标签页 ---------- */
.callout {
  padding: 16px 20px;
  border-left: 2px solid var(--blue);
  background: rgba(53, 189, 245, 0.06);
  color: var(--mist);
  font-size: 15px;
  line-height: 1.75;
}

.callout + .callout { margin-top: 14px; }

.callout--focus {
  border-left-color: var(--cyan);
  background: rgba(41, 224, 200, 0.07);
}

.callout--action {
  border-left-color: var(--orange);
  background: rgba(255, 138, 61, 0.07);
}

.tabs {
  border: 1px solid var(--graphite);
  background: var(--slate);
  --cut: #12161C;
}

.tab-list {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--graphite);
}

.tab-btn {
  flex: none;
  padding: 14px 22px;
  border-right: 1px solid var(--graphite);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.16s var(--ease), background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.tab-btn:hover { color: var(--mist); }

.tab-btn[aria-selected="true"] {
  color: var(--cyan);
  background: rgba(41, 224, 200, 0.08);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.tab-panel {
  padding: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- 11. 图片容器 ---------- */
.figure-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--graphite);
  background: #0D1116;
  aspect-ratio: 16 / 9;
}

.figure-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(10, 12, 16, 0) 38%,
      rgba(10, 12, 16, 0.72) 100%);
}

.figure-frame--wide   { aspect-ratio: 21 / 9; }
.figure-frame--square { aspect-ratio: 1 / 1; }
.figure-frame--tall   { aspect-ratio: 3 / 4; }
.figure-frame--device { aspect-ratio: 9 / 16; }

.figure-cap {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- 12. 面包屑 ---------- */
.breadcrumbs {
  padding-top: 22px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--graphite);
}

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

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

/* ---------- 13. 章节点阵 ---------- */
.section-dots {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.section-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--graphite);
  border-radius: 50%;
  background: transparent;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.section-dot:hover { border-color: var(--cyan); }

.section-dot[aria-current="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(41, 224, 200, 0.6);
}

/* ---------- 14. 显现动画 ---------- */
body.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

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

/* ---------- 15. 响应式 ---------- */
@media (min-width: 820px) {
  .bento-cell--focus { grid-column: span 7; }
  .bento-cell--side  { grid-column: span 5; }
  .bento-cell--half  { grid-column: span 6; }
  .bento-cell--wide  { grid-column: span 8; }
  .bento-cell--third { grid-column: span 4; }
}

@media (min-width: 1200px) {
  .section-dots { display: flex; }
}

@media (max-width: 1040px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-col--nav {
    grid-column: 1 / -1;
    order: 3;
    padding: 28px 0 0;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--graphite);
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 66px;
    --header-h-compact: 56px;
  }

  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    margin-left: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 16px var(--gutter) 28px;
    background: #0B0E13;
    border-top: 1px solid var(--graphite);
    border-bottom: 1px solid var(--graphite);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  }

  .site-header[data-compact="true"] .site-nav { top: var(--header-h-compact); }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-link {
    justify-content: space-between;
    padding: 14px 16px;
    border-color: var(--graphite);
    border-radius: 2px;
    background: var(--slate);
    color: var(--mist);
    font-size: 16px;
    font-weight: 700;
  }

  .section { padding: 56px 0; }
  .section--tight { padding: 40px 0; }
  .band { padding: 44px 0; }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
    --gap: 16px;
  }

  body { font-size: 16px; }

  .card { padding: 20px; }
  .tab-panel { padding: 18px; }
  .index-item { padding: 13px 16px; }
  .index-desc { flex-basis: 100%; }
}

@media (max-width: 680px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px 0 32px;
  }
  .footer-col--nav { grid-column: auto; }
  .footer-bottom { padding: 18px 0 28px; }
}

@media (max-width: 560px) {
  .brand-slogan { display: none; }
  .brand-name { font-size: 17px; }
}

/* ---------- 16. 降低动效 ---------- */
@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;
    scroll-behavior: auto !important;
  }

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

  .light-trail { animation: none; }
}
