/* =========================================================
   问鼎电子版 · site.css
   深墨蓝底 / 电光青 + 暖金双强调 / 扫描线信号语言
   ========================================================= */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ---------- tokens ---------- */
:root {
  --bg: #0A1120;
  --panel: #121C2E;
  --panel-soft: rgba(18, 28, 46, .72);
  --line: #22304A;
  --text: #E9EFF7;
  --muted: #9DAEC6;

  --cyan: #2FE0C8;
  --gold: #F2B350;
  --violet: #8B7BE8;
  --indigo: #5B8DEF;
  --moss: #7FBF6A;
  --coral: #E0776B;

  --accent: var(--cyan);
  --accent-2: var(--gold);

  --shell: 1200px;
  --gutter: clamp(18px, 4vw, 32px);
  --gap: 24px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

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

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 门类色相开关：靠 --accent 一次性切换整块边界色 */
[data-accent="cyan"]   { --accent: var(--cyan); }
[data-accent="gold"]   { --accent: var(--gold); }
[data-accent="violet"] { --accent: var(--violet); }
[data-accent="indigo"] { --accent: var(--indigo); }
[data-accent="moss"]   { --accent: var(--moss); }
[data-accent="coral"]  { --accent: var(--coral); }
[data-cat="c1"] { --accent: var(--indigo); }
[data-cat="c2"] { --accent: var(--indigo); }
[data-cat="c3"] { --accent: var(--moss); }
[data-cat="c4"] { --accent: var(--moss); }
[data-cat="c5"] { --accent: var(--coral); }
[data-cat="c6"] { --accent: var(--coral); }

/* ---------- 全局排版 ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.02vw, 17px);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 全站扫描线纹理 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(233, 239, 247, .034) 0 1px,
    transparent 1px 4px
  );
}

.site-header,
.site-footer,
#main-content,
.scroll-progress,
.to-top { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .02em;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 5.6vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 42px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; }
h4 { font-size: 18px; font-weight: 800; }
p { text-wrap: pretty; }
strong { font-weight: 700; color: #fff; }

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

/* ---------- 工具类 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: .02em;
}

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 12px;
}

.num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.num--accent { color: var(--accent); }
.num--gold { color: var(--gold); }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease);
}
.btn--accent {
  background: var(--cyan);
  color: #04211d;
  box-shadow: 0 14px 30px -18px rgba(47, 224, 200, .95);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -18px rgba(47, 224, 200, .9); }
.btn--gold {
  background: var(--gold);
  color: #2A1A02;
  box-shadow: 0 14px 30px -18px rgba(242, 179, 80, .95);
}
.btn--gold:hover { transform: translateY(-2px); }
.btn--ghost {
  background: rgba(18, 28, 46, .6);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04211d;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}

/* 提示条 */
.ticker {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  max-height: 48px;
  transition: max-height .24s var(--ease), opacity .2s linear;
}
.ticker__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 47px;
  font-size: 13px;
  color: var(--muted);
}
.ticker__note {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker__mark {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(224, 119, 107, .14);
}
.ticker__meta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}
.ticker__sep { width: 1px; height: 12px; background: var(--line); }
.ticker__icp { color: var(--muted); }

/* 品牌层 */
.masthead {
  background: linear-gradient(180deg, #0E172A 0%, #0A1120 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  max-height: 100px;
  transition: max-height .24s var(--ease), opacity .2s linear;
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__glyph {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 900;
  color: #04211d;
  background: linear-gradient(140deg, #2FE0C8 0%, #7BF0DE 52%, #F2B350 100%);
  box-shadow: 0 10px 26px -14px rgba(47, 224, 200, .9);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .08em;
}
.brand__domain { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.masthead__meta { font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.masthead__meta .mono { color: var(--cyan); font-size: 15px; }

/* 栏目层 */
.mainnav {
  background: rgba(10, 17, 32, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .24s var(--ease), background-color .24s var(--ease);
}
.site-header[data-scrolled="true"] .ticker,
.site-header[data-scrolled="true"] .masthead {
  max-height: 0;
  opacity: 0;
}
.site-header[data-scrolled="true"] .mainnav {
  background: rgba(10, 17, 32, .96);
  box-shadow: 0 20px 44px -34px rgba(0, 0, 0, .95);
}
.mainnav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.nav-list {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.nav-list__item { flex: 0 0 auto; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  flex: 0 0 auto;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04211d;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -16px rgba(47, 224, 200, .95);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
}
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 110px);
  padding-top: clamp(34px, 5vw, 60px);
  padding-bottom: 28px;
  background: linear-gradient(180deg, rgba(18, 28, 46, .55) 0%, rgba(10, 17, 32, .98) 100%);
  border-top: 1px solid var(--line);
}
.footer-signal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 40%, var(--gold) 76%, transparent 100%);
  opacity: .7;
}
.footer-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(24px, 3vw, 38px);
}
.footer-brand {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .1em;
}
.footer-tag { font-size: 12px; letter-spacing: .12em; color: var(--muted); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
  padding-bottom: clamp(28px, 4vw, 46px);
}
.footer-col { min-width: 0; }
.footer-col__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--text);
}
.footer-col__title::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px -2px var(--accent);
}
.footer-col__title .mono { font-size: 12px; color: var(--accent); letter-spacing: .08em; }

.footer-list { display: flex; flex-direction: column; gap: 9px; }
.footer-link {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
  transition: color .16s var(--ease), transform .16s var(--ease);
}
.footer-link:hover { color: var(--accent); transform: translateX(2px); }
.footer-link__code {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .04em;
  opacity: .85;
}

.footer-note {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--text);
  word-break: break-all;
}
.footer-contact__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--accent-2);
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.footer-legal__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-legal__sep { width: 1px; height: 12px; background: var(--line); }
.footer-legal__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal__links a { transition: color .16s var(--ease); }
.footer-legal__links a:hover { color: var(--accent); }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb__item { display: inline-flex; align-items: center; }
.breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--line);
}
.breadcrumb__item a { transition: color .16s var(--ease); }
.breadcrumb__item a:hover { color: var(--accent); }
.breadcrumb__item[aria-current="page"] { color: var(--text); }

/* ---------- 区块 ---------- */
.section { padding-block: clamp(38px, 6vw, 80px); }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(20px, 3vw, 34px);
}
.section__title { font-size: clamp(24px, 3vw, 38px); }

/* ---------- 12 栏非对称网格 ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.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-12 { grid-column: span 12; }

/* ---------- 正文容器 ---------- */
.prose {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(22px, 2.4vw, 30px); }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { display: flex; flex-direction: column; gap: .5em; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose code {
  font-family: var(--font-mono);
  font-size: .92em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--gold);
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  transition: border-color .22s var(--ease), transform .22s var(--ease),
              background-color .22s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .65;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card--flat { background: rgba(18, 28, 46, .5); }
.card--flat:hover { transform: none; }

/* 卡片顶沿扫描光 */
.scanline {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .14;
  pointer-events: none;
  animation: scan 6s linear infinite;
}
@keyframes scan {
  from { transform: translateX(0); }
  to   { transform: translateX(350%); }
}

/* ---------- 徽标 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 28, 46, .7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--muted);
}
.badge--accent { color: var(--accent); border-color: currentColor; }
.badge--gold { color: var(--gold); border-color: currentColor; }

/* ---------- 响应式图像容器（页面阶段放图） ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.media > img,
.media > svg,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(233, 239, 247, .05) 0 1px,
    transparent 1px 5px
  );
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--3x2  { aspect-ratio: 3 / 2; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--texture {
  background-image:
    radial-gradient(120% 90% at 18% 8%, rgba(47, 224, 200, .18), transparent 62%),
    radial-gradient(110% 85% at 86% 84%, rgba(139, 123, 232, .2), transparent 64%),
    linear-gradient(140deg, #121C2E 0%, #0A1120 100%);
}
.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 16px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted);
  background: linear-gradient(0deg, rgba(10, 17, 32, .94), transparent);
}

/* ---------- 滚动进度与返回顶部 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  pointer-events: none;
  transition: width .1s linear;
}
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 28, 46, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .22s var(--ease), transform .22s var(--ease),
              border-color .22s var(--ease), color .22s var(--ease);
}
.to-top[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.to-top:hover { border-color: var(--accent); color: var(--accent); }
.to-top__arrow { font-family: var(--font-mono); font-size: 14px; line-height: 1; }

/* ---------- 视口显现 ---------- */
html[data-js="ready"] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
html[data-js="ready"] [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 平板 ---------- */
@media (max-width: 1024px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-7, .col-8, .col-6 { grid-column: span 6; }
  .col-5, .col-4 { grid-column: span 3; }

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

/* ---------- 手机 ---------- */
@media (max-width: 860px) {
  .ticker { max-height: 56px; }
  .ticker__inner { min-height: 52px; gap: 12px; }
  .masthead__inner { padding-block: 14px; }
  .brand__glyph { width: 38px; height: 38px; border-radius: 11px; font-size: 18px; }
  .brand__name { font-size: 18px; }
  .brand__domain { font-size: 11px; }
  .masthead__meta { display: none; }

  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .mainnav__inner {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 58px;
    padding-block: 9px;
  }
  .nav-list {
    flex: 1 1 auto;
    gap: 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-link { white-space: nowrap; padding: 8px 12px; font-size: 14px; }
  .nav-link::after { left: 12px; right: 12px; bottom: 2px; }

  /* 展开态：栏目层变为两列面板 */
  .mainnav[data-open="true"] .nav-list {
    order: 3;
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }
  .mainnav[data-open="true"] .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    color: var(--text);
  }
  .mainnav[data-open="true"] .nav-link::after { display: none; }
  .mainnav[data-open="true"] .nav-link[aria-current="page"] {
    border-color: var(--accent);
    color: var(--accent);
  }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 640px) {
  .ticker__icp { display: none; }
  .ticker__sep { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .prose { font-size: 15.5px; }
}

@media (max-width: 720px) {
  .grid--12 { grid-template-columns: minmax(0, 1fr); }
  .grid--12 > * { grid-column: 1 / -1; }
}

/* ---------- 降低动态效果 ---------- */
@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[data-js="ready"] [data-reveal] { opacity: 1; transform: none; }
  .scanline { display: none; }
  .to-top { transform: none; }
}
