/* =========================================================
   亿兆娱乐 · 共享站点样式
   /assets/site.css
   夜间仪表盘 · 深海墨蓝 / 电光青 / 暖金 / 珊瑚橙
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

:root {
  /* 色彩 */
  --ink-900: #071A2B;
  --ink-800: #0E2A3F;
  --ink-750: #10314A;
  --ink-700: #153A52;
  --mist:    #8FB3C4;
  --paper:   #F2F7FA;
  --cyan:    #2BE0D0;
  --gold:    #E8B45A;
  --coral:   #FF6F5E;
  --indigo:  #3A2350;
  --wine:    #5B2036;
  --sand:    #F6F4EF;
  --green:   #4CD08A;

  --line:        rgba(242, 247, 250, .12);
  --line-strong: rgba(242, 247, 250, .28);
  --line-soft:   rgba(242, 247, 250, .07);

  /* 字体 */
  --font-display: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body:    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, "Noto Sans Mono", monospace;

  /* 八级字号 */
  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-24: 24px;
  --fs-32: 32px;
  --fs-48: 48px;
  --fs-72: 72px;

  /* 尺度 */
  --maxw: 1440px;
  --rail: 72px;
  --gutter: 24px;
  --radius: 4px;
  --header-h: 76px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, .5);

  --t-fast: 160ms ease-out;
  --t-nav: 200ms ease;
}

/* ---------- 基础排版 ---------- */

body {
  min-height: 100vh;
  background-color: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.85;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 95%;
  line-height: 1.15;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(32px, 4.4vw, 72px); }
h2 { font-size: clamp(24px, 2.6vw, 32px); }
h3 { font-size: var(--fs-18); font-weight: 700; }
h4 { font-size: var(--fs-16); font-weight: 700; }

strong, b { font-weight: 600; }
em { font-style: normal; }

::selection { background: rgba(43, 224, 208, .3); color: var(--paper); }

/* ---------- 通用工具 ---------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 2.4vw, 40px);
}

.measure { max-width: 38em; }

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

.label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--mist);
  font-weight: 400;
  line-height: 1.6;
}

.status-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(76, 208, 138, .15);
  flex: 0 0 auto;
}

/* 焦点环 */
:where(a, button, [tabindex], input, select, textarea):focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 滚动显现协议 */
[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms ease-out, transform 320ms ease-out;
}
[data-reveal][data-revealed] { opacity: 1; transform: none; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04212B;
}
.btn--primary:hover {
  background: #5BEEE2;
  border-color: #5BEEE2;
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--paper);
}
.btn--ghost:hover {
  border-color: var(--coral);
  color: var(--coral);
  transform: translateY(-2px);
}
.btn--gold {
  background: transparent;
  border-color: rgba(232, 180, 90, .5);
  color: var(--gold);
}
.btn--gold:hover {
  background: rgba(232, 180, 90, .12);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.btn--sm { padding: 7px 14px; font-size: var(--fs-12); }

/* ---------- 跳过链接 ---------- */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04212B;
  font-size: var(--fs-14);
  font-weight: 600;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform var(--t-fast);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 头部 ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-nav), border-color var(--t-nav);
}
.site-header[data-scrolled] {
  background: rgba(14, 42, 63, .97);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.site-header[data-open] {
  background: rgba(14, 42, 63, .99);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  width: 100%;
  max-width: var(--maxw);
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: clamp(16px, 2.4vw, 40px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--paper);
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(43, 224, 208, .45);
  border-radius: 3px;
  background: rgba(43, 224, 208, .08);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.brand:hover .brand__mark {
  border-color: var(--cyan);
  background: rgba(43, 224, 208, .16);
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}
.brand__name {
  font-family: var(--font-display);
  font-size: var(--fs-18);
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--paper);
}
.brand__line {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist);
}

/* 版本芯片 */
.version-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid rgba(232, 180, 90, .4);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .04em;
  line-height: 1.6;
  color: var(--gold);
  white-space: nowrap;
  flex: 0 0 auto;
}
.version-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(76, 208, 138, .8);
  flex: 0 0 auto;
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(4px, .6vw, 10px);
  margin-left: auto;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, .4vw, 6px);
}
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 10px;
  border-radius: 2px;
  font-size: var(--fs-14);
  line-height: 1.6;
  letter-spacing: .02em;
  color: rgba(242, 247, 250, .78);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 1px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-fast);
}
.site-nav__link:hover {
  color: var(--paper);
  background: rgba(43, 224, 208, .08);
}
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(43, 224, 208, .06);
}
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--cyan);
}
.site-nav__cta { margin-left: clamp(6px, 1vw, 14px); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  font-size: var(--fs-12);
  letter-spacing: .16em;
  line-height: 1.4;
  flex: 0 0 auto;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.nav-toggle:hover { border-color: var(--cyan); background: rgba(43, 224, 208, .08); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--cyan);
  transition: background-color var(--t-fast);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--cyan);
  transition: transform var(--t-fast);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after  { top: 5px; }

.site-header[data-open] .nav-toggle { border-color: var(--coral); }
.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before {
  transform: translateY(5px) rotate(45deg);
  background: var(--coral);
}
.site-header[data-open] .nav-toggle__bars::after {
  transform: translateY(-5px) rotate(-45deg);
  background: var(--coral);
}

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(242, 247, 250, .06);
}
.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  margin-top: auto;
  padding-top: clamp(40px, 6vw, 72px);
  background: var(--ink-800);
  border-top: 1px solid var(--line);
  color: var(--paper);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cyan);
  opacity: .35;
}

.site-footer__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 2.4vw, 40px);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(28px, 4vw, 44px);
}

.site-footer__brand { min-width: 0; }
.site-footer__summary {
  max-width: 34em;
  margin-top: 18px;
  font-size: var(--fs-14);
  line-height: 1.85;
  color: rgba(242, 247, 250, .72);
}
.site-footer__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .04em;
  color: var(--mist);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
}
.footer-col { min-width: 0; }
.footer-col__title {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--mist);
}
.footer-col__list { display: flex; flex-direction: column; gap: 10px; }
.footer-col__link {
  display: inline-block;
  font-size: var(--fs-14);
  line-height: 1.6;
  color: rgba(242, 247, 250, .8);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.footer-col__link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(43, 224, 208, .5);
}

/* 联系带 */
.site-footer__contact {
  padding-top: clamp(20px, 2.6vw, 28px);
  padding-bottom: clamp(20px, 2.6vw, 28px);
  border-top: 1px solid var(--line);
}
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px 24px;
  margin-top: 14px;
}
.contact-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(7, 26, 43, .5);
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.contact-list__item:hover {
  border-color: var(--line-strong);
  background: rgba(7, 26, 43, .75);
}
.contact-list__item--wide { grid-column: 1 / -1; }
.contact-list__key {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mist);
}
.contact-list__value {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .02em;
  line-height: 1.7;
  color: var(--paper);
  word-break: break-word;
}
.copy-btn {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.6;
  color: var(--mist);
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}
.copy-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(43, 224, 208, .08);
}
.copy-btn[data-copied="true"] {
  color: var(--green);
  border-color: rgba(76, 208, 138, .7);
  background: rgba(76, 208, 138, .1);
}
.copy-btn[data-copied="false"] {
  color: var(--coral);
  border-color: rgba(255, 111, 94, .7);
  background: rgba(255, 111, 94, .1);
}

/* 底部条 */
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-12);
  letter-spacing: .06em;
  color: var(--mist);
}
.site-footer__copy {
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
.site-footer__legal {
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}
.site-footer__links a {
  color: rgba(242, 247, 250, .72);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.site-footer__links a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(43, 224, 208, .5);
}

/* ---------- 面包屑 ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .04em;
  line-height: 1.8;
  color: var(--mist);
}
.breadcrumb a {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.breadcrumb a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(43, 224, 208, .5);
}
.breadcrumb__sep { color: rgba(143, 179, 196, .45); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* ---------- 栅格 ---------- */

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

.span-3  { grid-column: span 3; }
.span-4  { grid-column: span 4; }
.span-5  { grid-column: span 5; }
.span-6  { grid-column: span 6; }
.span-7  { grid-column: span 7; }
.span-8  { grid-column: span 8; }
.span-9  { grid-column: span 9; }
.span-10 { grid-column: span 10; }
.span-12 { grid-column: span 12; }

/* ---------- 图片容器基座 ---------- */

.media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--ink-750);
  background-image:
    radial-gradient(circle at 22% 18%, rgba(43, 224, 208, .10), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(232, 180, 90, .08), transparent 60%);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 179, 196, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 179, 196, .10) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .5;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--21x9 { aspect-ratio: 21 / 9; }

/* ---------- 章节 ---------- */

.chapter {
  position: relative;
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.chapter__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 18px;
}
.chapter__index {
  font-family: var(--font-mono);
  font-size: var(--fs-32);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--gold);
}
.chapter__title {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--paper);
}
.chapter__meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .04em;
  color: var(--mist);
}

/* ---------- 面板 ---------- */

.panel {
  position: relative;
  min-width: 0;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.panel:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.panel__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .06em;
  line-height: 1.7;
  color: var(--mist);
}
.panel__body { padding: clamp(16px, 2vw, 28px); }
.panel--wide { grid-column: 1 / -1; }

/* 珠宝色分区 */
.zone--indigo { background: var(--indigo); }
.zone--wine   { background: var(--wine); }

/* ---------- 浅砂阅读区 ---------- */

.prose {
  padding: clamp(28px, 4.5vw, 64px) clamp(20px, 4vw, 64px);
  border-radius: var(--radius);
  background: var(--sand);
  color: #0B2233;
  font-size: var(--fs-16);
  line-height: 1.9;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 1.6em;
  font-size: var(--fs-24);
  color: #071A2B;
}
.prose h3 {
  margin-top: 1.4em;
  font-size: var(--fs-18);
  color: #071A2B;
}
.prose p { max-width: 40em; }
.prose a {
  color: #0A5B66;
  border-bottom: 1px solid currentColor;
}
.prose ul, .prose ol {
  max-width: 40em;
  padding-left: 1.3em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose strong { color: #071A2B; font-weight: 600; }
.prose table {
  width: 100%;
  font-size: var(--fs-14);
  background: #FFFFFF;
}
.prose th, .prose td {
  padding: 10px 12px;
  border: 1px solid rgba(7, 26, 43, .16);
  text-align: left;
}
.prose th { background: rgba(7, 26, 43, .06); font-weight: 600; }

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: calc(var(--header-h) - 1px);
    right: 12px;
    left: auto;
    z-index: 130;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: min(320px, calc(100vw - 24px));
    max-height: calc(100vh - var(--header-h) - 24px);
    overflow-y: auto;
    margin: 0;
    padding: 12px;
    background: var(--ink-800);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
  }
  .site-header[data-open] .site-nav { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .site-nav__link {
    display: block;
    padding: 12px 14px;
    font-size: var(--fs-16);
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .site-nav__link::after {
    left: 0;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 2px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top center;
    background: var(--cyan);
  }
  .site-nav__link:hover::after,
  .site-nav__link[aria-current="page"]::after { transform: scaleY(1); }
  .site-nav__link[aria-current="page"] {
    color: var(--cyan);
    background: rgba(43, 224, 208, .08);
  }
  .site-nav__cta {
    margin: 10px 0 0;
    padding: 12px 14px;
    justify-content: center;
    border-color: rgba(43, 224, 208, .45);
    color: var(--cyan);
  }

  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__links { margin-left: 0; }
}

@media (max-width: 960px) {
  .span-3, .span-4, .span-5, .span-6,
  .span-7, .span-8, .span-9, .span-10 { grid-column: 1 / -1; }
  .grid--12 { row-gap: 20px; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand__line { display: none; }
  .chapter__index { font-size: var(--fs-24); }
  .chapter__meta { margin-left: 0; }
}

@media (max-width: 560px) {
  .version-chip { display: none; }
  .brand__mark { width: 30px; height: 30px; font-size: var(--fs-14); }
  .brand__name { font-size: var(--fs-16); }
  .site-footer__cols { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .site-footer__bottom { gap: 8px 16px; }
  .site-footer__links { gap: 14px; width: 100%; }
  .prose { padding: 24px 18px; }
}

/* =========================================================
   减弱动效
   ========================================================= */

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