.page-home {
  --home-rail-w: 208px;
  --home-gap: clamp(24px, 4vw, 56px);
  --home-edge: calc(var(--header-h) + 18px);
  color: var(--ink);
  padding-bottom: 0;
}

/* ---------- 页面上下文条 ---------- */
.page-home .home-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(18px, 2.5vw, 30px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sky);
}
.page-home .home-context__badge {
  display: inline-block;
  padding: 3px 9px;
  background: var(--deep);
  color: var(--paper);
  letter-spacing: 0.1em;
}
.page-home .home-context__sep {
  color: var(--sand);
}

/* ---------- 开场声明 ---------- */
.page-home .home-open__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 40px);
  align-items: end;
}
.page-home .home-open__lede h1 {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(2.15rem, 6.2vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--deep);
}
.page-home .home-open__lede h1::after {
  content: "";
  display: block;
  width: 88px;
  height: 7px;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--clay), var(--orange));
}
.page-home .home-open__lead {
  max-width: 32em;
  margin: 22px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.9;
  color: var(--ink);
}
.page-home .home-open__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.page-home .home-open__media {
  position: relative;
  margin: 0;
  border: 1px solid var(--deep);
  overflow: hidden;
  background: var(--paper-dim);
}
.page-home .home-open__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(242, 103, 34, 0.14), rgba(14, 42, 66, 0.22));
  pointer-events: none;
}
.page-home .home-open__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- 首屏目录 ---------- */
.page-home .home-toc {
  margin-top: clamp(28px, 4vw, 48px);
}
.page-home .home-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--deep);
}
.page-home .home-toc__item {
  background: var(--paper);
}
.page-home .home-toc__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--deep);
  transition: background-color 0.18s ease;
}
.page-home .home-toc__link:hover,
.page-home .home-toc__link:focus-visible {
  background: var(--paper-dim);
}
.page-home .home-toc__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--clay);
}
.page-home .home-toc__label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
}

/* ---------- 主体三栏骨架 ---------- */
.page-home .home-body {
  margin-top: clamp(34px, 5vw, 66px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}
.page-home .home-flow {
  min-width: 0;
}

.page-home .home-rail {
  display: none;
}

/* ---------- 章节通用 ---------- */
.page-home .home-sec {
  padding-block: clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--sand);
  scroll-margin-top: var(--home-edge);
}
.page-home .home-sec:first-child {
  padding-top: 0;
  border-top: 0;
}
.page-home .home-sec--close {
  border-bottom: 1px solid var(--sand);
}
.page-home .home-sec .section-head {
  margin-bottom: clamp(16px, 2vw, 24px);
}
.page-home .home-round__lead,
.page-home .home-round__foot {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.85;
  max-width: 36em;
  color: var(--ink);
}
.page-home .home-round__foot a {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-home .home-round__foot a:hover {
  color: var(--orange-deep);
}
.page-home .home-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 01 复盘入口 ---------- */
.page-home .home-replay {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 28px);
}
.page-home .home-replay__media {
  margin: 0;
  border: 1px solid var(--deep);
  overflow: hidden;
  background: var(--paper-dim);
}
.page-home .home-replay__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.page-home .home-replay__body .prose {
  margin: 0;
}
.page-home .home-steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--deep);
}
.page-home .home-steps__item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 15px 16px;
  background: var(--paper);
}
.page-home .home-steps__num {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--orange);
  padding-top: 4px;
}
.page-home .home-steps__item strong {
  grid-column: 2;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  color: var(--deep);
}
.page-home .home-steps__item p {
  grid-column: 2;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--ink);
}

/* ---------- 02 清单 ---------- */
.page-home .home-round__stats {
  margin-top: 6px;
  border: 1px solid var(--deep);
}
.page-home .home-round__stats .stat {
  padding: 16px 16px 14px;
}
.page-home .home-round__stats .stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--deep);
  line-height: 1.05;
}
.page-home .stat__unit {
  font-size: 0.52em;
  margin-left: 3px;
  color: var(--sky);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.page-home .home-round__stats .stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--clay);
}

.page-home .home-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--deep);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
.page-home .home-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.page-home .home-table th,
.page-home .home-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--sand);
  vertical-align: middle;
}
.page-home .home-table thead th {
  background: var(--deep);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  border-bottom: 0;
}
.page-home .home-table tbody th {
  font-weight: 700;
  color: var(--deep);
}
.page-home .home-table tbody td {
  color: var(--ink);
  font-size: 0.88rem;
}
.page-home .home-table tbody tr:nth-child(even) {
  background: rgba(221, 214, 199, 0.28);
}
.page-home .home-table tbody tr:hover {
  background: rgba(30, 111, 168, 0.09);
}
.page-home .home-table tbody tr:last-child th,
.page-home .home-table tbody tr:last-child td {
  border-bottom: 0;
}
.page-home .home-table tbody td:nth-child(3) {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sky);
}
.page-home .home-table tbody td:nth-child(4) {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--jade-deep);
}

/* ---------- 03 我的主场 ---------- */
.page-home .home-teams {
  position: relative;
  margin-top: 22px;
  padding: 22px 0 6px;
}
.page-home .home-teams__texture {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0.08;
  pointer-events: none;
}
.page-home .home-teams__texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-home .home-teams__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.page-home .team-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--deep);
  padding: 20px 18px 18px;
  overflow: hidden;
}
.page-home .team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 4px;
  background: var(--clay);
}
.page-home .team-card:nth-child(2)::before {
  background: var(--sky);
}
.page-home .team-card:nth-child(3)::before {
  background: var(--jade);
}
.page-home .team-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.page-home .team-card__name {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--deep);
}
.page-home .team-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sky);
  border: 1px solid var(--sand);
  padding: 2px 7px;
  white-space: nowrap;
}
.page-home .team-card__record {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deep);
  letter-spacing: -0.01em;
}
.page-home .team-card__record span {
  color: var(--clay);
  font-size: 1.85rem;
}
.page-home .team-card__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 0;
  padding-top: 13px;
  border-top: 1px dashed var(--sand);
}
.page-home .team-card__split dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sky);
}
.page-home .team-card__split dd {
  margin: 5px 0 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  color: var(--ink);
}

/* ---------- 04 球员数据 ---------- */
.page-home .home-metrics {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--deep);
}
.page-home .home-metric {
  background: var(--paper);
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-home .home-metric:nth-child(1) { box-shadow: inset 0 4px 0 var(--clay); }
.page-home .home-metric:nth-child(2) { box-shadow: inset 0 4px 0 var(--sky); }
.page-home .home-metric:nth-child(3) { box-shadow: inset 0 4px 0 var(--jade); }
.page-home .home-metric:nth-child(4) { box-shadow: inset 0 4px 0 var(--orange); }
.page-home .home-metric:nth-child(5) { box-shadow: inset 0 4px 0 var(--amber); }
.page-home .home-metric__name {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--deep);
  letter-spacing: 0.01em;
}
.page-home .home-metric__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  font-weight: 700;
  line-height: 1;
  color: var(--deep);
}
.page-home .home-metric__unit {
  margin-left: 3px;
  font-size: 0.56em;
  font-weight: 500;
  color: var(--sky);
  letter-spacing: 0.04em;
}

/* ---------- 05 小屏版 ---------- */
.page-home .home-small {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 28px);
}
.page-home .home-small__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--deep);
  align-content: start;
}
.page-home .home-spec {
  background: var(--paper);
  padding: 14px 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.page-home .home-spec__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--clay);
}
.page-home .home-spec__v {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--deep);
}
.page-home .home-small__body .prose {
  margin: 0 0 16px;
}
.page-home .home-small__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- 06 收束 ---------- */
.page-home .home-close {
  border-left: 4px solid var(--orange);
  padding-left: clamp(16px, 2.4vw, 26px);
}
.page-home .home-close__line {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--deep);
}
.page-home .home-close__text {
  max-width: 32em;
  margin: 16px 0 0;
  font-family: var(--font-serif);
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--ink);
}
.page-home .home-close__contacts {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.page-home .home-copy {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 16px;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--deep);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.page-home .home-copy:hover,
.page-home .home-copy:focus-visible {
  border-color: var(--orange);
  background: var(--paper-dim);
}
.page-home .home-copy__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--sky);
}
.page-home .home-copy__value {
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
  color: var(--deep);
  word-break: break-all;
}
.page-home .home-close__more {
  margin: 20px 0 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink);
}
.page-home .home-close__more a {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-home .home-close__more a:hover {
  color: var(--orange-deep);
}

/* ---------- 页脚前地域纹理带 ---------- */
.page-home .home-terrain {
  position: relative;
  margin: clamp(36px, 5vw, 68px) 0 0;
  width: 100%;
  height: clamp(96px, 13vw, 190px);
  overflow: hidden;
  border-top: 1px solid var(--deep);
  border-bottom: 1px solid var(--deep);
}
.page-home .home-terrain::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(166, 58, 40, 0.42), rgba(242, 103, 34, 0.2) 52%, rgba(30, 111, 168, 0.34));
  pointer-events: none;
}
.page-home .home-terrain img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .home-toc__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-home .home-teams__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 800px) {
  .page-home .home-open__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 72px);
  }
  .page-home .home-open__media {
    transform: translateY(20px);
  }
  .page-home .home-replay {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    align-items: start;
  }
  .page-home .home-replay__media {
    position: sticky;
    top: var(--home-edge);
  }
  .page-home .home-small {
    grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
    align-items: start;
  }
  .page-home .home-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .page-home .home-toc__list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .page-home .home-body {
    grid-template-columns: var(--home-rail-w) minmax(0, 1fr);
    align-items: start;
  }
  .page-home .home-rail {
    display: block;
    position: sticky;
    top: var(--home-edge);
    padding-left: 15px;
    border-left: 3px solid var(--clay);
  }
  .page-home .home-rail .rail__title {
    margin: 0 0 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.11em;
    color: var(--clay);
  }
  .page-home .home-rail .rail__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
  }
  .page-home .home-rail .rail__link {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--deep);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  }
  .page-home .home-rail .rail__link:hover {
    background: var(--paper-dim);
    border-left-color: var(--sand);
  }
  .page-home .home-rail .rail__link[aria-current="location"] {
    background: var(--paper-dim);
    border-left-color: var(--orange);
    color: var(--sky);
  }
  .page-home .rail__num {
    font-family: var(--font-mono);
    color: var(--clay);
  }
  .page-home .home-teams__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-home .home-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .page-home .home-sec {
    padding-block: clamp(34px, 3.4vw, 58px);
  }
}

@media (min-width: 1200px) {
  .page-home .home-open__lead {
    font-size: 1.09rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-toc__link,
  .page-home .home-copy,
  .page-home .home-rail .rail__link {
    transition: none;
  }
  .page-home .home-open__media {
    transform: none;
  }
}
