/* ==========================================================================
   blocks.css —— 站头 / 首屏 / 页头 / 各页区块 / 页脚
   组件的 @media 覆盖必须写在本文件里（后面加载的规则会盖掉 layout.css 的同名覆盖）
   ========================================================================== */

/* ==========================================================================
   站头导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg-nav);
  box-shadow: inset 0 -1px 0 var(--line-nav);
  /* PWA / 刘海屏：内容不要钻到状态栏下面（普通浏览器下 env() 为 0，无副作用） */
  padding-top: env(safe-area-inset-top);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  width: 100%;
  max-width: var(--w-chrome);
  margin-inline: auto;
  padding-inline: 48px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: 0 0 auto;
  /* 触控目标：链接本身至少 44px 高（图还是 38px，只把可点区域撑开） */
  min-height: var(--tap);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  object-fit: cover;
}

.brand__text { display: flex; flex-direction: column; }   /* 组件级样式 */

.brand__name {
  color: var(--text);
  font-size: var(--fs-18);
  font-weight: 700;
  line-height: 1.3;
}

.brand__latin {
  color: var(--text-muted);
  font-family: var(--font-latin);
  font-size: var(--fs-11);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.14em;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-7);
}

.nav__link {
  color: var(--text-muted);
  font-size: var(--fs-14);
  white-space: nowrap;
  transition: color 0.2s;
}

.nav__link:hover { color: var(--text); }

.nav__link[aria-current="page"] {
  color: var(--brand-ink);
  font-weight: 500;
}

.header__cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: var(--tap);
  height: var(--tap);
  padding: 0 10px;
  margin-right: -6px;   /* 视觉上仍贴右边，但点区对齐 44px 网格 */
  border-radius: var(--r-md);
}

.nav-toggle span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 组件级断点：必须跟组件同文件 */
@media (max-width: 1080px) {
  .header__inner { gap: var(--sp-6); padding-inline: var(--pad-section); }

  .nav {
    position: absolute;
    top: 100%;              /* 别写死 72px：站头在手机上会降档，写死就会错位 */
    left: 0;
    right: 0;
    display: none;
    /* 机型再矮也能滑到底：抽屉自己滚，别让最后一项点不到 */
    max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--sp-3) var(--pad-section) calc(var(--sp-6) + env(safe-area-inset-bottom));
    background: var(--bg-nav);
    box-shadow: inset 0 -1px 0 var(--line-nav), 0 18px 34px rgba(0, 0, 0, 0.5);
  }

  .nav[data-open="true"] { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: flex;
    align-items: center;
    min-height: var(--tap);       /* 抽屉项也给足 44px */
    padding: 13px 0;
    font-size: var(--fs-15);
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .brand__latin { display: none; }
  .header__cta { display: none; }
}

/* ==========================================================================
   首屏 Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 700px;
  overflow: hidden;
  background: linear-gradient(160deg, #2b1433 0%, #0d0d17 100%);
}

/* 手机上 700px 首屏会把正文全顶到屏幕外：按可视区高度收，但不低于 520px */
@media (max-width: 900px) {
  .hero { min-height: min(86svh, 640px); }
}

@media (max-width: 560px) {
  .hero { min-height: 72svh; }
  /* 人物在右侧，窄屏要再往右推一点，别把面孔压在文字下面 */
  .hero__bg img { object-position: 66% 40%; }
}

.hero__bg,
.hero__scrim,
.hero__band {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 45%;
}

/* 只负责把画面收成同一个调性 */
.hero__scrim {
  background: linear-gradient(
    180deg,
    rgba(5, 8, 15, 0) 0%,
    rgba(8, 10, 18, 0.5) 50%,
    rgba(5, 8, 15, 1) 100%
  );
}

/* 左侧压暗带：文字坐在这一层上，读得清靠它 */
.hero__band {
  right: auto;
  width: min(820px, 72%);
  background: linear-gradient(
    90deg,
    rgba(5, 8, 15, 0.9) 0%,
    rgba(5, 8, 15, 0.72) 42%,
    rgba(5, 8, 15, 0) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-block: 150px 90px;
}

.hero__eyebrow {
  color: #e8c47a;
  font-size: var(--fs-14);
  font-weight: 500;
}
/* ⚠ 这行小字在部分宽度下 `scrollWidth` 会比 `clientWidth` 大 3~6px：
   那是 Chromium 的中文禁则把行尾的 `》` **挂在盒外**（挂进容器内边距，文字右缘从未超出视口，
   肉眼无裁切）。`overflow-wrap: anywhere` / 降字号 / 负外边距都试过：只会把 3~6px 的“悬挂窗口”
   挪到另一个宽度。护栏 mobile 为此只把「超出视口」判为真溢出，见 verify_site.py。 */

.hero__title {
  font-size: var(--fs-display);
  line-height: 1.1;
  text-shadow: 0 6px 26px rgba(4, 5, 10, 0.85);
}

.hero__latin {
  color: var(--gold-ink);
  font-size: var(--fs-18);
  text-shadow: 0 3px 16px rgba(4, 5, 10, 0.85);
}

.hero__lead {
  max-width: var(--w-prose);
  color: #dedbe6;
  font-size: var(--fs-18);
  line-height: 1.7;
  text-shadow: 0 2px 14px rgba(4, 5, 10, 0.9);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  color: #e0b878;
  font-size: var(--fs-15);
  font-weight: 500;
}

.hero__tags li + li::before {
  content: "·";
  margin-right: var(--sp-3);
  color: var(--gold);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-2);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8) 48px;
  margin-top: var(--sp-5);
}

.hero__meta div { display: flex; flex-direction: column; gap: var(--sp-1); }

.hero__meta dt {
  color: #a9a7b6;
  font-size: var(--fs-12);
}

.hero__meta dd {
  color: #ece8e1;
  font-size: var(--fs-16);
  font-weight: 700;
}

/* ⚠ 覆盖必须写在被覆盖的规则**之后**：写在 .hero__eyebrow 定义之前会被同优先级的
   基础规则按源码顺序盖掉（护栏 mobile 就是拿这个开刀的，实测已踩一次）。 */

@media (max-width: 900px) {
  .hero { min-height: 0; }

  .hero__bg img { object-position: 62% 40%; }

  .hero__band {
    width: 100%;
    background: linear-gradient(
      180deg,
      rgba(5, 8, 15, 0.84) 0%,
      rgba(5, 8, 15, 0.7) 55%,
      rgba(5, 8, 15, 0.88) 100%
    );
  }

  .hero__inner { padding-block: 96px 64px; gap: var(--sp-4); }
  .hero__lead { font-size: var(--fs-15); }
  .hero__meta { gap: var(--sp-5) var(--sp-7); }
}

/* ==========================================================================
   数据条
   ========================================================================== */
.stats {
  background: var(--bg-nav);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.stats__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-7);
  padding-block: var(--sp-8);
}

@media (max-width: 640px) {
  .stats__inner { justify-content: flex-start; gap: var(--sp-6) var(--sp-8); }
  .stats__inner > * { flex: 1 1 40%; }
}

/* ==========================================================================
   世界观（首屏下方）
   ========================================================================== */
.story__grid {
  display: flex;
  gap: 72px;
  align-items: flex-start;
}

.story__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.story__title { font-size: var(--fs-h3); line-height: 1.35; }

.story__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  color: var(--text-body);
  font-size: var(--fs-16);
  line-height: 1.85;
}

.story__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5) 40px;
  margin-top: var(--sp-2);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-soft);
}

.story__facts dt {
  color: var(--gold-ink);
  font-size: var(--fs-12);
  font-weight: 500;
}

.story__facts dd {
  color: var(--text);
  font-size: var(--fs-15);
}

.story__art {
  flex: 0 0 480px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.story__art .frame {
  height: 560px;
  border-radius: var(--r-xs);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.story__art figcaption {
  color: var(--text-muted);
  font-size: var(--fs-13);
}

@media (max-width: 1080px) {
  .story__grid { flex-direction: column; gap: var(--sp-8); }
  .story__art { flex: 0 0 auto; width: 100%; }
  .story__art .frame { height: auto; aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   核心玩法六卡
   ========================================================================== */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--bg-card);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
}

.feature-card h3 {
  font-size: var(--fs-17);
  line-height: 1.4;
}

.feature-card p {
  color: var(--text-muted);
  font-size: var(--fs-12);
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .feature-card { padding: var(--sp-5); }
}

/* ==========================================================================
   下载区块（首页 / 下载页共用）
   ========================================================================== */
.dl-panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-9);
  padding: 72px 80px;
  background: var(--bg-card);
  border-radius: var(--r-3xl);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.dl-panel__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  text-align: center;
}

.dl-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: 48px;
  background: var(--bg-card-2);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
}

.dl-card__os {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.dl-card__glyph {
  color: var(--brand-ink);
  font-family: var(--font-latin);
  font-size: var(--fs-24);
  line-height: 1;
}

.dl-card__name {
  font-family: var(--font-serif);
  font-size: var(--fs-20);
  font-weight: 700;
  color: var(--text);
}

.dl-card__meta { color: var(--text-muted); font-size: var(--fs-13); }

.dl-card__btn {
  width: 280px;
  padding-block: 17px;
  font-size: var(--fs-15);
}

.dl-note {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  background: var(--bg-tint);
  border-radius: var(--r-md);
}

.dl-note__tag {
  flex: 0 0 auto;
  color: var(--brand-ink);
  font-family: var(--font-latin);
  font-size: var(--fs-13);
  font-weight: 700;
}

.dl-note p { color: var(--text-body); font-size: var(--fs-13); }

.dl-dev {
  color: var(--text-dim);
  font-size: var(--fs-12);
  text-align: center;
}

@media (max-width: 1080px) {
  .dl-panel { padding: var(--sp-8) var(--sp-6); gap: var(--sp-8); }
  .dl-card { padding: var(--sp-7); }
}

@media (max-width: 560px) {
  .dl-card__btn { width: 100%; }
}

/* ==========================================================================
   内页页头 Banner
   ========================================================================== */
.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg);
  background-size: cover;
  background-position: 72% 45%;
}

/* 图片路径写死在 CSS 里（内联 style 传 url() 会按样式表所在目录解析，整站静默 404） */
.page-hero--gameplay { background-image: url("../img/hero-banner.webp"); min-height: 640px; }
.page-hero--world { background-image: url("../img/hero-banner.webp"); min-height: 600px; }

.page-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 15, 0.55) 0%,
    rgba(8, 10, 18, 0.62) 55%,
    rgba(10, 13, 20, 1) 100%
  );
}

.page-hero__band {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(820px, 72%);
  background: linear-gradient(
    90deg,
    rgba(5, 8, 15, 0.88) 0%,
    rgba(5, 8, 15, 0.66) 45%,
    rgba(5, 8, 15, 0) 100%
  );
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-5);
  padding-block: 120px;
}

.page-hero__title { font-size: var(--fs-banner); text-shadow: 0 6px 24px rgba(4, 5, 10, 0.8); }

.page-hero__lead {
  max-width: var(--w-prose);
  color: var(--text-body);
  font-size: var(--fs-16);
  line-height: 1.8;
}

@media (max-width: 900px) {
  .page-hero--gameplay,
  .page-hero--world { min-height: 0; }

  .page-hero__band { width: 100%; }

  .page-hero__inner { padding-block: 76px; }
}

/* ==========================================================================
   玩法页：系统详解三行
   ========================================================================== */
.sys-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.sys-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-8);
  padding: 34px 36px;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
}

.sys-row__idx { flex: 0 0 140px; display: flex; flex-direction: column; gap: var(--sp-1); }

.sys-row__num {
  font-family: var(--font-serif);
  font-size: var(--fs-26);
  font-weight: 700;
  line-height: 1.2;
}

.sys-row__label { color: var(--gold-ink); font-size: var(--fs-18); font-weight: 500; }

.sys-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

.sys-row__title { font-size: var(--fs-20); }

.sys-row__text { color: var(--text-muted); font-size: var(--fs-14); line-height: 1.8; }

@media (max-width: 900px) {
  .sys-row { flex-direction: column; gap: var(--sp-4); padding: var(--sp-6); }
  .sys-row__idx { flex: 0 0 auto; flex-direction: row; align-items: baseline; gap: var(--sp-3); }
}

/* ==========================================================================
   玩法页：四季更迭（左图右文）
   ========================================================================== */
.seasons__media { aspect-ratio: 760 / 520; }

.seasons__title { font-size: var(--fs-split); line-height: 1.3; }

.seasons__text {
  max-width: var(--w-prose);
  color: var(--text-muted);
  font-size: var(--fs-15);
  line-height: 1.85;
}

@media (max-width: 900px) {
  .split__body { gap: var(--sp-5); }
  .seasons__text { max-width: none; }
}

/* ==========================================================================
   世界页：六域列表
   ========================================================================== */
.region-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.region {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}

.region--feature { box-shadow: inset 0 0 0 1px var(--gold); }
.region--final {
  background: var(--bg-abyss);
  box-shadow: inset 0 0 0 1px var(--brand-accent);
}

.region__media {
  flex: 0 0 620px;
  min-width: 0;
  aspect-ratio: 620 / 420;
}

.region__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  justify-content: center;
  padding: var(--sp-9);
}

.region__num {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold);
}

.region__num--brand { color: var(--brand-ink); }

.region__name { font-size: var(--fs-region); }

.region__text { color: var(--text-muted); font-size: var(--fs-14); line-height: 1.8; }

.region--final .region__text { color: #b08a92; }

.region--reverse { flex-direction: row-reverse; }

@media (max-width: 1080px) {
  .region,
  .region--reverse { flex-direction: column; }

  .region__media { flex: 0 0 auto; width: 100%; }
  .region__body { padding: var(--sp-7); }
}

/* ==========================================================================
   角色页
   ========================================================================== */
.char-main {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--brand-accent);
}

.char-main__media {
  flex: 0 0 560px;
  min-width: 0;
  aspect-ratio: 560 / 720;
}

.char-main__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  justify-content: center;
  padding: var(--sp-10);
}

.char-main__name { font-size: var(--fs-name); }

.char-main__role { color: var(--gold-ink); font-size: var(--fs-15); font-weight: 500; }

.char-main__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  color: var(--text-body);
  font-size: var(--fs-15);
  line-height: 1.9;
}

.char-main__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) 40px;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-soft);
}

.char-main__facts dt { color: var(--gold-ink); font-size: var(--fs-12); font-weight: 500; }
.char-main__facts dd { color: var(--text); font-size: var(--fs-14); }

.char-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: var(--r-xl);
  box-shadow: inset 0 0 0 1px var(--line);
}

.char-card--foe {
  background: #12121a;
  box-shadow: inset 0 0 0 1px var(--brand-accent);
}

.char-card__media { aspect-ratio: 4 / 3; }

.char-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-7);
}

.char-card__name { font-size: var(--fs-24); }

.char-card__text { color: var(--text-muted); font-size: var(--fs-13); line-height: 1.75; }

@media (max-width: 1080px) {
  .char-main { flex-direction: column; }
  .char-main__media { flex: 0 0 auto; width: 100%; aspect-ratio: 4 / 3; }
  .char-main__body { padding: var(--sp-7); }
}

/* ==========================================================================
   图集页
   ========================================================================== */
.gal-rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

/* 两行都用栅格：第一行「大幅 + 右列两小图」，第二行「三张等宽」 */
.gal-row {
  display: grid;
  align-items: stretch;
  gap: var(--sp-6);
}

.gal-row--r1 { grid-template-columns: 880fr 344fr; }
.gal-row--r2 { grid-template-columns: repeat(3, 1fr); }

.gal-col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--sp-6);
  min-height: 0;
}

.gal-item {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
  cursor: zoom-in;
  transition: box-shadow 0.2s;
}

.gal-item:hover { box-shadow: inset 0 0 0 1px var(--gold); }

.gal-item__media {
  width: 100%;
  overflow: hidden;
  background: var(--bg-card-2);
}

.gal-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 第一行左图定高，右列两张均分剩下的高度 —— 两列底边自动对齐 */
.gal-item--lead .gal-item__media { height: 820px; }
.gal-col .gal-item__media { flex: 1 1 auto; min-height: 180px; }

/* 第二行三张等高 */
.gal-row--r2 .gal-item__media { height: 600px; }

.gal-item__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5) 22px;
}

.gal-item__title { font-size: var(--fs-18); }
.gal-item__text { color: var(--text-muted); font-size: var(--fs-13); }

.gal-item--sm .gal-item__body { padding: var(--sp-5); }
.gal-item--sm .gal-item__title { font-size: var(--fs-16); }
.gal-item--sm .gal-item__text { font-size: var(--fs-12); }

.gal-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--line-soft);
  margin-top: var(--sp-9);
}

.gal-foot p { color: var(--text-dim); font-size: var(--fs-12); }
.gal-foot p + p { color: #6f6d7c; }

.gal-item[hidden] { display: none !important; }

@media (max-width: 900px) {
  .gal-row--r1,
  .gal-row--r2 { grid-template-columns: 1fr; }

  .gal-col { grid-template-rows: auto; }

  .gal-item--lead .gal-item__media,
  .gal-col .gal-item__media,
  .gal-row--r2 .gal-item__media {
    flex: 0 0 auto;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .gal-item__body { padding: var(--sp-4) var(--sp-5); }
}

/* ==========================================================================
   版本页
   ========================================================================== */
.tl {
  display: flex;
  flex-direction: column;
  gap: var(--sp-9);
}

.tl__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.tl-row {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}

.tl-row--hero { box-shadow: inset 0 0 0 1px var(--line); }

.tl-row__tag {
  flex: 0 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: var(--sp-5) var(--sp-3);
  color: var(--text);
  text-align: center;
  background: var(--bg-card-2);
}

.tl-row--hero .tl-row__tag { flex: 0 0 140px; background: var(--brand); min-height: 120px; }
.tl-row--hero .tl-row__tag b { font-size: var(--fs-24); }
.tl-row--origin .tl-row__tag { background: #14121c; }
.tl-row--origin .tl-row__tag b { color: var(--gold-ink); }

.tl-row__tag b {
  font-family: var(--font-serif);
  font-size: var(--fs-18);
  font-weight: 700;
  line-height: 1.3;
}

.tl-row__tag i {
  font-family: var(--font-latin);
  font-size: var(--fs-11);
  font-style: normal;
  color: var(--text-muted);
}

.tl-row--hero .tl-row__tag i { color: var(--text-on-brand); font-family: var(--font-sans); }
.tl-row--origin .tl-row__tag i { color: #8a7a56; }
.tl-row--origin { box-shadow: inset 0 0 0 1px var(--gold); }

.tl-row__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  justify-content: center;
  padding: var(--sp-6);
}

.tl-row--hero .tl-row__body { padding: 26px; gap: var(--sp-2); }
.tl-row--hero .tl-row__body h3 { font-size: var(--fs-20); }

.tl-row__body h3 { font-size: var(--fs-18); }

.tl-row--origin .tl-row__body h3 { color: var(--gold-ink); }

.tl-row__body p { color: var(--text-muted); font-size: var(--fs-13); line-height: 1.75; }

@media (max-width: 640px) {
  /* 时间线：标签栏改成横条置顶，否则正文只剩十几像素宽（实测 320 下 tl-row__body 只有 76px） */
  .tl-row { flex-direction: column; }
  .tl-row__tag,
  .tl-row--hero .tl-row__tag {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: var(--sp-3);
    min-height: 0;
    padding: var(--sp-4) var(--sp-5);
    text-align: left;
  }
  .tl-row__body { padding: var(--sp-5); }
}

/* ==========================================================================
   下载页
   ========================================================================== */
.dl-page {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.dl-page__cards {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-8) 40px;
}

.dl-page__cards .dl-card { flex: 1 1 auto; gap: var(--sp-5); padding: 40px 48px; }

.dl-card__note {
  color: var(--text-dim);
  font-size: var(--fs-12);
}

.dl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 纵向 flex 的交叉轴是横向：不写上这句会被默认的 stretch 拉满整行 */
  align-self: flex-start;
  height: 56px;
  padding-inline: var(--sp-5);
  color: var(--brand-ink);
  font-family: var(--font-latin);
  font-size: var(--fs-18);
  font-weight: 700;
  background: var(--bg-card-2);
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line);
}

.dl-hint {
  display: flex;
  gap: var(--sp-5);
  padding: var(--sp-8) var(--sp-8);
  background: var(--bg-card);
  border-radius: var(--r-xl);
  box-shadow: inset 0 0 0 1px var(--line);
}

.dl-hint__col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.dl-hint__col--fixed { flex: 0 0 300px; }

.dl-hint h3 { font-size: var(--fs-15); font-family: var(--font-sans); font-weight: 500; color: var(--brand-ink); }
.dl-hint__col--fixed h3 { color: var(--gold-ink); }
.dl-hint p { color: var(--text-muted); font-size: var(--fs-13); line-height: 1.75; }

@media (max-width: 900px) {
  .dl-page__cards { flex-direction: column; padding-inline: var(--sp-4); }
  .dl-page__cards .dl-card { padding: var(--sp-7); }
  .dl-hint { flex-direction: column; padding: var(--sp-6); }
  .dl-hint__col--fixed { flex: 0 0 auto; }
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  padding-block: 64px;
  /* 底部安全区（iPhone 底部横条压在版权行上很难看） */
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  background: var(--bg-foot);
  box-shadow: inset 0 1px 0 var(--line-soft);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.site-footer__brand { display: flex; align-items: center; gap: var(--sp-4); }

.site-footer__brand > span { display: flex; flex-direction: column; }

.site-footer__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--text-on-brand);
  font-family: var(--font-serif);
  font-size: var(--fs-18);
  font-weight: 700;
  background: var(--brand);
  border-radius: var(--r-sm);
}

.site-footer__name { color: var(--text); font-size: var(--fs-16); font-weight: 700; }

.site-footer__sub { color: var(--text-dim); font-size: var(--fs-11); }

.site-footer__nav { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-7); }

/* 页脚链接在手机上只有 23px 高，点不准 —— 直接用 44px 的行高撑开 */
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--text-muted);
  font-size: var(--fs-13);
}
.site-footer__nav a:hover { color: var(--text); }

.site-footer__note {
  margin-top: var(--sp-8);
  color: var(--text-dim);
  font-size: var(--fs-12);
  line-height: 1.8;
}

/* 内页精简页脚 */
.site-footer--slim { padding-block: 56px; }

.site-footer--slim .site-footer__top {
  gap: var(--sp-3);
  align-items: baseline;
}

.site-footer__title { color: var(--text); font-size: var(--fs-14); font-weight: 700; font-family: var(--font-serif); }
.site-footer__owner { color: var(--text-dim); font-size: var(--fs-12); }

@media (max-width: 640px) {
  .site-footer { padding-block: var(--sp-9); }
  .site-footer__top { flex-direction: column; align-items: flex-start; }
  /* 页脚导航：两列，每一项都是整块可点区域 */
  .site-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 var(--sp-5);
    margin-inline: calc(var(--sp-2) * -1);   /* 让文字左缘与标题对齐 */
  }
  .site-footer__nav a { justify-content: flex-start; padding-inline: var(--sp-2); }
}
