.page-home {
  --home-gap: clamp(22px, 3.4vw, 40px);
  --home-sec: clamp(72px, 9vw, 140px);
  --home-dark-line: rgba(203, 217, 210, .18);
  display: block;
  background: var(--ink-2);
  color: var(--text);
  overflow-x: clip;
}

/* ---------- 通用文案块 ---------- */
.page-home .sec-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.page-home .coord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--amber);
}

.page-home .coord-num {
  font-weight: 700;
  display: inline-block;
  padding: 3px 9px;
  background: var(--orange);
  color: #10161A;
  border-radius: 2px;
  letter-spacing: .04em;
  transform: skewX(-12deg);
}

.page-home .sec-head h2 {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 16px;
}

.page-home .sec-head .lede {
  font-size: 17px;
  line-height: 1.75;
  margin: 0;
  max-width: 60ch;
  opacity: .85;
}

.page-home a {
  color: inherit;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(18px, 2.6vw, 28px) 0 0;
  overflow: hidden;
}

.page-home .hero-glow {
  position: absolute;
  inset: -30% -15% auto -15%;
  height: 78%;
  background:
    radial-gradient(58% 100% at 16% 0%, rgba(15, 163, 107, .26), transparent 68%),
    radial-gradient(46% 100% at 88% 0%, rgba(255, 106, 24, .15), transparent 68%);
  pointer-events: none;
}

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

.page-home .home-context {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 0 0 clamp(24px, 4vw, 46px);
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(244, 251, 247, .6);
}

.page-home .home-context-mark {
  color: var(--green-soft);
  letter-spacing: .14em;
}

.page-home .hero-head {
  max-width: 780px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.page-home .hero-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
  border-left: 3px solid var(--orange);
  padding-left: 10px;
  margin-bottom: 20px;
}

.page-home .hero h1 {
  font-family: var(--f-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2.3rem, 6.6vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.02em;
  margin: 0 0 22px;
  color: var(--paper);
  transform: skewX(-6deg);
  transform-origin: left bottom;
}

.page-home .hero .lede {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.75;
  color: rgba(244, 251, 247, .8);
  margin: 0;
  max-width: 58ch;
}

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

/* 主队卡 */
.page-home .hero-team {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  border: 1px solid var(--home-dark-line);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}

.page-home .hero-team-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.05);
}

.page-home .hero-team-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 22, 26, .12) 0%, rgba(16, 22, 26, .74) 50%, rgba(11, 16, 19, .97) 100%);
}

.page-home .hero-team-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.page-home .hero-team-body .badge {
  font-size: 12px;
  letter-spacing: .16em;
  padding: 5px 11px;
  border-radius: 2px;
  background: var(--green);
  color: var(--paper);
  font-weight: 700;
}

.page-home .hero-team h2 {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--paper);
}

.page-home .hero-team-meta {
  margin: 0;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--green-soft);
}

.page-home .hero-team-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  width: 100%;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--home-dark-line);
}

.page-home .hero-team-stats .kv {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.page-home .hero-team-stats .kv-key {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--green-soft);
}

.page-home .hero-team-stats .kv-val {
  font-size: 15px;
  color: var(--paper);
}

/* 比分光轨 */
.page-home .hero-score {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--home-dark-line);
  border-radius: 2px;
  background: linear-gradient(158deg, rgba(15, 163, 107, .18), rgba(10, 46, 42, .92) 58%, rgba(11, 16, 19, .96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-home .hero-score::after {
  content: "";
  position: absolute;
  left: -30%;
  top: 38%;
  width: 160%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--amber), transparent);
  opacity: .3;
  pointer-events: none;
  animation: home-rail 9s linear infinite;
}

@keyframes home-rail {
  0% { transform: translateX(-18%); opacity: .1; }
  50% { opacity: .38; }
  100% { transform: translateX(18%); opacity: .1; }
}

.page-home .hero-score-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
}

.page-home .hero-score-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: home-beat 1.2s ease-out infinite;
}

@keyframes home-beat {
  0% { box-shadow: 0 0 0 0 rgba(255, 106, 24, .6); }
  70% { box-shadow: 0 0 0 12px rgba(255, 106, 24, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 24, 0); }
}

.page-home .hero-score-teams {
  margin: 0;
  font-size: 15px;
  color: rgba(244, 251, 247, .82);
}

.page-home .hero-score-sep {
  color: var(--green-soft);
  font-size: 12px;
  padding: 0 8px;
}

.page-home .hero-score-num {
  margin: 0;
  font-size: clamp(3rem, 8vw, 4.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}

.page-home .hero-score-num span {
  color: var(--orange);
  padding: 0 .1em;
}

.page-home .hero-pulse {
  height: 54px;
  width: 100%;
  overflow: hidden;
}

.page-home .hero-pulse svg {
  display: block;
  width: 100%;
  height: 100%;
}

.page-home .hero-pulse polyline {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  filter: drop-shadow(0 0 6px rgba(255, 106, 24, .5));
  animation: home-pulse-draw 2.8s var(--ease) infinite;
}

@keyframes home-pulse-draw {
  0% { stroke-dashoffset: 640; opacity: 1; }
  62% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.page-home .hero-score-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--home-dark-line);
}

.page-home .hero-score-meta dt {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--green-soft);
  margin-bottom: 5px;
}

.page-home .hero-score-meta dd {
  margin: 0;
  font-size: 15px;
  color: var(--paper);
}

.page-home .hero .rail {
  position: relative;
  margin-top: clamp(36px, 5vw, 64px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green) 18%, var(--orange) 58%, var(--amber) 82%, transparent);
  opacity: .55;
}

/* 章节索引带 */
.page-home .chapters {
  background: var(--ink-2);
  border-bottom: 1px solid var(--home-dark-line);
}

.page-home .chapters-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 14px;
  scrollbar-width: none;
}

.page-home .chapters-inner::-webkit-scrollbar {
  display: none;
}

.page-home .chapter-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 15px;
  font-size: 13px;
  text-decoration: none;
  color: rgba(244, 251, 247, .7);
  border: 1px solid var(--home-dark-line);
  border-radius: 2px;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.page-home .chapter-link:hover,
.page-home .chapter-link:focus-visible {
  color: var(--paper);
  border-color: var(--green);
  background: rgba(15, 163, 107, .16);
}

.page-home .chapter-num {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--amber);
}

.page-home .chapter-name {
  font-weight: 600;
  letter-spacing: .04em;
}

/* ---------- 联赛面板 ---------- */
.page-home .leagues {
  background: var(--teal);
  color: var(--paper);
  padding: var(--home-sec) 0;
}

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

.page-home .leagues-media {
  margin: 0;
  position: relative;
  border: 1px solid var(--home-dark-line);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-home .leagues-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(.78) brightness(.86);
}

.page-home .leagues-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(11, 16, 19, .92), transparent);
}

.page-home .leagues-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.page-home .tab {
  appearance: none;
  background: transparent;
  border: 1px solid var(--home-dark-line);
  color: rgba(244, 251, 247, .74);
  font: inherit;
  font-size: 13px;
  letter-spacing: .08em;
  padding: 8px 16px;
  border-radius: 2px;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.page-home .tab:hover {
  border-color: var(--green-soft);
  color: var(--paper);
}

.page-home .tab[aria-selected="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
  font-weight: 700;
}

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

.page-home .league-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 15px 18px;
  background: rgba(244, 251, 247, .045);
  border: 1px solid var(--home-dark-line);
  border-left: 3px solid var(--green);
  border-radius: 2px;
  transition: transform .22s var(--ease), border-left-color .22s var(--ease);
}

.page-home .league-item:hover {
  transform: translateX(4px);
  border-left-color: var(--orange);
}

.page-home .league-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--paper);
}

.page-home .league-meta,
.page-home .league-cell {
  font-size: 13px;
  color: rgba(244, 251, 247, .66);
}

.page-home .leagues-foot {
  margin: clamp(22px, 3vw, 30px) 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(244, 251, 247, .74);
}

.page-home .leagues-foot a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .leagues-foot a:hover,
.page-home .leagues-foot a:focus-visible {
  color: var(--orange);
}

/* ---------- 关注列表 ---------- */
.page-home .watchlist {
  background: var(--paper);
  color: var(--text);
  padding: var(--home-sec) 0;
}

.page-home .watchlist .coord {
  color: var(--green);
}

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

.page-home .watch-phone {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 40px -24px rgba(4, 10, 8, .34);
  padding: 16px;
  max-width: 480px;
}

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

.page-home .watch-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  font-size: 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.page-home .watch-item.is-pinned {
  border-color: var(--green);
  background: linear-gradient(100deg, rgba(15, 163, 107, .14), transparent 72%);
  box-shadow: inset 3px 0 0 var(--orange);
}

.page-home .watch-rank {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: var(--line);
  color: var(--muted);
  font-size: 12px;
}

.page-home .watch-item.is-pinned .watch-rank {
  background: var(--green);
  color: var(--paper);
}

.page-home .watch-name {
  flex: 1 1 auto;
  font-weight: 600;
}

.page-home .watch-score {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.page-home .watch-item.is-pinned .watch-score {
  color: var(--orange);
  font-weight: 700;
}

.page-home .watch-media {
  margin: 0;
}

.page-home .watch-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.page-home .watch-points {
  list-style: none;
  margin: clamp(30px, 4.5vw, 52px) 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-home .watch-points li {
  padding-top: 15px;
  border-top: 2px solid var(--green-soft);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.page-home .watch-points strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 5px;
}

.page-home .watch-foot {
  margin: clamp(26px, 4vw, 40px) 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .watch-foot a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .watch-foot a:hover,
.page-home .watch-foot a:focus-visible {
  color: var(--orange);
}

/* ---------- 战报 ---------- */
.page-home .reports {
  position: relative;
  background: var(--wine);
  color: var(--paper);
  padding: var(--home-sec) 0;
  overflow: hidden;
}

.page-home .reports-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .15;
  filter: saturate(.4);
  pointer-events: none;
}

.page-home .reports > .wrap {
  position: relative;
  z-index: 1;
}

.page-home .report-stats {
  list-style: none;
  margin: 0 0 clamp(28px, 4vw, 42px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.page-home .report-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(244, 251, 247, .28);
}

.page-home .stat-num {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.page-home .stat-label {
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(244, 251, 247, .82);
}

.page-home .report-list {
  display: grid;
  gap: 12px;
}

.page-home .report-item {
  border: 1px solid rgba(244, 251, 247, .22);
  background: rgba(16, 22, 26, .24);
  border-radius: 2px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.page-home .report-item[open] {
  border-color: var(--amber);
  background: rgba(11, 16, 19, .42);
}

.page-home .report-item summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .report-item summary::-webkit-details-marker {
  display: none;
}

.page-home .report-item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--f-data);
  font-size: 18px;
  color: var(--amber);
}

.page-home .report-item[open] summary::after {
  content: "−";
}

.page-home .report-time {
  font-size: 12px;
  letter-spacing: .06em;
  font-weight: 400;
  color: var(--amber);
}

.page-home .report-body {
  padding: 0 18px 18px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(244, 251, 247, .84);
}

.page-home .report-body p {
  margin: 0 0 10px;
}

.page-home .report-body p:last-child {
  margin-bottom: 0;
}

.page-home .reports-foot {
  margin: clamp(26px, 4vw, 40px) 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(244, 251, 247, .78);
}

.page-home .reports-foot a {
  color: var(--amber);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .reports-foot a:hover,
.page-home .reports-foot a:focus-visible {
  color: var(--orange);
}

/* ---------- 版本入口 ---------- */
.page-home .version {
  background: var(--ink);
  color: var(--paper);
  padding: var(--home-sec) 0;
}

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

.page-home .version-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--home-dark-line);
  border-radius: 2px;
  background: rgba(244, 251, 247, .035);
  color: var(--paper);
  text-decoration: none;
  transition: transform .24s var(--ease), border-color .24s var(--ease), background .24s var(--ease);
}

.page-home .version-card:hover,
.page-home .version-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--green);
  background: rgba(15, 163, 107, .13);
}

.page-home .version-tag {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}

.page-home .version-card h3 {
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.3;
  margin: 0;
}

.page-home .version-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(244, 251, 247, .74);
}

.page-home .version-go {
  margin-top: auto;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-soft);
}

.page-home .version-card:hover .version-go,
.page-home .version-card:focus-visible .version-go {
  color: var(--orange);
}

/* 焦点环 */
.page-home a:focus-visible,
.page-home button:focus-visible,
.page-home summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- 平板及以上 ---------- */
@media (min-width: 720px) {
  .page-home .hero-head {
    max-width: 820px;
  }

  .page-home .watch-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }

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

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

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: 7fr 5fr;
    align-items: stretch;
  }

  .page-home .hero-team {
    min-height: 480px;
  }

  .page-home .hero-score {
    justify-content: center;
  }

  .page-home .leagues-grid {
    grid-template-columns: 5fr 7fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
  }

  .page-home .league-item {
    grid-template-columns: minmax(130px, 1.1fr) minmax(88px, .8fr) minmax(130px, 1fr) minmax(130px, 1fr);
    align-items: center;
    gap: 10px 18px;
  }

  .page-home .watch-grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: clamp(32px, 5vw, 60px);
  }
}

@media (min-width: 1080px) {
  .page-home .hero-team {
    min-height: 540px;
  }

  .page-home .chapters-inner {
    justify-content: flex-start;
  }
}

/* ---------- 无障碍动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .hero-score::after,
  .page-home .hero-score-label::before,
  .page-home .hero-pulse polyline {
    animation: none;
  }

  .page-home .hero-pulse polyline {
    stroke-dashoffset: 0;
  }

  .page-home .hero-score::after {
    opacity: .28;
  }

  .page-home .league-item,
  .page-home .version-card {
    transition: none;
  }
}
</final>
