/* 三层结构专用：L1 大版本入口 / L2 代际清单 / L3 下载面板
   命名前缀 ed-（edition）与 dl-file，避免与既有 blocks.css 的 ver-* 混淆。 */

/* ---------- 区块副标题 ---------- */
.sec-sub {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--text-mid);
}
.sec-sub a { color: var(--brand-ink); }
.sec-sub a:hover { text-decoration: underline; }

/* ---------- L1：大版本卡片网格 ---------- */
.ed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: var(--sp-4);
  margin-top: 28px;
}
.ed-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  background: var(--surface);
  border-radius: var(--r-card);
  color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 18, 31, .08);
}
.ed-card__tag { font-size: 22px; font-weight: 700; line-height: 1.25; }
.ed-card__note { font-size: var(--fs-tiny); color: var(--text-muted); }
.ed-card__stat { font-size: var(--fs-micro); color: var(--text-muted); }
.ed-card__go {
  position: absolute;
  top: 20px; right: 20px;
  color: var(--text-muted);
  transition: color .15s ease;
}
.ed-card:hover .ed-card__go { color: var(--brand-ink); }

/* 更早版本折叠（无安装包的代际） */
.ed-more { margin-top: var(--sp-5); }
.ed-more__sum {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  font-size: var(--fs-small);
  color: var(--text-mid);
  cursor: pointer;
}
.ed-more__sum:hover { color: var(--text); }
.ed-more__body { margin-top: var(--sp-3); }

/* 选版本引导 */
.pick {
  display: grid;
  gap: 10px;
  padding: var(--sp-6);
  background: var(--surface);
  border-radius: var(--r-card);
}
.pick h3 { font-size: 16px; font-weight: 600; line-height: 1.45; }
.pick p { font-size: var(--fs-small); line-height: 1.7; color: var(--text-mid); }

/* ---------- L2：大版本页 ---------- */
/* 这一代的说明：左侧竖线导语，和站内其它导语一致 */
.ed-hl {
  margin-top: var(--sp-5);
  padding-left: 14px;
  border-left: 2px solid var(--line);
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--text-mid);
}
.ed-vers {
  display: grid;
  gap: 2px;
  margin-top: 20px;
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
}
.ed-ver {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px 92px 24px;
  gap: var(--sp-3);
  align-items: center;
  padding: 16px 24px;
  color: var(--text);
  transition: background .15s ease;
}
.ed-ver:hover { background: var(--paper); }
.ed-ver__name { font-size: 15px; font-weight: 500; }
.ed-ver__meta, .ed-ver__size { font-size: var(--fs-micro); color: var(--text-muted); }
.ed-ver__go { color: var(--text-muted); display: grid; place-items: center; }

/* 前后代际导航 */
.ed-rail {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.ed-rail__item {
  flex: 1 1 240px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 18px 22px;
  background: var(--surface);
  border-radius: var(--r-card);
  color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ed-rail__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 18, 31, .06);
}
.ed-rail__dir { grid-column: 1; font-size: var(--fs-micro); color: var(--text-muted); }
.ed-rail__name { grid-column: 1; font-size: 18px; font-weight: 600; }
.ed-rail__go { grid-column: 2; grid-row: 1 / span 2; color: var(--text-muted); display: grid; place-items: center; }

/* ---------- L3：下载面板 ---------- */
.dl-panel {
  display: grid;
  gap: 12px;
  margin-top: var(--sp-6);
  padding: var(--sp-6);
  background: var(--surface);
  border-radius: var(--r-card);
  scroll-margin-top: 24px;
}
.dl-panel__title { font-size: 18px; font-weight: 700; }
.dl-file {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 14px var(--sp-4);
  background: var(--paper);
  border-radius: 12px;
}
.dl-file__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dl-file__name { font-size: var(--fs-small); font-weight: 500; overflow-wrap: anywhere; }
.dl-file__meta { font-size: var(--fs-micro); color: var(--text-muted); }
.dl-file__acts {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
}

@media (max-width: 860px) {
  .ed-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .ed-ver { grid-template-columns: minmax(0, 1fr) 24px; row-gap: 2px; padding: 14px var(--sp-5); }
  .ed-ver__name { grid-column: 1 / -1; }
  .ed-ver__meta, .ed-ver__size { grid-column: 1; }
  .ed-ver__go { grid-column: 2; grid-row: 2; }
  .dl-file { flex-wrap: wrap; }
  .dl-file__acts { margin-left: 0; width: 100%; }
}

/* 手机：两列（一列会让十几个大版本拉成一条几屏长的列表） */
@media (max-width: 560px) {
  .ed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ed-card { padding: 16px 18px; }
  .ed-card__tag { font-size: 18px; }
  .ed-card__go { top: 14px; right: 14px; }
}

/* ---------- L3 大版本更新内容 ---------- */
.upd-list {
  display: grid;
  gap: 10px 40px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.upd-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}
.upd-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
@media (min-width: 861px) {
  .upd-list { grid-template-columns: 1fr 1fr; }
}
