/* ===== 首页专属样式 · 全部限定在 .page-home 作用域内 ===== */

.page-home {
  --home-soft: rgba(242, 234, 215, 0.74);
  --home-dim: rgba(242, 234, 215, 0.52);
  --home-panel: rgba(14, 43, 36, 0.72);
  --home-line: rgba(127, 154, 166, 0.28);
  background: var(--night);
  color: var(--cream);
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  .page-home {
    padding-left: var(--rail-w);
  }
}

/* ---------- 共用块 ---------- */

.page-home .hp-section {
  padding: clamp(48px, 7vw, 92px) var(--gutter);
}

.page-home .hp-section__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.page-home .hp-section--turf {
  background: var(--turf);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.page-home .hp-section--paper {
  background: var(--cream);
  color: var(--ink);
}

.page-home .hp-section--paper .lede {
  color: rgba(29, 22, 16, 0.72);
}

.page-home .hp-section--paper .eyebrow {
  color: var(--rust);
}

.page-home .hp-section--paper .eyebrow::before {
  background: linear-gradient(90deg, var(--bronze) 0%, var(--rust) 100%);
}

.page-home .hp-section--cta {
  background:
    radial-gradient(120% 130% at 12% 0%, rgba(63, 240, 208, 0.12) 0%, rgba(7, 23, 38, 0) 58%),
    var(--night);
  border-top: 1px solid var(--home-line);
}

.page-home .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-home .eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 1px;
  background: var(--spine-x);
}

.page-home .section-title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 4.2vw, 34px);
  line-height: 1.24;
  letter-spacing: 0.02em;
  color: inherit;
}

.page-home .sub-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: inherit;
}

.page-home .lede {
  max-width: 62ch;
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--home-soft);
}

.page-home .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

.page-home .hp-section--paper .num {
  color: #0B6B5C;
}

.page-home .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.page-home .link-inline {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 240, 208, 0.42);
  padding-bottom: 2px;
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.page-home .link-inline:hover,
.page-home .link-inline:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.page-home .bracket-foot {
  margin: 26px 0 0;
  font-size: 15px;
}

.page-home .bracket-foot--left {
  margin-top: 18px;
}

.page-home :focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- 首屏 ---------- */

.page-home .hero {
  display: grid;
  gap: 0;
  padding: 28px var(--gutter) 0;
}

.page-home .hero__copy {
  padding-bottom: 32px;
}

@media (min-width: 900px) {
  .page-home .hero {
    grid-template-columns: 5fr 7fr;
    padding: 0;
    min-height: calc(100vh - var(--topbar-h, 56px));
  }

  .page-home .hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(48px, 5vw, 88px) clamp(28px, 3.4vw, 56px);
    padding-bottom: clamp(48px, 5vw, 88px);
  }
}

.page-home .hero h1 {
  margin: 16px 0 0;
  font-family: "Oswald", "Barlow Condensed", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  font-size: clamp(32px, 8vw, 56px);
  line-height: 1.12;
  letter-spacing: 0.015em;
  color: var(--cream);
}

@media (min-width: 900px) {
  .page-home .hero h1 {
    font-size: clamp(34px, 3.6vw, 58px);
  }
}

.page-home .hero .lede {
  margin-top: 18px;
  max-width: 46ch;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-home .hero__note {
  margin: 22px 0 0;
}

.page-home .hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 22px;
  overflow: hidden;
  background: var(--turf);
}

@media (min-width: 900px) {
  .page-home .hero__visual {
    min-height: 560px;
    padding: 40px 32px;
  }
}

.page-home .hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.8) contrast(1.1);
}

.page-home .hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 95% at 18% 6%, rgba(7, 23, 38, 0.28) 0%, rgba(7, 23, 38, 0.93) 72%),
    linear-gradient(180deg, rgba(14, 43, 36, 0.2) 0%, rgba(7, 23, 38, 0.6) 100%);
  pointer-events: none;
}

/* ---------- 签表 SVG ---------- */

.page-home .bracket {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 430px;
  height: auto;
}

.page-home .br-bg {
  fill: rgba(7, 23, 38, 0.32);
  stroke: rgba(127, 154, 166, 0.14);
  stroke-width: 1;
}

.page-home .br-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  fill: var(--mist);
}

.page-home .br-line {
  fill: none;
  stroke: url(#homeSpine);
  stroke-width: 1.6;
  opacity: 0.62;
}

.page-home .br-line--final {
  stroke-width: 2.4;
  opacity: 1;
}

.page-home .br-dot {
  fill: var(--night);
  stroke: var(--mist);
  stroke-width: 1.6;
}

.page-home .br-dot--live {
  fill: var(--cyan);
  stroke: var(--cyan);
  stroke-width: 1.2;
}

.page-home .br-dot--hot {
  fill: var(--gold);
  stroke: var(--gold);
}

.page-home .br-dot--champ {
  fill: var(--cream);
  stroke: var(--gold);
  stroke-width: 3;
}

@media (prefers-reduced-motion: no-preference) {
  .page-home .br-draw {
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    animation: home-draw 1.1s var(--ease) forwards;
  }

  .page-home .br-draw:nth-child(2) {
    animation-delay: 0.1s;
  }

  .page-home .br-draw:nth-child(3) {
    animation-delay: 0.2s;
  }

  .page-home .br-draw:nth-child(4) {
    animation-delay: 0.3s;
  }

  .page-home .br-draw:nth-child(5) {
    animation-delay: 0.4s;
  }

  .page-home .br-draw:nth-child(6) {
    animation-delay: 0.5s;
  }

  .page-home .br-draw:nth-child(7) {
    animation-delay: 0.6s;
  }

  .page-home .br-line--final {
    stroke-dasharray: 90;
    stroke-dashoffset: 90;
    animation: home-draw 0.9s var(--ease) 0.75s forwards;
  }
}

@keyframes home-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- 轮次标签与对阵编号 ---------- */

.page-home .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
}

.page-home .tab {
  min-height: 44px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--home-soft);
  background: var(--glass);
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.24s var(--ease), border-color 0.24s var(--ease), color 0.24s var(--ease);
}

.page-home .tab:hover {
  border-color: var(--mist);
  color: var(--cream);
}

.page-home .tab[aria-selected="true"] {
  color: var(--gold);
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(255, 162, 31, 0.22) 0%, rgba(255, 162, 31, 0.05) 100%);
}

.page-home .tabpanel {
  margin-top: 20px;
}

.page-home .tabpanel[hidden] {
  display: none;
}

.page-home .panel-note {
  margin: 0;
  font-size: 15px;
  color: var(--home-soft);
}

.page-home .code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .code-grid__item {
  padding: 11px 8px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: rgba(7, 23, 38, 0.5);
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  transition: border-color 0.24s var(--ease), color 0.24s var(--ease);
}

.page-home .code-grid__item:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------- 战报列表 ---------- */

.page-home .report-list {
  margin-top: 30px;
}

.page-home .report {
  padding: 22px 0;
  border-top: 1px solid var(--home-line);
}

.page-home .report:last-child {
  border-bottom: 1px solid var(--home-line);
}

.page-home .report__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.page-home .report__id {
  color: var(--mist);
  letter-spacing: 0.05em;
}

.page-home .report__time {
  color: var(--home-dim);
}

.page-home .report__title {
  margin: 12px 0 0;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--cream);
}

.page-home .report__text {
  max-width: 68ch;
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--home-soft);
}

/* ---------- 球员数据 ---------- */

.page-home .ps-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  background: rgba(29, 22, 16, 0.16);
  border: 1px solid rgba(29, 22, 16, 0.16);
}

@media (min-width: 720px) {
  .page-home .ps-stat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .ps-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  background: var(--cream);
}

.page-home .ps-stat__v {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.1;
  color: #0B6B5C;
}

.page-home .ps-stat__l {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(29, 22, 16, 0.68);
}

.page-home .players-grid {
  display: grid;
  gap: 32px;
  margin-top: 36px;
  align-items: start;
}

@media (min-width: 860px) {
  .page-home .players-grid {
    grid-template-columns: 6fr 6fr;
    gap: 44px;
  }
}

.page-home .players-copy p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(29, 22, 16, 0.78);
}

.page-home .sync-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
  font-size: 15px;
}

.page-home .media {
  margin: 0;
}

.page-home .media__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--night);
}

.page-home .media__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(127, 154, 166, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 154, 166, 0.16) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-home .media__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-home .media--square .media__frame {
  aspect-ratio: 1 / 1;
}

.page-home .media--wide .media__frame {
  aspect-ratio: 3 / 2;
}

.page-home .media--square .media__img,
.page-home .media--wide .media__img {
  height: 100%;
}

.page-home .media__caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(29, 22, 16, 0.62);
}

/* ---------- 档案区 ---------- */

.page-home .archive-grid {
  display: grid;
  gap: 34px;
  margin-top: 34px;
  align-items: start;
}

@media (min-width: 940px) {
  .page-home .archive-grid {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
  }
}

.page-home .coach {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-lg);
  background: rgba(7, 23, 38, 0.55);
}

@media (min-width: 940px) {
  .page-home .coach {
    margin-top: 26px;
  }
}

.page-home .coach__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.page-home .coach__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.08);
}

.page-home .coach__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 23, 38, 0.15) 0%, rgba(14, 43, 36, 0.85) 100%);
}

.page-home .coach__body {
  padding: 22px 22px 26px;
}

.page-home .coach__stamp {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  border: 1px solid rgba(255, 162, 31, 0.5);
  border-radius: var(--radius);
  transform: rotate(-1.5deg);
}

.page-home .coach__body p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--home-soft);
}

.page-home .coach__body p:last-child {
  margin-bottom: 0;
}

.page-home .archive-side .sub-title {
  margin-top: 22px;
}

.page-home .timeline {
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
  border-left: 1px solid var(--home-line);
  position: relative;
}

.page-home .timeline::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--spine);
  opacity: 0.85;
}

.page-home .timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 12px 0;
}

.page-home .timeline__dot {
  position: absolute;
  left: -27px;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mist);
}

.page-home .timeline__item--live .timeline__dot {
  background: var(--pulse);
  box-shadow: 0 0 0 4px rgba(255, 75, 62, 0.18);
}

@media (prefers-reduced-motion: no-preference) {
  .page-home .timeline__item--live .timeline__dot {
    animation: home-pulse 1.6s ease-in-out infinite;
  }
}

@keyframes home-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 75, 62, 0.5);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 75, 62, 0);
  }
}

.page-home .timeline__time {
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.page-home .timeline__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--home-soft);
}

/* ---------- 订阅 ---------- */

.page-home .subscribe-grid {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

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

.page-home .subscribe-grid .expander {
  background: var(--glass);
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease);
}

.page-home .subscribe-grid .expander[open] {
  border-color: rgba(63, 240, 208, 0.55);
  background: var(--glass-strong);
}

.page-home .subscribe-grid .expander__summary {
  padding: 18px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  cursor: pointer;
}

.page-home .subscribe-grid .expander__body {
  padding: 0 18px 20px;
}

.page-home .subscribe-grid .expander__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--home-soft);
}

/* ---------- 收尾入口 ---------- */

.page-home .cta-pair {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

@media (min-width: 760px) {
  .page-home .cta-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

.page-home .cta-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  text-decoration: none;
  color: var(--cream);
  background: rgba(14, 43, 36, 0.6);
  border: 1px solid var(--home-line);
  border-radius: var(--radius-lg);
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), background 0.24s var(--ease);
}

.page-home .cta-card:hover,
.page-home .cta-card:focus-visible {
  transform: translateY(-4px);
}

.page-home .cta-card:hover {
  border-color: var(--cyan);
  background: rgba(14, 43, 36, 0.85);
}

.page-home .cta-card--gold {
  background: linear-gradient(150deg, rgba(255, 162, 31, 0.2) 0%, rgba(107, 74, 28, 0.22) 100%);
  border-color: rgba(255, 162, 31, 0.42);
}

.page-home .cta-card--gold:hover {
  border-color: var(--gold);
  background: linear-gradient(150deg, rgba(255, 162, 31, 0.3) 0%, rgba(107, 74, 28, 0.28) 100%);
}

.page-home .cta-card__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-home .cta-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.35;
  color: var(--cream);
}

.page-home .cta-card__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--home-soft);
}

/* ---------- 窄屏收口 ---------- */

@media (max-width: 560px) {
  .page-home .code-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .page-home .report__title {
    font-size: 17px;
  }

  .page-home .timeline__item {
    grid-template-columns: 58px minmax(0, 1fr);
  }
}
