/* ============================================================
   心犀 · 基础层
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  transition: background-color .35s var(--ease), color .35s var(--ease);
  overflow-x: hidden;
}

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

/* 组件里的 .game-card 是 display:flex，会盖掉 UA 的 [hidden]{display:none}，
   筛选时卡片就藏不掉——所以把 hidden 提到作者层 */
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: var(--lh-tight); letter-spacing: .01em; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { margin: 0; }

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

ul { margin: 0; padding: 0; list-style: none; }

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

/* 键盘用户的跳转链接：平时藏起，Tab 到第一位时出现在顶栏上方 */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  font-size: var(--fs-small);
  font-weight: 700;
  transition: top .18s var(--ease);
}
.skip-link:focus-visible { top: 12px; }

/* ---------- 布局骨架 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band {
  padding-block: var(--band-y);
  background: var(--bg);
  color: var(--ink);
}
.band--raised { background: var(--bg-raised); }

.band > .container { position: relative; z-index: 1; }

/* 同心弧分割：呼应 logo 的向心漩涡，替代直线切块 */
.band--arc {
  position: relative;
  border-radius: 0 0 50% 50% / 0 0 44px 44px;
  margin-bottom: -44px;
}
.band--arc::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 62%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid var(--line);
  opacity: .5;
  pointer-events: none;
}

/* ---------- 通用文字 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber-400);
  border-radius: 2px;
}

.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-2);
  max-width: 720px;   /* 放宽容器，避免标题/简介被拆词孤行 */
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* ---------- 入场动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
