/* ============================================================
   易发棋牌指南 · 共享样式表 /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, p,
ul, ol, li, figure, blockquote, dl, dt, dd {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

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

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0A0C11;
  --panel: #141922;
  --line: #262D3A;
  --white: #F5F7FA;
  --red: #E23127;
  --blue: #2050E0;
  --cyan: #2E8F8A;
  --gold: #C9A227;
  --amber: #F08A24;
  --muted: #98A2B3;
  --red-ink: #B3231A;
  --blue-ink: #1739A8;

  --font-display: "Oswald", "Archivo Narrow", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;

  --shell: 1440px;
  --gutter: clamp(16px, 3vw, 44px);
  --gap: clamp(14px, 1.8vw, 26px);
  --bar-h: 68px;
  --ease: cubic-bezier(.22, .8, .28, 1);
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { line-height: 1.25; }

p + p { margin-top: .9em; }

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

/* 框景：fixed 外圈刻度边框 + 四角四色刻度 */
body::after {
  content: "";
  position: fixed;
  inset: 8px;
  border: 2px solid rgba(38, 45, 58, .95);
  pointer-events: none;
  z-index: 90;
}

body::before {
  content: "";
  position: fixed;
  inset: 8px;
  pointer-events: none;
  z-index: 91;
  background-image:
    linear-gradient(var(--red), var(--red)),
    linear-gradient(var(--blue), var(--blue)),
    linear-gradient(var(--cyan), var(--cyan)),
    linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 28px 3px, 28px 3px, 28px 3px, 28px 3px;
  background-position: left top, right top, left bottom, right bottom;
}

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

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

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

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-stretch: condensed;
  font-size: clamp(44px, 8vw, 128px);
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--white);
}

.section-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-stretch: condensed;
  font-size: clamp(56px, 9vw, 120px);
  line-height: .82;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.label::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
  flex: 0 0 auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  max-width: 62ch;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.7;
  color: rgba(245, 247, 250, .85);
}

.rule {
  height: 2px;
  border: 0;
  background: var(--line);
  margin-block: clamp(24px, 3.5vw, 48px);
}

.rule--split {
  background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%);
}

.stack { display: grid; gap: var(--gap); align-content: start; }

.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  transition: top .2s var(--ease);
}

.skip-link:focus { top: 14px; }

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

.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.editorial {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: var(--gap);
}

.editorial__rail { grid-column: 1 / span 3; }
.editorial__main { grid-column: 4 / span 12; }

/* ---------- 6. 正文与明区分屏 ---------- */
.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.78;
  color: rgba(245, 247, 250, .86);
}

.prose h2, .prose h3 { margin-top: 1.5em; margin-bottom: .5em; }
.prose p + p { margin-top: 1.05em; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.25em; list-style: disc; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--gold); border-bottom: 1px solid currentColor; }
.prose strong { color: var(--white); }

.on-light {
  background: var(--white);
  color: #111721;
}

.on-light .prose { color: #2a3140; }
.on-light .prose strong { color: #0A0C11; }
.on-light h1, .on-light h2, .on-light h3 { color: #0A0C11; }
.on-light .lede { color: #3a4252; }
.on-light .eyebrow,
.on-light .label { color: #5b6577; }
.on-light .rule { background: #cdd4de; }
.on-light .panel {
  background: #eceff4;
  border-color: #cdd4de;
  box-shadow: 8px 8px 0 rgba(10, 12, 17, .12);
}
.on-light .tag {
  background: #fff;
  border-color: #c3cbd8;
  color: #5b6577;
}
.on-light .stat__key { color: #5b6577; }
.on-light .stat__num { color: #0A0C11; }
.on-light .data-table { color: #1b2230; }
.on-light .data-table thead th {
  background: #e8ecf2;
  color: #5b6577;
  border-bottom-color: #c3cbd8;
}
.on-light .data-table td { border-bottom-color: #d9dee7; }
.on-light .section-num { -webkit-text-stroke-color: #cdd4de; }

/* ---------- 7. 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--panel);
  border: 2px solid var(--line);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}

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

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

.btn--blue {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn--blue:hover { background: #1940b8; border-color: #1940b8; }

.btn--accent {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn--accent:hover { background: #d8b02c; border-color: #d8b02c; }

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(245, 247, 250, .03);
  border: 1px solid var(--line);
}

.tag--red { background: var(--red); border-color: var(--red); color: #fff; }
.tag--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.tag--cyan { color: var(--cyan); border-color: var(--cyan); }
.tag--gold { color: var(--gold); border-color: var(--gold); }
.tag--amber { color: var(--amber); border-color: var(--amber); }

/* ---------- 8. 面板 / 卡片 / 统计 ---------- */
.panel {
  background: var(--panel);
  border: 2px solid var(--line);
  padding: clamp(18px, 2.2vw, 26px);
}

.panel--shadow { box-shadow: 8px 8px 0 rgba(0, 0, 0, .5); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 2px solid var(--line);
}

.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__body {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 2vw, 22px);
}

.card--red { border-top: 3px solid var(--red); }
.card--blue { border-top: 3px solid var(--blue); }
.card--gold { border-top: 3px solid var(--gold); }

.stat {
  display: grid;
  gap: 5px;
  padding-left: 14px;
  border-left: 3px solid var(--line);
}

.stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
  color: var(--white);
}

.stat__key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat--red { border-left-color: var(--red); }
.stat--blue { border-left-color: var(--blue); }
.stat--gold { border-left-color: var(--gold); }
.stat--gold .stat__num { color: var(--gold); }

/* ---------- 9. 表格 ---------- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  background: var(--panel);
  border: 2px solid var(--line);
}

.data-table {
  min-width: 640px;
  font-size: 14.5px;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
  background: #171d27;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--line);
}

.data-table td {
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table tbody tr:hover { background: rgba(32, 80, 224, .07); }

.data-table td.is-red { box-shadow: inset 3px 0 0 var(--red); }
.data-table td.is-blue { box-shadow: inset 3px 0 0 var(--blue); }

.data-table--compact { font-size: 13.5px; }
.data-table--compact thead th,
.data-table--compact td { padding: 8px 11px; }

/* ---------- 10. 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 2px solid var(--line);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .5);
  background-color: #0d1017;
  background-image:
    linear-gradient(rgba(38, 45, 58, .75) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 45, 58, .75) 1px, transparent 1px);
  background-size: 34px 34px;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(226, 49, 39, .18), rgba(32, 80, 224, .16) 55%, rgba(46, 143, 138, .14));
  mix-blend-mode: screen;
}

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

.media-frame__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  max-width: 100%;
  padding: 8px 12px;
  background: rgba(10, 12, 17, .88);
  border-top: 2px solid var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- 11. 编号列表 / 面包屑 ---------- */
.list-index {
  display: grid;
  gap: 0;
  counter-reset: idx;
}

.list-index > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.list-index > li::before {
  counter-increment: idx;
  content: counter(idx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; color: var(--line); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- 12. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .38s var(--ease), transform .38s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 13. 命令栏头部 ---------- */
.command-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, #0A0C11 0%, #0C0F15 100%);
  border-bottom: 2px solid var(--line);
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, .95);
}

.command-bar::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%);
}

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: rgba(245, 247, 250, .06);
}

.scroll-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transition: width .12s linear;
}

.command-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 26px);
  min-height: var(--bar-h);
  transition: min-height .28s var(--ease);
}

.command-bar[data-condensed] .command-bar__inner { min-height: 54px; }

.command-bar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%);
  border: 2px solid rgba(245, 247, 250, .18);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.18; }

.brand__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--white);
  white-space: nowrap;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.season-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 2px solid var(--line);
  background: rgba(245, 247, 250, .03);
  transition: border-color .22s var(--ease);
}

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

.season-chip__key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.season-chip__val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

.nav-index { flex: 1 1 auto; min-width: 0; }

.nav-index__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-index__item { display: block; }

.nav-index__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: rgba(245, 247, 250, .7);
  border-bottom: 2px solid transparent;
  transition: color .22s var(--ease), border-color .22s var(--ease), background-color .22s var(--ease);
}

.nav-index__link::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--muted);
  opacity: 0;
  transition: opacity .22s var(--ease);
}

.nav-index__link:hover {
  color: var(--white);
  background: rgba(245, 247, 250, .05);
}

.nav-index__link[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--red);
}

.nav-index__link[aria-current="page"]::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%);
}

.nav-index__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
}

.command-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border: 2px solid var(--red);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .55);
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}

.cta-link:hover {
  background: #c8251c;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .6);
}

.nav-toggle { display: none; }

/* ---------- 14. 页脚 ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--panel);
  color: var(--white);
  border-top: 2px solid var(--line);
}

.site-foot::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0 50%, var(--red) 50% 100%);
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 40px);
}

.foot-col:nth-child(1) { grid-column: span 3; }
.foot-col:nth-child(2) { grid-column: span 3; }
.foot-col:nth-child(3) { grid-column: span 4; }
.foot-col:nth-child(4) { grid-column: span 2; }

.foot-col__title {
  padding-bottom: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
}

.season-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
}

.season-rail__item {
  display: block;
  padding: 8px 6px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
  background: rgba(46, 143, 138, .08);
  border: 2px solid var(--line);
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}

.season-rail__item:hover {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

.foot-nav { display: grid; gap: 9px; }

.foot-nav a {
  position: relative;
  display: inline-block;
  padding-left: 0;
  font-size: 14.5px;
  color: rgba(245, 247, 250, .78);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}

.foot-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .2s var(--ease);
}

.foot-nav a:hover { color: var(--white); padding-left: 16px; }
.foot-nav a:hover::before { width: 10px; }

.foot-contact { display: grid; gap: 12px; }
.foot-contact li { display: grid; gap: 3px; }

.foot-contact__key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot-contact__val {
  font-size: 14.5px;
  color: var(--white);
  word-break: break-word;
}

.foot-note {
  margin-top: 14px;
  padding-left: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  border-left: 2px solid var(--amber);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--line);
}

.foot-bottom__copy,
.foot-bottom__icp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}

.foot-bottom__icp { color: var(--gold); }

/* ---------- 15. 返回顶部 ---------- */
.scroll-top {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 85;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--white);
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}

.scroll-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.scroll-top:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- 16. 焦点 ---------- */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- 17. 平板 ---------- */
@media (max-width: 1080px) {
  :root { --bar-h: 62px; }

  .command-bar__brand { flex: 1 1 auto; min-width: 0; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--white);
    border: 2px solid var(--line);
    transition: border-color .22s var(--ease);
  }

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

  .nav-toggle__bars {
    position: relative;
    display: block;
    width: 16px;
    height: 2px;
    background: var(--white);
    transition: background-color .25s var(--ease);
  }

  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    background: var(--white);
    transition: transform .25s var(--ease);
  }

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

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

  .nav-index {
    order: 5;
    flex: 1 0 100%;
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 8px 0 14px;
    background: var(--panel);
    border-top: 2px solid var(--line);
    border-bottom: 2px solid var(--blue);
    box-shadow: 0 28px 54px -20px rgba(0, 0, 0, .9);
  }

  .nav-index[data-open],
  .command-bar[data-open] .nav-index { display: block; }

  .nav-index__list {
    flex-direction: column;
    align-items: stretch;
    padding-inline: var(--gutter);
    gap: 0;
  }

  .nav-index__link {
    width: 100%;
    padding: 13px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  .nav-index__link[aria-current="page"] { border-bottom-color: var(--red); }

  .foot-col:nth-child(1) { grid-column: span 6; }
  .foot-col:nth-child(2) { grid-column: span 6; }
  .foot-col:nth-child(3) { grid-column: span 6; }
  .foot-col:nth-child(4) { grid-column: span 6; }
}

/* ---------- 18. 手机 ---------- */
@media (max-width: 720px) {
  body::before,
  body::after { display: none; }

  body { font-size: 16px; }

  .brand__sub { display: none; }

  .season-chip__key { display: none; }

  .cta-link {
    padding: 9px 11px;
    font-size: 11px;
    letter-spacing: .1em;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, .55);
  }

  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-4, .col-6, .col-8 { grid-column: span 6; }

  .editorial { grid-template-columns: minmax(0, 1fr); }
  .editorial__rail,
  .editorial__main { grid-column: auto; }

  .foot-col:nth-child(1),
  .foot-col:nth-child(2),
  .foot-col:nth-child(3),
  .foot-col:nth-child(4) { grid-column: span 12; }

  .foot-bottom { flex-direction: column; align-items: flex-start; }

  .media-frame { box-shadow: 5px 5px 0 rgba(0, 0, 0, .5); }

  .data-table { min-width: 560px; }
}

@media (max-width: 920px) {
  .editorial { grid-template-columns: minmax(0, 1fr); }
  .editorial__rail,
  .editorial__main { grid-column: auto; }
}

/* ---------- 19. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
