.page-home {
  overflow-x: clip;
  background: var(--deep);
  color: var(--ink);
}

/* ---------- 页面上下文 ---------- */
.page-home .crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
}
.page-home .crumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--line);
}
.page-home .crumb a {
  color: var(--muted);
  text-decoration: none;
}
.page-home .crumb a:hover,
.page-home .crumb a:focus-visible {
  color: var(--cyan);
}

/* ---------- 专题封面首屏 ---------- */
.page-home .home-cover {
  position: relative;
  overflow: hidden;
  margin-top: clamp(16px, 3vw, 28px);
  padding: clamp(30px, 5vw, 68px) 0 clamp(38px, 6vw, 76px);
  border-block: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 84% 6%, rgba(122, 92, 255, .16), transparent 62%),
    var(--deep);
}
.page-home .home-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.page-home .cover-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  pointer-events: none;
}
.page-home .cover-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
}
.page-home .cover-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, var(--deep) 10%, rgba(7, 26, 47, .88) 48%, rgba(7, 26, 47, .38) 100%);
}
.page-home .cover-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}
.page-home .cover-main h1 {
  margin: .26em 0 .5em;
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 6.2vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--ink);
}
.page-home .cover-main h1 .hl {
  position: relative;
  color: var(--cyan);
}
.page-home .cover-main h1 .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .04em;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.page-home .cover-main .lede {
  max-width: 36em;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  color: var(--ink);
}
.page-home .cover-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: clamp(20px, 3vw, 30px);
}
.page-home .cover-hint {
  font-size: 12.5px;
  color: var(--muted);
}

.page-home .cover-index {
  margin-top: clamp(26px, 4vw, 42px);
  border-top: 1px solid var(--line);
}
.page-home .cover-index ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(10px, 2vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-home .cover-index a {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.page-home .cover-index a:hover,
.page-home .cover-index a:focus-visible {
  color: var(--cyan);
  border-color: var(--line-cyan);
}
.page-home .idx-num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--cyan);
}
.page-home .idx-text {
  line-height: 1.4;
}

.page-home .cover-stats {
  padding: 18px 20px 28px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(36, 46, 58, .95), rgba(27, 34, 43, .9));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}
.page-home .stats-title {
  margin: 0 0 4px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}
.page-home .cover-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.page-home .cover-stats .stat:first-of-type {
  border-bottom: 1px solid var(--line-signal);
}
.page-home .cover-stats .stat:last-child {
  border-bottom: 0;
}
.page-home .cover-stats .stat-num {
  font-family: var(--ff-mono);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.page-home .cover-stats .stat:first-of-type .stat-num {
  color: var(--orange);
}
.page-home .cover-stats .unit {
  margin-left: 2px;
  font-size: .58em;
}
.page-home .cover-stats .stat-label {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- 章节标题 ---------- */
.page-home .sec-head {
  max-width: 60ch;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.page-home .sec-head .display {
  margin: 10px 0 12px;
}
.page-home .sec-head .lede {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}
.page-home .section {
  padding-block: clamp(36px, 6vw, 72px);
}

/* ---------- Bento 入口矩阵 ---------- */
.page-home .bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.page-home .bento-cell {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--line);
  background: var(--panel);
}
.page-home .cell-lead {
  border-color: var(--line-cyan);
  background:
    linear-gradient(152deg, rgba(35, 240, 208, .09), transparent 48%),
    var(--panel);
}
.page-home .cell-title {
  margin: 0;
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--ink);
}
.page-home .cell-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}
.page-home .cell-lead .cell-text {
  color: var(--ink);
  font-size: 15px;
}
.page-home .cell-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}
.page-home .cell-facts li {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
}
.page-home .cell-facts .v {
  font-family: var(--ff-mono);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ice);
  font-variant-numeric: tabular-nums;
}
.page-home .cell-facts .k {
  font-size: 11.5px;
  color: var(--muted);
}
.page-home .cell-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}
.page-home .cell-link::after {
  content: "→";
  transition: transform var(--fast) var(--ease);
}
.page-home .cell-link:hover,
.page-home .cell-link:focus-visible {
  color: var(--ice);
}
.page-home .cell-link:hover::after,
.page-home .cell-link:focus-visible::after {
  transform: translateX(4px);
}
.page-home .cell-chart {
  padding: 0;
  overflow: hidden;
}
.page-home .cell-chart img {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 190px;
  object-fit: cover;
}
.page-home .cell-chart figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- 重点场次 ---------- */
.page-home .match-board {
  border: 1px solid var(--line);
  background: var(--graphite);
}
.page-home .match-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(36, 46, 58, .62);
}
.page-home .match-tab {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.page-home .match-tab:hover,
.page-home .match-tab:focus-visible {
  color: var(--ink);
  border-color: var(--line-cyan);
}
.page-home .match-tab--all {
  color: var(--ice);
  border-color: var(--line-cyan);
}
.page-home .match-board:has(.match-group:target) .match-group:not(:target) {
  display: none;
}
.page-home .match-board:has(.match-group:target) .match-tab--all {
  color: var(--muted);
  border-color: var(--line);
}
.page-home .match-board:has(#mg-league:target) .match-tab[href="#mg-league"],
.page-home .match-board:has(#mg-cup:target) .match-tab[href="#mg-cup"],
.page-home .match-board:has(#mg-youth:target) .match-tab[href="#mg-youth"] {
  color: var(--deep);
  background: var(--cyan);
  border-color: var(--cyan);
}
.page-home .match-group {
  padding: 4px clamp(14px, 2.5vw, 22px) 14px;
}
.page-home .match-group-title {
  margin: 16px 0 2px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--muted);
}
.page-home .match-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-home .match-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.page-home .match-row:last-child {
  border-bottom: 0;
}
.page-home .match-time {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--cyan);
}
.page-home .match-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.page-home .match-desc strong {
  margin-right: 6px;
  font-weight: 600;
  color: var(--ink);
}
.page-home .match-get {
  justify-self: start;
  padding-bottom: 1px;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.page-home .match-get:hover,
.page-home .match-get:focus-visible {
  color: var(--ice);
  border-color: var(--cyan);
}

/* ---------- 更新记录摘要 ---------- */
.page-home .updates-visual {
  margin: 0 0 clamp(20px, 3vw, 30px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--graphite);
}
.page-home .updates-visual img {
  display: block;
  width: 100%;
  height: auto;
}
.page-home .update-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.page-home .update-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.page-home .update-list p {
  flex: 1 1 240px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
}
.page-home .update-when {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.page-home .updates-more {
  margin-top: clamp(18px, 3vw, 24px);
}

/* ---------- 资料下载固定位 ---------- */
.page-home .dl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}
.page-home .dl-copy .lede {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
}
.page-home .dl-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.page-home .dl-formats li {
  padding: 5px 10px;
  border: 1px solid var(--line-signal);
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--orange);
}
.page-home .dl-note {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}
.page-home .dl-note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line-cyan);
}
.page-home .dl-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-cyan);
  background: var(--panel);
}
.page-home .dl-visual img {
  display: block;
  width: 100%;
  height: auto;
}
.page-home .dl-types {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--line);
  list-style: none;
}
.page-home .dl-types li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px 20px;
  background: var(--panel);
}
.page-home .dl-ico {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--orange);
}
.page-home .dl-types h3 {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.page-home .dl-types p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 底部改版说明折叠条带 ---------- */
.page-home .home-fold {
  padding: clamp(28px, 5vw, 52px) 0 clamp(40px, 7vw, 76px);
}
.page-home .home-fold .fold {
  border: 1px solid var(--line);
  background: var(--graphite);
}
.page-home .home-fold .fold-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px clamp(14px, 2.4vw, 22px);
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--fast) var(--ease);
}
.page-home .home-fold .fold-toggle:hover,
.page-home .home-fold .fold-toggle:focus-visible {
  background: rgba(35, 240, 208, .07);
}
.page-home .home-fold .fold-label {
  flex: 0 0 auto;
  padding: 4px 9px;
  background: var(--cyan);
  color: var(--deep);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
}
.page-home .home-fold .fold-text {
  flex: 1 1 auto;
  font-size: 14.5px;
  font-weight: 600;
}
.page-home .home-fold .fold-chevron {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--cyan);
  border-bottom: 1.5px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform var(--mid) var(--ease);
}
.page-home .home-fold .fold-toggle[aria-expanded="true"] .fold-chevron {
  transform: rotate(-135deg);
}
.page-home .home-fold .fold-inner {
  padding: 4px clamp(14px, 2.4vw, 22px) 22px;
  border-top: 1px solid var(--line-soft);
}
.page-home .fold-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
  padding-left: 1.3em;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
}
.page-home .fold-list li::marker {
  color: var(--cyan);
  font-family: var(--ff-mono);
  font-size: 12px;
}
.page-home .fold-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.page-home .fold-note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line-cyan);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .cover-index ol {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-home .dl-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .page-home .match-row {
    grid-template-columns: 172px minmax(0, 1fr) auto;
    align-items: center;
  }
  .page-home .match-get {
    justify-self: end;
  }
}

@media (min-width: 900px) {
  .page-home .cover-grid {
    grid-template-columns: minmax(0, 1fr) 272px;
    align-items: start;
  }
  .page-home .updates-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
  }
  .page-home .updates-body .sec-head {
    margin-bottom: 0;
  }
  .page-home .dl-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  }
}

@media (min-width: 960px) {
  .page-home .bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "lead  lead  chart"
      "sched rule  chart"
      "upd   coop  dl";
  }
  .page-home .cell-lead { grid-area: lead; }
  .page-home .cell-chart { grid-area: chart; }
  .page-home .cell-sched { grid-area: sched; }
  .page-home .cell-rule { grid-area: rule; }
  .page-home .cell-upd { grid-area: upd; }
  .page-home .cell-coop { grid-area: coop; }
  .page-home .cell-dl { grid-area: dl; }
  .page-home .cell-lead {
    padding: clamp(24px, 3vw, 34px);
  }
}

@media (min-width: 1040px) {
  .page-home .dl-types {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .cover-index a,
  .page-home .cell-link,
  .page-home .cell-link::after,
  .page-home .match-tab,
  .page-home .match-get,
  .page-home .home-fold .fold-toggle,
  .page-home .home-fold .fold-chevron {
    transition: none;
  }
}
