/* =========================================================
   site.css — 澳门新浦京游 · 攻略与资料导航
   赛博航海 / 霓虹仪表盘 共享外壳与通用组件
   ========================================================= */

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

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

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

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

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

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

a { color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  --sea-900: #061421;
  --sea-850: #081a29;
  --sea-800: #0A1E2E;
  --sea-700: #0F2A3D;
  --tide: #1E6F8C;
  --neon: #35E0D0;
  --neon-soft: #7CF2E6;
  --gold: #F2B84B;
  --gold-bright: #FFD37A;
  --mist: #E8F1F5;
  --fog: #A9BDC8;
  --hair: #2A4556;
  --alert: #FF6B5E;

  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --header-h-compressed: 54px;
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.22, .7, .3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--mist);
  background-color: var(--sea-900);
  background-image:
    radial-gradient(960px 560px at 8% -10%, rgba(30, 111, 140, .30), transparent 64%),
    radial-gradient(780px 500px at 96% 2%, rgba(53, 224, 208, .12), transparent 68%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

body.nav-open { overflow: hidden; }

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

h1 { font-size: clamp(2.4rem, 6vw, 5.2rem); font-weight: 900; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { font-size: 1rem; }

a {
  color: var(--neon-soft);
  text-decoration-color: rgba(53, 224, 208, .42);
  text-underline-offset: 3px;
  transition: color .2s var(--ease);
}
a:hover { color: var(--gold-bright); }

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

::selection {
  background: rgba(53, 224, 208, .28);
  color: var(--mist);
}

[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* ---------- 4. 通用容器与节奏 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 84px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--neon);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(53, 224, 208, .8);
}

.section-title {
  margin-top: 10px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--mist);
}

.section-lede {
  max-width: 62ch;
  margin-top: 12px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--fog);
}

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

/* ---------- 5. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #06121F;
  box-shadow: 0 8px 22px -12px rgba(242, 184, 75, .85);
}
.btn--gold:hover { color: #06121F; box-shadow: 0 10px 26px -10px rgba(242, 184, 75, .95); }

.btn--neon {
  background: rgba(53, 224, 208, .12);
  border-color: rgba(53, 224, 208, .5);
  color: var(--neon-soft);
}
.btn--neon:hover { background: rgba(53, 224, 208, .2); border-color: var(--neon); color: #EFFFFC; }

.btn--ghost {
  background: transparent;
  border-color: var(--hair);
  color: var(--mist);
}
.btn--ghost:hover { border-color: var(--tide); background: rgba(30, 111, 140, .18); }

.btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 6px; }

/* ---------- 7. 标签 ---------- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(15, 42, 61, .7);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.tag:hover { color: var(--mist); border-color: var(--tide); background: rgba(30, 111, 140, .26); }
.tag--active,
.tag[aria-pressed="true"] {
  border-color: var(--neon);
  background: rgba(53, 224, 208, .14);
  color: var(--neon-soft);
}

/* ---------- 8. 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--sea-800);
  box-shadow: 0 22px 46px -34px rgba(0, 0, 0, .95);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--mist);
}

/* ---------- 9. 状态灯 ---------- */
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 3px rgba(53, 224, 208, .16);
}
.status-dot--gold { background: var(--gold); box-shadow: 0 0 0 3px rgba(242, 184, 75, .18); }
.status-dot--alert { background: var(--alert); box-shadow: 0 0 0 3px rgba(255, 107, 94, .18); }
.status-dot--live { animation: dot-pulse 2.4s ease-in-out infinite; }

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

/* ---------- 10. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--fog);
}
.crumbs a {
  color: var(--fog);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.crumbs a:hover { color: var(--neon-soft); border-color: rgba(53, 224, 208, .6); }
.crumbs__sep { color: var(--tide); }
.crumbs [aria-current="page"] { color: var(--mist); }

/* ---------- 11. 图片容器基础 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--sea-700) 0%, var(--sea-800) 55%, #071624 100%);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(53, 224, 208, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 224, 208, .16) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: .34;
  mix-blend-mode: screen;
}
.media-frame img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: rgba(169, 189, 200, .86);
}

/* ---------- 12. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--gold);
  color: #06121F;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: #06121F;
}

/* ---------- 13. 头部：舰桥命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  background: rgba(6, 20, 33, .94);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 14px 34px -28px rgba(0, 0, 0, .95);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(42, 69, 86, .55);
  overflow: hidden;
  pointer-events: none;
}
.header-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--tide) 0%, var(--neon) 58%, var(--gold) 100%);
  box-shadow: 0 0 12px rgba(53, 224, 208, .55);
  transition: transform .12s linear;
}

.header-shell {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  transition: height .26s var(--ease);
}
.site-header[data-compressed="true"] .header-shell { height: var(--header-h-compressed); }

/* 品牌罗盘 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--mist);
  text-decoration: none;
}
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(53, 224, 208, .22), rgba(6, 20, 33, 0) 70%);
  transition: border-color .25s var(--ease);
}
.brand__mark::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--neon);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(53, 224, 208, .5);
  transition: transform .45s var(--ease), box-shadow .3s var(--ease);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(30, 111, 140, .8);
  border-radius: 50%;
}
.brand:hover .brand__mark { border-color: var(--tide); }
.brand:hover .brand__mark::before {
  transform: rotate(135deg);
  box-shadow: 0 0 18px rgba(53, 224, 208, .8);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--mist);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--fog);
}

/* 索引式导航 */
.command-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
  margin-left: auto;
  min-width: 0;
}
.command-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.command-nav__item { flex: 0 0 auto; }

.command-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--fog);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.command-nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(53, 224, 208, .85);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .24s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.command-nav__link:hover {
  color: var(--mist);
  background: rgba(30, 111, 140, .18);
}
.command-nav__link:hover::after {
  transform: scaleX(1);
  background: var(--tide);
  box-shadow: none;
}
.command-nav__link[aria-current="page"] {
  color: var(--neon-soft);
  background: rgba(53, 224, 208, .1);
}
.command-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.command-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--tide);
  transition: color .2s var(--ease);
}
.command-nav__link[aria-current="page"] .command-nav__idx { color: var(--neon); }

.command-nav__utility {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: clamp(10px, 1.6vw, 20px);
  margin-left: clamp(4px, 1vw, 12px);
  border-left: 1px solid var(--hair);
}

.util-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(42, 69, 86, .95);
  border-radius: 999px;
  background: rgba(15, 42, 61, .68);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.util-chip:hover {
  color: var(--mist);
  border-color: var(--tide);
  background: rgba(30, 111, 140, .26);
}
.util-chip__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(242, 184, 75, .85);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid var(--hair);
  border-radius: 7px;
  background: rgba(15, 42, 61, .72);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--tide); background: rgba(30, 111, 140, .28); }

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--neon);
  transition: transform .22s var(--ease), opacity .18s var(--ease), width .22s var(--ease);
}
.nav-toggle__bars span:nth-child(2) { width: 68%; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  padding-top: 10px;
  border-top: 1px solid var(--hair);
  background: linear-gradient(180deg, var(--sea-850) 0%, var(--sea-900) 42%, #040F18 100%);
  color: var(--fog);
  font-size: 14.5px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, var(--hair) 0 1px, transparent 1px 26px);
  opacity: .6;
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 62px) var(--gutter) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 46px);
}

.brand--footer .brand__mark { width: 38px; height: 38px; flex-basis: 38px; }
.brand--footer .brand__name { font-size: 17px; }
.brand--footer .brand__sub { letter-spacing: .18em; }

.footer-brand__note {
  max-width: 36ch;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--fog);
}

.footer-status {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 18px;
}
.footer-status__item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: rgba(169, 189, 200, .92);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--neon);
  text-transform: uppercase;
}
.footer-col__title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(53, 224, 208, .8);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col__link {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  color: var(--fog);
  font-size: 14.5px;
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.footer-col__link:hover {
  color: var(--mist);
  border-color: rgba(53, 224, 208, .6);
  transform: translateX(2px);
}

.footer-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px 28px;
  margin-top: clamp(30px, 5vw, 56px);
  padding: clamp(20px, 3vw, 28px) 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--tide);
  text-transform: uppercase;
}
.footer-contact__value {
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.footer-contact__note {
  grid-column: 1 / -1;
  max-width: 72ch;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(169, 189, 200, .82);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding: 20px 0 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .03em;
  color: rgba(169, 189, 200, .78);
}
.footer-base__legal,
.footer-base__icp { margin: 0; }
.footer-base__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
}
.footer-base__links a {
  color: rgba(169, 189, 200, .88);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-base__links a:hover {
  color: var(--neon-soft);
  border-color: rgba(53, 224, 208, .55);
}

/* 悬浮帮助胶囊 */
.help-pill {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 72;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid rgba(53, 224, 208, .45);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(53, 224, 208, .18), rgba(242, 184, 75, .14));
  color: var(--neon-soft);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(232, 241, 245, .08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.help-pill:hover {
  transform: translateY(-2px);
  border-color: var(--neon);
  color: var(--mist);
}
.help-pill__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(242, 184, 75, .9);
  animation: dot-pulse 2.6s ease-in-out infinite;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: calc(clamp(14px, 3vw, 26px) + 56px);
  z-index: 72;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: rgba(10, 30, 46, .94);
  color: var(--neon-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, .95);
  transition: opacity .22s var(--ease), transform .22s var(--ease),
              visibility .22s, border-color .2s var(--ease), color .2s var(--ease);
}
.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  border-color: var(--neon);
  color: var(--mist);
}
.to-top__arrow {
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}

/* ---------- 15. 滚动显现 ---------- */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.js-motion [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 16. 响应式 ---------- */
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
}

@media (max-width: 1180px) {
  .command-nav__utility .util-chip { display: none; }
}

@media (max-width: 1080px) {
  .command-nav__link { font-size: 13px; padding: 8px 8px; }
  .command-nav__idx { display: none; }
}

@media (max-width: 900px) {
  :root {
    --header-h: 60px;
    --header-h-compressed: 54px;
  }

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

  .command-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 79;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin: 0;
    padding: 16px var(--gutter) 26px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: rgba(8, 26, 41, .99);
    border-bottom: 1px solid var(--hair);
    box-shadow: 0 26px 44px -32px rgba(0, 0, 0, .98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  }
  .command-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .command-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .command-nav__link {
    display: flex;
    justify-content: flex-start;
    padding: 13px 12px;
    border-radius: 0;
    border-bottom: 1px solid rgba(42, 69, 86, .55);
    font-size: 15px;
  }
  .command-nav__idx { display: inline; font-size: 10.5px; }
  .command-nav__link::after {
    left: 0;
    right: auto;
    top: 13px;
    bottom: 13px;
    width: 2px;
    height: auto;
    transform: scaleY(0);
    transform-origin: 50% 0;
  }
  .command-nav__link:hover::after { transform: scaleY(1); }
  .command-nav__link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(53, 224, 208, .16), rgba(53, 224, 208, 0) 72%);
  }
  .command-nav__link[aria-current="page"]::after { transform: scaleY(1); }

  .command-nav__utility {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 0 0;
    margin: 0;
    border-left: 0;
    border-top: 1px solid var(--hair);
  }
  .command-nav__utility .util-chip { display: inline-flex; }
  .command-nav__utility .btn { flex: 1 1 100%; }
}

@media (max-width: 520px) {
  .brand__sub { display: none; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .help-pill { padding: 10px 15px; font-size: 12.5px; }
  .footer-contact__value { font-size: 13.5px; }
}

/* ---------- 17. 动效降级 ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto !important; }
  .js-motion [data-reveal] { opacity: 1; transform: none; }
  .command-nav { transition: none !important; }
}
