.page-home {
  --hn-cut: 16px;
  --hn-rail-w: 44px;
}

.page-home [id] {
  scroll-margin-top: 110px;
}

/* ---------- 首屏框景 ---------- */

.page-home .hn-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(32px, 6vw, 68px) clamp(36px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 84% 6%, rgba(61, 242, 200, 0.11), transparent 58%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 66%);
}

.page-home .hn-hero::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(61, 242, 200, 0.16);
  pointer-events: none;
}

.page-home .hn-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
}

.page-home .hn-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.45) contrast(1.15);
}

.page-home .hn-hero-inner {
  position: relative;
  z-index: 1;
}

.page-home .hn-context {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 12px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--pulse);
  border: 1px solid rgba(61, 242, 200, 0.32);
  background: rgba(61, 242, 200, 0.06);
}

.page-home .hn-hero h1 {
  margin: 0 0 18px;
  max-width: 20ch;
  font-family: var(--font-narrow);
  font-size: clamp(1.9rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.page-home .hn-lede {
  max-width: 42rem;
  margin: 0 0 6px;
  font-size: clamp(0.97rem, 1.2vw, 1.06rem);
  line-height: 1.85;
  color: var(--paper);
  opacity: 0.88;
}

.page-home .hn-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: clamp(26px, 4vw, 44px);
}

.page-home .hn-rail {
  display: none;
}

.page-home .hn-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.page-home .hn-card {
  position: relative;
  padding: clamp(16px, 2.2vw, 26px);
  border: 1px solid var(--line);
  background: rgba(18, 51, 43, 0.82);
  clip-path: polygon(
    0 0,
    calc(100% - var(--hn-cut)) 0,
    100% var(--hn-cut),
    100% 100%,
    var(--hn-cut) 100%,
    0 calc(100% - var(--hn-cut))
  );
}

.page-home .hn-card--focus::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--pulse);
  box-shadow: 0 0 18px rgba(61, 242, 200, 0.5);
}

.page-home .hn-kick {
  margin: 10px 0 8px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.4rem, 9vw, 4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--pulse);
}

.page-home .hn-kick-meta {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--paper);
}

.page-home .hn-kick-sub {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--ash);
}

.page-home .hn-top-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .hn-top-item {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.page-home .hn-top-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .hn-top-pos {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--pulse);
}

.page-home .hn-top-name {
  font-size: 0.95rem;
  color: var(--paper);
}

.page-home .hn-top-pts {
  font-variant-numeric: tabular-nums;
  font-size: 1.1rem;
  color: var(--paper);
}

.page-home .hn-injury-mini {
  margin: 12px 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .hn-injury-mini li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-home .hn-injury-mini-name {
  font-size: 0.85rem;
  color: var(--paper);
  opacity: 0.86;
}

.page-home .hn-mini-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--pulse);
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 242, 200, 0.4);
}

.page-home .hn-mini-link:hover,
.page-home .hn-mini-link:focus-visible {
  color: var(--pulse-soft);
}

/* ---------- 章节标题微调 ---------- */

.page-home .hn-sub {
  margin: clamp(30px, 4vw, 48px) 0 6px;
  font-family: var(--font-narrow);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  letter-spacing: 0.05em;
  color: var(--paper);
}

.page-home .hn-sub-note {
  margin: 0 0 18px;
  max-width: 46rem;
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--ash);
}

/* ---------- 01 轮次切换与赛程 ---------- */

.page-home .hn-round-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 18px;
}

.page-home .hn-switch-btn {
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ash);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.22s, border-color 0.22s, background 0.22s;
}

.page-home .hn-switch-btn:hover {
  color: var(--pulse);
  border-color: var(--pulse);
}

.page-home .hn-switch-btn[aria-pressed="true"] {
  color: var(--ink);
  background: var(--pulse);
  border-color: var(--pulse);
}

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

.page-home .hn-fixture {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}

.page-home .hn-fixture-time {
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  color: var(--pulse);
}

.page-home .hn-fixture-match {
  font-size: 0.93rem;
  color: var(--paper);
}

.page-home .hn-fixture-match em {
  margin: 0 4px;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ash);
}

.page-home .hn-fixture-day {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--ash);
}

/* ---------- 积分榜 ---------- */

.page-home .hn-standings {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .hn-standings-head {
  display: none;
  gap: 10px;
  padding: 10px 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--ash);
  background: var(--ink-2);
}

.page-home .hn-row {
  border-bottom: 1px solid var(--line);
}

.page-home .hn-row:last-child {
  border-bottom: 0;
}

.page-home .hn-row-btn {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 3.4rem;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 8px;
  font: inherit;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 0.22s;
}

.page-home .hn-row-btn:hover {
  background: rgba(61, 242, 200, 0.06);
}

.page-home .hn-cell {
  min-width: 0;
  font-size: 0.92rem;
  color: var(--paper);
}

.page-home .hn-cell--pos {
  font-variant-numeric: tabular-nums;
  color: var(--pulse);
}

.page-home .hn-cell--team {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .hn-cell--stat {
  display: none;
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  color: var(--ash);
}

.page-home .hn-cell--gf {
  color: var(--paper);
}

.page-home .hn-cell--pts {
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  text-align: right;
  color: var(--pulse-soft);
}

.page-home .hn-row-panel {
  padding: 2px 8px 18px;
  display: grid;
  gap: 6px;
}

.page-home .hn-row-panel p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--ash);
}

/* ---------- 全宽条带 ---------- */

.page-home .hn-band {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.page-home .hn-band img {
  display: block;
  width: 100%;
  height: clamp(120px, 18vw, 220px);
  object-fit: cover;
  filter: saturate(0.4) brightness(0.72);
}

.page-home .hn-band-caption {
  position: absolute;
  left: clamp(16px, 4vw, 40px);
  bottom: 16px;
  margin: 0;
  padding: 6px 12px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: var(--pulse);
}

/* ---------- 02 伤停与补时 ---------- */

.page-home .hn-injury-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 22px;
}

.page-home .hn-injury-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  align-content: start;
}

.page-home .hn-injury-item {
  border: 1px solid var(--line);
  background: rgba(18, 51, 43, 0.6);
}

.page-home .hn-injury-btn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 0.22s;
}

.page-home .hn-injury-btn:hover {
  background: rgba(245, 165, 36, 0.08);
}

.page-home .hn-injury-name {
  flex: 1 1 8rem;
  font-size: 0.93rem;
  color: var(--paper);
}

.page-home .hn-injury-meta {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--ash);
}

.page-home .hn-injury-panel {
  padding: 0 16px 16px;
}

.page-home .hn-injury-panel p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--ash);
}

.page-home .hn-stoppage {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  background: linear-gradient(158deg, rgba(245, 165, 36, 0.16), rgba(18, 51, 43, 0.92) 62%);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--hn-cut)),
    calc(100% - var(--hn-cut)) 100%,
    0 100%
  );
}

.page-home .hn-stoppage-num {
  margin: 12px 0 4px;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.6rem, 8vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--amber);
}

.page-home .hn-stoppage-label {
  margin: 0 0 22px;
  font-size: 0.86rem;
  color: var(--paper);
  opacity: 0.85;
}

.page-home .hn-stoppage-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
  padding: 16px 0;
  border-top: 1px solid rgba(245, 165, 36, 0.28);
  border-bottom: 1px solid rgba(245, 165, 36, 0.28);
}

.page-home .hn-stoppage-split dt {
  margin: 0 0 6px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--ash);
}

.page-home .hn-stoppage-split dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: 1.3rem;
  color: var(--amber-soft);
}

.page-home .hn-stoppage-note {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--paper);
  opacity: 0.86;
}

/* ---------- 03 签表 ---------- */

.page-home .hn-bracket-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 24px;
}

.page-home .hn-bracket-art img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

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

.page-home .hn-bracket-round {
  position: relative;
  padding: 16px 14px;
  border: 1px solid var(--line);
  background: rgba(18, 51, 43, 0.55);
  transition: border-color 0.26s, background 0.26s, transform 0.26s;
}

.page-home .hn-bracket-round:hover {
  border-color: var(--pulse);
  background: rgba(61, 242, 200, 0.09);
  transform: translateY(-2px);
}

.page-home .hn-round-idx {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--pulse);
}

.page-home .hn-round-name {
  margin: 8px 0 4px;
  font-size: 0.95rem;
  color: var(--paper);
}

.page-home .hn-round-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ash);
}

.page-home .hn-bracket-cta {
  margin: 26px 0 0;
}

/* ---------- 04 时间轴 ---------- */

.page-home .hn-history-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 24px;
}

.page-home .hn-timeline {
  margin: 0;
  padding: 0 0 0 24px;
  list-style: none;
  display: grid;
  gap: 26px;
  border-left: 1px solid var(--line);
}

.page-home .hn-tl-node {
  position: relative;
}

.page-home .hn-tl-node::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--ash);
}

.page-home .hn-tl-node--now::before {
  border-color: var(--pulse);
  box-shadow: 0 0 12px rgba(61, 242, 200, 0.6);
}

.page-home .hn-tl-year {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--pulse);
}

.page-home .hn-tl-text {
  margin: 6px 0 0;
  max-width: 44rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--paper);
  opacity: 0.86;
}

.page-home .hn-history-art img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .hn-history-cta {
  margin: 26px 0 0;
}

/* ---------- 05 入口 ---------- */

.page-home .hn-audience {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 24px;
}

.page-home .hn-aud-card {
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  background: rgba(18, 51, 43, 0.6);
}

.page-home .hn-aud-card--fan {
  border-left: 3px solid var(--pulse);
}

.page-home .hn-aud-card--media {
  border-top: 3px solid rgba(155, 255, 232, 0.6);
}

.page-home .hn-aud-card--club {
  border-left: 3px solid rgba(245, 165, 36, 0.6);
}

.page-home .hn-aud-idx {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--pulse);
  margin-bottom: 12px;
}

.page-home .hn-aud-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-narrow);
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.page-home .hn-aud-card p {
  margin: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.82;
  color: var(--paper);
  opacity: 0.82;
}

/* ---------- 结尾条带 ---------- */

.page-home .hn-cta {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}

.page-home .hn-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: clamp(30px, 5vw, 52px);
}

.page-home .hn-cta-text {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--paper);
}

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

@media (min-width: 720px) {
  .page-home .hn-bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .page-home .hn-card--focus {
    grid-column: span 6;
  }

  .page-home .hn-card--top {
    grid-column: span 3;
  }

  .page-home .hn-card--injury {
    grid-column: span 3;
  }

  .page-home .hn-standings-head {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr) repeat(4, 3.2rem) 4.6rem 3rem;
  }

  .page-home .hn-row-btn {
    grid-template-columns: 2.4rem minmax(0, 1fr) repeat(4, 3.2rem) 4.6rem 3rem;
  }

  .page-home .hn-cell--stat {
    display: block;
  }

  .page-home .hn-bracket-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .hn-injury-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 900px) {
  .page-home .hn-hero-grid {
    grid-template-columns: var(--hn-rail-w) minmax(0, 1fr);
    align-items: stretch;
  }

  .page-home .hn-rail {
    display: block;
    position: relative;
    border-inline: 1px solid var(--line);
    background-image: repeating-linear-gradient(
      180deg,
      rgba(42, 63, 57, 0.9) 0 1px,
      transparent 1px 26px
    );
  }

  .page-home .hn-rail::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 58%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--pulse), rgba(61, 242, 200, 0));
    animation: hn-rail-pulse 3.6s ease-in-out infinite;
  }

  .page-home .hn-history-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    align-items: start;
  }

  .page-home .hn-bracket-layout {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    align-items: start;
  }
}

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

  .page-home .hn-card--focus {
    grid-column: span 5;
  }

  .page-home .hn-card--top {
    grid-column: span 4;
  }

  .page-home .hn-card--injury {
    grid-column: span 3;
  }

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

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

  .page-home .hn-aud-card--fan {
    grid-column: span 5;
  }

  .page-home .hn-aud-card--media {
    grid-column: span 4;
  }

  .page-home .hn-aud-card--club {
    grid-column: span 3;
  }
}

@keyframes hn-rail-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hn-rail::before {
    animation: none;
    opacity: 0.6;
  }

  .page-home .hn-bracket-round {
    transition: none;
  }
}
