/* ==========================================================================
   澳门新萄京站 · 第 3 版导航 —— 共享样式表 /assets/site.css
   ========================================================================== */

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

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

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

ul, ol { padding: 0; list-style: none; }

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

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

a { color: inherit; }

[hidden] { display: none !important; }

/* ---------- 2. Design tokens ---------- */
:root {
  --ink-900: #071320;
  --ink-800: #0C1E2E;
  --surface: #13293D;
  --surface-2: #17324b;
  --line: #234257;
  --line-soft: rgba(35, 66, 87, 0.62);

  --cyan: #3FE0D0;
  --cyan-deep: #22b3a7;
  --orange: #FF8A3D;
  --orange-deep: #f2722a;
  --gold: #F3C56B;
  --text: #EAF3F8;
  --muted: #9DB4C6;
  --mint: #6BE3A4;
  --coral: #FF6B6B;

  --gutter: clamp(20px, 4.4vw, 72px);
  --maxw: 1440px;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 40px -30px rgba(0, 0, 0, 0.95);
  --shadow-2: 0 30px 70px -40px rgba(0, 0, 0, 0.98);

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

  --font-display: "Sora", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 560px at 84% -14%, rgba(63, 224, 208, 0.09), transparent 62%),
    radial-gradient(900px 520px at 2% 0%, rgba(255, 138, 61, 0.06), transparent 58%),
    linear-gradient(180deg, #071320 0%, #0C1E2E 52%, #071320 100%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(34px, 4.6vw, 68px); }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 26px); }

p { line-height: 1.75; }

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

::selection {
  background: rgba(63, 224, 208, 0.28);
  color: #ffffff;
}

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

#main-content { scroll-margin-top: 96px; }

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

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.skip-link {
  position: absolute;
  top: -64px;
  left: var(--gutter);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--cyan);
  color: #04161d;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
  color: #04161d;
}

/* ---------- 5. 头部命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(7, 19, 32, 0.97), rgba(12, 30, 46, 0.9));
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: background 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(63, 224, 208, 0.5) 42%, rgba(243, 197, 107, 0.28) 62%, transparent 96%);
  pointer-events: none;
}

.site-header[data-scrolled="true"] {
  background: rgba(7, 19, 32, 0.99);
  box-shadow: 0 22px 48px -36px rgba(0, 0, 0, 0.98);
}

.cmdbar__grid {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "brand body";
  align-items: center;
  gap: 16px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 10px var(--gutter);
}

/* 品牌 */
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}

.brand__mark {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(19, 41, 61, 0.96), rgba(7, 19, 32, 0.92));
  box-shadow: inset 0 1px 0 rgba(243, 197, 107, 0.2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 197, 107, 0.55), transparent);
}

.brand:hover .brand__mark {
  border-color: rgba(63, 224, 208, 0.55);
  color: var(--cyan);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.1;
}

.brand__line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 主体行 */
.cmdbar__body {
  grid-area: body;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

/* 主导航 */
.nav { min-width: 0; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav__idx {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(157, 180, 198, 0.62);
  transform: translateY(-3px);
  transition: color 0.2s var(--ease);
}

.nav__label { white-space: nowrap; }

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--text);
  background: rgba(19, 41, 61, 0.85);
  border-color: var(--line);
  transform: translateY(-1px);
}

.nav__link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(63, 224, 208, 0.08);
  border-color: rgba(63, 224, 208, 0.34);
}

.nav__link[aria-current="page"] .nav__idx { color: var(--gold); }

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 3px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.72;
}

/* 索引搜索 */
.cmdsearch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  width: clamp(168px, 15vw, 220px);
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 19, 32, 0.6);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.cmdsearch:focus-within,
.cmdsearch[data-active="true"] {
  border-color: rgba(63, 224, 208, 0.6);
  background: rgba(19, 41, 61, 0.78);
  box-shadow: 0 0 0 3px rgba(63, 224, 208, 0.14);
}

.cmdsearch__icon {
  display: inline-flex;
  flex: none;
  color: var(--cyan);
}

.cmdsearch__icon svg {
  width: 14px;
  height: 14px;
}

.cmdsearch__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12.5px;
  outline: none;
}

.cmdsearch__input::placeholder { color: rgba(157, 180, 198, 0.82); }
.cmdsearch__input::-webkit-search-cancel-button { display: none; }

.cmdsearch__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 90;
  width: min(340px, 84vw);
  max-height: min(360px, 62vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #13293D, #0C1E2E);
  box-shadow: var(--shadow-2);
}

.cmdsearch__hint {
  padding: 6px 10px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.cmdsearch__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.cmdsearch__item:hover,
.cmdsearch__item:focus-visible {
  background: rgba(63, 224, 208, 0.1);
  border-color: rgba(63, 224, 208, 0.3);
  color: var(--text);
}

.cmdsearch__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.cmdsearch__name { flex: 1 1 auto; }

.cmdsearch__empty {
  padding: 12px 10px;
  font-size: 12.5px;
  color: var(--muted);
}

/* 右侧动作 */
.cmdbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(19, 41, 61, 0.55);
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.fav-btn:hover {
  color: var(--text);
  border-color: rgba(63, 224, 208, 0.45);
}

.fav-btn__icon { display: inline-flex; }

.fav-btn__icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.fav-btn[aria-pressed="true"] {
  color: var(--orange);
  border-color: rgba(255, 138, 61, 0.5);
  background: rgba(255, 138, 61, 0.1);
}

.fav-btn[aria-pressed="true"] .fav-btn__icon svg {
  fill: var(--orange);
  stroke: var(--orange);
}

/* 移动导航按钮 */
.navtoggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(19, 41, 61, 0.6);
  color: var(--text);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.navtoggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.navtoggle__bars::before,
.navtoggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), top 0.24s var(--ease), bottom 0.24s var(--ease);
}

.navtoggle__bars::before { top: 0; }
.navtoggle__bars::after { bottom: 0; }

.navtoggle[aria-expanded="true"] {
  border-color: rgba(63, 224, 208, 0.5);
  color: var(--cyan);
}

.navtoggle[aria-expanded="true"] .navtoggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.navtoggle[aria-expanded="true"] .navtoggle__bars::after {
  bottom: 4.5px;
  transform: rotate(-45deg);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.btn--primary {
  background: linear-gradient(135deg, #3FE0D0, #22b3a7);
  color: #04161d;
  box-shadow: 0 12px 28px -20px rgba(63, 224, 208, 0.9);
}

.btn--primary:hover { color: #04161d; }

.btn--accent {
  background: linear-gradient(135deg, #FF8A3D, #f2722a);
  color: #1a0d04;
  box-shadow: 0 12px 28px -20px rgba(255, 138, 61, 0.85);
}

.btn--accent:hover { color: #1a0d04; }

.btn--ghost {
  border-color: var(--line);
  background: rgba(19, 41, 61, 0.5);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(63, 224, 208, 0.55);
  background: rgba(63, 224, 208, 0.08);
  color: var(--cyan);
}

.btn--sm {
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}

.cmdbar__cta {
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 12.5px;
}

/* ---------- 7. 页面骨架与通用组件 ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: 880px; }

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

.section--flush { padding-block: 0; }

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.prose p { max-width: 38em; color: var(--muted); }

.prose p + p { margin-top: 14px; }

.lead {
  max-width: 36em;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.8;
  color: var(--muted);
}

.index-line {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.index-line--gold { color: var(--gold); }

.title-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.title-lg {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.title-md {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.25;
}

/* 面板 */
.panel {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(19, 41, 61, 0.92), rgba(12, 30, 46, 0.88));
  box-shadow: var(--shadow-1);
}

.panel--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.panel--link:hover,
.panel--link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(63, 224, 208, 0.5);
  box-shadow: var(--shadow-2);
  color: inherit;
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.tag--cyan { border-color: rgba(63, 224, 208, 0.4); color: var(--cyan); background: rgba(63, 224, 208, 0.07); }
.tag--orange { border-color: rgba(255, 138, 61, 0.42); color: var(--orange); background: rgba(255, 138, 61, 0.08); }
.tag--gold { border-color: rgba(243, 197, 107, 0.42); color: var(--gold); background: rgba(243, 197, 107, 0.07); }

/* 横滑主题带 */
.rail {
  position: relative;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}

.rail__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(63, 224, 208, 0.4) transparent;
  -webkit-overflow-scrolling: touch;
}

.rail__track > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.rail__track::-webkit-scrollbar { height: 6px; }
.rail__track::-webkit-scrollbar-track { background: rgba(35, 66, 87, 0.4); border-radius: 999px; }
.rail__track::-webkit-scrollbar-thumb { background: rgba(63, 224, 208, 0.4); border-radius: 999px; }

/* 图片容器 */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #0C1E2E, #13293D 55%, #071320);
}

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

.media--glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 52% at 74% 18%, rgba(63, 224, 208, 0.22), transparent 70%),
    radial-gradient(52% 44% at 18% 84%, rgba(255, 138, 61, 0.16), transparent 72%);
  pointer-events: none;
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

figure.media { margin: 0; }

/* 面包屑 */
.breadcrumb { display: block; }

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

.breadcrumb__list a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

.breadcrumb__sep { color: rgba(157, 180, 198, 0.45); }

/* 显现协议 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

.js [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #071320, #0C1E2E 42%, #071320);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -180px;
  left: -10%;
  width: 70%;
  height: 420px;
  background: radial-gradient(closest-side, rgba(63, 224, 208, 0.13), transparent 72%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(63, 224, 208, 0.45), rgba(255, 138, 61, 0.3), transparent);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(48px, 6vw, 72px) var(--gutter) 28px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.footer__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__wordmark {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.footer__desc {
  max-width: 30em;
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.footer__register {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.footer__regnote {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer__navtitle {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__links {
  display: grid;
  gap: 2px;
}

.footer__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer__link:hover,
.footer__link:focus-visible {
  transform: translateX(2px);
  background: rgba(63, 224, 208, 0.08);
  border-color: rgba(63, 224, 208, 0.28);
  color: var(--cyan);
}

.footer__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(157, 180, 198, 0.7);
}

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

.footer__meta li {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.footer__meta li:last-child { border-bottom: 0; padding-bottom: 0; }

.footer__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(157, 180, 198, 0.78);
}

.footer__value {
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
}

.footer__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 224, 208, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: clamp(36px, 5vw, 52px);
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

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

.footer__icp { color: var(--text); }

.footer__dot { color: rgba(157, 180, 198, 0.45); }

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.footer__legal-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

/* ---------- 9. 响应式 ---------- */

/* 桌面收窄 */
@media (max-width: 1320px) {
  .nav__link { padding: 9px 7px; font-size: 12.5px; }
  .cmdsearch { width: clamp(158px, 13vw, 190px); }
  .fav-btn { padding: 0 10px; }
  .brand__sub { display: none; }
}

/* 平板 / 移动端命令栏 */
@media (max-width: 1180px) {
  .cmdbar__grid {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand toggle";
    gap: 10px;
    padding-block: 10px;
  }

  .navtoggle { display: inline-flex; }

  .cmdbar__body {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    max-height: calc(100vh - 62px);
    overflow: auto;
    padding: 16px var(--gutter) 22px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #0C1E2E, #071320);
    box-shadow: 0 34px 60px -42px rgba(0, 0, 0, 0.98);
  }

  .cmdbar__body[data-open="true"] { display: flex; }

  .nav { width: 100%; }

  .nav[data-open="true"] { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__item + .nav__item { border-top: 1px solid var(--line-soft); }

  .nav__link {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 4px;
    border: 0;
    border-radius: 0;
    font-size: 15px;
    color: var(--text);
  }

  .nav__link:hover,
  .nav__link:focus-visible {
    transform: none;
    background: rgba(63, 224, 208, 0.06);
    color: var(--cyan);
  }

  .nav__idx { transform: none; font-size: 10px; }

  .nav__link[aria-current="page"] {
    background: rgba(63, 224, 208, 0.07);
    border-color: transparent;
  }

  .nav__link[aria-current="page"]::after { display: none; }

  .cmdsearch {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
  }

  .cmdsearch__input { font-size: 13.5px; }

  .cmdsearch__panel {
    left: 0;
    right: 0;
    width: 100%;
  }

  .cmdbar__actions {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .fav-btn { height: 44px; font-size: 13px; }

  .cmdbar__cta {
    flex: 1 1 auto;
    height: 44px;
    font-size: 13.5px;
  }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }

  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .brand__mark { width: 34px; height: 34px; font-size: 11px; }
  .brand__line { font-size: 12.5px; white-space: normal; }
  .navtoggle__text { display: none; }
  .navtoggle { padding: 0 11px; }
  .media--wide { aspect-ratio: 16 / 10; }
  .footer__legal { font-size: 10.5px; letter-spacing: 0.04em; }
  .footer__legal-links { gap: 14px; }
}

/* ---------- 10. 动效偏好 ---------- */
@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;
  }

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

  .panel--link:hover,
  .nav__link:hover,
  .btn:hover,
  .footer__link:hover {
    transform: none;
  }
}
