/* ==========================================================================
   pages.css — 页面组合件（各页局部结构）
   通用到全站的小件（.stack / .block）也放这里，避免再拆一层。
   ========================================================================== */

/* ---- 纵向区块栈 ------------------------------------------------------------ */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.stack--tight {
  gap: var(--sp-11);
}

/* ---- 带标题的小块 ---------------------------------------------------------- */
.block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.block__title {
  font-size: var(--fz-h3);
}

.block__sub {
  font-size: 17px;
  color: var(--text-muted);
}

.block__title--xl {
  font-size: var(--fz-h4);
}

@media (max-width: 860px) {
  .stack,
  .stack--tight {
    gap: var(--sp-9);
  }

  .block__sub {
    font-size: var(--fz-body);
  }
}

/* ---- 新手指南：步骤条 ------------------------------------------------------ */
.step-row {
  gap: var(--sp-2);
  padding: 24px 28px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-faint);
}

.step-row__title {
  font-size: var(--fz-card);
  font-weight: 600;
  color: var(--text);
}

.step-row__text {
  font-size: var(--fz-sm);
  line-height: var(--lh-body);
}

/* ---- 更新日志：条目 -------------------------------------------------------- */
.log-item {
  /* 缺 display:flex 时 gap 完全不生效，标题与正文会贴在一起 —— 别删 */
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: 20px 28px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-faint);
}

.log-item__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.log-item__text {
  font-size: var(--fz-xs);
  line-height: var(--lh-body);
}

/* ---- 更新日志：要点列表 ---------------------------------------------------- */
.log-points {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.log-points li {
  position: relative;
  padding-left: 18px;
  font-size: var(--fz-xs);
  line-height: var(--lh-body);
  color: var(--text-body);
}

.log-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-bright);
}

/* ---- 系统要求：键值表 ------------------------------------------------------ */
.spec {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--sp-3) var(--sp-7);
  font-size: var(--fz-sm);
  line-height: var(--lh-body);
}

.spec dt {
  color: var(--text-dim);
}

.spec dd {
  color: var(--text-body);
}

/* ---- 提示清单（01 / 02 / 03） ---------------------------------------------- */
.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  counter-reset: ck;
}

.checklist li {
  display: flex;
  gap: var(--sp-5);
  font-size: var(--fz-sm);
  line-height: var(--lh-body);
  color: var(--text-body);
}

.checklist li::before {
  counter-increment: ck;
  content: "0" counter(ck);
  flex: 0 0 auto;
  color: var(--gold);
  font-weight: 600;
}

/* ---- 外链条（历史版本） ---------------------------------------------------- */
.link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: 24px 32px;
  border-radius: var(--r-md);
  background: var(--surface-4);
  box-shadow: inset 0 0 0 1px var(--line-faint);
}

.link-row__text {
  font-size: var(--fz-sm);
}

.link-row__link {
  font-size: var(--fz-sm);
  font-weight: 600;
}

/* ---- 关于页：长段落用 .prose.prose--start，见 components.css ------------------ */

@media (max-width: 860px) {
  .spec {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-1) 0;
  }

  .spec dd {
    margin-block-end: var(--sp-3);
  }
}

/* ---- 数据表（版本对照 / 番剧源字段说明）------------------------------------- */
/* 新增页 source-guide / versions / repository 需要多列表格；
   窄屏用 .tbl-wrap 横向滚动，不挤压单元格文字。 */
.tbl-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-faint);
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fz-sm);
  line-height: var(--lh-body);
}

.tbl th,
.tbl td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-faint);
}

.tbl th {
  color: var(--text-dim);
  font-weight: 600;
  white-space: nowrap;
}

.tbl td {
  color: var(--text-body);
}

.tbl tr:last-child th,
.tbl tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 760px) {
  .tbl {
    font-size: var(--fz-xs);
  }

  .tbl th,
  .tbl td {
    padding: 12px 14px;
  }
}
