/* ============================================================
   威哥WG 中文站 · 共享样式表 /assets/site.css
   左侧信号轨道 + 纸张叠层画板 + 经幡五色点缀
   ============================================================ */

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

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

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

ul, ol { list-style: none; }
figure { display: block; }

a {
  color: inherit;
  text-decoration: none;
}

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

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

table { border-collapse: collapse; }

/* ---------- 2 · 设计令牌 ---------- */
:root {
  /* 品牌色板 */
  --indigo:       #101C36;
  --midnight:     #1B2B4B;
  --paper:        #E9E4DC;
  --paper-light:  #F8F5EF;
  --signal:       #F2622E;
  --signal-dark:  #D14E1E;
  --glacier:      #1F9E9A;
  --glacier-deep: #17706D;
  --glacier-lite: #4FD1CC;
  --flag-blue:    #2E6FD1;
  --flag-green:   #2F9E5B;
  --flag-yellow:  #D99A17;
  --flag-red:     #C8383C;

  /* 文字与线条 */
  --ink:        #0B0F18;
  --ink-soft:   #3C4453;
  --mist:       #7C8698;
  --rule:       #C7C0B3;
  --rule-soft:  #D8D2C7;
  --rail-text:  #C3CCDC;
  --rail-dim:   #7E8EA9;
  --rail-line:  rgba(248, 245, 239, 0.13);

  /* 尺寸 */
  --rail-width:  236px;
  --head-h:      58px;
  --radius:      2px;
  --content-max: 1280px;

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Source Han Sans SC",
    "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo,
    Consolas, "Liberation Mono", monospace;

  /* 节奏 */
  --gap-xs: 8px;
  --gap-sm: 14px;
  --gap-md: 24px;
  --gap-lg: 40px;
  --gap-xl: 72px;
}

/* ---------- 3 · 基础排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(11, 15, 24, 0.055) 0.7px, transparent 0.7px);
  background-size: 8px 8px;
  background-attachment: fixed;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 900; }
h2 { font-size: clamp(20px, 2.3vw, 28px); }
h3 { font-size: 20px; }
h4 { font-size: 16px; }

p { color: var(--ink-soft); }

strong, b { font-weight: 800; color: var(--ink); }

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

/* ---------- 4 · 焦点与可达性 ---------- */
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--signal);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: 2px 2px 0 rgba(16, 28, 54, 0.3);
  transition: top 160ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline-offset: 2px;
}

/* ---------- 5 · 页头 / 左侧信号轨道 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-width);
  display: flex;
  flex-direction: column;
  background: linear-gradient(178deg, #101C36 0%, #16233F 46%, #1B2B4B 100%);
  border-right: 1px solid #05080F;
  z-index: 60;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.055) 0.8px, transparent 0.8px),
    radial-gradient(rgba(0, 0, 0, 0.16) 0.8px, transparent 0.8px);
  background-size: 5px 5px, 11px 11px;
  background-position: 0 0, 3px 4px;
}

/* 品牌标识栏 */
.brand-bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px 16px;
  border-bottom: 1px solid var(--rail-line);
}

.brand-bar__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand__mark {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      var(--signal)        0    3.2px,
      transparent          3.2px 7.4px,
      var(--glacier-lite)  7.4px 9.6px,
      transparent          9.6px 12px,
      rgba(46, 111, 209, 0.9) 12px 13.4px,
      transparent          13.4px);
  border: 1px solid rgba(248, 245, 239, 0.12);
}

.brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--paper-light);
  white-space: nowrap;
}

.brand-bar__domain {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--rail-dim);
  word-break: break-all;
}

.brand-bar__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.brand-bar__section {
  position: relative;
  padding-left: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--paper-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-bar__section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 14px;
  transform: translateY(-50%);
  background: var(--signal);
  border-radius: 1px;
}

.week-badge {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--flag-yellow);
  border: 1px solid rgba(217, 154, 23, 0.48);
  background: rgba(217, 154, 23, 0.1);
  padding: 2px 7px;
  border-radius: var(--radius);
  white-space: nowrap;
}

/* 抽屉按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid rgba(248, 245, 239, 0.26);
  border-radius: var(--radius);
  color: var(--paper-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.nav-toggle:hover {
  border-color: var(--glacier-lite);
  background: rgba(248, 245, 239, 0.07);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: background-color 160ms ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 200ms ease, top 200ms ease;
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after  { top:  5px; }

.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

/* 轨道导航主体 */
.rail {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 14px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(248, 245, 239, 0.22) transparent;
}

.rail::-webkit-scrollbar { width: 6px; }
.rail::-webkit-scrollbar-thumb {
  background: rgba(248, 245, 239, 0.22);
  border-radius: 3px;
}

.rail__caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--rail-dim);
  padding-left: 12px;
}

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail__item { display: block; }

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 10px 10px 13px;
  border-radius: var(--radius);
  color: var(--rail-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 160ms ease, color 160ms ease;
}

.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  transform: translateY(-50%);
  background: var(--signal);
  border-radius: 1px;
  transition: height 160ms ease;
}

.rail__link:hover,
.rail__link:focus-visible {
  background: rgba(248, 245, 239, 0.07);
  color: #FFFFFF;
}

.rail__link:hover::before { height: 16px; }

.rail__link[aria-current="page"] {
  background: rgba(242, 98, 46, 0.16);
  color: #FFFFFF;
  font-weight: 800;
}

.rail__link[aria-current="page"]::before { height: 22px; }

.rail__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--rail-dim);
  transition: color 160ms ease;
}

.rail__link:hover .rail__num { color: var(--glacier-lite); }
.rail__link[aria-current="page"] .rail__num { color: var(--signal); }

.rail__label { flex: 1 1 auto; }

/* 快速接入小面板 */
.rail__quick {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(248, 245, 239, 0.16);
  border-radius: var(--radius);
  background: rgba(11, 15, 24, 0.34);
}

.rail__quick-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--rail-dim);
  margin-bottom: 4px;
  padding-left: 2px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: #D6DCE8;
  transition: background-color 160ms ease, color 160ms ease;
}

.quick-link:hover,
.quick-link:focus-visible {
  background: rgba(248, 245, 239, 0.09);
  color: #FFFFFF;
}

.quick-link__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(248, 245, 239, 0.35);
}

.quick-link__dot--ios     { background: var(--flag-blue); }
.quick-link__dot--android { background: var(--flag-green); }
.quick-link__dot--web     { background: var(--flag-yellow); }

/* ---------- 6 · 页面骨架 ---------- */
.site-main,
#main-content {
  margin-inline-start: var(--rail-width);
  min-height: 60vh;
  padding-block: clamp(24px, 3.4vw, 46px);
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.stack-sm > * + * { margin-top: 14px; }
.stack-md > * + * { margin-top: 24px; }
.stack-lg > * + * { margin-top: 40px; }

/* ---------- 7 · 页脚 ---------- */
.site-footer {
  position: relative;
  margin-inline-start: var(--rail-width);
  background: linear-gradient(180deg, #16233F 0%, #101C36 100%);
  border-top: 1px solid #05080F;
  color: var(--rail-text);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 0.8px, transparent 0.8px);
  background-size: 5px 5px;
}

.footer-grid,
.footer-base {
  position: relative;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 1.35fr 0.85fr;
  gap: 34px 28px;
  padding-block: 46px 34px;
}

.footer-col { min-width: 0; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--paper-light);
}

.footer-brand::before {
  content: "";
  flex: none;
  width: 5px;
  height: 20px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--flag-blue) 0%, var(--glacier-lite) 38%, var(--signal) 72%, var(--flag-yellow) 100%);
}

.footer-domain {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--glacier-lite);
  word-break: break-all;
}

.footer-note {
  margin-top: 14px;
  max-width: 32ch;
  font-size: 13px;
  line-height: 1.8;
  color: #9AA3B2;
}

.footer-heading {
  position: relative;
  margin-bottom: 14px;
  padding-bottom: 9px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--paper-light);
  border-bottom: 1px solid var(--rail-line);
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 34px;
  height: 2px;
  background: var(--signal);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-list a {
  position: relative;
  display: inline-block;
  color: #B5BFD0;
  transition: color 160ms ease;
}

.footer-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--glacier-lite);
  transition: width 160ms ease;
}

.footer-list a:hover,
.footer-list a:focus-visible { color: var(--paper-light); }
.footer-list a:hover::after,
.footer-list a:focus-visible::after { width: 100%; }

.footer-line {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.7;
}

.footer-line:last-child { margin-bottom: 0; }

.footer-key {
  flex: none;
  width: 62px;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--rail-dim);
}

.footer-val {
  color: #D6DCE8;
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 16px;
  border-top: 1px solid var(--rail-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--rail-dim);
}

.footer-base p { color: inherit; }

/* ---------- 8 · 通用页面组件 ---------- */
/* 画板面板 */
.panel {
  position: relative;
  isolation: isolate;
  background: var(--paper-light);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 2px 2px 0 rgba(16, 28, 54, 0.13);
  padding: clamp(18px, 2.4vw, 30px);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.panel:hover {
  border-color: var(--glacier);
  box-shadow: 4px 4px 0 rgba(16, 28, 54, 0.13);
}

.panel--stack {
  box-shadow:
    3px 3px 0 0 var(--paper-light),
    4px 4px 0 0 var(--rule),
    7px 7px 0 0 var(--paper-light),
    8px 8px 0 0 var(--rule),
    10px 10px 0 rgba(16, 28, 54, 0.1);
}

.panel--accent::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg,
    var(--flag-blue) 0 18%,
    var(--glacier) 18% 38%,
    var(--flag-yellow) 38% 56%,
    var(--signal) 56% 78%,
    var(--flag-green) 78% 100%);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 160ms ease, border-color 160ms ease,
    color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn--signal {
  background: var(--signal);
  color: #FFFFFF;
  box-shadow: 2px 2px 0 rgba(16, 28, 54, 0.22);
}

.btn--signal:hover,
.btn--signal:focus-visible {
  background: var(--signal-dark);
  box-shadow: 4px 4px 0 rgba(16, 28, 54, 0.22);
  transform: translate(-1px, -1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--rule);
  color: var(--ink);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--glacier);
  color: var(--glacier-deep);
  background: rgba(31, 158, 154, 0.08);
}

/* 标签 / 状态 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  border: 1px solid rgba(31, 158, 154, 0.5);
  border-radius: var(--radius);
  color: var(--glacier-deep);
  background: rgba(31, 158, 154, 0.09);
}

.tag--blue {
  color: #24559E;
  border-color: rgba(46, 111, 209, 0.45);
  background: rgba(46, 111, 209, 0.08);
}

.tag--green {
  color: #24784A;
  border-color: rgba(47, 158, 91, 0.45);
  background: rgba(47, 158, 91, 0.09);
}

.tag--yellow {
  color: #81590A;
  border-color: rgba(217, 154, 23, 0.5);
  background: rgba(217, 154, 23, 0.13);
}

.tag--red {
  color: #9E2A2E;
  border-color: rgba(200, 56, 60, 0.45);
  background: rgba(200, 56, 60, 0.08);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
  margin-bottom: 18px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--rule);
}

.breadcrumb a {
  color: var(--ink-soft);
  transition: color 160ms ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: var(--glacier-deep); }

/* 章节头 */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft);
}

.section-head__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--signal);
}

.section-head__title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.section-head__note {
  margin-left: auto;
  font-size: 13px;
  color: var(--mist);
}

/* 索引列 */
.index-col {
  flex: none;
  width: 56px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.9;
  color: var(--mist);
}

/* 网格 */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-md);
}

/* 图形容器 */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg,
      rgba(46, 111, 209, 0.14) 0%,
      rgba(31, 158, 154, 0.13) 42%,
      rgba(242, 98, 46, 0.11) 100%),
    var(--paper);
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(11, 15, 24, 0.14) 0.7px, transparent 0.7px);
  background-size: 6px 6px;
  opacity: 0.5;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
}

.img-frame--wide   { aspect-ratio: 21 / 9; }
.img-frame--tall   { aspect-ratio: 3 / 4; }
.img-frame--square { aspect-ratio: 1 / 1; }

.img-frame__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--paper-light);
  background: rgba(16, 28, 54, 0.82);
  border-radius: var(--radius);
}

/* 正文 */
.prose p {
  max-width: 38em;
  margin-bottom: 1em;
  color: var(--ink-soft);
}

.prose p:last-child { margin-bottom: 0; }

.prose a {
  color: var(--glacier-deep);
  text-decoration: underline;
  text-decoration-color: rgba(31, 158, 154, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms ease;
}

.prose a:hover,
.prose a:focus-visible { text-decoration-color: var(--glacier-deep); }

/* ---------- 9 · 入视口显现 ---------- */
.reveal { opacity: 1; }

html.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms ease, transform 240ms ease;
}

html.js .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 10 · 响应式 ---------- */
@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    width: 100%;
    height: var(--head-h);
    background: linear-gradient(90deg, #101C36 0%, #16233F 58%, #1B2B4B 100%);
    border-right: 0;
    border-bottom: 1px solid #05080F;
  }

  .site-header::before {
    background-size: 4px 4px;
    opacity: 0.7;
  }

  .brand-bar {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 0 14px;
    border-bottom: 0;
  }

  .brand-bar__row {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
  }

  .brand-bar__domain { display: none; }

  .brand-bar__meta {
    width: auto;
    flex: 0 0 auto;
  }

  .week-badge { display: none; }

  .brand-bar__section { font-size: 12px; }

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

  .rail {
    position: fixed;
    top: var(--head-h);
    left: 0;
    bottom: 0;
    width: min(84vw, 320px);
    padding: 20px 16px 24px;
    background: linear-gradient(178deg, #101C36 0%, #1B2B4B 100%);
    border-right: 1px solid #05080F;
    box-shadow: 8px 0 24px rgba(11, 15, 24, 0.28);
    transform: translateX(-102%);
    transition: transform 240ms ease;
    z-index: 2;
  }

  .site-header[data-open] .rail { transform: translateX(0); }

  .site-header[data-open]::after {
    content: "";
    position: fixed;
    top: var(--head-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: rgba(11, 15, 24, 0.52);
  }

  .site-main,
  #main-content {
    margin-inline-start: 0;
    padding-block: clamp(20px, 4vw, 34px);
  }

  .site-footer { margin-inline-start: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }

  .footer-col--brand { grid-column: 1 / -1; }

  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  body { font-size: 15px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 34px 26px;
  }

  .footer-col--brand { grid-column: auto; }

  .footer-note { max-width: 100%; }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

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

  .index-col { width: 100%; }

  .section-head__note { margin-left: 0; }

  .breadcrumb { margin-bottom: 14px; }
}

@media (max-width: 420px) {
  .brand__name { font-size: 15px; }
  .brand__mark { width: 24px; height: 24px; }
  .nav-toggle { padding: 7px 10px; }
  .nav-toggle__text { display: none; }
  .btn { width: 100%; justify-content: center; }
}

/* ---------- 11 · 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
