/* ===== 首页专属样式：作用域 .page-home ===== */

.page-home {
  --home-ghost-x: 6px;
  background-color: var(--ly-navy);
  color: var(--ly-mist);
  overflow-x: hidden;
}

/* ---------- 通用排版构件 ---------- */
.page-home .home-h2 {
  margin: 10px 0 0;
  font-family: var(--ly-font-display);
  font-size: clamp(25px, 4.4vw, 40px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.005em;
  color: var(--ly-mist);
  text-wrap: balance;
}

.page-home .home-lead {
  margin: 14px 0 0;
  max-width: 68ch;
  font-size: clamp(15px, 1.9vw, 17px);
  line-height: 1.78;
  color: rgba(233, 241, 246, 0.78);
}

.page-home .home-band {
  background-color: var(--ly-navy-deep);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(94vh, 820px);
  padding: clamp(70px, 16vw, 124px) 0 clamp(54px, 9vw, 92px);
  border-bottom: 1px solid var(--ly-line);
}

.page-home .home-hero__slabs {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero__slab {
  position: absolute;
  inset: 0;
  display: block;
}

.page-home .home-hero__slab--teal {
  background-image: linear-gradient(152deg, #125052 0%, var(--ly-teal) 46%, #072a2c 100%);
  clip-path: polygon(0 0, 64% 0, 44% 78%, 0 92%);
}

.page-home .home-hero__slab--indigo {
  background-image: linear-gradient(206deg, #24256e 0%, var(--ly-indigo) 52%, #0e0f34 100%);
  clip-path: polygon(64% 0, 100% 0, 100% 54%, 44% 78%);
  filter: drop-shadow(-1px 0 0 rgba(56, 232, 206, 0.45));
}

.page-home .home-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-home .home-hero__photo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: 68% 42%;
  opacity: 0.3;
  filter: saturate(0.72) contrast(1.04) brightness(0.78);
}

.page-home .home-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(
    180deg,
    rgba(6, 26, 44, 0.32) 0%,
    rgba(6, 26, 44, 0.74) 58%,
    var(--ly-navy) 100%
  );
}

.page-home .home-hero .ly-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-home .home-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(26px, 6vw, 52px);
  font-family: var(--ly-font-label);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ly-slate);
}

.page-home .home-crumb a {
  color: var(--ly-slate);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.24s ease, border-color 0.24s ease;
}

.page-home .home-crumb a:hover,
.page-home .home-crumb a:focus-visible {
  color: var(--ly-cyan);
  border-bottom-color: var(--ly-cyan);
}

.page-home .home-crumb [aria-current="page"] {
  color: var(--ly-cyan);
}

.page-home .home-hero__title {
  margin: 12px 0 0;
  max-width: 18ch;
  font-family: var(--ly-font-display);
  font-size: clamp(30px, 6.6vw, 64px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: 0.004em;
  color: var(--ly-mist);
  text-wrap: balance;
}

.page-home .home-hero__lede {
  margin: clamp(18px, 3vw, 26px) 0 0;
  max-width: 56ch;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.8;
  color: rgba(233, 241, 246, 0.82);
}

/* 破格数字锚点 */
.page-home .home-hero__anchor {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 20px;
  width: min(100%, 660px);
  margin-top: clamp(28px, 5vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--ly-line-strong);
}

.page-home .home-hero__anchor::after {
  content: attr(data-ghost);
  position: absolute;
  left: var(--home-ghost-x);
  top: 18px;
  font-family: var(--ly-font-mono);
  font-size: clamp(88px, 21vw, 144px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ly-coral);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}

.page-home .home-hero__anchor-num {
  position: relative;
  font-family: var(--ly-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(88px, 21vw, 144px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ly-coral);
  text-shadow: 0 0 52px rgba(255, 107, 74, 0.26);
}

.page-home .home-hero__anchor-unit {
  position: relative;
  max-width: 20ch;
  font-size: clamp(14px, 1.9vw, 17px);
  line-height: 1.55;
  color: rgba(233, 241, 246, 0.88);
}

.page-home .home-hero__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  max-width: 720px;
  margin: clamp(30px, 5vw, 46px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-hero__meta li {
  padding-top: 12px;
  border-top: 1px solid var(--ly-line);
}

.page-home .home-meta__k {
  display: block;
  font-family: var(--ly-font-label);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ly-slate);
}

.page-home .home-meta__v {
  display: block;
  margin-top: 6px;
  font-family: var(--ly-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 700;
  color: var(--ly-cyan);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(30px, 5vw, 44px);
}

/* ---------- 三级阅读路径 ---------- */
.page-home .home-path__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: clamp(32px, 6vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  background-color: var(--ly-line);
  border-top: 1px solid var(--ly-line);
  border-bottom: 1px solid var(--ly-line);
}

.page-home .home-path__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 4vw, 36px) clamp(20px, 3vw, 32px);
  background-color: var(--ly-navy);
  transition: transform 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
}

.page-home .home-path__item:hover {
  transform: translateY(-2px);
  background-color: rgba(56, 232, 206, 0.04);
  box-shadow: inset 0 0 0 1px var(--ly-line-strong);
}

.page-home .home-path__idx {
  font-family: var(--ly-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ly-cyan);
}

.page-home .home-path__item h3 {
  margin: 0;
  font-family: var(--ly-font-display);
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ly-mist);
}

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

.page-home .home-path__link {
  align-self: flex-start;
  margin-top: 4px;
  padding-bottom: 2px;
  font-family: var(--ly-font-label);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ly-cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--ly-line-strong);
  transition: border-color 0.24s ease, color 0.24s ease;
}

.page-home .home-path__link:hover,
.page-home .home-path__link:focus-visible {
  color: var(--ly-mist);
  border-bottom-color: var(--ly-cyan);
}

/* ---------- 第 28 轮裁判前瞻 ---------- */
.page-home .home-ref__head {
  display: grid;
  gap: clamp(24px, 4vw, 42px);
}

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

.page-home .home-ref__viewport {
  position: relative;
  margin-top: clamp(30px, 5vw, 46px);
}

.page-home .home-ref__viewport::before,
.page-home .home-ref__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  z-index: 2;
  pointer-events: none;
}

.page-home .home-ref__viewport::before {
  left: 0;
  background-image: linear-gradient(to right, var(--ly-navy-deep), rgba(4, 18, 32, 0));
}

.page-home .home-ref__viewport::after {
  right: 0;
  background-image: linear-gradient(to left, var(--ly-navy-deep), rgba(4, 18, 32, 0));
}

.page-home .home-ref__rail {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

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

.page-home .home-ref__track {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 2px 0;
  list-style: none;
  min-width: max-content;
}

.page-home .home-ref__card {
  scroll-snap-align: center;
  flex: 0 0 min(78vw, 300px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px 24px;
  background-color: var(--ly-glass);
  border: 1px solid var(--ly-line);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.page-home .home-ref__card:hover {
  transform: translateY(-2px);
  border-color: var(--ly-line-strong);
}

.page-home .home-ref__tag {
  font-family: var(--ly-font-label);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ly-cyan);
}

.page-home .home-ref__card h3 {
  margin: 0;
  font-family: var(--ly-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ly-mist);
}

.page-home .home-ref__card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(233, 241, 246, 0.72);
}

.page-home .home-ref__foot {
  margin: clamp(20px, 3vw, 28px) 0 0;
}

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

/* ---------- 球队专题双入口 ---------- */
.page-home .home-topics__grid {
  display: grid;
  gap: 16px;
  margin-top: clamp(30px, 5vw, 50px);
}

.page-home .home-topic {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background-color: var(--ly-glass);
  border: 1px solid var(--ly-line);
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.page-home .home-topic:hover,
.page-home .home-topic:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ly-line-strong);
  background-color: rgba(56, 232, 206, 0.035);
}

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

.page-home .home-topic__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 3.4vw, 34px);
}

.page-home .home-topic__kicker {
  margin: 0;
  font-family: var(--ly-font-label);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ly-cyan);
}

.page-home .home-topic__body h3 {
  margin: 0;
  font-family: var(--ly-font-display);
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.28;
  color: var(--ly-mist);
}

.page-home .home-topic__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.76;
  color: rgba(233, 241, 246, 0.76);
}

.page-home .home-topic__more {
  margin-top: 6px;
  align-self: flex-start;
  padding-bottom: 2px;
  font-family: var(--ly-font-label);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ly-cyan);
  border-bottom: 1px solid var(--ly-line-strong);
}

.page-home .home-topic__rule {
  height: 1px;
  background-image: linear-gradient(90deg, var(--ly-line-strong), rgba(233, 241, 246, 0));
}

/* 热力色阶条 */
.page-home .home-heat {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  margin-top: 4px;
}

.page-home .home-heat__bar {
  height: 8px;
  display: block;
}

.page-home .home-heat__bar--1 { background-color: var(--ly-heat-1); }
.page-home .home-heat__bar--2 { background-color: var(--ly-heat-2); }
.page-home .home-heat__bar--3 { background-color: var(--ly-heat-3); }
.page-home .home-heat__bar--4 { background-color: var(--ly-heat-4); }

.page-home .home-topic--narrow {
  background-image: linear-gradient(200deg, rgba(25, 26, 74, 0.9) 0%, rgba(12, 58, 60, 0.5) 100%);
}

/* ---------- 赛季时间轴 ---------- */
.page-home .home-timeline__grid {
  display: grid;
  gap: clamp(28px, 5vw, 48px);
}

.page-home .home-timeline__side .home-path__link {
  display: inline-block;
  margin-top: 20px;
}

.page-home .home-timeline__hint {
  margin: 0 0 14px;
  font-family: var(--ly-font-label);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ly-slate);
}

.page-home .home-eras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background-color: var(--ly-line);
  border: 1px solid var(--ly-line);
}

.page-home .home-era {
  position: relative;
  padding: 30px 12px 18px;
  background-color: var(--ly-navy-deep);
  transition: background-color 0.25s ease;
}

.page-home .home-era::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 12px;
  right: 12px;
  height: 1px;
  background-color: var(--ly-line-strong);
}

.page-home .home-era::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 1px;
  height: 9px;
  background-color: var(--ly-slate);
  transition: background-color 0.25s ease, height 0.25s ease;
}

.page-home .home-era:hover,
.page-home .home-era:focus-visible {
  background-color: rgba(56, 232, 206, 0.055);
  outline: none;
}

.page-home .home-era:hover::after,
.page-home .home-era:focus-visible::after {
  background-color: var(--ly-cyan);
  height: 13px;
}

.page-home .home-era:focus-visible {
  box-shadow: inset 0 0 0 2px var(--ly-cyan);
}

.page-home .home-era__range {
  display: block;
  font-family: var(--ly-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 700;
  color: var(--ly-mist);
}

.page-home .home-era__idx {
  display: block;
  margin-top: 6px;
  font-family: var(--ly-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--ly-slate);
}

/* ---------- 口径与纠错 ---------- */
.page-home .home-note__inner {
  display: grid;
  gap: clamp(28px, 5vw, 48px);
}

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

.page-home .home-note__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 32px);
}

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

  .page-home .home-eras {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .home-ref__head {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    align-items: end;
  }

  .page-home .home-topics__grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }

  .page-home .home-timeline__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .page-home .home-timeline__side {
    grid-column: 1 / span 3;
    align-self: start;
    position: sticky;
    top: calc(var(--ly-header-h) + 24px);
  }

  .page-home .home-timeline__body {
    grid-column: 5 / span 8;
  }

  .page-home .home-note__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }

  .page-home .home-hero__meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-home .home-path__item,
  .page-home .home-topic,
  .page-home .home-ref__card,
  .page-home .home-era,
  .page-home .home-era::after,
  .page-home .home-crumb a {
    transition: none;
  }

  .page-home .home-path__item:hover,
  .page-home .home-topic:hover,
  .page-home .home-ref__card:hover {
    transform: none;
  }
}
