.page-home {
  --hm-card: rgba(18, 28, 48, .74);
  --hm-gap: clamp(16px, 3vw, 30px);
}

.page-home .hm-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  padding-top: 16px;
}

.page-home .hm-topbar__meta {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--frost);
}

/* ---------- 首屏分屏 ---------- */
.page-home .hm-hero {
  display: grid;
  gap: var(--hm-gap);
  padding-block: 26px 34px;
  align-items: start;
}

.page-home .hm-hero__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 7.4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: #fff;
}

.page-home .hm-hero__lede {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--frost);
}

.page-home .hm-hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .hm-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.page-home .hm-hero__stats div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.page-home .hm-hero__stats dt {
  font-size: 12px;
  color: var(--frost);
}

.page-home .hm-hero__stats dd {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
}

/* 记分牌视觉 */
.page-home .hm-board {
  position: relative;
  padding: 12px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(18, 183, 106, .20), transparent 62%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  clip-path: var(--cut-lg);
}

.page-home .hm-board__shot {
  position: relative;
  aspect-ratio: 14 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-home .hm-board__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .hm-board__rows {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.page-home .hm-board__row {
  display: grid;
  grid-template-columns: 24px 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--frost);
}

.page-home .hm-board__row .mono {
  color: var(--orange);
}

.page-home .hm-board__name {
  color: #dfe6f2;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .hm-board__row .rank-bar {
  width: 100%;
}

.page-home .hm-board__scale {
  position: relative;
  height: 12px;
  margin-top: 14px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 13px);
}

.page-home .hm-board__scale::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 74%;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--orange));
}

/* ---------- 目录条 ---------- */
.page-home .hm-toc {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.page-home .hm-toc::-webkit-scrollbar {
  display: none;
}

.page-home .hm-toc a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  color: var(--frost);
  font-size: 13px;
  text-decoration: none;
  clip-path: var(--cut);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.page-home .hm-toc a .mono {
  font-size: 11px;
  color: var(--cyan);
}

.page-home .hm-toc a:hover {
  color: #fff;
  border-color: var(--green);
  background: rgba(18, 183, 106, .10);
}

/* ---------- 栏目头 ---------- */
.page-home .hm-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 16px;
  align-items: start;
  margin-bottom: 24px;
}

.page-home .hm-secnum {
  font-family: var(--font-display);
  font-size: clamp(34px, 8vw, 62px);
  font-weight: 800;
  line-height: .84;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}

.page-home .hm-head .section-title {
  margin-top: 6px;
}

/* ---------- 01 榜单 ---------- */
.page-home .hm-ranks {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-home .hm-rank {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .22s ease, transform .22s ease;
}

.page-home .hm-rank:hover {
  background: rgba(18, 183, 106, .08);
  transform: translateY(-2px);
}

.page-home .hm-rank__no {
  font-size: 15px;
  font-weight: 700;
  color: var(--frost);
}

.page-home .hm-rank:nth-child(-n+3) .hm-rank__no {
  color: var(--orange);
}

.page-home .hm-rank__name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .hm-rank__bar {
  display: none;
}

.page-home .hm-rank__bar .rank-bar {
  width: 100%;
}

.page-home .hm-rank__score {
  font-size: 15px;
  color: var(--cyan);
}

.page-home .hm-rank__delta {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 7px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.page-home .hm-rank__delta--up {
  color: var(--green);
}

.page-home .hm-rank__delta--down {
  color: var(--alert);
}

.page-home .hm-rank__delta--flat {
  color: var(--frost);
}

/* ---------- 02 联赛专题 ---------- */
.page-home .hm-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.page-home .hm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .hm-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 13px;
  color: var(--frost);
  background: transparent;
  border: 1px solid var(--line);
  clip-path: var(--cut);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.page-home .hm-chip:hover {
  color: #fff;
  border-color: var(--line-strong);
}

.page-home .hm-chip[aria-pressed="true"],
.page-home .hm-chip.is-active {
  color: var(--ink);
  background: var(--green);
  border-color: var(--green);
}

.page-home .hm-count {
  margin: 0;
  font-size: 12px;
  color: var(--frost);
}

.page-home .hm-count [data-league-current] {
  color: var(--cyan);
}

.page-home .hm-topics {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(238px, 76%);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-home .hm-topic {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: var(--hm-card);
  clip-path: var(--cut);
  transition: transform .26s ease, border-color .26s ease;
}

.page-home .hm-topic:hover {
  transform: translateY(-4px);
  border-color: var(--green);
}

.page-home .hm-topic.is-hidden {
  display: none;
}

.page-home .hm-topic__cover {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2) 70%);
}

.page-home .hm-topic__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .hm-topic__code {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: .06em;
  color: rgba(70, 227, 208, .22);
}

.page-home .hm-topic__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 14px;
}

.page-home .hm-topic__body .tag {
  align-self: flex-start;
}

.page-home .hm-topic__body h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: #fff;
}

.page-home .hm-topic__body p {
  margin: 0;
  flex: 1;
  font-size: 13px;
  line-height: 1.68;
  color: var(--frost);
}

.page-home .hm-topic__link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  text-decoration: none;
}

.page-home .hm-topic__link:hover {
  color: var(--green);
}

/* ---------- 03 时间轴 ---------- */
.page-home .hm-lineup {
  background:
    radial-gradient(90% 120% at 10% 0%, rgba(70, 227, 208, .08), transparent 62%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .hm-band {
  overflow: hidden;
  border: 1px solid var(--line);
  clip-path: var(--cut-lg);
}

.page-home .hm-band img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .hm-tl {
  list-style: none;
  margin: 28px 0 0;
  padding: 0 0 0 22px;
  border-left: 1px dashed var(--line-strong);
  display: grid;
  gap: 2px;
}

.page-home .hm-tl__item {
  position: relative;
  padding: 12px 0;
}

.page-home .hm-tl__dot {
  position: absolute;
  left: -27px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(70, 227, 208, .14);
}

.page-home .hm-tl__t {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--cyan);
}

.page-home .hm-tl__body {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--frost);
}

.page-home .hm-tl__body strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* ---------- 04 下载 ---------- */
.page-home .hm-dl {
  display: grid;
  gap: 20px;
  padding: clamp(18px, 4.4vw, 38px);
  border: 1px solid var(--line);
  background:
    linear-gradient(152deg, rgba(255, 122, 41, .12), rgba(10, 18, 32, 0) 56%),
    var(--ink-2);
  clip-path: var(--cut-lg);
}

.page-home .hm-dl__list {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: grid;
  gap: 9px;
}

.page-home .hm-dl__list li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.66;
  color: var(--frost);
}

.page-home .hm-dl__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 11px;
  height: 2px;
  background: var(--green);
}

.page-home .hm-dl__fig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

/* ---------- 05 评分维度 ---------- */
.page-home .hm-dims {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.page-home .hm-dim {
  padding: 15px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  clip-path: var(--cut);
}

.page-home .hm-dim__n {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--orange);
}

.page-home .hm-dim__name {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.page-home .hm-dim__desc {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--frost);
}

.page-home .hm-cadence {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 18px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  background: rgba(18, 183, 106, .07);
}

.page-home .hm-cadence span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--frost);
}

.page-home .hm-cadence b {
  font-weight: 600;
  color: var(--cyan);
}

/* ---------- 06 纠错与合作 ---------- */
.page-home .hm-split {
  display: grid;
  gap: 14px;
}

.page-home .hm-split__col {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  clip-path: var(--cut);
}

.page-home .hm-split__col--alt {
  background:
    linear-gradient(150deg, rgba(18, 183, 106, .10), rgba(18, 28, 48, 0) 62%),
    var(--ink-2);
  border-color: rgba(18, 183, 106, .32);
}

.page-home .hm-split__col h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.page-home .hm-split__col p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.72;
  color: var(--frost);
}

.page-home .hm-split__meta {
  font-size: 13px;
  color: var(--cyan) !important;
  letter-spacing: .02em;
}

.page-home .hm-footline {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--frost);
}

.page-home .hm-footline a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(70, 227, 208, .35);
}

.page-home .hm-footline a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ---------- 断点 ---------- */
@media (min-width: 720px) {
  .page-home .hm-rank {
    grid-template-columns: 40px minmax(0, 1fr) 170px 62px 66px;
    gap: 14px;
    padding: 13px 10px;
  }

  .page-home .hm-rank__bar {
    display: block;
  }

  .page-home .hm-topics {
    grid-auto-columns: 296px;
  }

  .page-home .hm-split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .page-home .hm-hero {
    grid-template-columns: 7fr 5fr;
    gap: clamp(24px, 4vw, 52px);
    padding-block: 46px 64px;
  }

  .page-home .hm-hero__lede {
    font-size: 17px;
  }

  .page-home .hm-tl {
    margin: 40px 0 0;
    padding: 0;
    border-left: 0;
    border-top: 1px dashed var(--line-strong);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }

  .page-home .hm-tl__item {
    padding: 28px 18px 0 0;
  }

  .page-home .hm-tl__dot {
    left: 0;
    top: -5px;
  }

  .page-home .hm-dl {
    grid-template-columns: 1.12fr .88fr;
    align-items: center;
    gap: 36px;
  }
}

@media (min-width: 1120px) {
  .page-home .hm-topics {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow: visible;
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hm-rank,
  .page-home .hm-topic,
  .page-home .hm-toc a,
  .page-home .hm-chip {
    transition: none;
  }

  .page-home .hm-rank:hover,
  .page-home .hm-topic:hover {
    transform: none;
  }
}
