/* =====================================================================
   ZXS 游戏库 · 组件层（components.css）
   构成决策：非对称首屏 / 终端统计面板压住跑马灯 / 索引卡式卡片网格
   ===================================================================== */

/* ---------- 顶部状态条 ---------- */
.statusbar {
  position: relative; z-index: 90;
  background: var(--ink-850);
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-xs);
}
.statusbar__inner {
  width: min(var(--wrap), 100% - 2 * var(--s4));
  margin-inline: auto;
  display: flex; align-items: center; gap: var(--s3);
  min-height: 30px;
}
.statusbar .dim { opacity: .75; }
.statusbar__right { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); display: inline-block; margin-right: 6px;
  vertical-align: 1px;
}
.dot--amber { background: var(--accent); }

/* ---------- 页头（吸顶） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 12, 14, .84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header__inner {
  display: flex; align-items: center; gap: var(--s4);
  min-height: 68px;
  padding-block: var(--s2);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__mark {
  width: 34px; height: 34px; flex: none;
  background: var(--accent); color: var(--ink-900);
  font-family: var(--font-display); font-weight: 900; font-size: 20px;
  display: grid; place-items: center;
  border-radius: 2px;
}
.brand__text { display: grid; line-height: 1.25; }
.brand__text strong { font-size: 16px; letter-spacing: .04em; }
.brand__sub { font-size: 9.5px; color: var(--muted); letter-spacing: .18em; }

.nav { display: flex; gap: 2px; flex: none; }
.nav__link {
  font-size: 13px; color: var(--paper-2);
  padding: 8px 12px; border-radius: 2px;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nav__link:hover { color: var(--accent); }
.nav__link.is-active { color: var(--accent); background: var(--accent-soft); }

/* 搜索框 */
.search { position: relative; flex: 1; max-width: 430px; margin-left: auto; }
.search__icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 44px;
  background: var(--ink-700);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 0 44px 0 38px;
  font-size: 13px; color: var(--paper);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.search input::placeholder { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search input::-webkit-search-cancel-button { display: none; }
.search kbd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 10px; color: var(--muted);
  border: 1px solid var(--hairline); border-radius: 3px;
  padding: 2px 6px; pointer-events: none;
}
.search.has-text kbd { display: none; }
.search__clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: grid; place-items: center;
  color: var(--muted); border-radius: 2px; font-size: 15px;
}
.search__clear:hover { color: var(--accent); }

/* ---------- 首屏 ---------- */
.hero { position: relative; padding-top: var(--s6); overflow: hidden; }
.hero__scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .16) 2px 3px);
  opacity: .5;
  animation: flicker 5s steps(2) infinite alternate;
}
@keyframes flicker { from { opacity: .38; } to { opacity: .58; } }

.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.12fr .88fr;
  gap: var(--s6); align-items: start;
  padding-bottom: var(--s7);
}
.kicker {
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  font-size: var(--fs-3xl);
  letter-spacing: .01em;
  margin: var(--s4) 0 var(--s4);
}
.hero h1 em {
  font-style: normal; color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-decoration-thickness: 4px;
  text-underline-offset: 12px;
}
.hero__sub { max-width: 46ch; color: var(--paper-2); font-size: 15px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.hero__quick {
  display: flex; flex-wrap: wrap; gap: var(--s5);
  margin-top: var(--s5); padding-top: var(--s4);
  border-top: 1px solid var(--hairline);
}
.hero__quick div { display: grid; gap: 2px; }
.hero__quick dt { font-size: 10.5px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.hero__quick dd { font-size: 21px; font-weight: 600; color: var(--paper); }
.hero__quick dd small { font-size: 12px; color: var(--ok); margin-left: 4px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em;
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.btn--primary { background: var(--accent); color: var(--ink-900); font-weight: 600; }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255, 178, 36, .28); }
.btn--primary:active { transform: translateY(0); background: var(--accent-deep); }
.btn--ghost { border: 1px solid var(--hairline-strong); color: var(--paper); }
.btn--ghost:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-1px); }
.btn--ghost:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- 档案终端面板（首屏记忆点） ---------- */
.terminal {
  position: relative; z-index: 3;
  background: var(--ink-800);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-panel);
  box-shadow: var(--sh3);
  padding: var(--s4);
  margin-bottom: calc(-1 * var(--s7) - 16px);   /* 压住跑马灯，制造重叠 */
}
.terminal::after {                    /* CRT 扫描线 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .17) 2px 3px);
  opacity: .55;
}
.terminal__head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px; color: var(--muted); letter-spacing: .16em;
}
.terminal__head b { color: var(--paper-2); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.terminal__head b::before { content: ""; width: 8px; height: 8px; background: var(--accent); }

.terminal__stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s3) var(--s4); margin-top: var(--s4);
}
.terminal__stats div { display: grid; gap: 3px; }
.terminal__stats dt { font-size: 10px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.terminal__stats dd { font-size: 25px; font-weight: 600; line-height: 1.1; }
.terminal__stats dd small { font-size: 11px; color: var(--ok); margin-left: 6px; font-weight: 400; }

.terminal__chart { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--hairline); }
.terminal__chart-head { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); letter-spacing: .12em; }
.chart { display: flex; align-items: flex-end; gap: 7px; height: 62px; margin-top: var(--s3); }
.chart span {
  flex: 1; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  transform-origin: bottom;
  animation: bar-grow var(--dur-slow) var(--ease-out) both;
}
.chart span:nth-child(1) { animation-delay: 120ms; }
.chart span:nth-child(2) { animation-delay: 190ms; }
.chart span:nth-child(3) { animation-delay: 260ms; }
.chart span:nth-child(4) { animation-delay: 330ms; }
.chart span:nth-child(5) { animation-delay: 400ms; }
.chart span:nth-child(6) { animation-delay: 470ms; }
.chart span:nth-child(7) { animation-delay: 540ms; }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart__labels { display: flex; gap: 7px; margin-top: 7px; }
.chart__labels span { flex: 1; text-align: center; font-size: 9.5px; color: var(--muted); }

.terminal__status { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--hairline); display: grid; gap: 9px; }
.terminal__status div { display: flex; justify-content: space-between; font-size: 11px; }
.terminal__status dt { color: var(--paper-2); }
.terminal__status dd { color: var(--muted); }

/* ---------- 倾斜跑马灯 ---------- */
.marquee {
  position: relative; z-index: 1;
  background: var(--ink-800);
  border-block: 1px solid var(--hairline);
  padding: 13px 0;
  width: 106%; margin-left: -3%;
  transform: rotate(-1.5deg);
}
.marquee__track {
  display: flex; gap: var(--s5); width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--paper-2); white-space: nowrap;
}
.marquee__track .star { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 区块骨架 ---------- */
.section { padding-block: var(--s7); position: relative; z-index: 2; }
.section__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--s4);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: var(--s4); margin-bottom: var(--s5);
}
.section__head h2 { font-size: var(--fs-2xl); margin-top: var(--s2); letter-spacing: .02em; }
.section__sub { margin-top: var(--s3); font-size: 13px; line-height: 1.7; color: var(--muted); max-width: 720px; }
.section__tools { display: flex; align-items: center; gap: var(--s4); }
.count { font-size: 12px; color: var(--muted); }

/* 列表页返回首页链接 */
.backlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: .08em; color: var(--muted);
  margin-bottom: var(--s4);
}
.backlink:hover { color: var(--accent); }

.sort { display: inline-flex; align-items: center; gap: var(--s2); }
.sort > span { font-size: 11px; color: var(--muted); letter-spacing: .12em; }
.sort select {
  appearance: none; -webkit-appearance: none;
  background: var(--ink-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffb224' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--hairline); border-radius: 2px;
  color: var(--paper); font-size: 12px;
  min-height: 44px; padding: 0 32px 0 12px; cursor: pointer;
}
.sort select:hover { border-color: var(--accent-line); }

/* ---------- 分类筛选 chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--hairline); border-radius: var(--r-pill);
  color: var(--paper-2); font-size: 12.5px;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.chip__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chip__count { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.chip:hover { border-color: var(--hairline-strong); color: var(--paper); }
.chip[aria-pressed="true"] { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.chip[aria-pressed="true"] .chip__count { color: var(--accent); }

/* ---------- 档案索引卡：光封面 + 标题行 + meta 行（无边框无覆盖层，贴页面底色） ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--s3);
  row-gap: var(--s4);
}
@media (min-width: 1240px) {
  .grid { grid-template-columns: repeat(4, 274.5px); justify-content: center; }
}
.card {
  position: relative;
  display: block;
  background: none;
  border: 0;
  border-radius: 0;
  color: inherit; text-decoration: none;
}
.card__cover {
  position: relative;
  display: block;
  aspect-ratio: 272.5 / 153;                  /* 16:9 封面通铺 */
  background-size: cover; background-position: center;
  border-radius: var(--r-card);
  overflow: hidden;
  transition: filter var(--dur-base) var(--ease-out);
}
.card:hover .card__cover, .card:focus-visible .card__cover { filter: brightness(1.14); }
.card__no {
  position: absolute; left: 8px; bottom: 6px; z-index: 2;
  font-family: var(--font-mono); font-size: 9px; color: var(--paper-2);
}
.badge {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em;
  padding: 2px 6px; border-radius: 1px;
}
.badge--new { background: var(--accent); color: var(--ink-900); font-weight: 600; }
.badge--hot { border: 1px solid var(--hairline-strong); color: var(--paper); background: rgba(11, 12, 14, .6); }
.badge--down { border: 1px solid var(--down); color: var(--down); background: rgba(11, 12, 14, .6); }

.card__arrow {
  position: absolute; right: 9px; bottom: 8px; z-index: 2;
  font-size: 12px; color: var(--accent);
  opacity: 0; transform: translateX(-4px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.card:hover .card__arrow, .card:focus-visible .card__arrow { opacity: 1; transform: none; }

/* 名称区：标题行 + meta 行，文本与封面左右齐边 */
.card__body {
  min-width: 0; padding: 10px 0 0;
  display: grid; gap: 4px; align-content: start;
}
.card__title {
  font-size: 15px; font-weight: 700; font-family: var(--font-body);
  line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color var(--dur-fast) var(--ease-out);
}
.card:hover .card__title, .card:focus-visible .card__title { color: var(--accent); }
.card__en {
  font-style: normal; font-weight: 400;
  font-size: 13px; color: var(--muted); letter-spacing: .02em;
}
.card__meta {
  min-width: 0;
  font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tag {
  font-family: var(--font-body); font-weight: 500; font-size: 9px;
  padding: 1px 5px; border: 1px solid currentColor; border-radius: 1px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  white-space: nowrap;
}
.tag--lg { font-size: 11px; padding: 3px 9px; }

/* 骨架屏（筛选加载态） */
.skel {
  display: block; border-radius: 2px;
  background: linear-gradient(90deg, var(--ink-600) 25%, var(--ink-700) 50%, var(--ink-600) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.card--skel { pointer-events: none; }
.card--skel .card__cover { aspect-ratio: 272.5 / 153; }
.card--skel .skel--t { height: 17px; width: 82%; }
.card--skel .skel--m { height: 12px; width: 56%; }

/* ---------- 网格底部 / 空态 ---------- */
.grid__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s4); margin-top: var(--s5);
}
.grid__foot .mono { font-size: 11px; }

/* ---------- 分页（上下翻页，非折叠加载） ---------- */
.pager { display: flex; }
.pager__ctrls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager__btn {
  min-width: 34px; height: 34px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--hairline-strong); border-radius: var(--r-card);
  color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.pager__btn:hover:not(:disabled):not(.is-active) { border-color: var(--accent-line); color: var(--accent); }
.pager__btn.is-active {
  background: var(--accent); border-color: var(--accent);
  color: var(--ink-900); font-weight: 700; cursor: default;
}
.pager__btn:disabled { opacity: .35; cursor: not-allowed; }
.pager__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pager__gap { color: var(--muted); font-family: var(--font-mono); font-size: 12px; padding: 0 2px; user-select: none; }

@media (max-width: 640px) {
  .grid__foot { justify-content: center; }
  .pager { width: 100%; justify-content: center; }
  .pager__btn { min-width: 30px; height: 30px; padding: 0 8px; font-size: 11px; }
}
.empty {
  border: 1px solid var(--hairline); border-radius: var(--r-panel);
  padding: var(--s6) var(--s4); text-align: center;
  display: grid; justify-items: center; gap: var(--s3);
}
.empty__code { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.empty h3 { font-size: var(--fs-lg); }
.empty p { color: var(--muted); font-size: 13.5px; max-width: 44ch; }

/* ---------- 工具补丁带 ---------- */
.section--tools { background: var(--ink-850); border-block: 1px solid var(--hairline); }
.section--band { background: var(--ink-850); border-block: 1px solid var(--hairline); }
.section__link { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .08em; }
.section__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.tools-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s3); }
.tool {
  display: grid; grid-template-columns: 42px 1fr auto; gap: var(--s3);
  align-items: center;
  background: var(--ink-700); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: var(--s3);
  cursor: pointer; color: inherit; text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.tool:hover, .tool:focus-visible { border-color: var(--accent-line); transform: translateY(-2px); }
.tool__glyph {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--hairline-strong); border-radius: 2px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}
.tool__text { display: grid; gap: 2px; min-width: 0; }
.tool__name { font-size: 14px; font-weight: 700; font-family: var(--font-body); }
.tool__en { font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); letter-spacing: .12em; }
.tool__meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin-top: 7px; }
.tool__meta i { font-style: normal; opacity: .5; }

/* ---------- 收录规则 ---------- */
.section--rules {
  background-image:
    linear-gradient(rgba(242, 238, 227, .033) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 238, 227, .033) 1px, transparent 1px);
  background-size: 44px 44px;
}
.rules { display: grid; grid-template-columns: repeat(3, 1fr); }
.rules > article { padding: var(--s2) var(--s5); }
.rules > article + article { border-left: 1px solid var(--hairline); }
.rules > article:first-child { padding-left: 0; }
.rules__no { font-family: var(--font-mono); font-size: 32px; font-weight: 600; color: var(--accent); }
.rules h3 { font-size: var(--fs-lg); margin: var(--s3) 0 var(--s2); }
.rules p { color: var(--paper-2); font-size: 13.5px; }

/* ---------- 页脚 ---------- */
.site-footer { position: relative; z-index: 2; background: var(--ink-900); border-top: 1px solid var(--hairline); }
.footer__top {
  display: grid; grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: var(--s5); padding-block: var(--s6) var(--s5);
}
.footer__brand h2 { font-size: var(--fs-xl); }
.footer__brand p { color: var(--muted); font-size: 13px; margin-top: var(--s2); }
.footer__brand .mono { color: var(--accent); font-size: 12px; margin-top: var(--s3); display: inline-block; }
.footer__col h3 { font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; margin-bottom: var(--s3); }
.footer__col a, .footer__col button {
  display: block; width: 100%; text-align: left;
  font-size: 13px; color: var(--paper-2); padding: 5px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__col a:hover, .footer__col button:hover { color: var(--accent); }
.footer__status li { display: flex; justify-content: space-between; font-size: 13px; color: var(--paper-2); padding: 5px 0; list-style: none; }
.footer__status .mono { font-size: 11px; color: var(--muted); }
.footer__hint { display: block; font-size: 11px; color: var(--muted); padding-top: var(--s2); }
.footer__disclaimer {
  border-top: 1px solid var(--hairline);
  padding-block: var(--s4);
}
.footer__disclaimer h3 {
  font-family: var(--font-mono); font-weight: 500; font-size: 10.5px;
  color: var(--muted); letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: var(--s2);
}
.footer__disclaimer p { font-size: 12px; line-height: 1.9; color: var(--muted); max-width: 96ch; }
.footer__disclaimer p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer__disclaimer p a:hover { color: var(--accent-deep); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between;
  border-top: 1px solid var(--hairline); padding-block: var(--s4);
  font-size: 10.5px; color: var(--muted); letter-spacing: .1em;
}

/* ---------- 提示条（详情页复用） ---------- */
.notice {
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  border-radius: 2px; padding: 10px 14px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--accent);
  margin-bottom: var(--s4);
}
.notice--down { border-color: var(--down); background: rgba(255, 106, 86, .1); color: var(--down); }

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 500;
  transform: translate(-50%, 12px);
  background: var(--ink-600); border: 1px solid var(--hairline-strong);
  border-radius: 2px; padding: 9px 16px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--paper);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   响应式：375 / 768 / 1440 三档意图
   ===================================================================== */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--s5); padding-bottom: var(--s6); }
  .terminal { margin-bottom: 0; }
  .marquee { margin-top: var(--s4); }
  .rules { grid-template-columns: 1fr; }
  .rules > article { padding: var(--s4) 0; }
  .rules > article + article { border-left: 0; border-top: 1px solid var(--hairline); }
  .rules > article:first-child { padding-top: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* 网格降列：1240+ 为 4×274；平板 3 列；手机 2 列竖卡 */
@media (max-width: 860px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); column-gap: var(--s3); row-gap: var(--s3); }
  .card__title { font-size: 13px; }
  .card__en { font-size: 11px; }
  .card__meta { font-size: 10px; }
  .card__body { padding: 8px 0 0; gap: 3px; }
  .tools-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header__inner { flex-wrap: wrap; gap: var(--s2) var(--s3); }
  .search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .nav { order: 2; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .statusbar__right .hide-sm { display: none; }
  .hero { padding-top: var(--s5); }
  .section { padding-block: var(--s6); }
  .section__head { align-items: flex-start; }
  .footer__top { grid-template-columns: 1fr; gap: var(--s5); }
  .footer__bottom { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scanlines, .marquee__track, .chart span, .skel { animation: none; }
  .marquee__track { transform: none; }
  .card, .card__cover, .card__arrow, .btn, .tool { transition: none; }
}
