.page-home {
  --home-gap: 14px;
  padding-bottom: 56px;
}

.page-home img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page-home .home-hero {
  position: relative;
  padding-top: 26px;
  padding-bottom: 8px;
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: -60px -24px auto -24px;
  height: 440px;
  background:
    radial-gradient(58% 66% at 80% 0%, rgba(40, 245, 210, 0.15), transparent 70%),
    radial-gradient(42% 58% at 8% 6%, rgba(124, 92, 255, 0.16), transparent 74%);
  pointer-events: none;
  z-index: 0;
}

.page-home .home-hero > * {
  position: relative;
  z-index: 1;
}

.page-home h1 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .hero-lead {
  max-width: 62ch;
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(232, 245, 240, 0.76);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-home .hero-grid {
  display: grid;
  gap: var(--home-gap);
  margin-top: 22px;
}

/* ---------- 第一栏 ---------- */
.page-home .first-col {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 42, 34, 0.98), rgba(7, 26, 22, 0.98));
  clip-path: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%, var(--cut-lg) 100%, 0 calc(100% - var(--cut-lg)));
  box-shadow: inset 0 1px 0 rgba(40, 245, 210, 0.22);
}

.page-home .first-col__texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  z-index: 0;
}

.page-home .first-col__body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 16px 15px 18px;
}

.page-home .first-col__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .first-col__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.page-home .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 2px 0 0;
}

.page-home .scorelist {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 9px 11px;
  background: rgba(18, 59, 48, 0.92);
  border-left: 2px solid rgba(40, 245, 210, 0.42);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.page-home .score__league {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.page-home .score__clock {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--cyan-soft);
}

.page-home .score__teams {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  font-size: 13.5px;
  color: var(--paper);
}

.page-home .score__nums {
  grid-column: 2;
  grid-row: 2;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.page-home .score[data-league="esports"] .score__nums {
  color: var(--violet);
}

.page-home .score[data-league="basketball"] .score__nums {
  color: var(--amber);
}

.page-home .score[data-filtered="off"] {
  display: none;
}

.page-home .first-col__note {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .first-col__link {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(40, 245, 210, 0.4);
  padding-bottom: 2px;
}

.page-home .first-col__link:hover,
.page-home .first-col__link:focus-visible {
  color: var(--cyan-soft);
  border-bottom-color: var(--cyan-soft);
}

/* ---------- Bento ---------- */
.page-home .bento {
  display: grid;
  gap: var(--home-gap);
  grid-template-columns: minmax(0, 1fr);
}

.page-home .tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 16px 16px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.page-home .tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.page-home a.tile:hover,
.page-home a.tile:focus-visible {
  background: #164539;
  transform: translateY(-2px);
}

.page-home a.tile:hover::after,
.page-home a.tile:focus-visible::after {
  border-color: rgba(40, 245, 210, 0.6);
}

.page-home .tile--hero {
  margin: 0;
  padding: 0;
  background: var(--panel);
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.page-home .tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.page-home .tile__cap {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 4px;
  padding: 30px 16px 14px;
  background: linear-gradient(180deg, rgba(2, 8, 6, 0), rgba(2, 8, 6, 0.92));
}

.page-home .tile__kicker {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .tile__kicker--magenta {
  color: var(--magenta);
}

.page-home .tile__kicker--amber {
  color: var(--amber);
}

.page-home .tile__cap-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--paper);
}

.page-home .tile__num {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
}

.page-home .tile__title {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.24;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.page-home .tile__desc {
  font-size: 13px;
  line-height: 1.72;
  color: rgba(232, 245, 240, 0.7);
}

.page-home .tile__go {
  margin-top: auto;
  padding-top: 8px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

/* ---------- 通用章节 ---------- */
.page-home .chapter {
  padding-top: 40px;
}

.page-home .chapter--alt {
  position: relative;
}

.page-home .chapter--alt::before {
  content: "";
  position: absolute;
  inset: 22px -26px 0 -26px;
  background: linear-gradient(180deg, rgba(12, 42, 34, 0.55), rgba(7, 26, 22, 0));
  border-top: 1px dashed var(--line-soft);
  pointer-events: none;
  z-index: 0;
}

.page-home .chapter--alt > * {
  position: relative;
  z-index: 1;
}

.page-home .chapter__head {
  display: grid;
  gap: 8px;
  max-width: 74ch;
}

.page-home .chapter__head .eyebrow {
  margin: 0;
}

.page-home h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 5.4vw, 34px);
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.page-home .chapter__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(232, 245, 240, 0.74);
}

/* ---------- 球队库 ---------- */
.page-home .clubs-layout {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.page-home .clubs-facts {
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-home .stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-home .stat {
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  background: rgba(18, 59, 48, 0.72);
  border-top: 1px solid rgba(40, 245, 210, 0.28);
}

.page-home .stat__num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--cyan);
}

.page-home .stat__label {
  font-size: 12px;
  color: var(--muted);
}

.page-home .dims {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px dashed var(--line-soft);
}

.page-home .dims li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 2px;
  font-size: 13.5px;
  color: rgba(232, 245, 240, 0.86);
  border-bottom: 1px dashed var(--line-soft);
}

.page-home .dims__k {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--violet);
}

.page-home .clubs-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .clubs-facts .btn {
  justify-self: start;
}

.page-home .clubs-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(var(--cut-lg) 0, 100% 0, 100% calc(100% - var(--cut-lg)), calc(100% - var(--cut-lg)) 100%, 0 100%, 0 var(--cut-lg));
  background: var(--panel);
}

.page-home .clubs-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.9;
}

.page-home .clubs-shot__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 14px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan-soft);
  background: linear-gradient(180deg, rgba(2, 8, 6, 0), rgba(2, 8, 6, 0.9));
}

/* ---------- 订阅流程 ---------- */
.page-home .steps {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.page-home .step {
  padding: 14px 15px;
  background: rgba(18, 59, 48, 0.6);
  border-left: 2px solid rgba(255, 181, 71, 0.55);
}

.page-home .step__idx {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--amber);
}

.page-home .step__title {
  margin: 8px 0 4px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.page-home .step__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: rgba(232, 245, 240, 0.72);
}

.page-home .subs-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.page-home .subs-foot__text {
  flex: 1 1 240px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 桌面端 ---------- */
.page-home .desk-layout {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.page-home .desk-flow {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-home .flowlist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.page-home .flowlist li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(232, 245, 240, 0.88);
  background: rgba(12, 42, 34, 0.7);
  border-left: 1px solid rgba(40, 245, 210, 0.4);
}

.page-home .flowlist__k {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-home .docgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-home .doc {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  background: var(--card);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.page-home .doc__n {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--amber);
}

.page-home .doc__d {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(232, 245, 240, 0.7);
}

.page-home .desk-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .desk-flow .btn {
  justify-self: start;
}

.page-home .desk-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-lg)), calc(100% - var(--cut-lg)) 100%, 0 100%);
}

.page-home .desk-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.9;
}

.page-home .desk-shot__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 14px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan-soft);
  background: linear-gradient(180deg, rgba(2, 8, 6, 0), rgba(2, 8, 6, 0.9));
}

/* ---------- 信任 ---------- */
.page-home .trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.page-home .tcard {
  display: grid;
  gap: 4px;
  padding: 14px 13px;
  background: linear-gradient(160deg, rgba(18, 59, 48, 0.95), rgba(12, 42, 34, 0.95));
  border-bottom: 2px solid rgba(255, 46, 136, 0.45);
}

.page-home .tcard__n {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--paper);
}

.page-home .tcard__l {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.page-home .promises {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .promises li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(232, 245, 240, 0.8);
}

.page-home .promises li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-home .trust-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* ---------- 返回第一栏 ---------- */
.page-home .back-first {
  position: fixed;
  right: 14px;
  bottom: 16px;
  z-index: 40;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-decoration: none;
  background: rgba(7, 26, 22, 0.94);
  border: 1px solid rgba(40, 245, 210, 0.28);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-home .back-first:hover,
.page-home .back-first:focus-visible {
  color: var(--amber);
  border-color: rgba(255, 181, 71, 0.6);
}

/* ---------- 响应式 ---------- */
@media (min-width: 560px) {
  .page-home .stat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .page-home .tile--hero {
    grid-column: 1 / -1;
  }

  .page-home .tile--live {
    grid-column: 1 / -1;
  }

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

@media (min-width: 900px) {
  .page-home .home-hero {
    padding-top: 34px;
  }

  .page-home .hero-grid {
    grid-template-columns: minmax(280px, 322px) minmax(0, 1fr);
    align-items: start;
    margin-top: 26px;
  }

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

  .page-home .tile--hero {
    grid-column: span 4;
  }

  .page-home .tile--live {
    grid-column: span 2;
  }

  .page-home .tile--clubs,
  .page-home .tile--subs,
  .page-home .tile--download {
    grid-column: span 2;
  }

  .page-home .clubs-layout {
    grid-template-columns: 1.06fr 0.94fr;
    align-items: stretch;
  }

  .page-home .clubs-shot img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 340px;
  }

  .page-home .desk-layout {
    grid-template-columns: 1fr 0.82fr;
    align-items: stretch;
  }

  .page-home .desk-shot img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 360px;
  }

  .page-home .chapter {
    padding-top: 52px;
  }

  .page-home .back-first {
    right: 28px;
    bottom: 26px;
  }
}

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