/* ===========================================================
   米兰看台 /assets/site.css
   共享外壳：变量、reset、中文排版、头部、页脚、通用组件
   =========================================================== */

:root {
  --ink: #0B0B0D;
  --red: #C8102E;
  --red-deep: #7A0C1C;
  --silver: #C9CED6;
  --green: #1FA463;
  --mint: #9BE8C0;
  --slate: #E9ECF2;
  --white: #F7F8FA;
  --graphite: #1C1F24;
  --muted: #5A6472;
  --glass: rgba(20, 26, 36, .72);

  --rail-w: 88px;
  --bar-h: 56px;
  --shell: 1280px;
  --gap: 24px;
  --radius: 3px;

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

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 16px 40px -24px rgba(11, 11, 13, .5);
}

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

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

body {
  margin: 0;
  padding-top: var(--bar-h);
  padding-left: var(--rail-w);
  background: var(--slate);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--graphite);
}

h1 { font-weight: 900; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button { font: inherit; color: inherit; }

strong, b { font-weight: 800; }

hr {
  border: 0;
  border-top: 1px solid rgba(28, 31, 36, .14);
  margin: 40px 0;
}

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

::selection { background: var(--red); color: #fff; }

/* ---------- 跳至正文 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  z-index: 200;
  transform: translateY(-130%);
  padding: 12px 20px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .18s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* =========================================================
   头部
   ========================================================= */
.masthead { position: relative; z-index: 90; }

/* 品牌方块 */
.brandmark {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 96;
  width: var(--rail-w);
  height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 206, 214, .18);
}

.brandmark__glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 2px;
  background: linear-gradient(150deg, var(--red), var(--red-deep));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  transition: transform .3s var(--ease);
}

.brandmark:hover .brandmark__glyph { transform: translateY(-2px) rotate(-4deg); }

.brandmark__name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--silver);
  line-height: 1;
}

/* 轨道导航 */
.railtabs {
  position: fixed;
  left: 0;
  top: 88px;
  bottom: 0;
  z-index: 92;
  width: var(--rail-w);
  background: var(--ink);
  border-right: 1px solid rgba(201, 206, 214, .14);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 206, 214, .3) transparent;
}

.railtabs__list { display: block; }

.railtabs__item { margin: 0; }

.railtab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  color: var(--silver);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.railtab__idx {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  color: rgba(201, 206, 214, .45);
  line-height: 1;
  transition: color .2s var(--ease);
}

.railtab__label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.16;
}

.railtab:hover {
  color: #fff;
  background: rgba(200, 16, 46, .14);
}

.railtab[aria-current="page"] {
  color: #fff;
  border-left-color: var(--red);
  background: linear-gradient(90deg, rgba(200, 16, 46, .34), rgba(200, 16, 46, .04));
}

.railtab[aria-current="page"] .railtab__idx { color: var(--green); }

.railtab[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 164, 99, .18);
}

.railnote {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 92;
  width: var(--rail-w);
  margin: 0;
  padding: 14px 0 18px;
  background: var(--ink);
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(201, 206, 214, .42);
  line-height: 1;
}

/* 命令栏 */
.masthead__bar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 94;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(201, 206, 214, .22);
  color: #fff;
}

.barnow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--silver);
  white-space: nowrap;
}

.barnow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 164, 99, .16);
  flex: none;
}

.barnow [data-bar-label] { color: #fff; }

.barquick {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 auto;
  list-style: none;
}

.barprogress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.barprogress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-deep) 45%, var(--green));
  transition: width .12s linear;
}

/* 移动按钮与遮罩 */
.navtoggle {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 97;
  height: var(--bar-h);
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  cursor: pointer;
}

.navtoggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.navtoggle__bars i {
  display: block;
  height: 2px;
  background: var(--silver);
  transition: transform .24s var(--ease), opacity .24s var(--ease), background .24s var(--ease);
}

.navtoggle[aria-expanded="true"] .navtoggle__bars i { background: var(--red); }
.navtoggle[aria-expanded="true"] .navtoggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars i:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] .navtoggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.navscrim {
  position: fixed;
  inset: 0;
  z-index: 93;
  background: rgba(11, 11, 13, .58);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s var(--ease), visibility .24s linear;
}

.navscrim[data-open] { opacity: 1; visibility: visible; }

/* =========================================================
   通用组件
   ========================================================= */
.shell {
  width: 100%;
  max-width: calc(var(--shell) + 48px);
  margin-inline: auto;
  padding-inline: 24px;
}

.band { padding: 72px 0; }
.band--tight { padding: 44px 0; }
.band--slate { background: var(--slate); }
.band--white { background: var(--white); }
.band--ink { background: var(--ink); color: var(--silver); }
.band--ink h1, .band--ink h2, .band--ink h3, .band--ink h4 { color: #fff; }
.band--ink .prose p { color: rgba(201, 206, 214, .92); }

/* 刻度分隔 */
.tick {
  display: block;
  height: 1px;
  border: 0;
  margin: 0;
  background: rgba(28, 31, 36, .14);
}

.tick--red { background: linear-gradient(90deg, var(--red) 0 64px, rgba(28, 31, 36, .14) 64px); }
.tick--green { background: linear-gradient(90deg, var(--green) 0 64px, rgba(28, 31, 36, .14) 64px); }

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

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

/* 页头 */
.pagehead {
  padding: 52px 0 40px;
  border-bottom: 1px solid rgba(28, 31, 36, .12);
}

.pagehead__kicker {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--red);
}

.pagehead__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 4.4vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.pagehead__lede {
  max-width: 40em;
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

/* 面包屑 */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: rgba(90, 100, 114, .5); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }

/* 正文容器 */
.prose { max-width: 42em; font-size: 16.5px; line-height: 1.8; }
.prose p { margin: 0 0 1.3em; }
.prose h2 { margin: 2.2em 0 .7em; font-size: clamp(20px, 2.4vw, 28px); }
.prose h3 { margin: 1.8em 0 .6em; font-size: 19px; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.2em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0 0 .5em; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); border-color: var(--red-deep); }

.btn--ghost { background: rgba(255, 255, 255, .05); border-color: rgba(201, 206, 214, .35); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: var(--silver); }

.btn--solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--solid:hover { background: #000; border-color: #000; }

.btn--outline { background: transparent; border-color: rgba(28, 31, 36, .28); color: var(--graphite); }
.btn--outline:hover { border-color: var(--ink); background: rgba(11, 11, 13, .06); }

/* 卡片 */
.card {
  position: relative;
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(28, 31, 36, .1);
  border-radius: var(--radius);
  transition: border-color .24s var(--ease), box-shadow .24s var(--ease), transform .24s var(--ease);
}

.card:hover { border-color: rgba(28, 31, 36, .22); box-shadow: var(--shadow); }

.card--glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: rgba(201, 206, 214, .3);
  color: #fff;
}

.card--edge { border-left: 3px solid var(--red); }

.card__kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--red);
}

.card__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.32;
}

.card--glass .card__title { color: #fff; }

.card__text { margin: 0; font-size: 15px; line-height: 1.72; color: var(--muted); }
.card--glass .card__text { color: rgba(201, 206, 214, .9); }

/* 数据数字 */
.stat { display: flex; flex-direction: column; gap: 4px; }

.stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--graphite);
}

.stat__num--red { color: var(--red); }
.stat__num--green { color: var(--green); }

.stat__unit {
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--muted);
}

/* 分段切换 */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  background: rgba(28, 31, 36, .06);
  border: 1px solid rgba(28, 31, 36, .1);
  border-radius: var(--radius);
}

.segmented__tab {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.segmented__tab:hover { color: var(--graphite); background: rgba(28, 31, 36, .06); }

.segmented__tab[aria-selected="true"] { background: var(--ink); color: #fff; }

.segmented__tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* 筛选 chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background: var(--white);
  border: 1px solid rgba(28, 31, 36, .18);
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--graphite);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.chip:hover { border-color: var(--ink); }

.chip[aria-pressed="true"],
.chip--on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip[aria-pressed="true"]::before,
.chip--on::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* 折叠 */
.fold { border-bottom: 1px solid rgba(28, 31, 36, .12); }

.fold__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: 0;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--graphite);
  text-align: left;
  cursor: pointer;
}

.fold__btn::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--red);
  transition: transform .24s var(--ease);
}

.fold__btn[aria-expanded="true"]::after { transform: rotate(45deg); }

.fold__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}

.fold__panel[data-open] { grid-template-rows: 1fr; }

.fold__panel > div { overflow: hidden; }

.fold__panel p { margin: 0 0 20px; font-size: 15.5px; line-height: 1.78; color: var(--muted); }

/* 粘性索引 */
.stickyindex {
  position: sticky;
  top: calc(var(--bar-h) + 20px);
  align-self: start;
}

/* 图片容器 */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid rgba(201, 206, 214, .3);
  border-radius: var(--radius);
}

.figure__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(120% 85% at 18% 0%, rgba(200, 16, 46, .38), transparent 62%),
    radial-gradient(95% 75% at 92% 100%, rgba(31, 164, 99, .3), transparent 62%),
    linear-gradient(160deg, #12151A, #0B0B0D);
}

.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 206, 214, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 206, 214, .08) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.figure__media img,
.figure__media picture,
.figure__media svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--tall .figure__media { aspect-ratio: 4 / 5; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }

.figure__cap {
  padding: 12px 15px;
  background: var(--ink);
  color: var(--silver);
  font-size: 12.5px;
  line-height: 1.6;
}

.figure__tag {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

/* 滚动显现 */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

html.js .reveal[data-delay="1"] { transition-delay: .06s; }
html.js .reveal[data-delay="2"] { transition-delay: .12s; }
html.js .reveal[data-delay="3"] { transition-delay: .18s; }
html.js .reveal[data-delay="4"] { transition-delay: .24s; }

/* =========================================================
   页脚
   ========================================================= */
.site-foot {
  position: relative;
  margin-top: 96px;
  padding: 64px 0 28px;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(201, 206, 214, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 206, 214, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--silver);
}

.site-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0 18%, var(--red-deep) 18% 28%, rgba(201, 206, 214, .2) 28% 100%);
}

.foot__inner {
  width: 100%;
  max-width: calc(var(--shell) + 48px);
  margin-inline: auto;
  padding-inline: 24px;
}

.foot__top {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2.4fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(201, 206, 214, .18);
}

.foot__glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: linear-gradient(150deg, var(--red), var(--red-deep));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.foot__name {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .06em;
  color: #fff;
}

.foot__tag {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  color: rgba(201, 206, 214, .55);
}

.footcols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footcol__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--red);
}

.footcol__list li { margin: 0 0 10px; }

.footcol__list a {
  color: var(--silver);
  font-size: 14.5px;
  text-decoration: none;
  transition: color .2s var(--ease), letter-spacing .2s var(--ease);
}

.footcol__list a:hover { color: #fff; letter-spacing: .04em; }

.foot__contact {
  padding: 30px 0;
  border-bottom: 1px solid rgba(201, 206, 214, .18);
}

.foot__line {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: #fff;
  word-break: break-word;
}

.foot__note {
  max-width: 68em;
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: rgba(201, 206, 214, .66);
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-top: 24px;
}

.foot__base p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(201, 206, 214, .58);
}

.foot__copy { color: var(--silver); }

.foot__fresh {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.foot__fresh i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 164, 99, .16);
  animation: freshPulse 3s var(--ease) infinite;
}

@keyframes freshPulse {
  0%, 70%, 100% { box-shadow: 0 0 0 4px rgba(31, 164, 99, .16); }
  35% { box-shadow: 0 0 0 9px rgba(31, 164, 99, 0); }
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1120px) {
  .foot__top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 1023px) {
  .band { padding: 56px 0; }
  .col-3, .col-4 { grid-column: span 6; }
  .col-5, .col-6, .col-7, .col-8, .col-9 { grid-column: span 12; }
  .footcols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 899px) {
  body {
    padding-left: 0;
    padding-top: var(--bar-h);
  }

  body.nav-open { overflow: hidden; }

  .skip-link { left: 0; }

  /* 品牌：横向命令条上的左侧方块 */
  .brandmark {
    width: auto;
    height: var(--bar-h);
    flex-direction: row;
    gap: 10px;
    padding: 0 14px;
    border-bottom: 0;
    border-right: 1px solid rgba(201, 206, 214, .16);
  }

  .brandmark__glyph {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .brandmark__name { font-size: 12px; letter-spacing: .12em; color: #fff; }

  /* 轨道变抽屉 */
  .railtabs {
    top: 0;
    width: min(320px, 84vw);
    z-index: 95;
    padding: 76px 0 32px;
    border-right: 1px solid rgba(201, 206, 214, .22);
    transform: translateX(-102%);
    transition: transform .3s var(--ease);
    box-shadow: 24px 0 48px -32px rgba(0, 0, 0, .8);
  }

  .railtabs[data-open] { transform: none; }

  .railtabs__item { border-bottom: 1px solid rgba(201, 206, 214, .12); }

  .railtab {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    border-left-width: 3px;
  }

  .railtab__idx { font-size: 12px; color: rgba(201, 206, 214, .5); }

  .railtab__label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 16px;
    letter-spacing: .1em;
  }

  .railtab[aria-current="page"]::after { position: static; margin-left: auto; }

  .railnote { display: none; }

  /* 命令栏 */
  .masthead__bar {
    left: 0;
    justify-content: center;
    padding: 0 132px 0 116px;
    background: rgba(11, 11, 13, .94);
  }

  .barquick { display: none; }

  .barnow { font-size: 11px; letter-spacing: .12em; }

  .navtoggle { display: flex; }

  .foot__base { gap: 8px 20px; }
  .foot__fresh { margin-left: 0; }
}

@media (max-width: 639px) {
  :root { --gap: 20px; }

  .shell, .foot__inner { padding-inline: 18px; }

  .band { padding: 44px 0; }

  .col-3, .col-4 { grid-column: span 12; }

  .pagehead { padding: 36px 0 28px; }
  .pagehead__lede { font-size: 16px; }

  .prose { font-size: 16px; }

  .footcols { grid-template-columns: 1fr; gap: 26px; }
  .foot__line { font-size: 12px; }
  .site-foot { margin-top: 64px; padding-top: 48px; }

  .masthead__bar { padding: 0 118px 0 104px; }
  .brandmark { padding: 0 12px; }
  .brandmark__name { display: none; }
}

/* ---------- 无障碍动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

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

  .foot__fresh i { animation: none; }
}
