/* 页面局部块：画廊 / 版本速报 / 下载行 / 系统要求 / 历史版本 / 步骤 / 更新日志 / 帮助 / 横幅 */

/* ---------- 首页：截图画廊 ---------- */
.gallery__row { display: flex; justify-content: center; gap: var(--sp-6); flex-wrap: wrap; }
.gallery__row--phone { gap: var(--sp-8); margin-top: var(--sp-5); }
.gallery__item { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.gallery__item--desktop { flex: 0 1 480px; }
.gallery__item--phone { flex: 0 0 220px; }

@media (max-width: 1080px) {
  .gallery__item--desktop { flex: 0 1 340px; }
}
@media (max-width: 620px) {
  .gallery__row { gap: var(--sp-4); }
  .gallery__item--desktop { flex: 1 1 100%; }
  .gallery__row--phone { gap: var(--sp-5); margin-top: 0; }
  .gallery__item--phone { flex: 1 1 120px; max-width: 168px; }
}

/* ---------- 首页：版本速报 ---------- */
.release {
  width: min(960px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-7);
  border-radius: var(--r-lg);
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 1px var(--line);
}
.release__head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.release__date { font-size: var(--fs-body); color: var(--text-muted); }
.release__more { margin-left: auto; font-size: var(--fs-body); font-weight: 500; }
.release__list { display: flex; flex-direction: column; gap: var(--sp-3); }
.release__item { display: flex; align-items: flex-start; gap: var(--sp-3); }
.release__text { font-size: var(--fs-body); color: var(--text-body); }

@media (max-width: 620px) {
  .release { padding: var(--sp-5); }
  .release__more { margin-left: 0; }
}

/* ---------- 下载页：平台行 ---------- */
.dl-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: 20px 26px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
  scroll-margin-block-start: 96px; /* 锚点：android / ios / windows / macos / linux */
}
.dl-row__main { display: flex; align-items: center; gap: 18px; min-width: 0; }
.dl-row__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-surface);
  color: var(--brand);
  flex: none;
}
.dl-row__text { display: flex; flex-direction: column; gap: 5px; max-width: 470px; }
.dl-row__name { font-size: var(--fs-lg); font-weight: 600; color: var(--text); }
.dl-row__desc { font-size: var(--fs-xs); color: var(--text-muted); }
.dl-row__actions { display: flex; align-items: center; gap: 10px; flex: none; }

@media (max-width: 900px) {
  .dl-row { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .dl-row__text { max-width: none; }
}
@media (max-width: 480px) {
  .dl-row { padding: 18px; }
  .dl-row__actions { width: 100%; flex-wrap: wrap; }
  .dl-row__actions .btn { flex: 1 1 auto; }
}

/* ---------- 下载页：系统要求 ---------- */
.req-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--sp-6);
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
}
.req-card__title { font-size: 16px; font-weight: 600; color: var(--text); }
.req-card__item { font-size: var(--fs-xs); color: var(--text-body); }

/* ---------- 下载页：镜像提示 ---------- */
.notice {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 22px 28px;
  border-radius: var(--r-md);
  background: var(--brand-surface);
}
.notice__icon { flex: none; width: 34px; height: 34px; color: var(--brand); }
.notice__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.notice__title { font-size: var(--fs-body); font-weight: 600; color: var(--text); }
.notice__text { font-size: var(--fs-xs); color: var(--text-body); }
.notice__link { flex: none; font-size: var(--fs-sm); font-weight: 600; }

@media (max-width: 720px) {
  .notice { flex-wrap: wrap; padding: 18px; }
  .notice__link { margin-left: 50px; }
}

/* ---------- 下载页：历史版本 ---------- */
.ver-list {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.ver-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 17px 26px;
}
.ver-row + .ver-row { border-top: 1px solid var(--line); }
.ver-row__no { font-size: var(--fs-body); font-weight: 600; color: var(--text); flex: none; }
.ver-row__date { font-size: var(--fs-xs); color: var(--text-muted); flex: none; }
.ver-row__sum { flex: 1 1 auto; min-width: 0; font-size: var(--fs-xs); color: var(--text-muted); }
.ver-row__dl { flex: none; font-size: var(--fs-xs); font-weight: 500; }

@media (max-width: 720px) {
  .ver-row { flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); padding: 16px 18px; }
  .ver-row__sum { flex-basis: 100%; }
}

/* ---------- 下载页：三步上手 ---------- */
.step {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
  counter-increment: step;
}
.steps { counter-reset: step; }
.step__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 26px;
  border-radius: var(--r-sm);
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-size: var(--fs-2xs);
  font-weight: 700;
}
.step__no::before { content: "0" counter(step); }
.step__title { font-size: var(--fs-body); font-weight: 600; color: var(--text); }
.step__desc { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.7; }

/* ---------- 功能页：图文区块 ---------- */
.split__index { font-size: var(--fs-2xs); font-weight: 600; color: var(--brand-ink); letter-spacing: 0.08em; }
.split__title { font-size: var(--fs-h3); }
.split__desc { font-size: var(--fs-body); color: var(--text-body); }

/* ---------- 更新日志 ---------- */
.clog { display: flex; flex-direction: column; }
.clog__item {
  display: flex;
  gap: 36px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.clog__item:last-child { border-bottom: 0; }
.clog__meta { flex: 0 0 190px; display: flex; flex-direction: column; gap: 5px; }
.clog__ver { font-size: var(--fs-h5); font-weight: 700; color: var(--text); }
.clog__date { font-size: var(--fs-xs); color: var(--text-muted); }
.clog__date--latest { color: var(--brand-ink); }
.clog__changes { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.clog__row { display: flex; align-items: flex-start; gap: var(--sp-3); }
.clog__row p { font-size: var(--fs-sm); color: var(--text-body); }

@media (max-width: 760px) {
  .clog__item { flex-direction: column; gap: var(--sp-4); padding: 22px 0; }
  .clog__meta { flex-basis: auto; flex-direction: row; align-items: baseline; gap: var(--sp-3); }
}

/* ---------- 帮助页：分类卡 ---------- */
.quick-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: 22px;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.quick-card__title { font-size: var(--fs-body); font-weight: 600; color: var(--text); }
.quick-card__desc { font-size: var(--fs-2xs); color: var(--text-muted); }

/* ---------- 深色横幅（反馈 / 架构） ---------- */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: 26px 32px;
  border-radius: 18px;
  background: var(--footer-bg);
  color: #fff;
}
.banner__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.banner__title { font-size: 17px; font-weight: 600; color: #fff; }
.banner__text { font-size: var(--fs-xs); color: var(--text-invert-link); }
.banner .btn { flex: none; }

@media (max-width: 720px) {
  .banner { flex-direction: column; align-items: flex-start; padding: 22px; }
}

/* ---------- 关于页 ---------- */
.thanks-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-5);
  background: var(--surface);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.thanks-card__name { font-size: var(--fs-body); font-weight: 600; color: var(--text); }
.thanks-card__desc { font-size: var(--fs-2xs); color: var(--text-muted); }

.disclaimer-box {
  padding: 22px 26px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  font-size: var(--fs-2xs);
  line-height: 1.9;
  color: var(--text-muted);
}

/* 段落组 */
.stack-sm { display: flex; flex-direction: column; gap: var(--sp-4); }
.stack-md { display: flex; flex-direction: column; gap: var(--sp-5); }
.stack-lg { display: flex; flex-direction: column; gap: var(--sp-8); }
.center { text-align: center; }

/* ---------- 架构页：文档版式（左目录 + 右正文） ---------- */
.doc-layout {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: var(--sp-9);
  align-items: start;
}

/* 目录：桌面吸顶，移动端变横向胶囊条 */
.doc-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; }
.doc-nav__title {
  padding: 0 10px var(--sp-3);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.doc-nav a {
  display: flex;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--text-muted);
}
.doc-nav a:hover { background: var(--brand-surface-2); color: var(--brand-ink); text-decoration: none; }
.doc-nav a[aria-current="true"] { background: var(--brand-surface); color: var(--brand-ink); font-weight: 600; }
.doc-nav__no { flex: none; font-variant-numeric: tabular-nums; opacity: 0.65; }
.doc-nav__ext { margin-top: var(--sp-4); border-top: 1px solid var(--line); padding-top: var(--sp-4); }

/* 正文：章节之间用细线分隔，锚点避开吸顶站头 */
.doc-body { display: flex; flex-direction: column; gap: var(--sp-8); }
.doc-sec {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--line);
  scroll-margin-block-start: 92px;
}
.doc-sec:first-child { padding-top: 0; border-top: 0; }
.doc-sec__head { display: flex; flex-direction: column; gap: var(--sp-3); }
.doc-sec__no {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand-ink);
  text-transform: uppercase;
}
.doc-sec__title { font-size: var(--fs-h3); }
.doc-sec__lead { max-width: 780px; font-size: var(--fs-body); color: var(--text-body); }
.doc-note { font-size: var(--fs-2xs); color: var(--text-muted); line-height: 1.9; }
.doc-sub { font-size: 17px; font-weight: 600; color: var(--text); }

/* 01 分层示意图 */
.arch-map {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--sp-5);
  background: var(--surface-alt);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.arch-map__row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.arch-map__label { font-size: var(--fs-2xs); font-weight: 700; color: var(--brand-ink); }
.arch-map__nodes { display: flex; flex-wrap: wrap; gap: 8px; }
.arch-map__node {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--brand-surface);
  font-size: var(--fs-2xs);
  color: var(--brand-ink);
}
.arch-map__node--mute { background: var(--surface-tint); color: var(--text-body); box-shadow: inset 0 0 0 1px var(--line); }
.arch-map__arrow { display: grid; place-items: center; font-size: var(--fs-2xs); color: var(--text-muted); }

/* 编号步骤 */
.doc-steps { display: grid; gap: var(--sp-4); }
.doc-steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.doc-step {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.doc-step__no { flex: none; font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 700; color: var(--brand-ink); padding-top: 2px; }
.doc-step__title { font-size: var(--fs-body); font-weight: 600; color: var(--text); }
.doc-step__desc { margin-top: 5px; font-size: var(--fs-xs); line-height: 1.8; color: var(--text-body); }

/* 横向链路 */
.doc-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.doc-flow__node {
  padding: 7px 13px;
  border-radius: 9px;
  background: var(--brand-surface);
  font-size: var(--fs-2xs);
  font-weight: 500;
  color: var(--brand-ink);
}
.doc-flow__node--line { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-body); }
.doc-flow__arrow { font-size: var(--fs-2xs); color: var(--text-muted); }

/* 目录职责表 */
.doc-table { background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.doc-table__row {
  display: grid;
  /* 第三列用 auto：文件名长短差很多，固定宽度会把长路径挤成两行 */
  grid-template-columns: 168px minmax(0, 1fr) auto;
  gap: var(--sp-4);
  align-items: baseline;
  padding: 14px 22px;
  font-size: var(--fs-xs);
  color: var(--text-body);
}
.doc-table__row + .doc-table__row { border-top: 1px solid var(--line); }
.doc-table__row--head {
  background: var(--surface-tint);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.doc-table__dir { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--brand-ink); }
/* 表格里的源码链接是网格项，默认会被拉伸成整列宽，必须收回到内容宽度 */
.doc-table__row .srclink { justify-self: start; }

/* 源码入口 */
.srclinks { display: flex; flex-wrap: wrap; gap: 8px; }
.srclink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--brand-surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--brand-ink);
  word-break: break-all;
}
.srclink:hover { background: var(--brand-surface); text-decoration: none; }
.srclink svg { flex: none; opacity: 0.7; }
.srclinks__label { font-size: var(--fs-2xs); color: var(--text-muted); }

/* 07 基础设施卡 */
.doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.doc-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--sp-5);
  background: var(--surface);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.doc-card__title { font-size: var(--fs-body); font-weight: 600; color: var(--text); }
.doc-card__desc { font-size: var(--fs-xs); line-height: 1.8; color: var(--text-body); }

/* 架构页收尾：返回顶部 */
.doc-back { display: flex; justify-content: flex-start; padding-top: var(--sp-4); }

@media (max-width: 1180px) {
  .doc-table__row { grid-template-columns: 150px minmax(0, 1fr); }
  .doc-table__row > :last-child { grid-column: 2; }
}
@media (max-width: 1080px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); }
  .doc-nav {
    position: static;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: var(--sp-2);
    scrollbar-width: thin;
  }
  .doc-nav__title, .doc-nav__ext { display: none; }
  .doc-nav a {
    flex: none;
    padding: 7px 13px;
    border-radius: var(--r-pill);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    white-space: nowrap;
  }
  .doc-nav a[aria-current="true"] { box-shadow: inset 0 0 0 1px var(--brand); }
}
@media (max-width: 760px) {
  .doc-steps--2, .doc-cards { grid-template-columns: minmax(0, 1fr); }
  .arch-map { padding: var(--sp-4); }
  .arch-map__row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .doc-table__row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 18px; }
  .doc-table__row--head { display: none; }
  .doc-table__row > :last-child { grid-column: auto; }
  .doc-step { padding: var(--sp-4); }
}

/* ---------- 平台页：二选一对比表（安装版 / 便携版这类） ---------- */
.cmp {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.cmp__row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: baseline;
  padding: 14px 22px;
  font-size: var(--fs-xs);
  color: var(--text-body);
}
.cmp__row + .cmp__row { border-top: 1px solid var(--line); }
.cmp__row--head {
  background: var(--surface-tint);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.cmp__k { font-weight: 500; color: var(--text); }
.cmp__row--head .cmp__k { font-weight: 600; color: var(--text-muted); }
.cmp__v { min-width: 0; }
.cmp__v--pick { color: var(--brand-ink); font-weight: 500; }

@media (max-width: 900px) {
  .cmp__row { grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-3); padding: 13px 18px; }
}
@media (max-width: 760px) {
  /* 表头在窄屏隐藏，改用 data-label 在每个值前面标列名，避免"是/否"失去归属 */
  .cmp__row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px 18px; }
  .cmp__row--head { display: none; }
  .cmp__v::before {
    content: attr(data-label) " · ";
    color: var(--text-muted);
    font-weight: 500;
  }
}
