/* ===== 首页 page-home 专属样式 ===== */

.page-home {
  --home-ink-soft: rgba(11, 27, 51, 0.72);
  --home-cut: 28px;
  background: var(--night);
  color: var(--sand);
  overflow-x: hidden;
}

.page-home .lead {
  margin: 10px 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.78;
  color: var(--paper);
}

.page-home .section__head {
  margin-bottom: clamp(18px, 2.6vw, 30px);
}

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

.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.6vw, 32px) 0 clamp(38px, 5.4vw, 72px);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.42;
  pointer-events: none;
}

.page-home .hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06);
}

.page-home .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--night) 4%, rgba(11, 27, 51, 0.74) 52%, rgba(11, 27, 51, 0.3) 100%);
}

.page-home .hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: clamp(14px, 2vw, 22px);
}

/* 焦点块 */

.page-home .focus {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(20px, 3vw, 38px);
  background:
    radial-gradient(122% 132% at 88% 4%, rgba(255, 90, 31, 0.18) 0%, rgba(255, 90, 31, 0) 58%),
    linear-gradient(158deg, var(--slate) 0%, var(--night) 74%);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
}

.page-home .focus__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: home-breathe 2.4s ease-out infinite;
}

@keyframes home-breathe {
  0% { box-shadow: 0 0 0 0 rgba(24, 215, 196, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(24, 215, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(24, 215, 196, 0); }
}

.page-home .focus__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 26px);
  align-items: end;
}

.page-home .focus__dial {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.page-home .focus__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: clamp(78px, 17vw, 168px);
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: var(--sand);
}

.page-home .focus__unit {
  padding-bottom: 0.45em;
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.6vw, 18px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--amber);
  white-space: nowrap;
}

.page-home .focus__h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(23px, 3.4vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--sand);
}

.page-home .focus__lead {
  margin: 10px 0 0;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.78;
  color: var(--paper);
}

.page-home .focus__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.page-home .focus__stats .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-home .focus__stats .stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1;
  color: var(--amber);
}

.page-home .focus__stats .stat__label {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--paper);
}

/* 卫星卡 */

.page-home .hero__sat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 12px;
}

.page-home .sat {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  background: rgba(19, 42, 74, 0.66);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  text-decoration: none;
  color: var(--sand);
  transition: transform var(--t) ease, background-color var(--t) ease, border-color var(--t) ease;
}

.page-home .sat:hover,
.page-home .sat:focus-visible {
  transform: translateX(5px);
  background: rgba(19, 42, 74, 0.96);
  border-left-color: var(--orange);
}

.page-home .sat__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--paper);
}

.page-home .sat__body {
  min-width: 0;
}

.page-home .sat__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.page-home .sat__desc {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.62;
  color: var(--paper);
}

.page-home .sat__arrow {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--orange);
}

/* ---------- V3.1 更新 ---------- */

.page-home .whatsnew {
  padding: clamp(30px, 4.6vw, 66px) 0;
}

.page-home .whatsnew__board {
  padding: clamp(22px, 3.4vw, 46px);
  background: linear-gradient(150deg, var(--slate) 0%, var(--night) 80%);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
}

.page-home .whatsnew__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--sand);
}

.page-home .whatsnew__list {
  list-style: none;
  margin: clamp(20px, 3vw, 30px) 0 0;
  padding: 0;
}

.page-home .whatsnew__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}

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

.page-home .whatsnew__no {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.page-home .whatsnew__item-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--sand);
}

.page-home .whatsnew__item-text {
  margin: 7px 0 0;
  font-size: 13.5px;
  line-height: 1.76;
  color: var(--paper);
}

/* ---------- 联赛与轮次 ---------- */

.page-home .rounds {
  padding: clamp(30px, 4.6vw, 66px) 0;
  border-top: 1px solid var(--line-soft);
}

.page-home .rounds .filter-bar {
  margin-bottom: 16px;
}

.page-home .rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(236px, 80%);
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.page-home .round-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 176px;
  padding: 18px;
  background: rgba(19, 42, 74, 0.55);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--sand);
  scroll-snap-align: start;
  transition: border-color var(--t) ease, background-color var(--t) ease;
}

.page-home .round-card:hover,
.page-home .round-card:focus-visible {
  border-color: rgba(255, 90, 31, 0.66);
  background: rgba(19, 42, 74, 0.92);
}

.page-home .round-card__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--paper);
}

.page-home .round-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.page-home .round-card .tag {
  align-self: flex-start;
}

.page-home .round-card__meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--amber);
}

.page-home .round-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--paper);
}

.page-home .rail__empty {
  margin: 6px 0 0;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  font-size: 13px;
  color: var(--paper);
}

/* ---------- 集锦（浅色分区） ---------- */

.page-home .reel {
  padding: clamp(36px, 5vw, 78px) 0;
  background: var(--sand);
  color: var(--ink);
}

.page-home .reel .eyebrow {
  color: #8c6a2f;
}

.page-home .reel .section__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.page-home .reel .lead {
  color: var(--home-ink-soft);
}

.page-home .reel__head {
  margin-bottom: clamp(18px, 2.6vw, 30px);
}

.page-home .reel__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 28px);
}

.page-home .reel__frame {
  margin: 0;
  border: 1px solid rgba(11, 27, 51, 0.18);
  background: var(--ink);
}

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

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

.page-home .reel__fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  border-top: 2px solid var(--orange);
  background: rgba(11, 27, 51, 0.05);
}

.page-home .reel__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1;
  color: var(--ink);
}

.page-home .reel__label {
  font-size: 12px;
  line-height: 1.55;
  color: var(--home-ink-soft);
}

/* ---------- 两队对照 ---------- */

.page-home .mirror {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 78px) 0;
  background: var(--night);
}

.page-home .mirror__bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
}

.page-home .mirror__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .mirror__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--night) 0%, rgba(11, 27, 51, 0.55) 48%, var(--night) 100%);
}

.page-home .mirror .container {
  position: relative;
  z-index: 1;
}

.page-home .mirror__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .mirror__side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 3vw, 32px);
  background: rgba(19, 42, 74, 0.62);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--sand);
  transition: background-color var(--t) ease, border-color var(--t) ease;
}

.page-home .mirror__grid:hover .mirror__side:not(:hover) {
  background: rgba(19, 42, 74, 0.88);
  border-color: rgba(255, 90, 31, 0.4);
}

.page-home .mirror__side:hover,
.page-home .mirror__side:focus-visible {
  background: rgba(19, 42, 74, 0.98);
  border-color: rgba(255, 90, 31, 0.7);
}

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

.page-home .mirror__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(19px, 2.4vw, 25px);
  letter-spacing: -0.01em;
}

.page-home .mirror__text {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--paper);
}

.page-home .mirror__go {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--orange);
}

.page-home .mirror__axis {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(5, 11, 22, 0.62);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--orange);
}

.page-home .mirror__metrics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(16px, 2.2vw, 24px) 0 0;
  padding: 0;
}

.page-home .mirror__metrics li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: rgba(19, 42, 74, 0.5);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--sand);
}

/* ---------- 出场与战报 ---------- */

.page-home .kickoff {
  padding: clamp(32px, 4.6vw, 68px) 0;
  background: var(--slate);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .kickoff__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 30px);
  align-items: start;
}

.page-home .kickoff__media {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--ink);
}

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

.page-home .kickoff__steps {
  list-style: none;
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .kickoff__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  background: rgba(11, 27, 51, 0.5);
  border-left: 2px solid var(--gold);
}

.page-home .kickoff__step-k {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber);
  white-space: nowrap;
  padding-top: 2px;
}

.page-home .kickoff__step-t {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--sand);
}

.page-home .kickoff__cta {
  margin: clamp(18px, 2.4vw, 26px) 0 0;
}

/* ---------- 适配对象 ---------- */

.page-home .audience {
  padding: clamp(34px, 5vw, 76px) 0;
  background: var(--night);
}

.page-home .audience__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .audience__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 26px);
  background: rgba(19, 42, 74, 0.5);
  border: 1px solid var(--line);
  border-top: 2px solid var(--orange);
  transition: background-color var(--t) ease;
}

.page-home .audience__card:hover {
  background: rgba(19, 42, 74, 0.85);
}

.page-home .audience__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: var(--sand);
}

.page-home .audience__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.76;
  color: var(--paper);
}

.page-home .audience__link {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--gold);
  text-decoration: none;
}

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

.page-home .audience__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 34px);
}

.page-home .audience__note {
  margin: clamp(16px, 2.2vw, 24px) 0 0;
  max-width: 70ch;
  font-size: 13px;
  line-height: 1.78;
  color: var(--paper);
}

.page-home .audience__note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .audience__note a:hover {
  color: var(--orange);
}

/* ---------- 响应式 ---------- */

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

@media (min-width: 780px) {
  .page-home .rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow-x: visible;
    padding-bottom: 0;
  }

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

  .page-home .reel__facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (min-width: 900px) {
  .page-home .focus__body {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
  }

  .page-home .whatsnew__board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
    gap: clamp(26px, 3.6vw, 56px);
    align-items: start;
  }

  .page-home .whatsnew__list {
    margin-top: 0;
  }

  .page-home .kickoff__grid {
    grid-template-columns: minmax(0, 0.74fr) minmax(0, 1fr);
    gap: clamp(22px, 3.4vw, 48px);
  }

  .page-home .mirror__grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
  }

  .page-home .mirror__axis {
    padding: 0 18px;
    border-top: none;
    border-bottom: none;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    writing-mode: vertical-rl;
  }
}

@media (min-width: 960px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .page-home .hero__sat {
    grid-template-columns: 1fr;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-home .live__dot {
    animation: none;
  }

  .page-home .sat,
  .page-home .round-card,
  .page-home .mirror__side,
  .page-home .audience__card {
    transition: none;
  }
}
