.page-home {
  --home-gap: clamp(18px, 2.6vw, 30px);
  --home-panel: rgba(18, 35, 58, 0.78);
  --home-hair: rgba(36, 64, 95, 0.9);
}

/* ---------- 首屏：专题封面 ---------- */

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  padding-block: clamp(18px, 3vw, 30px) clamp(34px, 6vw, 76px);
  border-bottom: 1px solid var(--grid);
}

.page-home .home-hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
  pointer-events: none;
}

.page-home .home-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
  filter: saturate(0.72) contrast(1.05) brightness(0.5);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(36, 64, 95, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 64, 95, 0.5) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 62%, transparent 100%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(110% 82% at 10% 6%, rgba(47, 227, 208, 0.22), transparent 56%),
    radial-gradient(90% 70% at 92% 88%, rgba(255, 107, 44, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(10, 21, 36, 0.72) 0%, rgba(10, 21, 36, 0.9) 58%, var(--ink) 100%);
}

.page-home .home-hero-inner {
  display: grid;
  gap: var(--home-gap);
  align-items: start;
}

.page-home .home-hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--paper);
  max-width: 17ch;
}

.page-home .home-hero-lede {
  margin: 0;
  max-width: 48ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
  color: var(--mist);
}

.page-home .home-hero-stats {
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--home-hair);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
}

.page-home .home-hero-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .home-hero-stats .stat-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.page-home .home-hero-stats .stat-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* ---------- 联赛切换器 ---------- */

.page-home .home-switch {
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 35, 58, 0.94), rgba(10, 21, 36, 0.94));
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.page-home .home-switch-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--grid);
  background: rgba(47, 227, 208, 0.05);
}

.page-home .home-switch-title {
  position: relative;
  margin: 0;
  padding-left: 11px;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .home-switch-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  bottom: 0.16em;
  width: 4px;
  border-radius: 1px;
  background: var(--cyan);
}

.page-home .home-switch-hint {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
  white-space: nowrap;
}

.page-home .home-switch .tab-list {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0;
  border-bottom: 1px solid var(--grid);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-switch .tab-list::-webkit-scrollbar {
  height: 4px;
}

.page-home .home-switch .tab-list::-webkit-scrollbar-thumb {
  background: var(--grid);
  border-radius: 2px;
}

.page-home .home-switch .tab {
  flex: 0 0 auto;
  appearance: none;
  margin: 0;
  border: 0;
  border-right: 1px solid var(--grid);
  background: transparent;
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 12px 16px;
  min-height: 44px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}

.page-home .home-switch .tab:hover {
  color: var(--paper);
  background: rgba(47, 227, 208, 0.07);
}

.page-home .home-switch .tab[aria-selected="true"] {
  color: var(--cyan);
  background: rgba(47, 227, 208, 0.1);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.page-home .home-switch .tab-panel {
  padding: clamp(16px, 2.4vw, 22px);
}

.page-home .home-switch .tab-panel[hidden] {
  display: none;
}

.page-home .home-switch-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
}

.page-home .home-switch-count .num {
  font-family: var(--font-mono);
  font-size: clamp(34px, 6vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.page-home .home-switch-count > span:last-child {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.page-home .home-switch-desc {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .home-switch-meta {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--grid);
  display: grid;
  gap: 8px;
}

.page-home .home-switch-meta li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--paper);
}

.page-home .home-switch-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--orange);
}

/* ---------- 本月上新索引 ---------- */

.page-home .home-fresh {
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.page-home .home-fresh-art {
  margin: 0;
}

.page-home .home-fresh-art img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.85) brightness(0.78);
}

.page-home .home-fresh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-block: 1px solid var(--grid);
  background: rgba(47, 227, 208, 0.05);
}

.page-home .home-fresh-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--paper);
}

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

.page-home .home-fresh-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--grid);
}

.page-home .home-fresh-item .tag {
  margin-bottom: 6px;
}

.page-home .home-fresh-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--mist);
}

.page-home .home-fresh-foot {
  padding: 14px 16px;
  border-top: 1px solid var(--grid);
  background: rgba(10, 21, 36, 0.6);
}

/* ---------- 上手三步 ---------- */

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

.page-home .home-path-item {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background: var(--ink);
  transition: border-color 220ms var(--ease);
}

.page-home .home-path-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 26px;
  height: 26px;
  border-top: 2px solid var(--orange);
  border-left: 2px solid var(--orange);
  border-top-left-radius: var(--radius);
}

.page-home .home-path-item:hover {
  border-color: var(--cyan);
}

.page-home .home-path-num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.page-home .home-path-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .home-path-text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 今日战报 ---------- */

.page-home .home-reports-band {
  position: relative;
  margin: 0 0 clamp(20px, 3vw, 30px);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.page-home .home-reports-band img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(0.8) brightness(0.78);
}

.page-home .home-report-stream {
  align-items: start;
}

.page-home .home-report {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background: var(--ink);
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
}

.page-home .home-report:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}

.page-home .home-report .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .home-report-time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.page-home .home-report-score {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(27px, 5vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.page-home .home-report-colon {
  padding: 0 3px;
  color: var(--mist);
}

.page-home .home-report-teams {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.page-home .home-report .card-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .home-reports-more {
  margin: clamp(20px, 3vw, 28px) 0 0;
}

/* ---------- 排名速览 ---------- */

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

.page-home .home-rank-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 54px;
  grid-template-areas:
    "pos team val"
    "bar bar bar";
  gap: 6px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--grid);
}

.page-home .home-rank-pos {
  grid-area: pos;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.page-home .home-rank-team {
  grid-area: team;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--paper);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .home-rank-bar {
  grid-area: bar;
  position: relative;
  height: 8px;
  border-radius: 2px;
  background: var(--grid);
  overflow: hidden;
}

.page-home .home-rank-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(47, 227, 208, 0.32));
}

.page-home .home-rank-row:nth-child(1) .home-rank-fill { width: 100%; }
.page-home .home-rank-row:nth-child(2) .home-rank-fill { width: 90%; }
.page-home .home-rank-row:nth-child(3) .home-rank-fill { width: 87%; }
.page-home .home-rank-row:nth-child(4) .home-rank-fill { width: 81%; }
.page-home .home-rank-row:nth-child(5) .home-rank-fill { width: 75%; }
.page-home .home-rank-row:nth-child(6) .home-rank-fill { width: 68%; }
.page-home .home-rank-row:nth-child(7) .home-rank-fill { width: 59%; }
.page-home .home-rank-row:nth-child(8) .home-rank-fill { width: 53%; }

.page-home .home-rank-row:nth-child(1) .home-rank-fill {
  background: linear-gradient(90deg, var(--orange), rgba(255, 107, 44, 0.35));
}

.page-home .home-rank-row:nth-child(1) .home-rank-pos {
  color: var(--orange);
}

.page-home .home-rank-val {
  grid-area: val;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.page-home .home-rank-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 28px);
}

/* ---------- 场馆与城市 ---------- */

.page-home .home-venues-inner {
  display: grid;
  gap: 22px;
  align-items: center;
}

.page-home .home-venues-figure {
  margin: 0;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.page-home .home-venues-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.82);
}

.page-home .home-venues-lede {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .home-venues-meta {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.page-home .home-venues-meta li {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.page-home .home-venues-meta .num {
  margin-right: 5px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
}

.page-home .home-venues-note {
  margin: 16px 0 18px;
  padding-left: 12px;
  border-left: 2px solid var(--amber);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mist);
}

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

@media (min-width: 720px) {
  .page-home .home-reports-band img {
    aspect-ratio: 5 / 2;
  }

  .page-home .home-path-list {
    gap: 18px;
  }

  .page-home .home-report:nth-child(even) {
    margin-top: 26px;
  }

  .page-home .home-fresh-art img {
    aspect-ratio: 3 / 2;
  }
}

@media (min-width: 860px) {
  .page-home .home-path-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 880px) {
  .page-home .home-venues-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(24px, 3vw, 44px);
  }
}

@media (min-width: 960px) {
  .page-home .home-hero {
    padding-block: clamp(26px, 3.4vw, 46px) clamp(44px, 5vw, 84px);
  }

  .page-home .home-hero-inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    column-gap: clamp(24px, 3vw, 44px);
  }

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

  .page-home .home-switch {
    grid-column: 1;
  }

  .page-home .home-fresh {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
  }

  .page-home .home-fresh-art img {
    aspect-ratio: 4 / 3;
  }

  .page-home .home-rank-row {
    grid-template-columns: 34px minmax(120px, 200px) minmax(0, 1fr) 64px;
    grid-template-areas: "pos team bar val";
    gap: 0 14px;
    padding: 13px 0;
  }

  .page-home .home-rank-val {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-report,
  .page-home .home-path-item {
    transition: none;
  }

  .page-home .home-report:hover {
    transform: none;
  }
}
</main>
