.page-home {
  --home-cyan-soft: rgba(47, 230, 200, .12);
  --home-orange-soft: rgba(255, 122, 47, .1);
  position: relative;
  background: var(--bg);
  color: var(--text);
}

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

.page-home .container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.page-home .section-note {
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-dim);
}

/* ---------- 首屏 ---------- */

.page-home .home-hero {
  position: relative;
  padding: clamp(32px, 5vw, 68px) 0 clamp(44px, 6vw, 84px);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: -18% -12% auto -12%;
  height: 620px;
  background:
    radial-gradient(58% 70% at 16% 0%, rgba(47, 230, 200, .13), transparent 62%),
    radial-gradient(48% 58% at 94% 10%, rgba(255, 122, 47, .1), transparent 64%);
  pointer-events: none;
}

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

.page-home .home-hero__head {
  max-width: 46rem;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.page-home .home-hero__head h1 {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(29px, 4.6vw, 54px);
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--text-strong);
}

.page-home .home-hero__lede {
  margin-top: 18px;
  max-width: 44rem;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
  color: var(--text);
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .home-hero__col {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--panel);
  box-shadow: var(--shadow-stack);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
    gap: 18px;
  }

  .page-home .home-hero__chart {
    margin-top: -14px;
  }

  .page-home .home-hero__entries {
    margin-top: 14px;
  }
}

.page-home .hero-col-head {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .hero-col-head__num {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mist);
}

/* 左列 */

.page-home .rail-art {
  position: absolute;
  right: -12%;
  bottom: -8%;
  width: 124%;
  height: 56%;
  object-fit: cover;
  opacity: .18;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 12%, transparent 92%);
  mask-image: linear-gradient(to top, #000 12%, transparent 92%);
}

.page-home .rail-timeline {
  position: relative;
  z-index: 2;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .rail-timeline .timeline-item {
  position: relative;
  padding: 0 0 14px 16px;
  border-left: 1px solid var(--line);
}

.page-home .rail-timeline .timeline-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}

.page-home .rail-timeline .timeline-item--signal::before {
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--home-cyan-soft);
}

.page-home .rail-timeline .timeline-item:last-child {
  padding-bottom: 0;
}

.page-home .rail-timeline .timeline-time {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.page-home .rail-timeline .timeline-title {
  display: block;
  margin-top: 3px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--text-strong);
}

.page-home .rail-timeline .timeline-text {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

.page-home .rail-foot {
  position: relative;
  z-index: 2;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  line-height: 1.68;
  color: var(--mist);
}

/* 中列 */

.page-home .chart-art {
  position: absolute;
  inset: auto -8% -14% -8%;
  width: 116%;
  height: 62%;
  object-fit: cover;
  opacity: .2;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(80% 92% at 50% 100%, #000, transparent 78%);
  mask-image: radial-gradient(80% 92% at 50% 100%, #000, transparent 78%);
}

.page-home .chart-figure {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 0;
}

.page-home .chart-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(46px, 8vw, 76px);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.page-home .chart-unit {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--mist);
}

.page-home .chart-caption {
  position: relative;
  z-index: 2;
  margin: 12px 0 0;
  max-width: 40rem;
  font-size: 14px;
  line-height: 1.72;
  color: var(--text);
}

.page-home .chart-svg-wrap {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 132px;
  margin-top: 18px;
  padding: 6px 0 0;
  border: 0;
  background: none;
}

.page-home .chart-svg-wrap .sparkline {
  width: 100%;
  height: 100%;
  min-height: 118px;
  display: block;
  overflow: visible;
}

.page-home .sparkline-grid line {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.page-home .sparkline-path {
  stroke: var(--cyan);
  stroke-width: 2.5;
}

.page-home .sparkline-dot {
  fill: var(--cyan);
}

.page-home .chart-axis {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

/* 右列 */

.page-home .entry-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .14;
  pointer-events: none;
}

.page-home .entry-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .entry-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(7, 19, 15, .62);
  text-decoration: none;
  transition: border-color .25s var(--ease), transform .25s var(--ease), background-color .25s var(--ease);
}

.page-home .entry-card:hover,
.page-home .entry-card:focus-visible {
  transform: translateY(-3px);
  background: rgba(7, 19, 15, .82);
}

.page-home .entry-card--v4:hover,
.page-home .entry-card--v4:focus-visible {
  border-color: rgba(255, 122, 47, .55);
}

.page-home .entry-card--ios:hover,
.page-home .entry-card--ios:focus-visible {
  border-color: rgba(47, 230, 200, .55);
}

.page-home .entry-card--column:hover,
.page-home .entry-card--column:focus-visible {
  border-color: rgba(111, 211, 255, .5);
}

.page-home .entry-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--text-strong);
}

.page-home .entry-desc {
  font-size: 12.5px;
  line-height: 1.66;
  color: var(--text-dim);
}

/* ---------- 联赛专题 ---------- */

.page-home .home-leagues {
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(48px, 6vw, 84px);
}

.page-home .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.page-home .section-head h2 {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(23px, 3.2vw, 38px);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text-strong);
}

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

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

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

.page-home .league-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--panel);
  box-shadow: var(--shadow-stack);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}

.page-home .league-card:hover {
  border-color: rgba(47, 230, 200, .45);
  transform: translateY(-3px);
}

.page-home .league-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.page-home .league-card__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  color: var(--text-strong);
}

.page-home .league-card__round {
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--orange);
  white-space: nowrap;
}

.page-home .league-card__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--text);
}

.page-home .league-card__meta {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  letter-spacing: .03em;
  color: var(--mist);
}

.page-home .league-card__link {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 211, 255, .35);
  padding-bottom: 1px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.page-home .league-card__link:hover,
.page-home .league-card__link:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-home .league-foot {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 近 5 轮对比 ---------- */

.page-home .home-form {
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(48px, 6vw, 84px);
}

.page-home .form-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--panel);
  box-shadow: var(--shadow-stack);
  overflow: hidden;
}

.page-home .ledger-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-areas:
    "rank team points"
    "seq seq trend";
  gap: 8px 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}

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

@media (min-width: 860px) {
  .page-home .ledger-row {
    grid-template-columns: 40px minmax(0, 1.3fr) minmax(0, 1.7fr) 68px 96px;
    grid-template-areas: "rank team seq points trend";
    gap: 12px 16px;
  }
}

.page-home .ledger-rank {
  grid-area: rank;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist);
}

.page-home .ledger-team {
  grid-area: team;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-strong);
}

.page-home .ledger-league {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  color: var(--mist);
}

.page-home .ledger-seq {
  grid-area: seq;
  display: flex;
  gap: 4px;
}

.page-home .res {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.page-home .res--w {
  color: var(--cyan);
  background: var(--home-cyan-soft);
  border-color: rgba(47, 230, 200, .3);
}

.page-home .res--d {
  color: var(--silver);
  background: rgba(199, 210, 206, .07);
  border-color: rgba(199, 210, 206, .18);
}

.page-home .res--l {
  color: var(--orange);
  background: var(--home-orange-soft);
  border-color: rgba(255, 122, 47, .28);
}

.page-home .ledger-points {
  grid-area: points;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  text-align: right;
}

.page-home .ledger-trend {
  grid-area: trend;
  font-size: 12px;
  letter-spacing: .02em;
  text-align: right;
  white-space: nowrap;
}

.page-home .ledger-trend--up {
  color: var(--cyan);
}

.page-home .ledger-trend--flat {
  color: var(--mist);
}

.page-home .ledger-trend--down {
  color: var(--orange);
}

.page-home .form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}

.page-home .form-foot p {
  margin: 0;
  max-width: 46rem;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
}

/* ---------- 通道与终端 ---------- */

.page-home .home-channels {
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(48px, 6vw, 84px);
}

.page-home .channel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

@media (min-width: 900px) {
  .page-home .channel-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

.page-home .channel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--panel);
  box-shadow: var(--shadow-stack);
  overflow: hidden;
}

.page-home .channel-card--v4::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 122, 47, .16), transparent 70%);
  pointer-events: none;
}

.page-home .channel-card--ios::before {
  content: "";
  position: absolute;
  inset: auto -30% -45% -10%;
  height: 300px;
  background: radial-gradient(45% 60% at 40% 60%, rgba(47, 230, 200, .14), transparent 72%);
  pointer-events: none;
}

.page-home .channel-card .panel-head,
.page-home .channel-card__desc,
.page-home .channel-stats,
.page-home .channel-list,
.page-home .channel-card .btn {
  position: relative;
  z-index: 1;
}

.page-home .channel-card .panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.page-home .channel-card .panel-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(19px, 2.2vw, 24px);
  letter-spacing: -.01em;
  color: var(--text-strong);
}

.page-home .channel-card__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--text);
}

.page-home .channel-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--line-soft);
  overflow: hidden;
}

.page-home .channel-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: var(--ink-750);
}

.page-home .channel-stats .stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.page-home .channel-stats .stat-value--signal {
  color: var(--orange);
}

.page-home .channel-stats .stat-label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--mist);
}

.page-home .channel-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .channel-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.68;
  color: var(--text);
}

.page-home .channel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 1px;
  background: var(--cyan);
}

.page-home .channel-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- 常去入口 ---------- */

.page-home .home-entrances {
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(48px, 6vw, 84px);
}

.page-home .home-banner {
  position: relative;
  margin: 0 0 clamp(40px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--ink-750);
}

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

.page-home .home-banner__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px clamp(16px, 3vw, 28px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--silver);
  background: linear-gradient(to top, rgba(7, 19, 15, .92), rgba(7, 19, 15, 0));
}

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

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

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

.page-home .entrance-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 18px 18px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--panel);
  box-shadow: var(--shadow-stack);
  transition: border-top-color .25s var(--ease), transform .25s var(--ease);
}

.page-home .entrance-card:hover {
  border-top-color: var(--cyan);
  transform: translateY(-3px);
}

.page-home .entrance-card__idx {
  padding-top: 16px;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--mist);
}

.page-home .entrance-card .index-card-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-strong);
}

.page-home .entrance-card .index-card-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.page-home .entrance-card .index-card-title a:hover,
.page-home .entrance-card .index-card-title a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-home .entrance-card .index-card-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--text);
}

.page-home .entrance-card .index-card-meta {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  letter-spacing: .03em;
  color: var(--mist);
}

/* ---------- 收藏与长线追踪 ---------- */

.page-home .home-keep {
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.page-home .home-keep__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

@media (min-width: 1024px) {
  .page-home .home-keep__wrap {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 36px;
    align-items: start;
  }
}

.page-home .home-keep__body h2 {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(23px, 3.2vw, 36px);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text-strong);
}

.page-home .home-keep__body > p {
  margin: 16px 0 0;
  max-width: 42rem;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.page-home .keep-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .keep-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-dim);
}

.page-home .keep-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 1px;
  background: var(--cyan);
}

.page-home .keep-list strong {
  color: var(--text-strong);
  font-weight: 700;
}

.page-home .keep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .home-keep__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--line-soft);
  overflow: hidden;
  box-shadow: var(--shadow-stack);
}

.page-home .home-keep__stats .stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: var(--panel);
}

.page-home .home-keep__stats .stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.03em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.page-home .home-keep__stats .stat-value--accent {
  color: var(--cyan);
}

.page-home .home-keep__stats .stat-label {
  font-size: 12px;
  line-height: 1.55;
  color: var(--mist);
}

/* ---------- 窄屏收敛 ---------- */

@media (max-width: 480px) {
  .page-home .res {
    width: 25px;
    height: 21px;
    font-size: 11px;
  }

  .page-home .chart-axis {
    font-size: 9.5px;
  }

  .page-home .entrance-card,
  .page-home .league-card {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry-card,
  .page-home .league-card,
  .page-home .entrance-card {
    transition: none;
  }
}
