/* =========================================================================
   MANBET品牌站 · 共享样式 /assets/site.css
   索引先行的技术手册式体系：深墨蓝基底 + 信号橙锚点 + 冷光青辅助
   ========================================================================= */

/* ---- 1 Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dt, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg, video, canvas { 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; width: 100%; }
strong, b { font-weight: 700; }
::selection { background: var(--signal-orange); color: var(--ink-900); }

/* ---- 2 变量 ----------------------------------------------------------- */
:root {
  --ink-900: #0B1A2B;
  --ink-800: #12263A;
  --ink-700: #1B3350;
  --ink-600: #27415C;
  --paper-100: #F2F5F8;
  --paper-000: #FFFFFF;
  --signal-orange: #FF6A1A;
  --cyan-glow: #2FD3D8;
  --amber-index: #FFC24B;
  --steel-400: #8C9BAE;
  --green-ok: #1FA97A;

  --font-cn: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --border-ink: 2px solid var(--ink-900);
  --border-line: 2px solid var(--ink-600);
  --radius: 2px;
  --shadow-hard: 6px 6px 0 var(--ink-900);
  --shadow-hard-sm: 4px 4px 0 var(--ink-900);
  --shadow-orange: 6px 6px 0 var(--signal-orange);
  --shadow-cyan: 6px 6px 0 var(--cyan-glow);

  --shell-max: 1240px;
  --shell-pad: 20px;
  --rail-w: 220px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---- 3 基础排版 ------------------------------------------------------- */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  color: var(--ink-900);
  background-color: var(--paper-100);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.site-main { flex: 1 0 auto; display: block; }

h1, h2, h3, h4 { font-weight: 900; letter-spacing: .01em; }
h1 { font-size: 44px; line-height: 56px; }
h2 { font-size: 30px; line-height: 40px; }
h3 { font-size: 22px; line-height: 32px; font-weight: 700; }
h4 { font-size: 18px; line-height: 28px; font-weight: 700; }

.mono,
.index-label,
.coord-card__no,
.dense-list__time,
.legend__item,
.tag,
.breadcrumb,
.status-strip__tag,
.footer-legal__meta,
.scroll-meter,
.scroll-meter__fill,
.index-entry__glyph {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

:focus-visible {
  outline: 3px solid var(--signal-orange);
  outline-offset: 3px;
}

/* ---- 4 布局容器 ------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--shell-pad);
  padding-right: var(--shell-pad);
}
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 32px var(--shell-pad) 72px;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  gap: 40px;
  border-left: var(--border-line);
  border-right: var(--border-line);
}
.shell--full { grid-template-columns: minmax(0, 1fr); }
.shell__main { min-width: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }

/* ---- 5 跳过链接 ------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 10px;
  top: -64px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--signal-orange);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 15px;
  line-height: 22px;
  border: var(--border-ink);
  border-radius: var(--radius);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 10px; }

/* ---- 6 头部 ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink-900);
  color: var(--paper-100);
  border-bottom: 3px solid var(--signal-orange);
}
.site-header__frame {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  border-left: var(--border-line);
  border-right: var(--border-line);
  background: var(--ink-900);
}

.status-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px var(--shell-pad);
  background: var(--ink-800);
  border-bottom: 1px solid var(--ink-600);
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.status-strip::-webkit-scrollbar { display: none; }
.status-strip__tag {
  flex: 0 0 auto;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-900);
  background: var(--amber-index);
  border-radius: var(--radius);
}
.status-strip__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--paper-100);
  opacity: .78;
}
.status-strip__link {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan-glow);
  border-bottom: 2px solid rgba(47, 211, 216, .45);
  padding-bottom: 1px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.status-strip__link:hover { color: var(--paper-000); border-color: var(--paper-000); }

.header-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px var(--shell-pad);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--signal-orange);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  border: 2px solid var(--paper-100);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink-600);
}
.brand__body { display: flex; flex-direction: column; gap: 2px; }
.brand__name {
  font-size: 17px;
  font-weight: 900;
  line-height: 22px;
  color: var(--paper-000);
}
.brand__line {
  font-size: 12px;
  line-height: 16px;
  color: var(--steel-400);
}

/* 桌面导航 */
.site-nav { flex: 1 1 auto; min-width: 0; }
.site-nav__list { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.site-nav__link {
  display: block;
  position: relative;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  color: var(--paper-100);
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.site-nav__link:hover {
  color: var(--paper-000);
  background: var(--ink-800);
  border-color: var(--ink-600);
}
.site-nav__link[aria-current="page"] {
  color: var(--ink-900);
  background: var(--signal-orange);
  border-color: var(--signal-orange);
  font-weight: 700;
}

.header-bar__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.index-entry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--paper-100);
  background: var(--ink-800);
  border: 2px solid var(--ink-600);
  border-radius: var(--radius);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.index-entry:hover { color: var(--cyan-glow); border-color: var(--cyan-glow); }
.index-entry__glyph { font-size: 15px; color: var(--cyan-glow); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  color: var(--paper-100);
  background: var(--ink-800);
  border: 2px solid var(--paper-100);
  border-radius: var(--radius);
}
.nav-toggle__bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle__bars span { display: block; height: 2px; background: currentColor; }

/* 滚动进度条 */
.scroll-meter {
  display: block;
  height: 3px;
  background: var(--ink-800);
  overflow: hidden;
}
.scroll-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cyan-glow);
  transition: width .1s linear;
}

/* ---- 7 按钮 ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  color: var(--ink-900);
  background: var(--paper-000);
  border: var(--border-ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background-color .16s var(--ease), color .16s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink-900); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink-900); }
.btn--primary {
  background: var(--signal-orange);
  color: var(--ink-900);
  font-weight: 700;
}
.btn--primary:hover { background: #FF8340; }
.btn--ghost {
  background: transparent;
  color: var(--paper-000);
  border-color: var(--paper-100);
  box-shadow: 4px 4px 0 var(--ink-600);
}

/* ---- 8 页脚 ----------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--ink-900);
  color: var(--paper-100);
  border-top: 3px solid var(--signal-orange);
}
.site-footer__frame {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 44px var(--shell-pad) 20px;
  border-left: var(--border-line);
  border-right: var(--border-line);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr);
  gap: 40px;
}

.footer-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  background: var(--signal-orange);
  border-radius: var(--radius);
}
.footer-brand__name {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 900;
  line-height: 28px;
  color: var(--paper-000);
}
.footer-brand__line {
  margin-top: 4px;
  font-size: 12px;
  line-height: 18px;
  color: var(--steel-400);
}
.footer-brand__summary {
  margin-top: 14px;
  max-width: 42ch;
  font-size: 14px;
  line-height: 24px;
  color: #A9B8C9;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-col__title {
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--amber-index);
  border-bottom: 2px solid var(--ink-600);
}
.footer-col__list { display: grid; gap: 9px; }
.footer-col__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 22px;
  color: #C7D3E0;
  transition: color .18s var(--ease);
}
.footer-col__link::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 2px;
  background: var(--ink-600);
  transition: background-color .18s var(--ease);
}
.footer-col__link:hover { color: var(--cyan-glow); }
.footer-col__link:hover::before { background: var(--cyan-glow); }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 2px solid var(--ink-600);
}
.contact-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: var(--ink-800);
  border: 2px solid var(--ink-600);
  border-radius: var(--radius);
}
.contact-cell__label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: .1em;
  color: var(--steel-400);
}
.contact-cell__value {
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  color: var(--paper-000);
  word-break: break-word;
}
.contact-cell__note {
  font-size: 12px;
  line-height: 18px;
  color: var(--steel-400);
}
.copy-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--cyan-glow);
  background: transparent;
  border: 2px solid var(--ink-600);
  border-radius: var(--radius);
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.copy-btn:hover { color: var(--paper-000); border-color: var(--cyan-glow); }
.copy-btn[data-copy-state="done"] {
  color: var(--ink-900);
  background: var(--green-ok);
  border-color: var(--green-ok);
}
.copy-btn[data-copy-state="fail"] {
  color: var(--ink-900);
  background: var(--signal-orange);
  border-color: var(--signal-orange);
}

.footer-note {
  margin-top: 20px;
  font-size: 13px;
  line-height: 22px;
  color: var(--steel-400);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid var(--ink-600);
}
.footer-legal__meta {
  font-size: 12px;
  line-height: 18px;
  color: var(--steel-400);
}

/* ---- 9 通用组件 ------------------------------------------------------- */

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--steel-400);
}
.breadcrumb__link {
  color: var(--ink-600);
  border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.breadcrumb__link:hover { color: var(--signal-orange); border-color: var(--signal-orange); }
.breadcrumb__sep { color: var(--steel-400); }
.breadcrumb__current { color: var(--ink-900); font-weight: 600; }

/* 索引轨 */
.index-rail { position: sticky; top: 140px; align-self: start; }
.index-rail__title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ink-600);
}
.index-rail__list { display: grid; gap: 2px; border-left: 2px solid var(--ink-600); }
.index-rail__link {
  position: relative;
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 22px;
  color: var(--steel-400);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.index-rail__link::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background-color .2s var(--ease);
}
.index-rail__link:hover { color: var(--ink-900); background: var(--paper-000); }
.index-rail__link[data-current="true"] { color: var(--ink-900); font-weight: 700; }
.index-rail__link[data-current="true"]::before { background: var(--signal-orange); }

/* 主题带与筛选 */
.theme-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px var(--shell-pad);
  background: var(--ink-800);
  color: var(--paper-100);
  border-top: 2px solid var(--ink-600);
  border-bottom: 2px solid var(--ink-600);
}
.theme-band--light { background: var(--paper-000); color: var(--ink-900); }
.theme-band__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--amber-index);
  margin-right: 4px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: inherit;
  background: transparent;
  border: 2px solid var(--ink-600);
  border-radius: var(--radius);
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.chip:hover { color: var(--signal-orange); border-color: var(--signal-orange); }
.chip[aria-pressed="true"] {
  color: var(--ink-900);
  background: var(--signal-orange);
  border-color: var(--signal-orange);
  font-weight: 700;
}

/* 坐标卡 */
.coord-card {
  position: relative;
  padding: 42px 20px 20px;
  background: var(--paper-000);
  border: var(--border-ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}
.coord-card__no {
  position: absolute;
  left: 0;
  top: 0;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: .06em;
  color: var(--amber-index);
  background: var(--ink-900);
  border-radius: 0 0 var(--radius) 0;
}
.coord-card--orange { box-shadow: var(--shadow-orange); }
.coord-card--cyan { box-shadow: var(--shadow-cyan); }
.coord-card__title { font-size: 19px; line-height: 28px; font-weight: 700; }
.coord-card__text { margin-top: 8px; font-size: 15px; line-height: 26px; color: var(--ink-600); }

/* 密集列表 */
.dense-list { display: grid; border-top: var(--border-ink); }
.dense-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 128px;
  gap: 12px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid var(--steel-400);
}
.dense-list__name { font-size: 15px; font-weight: 600; line-height: 24px; color: var(--ink-900); }
.dense-list__time { font-size: 13px; line-height: 20px; color: var(--ink-600); }
.dense-list__tag { justify-self: start; }

/* 图例 */
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; line-height: 20px; color: var(--ink-600); }
.legend__item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.legend__swatch {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid var(--ink-900);
  border-radius: var(--radius);
  background: var(--paper-000);
}
.legend__swatch--orange { background: var(--signal-orange); }
.legend__swatch--cyan { background: var(--cyan-glow); }
.legend__swatch--amber { background: var(--amber-index); }
.legend__swatch--ok { background: var(--green-ok); }

/* 状态标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 18px;
  border: 2px solid currentColor;
  border-radius: var(--radius);
  color: var(--ink-600);
}
.tag--version { color: var(--signal-orange); }
.tag--update { color: #C98A0B; }
.tag--ok { color: var(--green-ok); }
.tag--info { color: #159BA0; }

/* 正文排版 */
.prose { max-width: 74ch; font-size: 16px; line-height: 28px; color: var(--ink-800); }
.prose > * + * { margin-top: 16px; }
.prose h1 { font-size: 44px; line-height: 56px; color: var(--ink-900); }
.prose h2 { font-size: 30px; line-height: 40px; color: var(--ink-900); margin-top: 36px; }
.prose h3 { font-size: 22px; line-height: 32px; color: var(--ink-900); margin-top: 28px; }
.prose ul, .prose ol { display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 24px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 10px;
  height: 2px;
  background: var(--signal-orange);
}
.prose a {
  color: var(--ink-600);
  border-bottom: 2px solid var(--cyan-glow);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.prose a:hover { color: var(--signal-orange); border-color: var(--signal-orange); }
.prose strong { color: var(--ink-900); }

/* 图片容器基础规则（供页面阶段放置图片占位） */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--ink-700);
  border: var(--border-ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink-600);
}
.media-frame > img,
.media-frame > picture > img,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink-700);
}
.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--paper-100);
  background: rgba(11, 26, 43, .86);
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--3x4 { aspect-ratio: 3 / 4; }
.media-frame--fill { min-height: 220px; }
.media-frame--empty::after {
  content: "图像位";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--steel-400);
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  color: var(--ink-900);
  background: var(--signal-orange);
  border: var(--border-ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease);
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }

/* ---- 10 入场动效 ------------------------------------------------------ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.js [data-reveal][data-revealed="true"] { opacity: 1; transform: none; }

/* ---- 11 响应式 -------------------------------------------------------- */
@media (max-width: 1200px) {
  .site-nav__link { padding: 8px 9px; font-size: 14px; }
  .brand__line { display: none; }
}

@media (max-width: 1080px) {
  :root { --rail-w: 184px; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  :root { --shell-pad: 16px; }
  html { scroll-padding-top: 116px; }

  .nav-toggle { display: inline-flex; }
  .header-bar { gap: 12px; padding: 12px var(--shell-pad); }
  .brand__mark { width: 38px; height: 38px; font-size: 14px; }
  .brand__name { font-size: 16px; }
  .header-bar__tools { margin-left: auto; }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    max-height: 78vh;
    overflow-y: auto;
    padding: 12px 12px 16px;
    background: var(--ink-900);
    border-top: 3px solid var(--signal-orange);
    box-shadow: 0 -8px 0 rgba(39, 65, 92, .35);
    transform: translateY(102%);
    visibility: hidden;
    transition: transform .24s var(--ease), visibility .24s var(--ease);
  }
  .site-nav[data-open="true"] { transform: translateY(0); visibility: visible; }
  .site-nav__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .site-nav__link {
    padding: 14px 12px;
    font-size: 16px;
    text-align: left;
    background: var(--ink-800);
    border-color: var(--ink-600);
  }
  .index-rail { position: static; }
  .index-rail__list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-left: 0;
    border-bottom: 2px solid var(--ink-600);
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .index-rail__list::-webkit-scrollbar { display: none; }
  .index-rail__link { white-space: nowrap; border: 2px solid var(--ink-600); border-radius: var(--radius); }
  .index-rail__link::before { display: none; }
  .dense-list__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (max-width: 900px) {
  h1 { font-size: 30px; line-height: 40px; }
  h2 { font-size: 24px; line-height: 34px; }
  .prose h1 { font-size: 30px; line-height: 40px; }
  .prose h2 { font-size: 24px; line-height: 34px; }
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 20px;
    padding-bottom: 56px;
  }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
  .site-footer__frame { padding-top: 32px; }
  .to-top { bottom: 20px; right: 12px; padding: 9px 12px; font-size: 13px; }
}

@media (max-width: 560px) {
  .status-strip { font-size: 12px; gap: 8px; }
  .status-strip__link { display: none; }
  .header-bar { gap: 10px; }
  .site-nav__list { grid-template-columns: minmax(0, 1fr); }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

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