/* =========================================================
   首页 · page-home
   纵向叙事长卷，章节 01–07 由橙色刻线与留白推进
   ========================================================= */

.page-home {
  display: block;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}

/* ---------- 面包屑 ---------- */
.page-home .home-crumb {
  padding-top: clamp(1rem, 3vw, 1.75rem);
}
.page-home .home-crumb .breadcrumb {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: .18em;
  color: var(--fg-soft);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2.5rem, 6vw, 5rem);
}
.page-home .home-hero::after {
  content: "";
  position: absolute;
  top: -18%;
  right: -14%;
  width: min(560px, 52vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 0, .20), rgba(255, 107, 0, 0) 62%);
  pointer-events: none;
  z-index: 0;
}
.page-home .home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}

.page-home .home-hero h1 {
  margin: 0 0 1.1rem;
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.02em;
  max-width: 14ch;
}
.page-home .home-hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--orange) 62%, var(--orange) 94%, transparent 94%);
}
.page-home .home-hero__lead {
  margin: 0 0 1.75rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.85;
  color: var(--fg-soft);
}
.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
}

/* 章节预览目录 */
.page-home .home-preview {
  list-style: none;
  counter-reset: hp;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  border-top: var(--border) solid var(--ink);
}
.page-home .home-preview li {
  counter-increment: hp;
}
.page-home .home-preview a {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .7rem .25rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  font-size: .95rem;
  transition: background-color .2s var(--ease), padding-left .2s var(--ease);
}
.page-home .home-preview a::before {
  content: counter(hp, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--orange-deep);
}
.page-home .home-preview a::after {
  content: "→";
  font-family: var(--font-mono);
  color: var(--orange-deep);
}
.page-home .home-preview a:hover,
.page-home .home-preview a:focus-visible {
  background: rgba(255, 107, 0, .09);
  padding-left: .8rem;
}

/* 首屏侧栏：主题画面 + 状态台 */
.page-home .home-hero__aside {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-content: start;
}
.page-home .home-hero__figure {
  margin: 0;
}
.page-home .home-hero__figure img,
.page-home .home-figure img,
.page-home .band-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow-hard);
  background: var(--blue-deep);
  object-fit: cover;
}
.page-home .home-status {
  display: grid;
  gap: .65rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(158deg, var(--blue-deep), var(--navy));
  color: var(--fg-invert);
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow-hard);
}
.page-home .home-status__title {
  margin: 0 0 .25rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--gold);
}
.page-home .home-status__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding-bottom: .55rem;
  font-size: .85rem;
  border-bottom: 1px solid rgba(245, 245, 245, .16);
}
.page-home .home-status__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.page-home .home-status__val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--cloud);
}

/* ---------- 章节外壳 ---------- */
.page-home .home-section {
  position: relative;
  padding: clamp(2.75rem, 6vw, 5.5rem) 0;
}
.page-home .home-section--alt {
  background: var(--bg-alt);
}
.page-home .home-section--dark {
  background: linear-gradient(180deg, var(--blue-deep), var(--navy));
  color: var(--fg-invert);
}
.page-home .home-section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 215, 0, .07) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(90deg, rgba(255, 215, 0, .07) 0 1px, transparent 1px 20px);
  pointer-events: none;
}
.page-home .home-section--dark > .shell {
  position: relative;
  z-index: 1;
}

.page-home .home-section__head {
  position: relative;
  display: grid;
  gap: .85rem;
  max-width: 62ch;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}
.page-home .home-section__head::before {
  content: "";
  display: block;
  width: clamp(48px, 7vw, 88px);
  height: 6px;
  background: var(--orange);
}
.page-home .home-h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.01em;
}
.page-home .home-section__lead {
  margin: 0;
  max-width: 58ch;
  line-height: 1.85;
  color: var(--fg-soft);
}
.page-home .home-section__foot {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  font-size: .95rem;
  line-height: 1.85;
  color: var(--fg-soft);
}
.page-home .home-section__foot a {
  color: var(--orange-deep);
  text-underline-offset: 3px;
}
.page-home .home-section--dark .home-h2 {
  color: var(--fg-invert);
}
.page-home .home-section--dark .home-section__lead {
  color: rgba(245, 245, 245, .76);
}
.page-home .home-section--dark .home-section__head::before {
  background: var(--gold);
}

/* ---------- 12 列非对称栅格 ---------- */
.page-home .duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}
.page-home .home-figure {
  margin: 0;
}

@media (min-width: 960px) {
  .page-home .duo {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .page-home .duo__main {
    grid-column: 1 / span 7;
  }
  .page-home .duo__side {
    grid-column: 9 / span 4;
  }
  .page-home .duo--flip .duo__main {
    grid-column: 6 / span 7;
  }
  .page-home .duo--flip .duo__side {
    grid-column: 1 / span 4;
  }
}

/* ---------- 01 轮次时间轴 ---------- */
.page-home .home-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.page-home .tl-item {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1rem 0 1rem 1.1rem;
  border-left: 4px solid var(--steel);
  border-bottom: 1px solid var(--line);
  background: var(--cloud);
}
.page-home .tl-item--done {
  border-left-color: var(--blue);
  opacity: .82;
}
.page-home .tl-item--live {
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(255, 215, 0, .16), rgba(255, 215, 0, 0) 62%);
}
.page-home .tl-item--next {
  border-left-color: var(--orange);
}
.page-home .tl-item__time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}
.page-home .tl-item__body {
  display: grid;
  gap: .3rem;
}
.page-home .tl-item__state {
  justify-self: start;
  padding: .1rem .55rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--fg-invert);
  background: var(--blue);
}
.page-home .tl-item--done .tl-item__state {
  background: var(--steel);
  color: var(--ink);
}
.page-home .tl-item--next .tl-item__state {
  background: var(--orange);
  color: var(--ink);
}
.page-home .tl-item__cat {
  margin: 0;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--fg-soft);
}
.page-home .tl-item__match {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}
.page-home .tl-item__note {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: .82rem;
  color: var(--orange-deep);
}

/* ---------- 02 战报 ---------- */
.page-home .band-figure {
  margin: 0 0 clamp(1.75rem, 3vw, 2.75rem);
}
.page-home .band-figure img {
  height: clamp(170px, 25vw, 320px);
}
.page-home .score-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.page-home .score-card {
  display: grid;
  gap: .9rem;
  padding: 1.15rem;
  background: var(--cloud);
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow-hard);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.page-home .score-card:hover,
.page-home .score-card:focus-within {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--ink);
}
.page-home .score-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--orange-deep);
}
.page-home .score-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
}
.page-home .score-line__team {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.35;
}
.page-home .score-line__team--right {
  text-align: right;
}
.page-home .score-line__nums {
  display: flex;
  align-items: baseline;
  gap: .3rem;
}
.page-home .score-line__nums b {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1;
}
.page-home .score-line__nums i {
  font-style: normal;
  font-size: 1.4rem;
  color: var(--fg-soft);
}
.page-home .score-timeline {
  list-style: none;
  margin: 0;
  padding: .75rem 0 0;
  display: grid;
  gap: .35rem;
  border-top: 1px dashed var(--line);
}
.page-home .score-timeline li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: .6rem;
  font-size: .82rem;
  color: var(--fg-soft);
}
.page-home .score-timeline span {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--orange-deep);
}
.page-home .score-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem .9rem;
}
.page-home .score-stats div {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding-bottom: .25rem;
  font-size: .78rem;
  border-bottom: 1px dotted var(--line);
}
.page-home .score-stats dt {
  color: var(--fg-soft);
}
.page-home .score-stats dd {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- 03 导航图标 ---------- */
.page-home .nav-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.85rem, 2vw, 1.15rem);
}
.page-home .nav-tile {
  display: grid;
  align-content: start;
  gap: .55rem;
  height: 100%;
  padding: 1.1rem 1rem;
  background: var(--cloud);
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow-hard);
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.page-home .nav-tile:hover,
.page-home .nav-tile:focus-visible {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--ink);
}
.page-home .nav-tile__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--blue);
  color: var(--cloud);
  border: var(--border) solid var(--ink);
}
.page-home .nav-tile__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
.page-home .nav-tile__name {
  font-size: 1.05rem;
  font-weight: 800;
}
.page-home .nav-tile__desc {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--fg-soft);
}

/* ---------- 04 大屏规格 ---------- */
.page-home .spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .85rem;
}
.page-home .spec-list li {
  display: grid;
  grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-bottom: .85rem;
  border-bottom: 1px dashed rgba(245, 245, 245, .22);
}
.page-home .spec-list b {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  color: var(--gold);
}
.page-home .spec-list span {
  font-size: .92rem;
  line-height: 1.8;
  color: rgba(245, 245, 245, .82);
}

/* ---------- 05 译名 ---------- */
.page-home .fact-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
}
.page-home .fact {
  display: grid;
  gap: .35rem;
  padding: 1rem 1.15rem;
  background: var(--cloud);
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
}
.page-home .fact__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.55rem;
  line-height: 1.15;
}
.page-home .fact__label {
  font-size: .84rem;
  line-height: 1.6;
  color: var(--fg-soft);
}
.page-home .home-note {
  padding: 1.15rem 1.25rem;
  background: var(--blue);
  color: var(--fg-invert);
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow-hard);
}
.page-home .home-note__title {
  margin: 0 0 .6rem;
  font-family: var(--font-mono);
  font-size: .95rem;
  letter-spacing: .08em;
  color: var(--gold);
}
.page-home .home-note p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.85;
  color: rgba(245, 245, 245, .86);
}

/* ---------- 06 收藏步骤 ---------- */
.page-home .step-list {
  list-style: none;
  counter-reset: st;
  margin: 0;
  padding: 0;
  display: grid;
}
.page-home .step-list li {
  counter-increment: st;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.page-home .step-list li::before {
  content: counter(st, decimal-leading-zero);
  padding-top: .3rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--orange-deep);
}
.page-home .step-list__title {
  margin: 0 0 .3rem;
  font-size: 1.02rem;
  font-weight: 700;
}
.page-home .step-list__desc {
  margin: 0;
  font-size: .88rem;
  line-height: 1.75;
  color: var(--fg-soft);
}

/* ---------- 07 站内索引 ---------- */
.page-home .home-figure--square img {
  aspect-ratio: 1 / 1;
}
.page-home .idx {
  display: grid;
  gap: .85rem;
}
.page-home .idx-group {
  background: var(--cloud);
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow-hard-sm);
}
.page-home .idx-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 700;
}
.page-home .idx-group > summary::-webkit-details-marker {
  display: none;
}
.page-home .idx-group > summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--orange-deep);
}
.page-home .idx-group[open] > summary::after {
  content: "−";
}
.page-home .idx-group > summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.page-home .idx-list {
  list-style: none;
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  display: grid;
  gap: .35rem;
}
.page-home .idx-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem .5rem;
  border-bottom: 1px dashed var(--line);
  color: inherit;
  text-decoration: none;
  font-size: .92rem;
  transition: background-color .18s var(--ease), padding-left .18s var(--ease);
}
.page-home .idx-list a:hover,
.page-home .idx-list a:focus-visible {
  background: rgba(255, 107, 0, .09);
  padding-left: .9rem;
}
.page-home .idx-list__tag {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--orange-deep);
}

/* ---------- 中等屏 ---------- */
@media (min-width: 640px) {
  .page-home .fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 700px) {
  .page-home .nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .page-home .score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- 桌面首屏栅格 ---------- */
@media (min-width: 1000px) {
  .page-home .home-hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .page-home .home-hero__copy {
    grid-column: 1 / span 7;
  }
  .page-home .home-hero__aside {
    grid-column: 9 / span 4;
  }
}

@media (max-width: 999px) {
  .page-home .home-hero__copy {
    grid-row: 2;
  }
  .page-home .home-hero__aside {
    grid-row: 1;
  }
}

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

/* ---------- 大屏 ---------- */
@media (min-width: 1600px) {
  .page-home .score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
  .page-home .score-line__nums b {
    font-size: 4.5rem;
  }
  .page-home .tl-item__match {
    font-size: 1.15rem;
  }
  .page-home .band-figure img {
    height: 360px;
  }
}

/* ---------- 动效退化 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .nav-tile,
  .page-home .score-card,
  .page-home .home-preview a,
  .page-home .idx-list a {
    transition: none;
  }
  .page-home .nav-tile:hover,
  .page-home .nav-tile:focus-visible,
  .page-home .score-card:hover,
  .page-home .score-card:focus-within {
    transform: none;
  }
}
