/* ============================================================
   365中国站 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; }
img, svg, picture, video { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B1830;
  --ink-deep: #1E3363;
  --paper: #F7F2E8;
  --text: #1A1F2B;
  --red: #C0272D;
  --red-dark: #A81F25;
  --gold: #E7B01E;
  --jade: #0E6B62;
  --violet: #513486;
  --mist: #D8D2C6;
  --leaf: #8FA3D4;

  --sans: "Alibaba PuHuiTi 3", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", sans-serif;
  --mono: "Sarasa Mono SC", "JetBrains Mono", ui-monospace, monospace;

  --shell: 1240px;
  --pad: 24px;
  --nav-h: 88px;
  --shadow-1: 0 1px 2px rgba(11, 24, 48, .06);
  --shadow-2: 0 8px 24px rgba(11, 24, 48, .08);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --flag: linear-gradient(90deg, #C0272D 0 22%, #E7B01E 22% 44%, #0E6B62 44% 62%, #513486 62% 80%, #8FA3D4 80% 100%);
}

/* ---------- 3. 中文排版 ---------- */
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
  background: var(--paper);
  padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.bleed-hero { padding-top: 0; }

h1, h2, h3, h4 { font-weight: 900; line-height: 1.18; letter-spacing: -.012em; }

.idx-title-xl { font-size: clamp(36px, 6vw, 68px); line-height: 1.05; letter-spacing: -.025em; font-weight: 900; }
.idx-title { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.22; font-weight: 900; }
.idx-subtitle { font-size: clamp(19px, 2vw, 22px); line-height: 1.45; font-weight: 800; }
.idx-lead { font-size: 18px; line-height: 1.85; }
.idx-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; }
.idx-mono { font-family: var(--mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.idx-note { font-size: 14px; line-height: 1.8; color: rgba(26, 31, 43, .62); }
.idx-prose { max-width: 38em; font-size: 17px; line-height: 1.92; }
.idx-prose p + p { margin-top: 18px; }
.idx-prose h2 { margin-top: clamp(36px, 5vw, 56px); }
.idx-prose h3 { margin-top: 28px; font-size: 21px; }
.idx-prose ul { margin-top: 18px; display: grid; gap: 10px; }
.idx-prose li { padding-left: 20px; position: relative; }
.idx-prose li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 2px; background: var(--red); }
.idx-rule { height: 1px; border: 0; background: var(--mist); margin: clamp(28px, 4vw, 48px) 0; }

/* ---------- 4. 容器与网格 ---------- */
.idx-shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.idx-shell--narrow { max-width: 880px; }
.idx-grid { display: grid; gap: var(--gap, var(--pad)); }
.idx-grid--split { --gap: clamp(28px, 4vw, 64px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); }
.idx-grid--halves { --gap: clamp(24px, 3vw, 40px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.idx-grid--three { --gap: clamp(20px, 2.4vw, 32px); grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 5. 色带分区 ---------- */
.idx-band { position: relative; padding-block: clamp(48px, 7vw, 96px); background: var(--paper); }
.idx-band--ink { background: var(--ink); color: var(--paper); }
.idx-band--deep { background: var(--ink-deep); color: var(--paper); }
.idx-band--violet { background: var(--violet); color: var(--paper); }
.idx-band--jade { background: var(--jade); color: var(--paper); }
.idx-band--ink .idx-note, .idx-band--deep .idx-note, .idx-band--violet .idx-note, .idx-band--jade .idx-note { color: var(--leaf); }
.idx-band--flag { padding-top: calc(clamp(48px, 7vw, 96px) + 6px); }
.idx-band--flag::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--flag); }

/* ---------- 6. 内页标题区 ---------- */
.idx-pagehead {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: calc(var(--nav-h) + clamp(44px, 7vw, 88px)) 0 clamp(40px, 6vw, 72px);
}
.idx-pagehead__grid {
  display: grid;
  gap: clamp(18px, 3vw, 40px);
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr);
  align-items: end;
}
.idx-pagehead__no { font-family: var(--mono); font-size: 13px; letter-spacing: .2em; color: var(--gold); }
.idx-pagehead__note { font-size: 15px; line-height: 1.85; color: var(--leaf); border-left: 2px solid rgba(143, 163, 212, .5); padding-left: 16px; }

/* ---------- 7. 头部 ---------- */
.idx-skip {
  position: fixed; top: -72px; left: 16px; z-index: 90;
  padding: 10px 18px; border-radius: 4px;
  background: var(--gold); color: var(--ink);
  font-size: 15px; font-weight: 800;
  transition: top .18s ease-out;
}
.idx-skip:focus { top: 12px; }

.idx-header {
  --nav-h: 88px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  background: transparent;
  color: #fff;
  transition: height .22s ease-out, background-color .22s ease-out, box-shadow .22s ease-out;
}
.idx-header[data-scrolled] {
  --nav-h: 64px;
  background: var(--ink);
  box-shadow: 0 1px 0 rgba(143, 163, 212, .22);
}
.idx-header__inner {
  height: 100%; width: 100%; max-width: var(--shell);
  margin-inline: auto; padding-inline: var(--pad);
  display: flex; align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
}
.idx-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--flag);
  transform: scaleX(0); transform-origin: 0 50%;
  opacity: 0; transition: opacity .22s ease-out;
}
.idx-header[data-scrolled] .idx-progress { opacity: 1; }

.idx-brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.idx-brand__mark { display: flex; flex-direction: column; gap: 3px; width: 22px; flex: 0 0 auto; }
.idx-brand__mark i { display: block; height: 3px; }
.idx-brand__mark i:nth-child(1) { width: 100%; background: var(--red); }
.idx-brand__mark i:nth-child(2) { width: 76%; background: var(--gold); }
.idx-brand__mark i:nth-child(3) { width: 52%; background: var(--jade); }
.idx-brand__text { display: block; }
.idx-brand__name { display: block; font-size: 18px; font-weight: 900; line-height: 1.15; letter-spacing: .01em; }
.idx-brand__sub { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; line-height: 1.5; color: var(--leaf); }

.idx-header__actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }

/* ---------- 8. 导航 ---------- */
.idx-nav { display: flex; align-items: center; margin-inline: auto; }
.idx-nav__list { display: flex; align-items: center; gap: clamp(10px, 1.8vw, 26px); }
.idx-nav__list a {
  position: relative; display: inline-block;
  padding: 8px 2px;
  font-size: 15px; font-weight: 700; line-height: 1.4;
  color: rgba(255, 255, 255, .82);
}
.idx-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px;
  height: 2px; background: var(--gold);
  transition: right .2s var(--ease);
}
.idx-nav__list a:hover, .idx-nav__list a:focus-visible { color: #fff; }
.idx-nav__list a:hover::after, .idx-nav__list a:focus-visible::after { right: 0; }
.idx-nav__list a[aria-current="page"] { color: #fff; }
.idx-nav__list a[aria-current="page"]::after { right: 0; background: var(--red); }
.idx-nav__foot { display: none; }
.idx-nav__note { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--leaf); }

.idx-burger {
  display: none; align-items: center; gap: 9px;
  padding: 9px 13px; border: 1px solid rgba(247, 242, 232, .35); border-radius: 4px;
  color: #fff; font-size: 13px; font-weight: 800; cursor: pointer;
  flex: 0 0 auto;
  transition: border-color .18s ease, background-color .18s ease;
}
.idx-burger:hover { border-color: var(--gold); }
.idx-burger__bars { position: relative; display: block; width: 16px; height: 10px; }
.idx-burger__bars::before, .idx-burger__bars::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: currentColor;
  transition: top .2s ease-out, transform .2s ease-out;
}
.idx-burger__bars::before { top: 0; }
.idx-burger__bars::after { top: 8px; }
.idx-header[data-open] .idx-burger__bars::before { top: 4px; transform: rotate(45deg); }
.idx-header[data-open] .idx-burger__bars::after { top: 4px; transform: rotate(-45deg); }

/* ---------- 9. 按钮 ---------- */
.idx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent; border-radius: 4px;
  font-size: 15px; font-weight: 800; line-height: 1.2; letter-spacing: .01em;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s var(--ease);
}
.idx-btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-1); }
.idx-btn--primary:hover { background: var(--red-dark); }
.idx-btn--outline { border-color: rgba(247, 242, 232, .5); color: var(--paper); }
.idx-btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.idx-btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--mist); }
.idx-btn--ghost:hover { border-color: var(--ink); }
.idx-btn--small { padding: 9px 16px; font-size: 14px; }

.idx-copy {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  padding: 4px 11px; border: 1px solid rgba(143, 163, 212, .55); border-radius: 999px;
  color: var(--leaf); cursor: pointer; white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.idx-copy:hover { color: #fff; border-color: var(--paper); }
.idx-copy[data-copied="true"] { background: var(--jade); border-color: var(--jade); color: #fff; }

.idx-totop {
  position: fixed; right: 20px; bottom: 24px; z-index: 50;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(143, 163, 212, .45); border-radius: 50%;
  background: var(--ink); color: var(--paper); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease-out, transform .2s ease-out, visibility .2s;
}
.idx-totop[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.idx-totop:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- 10. 页脚 ---------- */
.idx-footer { background: var(--ink); color: var(--paper); }
.idx-footer__band { display: grid; grid-template-columns: repeat(6, 1fr); height: 8px; }
.idx-footer__band span:nth-child(1) { background: var(--red); }
.idx-footer__band span:nth-child(2) { background: var(--gold); }
.idx-footer__band span:nth-child(3) { background: var(--jade); }
.idx-footer__band span:nth-child(4) { background: var(--violet); }
.idx-footer__band span:nth-child(5) { background: var(--leaf); }
.idx-footer__band span:nth-child(6) { background: var(--ink-deep); }

.idx-footer__inner {
  max-width: var(--shell); margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--pad) clamp(32px, 4vw, 56px);
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr) minmax(250px, 1.1fr);
}
.idx-footer__logo { font-size: 22px; font-weight: 900; letter-spacing: .02em; }
.idx-footer__sub { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--leaf); margin-top: 6px; }
.idx-footer__tag { font-size: 15px; line-height: 1.8; color: rgba(247, 242, 232, .74); margin-top: 14px; }
.idx-footer__brand .idx-btn { margin-top: 22px; }

.idx-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.idx-footer__col-title { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--gold); }
.idx-footer__links { margin-top: 14px; display: grid; gap: 10px; }
.idx-footer__links a {
  justify-self: start; font-size: 15px; line-height: 1.6;
  color: rgba(247, 242, 232, .82);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .18s ease, border-color .18s ease;
}
.idx-footer__links a:hover { color: #fff; border-color: var(--gold); }

.idx-contact-list { margin-top: 14px; display: grid; }
.idx-contact-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(143, 163, 212, .22);
}
.idx-contact-label { font-size: 13px; color: var(--leaf); }
.idx-contact-value { font-size: 14px; overflow-wrap: anywhere; }
.idx-footer__note { margin-top: 12px; font-size: 13px; line-height: 1.8; color: rgba(247, 242, 232, .58); }

.idx-footer__legal {
  max-width: var(--shell); margin-inline: auto;
  padding: 20px var(--pad) 34px;
  border-top: 1px solid rgba(143, 163, 212, .22);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: rgba(247, 242, 232, .6);
}
.idx-footer__legal-links { display: flex; flex-wrap: wrap; gap: 16px; margin-left: auto; }
.idx-footer__legal-links a { border-bottom: 1px solid transparent; padding-bottom: 1px; }
.idx-footer__legal-links a:hover { color: #fff; border-color: var(--gold); }

/* ---------- 11. 通用组件 ---------- */
.idx-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  color: rgba(26, 31, 43, .58);
}
.idx-breadcrumb__item a { border-bottom: 1px solid transparent; }
.idx-breadcrumb__item a:hover { border-color: var(--ink); color: var(--ink); }
.idx-breadcrumb__sep { color: var(--leaf); }

.idx-anchor { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.idx-anchor__title { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--jade); }
.idx-anchor__list { margin-top: 14px; display: grid; gap: 2px; }
.idx-anchor__link {
  display: block; padding: 9px 12px;
  border-left: 2px solid var(--mist);
  font-size: 14px; line-height: 1.6; color: rgba(26, 31, 43, .7);
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.idx-anchor__link:hover { color: var(--ink); border-color: var(--ink); }
.idx-anchor__link[aria-current="true"] { color: var(--ink); font-weight: 800; border-color: var(--red); background: rgba(192, 39, 45, .06); }

.idx-seg {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  background: rgba(216, 210, 198, .5); border-radius: 6px;
}
.idx-seg__item {
  appearance: none; cursor: pointer;
  padding: 9px 16px; border-radius: 4px;
  font-size: 14px; font-weight: 800; line-height: 1.3;
  color: rgba(26, 31, 43, .66);
  transition: background-color .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease);
}
.idx-seg__item:hover { color: var(--ink); }
.idx-seg__item[aria-selected="true"] {
  background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-1), inset 0 -2px 0 var(--red);
}
.idx-seg--on-ink { background: rgba(247, 242, 232, .14); }
.idx-seg--on-ink .idx-seg__item { color: rgba(247, 242, 232, .74); }
.idx-seg--on-ink .idx-seg__item[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.idx-panel { padding-top: clamp(20px, 3vw, 32px); }
.idx-panel[hidden] { display: none; }
.idx-panel[data-enter] { animation: idx-fade .16s var(--ease) both; }
@keyframes idx-fade { from { opacity: 0; } to { opacity: 1; } }

.idx-timeline { position: relative; margin-left: 6px; border-left: 1px solid var(--mist); }
.idx-timeline__item { position: relative; display: block; padding: 16px 0 16px 26px; }
.idx-timeline__item::before {
  content: ""; position: absolute; left: -5px; top: 26px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--jade); box-shadow: 0 0 0 3px var(--paper);
}
.idx-timeline__item[data-tone="red"]::before { background: var(--red); }
.idx-timeline__item[data-tone="gold"]::before { background: var(--gold); }
.idx-timeline__item[data-tone="violet"]::before { background: var(--violet); }
.idx-timeline__title { font-size: 17px; font-weight: 800; }
.idx-timeline__meta { margin-top: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: rgba(26, 31, 43, .6); }

.idx-slab {
  position: relative; display: block;
  padding: 22px 22px 24px;
  background: var(--paper); border: 1px solid var(--mist); border-radius: 6px;
  box-shadow: var(--shadow-1);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s ease;
}
.idx-slab:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--leaf); }
.idx-slab__no { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--red); }
.idx-slab__title { margin-top: 8px; font-size: 20px; font-weight: 900; line-height: 1.3; }
.idx-slab__meta { margin-top: 8px; font-size: 14px; line-height: 1.75; color: rgba(26, 31, 43, .7); }

.idx-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 3px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  background: rgba(11, 24, 48, .07); color: var(--ink);
}
.idx-tag--red { background: rgba(192, 39, 45, .12); color: var(--red); }
.idx-tag--gold { background: rgba(231, 176, 30, .2); color: #8A6410; }
.idx-tag--jade { background: rgba(14, 107, 98, .13); color: var(--jade); }
.idx-tag--violet { background: rgba(81, 52, 134, .13); color: var(--violet); }

.idx-figure { margin: 0; border-radius: 6px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-1); }
.idx-figure__media {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(142deg, var(--ink) 0%, var(--ink-deep) 58%, var(--violet) 100%);
}
.idx-figure__media img, .idx-figure__media picture > img, .idx-figure__media svg {
  width: 100%; height: 100%; object-fit: cover;
}
.idx-figure__cap {
  padding: 12px 16px; background: var(--ink); color: var(--leaf);
  font-family: var(--mono); font-size: 12px; line-height: 1.6; letter-spacing: .06em;
}
.idx-figure--wide .idx-figure__media { aspect-ratio: 21 / 9; }
.idx-figure--tall .idx-figure__media { aspect-ratio: 4 / 5; }

.idx-reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s ease-out, transform .5s ease-out; }
.idx-reveal[data-shown="true"] { opacity: 1; transform: none; }

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

/* ---------- 12. 焦点可见性 ---------- */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px;
}
.idx-header :focus-visible,
.idx-footer :focus-visible,
.idx-pagehead :focus-visible,
.idx-band--ink :focus-visible,
.idx-band--deep :focus-visible,
.idx-band--violet :focus-visible,
.idx-band--jade :focus-visible { outline-color: var(--paper); }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1180px) {
  .idx-nav__list { gap: 14px; }
  .idx-nav__list a { font-size: 14px; }
}

@media (max-width: 980px) {
  .idx-grid--split,
  .idx-grid--halves,
  .idx-grid--three { grid-template-columns: minmax(0, 1fr); }

  .idx-pagehead__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .idx-pagehead__note { border-left: 0; border-top: 2px solid rgba(143, 163, 212, .5); padding: 14px 0 0; }

  .idx-header__actions { display: none; }
  .idx-burger { display: inline-flex; }

  .idx-nav {
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-h);
    display: block; margin: 0; z-index: 55;
    padding: 30px var(--pad) 48px;
    background: var(--ink-deep);
    overflow-y: auto;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease-out, transform .2s ease-out, visibility .2s;
  }
  .idx-nav[data-open="true"],
  .idx-header[data-open] .idx-nav { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }

  .idx-nav__list { display: block; }
  .idx-nav__list li + li { border-top: 1px solid rgba(143, 163, 212, .22); }
  .idx-nav__list a {
    display: block; padding: 18px 0;
    font-size: 20px; font-weight: 800; color: #fff;
  }
  .idx-nav__list a::after { display: none; }
  .idx-nav__list a[aria-current="page"] { color: var(--gold); }
  .idx-nav__foot {
    display: grid; gap: 16px; margin-top: 28px; padding-top: 24px;
    border-top: 1px solid rgba(143, 163, 212, .24);
  }
  .idx-nav__foot .idx-btn { width: 100%; }

  .idx-anchor { position: static; margin-bottom: 28px; }
  .idx-anchor__list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
  .idx-anchor__link {
    border: 1px solid var(--mist); border-radius: 999px;
    padding: 7px 15px; white-space: nowrap;
  }
  .idx-anchor__link[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

  .idx-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idx-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --pad: 18px; --nav-h: 72px; }
  body { font-size: 16px; line-height: 1.88; }
  .idx-header { --nav-h: 72px; }
  .idx-header[data-scrolled] { --nav-h: 58px; }
  .idx-brand__name { font-size: 16px; }
  .idx-brand__sub { display: none; }
  .idx-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .idx-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idx-footer__legal { flex-direction: column; align-items: flex-start; }
  .idx-footer__legal-links { margin-left: 0; }
  .idx-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .idx-totop { right: 14px; bottom: 16px; }
}

/* ---------- 14. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .idx-reveal { opacity: 1; transform: none; }
  .idx-slab:hover { transform: none; }
  .idx-nav { transform: none; }
}
