/* ---- tokens.css ---- */
/* 设计令牌：全站唯一来源。颜色按「用途」拆，宽度只留两档。
   设计稿主色 #0B8A62 对白字仅 4.35:1，填充/文字各压深一档以满足 AA。 */
:root {
  --brand: #0A7C58;          /* 填充：按钮底 / 选中片底（白字 5.20:1） */
  --brand-hover: #06704C;
  --brand-ink: #087450;      /* 文字：浅底上的链接与强调（白底 5.79:1） */
  --brand-mark: #10B981;     /* 图形：圆点、装饰描边 */
  --brand-deep: #0C4A3A;     /* 深底：深色区块 / 标题 */
  --brand-surface: #ECFDF5;
  --brand-surface-2: #E8F6ED;
  --brand-surface-3: #C6E6CE;

  --text: #0C4A3A;
  --text-body: #333333;
  --text-muted: #5A6570;     /* 唯一一支次级字，最浅底仍 5.34:1 */
  --text-invert: #FFFFFF;
  --text-invert-mute: #E8F6ED;
  --line: #E0E0E0;
  --surface: #FFFFFF;
  --surface-2: #F5F5F5;

  --w-container: 1312px;
  --w-prose: 720px;
  --gutter: 64px;

  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-num: "Outfit", "Helvetica Neue", Arial, sans-serif;

  --fs-display: 54px;
  --fs-h1: 40px;
  --fs-h2: 32px;
  --fs-h3: 26px;
  --fs-lg: 18px;
  --fs-body: 15px;
  --fs-sm: 13px;
  --fs-xs: 12px;
  --fs-kicker: 11px;
  --lh-tight: 1.25;
  --lh-body: 1.75;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 40px; --sp-8: 56px;
  --sp-9: 72px;
  --r-sm: 2px;  --r-card: 3px; --r-lg: 4px;
  --shadow-card: 0 2px 10px rgba(12, 74, 58, .07);
}

/* ---- base.css ---- */
/* reset + 基础排版。无衬线字体栈，全站不含楷体 / 宋体 / serif 兜底。 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
figure { margin: 0; }               /* UA 默认 1em 40px 会顶破 390 视口 */
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
hr { border: 0; }

[hidden] { display: none !important; }   /* 组件的 display 会盖掉 UA 规则 */

body {
  background: var(--surface);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--text); font-weight: 700; line-height: var(--lh-tight); }
strong, b { font-weight: 700; }
:focus-visible { outline: 3px solid var(--brand-mark); outline-offset: 2px; }
::selection { background: var(--brand-surface-3); color: var(--brand-deep); }

.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;
}
.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 100;
  padding: 10px 16px; background: var(--brand-deep); color: var(--text-invert);
  font-size: var(--fs-sm); border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; }

@media (max-width: 560px) {
  body { padding-bottom: 56px; }   /* 给固定下载条留位置 */
}

/* ---- layout.css ---- */
/* 容器 / 区块节奏 / 栅格 / 两栏 / 全局断点。
   组件级 @media 一律写在定义该组件的文件里，这里只断点自己定义的东西。 */
.container {
  width: 100%;
  max-width: var(--w-container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.prose { max-width: var(--w-prose); }

.section { padding-block: var(--sp-8); }
.section--tint { background: var(--surface-2); }
.section--dark { background: var(--brand-deep); color: var(--text-invert-mute); }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark .section-head__title, .section--dark .comic-card__title {
  color: var(--text-invert);
}
.section--dark .section-head__note, .section--dark .comic-card__meta {
  color: var(--text-invert-mute);
}
.section--dark .rule { background: rgba(255, 255, 255, .28); }
.section__foot { margin-top: var(--sp-6); }

.grid { display: grid; gap: 20px; align-items: start; }
.grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.split { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: var(--sp-7); }
.split__main { min-width: 0; }

@media (max-width: 1200px) {
  :root { --gutter: 40px; --fs-display: 46px; --fs-h1: 36px; --fs-h2: 30px; }
  .grid--6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 28px; --fs-display: 40px; --fs-h1: 32px; --fs-h2: 27px; --fs-h3: 23px; }
  .grid--6, .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: var(--sp-7); }
}
@media (max-width: 560px) {
  :root {
    --gutter: 16px; --fs-display: 30px; --fs-h1: 26px; --fs-h2: 22px;
    --fs-h3: 20px; --fs-lg: 16px; --fs-body: 14px; --fs-sm: 12px;
  }
  .grid { gap: 8px; }
  .grid--6, .grid--4, .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section { padding-block: var(--sp-6); }
  .section__foot { margin-top: var(--sp-5); }
}

/* ---- components.css ---- */
/* 通用组件：按钮 / 标签 / 卡片 / 数据条 / 榜单 / 问答。
   每个组件的响应式覆盖紧跟在它自己的定义后面。 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 700; text-align: center; white-space: nowrap;
}
.btn--lg { min-height: 48px; padding-inline: 24px; font-size: var(--fs-body); }
.btn--sm { min-height: 36px; padding-inline: 16px; font-size: var(--fs-xs); }
.btn--primary { background: var(--brand); color: var(--text-invert); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--outline { background: var(--surface); color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand); }
.btn--outline:hover { background: var(--brand-surface); }
.btn--outline-invert { background: transparent; color: var(--text-invert); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.btn--outline-invert:hover { background: rgba(255, 255, 255, .12); }
.btn--light { background: var(--surface); color: var(--brand-ink); }
.btn--light:hover { background: var(--brand-surface); }
@media (max-width: 560px) {
  .btn { min-height: 40px; padding-inline: 16px; }
  .btn--lg { min-height: 44px; font-size: var(--fs-sm); }
}

.chip, .tab {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 32px; padding: 0 14px; border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--text-body);
  font-size: var(--fs-xs); font-weight: 400;
}
.chip:hover, .tab:hover { background: var(--brand-surface); color: var(--brand-ink); }
.chip--active, .chip[aria-pressed="true"], .tab.is-active, .tab[aria-pressed="true"] {
  background: var(--brand); color: var(--text-invert); font-weight: 700;
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }

.kicker {
  font-family: var(--font-num); font-size: var(--fs-kicker); font-weight: 600;
  letter-spacing: .12em; color: var(--brand-ink); text-transform: uppercase;
}
.kicker--invert { color: var(--text-invert-mute); }   /* 浅绿字压绿底仅 3.87:1，换更亮的一档 */
.kicker__mark { display: inline-block; width: 26px; height: 2px; margin-right: 8px; vertical-align: middle; background: var(--brand); }
.rule { height: 1px; margin-block: var(--sp-4) var(--sp-6); background: var(--line); }
.rule--invert { background: rgba(255, 255, 255, .28); }

.comic-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.comic-card__cover {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--r-sm); background: var(--brand-surface-2);
  box-shadow: var(--shadow-card);
}
.comic-card__cover--empty {
  display: flex; align-items: center; justify-content: center; padding: 12px;
  background-color: var(--brand-surface-2);   /* 深色区块里也要有不透明浅底兜底 */
  background-image: linear-gradient(150deg, var(--brand-surface-2), var(--brand-surface-3));
  color: var(--brand-deep); font-size: var(--fs-sm); font-weight: 700; text-align: center;
  overflow: hidden;
}
.comic-card__title {
  font-size: var(--fs-body); font-weight: 700; color: var(--text);
  overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1;
}
.comic-card__meta {
  font-size: var(--fs-xs); color: var(--text-muted);
  overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1;
}
.comic-card:hover .comic-card__title { color: var(--brand-ink); }
@media (max-width: 560px) {
  .comic-card { gap: 6px; }
  .comic-card__title { font-size: var(--fs-xs); }
  .comic-card__meta { font-size: 10px; }
  .chip, .tab { min-height: 30px; padding-inline: 12px; font-size: 11px; }
}

.data-bar { display: flex; gap: 0; }
.data-bar__item { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 0; }
.data-bar__item strong {
  font-family: var(--font-num), var(--font-sans); font-size: 26px; font-weight: 700;
  line-height: 1.2; color: var(--text);
}
.data-bar__item span { font-size: var(--fs-xs); color: var(--text-muted); }
.data-bar--detail { background: var(--surface-2); padding: var(--sp-4); border-radius: var(--r-card); }
@media (max-width: 560px) {
  .data-bar__item strong { font-size: 18px; }
  .data-bar__item span { font-size: 10px; }
}

.rank-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.rank-list__row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; }
.rank-list__num { font-family: var(--font-num); font-weight: 700; font-size: var(--fs-sm); color: var(--brand-ink); }
.rank-list__row a { font-size: var(--fs-body); color: var(--text-body); }
.rank-list__row a:hover { color: var(--brand-ink); text-decoration: underline; }
.rank-list__hits { font-family: var(--font-num); font-size: var(--fs-sm); color: var(--text-muted); }
.rank-list--full { gap: 0; }
.rank-list--full .rank-list__row { padding-block: var(--sp-3); border-bottom: 1px solid var(--line); }
.rank-list--full .rank-list__num { font-size: var(--fs-lg); }

.badge {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--r-sm);
  background: var(--brand); color: var(--text-invert); font-size: var(--fs-xs); font-weight: 700;
}
.chapter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.chapter-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--text-body); font-size: var(--fs-sm);
}
.chapter-item small { color: var(--brand-ink); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.chapter-item:hover { background: var(--brand-surface); }
@media (max-width: 900px) { .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .chapter-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .chapter-item { font-size: var(--fs-xs); }
}

.info-card {
  display: flex; flex-direction: column; gap: 10px; padding: var(--sp-5);
  background: var(--surface-2); border-radius: var(--r-lg);
}
.info-card__num { font-family: var(--font-num); font-size: var(--fs-xs); font-weight: 700; color: var(--brand-ink); }
.info-card h2 { font-size: 20px; }
.info-card p { font-size: var(--fs-sm); color: var(--text-body); }

.faq { display: flex; flex-direction: column; gap: var(--sp-3); }
.qa { padding-block: var(--sp-3); border-bottom: 1px solid var(--line); }
.qa summary { font-size: var(--fs-body); font-weight: 700; color: var(--text); cursor: pointer; }
.qa p { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--text-muted); }
.empty-state { padding: var(--sp-8) 0; text-align: center; color: var(--text-muted); font-size: var(--fs-sm); }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: var(--sp-7); }
.pager button {
  min-width: 34px; min-height: 34px; padding-inline: 10px; border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--text-body); font-size: var(--fs-xs);
}
.pager button.is-active { background: var(--brand); color: var(--text-invert); font-weight: 700; }
.pager button[disabled] { opacity: .55; cursor: default; }

/* ---- blocks.css ---- */
/* 页面级区块：站头站尾 / 各页首屏 / 详情 / 下载 / 说明条。
   每个区块的响应式覆盖紧跟在它自己的定义后面。 */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); height: 84px; }
.header-line { height: 1px; background: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
/* 图片当品牌标记：固定尺寸 + 防 flex 压缩 + 防拉伸变形 */
.brand__logo { width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 21px; color: var(--text); }
.brand__text small { font-family: var(--font-num); font-size: 9px; letter-spacing: .14em; color: var(--text-muted); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav__link { font-size: var(--fs-body); color: var(--text-body); white-space: nowrap; }
.nav__link:hover { color: var(--brand-ink); }
.nav__link.is-active { color: var(--brand-ink); font-weight: 700; }
.nav__link--mobile { display: none; }
.header__actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); }
@media (max-width: 1100px) { .nav { gap: 20px; } }
@media (max-width: 900px) {
  .header__inner { height: 60px; }
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--sp-3) var(--gutter) var(--sp-5);
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(12, 74, 58, .10);
  }
  .nav.is-open { display: flex; }
  .nav__link { padding-block: 10px; border-bottom: 1px solid var(--surface-2); }
  .nav__link--mobile { display: block; }
}
@media (max-width: 560px) {
  .brand__logo { width: 30px; height: 30px; flex: 0 0 30px; }
  .brand__text strong { font-size: 16px; }
  .brand__text small { display: none; }
}

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); }
.section-head__title { font-size: var(--fs-h2); }
.section-head__note { font-size: var(--fs-xs); color: var(--text-muted); }
@media (max-width: 560px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

.hero { background: linear-gradient(115deg, var(--brand-surface-2), var(--brand-surface-3)); }
.hero__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-7); min-height: 440px; padding-block: var(--sp-7); }
.hero__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-5); max-width: 610px; min-width: 0; }
.hero__title { font-size: var(--fs-display); line-height: 1.18; }
.hero__lead { max-width: 560px; font-size: var(--fs-body); color: var(--text-body); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__body .data-bar { width: 100%; max-width: 510px; margin-top: var(--sp-2); }
.hero__covers { display: flex; align-items: flex-end; justify-content: flex-end; flex-wrap: wrap; gap: 12px; width: 620px; max-width: 100%; }
.hero__cover { width: 168px; height: 236px; aspect-ratio: auto; object-fit: cover; border-radius: var(--r-sm); box-shadow: 0 8px 22px rgba(12, 74, 58, .18); }
.hero__cover--feature { width: 216px; height: 306px; }
.hero__covers-note { width: 100%; text-align: right; font-size: var(--fs-xs); color: var(--text-muted); }
@media (max-width: 1100px) {
  .hero__cover { width: 132px; height: 186px; }
  .hero__cover--feature { width: 168px; height: 236px; }
  .hero__covers { width: 460px; }
}
@media (max-width: 900px) { .hero__inner { min-height: 0; } .hero__covers { display: none; } }
@media (max-width: 560px) {
  .hero__inner { padding-block: var(--sp-6); }
  .hero__body { gap: var(--sp-4); }
  .hero__body .data-bar { margin-top: 0; }
  .hero__body .hero__actions { align-self: stretch; }   /* 左对齐列里按钮组要显式撑满 */
  .hero__actions .btn { flex: 1 1 0; min-width: 0; padding-inline: 8px; }
}

.filter-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.filter-bar__inner { display: flex; align-items: center; gap: var(--sp-5); padding-block: var(--sp-5); }
.filter-bar__label { flex: 0 0 auto; font-size: var(--fs-xs); font-weight: 700; color: var(--text); }
.filter-bar .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-bar__note { margin-left: auto; font-size: var(--fs-xs); color: var(--text-muted); }
@media (max-width: 560px) {
  .filter-bar__inner { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .filter-bar__note { margin-left: 0; }
}

.page-hero { padding-block: var(--sp-7) var(--sp-6); }
.page-hero--soft, .page-hero--about { background: linear-gradient(115deg, var(--brand-surface-2), var(--brand-surface-3)); }
.page-hero--search { background: var(--brand-surface); }
.page-hero__title { margin-top: var(--sp-2); font-size: var(--fs-h1); }
.page-hero__lead { max-width: var(--w-prose); margin-top: var(--sp-3); font-size: var(--fs-body); color: var(--text-body); }
@media (max-width: 560px) { .page-hero { padding-block: var(--sp-6); } }

.search-box { display: flex; gap: 12px; align-items: center; margin-top: var(--sp-5); padding: 8px; max-width: var(--w-prose); background: var(--surface); border-radius: var(--r-card); }
.search-box__input { flex: 1; min-width: 0; height: 40px; padding-inline: 10px; border: 0; outline: 0; background: transparent; font-size: var(--fs-lg); }
.page-hero--search .page-hero__lead { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--text-muted); }
@media (max-width: 560px) { .search-box__input { font-size: var(--fs-sm); } .search-box .btn { padding-inline: 14px; } }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.toolbar__note { font-size: var(--fs-xs); color: var(--text-muted); }
.toolbar__aside { display: flex; align-items: center; gap: var(--sp-4); }
.toolbar__clear { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.toolbar__clear[hidden], [data-toolbar-note][hidden] { display: none; }
@media (max-width: 560px) { .toolbar { flex-direction: column; align-items: flex-start; } }

.breadcrumb { border-bottom: 1px solid var(--line); }
.breadcrumb__inner { display: flex; gap: 10px; padding-block: var(--sp-3); font-size: var(--fs-xs); color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-ink); }

.detail__inner { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 44px; }
.detail__cover-img { width: 262px; height: 360px; aspect-ratio: auto; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.detail__cover figcaption { margin-top: 12px; font-size: var(--fs-xs); color: var(--text-muted); }
.detail__body { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.detail__status { display: flex; align-items: center; gap: 12px; font-size: var(--fs-xs); color: var(--text-muted); }
.detail__title { font-size: 42px; }
.detail__byline { font-size: var(--fs-sm); color: var(--text-muted); }
.detail__subtitle { font-size: var(--fs-sm); font-weight: 700; }
.detail__intro { font-size: var(--fs-body); color: var(--text-body); }
.detail__hint { font-size: var(--fs-xs); color: var(--text-muted); }
@media (max-width: 900px) {
  .detail__inner { grid-template-columns: 180px minmax(0, 1fr); gap: var(--sp-5); }
  .detail__cover-img { width: 180px; height: 250px; }
  .detail__title { font-size: 32px; }
}
@media (max-width: 560px) {
  .detail__inner { grid-template-columns: 108px minmax(0, 1fr); gap: var(--sp-4); }
  .detail__cover-img { width: 108px; height: 150px; }
  .detail__cover figcaption { display: none; }
  .detail__body { gap: var(--sp-3); }
  .detail__title { font-size: 22px; }
  .detail__byline, .detail__intro { font-size: var(--fs-xs); }
  .detail__body .data-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .detail__body .hero__actions .btn { flex: 1 1 100%; }
}

.download-hero { background: var(--brand-deep); color: var(--text-invert-mute); }
.download-hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 60px; padding-block: var(--sp-8); }
.download-hero__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-5); max-width: 660px; }
.download-hero__title { font-size: 46px; color: var(--text-invert); }
.download-hero__lead { font-size: var(--fs-body); }
.download-hero__note, .download-hero .kicker { color: var(--brand-surface-3); }
.qr-plate {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: 360px; max-width: 100%; padding: var(--sp-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  text-align: center; flex: 0 0 auto;
}
.qr-plate__img { width: 240px; height: 240px; }
.qr-plate__title { font-size: var(--fs-body); font-weight: 700; color: var(--text); }
@media (max-width: 900px) { .download-hero__inner { flex-direction: column; align-items: flex-start; } }
@media (max-width: 560px) {
  .download-hero__inner { padding-block: var(--sp-6); gap: var(--sp-5); }
  .download-hero__title { font-size: 30px; }
  .download-hero__body { gap: var(--sp-4); }
  .qr-plate { width: 100%; padding: var(--sp-4); }
  .qr-plate__img { width: 180px; height: 180px; }
}

.callout { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4); padding: 36px; background: var(--brand); color: var(--text-invert-mute); border-radius: var(--r-lg); }
.callout__title { font-size: 30px; color: var(--text-invert); }
.callout__note { font-size: var(--fs-xs); }
@media (max-width: 560px) { .callout { padding: var(--sp-5); } .callout__title { font-size: 24px; } }

.notice-strip { padding-block: 30px; background: var(--surface-2); color: var(--text-body); font-size: var(--fs-body); }
.notice-strip--info { background: var(--brand-surface); }
.notice-strip--brand { background: var(--brand-surface); }
.notice-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); }
.notice-strip strong { color: var(--brand-deep); }
@media (max-width: 560px) { .notice-strip__inner { flex-direction: column; align-items: flex-start; } }

/* 下载页：版本更新。左列版本信息，右列该版本的更新条目。 */
.changelog { display: flex; flex-direction: column; margin-top: var(--sp-4); }
.release { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--sp-6); padding-block: var(--sp-5); border-bottom: 1px solid var(--line); }
.release:first-child { padding-top: 0; }
.release__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.release__ver { font-family: var(--font-num); font-size: 26px; font-weight: 700; color: var(--brand-ink); }
.release__date { font-family: var(--font-num); font-size: var(--fs-xs); color: var(--text-muted); }
.release__tag { padding: 3px 10px; border-radius: var(--r-sm); background: var(--brand); color: var(--text-invert); font-size: var(--fs-xs); font-weight: 700; }
.release__title { font-size: var(--fs-lg); color: var(--text); }
.release__list { margin-top: 10px; padding-left: 18px; list-style: disc; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); color: var(--text-body); }
.changelog__note { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--text-muted); }
@media (max-width: 700px) {
  .release { grid-template-columns: 1fr; gap: var(--sp-3); }
  .release__meta { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; }
}
.rule-list__todo { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--text-muted); }

.site-footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-7); padding-block: var(--sp-6); }
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__brand strong { font-size: 20px; color: var(--text); }
.footer__brand span { font-size: var(--fs-xs); color: var(--text-muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 28px; font-size: var(--fs-xs); }
.footer__links a:hover { color: var(--brand-ink); }
.footer__bottom { display: flex; justify-content: space-between; gap: var(--sp-4); padding-block: var(--sp-3); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-muted); }
@media (max-width: 560px) {
  .footer__inner, .footer__bottom { flex-direction: column; gap: var(--sp-4); }
  .footer__links { gap: 16px; }
}
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  height: 56px; align-items: center; justify-content: center;
  background: var(--brand); color: var(--text-invert); font-size: var(--fs-body); font-weight: 700;
}
@media (max-width: 560px) { .mobile-bar { display: flex; } }
