/* ===== 36 官网旧版 · 共享样式表 /assets/site.css ===== */

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

:root {
  --ink: #071827;
  --archive: #0E223A;
  --console: #15324D;
  --paper: #DCE4E8;
  --mist: #8FA6B8;
  --orange: #FF6A2A;
  --amber: #FFB079;
  --cyan: #38E0D0;
  --line: #2B455C;
  --ok: #54D68A;
  --warn: #F4C95D;

  --font-title: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-s: 10px;
  --pill: 999px;
  --header-h: 86px;
  --ease: cubic-bezier(.32, .72, .28, 1);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15.5px, 1.02vw, 17px);
  line-height: 1.75;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(43, 69, 92, .17) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 69, 92, .17) 1px, transparent 1px);
  background-size: 68px 68px;
  background-position: center top;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.012em;
  color: var(--paper);
  margin: 0 0 .55em;
}

h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }
h4 { font-size: clamp(17px, 1.7vw, 20px); }

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

a {
  color: var(--paper);
  text-decoration-color: rgba(56, 224, 208, .5);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--cyan);
}

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

button {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--orange);
  color: var(--ink);
}

/* ===== 工具类 ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
  font-size: .86em;
  letter-spacing: .06em;
}

.lede {
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.8;
  color: var(--mist);
  max-width: 62ch;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 14px;
}

.kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--orange);
}

/* ===== 跳转链接 ===== */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}

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

/* ===== 头部浮岛 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 12px var(--gutter) 0;
}

.header-shell {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 10px 12px 10px 14px;
  background: rgba(14, 34, 58, .95);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 22px 44px -30px #000, inset 0 1px 0 rgba(220, 228, 232, .05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header[data-open] .header-shell {
  border-color: rgba(56, 224, 208, .45);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
}

.brand:hover { color: var(--paper); }

.brand__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -.04em;
  box-shadow: inset 0 -2px 0 rgba(7, 24, 39, .25);
}

.brand__stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: color .18s var(--ease);
}

.brand:hover .brand__name { color: var(--amber); }

.brand__sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  color: var(--mist);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 15px;
  background: rgba(21, 50, 77, .92);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.nav-toggle__bars span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.site-header[data-open] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* 导航本体 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  margin-left: auto;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list__item { position: relative; }

.nav-link {
  position: relative;
  display: block;
  padding: 9px 10px;
  border-radius: var(--pill);
  font-size: 14.5px;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transform: translateX(-50%);
  transition: width .22s var(--ease);
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(21, 50, 77, .9);
}

.nav-link:hover::after { width: 16px; }

.nav-link[aria-current="page"] {
  color: var(--paper);
  background: rgba(21, 50, 77, .95);
}

.nav-link[aria-current="page"]::after {
  width: 18px;
  background: var(--orange);
}

/* 检索胶囊 */
.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 214px;
  min-width: 152px;
  padding: 2px 2px 2px 12px;
  background: rgba(7, 24, 39, .8);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.search:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(56, 224, 208, .35);
}

.search__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 6px 4px;
  background: transparent;
  border: 0;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  outline: none;
}

.search__input::placeholder {
  color: rgba(143, 166, 184, .78);
}

.search__go {
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 0;
  border-radius: var(--pill);
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background-color .18s var(--ease);
}

.search__go:hover { background: #6bf0e4; }

.search__hint {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: max-content;
  max-width: min(320px, 84vw);
  margin: 0;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--archive);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  letter-spacing: .04em;
  z-index: 8;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s var(--ease);
}

.search[data-state="hit"] .search__hint,
.search[data-state="miss"] .search__hint {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search[data-state="hit"] .search__hint {
  border-color: rgba(56, 224, 208, .5);
  color: var(--cyan);
}

.search[data-state="miss"] .search__hint {
  border-color: rgba(244, 201, 93, .5);
  color: var(--warn);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

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

.btn--signal {
  background: var(--orange);
  color: var(--ink);
}

.btn--signal:hover {
  background: var(--amber);
  color: var(--ink);
}

.btn--line {
  border-color: var(--line);
  color: var(--paper);
  background: transparent;
}

.btn--line:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--ghost {
  background: rgba(21, 50, 77, .85);
  border-color: var(--line);
  color: var(--paper);
}

.btn--ghost:hover {
  background: var(--console);
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--sm {
  padding: 9px 15px;
  font-size: 13.5px;
}

/* ===== 徽章 / 标签 / 状态灯 ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(21, 50, 77, .62);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.6;
}

.badge--version {
  color: var(--amber);
  border-color: rgba(255, 176, 121, .5);
}

.badge--ok {
  color: var(--ok);
  border-color: rgba(84, 214, 138, .45);
}

.badge--warn {
  color: var(--warn);
  border-color: rgba(244, 201, 93, .45);
}

.badge--new {
  color: var(--cyan);
  border-color: rgba(56, 224, 208, .45);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(21, 50, 77, .9);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.6;
}

.tag--new {
  color: var(--cyan);
  border-color: rgba(56, 224, 208, .45);
}

.tag--warn {
  color: var(--warn);
  border-color: rgba(244, 201, 93, .45);
}

.led {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(84, 214, 138, .16);
}

.led--warn {
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(244, 201, 93, .16);
}

.led--signal {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 42, .18);
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background: var(--archive);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  width: 110px;
  height: 3px;
  background: var(--orange);
}

.footer-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 62px) var(--gutter) 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .66fr) minmax(0, .66fr) minmax(0, 1.15fr);
  gap: clamp(22px, 3.4vw, 44px);
}

.footer-brand__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-brand__mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}

.footer-brand__name {
  font-family: var(--font-title);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .01em;
}

.footer-brand__summary {
  margin: 14px 0 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-col__title::before {
  content: "";
  width: 14px;
  height: 2px;
  background: rgba(255, 106, 42, .8);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--paper);
  text-decoration: none;
  transition: color .18s var(--ease), transform .18s var(--ease);
}

.footer-link:hover {
  color: var(--cyan);
  transform: translateX(2px);
}

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

.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 13px;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--mist);
}

.footer-contact__value {
  font-size: 14.5px;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-note {
  margin: 16px 0 0;
  padding-left: 11px;
  border-left: 2px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mist);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal a {
  font-size: 13px;
  color: var(--mist);
  text-decoration: none;
}

.footer-legal a:hover { color: var(--cyan); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--mist);
}

.footer-meta__icp { color: var(--paper); }

.footer-meta__sep { color: var(--line); }

/* ===== 布局与通用内容组件 ===== */
.page-shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.panel {
  background: var(--archive);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 26px);
}

.panel--console {
  background: var(--console);
  border-color: rgba(56, 224, 208, .16);
}

.card {
  position: relative;
  display: block;
  padding: 18px 20px;
  background: var(--archive);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 224, 208, .5);
  background: var(--console);
  color: var(--paper);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--mist);
}

.crumbs a {
  color: var(--mist);
  text-decoration: none;
}

.crumbs a:hover { color: var(--cyan); }

.crumbs__sep { color: var(--line); }

.crumbs [aria-current="page"] { color: var(--paper); }

.section-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: clamp(32px, 6vw, 64px) 0;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-strip__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--orange);
}

.section-strip__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -.01em;
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(to right, rgba(43, 69, 92, .3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 69, 92, .3) 1px, transparent 1px),
    var(--console);
  background-size: 28px 28px, 28px 28px, auto;
}

.media-frame > img,
.media-frame > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 24, 39, .84);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
}

/* ===== 脚本注入元素 ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 120;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  pointer-events: none;
  transition: width .08s linear;
}

.back-top {
  position: fixed;
  right: calc(var(--gutter) - 6px);
  bottom: 24px;
  z-index: 80;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--archive);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 15px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), border-color .18s var(--ease), color .18s var(--ease), visibility .22s var(--ease);
}

.back-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* 检索定位高亮 */
[data-search-key],
main [id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.is-flash {
  animation: flashTarget 1.8s var(--ease) 1;
}

@keyframes flashTarget {
  0% {
    box-shadow: 0 0 0 2px var(--cyan), 0 0 0 12px rgba(56, 224, 208, .14);
  }
  100% {
    box-shadow: 0 0 0 2px rgba(56, 224, 208, 0), 0 0 0 12px rgba(56, 224, 208, 0);
  }
}

/* ===== 响应式 ===== */
@media (max-width: 1080px) {
  .site-nav {
    gap: 10px;
  }

  .search {
    flex: 0 1 176px;
    min-width: 132px;
  }

  .nav-link {
    padding: 9px 8px;
    font-size: 14px;
  }
}

@media (max-width: 980px) {
  :root { --header-h: 78px; }

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

  .site-nav {
    display: none;
    flex: 1 1 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    margin: 0;
    padding: 16px 4px 8px;
    border-top: 1px solid var(--line);
    max-height: calc(100vh - 130px);
    overflow-y: auto;
  }

  .site-header[data-open] .site-nav,
  .site-nav[data-open] {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    padding: 12px 14px;
    font-size: 15.5px;
    border-radius: 12px;
  }

  .nav-link::after {
    left: 14px;
    bottom: 8px;
    transform: none;
  }

  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after {
    width: 16px;
  }

  .search {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding-left: 14px;
  }

  .search__input { font-size: 14px; }

  .search__hint {
    left: 0;
    right: auto;
    max-width: min(320px, 90vw);
  }

  .header-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-actions .btn {
    flex: 1 1 auto;
  }

  .header-actions .btn--sm {
    padding: 12px 18px;
    font-size: 14.5px;
  }

  .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 26px;
  }

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

  .footer-bottom {
    grid-column: 1 / -1;
  }

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

@media (max-width: 620px) {
  .header-shell {
    border-radius: 22px;
    padding: 10px 10px 10px 12px;
    gap: 8px 10px;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .brand__name { font-size: 17px; }

  .brand__sub { display: none; }

  .footer-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-legal { gap: 8px 14px; }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .footer-meta__sep { display: none; }

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

  .back-top {
    right: calc(var(--gutter) - 12px);
    bottom: 16px;
  }

  .section-strip {
    gap: 10px;
  }
}

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

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

  .is-flash {
    animation: none;
    outline: 2px solid var(--cyan);
    outline-offset: 6px;
  }

  .card:hover,
  .btn:hover,
  .footer-link:hover {
    transform: none;
  }
}
