/* =========================================================
   银娱电子站 · 共享外壳样式 (/assets/site.css)
   ========================================================= */

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

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

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

:root {
  --ink: #071018;
  --ink-2: #0D2237;
  --ink-3: #0A1723;
  --steel: #C7D0D9;
  --mist: #F3F7FA;
  --text-dark: #17212B;
  --text-cool: #DCE7F0;
  --blue: #2F7DFF;
  --cyan: #39F2D0;
  --amber: #FFB347;
  --violet: #7B61FF;

  --rule: rgba(199, 208, 217, 0.24);
  --rule-soft: rgba(199, 208, 217, 0.12);

  --rail-w: 168px;
  --maxw: 1360px;
  --gutter: clamp(16px, 3vw, 44px);

  --font-sans: "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui,
    -apple-system, "Segoe UI", sans-serif;
  --font-display: "HarmonyOS Sans SC", "PingFang SC", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Menlo,
    Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------- 基础排版 ---------------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.012em;
  background: var(--ink);
  color: var(--text-cool);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1 { font-size: clamp(30px, 5vw, 58px); }
h2 { font-size: clamp(24px, 3.4vw, 38px); }
h3 { font-size: clamp(18px, 2vw, 24px); }

p { max-width: 68ch; }

strong { color: var(--mist); font-weight: 700; }

::selection { background: rgba(57, 242, 208, 0.28); color: #ffffff; }

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

#main-content { display: block; scroll-margin-top: 132px; }

/* ---------------- 跳转链接 ---------------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  transform: translateY(-160%);
  padding: 11px 20px;
  background: var(--cyan);
  color: #04121A;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: transform 0.22s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* =========================================================
   页头
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  background:
    linear-gradient(180deg, #071018 0%, #09141F 62%, #0A1722 100%);
  border-bottom: 1px solid var(--rule);
  color: var(--text-cool);
  box-shadow: 0 14px 40px rgba(2, 8, 14, 0.6);
}

/* --- 仪器读数条 --- */
.header-rig {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 7px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(199, 208, 217, 0.58);
  border-bottom: 1px solid var(--rule-soft);
}

.header-rig__cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.header-rig__cell--coord {
  color: rgba(57, 242, 208, 0.68);
}

.header-rig__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(57, 242, 208, 0.9);
  animation: rigPulse 2.8s ease-in-out infinite;
}

@keyframes rigPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.header-rig__link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--amber);
  background: rgba(255, 179, 71, 0.09);
  border: 1px solid rgba(255, 179, 71, 0.42);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 100%, 0 100%);
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}
.header-rig__link:hover {
  background: var(--amber);
  color: #241503;
}

/* --- 主行 --- */
.header-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 48px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 74px;
}

/* --- 品牌 --- */
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 10px 0;
}

.site-brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.site-brand__mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.site-brand__mark::after {
  content: "";
  position: absolute;
  left: 11px;
  bottom: 11px;
  width: 14px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(57, 242, 208, 0.95);
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.site-brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--mist);
  line-height: 1.2;
}

.site-brand__tag {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(199, 208, 217, 0.55);
  line-height: 1.4;
}

/* --- 移动开关 --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 10px 15px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--steel);
  border: 1px solid rgba(199, 208, 217, 0.3);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  color: var(--cyan);
  border-color: rgba(57, 242, 208, 0.6);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.28s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-4px) rotate(-45deg);
}

/* --- 主导航（桌面） --- */
.site-nav {
  margin-left: auto;
}

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

.site-nav__item { position: relative; }

.site-nav__link {
  position: relative;
  display: block;
  padding: 10px 13px;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: rgba(220, 231, 240, 0.76);
  transition: color 0.22s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s var(--ease);
}

.site-nav__link:hover { color: #ffffff; }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] { color: var(--cyan); }
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 10px rgba(57, 242, 208, 0.55);
}
.site-nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateY(-50%);
  box-shadow: 0 0 6px rgba(255, 179, 71, 0.9);
}

/* --- 滚动轨迹 --- */
.scroll-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(199, 208, 217, 0.1);
  pointer-events: none;
}
.scroll-rail__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 12px rgba(57, 242, 208, 0.65);
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  position: relative;
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(47, 125, 255, 0.16), transparent 62%),
    radial-gradient(90% 80% at 4% 100%, rgba(57, 242, 208, 0.08), transparent 66%),
    var(--ink);
  border-top: 1px solid rgba(199, 208, 217, 0.2);
  color: rgba(220, 231, 240, 0.7);
  padding: clamp(34px, 5vw, 62px) 0 26px;
  overflow: hidden;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer-rail {
  height: 7px;
  margin-bottom: clamp(26px, 3.5vw, 44px);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(199, 208, 217, 0.34) 0 1px,
    transparent 1px 22px
  );
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 92%);
  mask-image: linear-gradient(90deg, #000, transparent 92%);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.95fr);
  gap: clamp(28px, 5vw, 76px);
  padding-bottom: clamp(26px, 3.5vw, 44px);
  border-bottom: 1px solid var(--rule-soft);
}

.footer-identity { max-width: 420px; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.footer-brand__mark {
  position: relative;
  width: 26px;
  height: 26px;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}
.footer-brand__mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--mist);
}

.footer-summary {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(199, 208, 217, 0.62);
}

.footer-coord {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(199, 208, 217, 0.42);
}
.footer-coord__k {
  color: var(--cyan);
  margin-right: 5px;
}
.footer-coord__sep {
  margin: 0 9px;
  opacity: 0.4;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 42px);
}

.footer-col__heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--steel);
  text-transform: uppercase;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col__link {
  position: relative;
  display: inline-block;
  font-size: 13.5px;
  color: rgba(220, 231, 240, 0.68);
  transition: color 0.22s var(--ease), transform 0.22s var(--ease);
}
.footer-col__link::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--cyan);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}
.footer-col__link:hover {
  color: var(--cyan);
  transform: translateX(5px);
}
.footer-col__link:hover::before { opacity: 1; }

.footer-contact__row {
  display: flex;
  gap: 9px;
  font-size: 13px;
  line-height: 1.7;
}
.footer-contact__k {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(199, 208, 217, 0.42);
  padding-top: 3px;
}
.footer-contact__v {
  color: rgba(220, 231, 240, 0.82);
  word-break: break-word;
}

.footer-contact__note {
  margin-top: 14px;
  padding-left: 11px;
  border-left: 2px solid rgba(255, 179, 71, 0.55);
  font-size: 12px;
  line-height: 1.75;
  color: rgba(255, 179, 71, 0.72);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 32px;
  padding: clamp(18px, 2.5vw, 26px) 0;
  border-bottom: 1px solid var(--rule-soft);
}

.footer-legal__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}

.footer-legal__link {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(199, 208, 217, 0.62);
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.footer-legal__link:hover {
  color: var(--cyan);
  border-color: rgba(57, 242, 208, 0.6);
}

.footer-legal__note {
  flex: 1 1 280px;
  max-width: 62ch;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(199, 208, 217, 0.4);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(199, 208, 217, 0.36);
}
.footer-bottom__copy { color: rgba(199, 208, 217, 0.5); }

/* =========================================================
   通用版式与组件
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 900px; }

.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--night {
  background: linear-gradient(180deg, var(--ink-2), #09182A);
  color: var(--text-cool);
}
.section--light {
  background: var(--mist);
  color: var(--text-dark);
}
.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4,
.section--light strong { color: var(--text-dark); }

/* 编号章节头 */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px clamp(18px, 3vw, 34px);
  margin-bottom: clamp(24px, 4vw, 46px);
}
.section-head__num {
  font-family: var(--font-mono);
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.03em;
  color: rgba(199, 208, 217, 0.34);
}
@supports (-webkit-text-stroke: 1px red) {
  .section-head__num {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(199, 208, 217, 0.55);
  }
  .section--light .section-head__num {
    -webkit-text-stroke-color: rgba(23, 33, 43, 0.28);
  }
}
.section-head__body {
  flex: 1 1 260px;
  min-width: 0;
  padding-bottom: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
.section--light .eyebrow { color: var(--blue); }

/* 按钮 */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text-cool);
  --btn-bd: rgba(199, 208, 217, 0.42);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.2s var(--ease);
}
.btn:focus-visible::before { border-color: var(--cyan); }
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--blue), #1F5FD6);
  --btn-fg: #F3F7FA;
  --btn-bd: transparent;
}
.btn--primary:hover { --btn-bg: linear-gradient(135deg, #4C92FF, #2868E4); }

.btn--ghost {
  --btn-fg: var(--steel);
  --btn-bd: rgba(199, 208, 217, 0.4);
}
.btn--ghost:hover {
  --btn-fg: #ffffff;
  --btn-bd: rgba(57, 242, 208, 0.75);
  --btn-bg: rgba(57, 242, 208, 0.1);
}

.btn--amber {
  --btn-fg: var(--amber);
  --btn-bd: rgba(255, 179, 71, 0.5);
  --btn-bg: rgba(255, 179, 71, 0.09);
}
.btn--amber:hover {
  --btn-fg: #241503;
  --btn-bg: var(--amber);
  --btn-bd: var(--amber);
}

/* 切角面板 */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  background: linear-gradient(158deg, rgba(13, 34, 55, 0.94), rgba(7, 16, 24, 0.96));
  border: 1px solid rgba(199, 208, 217, 0.18);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.section--light .panel {
  background: #FFFFFF;
  border-color: rgba(23, 33, 43, 0.14);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--steel);
  border: 1px solid rgba(199, 208, 217, 0.35);
  border-radius: 2px;
  white-space: nowrap;
}
.tag--blue { color: #9DC0FF; border-color: rgba(47, 125, 255, 0.55); background: rgba(47, 125, 255, 0.1); }
.tag--cyan { color: var(--cyan); border-color: rgba(57, 242, 208, 0.5); background: rgba(57, 242, 208, 0.09); }
.tag--amber { color: var(--amber); border-color: rgba(255, 179, 71, 0.5); background: rgba(255, 179, 71, 0.09); }
.tag--violet { color: #B7AAFF; border-color: rgba(123, 97, 255, 0.55); background: rgba(123, 97, 255, 0.1); }

/* 筛选 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-btn {
  padding: 8px 17px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--steel);
  border: 1px solid rgba(199, 208, 217, 0.28);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease),
    background 0.22s var(--ease);
}
.filter-btn:hover {
  color: var(--cyan);
  border-color: rgba(57, 242, 208, 0.6);
}
.filter-btn[aria-pressed="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(57, 242, 208, 0.14);
}
.section--light .filter-btn { color: var(--text-dark); border-color: rgba(23, 33, 43, 0.22); }
.section--light .filter-btn[aria-pressed="true"] {
  color: #0B4C3E;
  border-color: #0E9F86;
  background: rgba(14, 159, 134, 0.12);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(199, 208, 217, 0.55);
}
.breadcrumb a { transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb__sep { opacity: 0.4; }
.section--light .breadcrumb { color: rgba(23, 33, 43, 0.55); }

/* 图片容器 */
.media {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(47, 125, 255, 0.22), rgba(57, 242, 208, 0.07)),
    var(--ink-2);
  border: 1px solid rgba(199, 208, 217, 0.18);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(199, 208, 217, 0.08) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(199, 208, 217, 0.08) 0 1px, transparent 1px 34px);
  pointer-events: none;
}
.media > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(199, 208, 217, 0.5);
}

/* 网格 */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 30px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 长文 */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; padding-left: 16px; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--blue);
}
.prose ol { list-style: decimal; }
.prose a { color: var(--blue); border-bottom: 1px solid currentColor; }
.section--light .prose { color: var(--text-dark); }
.section--light .prose a { color: #1F5FD6; }

/* 工具类 */
.mono { font-family: var(--font-mono); letter-spacing: 0.06em; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* 视口显现（JS 武装后生效，无 JS 时内容始终可见） */
[data-reveal] { transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
[data-reveal].is-armed { opacity: 0; transform: translateY(16px); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1180px) {
  .site-nav__link { padding: 10px 10px; font-size: 13.5px; }
  .site-nav__link::after { left: 10px; right: 10px; }
}

@media (max-width: 960px) {
  .header-main {
    flex-wrap: wrap;
    min-height: 66px;
  }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    display: none;
    background: linear-gradient(180deg, var(--ink-3), var(--ink));
    border-top: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 26px 46px rgba(1, 6, 11, 0.72);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 120;
  }
  .site-nav[data-open] {
    display: block;
    animation: navDrop 0.26s var(--ease) both;
  }

  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .site-nav__item { border-bottom: 1px solid var(--rule-soft); }
  .site-nav__item:last-child { border-bottom: 0; }

  .site-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px;
    font-size: 16px;
    color: rgba(220, 231, 240, 0.84);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] { color: var(--cyan); }
  .site-nav__link[aria-current="page"]::before {
    left: auto;
    right: 4px;
    width: 6px;
    height: 6px;
  }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-identity { max-width: none; }
}

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

@media (max-width: 720px) {
  .header-rig__cell--coord { display: none; }
  #main-content { scroll-margin-top: 116px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .footer-col--contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .site-brand__tag { display: none; }
  .site-brand__mark { width: 34px; height: 34px; }
  .site-brand__mark::after { left: 9px; bottom: 9px; width: 12px; }
}

@media (max-width: 520px) {
  .header-rig__cell--region { display: none; }
  .header-rig { justify-content: flex-end; padding-top: 6px; padding-bottom: 6px; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 11px 13px; }
}

/* 动效偏好 */
@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;
  }
  [data-reveal],
  [data-reveal].is-armed {
    opacity: 1 !important;
    transform: none !important;
  }
  .header-rig__dot { animation: none; }
}
