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

.page-home {
  --home-hero-pad: 40px 0 56px;
  --home-ghost-color: rgba(255, 91, 26, 0.07);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: var(--home-hero-pad);
  background:
    radial-gradient(120% 90% at 82% 0%, rgba(255, 91, 26, 0.14) 0%, rgba(255, 91, 26, 0) 55%),
    var(--ink);
}

.page-home .home-hero__ghost {
  position: absolute;
  left: -18px;
  bottom: -70px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(180px, 34vw, 420px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--home-ghost-color);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

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

.page-home .home-hero__title {
  margin: 12px 0 18px;
  font-size: clamp(38px, 10vw, 92px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--paper);
}

.page-home .home-hero__title em {
  font-style: normal;
  color: var(--ember);
}

.page-home .home-hero__lede {
  max-width: 46ch;
  margin: 0 0 26px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 34px;
  margin: 0 0 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.page-home .home-hero__stats .stat__value {
  font-family: var(--font-mono);
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 800;
  line-height: 1;
  color: var(--paper);
}

.page-home .home-hero__stats .stat__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-home .home-hero__unit {
  margin-left: 3px;
  font-size: 0.5em;
  font-weight: 600;
  color: var(--ember);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.page-home .home-hero__chip {
  border-color: var(--line);
  color: var(--paper);
}

.page-home .home-hero__media {
  position: relative;
  border: 1px solid var(--line);
  background: var(--ink-2);
  transform: rotate(-1.2deg);
}

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

.page-home .home-hero__media .media__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--lime);
}

/* ---------- 过渡横条 ---------- */
.page-home .home-strip {
  background: var(--ink-2);
  padding: 0;
}

.page-home .home-strip__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.page-home .home-strip__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 15, 18, 0.85) 0%, rgba(14, 15, 18, 0.25) 45%, rgba(14, 15, 18, 0.9) 100%);
  pointer-events: none;
}

.page-home .home-strip__figure img {
  display: block;
  width: 100%;
  height: clamp(120px, 22vw, 240px);
  object-fit: cover;
  filter: brightness(0.75) contrast(1.1);
}

/* ---------- 时间轴 ---------- */
.page-home .home-fixtures {
  padding: 54px 0 46px;
  background: var(--ink);
}

.page-home .home-fixtures__note,
.page-home .home-posts__note {
  max-width: 58ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

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

.page-home .home-fixtures .timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-fixtures .timeline::before {
  content: "";
  position: absolute;
  left: 84px;
  top: 22px;
  bottom: 22px;
  border-left: 1px dashed var(--line);
  pointer-events: none;
}

.page-home .home-fixtures .timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .home-fixtures .timeline__item::before {
  content: "";
  position: absolute;
  left: 79px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -5.5px;
  background: var(--ember);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px var(--ink);
}

.page-home .home-fixtures .timeline__item--next::before {
  background: var(--ink);
  border: 2px solid var(--ember);
  box-shadow: 0 0 0 4px var(--ink);
}

.page-home .fx-time {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ember);
}

.page-home .timeline__item--next .fx-time {
  color: var(--cyan);
  font-size: 13px;
}

.page-home .fx-teams {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .fx-teams span {
  margin: 0 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.page-home .fx-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.page-home .fx-go {
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--line);
  background: transparent;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-home .fx-go:hover,
.page-home .fx-go:focus-visible {
  color: var(--ink);
  border-color: var(--ember);
  background: var(--ember);
}

/* ---------- 最新战报 ---------- */
.page-home .home-posts {
  padding: 54px 0;
  background: var(--ink-2);
}

.page-home .home-posts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 30px;
}

.page-home .home-posts .post-card {
  position: relative;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-posts .post-card--lead {
  padding-top: 0;
}

.page-home .post-card__figure {
  margin: -1px -22px 4px;
  overflow: hidden;
}

.page-home .post-card__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(1.1);
}

.page-home .post-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-home .post-card__league {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .post-card__score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(38px, 8vw, 60px);
  font-weight: 800;
  line-height: 1;
  color: var(--paper);
}

.page-home .post-card__score i {
  font-style: normal;
  color: var(--line);
  font-size: 0.55em;
}

.page-home .post-card__teams {
  margin: 0;
  font-size: 15px;
  color: var(--paper);
}

.page-home .post-card__teams span {
  margin: 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.page-home .post-card__shots {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.page-home .post-card__shots li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.page-home .post-card__shots strong {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.page-home .post-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .post-card__link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  color: var(--ember);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.page-home .post-card__link::after {
  content: " →";
  transition: margin 0.2s ease;
}

.page-home .post-card__link:hover::after,
.page-home .post-card__link:focus-visible::after {
  margin-left: 4px;
}

/* ---------- 三条动线 ---------- */
.page-home .home-paths {
  padding: 54px 0;
  background: var(--ink);
}

.page-home .path-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

.page-home .path-card {
  position: relative;
  padding: 26px 22px 22px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  transition: border-color 0.2s ease, transform 0.25s ease;
}

.page-home .path-card:hover {
  border-color: var(--ember);
  transform: translateY(-3px);
}

.page-home .path-card__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ember);
}

.page-home .path-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--paper);
}

.page-home .path-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .path-card__figure {
  margin: 0 0 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.page-home .path-card__go {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  color: var(--lime);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.page-home .path-card__go::after {
  content: " ↗";
}

.page-home .path-card--b {
  background: rgba(255, 91, 26, 0.07);
  border-color: rgba(255, 91, 26, 0.4);
}

.page-home .path-card--c {
  background: rgba(47, 211, 200, 0.05);
  border-color: rgba(47, 211, 200, 0.3);
}

/* ---------- 数据卡 ---------- */
.page-home .home-numbers {
  padding: 54px 0;
  background: var(--ink-2);
}

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

.page-home .num-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px 18px;
  background: var(--card);
  border: 1px solid var(--line);
}

.page-home .num-card--wide {
  grid-column: span 2;
}

.page-home .num-card--accent {
  background: var(--ember);
  border-color: var(--ember);
}

.page-home .num-card--accent .num-card__value,
.page-home .num-card--accent .num-card__label {
  color: var(--ink);
}

.page-home .num-card--accent .num-card__hint {
  color: rgba(14, 15, 18, 0.7);
}

.page-home .num-card--slim {
  border-style: dashed;
  border-color: rgba(47, 211, 200, 0.45);
}

.page-home .num-card--slim .num-card__value {
  color: var(--cyan);
}

.page-home .num-card__value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 6.5vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .num-card__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .num-card__hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- 为什么留下 ---------- */
.page-home .home-why {
  padding: 54px 0 60px;
  background: var(--ink);
}

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

.page-home .home-why__copy h2 {
  margin: 10px 0 22px;
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--paper);
}

.page-home .why-list {
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-home .why-list__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.page-home .why-list dt {
  font-size: 15px;
  font-weight: 800;
  color: var(--ember);
  letter-spacing: 0.02em;
}

.page-home .why-list dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-why__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-why__side {
  padding: 24px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .home-why__side-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--lime);
}

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

.page-home .home-why__side-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-why__side-list .tag {
  flex: 0 0 auto;
  margin-top: 2px;
}

.page-home .home-why__side-link {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--paper);
  text-decoration: none;
}

.page-home .home-why__side-link::after {
  content: " →";
  color: var(--ember);
}

/* ---------- 桌面栅格 ---------- */
@media (min-width: 780px) {
  .page-home .home-hero {
    padding: 56px 0 72px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    align-items: center;
  }

  .page-home .home-posts__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto auto;
    align-items: start;
  }

  .page-home .post-card--lead {
    grid-row: span 2;
  }

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

  .page-home .path-card--b {
    margin-top: 46px;
  }

  .page-home .path-card--c {
    margin-top: 22px;
  }

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

  .page-home .num-card--wide {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: center;
  }

  .page-home .home-why__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 46px;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .page-home .home-hero__ghost {
    left: 4%;
    bottom: -90px;
  }

  .page-home .home-fixtures .timeline::before {
    left: 100px;
  }

  .page-home .home-fixtures .timeline__item {
    grid-template-columns: 88px 1fr auto;
    padding: 20px 0;
  }

  .page-home .home-fixtures .timeline__item::before {
    left: 95px;
  }
}

/* ---------- 移动端收敛 ---------- */
@media (max-width: 520px) {
  .page-home .home-hero__ghost {
    font-size: 46vw;
    opacity: 0.7;
  }

  .page-home .home-fixtures .timeline::before {
    left: 68px;
  }

  .page-home .home-fixtures .timeline__item {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    row-gap: 8px;
    padding: 14px 0;
  }

  .page-home .home-fixtures .timeline__item::before {
    left: 63px;
  }

  .page-home .fx-time {
    font-size: 13px;
  }

  .page-home .timeline__item--next .fx-time {
    font-size: 11px;
  }

  .page-home .fx-go {
    grid-column: 2 / -1;
    justify-self: start;
    padding: 5px 10px;
  }

  .page-home .why-list__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .path-card,
  .page-home .fx-go,
  .page-home .post-card__link::after {
    transition: none;
  }
}
