.page-home {
  --home-hero-min: 620px;
  --home-tilt: -4deg;
  background: var(--ink-900);
  color: var(--paper);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  min-height: var(--home-hero-min);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--bar-h) + clamp(40px, 7vw, 88px)) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.page-home .hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  max-width: 100%;
  height: auto;
  min-height: 100%;
}

.page-home .hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 12, 0.86) 0%, rgba(7, 9, 12, 0.42) 38%, rgba(7, 9, 12, 0.98) 100%),
    repeating-linear-gradient(90deg, rgba(30, 42, 56, 0.55) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(30, 42, 56, 0.35) 0 1px, transparent 1px 72px);
}

.page-home .hero__inner {
  position: relative;
  width: 100%;
}

.page-home .hero__kicker {
  color: var(--green);
  margin: 0 0 clamp(14px, 2vw, 22px);
  display: inline-block;
  padding-left: 18px;
  position: relative;
}

.page-home .hero__kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 2px;
  background: var(--green);
  transform: translateY(-50%);
}

.page-home .hero__title {
  font-size: clamp(54px, 11.5vw, 140px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 clamp(18px, 3vw, 30px);
  max-width: 12ch;
}

.page-home .hero__lede {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.75;
  color: var(--mist);
  max-width: 40ch;
  margin: 0 0 clamp(26px, 4vw, 40px);
}

.page-home .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.page-home .hero__hud {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 14px 20px;
  max-width: 100%;
  background: rgba(16, 22, 32, 0.86);
  border: 1px solid var(--line);
  border-left: 2px solid var(--green);
  backdrop-filter: blur(8px);
}

.page-home .hero__hud-label {
  font-size: 13px;
  color: var(--mist);
  letter-spacing: 0.04em;
}

.page-home .hero__clock {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1;
  color: var(--green);
  animation: home-pulse 2s var(--ease) infinite;
}

.page-home .hero__hud-sub {
  font-size: 12px;
  color: var(--mist);
  letter-spacing: 0.18em;
}

@keyframes home-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ---------- 章节通用 ---------- */
.page-home .section {
  position: relative;
  padding: calc(var(--sec-gap) * 0.5) 0;
}

.page-home .section__head {
  margin-bottom: clamp(32px, 4.5vw, 56px);
  max-width: 68ch;
}

.page-home .section__index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--on-green);
  background: var(--green);
  padding: 4px 14px 4px 10px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  margin-bottom: 20px;
}

.page-home .section__title {
  font-size: clamp(28px, 4.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 18px;
}

.page-home .section__lede {
  font-size: 16px;
  line-height: 1.8;
  color: var(--mist);
  margin: 0;
  max-width: 42ch;
}

/* ---------- 01 入口与联赛列表 ---------- */
.page-home .entry-grid {
  row-gap: clamp(28px, 4vw, 48px);
}

.page-home .entry-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.page-home .league-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(90deg, rgba(30, 42, 56, 0.9) 0 1px, transparent 1px 32px);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.page-home .league-rail .league-switch__btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.page-home .watch-toggle {
  align-self: flex-start;
}

.page-home .entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .entry {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px 18px 20px;
  background: var(--ink-800);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .entry:hover {
  background: #131b27;
  transform: translateX(3px);
}

.page-home .entry__star {
  font-size: 16px;
  line-height: 1.6;
  color: var(--line);
  transition: color var(--dur) var(--ease);
}

.page-home .entry[data-watch="true"] .entry__star {
  color: var(--green);
}

.page-home .entry__league {
  color: var(--blue);
  margin: 0 0 8px;
}

.page-home .entry__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--paper);
}

.page-home .entry__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
  margin: 0;
}

.page-home .entry__time {
  font-size: 13px;
  color: var(--green);
  white-space: nowrap;
  padding-top: 4px;
}

.page-home .entry-foot {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .entry-foot a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 255, 79, 0.4);
}

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

.page-home .entry-grid__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-home .entry-grid__side .media-frame {
  margin: 0;
}

.page-home .sync-note {
  border: 1px solid var(--line);
  border-left: 2px solid var(--blue);
  background: var(--ink-800);
  padding: 20px 22px;
}

.page-home .sync-note__num {
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1;
  color: var(--blue);
  margin: 0 0 8px;
}

.page-home .sync-note__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 02 更新节奏 ---------- */
.page-home .rhythm {
  background:
    linear-gradient(180deg, rgba(14, 42, 22, 0.55) 0%, rgba(14, 42, 22, 0) 68%),
    var(--ink-900);
}

.page-home .rhythm-grid {
  row-gap: clamp(32px, 4vw, 48px);
  align-items: start;
}

.page-home .tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  border-left: 1px solid var(--line);
}

.page-home .tick {
  position: relative;
  padding: 0 0 32px 28px;
}

.page-home .tick:last-child {
  padding-bottom: 0;
}

.page-home .tick::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--ink-900);
  border: 1px solid var(--green);
  border-radius: 50%;
}

.page-home .tick--live::before {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(124, 255, 79, 0.18);
}

.page-home .tick--after::before {
  border-color: var(--mist);
}

.page-home .tick__time {
  display: block;
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.page-home .tick--after .tick__time {
  color: var(--mist);
}

.page-home .tick__title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.45;
}

.page-home .tick__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
  max-width: 40ch;
}

.page-home .rhythm-side {
  border: 1px solid var(--line);
  background: rgba(16, 22, 32, 0.72);
  padding: 24px 22px 26px;
}

.page-home .rhythm-chart {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .rhythm-legend {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13px;
  color: var(--mist);
}

.page-home .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  vertical-align: middle;
}

.page-home .dot--green { background: var(--green); }
.page-home .dot--red { background: var(--red); }

.page-home .rhythm-stats {
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.page-home .rhythm-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  background: transparent;
}

.page-home .rhythm-stat dt {
  font-size: 13px;
  color: var(--mist);
  letter-spacing: 0.08em;
}

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

.page-home .rhythm-stat dd .num {
  color: var(--green);
  font-size: 20px;
}

/* ---------- 03 关注球队 ---------- */
.page-home .watch-grid {
  row-gap: clamp(28px, 4vw, 48px);
}

.page-home .watch-panel {
  border: 1px solid var(--line);
  background: var(--ink-800);
}

.page-home .watch-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.page-home .watch-panel__head .label {
  color: var(--mist);
}

.page-home .watch-panel__count {
  font-size: 15px;
  color: var(--green);
}

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

.page-home .watch-panel__item {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.page-home .watch-panel__item:last-child {
  border-bottom: 0;
}

.page-home .watch-panel__item--add {
  background: rgba(124, 255, 79, 0.05);
}

.page-home .watch-panel__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
}

.page-home .watch-panel__hint {
  font-size: 13px;
  color: var(--mist);
  line-height: 1.6;
}

.page-home .watch-points {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .watch-point {
  background: var(--ink-800);
  padding: 22px 22px 24px;
  border-left: 2px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .watch-point:hover {
  border-left-color: var(--green);
  background: #131b27;
}

.page-home .watch-point h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--paper);
}

.page-home .watch-point p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .watch-foot {
  margin: 20px 0 0;
  font-size: 14px;
}

.page-home .watch-foot a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 255, 79, 0.4);
}

/* ---------- 04 赛季价格 ---------- */
.page-home .price-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.page-home .price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px 30px;
  background: var(--ink-800);
  border: 1px solid var(--line);
}

.page-home .price-card::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--line);
}

.page-home .price-card--accent::before {
  background: var(--green);
}

.page-home .price-card--accent {
  border-color: rgba(124, 255, 79, 0.35);
  background:
    linear-gradient(180deg, rgba(14, 42, 22, 0.7) 0%, rgba(16, 22, 32, 1) 62%),
    var(--ink-800);
}

.page-home .price-card__tag {
  color: var(--mist);
  margin: 0;
}

.page-home .price-card--accent .price-card__tag {
  color: var(--green);
}

.page-home .price-card__big {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--paper);
}

.page-home .price-card__big .num {
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1;
  color: var(--green);
}

.page-home .price-card__unit {
  font-size: 14px;
  color: var(--mist);
  letter-spacing: 0.08em;
}

.page-home .price-card__name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}

.page-home .price-card__desc {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
  flex: 1 1 auto;
}

.page-home .price-card .btn {
  align-self: flex-start;
}

.page-home .price-note {
  margin: 28px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
  border-left: 2px solid var(--amber);
  padding-left: 16px;
  max-width: 62ch;
}

/* ---------- 05 数据面板 ---------- */
.page-home .panel-view__media {
  margin: 0;
}

.page-home .panel-view__media .media-frame {
  margin: 0;
}

.page-home .panel-view__caption {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .metric-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .metric {
  background: var(--ink-800);
  padding: 14px 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  transition: background var(--dur) var(--ease);
}

.page-home .metric:hover {
  background: #131b27;
}

.page-home .metric__idx {
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.14em;
}

.page-home .metric__name {
  font-size: 14px;
  color: var(--paper);
}

.page-home .panel-view__foot {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 14px;
}

.page-home .panel-view__foot a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 216, 255, 0.35);
}

.page-home .panel-view__foot a:hover {
  border-bottom-color: var(--blue);
}

/* ---------- 06 本地支持 ---------- */
.page-home .local {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
}

.page-home .local__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .local__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  max-width: 100%;
  min-height: 100%;
  height: auto;
}

.page-home .local__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 12, 0.94) 0%, rgba(7, 9, 12, 0.82) 55%, rgba(7, 9, 12, 0.97) 100%),
    repeating-linear-gradient(0deg, rgba(30, 42, 56, 0.4) 0 1px, transparent 1px 72px);
}

.page-home .local__inner {
  position: relative;
}

.page-home .local-grid {
  row-gap: clamp(28px, 4vw, 44px);
}

.page-home .local-cities {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .local-cities li {
  background: rgba(16, 22, 32, 0.9);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: var(--paper);
}

.page-home .local-cities .label {
  color: var(--chili);
}

.page-home .local-eco {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
  max-width: 40ch;
}

.page-home .local-contact {
  margin: 0 0 20px;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .local-contact__item {
  background: rgba(16, 22, 32, 0.92);
  padding: 16px 20px;
  display: grid;
  gap: 6px;
}

.page-home .local-contact__item dt {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--mist);
}

.page-home .local-contact__item dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--paper);
  word-break: break-word;
}

.page-home .local-contact__item dd a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 255, 79, 0.4);
}

.page-home .local-note {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
  max-width: 50ch;
}

.page-home .local-cta {
  margin: 0;
}

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

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

  .page-home .entry-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-home .league-rail {
    flex: 1 1 auto;
  }

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

@media (min-width: 900px) {
  .page-home .hero {
    min-height: clamp(620px, 86vh, 880px);
  }

  .page-home .entry-grid {
    column-gap: clamp(24px, 3vw, 48px);
  }

  .page-home .entry {
    grid-template-columns: 24px minmax(0, 1fr) 96px;
    padding: 22px 22px 24px;
  }

  .page-home .entry__time {
    text-align: right;
  }

  .page-home .rhythm-grid {
    column-gap: clamp(24px, 3vw, 48px);
  }

  .page-home .panel-grid {
    column-gap: clamp(24px, 3vw, 48px);
  }

  .page-home .local-grid {
    column-gap: clamp(24px, 3vw, 48px);
  }

  .page-home .watch-grid {
    column-gap: clamp(24px, 3vw, 48px);
  }
}

@media (min-width: 1100px) {
  .page-home .hero__hud {
    position: absolute;
    right: 0;
    bottom: 0;
    margin-bottom: 0;
  }

  .page-home .hero__cta {
    margin-bottom: clamp(96px, 12vw, 140px);
  }
}

@media (max-width: 559px) {
  .page-home .hero__title {
    font-size: clamp(46px, 15vw, 72px);
  }

  .page-home .section__lede,
  .page-home .hero__lede {
    max-width: 100%;
  }

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

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

  .page-home .entry__time {
    grid-column: 2;
    text-align: left;
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__clock {
    animation: none;
  }

  .page-home .entry,
  .page-home .metric,
  .page-home .watch-point {
    transition: none;
  }

  .page-home .entry:hover {
    transform: none;
  }
}
