/* ================= page-home ================= */
.page-home {
  --hm-pad: clamp(3rem, 8vw, 6.5rem);
  background: var(--fb-deep);
  color: var(--fb-white);
}

.page-home a { color: inherit; }

/* ---------- 首屏 ---------- */
.hm-hero {
  position: relative;
  padding: clamp(1.25rem, 3.5vw, 2.5rem) 0 clamp(2.5rem, 6vw, 5rem);
  background:
    radial-gradient(90% 70% at 10% 0%, rgba(43, 227, 196, 0.12), transparent 62%),
    radial-gradient(70% 60% at 100% 15%, rgba(255, 122, 26, 0.09), transparent 60%),
    linear-gradient(180deg, #0e2a1f 0%, #0b1f17 72%);
  overflow: hidden;
}

.hm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(242, 245, 243, 0.024) 0 72px, transparent 72px 144px);
  pointer-events: none;
}

.hm-hero .fb-shell { position: relative; z-index: 1; }

.hm-context {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 clamp(1rem, 2.5vw, 1.6rem);
  font-family: var(--fb-mono);
  font-size: var(--fs-13);
  letter-spacing: 0.14em;
  color: var(--fb-mist);
}

.hm-context__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fb-cyan);
  box-shadow: 0 0 0 4px rgba(43, 227, 196, 0.16);
}

.hm-frame {
  position: relative;
  border: 1px solid var(--fb-line);
  padding: clamp(1.1rem, 3vw, 2.5rem);
  background: linear-gradient(155deg, rgba(20, 55, 43, 0.8) 0%, rgba(11, 31, 23, 0.62) 55%, rgba(21, 25, 28, 0.75) 100%);
}

.hm-tick {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid var(--fb-cyan);
  pointer-events: none;
}
.hm-tick--tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.hm-tick--tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.hm-tick--bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.hm-tick--br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.hm-frame__ruler {
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  right: 3px;
  width: 6px;
  background-image: repeating-linear-gradient(180deg, var(--fb-line) 0 1px, transparent 1px 20px);
  pointer-events: none;
}

.hm-frame__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: clamp(1rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--fb-line);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  padding-right: 1rem;
}

.hm-frame__metatext {
  font-size: var(--fs-13);
  color: var(--fb-mist);
  letter-spacing: 0.04em;
}

.hm-hero__body {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.hm-hero__copy { display: flex; flex-direction: column; gap: 1.1rem; }

.hm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hm-hero__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--fb-line);
  background: linear-gradient(150deg, var(--fb-turf), var(--fb-deep));
}

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

.hm-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(43, 227, 196, 0.14), transparent 45%, rgba(11, 31, 23, 0.7));
  pointer-events: none;
}

/* ---------- 比分条 ---------- */
.hm-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.75rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--fb-line);
}

.hm-match {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.hm-match__league {
  margin: 0;
  font-family: var(--fb-mono);
  font-size: var(--fs-13);
  letter-spacing: 0.1em;
  color: var(--fb-mist);
}

.hm-match__line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.hm-match__team {
  flex: 1 1 0;
  min-width: 0;
  font-size: var(--fs-16);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-match__team--r { text-align: right; }

.hm-match__dash { color: var(--fb-mist); }

.hm-poss {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hm-poss__v {
  font-size: var(--fs-13);
  color: var(--fb-mist);
  min-width: 2.5em;
}
.hm-poss__v:last-child { text-align: right; }

.page-home .fb-meter {
  display: block;
  flex: 1;
  height: 6px;
  background: rgba(242, 245, 243, 0.12);
}

.hm-match__state {
  margin: 0;
  font-size: var(--fs-13);
  color: var(--fb-mist);
}

.hm-live {
  color: var(--fb-cyan);
  font-family: var(--fb-mono);
  letter-spacing: 0.06em;
}

.hm-done {
  color: var(--fb-orange-soft);
  font-family: var(--fb-mono);
  letter-spacing: 0.06em;
}

/* ---------- 章节目录 ---------- */
.hm-toc {
  border-top: 1px solid var(--fb-line);
  border-bottom: 1px solid var(--fb-line);
  background: rgba(21, 25, 28, 0.55);
  padding: 1rem 0 0.85rem;
}

.hm-toc .fb-toc__title {
  margin: 0 0 0.6rem;
  font-family: var(--fb-mono);
  font-size: var(--fs-13);
  letter-spacing: 0.2em;
  color: var(--fb-mist);
}

.hm-toc .fb-toc__list {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0 0 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.hm-toc .fb-toc__link {
  display: inline-block;
  white-space: nowrap;
  font-size: var(--fs-14);
  color: var(--fb-mist);
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--fb-ease), border-color 180ms var(--fb-ease);
}

.hm-toc .fb-toc__link:hover,
.hm-toc .fb-toc__link.is-active {
  color: var(--fb-cyan);
  border-bottom-color: var(--fb-cyan);
}

/* ---------- 通用区块 ---------- */
.hm-block { position: relative; }

.hm-block--turf {
  background: linear-gradient(180deg, var(--fb-turf) 0%, #10281f 100%);
}

.hm-head { max-width: 44rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }

.hm-head .fb-title { margin: 0.5rem 0 0.9rem; }

.hm-head .fb-lede { margin: 0; }

/* ---------- 订阅球队 ---------- */
.hm-teams {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0 0 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.hm-team {
  flex: 0 0 auto;
  width: 176px;
  scroll-snap-align: start;
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--fb-line);
  background: linear-gradient(160deg, rgba(20, 55, 43, 0.6), rgba(11, 31, 23, 0.45));
}

.hm-team__league {
  font-family: var(--fb-mono);
  font-size: var(--fs-13);
  color: var(--fb-mist);
  letter-spacing: 0.06em;
}

.hm-team__name {
  font-size: var(--fs-18);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hm-team__next {
  font-size: var(--fs-13);
  color: var(--fb-cyan);
  font-family: var(--fb-mono);
}

.hm-team .fb-tag { justify-self: start; margin-top: 0.15rem; }

.hm-grid-note {
  display: grid;
  gap: 1px;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--fb-line);
  border: 1px solid var(--fb-line);
}

.hm-grid-note > div {
  background: var(--fb-deep);
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.hm-figure-sm {
  margin: 0 0 0.35rem;
  font-size: var(--fs-32);
  color: var(--fb-cyan);
}

.hm-grid-note__label {
  margin: 0;
  font-size: var(--fs-14);
  color: var(--fb-mist);
  line-height: 1.6;
}

/* ---------- 同屏对照 ---------- */
.hm-wide {
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
  position: relative;
}

.hm-wide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--fb-line);
  filter: saturate(0.85) contrast(1.05);
}

.hm-figure__cap {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--fb-mono);
  font-size: var(--fs-13);
  color: var(--fb-mist);
  letter-spacing: 0.08em;
}

.hm-compare {
  display: grid;
  gap: 1.25rem;
}

.hm-compare__spine { display: none; }

.hm-board { padding: clamp(1.1rem, 3vw, 1.75rem); }

.hm-board__title {
  margin: 0;
  font-size: var(--fs-22);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hm-board__hint {
  font-family: var(--fb-mono);
  font-size: var(--fs-13);
  color: var(--fb-mist);
}

.hm-views {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0 1.1rem;
}

.hm-view {
  font-size: var(--fs-13);
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--fb-line);
  color: var(--fb-mist);
  white-space: nowrap;
}

.hm-view.is-on {
  color: var(--fb-ink);
  background: var(--fb-cyan-soft);
  border-color: var(--fb-cyan-soft);
  font-weight: 600;
}

.hm-table-wrap { overflow-x: auto; }

.hm-table {
  width: 100%;
  min-width: 300px;
  border-collapse: collapse;
  font-size: var(--fs-14);
}

.hm-table th {
  text-align: left;
  font-weight: 500;
  color: var(--fb-mist);
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid var(--fb-line);
  white-space: nowrap;
}

.hm-table td {
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid rgba(42, 52, 57, 0.7);
}

.hm-table th:first-child,
.hm-table td:first-child { padding-left: 0; }

.hm-table th:last-child,
.hm-table td:last-child { text-align: right; padding-right: 0; }

.hm-table tbody tr:last-child td { border-bottom: 0; }

.hm-poss {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.hm-poss__item { display: grid; gap: 0.45rem; }

.hm-poss__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.hm-poss__name { font-size: var(--fs-14); }

.hm-poss__val {
  font-size: var(--fs-18);
  color: var(--fb-cyan);
}

.hm-board__foot {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--fb-line);
  font-size: var(--fs-13);
  line-height: 1.7;
  color: var(--fb-mist);
}

/* ---------- 集锦 ---------- */
.hm-replay {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.hm-replay__copy .fb-title { margin: 0.5rem 0 1rem; }

.hm-prose {
  margin: 0 0 1rem;
  font-size: var(--fs-16);
  line-height: 1.8;
  color: var(--fb-white);
  max-width: 34em;
}

.hm-replay .hm-prose { color: var(--fb-mist); }

.hm-clips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
}

.hm-clip {
  flex: 1 1 120px;
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-top: 2px solid var(--fb-cyan);
  background: rgba(21, 25, 28, 0.65);
}

.hm-clip__n {
  font-size: var(--fs-32);
  color: var(--fb-white);
}

.hm-clip__t { font-size: var(--fs-13); color: var(--fb-mist); }

.hm-replay__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.hm-replay__figure { margin: 0; }

.hm-replay__figure img,
.hm-sync__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--fb-line);
  object-fit: cover;
}

/* ---------- 跨端续看 ---------- */
.hm-sync {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.hm-sync__copy .fb-title { margin: 0.5rem 0 1rem; }

.hm-sync__copy .hm-prose { color: var(--fb-mist); }

.hm-sync__copy .fb-btn { margin-top: 0.75rem; }

.hm-sync__figure { margin: 0; }

/* ---------- 赛季数据 ---------- */
.hm-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--fb-line);
  border: 1px solid var(--fb-line);
}

.hm-stats__item {
  background: var(--fb-deep);
  padding: clamp(1.1rem, 3vw, 1.9rem);
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.hm-stats__label {
  font-size: var(--fs-13);
  line-height: 1.65;
  color: var(--fb-mist);
}

.hm-season__foot {
  margin: clamp(1.5rem, 4vw, 2.25rem) 0 0;
  font-size: var(--fs-14);
  line-height: 1.8;
  color: var(--fb-mist);
  max-width: 46em;
}

.hm-season__foot a {
  color: var(--fb-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 结尾引导 ---------- */
.hm-cta { padding-bottom: clamp(3.5rem, 9vw, 7rem); }

.hm-cta__inner {
  position: relative;
  padding: clamp(1.75rem, 5vw, 3.25rem);
  border: 1px solid var(--fb-line);
  border-left: 3px solid var(--fb-orange);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 122, 26, 0.14), transparent 60%),
    linear-gradient(150deg, rgba(20, 55, 43, 0.7), rgba(11, 31, 23, 0.6));
}

.hm-cta__inner .fb-title { margin: 0.4rem 0 1rem; }

.hm-cta__inner .hm-prose { color: var(--fb-mist); }

.hm-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* ---------- 焦点态 ---------- */
.page-home a:focus-visible,
.page-home .fb-toc__link:focus-visible {
  outline: 2px solid var(--fb-cyan);
  outline-offset: 3px;
}

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

@media (min-width: 760px) {
  .hm-hero__media { aspect-ratio: 4 / 5; }

  .hm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 860px) {
  .hm-hero__body {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }

  .hm-replay { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .hm-sync { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
}

@media (min-width: 1024px) {
  .hm-compare {
    grid-template-columns: 2.25rem minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.25rem);
    align-items: stretch;
  }

  .hm-compare__spine {
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    margin: 0;
    padding-left: 0.4rem;
    border-left: 1px solid var(--fb-line);
    font-family: var(--fb-mono);
    font-size: var(--fs-13);
    letter-spacing: 0.32em;
    color: var(--fb-mist);
  }
}

@media (max-width: 719px) {
  .hm-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 76%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
  }

  .hm-match {
    scroll-snap-align: start;
    padding-right: 0.75rem;
    border-right: 1px solid var(--fb-line);
  }

  .hm-match:last-child { padding-right: 0; border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home * {
    animation: none !important;
    transition: none !important;
  }
}
</main>
