/* ===================== page-home ===================== */

.page-home {
  --home-sec-pad: 62px;
  --home-card-bg: #FFFFFF;
  display: block;
}

@media (min-width: 768px) {
  .page-home {
    --home-sec-pad: 92px;
  }
}

.page-home .home-sec {
  padding: var(--home-sec-pad) 0;
  scroll-margin-top: 96px;
}

.page-home .home-sec--night {
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(15, 163, 160, 0.20), transparent 60%),
    linear-gradient(165deg, var(--yx-night-3) 0%, var(--yx-night) 58%, var(--yx-night-2) 100%);
  color: var(--yx-paper);
}

.page-home .home-sec--night .yx-h2,
.page-home .home-sec--night .yx-h3 {
  color: var(--yx-paper);
}

.page-home .home-sec--night .yx-prose {
  color: rgba(245, 247, 246, 0.76);
}

.page-home .home-sec--night .yx-chapter__num {
  color: var(--yx-lake-soft);
}

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

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 76px 0 58px;
  background:
    radial-gradient(88% 68% at 92% -8%, rgba(15, 163, 160, 0.28), transparent 62%),
    radial-gradient(70% 58% at 4% 108%, rgba(255, 106, 23, 0.16), transparent 66%),
    linear-gradient(158deg, var(--yx-night-3) 0%, var(--yx-night) 54%, var(--yx-night-2) 100%);
  color: var(--yx-paper);
}

@media (min-width: 768px) {
  .page-home .home-hero {
    padding: 96px 0 76px;
  }
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(245, 247, 246, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.42;
}

.page-home .home-hero > .yx-container {
  position: relative;
  z-index: 1;
}

.page-home .home-context {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--yx-lake-soft);
}

.page-home .home-context__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yx-lake);
  box-shadow: 0 0 0 4px var(--yx-lake-wash);
}

.page-home .home-hero__intro {
  max-width: 780px;
}

.page-home .home-hero .yx-eyebrow {
  color: var(--yx-lake-soft);
  margin: 0;
}

.page-home .home-hero .yx-title {
  margin: 14px 0 0;
  font-size: clamp(31px, 6.6vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--yx-paper);
}

.page-home .home-hero__lede {
  max-width: 48ch;
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(245, 247, 246, 0.78);
}

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

/* ---------- 首屏拼贴台 ---------- */

.page-home .hero-board {
  position: relative;
  display: grid;
  gap: 22px;
  margin-top: 42px;
}

@media (min-width: 900px) {
  .page-home .hero-board {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 40px;
    align-items: start;
    margin-top: 56px;
  }
}

.page-home .hero-link {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.page-home .hero-link__line {
  stroke: var(--yx-lake-soft);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  opacity: 0.7;
}

.page-home .hero-link.is-in .hero-link__line {
  animation: homeDrawLine 600ms ease-out forwards;
}

@keyframes homeDrawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@media (min-width: 900px) {
  .page-home .hero-link {
    display: block;
  }
}

.page-home .hero-board__side {
  position: relative;
}

.page-home .hero-board__main {
  position: relative;
}

@media (max-width: 899px) {
  .page-home .hero-board__side {
    order: 2;
  }

  .page-home .hero-board__main {
    order: 1;
  }
}

.page-home .hero-board__caption {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(111, 211, 206, 0.78);
}

.page-home .fixtures {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--yx-line-dark);
}

.page-home .fixtures__item {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0 13px 18px;
  border-bottom: 1px solid rgba(111, 211, 206, 0.14);
}

.page-home .fixtures__item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: rgba(111, 211, 206, 0.7);
}

.page-home .fixtures__item--live::before {
  background: var(--yx-orange);
  box-shadow: 0 0 0 4px var(--yx-orange-wash);
}

.page-home .fixtures__time {
  font-size: 14px;
  color: rgba(245, 247, 246, 0.62);
}

.page-home .fixtures__label {
  font-size: 14px;
  color: rgba(245, 247, 246, 0.9);
  min-width: 0;
}

.page-home .fixtures__item--live .fixtures__label {
  color: var(--yx-orange);
  font-weight: 600;
}

.page-home .fixtures__score {
  font-size: 15px;
  color: var(--yx-lake-soft);
}

.page-home .hero-board__track {
  margin-top: 20px;
  max-height: 208px;
  border: 1px solid var(--yx-line-dark);
  border-radius: var(--yx-radius);
  overflow: hidden;
}

.page-home .hero-board__track img {
  display: block;
  width: 100%;
  height: 208px;
  object-fit: cover;
}

/* ---------- 比分块 ---------- */

.page-home .home-score {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 268px;
  border: 1px solid var(--yx-line-dark);
  border-radius: var(--yx-radius-lg);
  background: var(--yx-night-2);
  box-shadow: var(--yx-shadow-lg);
  overflow: hidden;
}

.page-home .home-score__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.page-home .home-score::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(198deg, rgba(10, 26, 51, 0.32) 0%, rgba(10, 26, 51, 0.88) 76%);
}

.page-home .home-score__body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 30px 24px 26px;
}

@media (min-width: 768px) {
  .page-home .home-score__body {
    padding: 40px 38px 32px;
  }
}

.page-home .home-score__label {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yx-lake-soft);
}

.page-home .home-score__digits {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  font-family: var(--yx-mono);
  font-weight: 700;
  font-size: clamp(64px, 17vw, 118px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--yx-lime);
  transform: translateX(8px) skewX(var(--yx-tilt));
}

.page-home .home-score__sep {
  font-size: 0.52em;
  color: var(--yx-orange);
}

.page-home .home-score__meta {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 247, 246, 0.7);
}

/* ---------- 区间图例 ---------- */

.page-home .home-legend {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 18px 0 0;
  padding: 0;
}

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

.page-home .home-legend__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  color: rgba(245, 247, 246, 0.72);
}

.page-home .home-legend__chip {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.page-home .home-legend__chip--idle {
  background: rgba(245, 247, 246, 0.34);
}

.page-home .home-legend__chip--first {
  background: var(--yx-lake);
}

.page-home .home-legend__chip--half {
  background: var(--yx-lake-soft);
}

.page-home .home-legend__chip--second {
  background: var(--yx-orange);
}

.page-home .home-legend__chip--end {
  background: var(--yx-lime);
}

.page-home .home-legend__hint {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 3;
  max-width: 190px;
  margin-top: 4px;
  padding: 8px 11px;
  border: 1px solid var(--yx-line-dark);
  border-radius: 10px;
  background: var(--yx-night-3);
  color: rgba(245, 247, 246, 0.82);
  font-size: 12px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.page-home .home-legend__item:hover .home-legend__hint,
.page-home .home-legend__item:focus-within .home-legend__hint {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 章节索引条 ---------- */

.page-home .home-indexbar {
  background: var(--yx-paper);
  border-bottom: 1px solid var(--yx-line-soft);
}

.page-home .home-index {
  display: flex;
  gap: 10px;
  padding: 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .home-index::-webkit-scrollbar {
  display: none;
}

.page-home .home-index .yx-index__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--yx-line);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--yx-ink);
  font-size: 14px;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.page-home .home-index .yx-index__item:hover {
  border-color: var(--yx-lake);
  color: var(--yx-lake);
}

.page-home .home-index .yx-index__num {
  color: var(--yx-lake);
  font-family: var(--yx-mono);
  font-size: 12px;
}

/* ---------- 三步核对 ---------- */

.page-home .home-steps {
  list-style: none;
  display: grid;
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
}

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

.page-home .home-steps__item {
  padding: 24px 22px;
  border: 1px solid var(--yx-line);
  border-radius: var(--yx-radius);
  background: var(--home-card-bg);
  box-shadow: var(--yx-shadow);
}

.page-home .home-steps__idx {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--yx-lake-wash);
  color: var(--yx-lake);
  font-size: 13px;
}

.page-home .home-steps__item .yx-h3 {
  margin: 0 0 8px;
  color: var(--yx-night);
}

.page-home .home-steps__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--yx-ink);
}

.page-home .home-steps__hint {
  margin: 26px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--yx-orange);
  font-size: 15px;
  line-height: 1.75;
  color: var(--yx-ink);
}

.page-home .home-steps__hint a {
  color: var(--yx-lake);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 四类能力拼贴 ---------- */

.page-home .home-tiles {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

@media (min-width: 900px) {
  .page-home .home-tiles {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas:
      "lead lead lead lead lead lead lead a a a a a"
      "lead lead lead lead lead lead lead b b b b b"
      "lead lead lead lead lead lead lead c c c c c";
    gap: 18px;
  }
}

.page-home .home-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  border: 1px solid var(--yx-line-dark);
  border-radius: var(--yx-radius);
  background: linear-gradient(160deg, rgba(18, 41, 77, 0.94), rgba(10, 26, 51, 0.98));
}

.page-home .home-tile--lead {
  grid-area: lead;
  padding: 32px 26px;
  background: linear-gradient(150deg, rgba(15, 163, 160, 0.24) 0%, rgba(18, 41, 77, 0.94) 48%, rgba(10, 26, 51, 0.98) 100%);
}

.page-home .home-tile--a {
  grid-area: a;
}

.page-home .home-tile--b {
  grid-area: b;
}

.page-home .home-tile--c {
  grid-area: c;
}

.page-home .home-tile__kicker {
  margin: 0;
  font-family: var(--yx-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yx-lake-soft);
}

.page-home .home-tile .yx-h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.42;
  color: var(--yx-paper);
}

.page-home .home-tile p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(245, 247, 246, 0.74);
}

.page-home .home-tile__media {
  display: block;
  width: 100%;
  height: 132px;
  margin: -6px 0 4px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--yx-line-dark);
}

.page-home .home-tile__link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--yx-lake);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.page-home .home-sec--night .home-tile__link {
  color: var(--yx-lake-soft);
}

.page-home .home-tile__link:hover {
  color: var(--yx-orange);
}

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

.page-home .home-subs__panel {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}

@media (min-width: 900px) {
  .page-home .home-subs__panel {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 40px;
    align-items: start;
  }
}

.page-home .home-subs__art {
  border: 1px solid var(--yx-line);
  border-radius: var(--yx-radius);
  overflow: hidden;
  background: var(--home-card-bg);
}

.page-home .home-subs__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.page-home .home-subs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.page-home .home-sub {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  border: 1px solid var(--yx-line);
  border-radius: 999px;
  background: var(--home-card-bg);
  color: var(--yx-ink);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.page-home .home-sub:hover {
  border-color: var(--yx-lake-soft);
}

.page-home .home-sub[aria-pressed="true"] {
  border-color: var(--yx-lake);
  background: var(--yx-lake-wash);
  color: var(--yx-night);
  font-weight: 600;
}

.page-home .home-sub__mark {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--yx-lake);
  border-radius: 3px;
  transition: background 180ms ease;
}

.page-home .home-sub[aria-pressed="true"] .home-sub__mark {
  background: var(--yx-lake);
}

.page-home .home-subs__preview {
  margin: 20px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--yx-lake);
  border-radius: 0 var(--yx-radius) var(--yx-radius) 0;
  background: var(--home-card-bg);
  font-size: 15px;
  line-height: 1.75;
  color: var(--yx-ink);
}

/* ---------- 赛季档案 ---------- */

.page-home .home-archive {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}

@media (min-width: 900px) {
  .page-home .home-archive {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 40px;
  }
}

.page-home .home-archive__conds {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.page-home .home-archive__cond {
  padding: 10px 16px;
  border: 1px dashed var(--yx-line);
  border-radius: 999px;
  background: var(--home-card-bg);
  font-size: 15px;
  color: var(--yx-ink);
}

.page-home .home-archive__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.page-home .home-archive__stat {
  margin: 0;
  padding: 18px 14px;
  border: 1px solid var(--yx-line);
  border-radius: var(--yx-radius);
  background: var(--home-card-bg);
  box-shadow: var(--yx-shadow);
}

.page-home .home-archive__stat dt {
  font-size: 13px;
  color: var(--yx-ink-2);
}

.page-home .home-archive__stat dd {
  margin: 8px 0 0;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1;
  color: var(--yx-night);
}

.page-home .home-archive > .yx-btn {
  justify-self: start;
}

/* ---------- 窄屏与排查 ---------- */

.page-home .home-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 18px 20px;
  border: 1px solid rgba(184, 255, 74, 0.55);
  border-radius: var(--yx-radius);
  background: rgba(184, 255, 74, 0.05);
}

.page-home .home-note__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(245, 247, 246, 0.86);
}

.page-home .home-note__close {
  flex: 0 0 auto;
  padding: 9px 18px;
  border: 1px solid rgba(184, 255, 74, 0.7);
  border-radius: 999px;
  background: transparent;
  color: var(--yx-lime);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.page-home .home-note__close:hover {
  background: var(--yx-lime);
  color: var(--yx-night-3);
}

.page-home .home-compact__cols {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

@media (min-width: 900px) {
  .page-home .home-compact__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

.page-home .home-compact__col {
  padding: 26px 24px;
  border: 1px solid var(--yx-line-dark);
  border-radius: var(--yx-radius);
  background: linear-gradient(160deg, rgba(18, 41, 77, 0.9), rgba(10, 26, 51, 0.96));
}

.page-home .home-compact__col .yx-h3 {
  margin: 0 0 14px;
  color: var(--yx-paper);
}

.page-home .home-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(245, 247, 246, 0.76);
}

.page-home .home-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--yx-lake);
}

/* ---------- 团队 ---------- */

.page-home .home-team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

@media (min-width: 900px) {
  .page-home .home-team {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

.page-home .home-team__stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  border: 1px solid var(--yx-line);
  border-radius: var(--yx-radius);
  background: var(--home-card-bg);
  box-shadow: var(--yx-shadow);
}

.page-home .home-team__num {
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1;
  color: var(--yx-lake);
  transform: skewX(var(--yx-tilt));
}

.page-home .home-team__label {
  font-size: 14px;
  color: var(--yx-ink-2);
}

.page-home .home-team__meta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--yx-line);
}

.page-home .home-team__meta p {
  margin: 0;
  max-width: 78ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--yx-ink);
}

.page-home .home-team__meta .yx-mono {
  color: var(--yx-night);
  font-weight: 700;
}

.page-home .home-team__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 20px;
}

/* ---------- 动效退让 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-link__line {
    stroke-dashoffset: 0;
    animation: none !important;
  }

  .page-home .home-legend__hint,
  .page-home .home-sub,
  .page-home .home-sub__mark,
  .page-home .home-note__close,
  .page-home .home-index .yx-index__item {
    transition: none;
  }
}
