/* =========================================================
   首页 page-home
   夜间记分牌 · 纵向叙事长卷
   ========================================================= */

.page-home {
  --home-grid: rgba(0, 229, 199, 0.055);
  --home-soft: rgba(242, 247, 244, 0.78);
  position: relative;
  background-color: var(--fh-ink);
  background-image:
    linear-gradient(var(--home-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--fh-text);
  font-family: var(--fh-body);
  overflow-x: clip;
}

.page-home a:focus-visible {
  outline: 2px solid var(--fh-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 首屏：记分牌 ---------- */

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  padding: 32px 0 56px;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 42%;
  opacity: 0.3;
  filter: saturate(0.55) contrast(1.06);
}

.page-home .home-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(6, 17, 13, 0.97) 0%, rgba(6, 17, 13, 0.86) 48%, rgba(11, 61, 46, 0.5) 100%),
    radial-gradient(circle at 84% 16%, rgba(0, 229, 199, 0.16), transparent 60%);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
}

.page-home .home-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: var(--fh-fs-12);
  letter-spacing: 0.22em;
  color: var(--fh-cyan);
}

.page-home .home-hero__kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--fh-orange);
}

.page-home .home-hero__title {
  margin: 16px 0 0;
  font-family: var(--fh-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 10.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  color: var(--fh-text);
}

.page-home .home-hero__lead {
  max-width: 48ch;
  margin: 20px 0 0;
  font-size: var(--fh-fs-16);
  line-height: 1.8;
  color: var(--home-soft);
}

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

.page-home .home-hero__note {
  margin: 24px 0 0;
  font-size: var(--fh-fs-12);
  letter-spacing: 0.06em;
  color: var(--fh-muted);
}

/* ---------- 比分卡 ---------- */

.page-home .home-score {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 36px;
}

.page-home .home-score__card {
  position: relative;
  padding: 20px 20px 18px;
  border: 1px solid var(--fh-line);
  border-radius: var(--fh-radius);
  background: linear-gradient(180deg, rgba(11, 61, 46, 0.9), rgba(6, 17, 13, 0.94));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.page-home .home-score__card--lead {
  border-color: rgba(0, 229, 199, 0.42);
  background: linear-gradient(180deg, rgba(16, 84, 62, 0.94), rgba(6, 17, 13, 0.95));
}

.page-home .home-score__card--lead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--fh-cyan), var(--fh-orange));
}

.page-home .home-score__round {
  margin: 0;
  font-size: var(--fh-fs-12);
  letter-spacing: 0.14em;
  color: var(--fh-cyan-soft);
}

.page-home .home-score__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 10px;
}

.page-home .home-score__team {
  font-size: var(--fh-fs-14);
  letter-spacing: 0.08em;
  color: var(--fh-muted);
}

.page-home .home-score__num {
  font-family: var(--fh-mono);
  font-weight: 700;
  font-size: clamp(2.25rem, 10vw, 3rem);
  line-height: 1;
  color: var(--fh-text);
}

.page-home .home-score__num--win {
  color: var(--fh-orange);
}

.page-home .home-score__sep {
  font-family: var(--fh-mono);
  font-size: var(--fh-fs-20);
  color: var(--fh-muted);
}

.page-home .home-score__meta {
  margin: 0;
  font-size: var(--fh-fs-14);
  line-height: 1.6;
  color: var(--fh-muted);
}

.page-home .home-score__foot {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--fh-line);
  font-size: var(--fh-fs-12);
  color: var(--fh-cyan-soft);
}

/* ---------- 章节通用 ---------- */

.page-home .fh-section {
  position: relative;
  padding: 56px 0;
}

.page-home .fh-section__head {
  margin-bottom: 32px;
}

.page-home .fh-section__title {
  font-family: var(--fh-display);
  letter-spacing: 0.03em;
}

.page-home .fh-section__lead {
  max-width: 56ch;
  color: var(--home-soft);
  line-height: 1.8;
}

.page-home .home-chapter--alt {
  background:
    linear-gradient(180deg, rgba(11, 61, 46, 0.42), rgba(6, 17, 13, 0.1) 70%);
}

/* ---------- 01 进失球分布 ---------- */

.page-home .home-dist {
  align-items: start;
  row-gap: 36px;
}

.page-home .home-dist__caption {
  margin: 0 0 22px;
  font-size: var(--fh-fs-14);
  letter-spacing: 0.04em;
  color: var(--fh-muted);
}

.page-home .home-bar {
  margin-bottom: 18px;
}

.page-home .home-bar:last-of-type {
  margin-bottom: 0;
}

.page-home .home-bar .fh-bar__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0;
  font-size: var(--fh-fs-14);
  color: var(--fh-muted);
}

.page-home .home-bar .fh-bar__label .fh-mono {
  font-family: var(--fh-mono);
  color: var(--fh-text);
}

.page-home .home-bar .fh-bar__track {
  height: 10px;
  border-radius: 999px;
  background: var(--fh-forest-2);
  overflow: hidden;
}

.page-home .home-bar .fh-bar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fh-cyan), var(--fh-cyan-soft));
  box-shadow: 0 0 14px rgba(0, 229, 199, 0.32);
  transition: width 0.6s ease;
}

.page-home .home-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--fh-line);
  font-size: var(--fh-fs-12);
  color: var(--fh-muted);
}

.page-home .home-dist__side > * + * {
  margin-top: 28px;
}

/* ---------- 轮次归档 ---------- */

.page-home .home-rounds {
  padding: 22px;
  border: 1px solid var(--fh-line);
  border-radius: var(--fh-radius);
  background: rgba(11, 61, 46, 0.5);
}

.page-home .home-rounds__title {
  margin: 0 0 16px;
  font-family: var(--fh-display);
  font-size: var(--fh-fs-14);
  letter-spacing: 0.16em;
  color: var(--fh-cyan);
}

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

.page-home .home-rounds__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border: 1px solid transparent;
  border-radius: var(--fh-radius-sm);
  background: rgba(16, 84, 62, 0.55);
  color: var(--fh-muted);
  font-size: var(--fh-fs-12);
}

.page-home .home-rounds__item--done {
  border-color: rgba(0, 229, 199, 0.2);
  color: var(--fh-cyan-soft);
}

.page-home .home-rounds__item--on {
  background: var(--fh-cyan);
  color: #06110d;
  font-weight: 700;
}

.page-home .home-rounds__note {
  margin: 16px 0 0;
  font-size: var(--fh-fs-12);
  line-height: 1.7;
  color: var(--fh-muted);
}

/* ---------- 02 产品线 ---------- */

.page-home .home-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--fh-line);
}

.page-home .home-lines__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 8px 16px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--fh-line);
  transition: background-color 0.25s ease;
}

.page-home .home-lines__row:hover {
  background: rgba(0, 229, 199, 0.05);
}

.page-home .home-lines__name {
  margin: 0;
  font-family: var(--fh-display);
  font-size: var(--fh-fs-20);
  letter-spacing: 0.08em;
  color: var(--fh-text);
}

.page-home .home-lines__ver {
  margin: 0;
  font-family: var(--fh-mono);
  font-size: var(--fh-fs-14);
  letter-spacing: 0.06em;
  color: var(--fh-orange);
}

.page-home .home-lines__desc {
  margin: 0;
  font-size: var(--fh-fs-14);
  line-height: 1.75;
  color: var(--home-soft);
}

.page-home .home-lines__link {
  justify-self: start;
  font-size: var(--fh-fs-14);
  color: var(--fh-cyan);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(0, 229, 199, 0.42);
}

.page-home .home-lines__link:hover {
  color: var(--fh-cyan-soft);
  border-bottom-color: var(--fh-cyan-soft);
}

/* ---------- 03 观赛场景 ---------- */

.page-home .home-scenes {
  align-items: start;
  row-gap: 32px;
}

.page-home .home-scenes__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--fh-radius);
  object-fit: cover;
}

.page-home .home-scene {
  position: relative;
  padding: 20px 22px 20px 24px;
  border-radius: var(--fh-radius);
  border-left: 3px solid var(--fh-cyan);
  background: linear-gradient(120deg, rgba(11, 61, 46, 0.82), rgba(6, 17, 13, 0.62));
}

.page-home .home-scene + .home-scene {
  margin-top: 16px;
}

.page-home .home-scene:nth-child(2) {
  border-left-color: var(--fh-orange);
}

.page-home .home-scene:nth-child(3) {
  border-left-color: var(--fh-cyan-soft);
}

.page-home .home-scene__no {
  margin: 0 0 8px;
  font-size: var(--fh-fs-12);
  letter-spacing: 0.18em;
  color: var(--fh-cyan);
}

.page-home .home-scene__title {
  margin: 0 0 8px;
  font-family: var(--fh-display);
  font-size: var(--fh-fs-20);
  letter-spacing: 0.04em;
  color: var(--fh-text);
}

.page-home .home-scene__text {
  margin: 0;
  font-size: var(--fh-fs-14);
  line-height: 1.8;
  color: var(--home-soft);
}

/* ---------- 04 三步走 ---------- */

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

.page-home .home-step {
  padding: 24px 22px;
  border: 1px solid var(--fh-line);
  border-radius: var(--fh-radius);
  background: rgba(11, 61, 46, 0.4);
}

.page-home .home-step__no {
  display: block;
  margin-bottom: 14px;
  font-family: var(--fh-mono);
  font-size: var(--fh-fs-28);
  line-height: 1;
  color: var(--fh-cyan);
}

.page-home .home-step__title {
  margin: 0 0 10px;
  font-family: var(--fh-display);
  font-size: var(--fh-fs-20);
  letter-spacing: 0.04em;
  color: var(--fh-text);
}

.page-home .home-step__text {
  margin: 0 0 16px;
  font-size: var(--fh-fs-14);
  line-height: 1.8;
  color: var(--home-soft);
}

/* ---------- 过渡纹理带 ---------- */

.page-home .home-ribbon {
  position: relative;
  height: 150px;
  margin: 8px 0;
  overflow: hidden;
}

.page-home .home-ribbon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.7);
}

.page-home .home-ribbon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--fh-ink) 0%, rgba(6, 17, 13, 0.1) 42%, var(--fh-ink) 100%);
}

/* ---------- 05 联系 ---------- */

.page-home .home-contact__grid {
  row-gap: 36px;
}

.page-home .home-contact__topics {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-topic {
  padding: 18px 0;
  border-bottom: 1px solid var(--fh-line);
}

.page-home .home-topic:first-child {
  border-top: 1px solid var(--fh-line);
}

.page-home .home-topic__title {
  margin: 0 0 8px;
  font-family: var(--fh-display);
  font-size: var(--fh-fs-20);
  letter-spacing: 0.05em;
  color: var(--fh-text);
}

.page-home .home-topic__text {
  margin: 0;
  font-size: var(--fh-fs-14);
  line-height: 1.8;
  color: var(--home-soft);
}

.page-home .home-contact__aside {
  margin: 22px 0 0;
  font-size: var(--fh-fs-14);
  line-height: 1.8;
  color: var(--fh-muted);
}

.page-home .home-contact__aside a {
  color: var(--fh-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 199, 0.4);
}

.page-home .home-contact__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--fh-line);
}

.page-home .home-contact__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--fh-line);
}

.page-home .home-contact__key {
  flex: 0 0 84px;
  font-size: var(--fh-fs-12);
  letter-spacing: 0.14em;
  color: var(--fh-muted);
}

.page-home .home-contact__val {
  font-size: var(--fh-fs-16);
  color: var(--fh-text);
  word-break: break-word;
}

.page-home .home-contact__note {
  margin: 18px 0 20px;
  font-size: var(--fh-fs-12);
  line-height: 1.7;
  color: var(--fh-muted);
}

/* =========================================================
   响应式增强
   ========================================================= */

@media (min-width: 700px) {
  .page-home .home-hero {
    padding: 48px 0 72px;
  }

  .page-home .home-score {
    grid-template-columns: 1.35fr 1fr 0.95fr;
    align-items: stretch;
  }

  .page-home .home-ribbon {
    height: 200px;
  }
}

@media (min-width: 900px) {
  .page-home .fh-section {
    padding: 84px 0;
  }

  .page-home .fh-section__head {
    margin-bottom: 44px;
  }

  .page-home .home-dist {
    row-gap: 0;
  }

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

  .page-home .home-lines__row {
    grid-template-columns: 200px 92px minmax(0, 1fr) 168px;
    align-items: center;
    gap: 26px;
    padding: 26px 8px;
  }

  .page-home .home-lines__link {
    justify-self: end;
  }

  .page-home .home-steps {
    grid-template-columns: 1.2fr 1fr 0.92fr;
    gap: 22px;
    align-items: start;
  }

  .page-home .home-step:nth-child(2) {
    transform: translateY(26px);
  }

  .page-home .home-step:nth-child(3) {
    transform: translateY(52px);
  }
}

@media (min-width: 1160px) {
  .page-home .home-hero {
    padding: 64px 0 88px;
  }

  .page-home .home-hero__title {
    font-size: var(--fh-fs-72);
  }

  .page-home .home-ribbon {
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-bar .fh-bar__fill {
    transition: none;
  }

  .page-home .home-step:nth-child(2),
  .page-home .home-step:nth-child(3) {
    transform: none;
  }
}
