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

.page-home {
  --home-cut: 16px;
  --home-cut-lg: 22px;
  display: block;
}

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

.page-home .home-hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(26px, 5vw, 62px) clamp(34px, 6vw, 82px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: -8% -18% auto -18%;
  height: min(76vh, 700px);
  background:
    radial-gradient(ellipse 46% 58% at 74% 24%, rgba(245, 154, 60, .15), transparent 70%),
    radial-gradient(ellipse 54% 62% at 14% 76%, rgba(31, 107, 74, .22), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(30px, 5.2vw, 62px);
  align-items: center;
}

.page-home .home-hero__context {
  position: relative;
  margin: 0 0 clamp(14px, 2vw, 22px);
  padding-left: 42px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-mist);
}

.page-home .home-hero__context::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--c-amber);
}

.page-home .home-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-h1);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--c-ivory);
}

.page-home .home-hero__lede {
  margin: clamp(16px, 2.4vw, 24px) 0 0;
  max-width: 34em;
}

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

.page-home .home-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: clamp(18px, 2.4vw, 26px) 0 0;
  border-top: 1px solid var(--line);
}

.page-home .home-hero__facts > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.page-home .home-hero__facts dt {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--c-mist);
}

.page-home .home-hero__facts dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.08rem, 2.2vw, 1.42rem);
  font-weight: 600;
  color: var(--c-ivory);
  font-variant-numeric: tabular-nums;
}

.page-home .home-hero__visual {
  position: relative;
  isolation: isolate;
}

.page-home .home-hero__frame {
  position: relative;
  overflow: hidden;
  background: var(--surface-deep);
  box-shadow: var(--shadow-tile);
  clip-path: polygon(
    var(--home-cut-lg) 0,
    100% 0,
    100% calc(100% - var(--home-cut-lg)),
    calc(100% - var(--home-cut-lg)) 100%,
    0 100%,
    0 var(--home-cut-lg)
  );
}

.page-home .home-hero__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.9) contrast(1.05);
}

.page-home .home-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(198deg, rgba(245, 154, 60, .16) 0%, transparent 38%, rgba(6, 18, 27, .48) 100%);
  pointer-events: none;
  z-index: 1;
}

.page-home .tile-fan {
  position: absolute;
  left: -10px;
  bottom: -14px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}

.page-home .tile-fan__tile {
  display: grid;
  place-items: center;
  width: clamp(36px, 4.4vw, 50px);
  aspect-ratio: 3 / 4;
  border-radius: 5px;
  background: linear-gradient(160deg, #FBF7EF 0%, #E3DAC8 100%);
  color: var(--c-table);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(.95rem, 1.6vw, 1.24rem);
  box-shadow: 0 14px 24px rgba(3, 12, 19, .58), inset 0 -2px 0 rgba(146, 124, 86, .35);
  transform: rotate(-5deg);
}

.page-home .tile-fan__tile:nth-child(2) {
  transform: rotate(1deg) translateY(-8px);
}

.page-home .tile-fan__tile:nth-child(3) {
  transform: rotate(6deg);
}

/* ---------- 牌墩式分区导航 ---------- */

.page-home .tilebar {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: linear-gradient(180deg, rgba(6, 18, 27, .96), rgba(6, 18, 27, .82));
  border-block: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.page-home .tilebar__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 11px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.page-home .tilebar__link {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(244, 239, 230, .04);
  color: var(--text-soft);
  font-size: .87rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: color .22s var(--ease-shuffle), background .22s var(--ease-shuffle), border-color .22s var(--ease-shuffle);
}

.page-home .tilebar__link:hover,
.page-home .tilebar__link:focus-visible {
  color: var(--c-ivory);
  border-color: var(--line-strong);
  background: rgba(244, 239, 230, .09);
}

.page-home .tilebar__link.is-active,
.page-home .tilebar__link[aria-current="true"] {
  color: var(--c-night);
  background: var(--c-amber);
  border-color: var(--c-amber);
  font-weight: 600;
}

/* ---------- 通用区块 ---------- */

.page-home .home-block {
  position: relative;
  padding-block: clamp(46px, 7vw, 96px);
  scroll-margin-top: 68px;
}

.page-home .home-block--alt {
  background: linear-gradient(180deg, rgba(18, 58, 58, .40), rgba(18, 58, 58, 0));
}

.page-home .home-block--alt::before,
.page-home .home-block + .home-block::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 24%, transparent 78%);
  pointer-events: none;
}

.page-home .home-block__grid {
  display: grid;
  gap: clamp(28px, 4.6vw, 56px);
  align-items: center;
}

.page-home .home-block__head {
  max-width: 44rem;
}

.page-home .home-block__copy p {
  margin-top: clamp(14px, 2vw, 20px);
  font-size: var(--step-body);
  line-height: 1.72;
  color: var(--text-soft);
}

.page-home .home-block__frame {
  position: relative;
  overflow: hidden;
  background: var(--surface-deep);
  box-shadow: var(--shadow-tile);
  clip-path: polygon(
    var(--home-cut) 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%,
    0 var(--home-cut)
  );
}

.page-home .home-block__frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(.92) contrast(1.04);
}

.page-home .home-block__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 2.8vw, 30px);
}

.page-home .home-block__cta--center {
  justify-content: center;
}

/* ---------- 新手适配清单 ---------- */

.page-home .starter-list {
  margin: clamp(20px, 2.8vw, 32px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .starter-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .starter-list__index {
  grid-row: span 2;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--c-amber);
}

.page-home .starter-list__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--c-ivory);
}

.page-home .starter-list__text {
  font-size: .94rem;
  line-height: 1.66;
  color: var(--text-mute);
}

/* ---------- 新版入口三卡 ---------- */

.page-home .entry-cards {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  margin-top: clamp(28px, 3.8vw, 46px);
}

.page-home .entry-card {
  position: relative;
  padding: clamp(22px, 2.8vw, 32px);
  background: linear-gradient(158deg, rgba(31, 107, 74, .30), rgba(18, 58, 58, .74) 64%);
  clip-path: polygon(
    var(--home-cut) 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%,
    0 var(--home-cut)
  );
  transition: transform .3s var(--ease-shuffle);
}

.page-home .entry-card:hover {
  transform: translateY(-4px);
}

.page-home .entry-card__num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .2em;
  color: var(--c-amber);
}

.page-home .entry-card__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-h3);
  color: var(--c-ivory);
}

.page-home .entry-card p {
  margin: 0;
  font-size: .94rem;
  line-height: 1.68;
  color: var(--text-soft);
}

/* ---------- 胜率统计 ---------- */

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

.page-home .stats-strip .stat {
  flex: 1 1 140px;
  padding: 16px 18px;
  background: rgba(244, 239, 230, .045);
  border-left: 2px solid var(--c-amber);
}

.page-home .stats-strip .stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1;
  color: var(--c-ivory);
  font-variant-numeric: tabular-nums;
}

.page-home .stats-strip .stat__label {
  display: block;
  margin-top: 8px;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--c-mist);
}

.page-home .home-block__copy .note {
  margin-top: clamp(20px, 2.8vw, 28px);
}

/* ---------- 赛季牌墙 ---------- */

.page-home .season-wall {
  display: grid;
  gap: clamp(14px, 2vw, 18px);
  margin-top: clamp(26px, 3.6vw, 42px);
}

.page-home .season-card {
  padding: clamp(18px, 2.4vw, 24px);
  background: rgba(6, 18, 27, .58);
  border-top: 2px solid var(--c-red);
  border-radius: 0 0 4px 4px;
}

.page-home .season-card__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 4px;
  background: linear-gradient(160deg, #FBF7EF 0%, #E3DAC8 100%);
  color: var(--c-table);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: .95rem;
  box-shadow: 0 8px 16px rgba(3, 12, 19, .5);
}

.page-home .season-card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--c-ivory);
}

.page-home .season-card p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.66;
  color: var(--text-mute);
}

/* ---------- 收尾 ---------- */

.page-home .home-closing {
  position: relative;
  padding-block: clamp(50px, 8vw, 106px);
  background:
    radial-gradient(ellipse 62% 82% at 50% 112%, rgba(245, 154, 60, .17), transparent 68%),
    linear-gradient(180deg, transparent, rgba(6, 18, 27, .74));
  scroll-margin-top: 68px;
}

.page-home .home-closing__panel {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 52px) clamp(20px, 4vw, 46px);
  text-align: center;
  border: 1px solid var(--line);
  background: var(--surface-deep);
  clip-path: polygon(
    var(--home-cut-lg) 0,
    100% 0,
    100% calc(100% - var(--home-cut-lg)),
    calc(100% - var(--home-cut-lg)) 100%,
    0 100%,
    0 var(--home-cut-lg)
  );
}

.page-home .home-closing__panel .eyebrow {
  justify-content: center;
}

.page-home .home-closing__panel .lede {
  margin-inline: auto;
}

.page-home .home-closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: clamp(22px, 3.2vw, 34px);
}

/* ---------- 滚动入场（渐进增强） ---------- */

@media (prefers-reduced-motion: no-preference) {
  .page-home [data-reveal].is-revealed {
    animation: home-deal .7s var(--ease-shuffle) both;
  }
}

@keyframes home-deal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 窄屏保护 ---------- */

.page-home .home-hero__title,
.page-home .home-block__copy p,
.page-home .entry-card p,
.page-home .season-card p {
  overflow-wrap: break-word;
}

.page-home .home-hero__grid,
.page-home .home-block__grid,
.page-home .entry-cards,
.page-home .season-wall {
  min-width: 0;
}

/* ---------- 断点 ---------- */

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

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

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

@media (min-width: 880px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  }

  .page-home .home-block__grid {
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  }

  .page-home .home-block__grid--rev {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  }

  .page-home .home-block__grid--rev .home-block__copy {
    order: -1;
  }
}

@media (min-width: 1024px) {
  .page-home .season-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
  }

  .page-home .season-wall > *:nth-child(even) {
    transform: translateY(22px);
  }

  .page-home .tilebar__list {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry-card,
  .page-home .season-wall > * {
    transition: none;
    transform: none;
  }
}
