.page-home {
  overflow-x: clip;
  background:
    radial-gradient(1100px 600px at 84% -6%, rgba(36, 224, 255, .10), transparent 62%),
    radial-gradient(900px 520px at 2% 10%, rgba(255, 176, 0, .07), transparent 66%),
    var(--ink-900);
  color: var(--paper);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  padding-top: clamp(20px, 4vw, 46px);
  padding-bottom: clamp(44px, 6vw, 86px);
}

.page-home .hero-shell {
  display: grid;
  gap: clamp(32px, 4.5vw, 56px);
  align-items: start;
}

.page-home .hero-copy {
  min-width: 0;
}

.page-home .hero-copy h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 7vw, 74px);
  line-height: 1.03;
  letter-spacing: -.012em;
  color: var(--paper);
}

.page-home .hl-gold {
  color: var(--gold);
}

.page-home .hero-lead {
  max-width: 34em;
  margin: 18px 0 0;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.9;
  color: var(--mist-strong);
}

.page-home .path-panel {
  position: relative;
  margin-top: clamp(24px, 3vw, 34px);
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--mist-line);
  border-radius: var(--radius-m);
  background: linear-gradient(152deg, rgba(18, 48, 74, .78), rgba(8, 22, 41, .92));
  overflow: hidden;
}

.page-home .path-panel-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .17;
  pointer-events: none;
}

.page-home .path-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(18px, 2.4vw, 26px);
}

.page-home .path-body::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 20px;
  bottom: 46px;
  width: 2px;
  background-image: repeating-linear-gradient(180deg, rgba(36, 224, 255, .7) 0 4px, transparent 4px 12px);
  pointer-events: none;
}

.page-home .path-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.page-home .path-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 176, 0, .5);
  border-radius: 50%;
  background: rgba(6, 13, 24, .94);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  position: relative;
  z-index: 1;
  transition: border-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
}

.page-home .path-step:hover .path-num,
.page-home .path-step:focus-within .path-num {
  border-color: var(--gold);
  color: var(--paper);
  box-shadow: 0 0 0 5px rgba(255, 176, 0, .12);
}

.page-home .path-text {
  min-width: 0;
  padding-top: 4px;
}

.page-home .path-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--paper);
}

.page-home .path-text p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--mist-strong);
}

.page-home .path-hint {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--cyan);
  transition: max-height .24s var(--ease), opacity .24s var(--ease), margin-top .24s var(--ease);
}

.page-home .path-step:hover .path-hint,
.page-home .path-step:focus-within .path-hint {
  max-height: 60px;
  opacity: 1;
  margin-top: 8px;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 32px);
}

/* 首屏右侧视觉 */
.page-home .hero-visual {
  position: relative;
  min-width: 0;
}

.page-home .visual-frame {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-l);
  border: 1px solid var(--mist-line);
  overflow: hidden;
  transform: rotate(-1.4deg);
  box-shadow: var(--shadow-soft);
}

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

.page-home .visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(36, 224, 255, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 224, 255, .10) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(200deg, rgba(0, 0, 0, .9), transparent 72%);
  pointer-events: none;
}

.page-home .mini-score {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  padding: 18px 18px 16px;
  border: 1px solid var(--mist-line-strong);
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, rgba(18, 48, 74, .96), rgba(6, 13, 24, .97));
  box-shadow: var(--shadow-capsule), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.page-home .mini-score-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-home .mini-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist-mid);
}

.page-home .mini-score-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 12px 0 10px;
}

.page-home .mini-team {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--mist-strong);
}

.page-home .mini-team--right {
  text-align: right;
}

.page-home .mini-num {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--paper);
}

.page-home .mini-sep {
  color: var(--gold);
  margin: 0 4px;
}

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

.page-home .mini-fields li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--mist-line);
}

.page-home .mini-fields span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mist-mid);
}

.page-home .mini-fields strong {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper);
  text-align: right;
}

.page-home .status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* ---------- 通用章节件 ---------- */
.page-home .sec-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--gold);
}

.page-home .sec-num::after {
  content: "";
  width: 38px;
  height: 1px;
  background: rgba(255, 176, 0, .5);
}

.page-home .sec-title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(25px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -.006em;
  color: var(--paper);
}

.page-home .sec-lead,
.page-home .sports-lead,
.page-home .score-lead,
.page-home .sync-lead {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--mist-strong);
}

/* ---------- 01 入口与状态 ---------- */
.page-home .entry-grid {
  display: grid;
  gap: clamp(24px, 3.4vw, 40px);
}

.page-home .entry-intro {
  min-width: 0;
}

.page-home .state-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.page-home .state-item {
  position: relative;
  padding: 18px 20px 18px 24px;
  border: 1px solid var(--mist-line);
  border-radius: var(--radius-m);
  background: linear-gradient(120deg, rgba(11, 29, 51, .92), rgba(6, 13, 24, .66));
  transition: border-color .22s var(--ease), background .22s var(--ease);
}

.page-home .state-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--sync);
}

.page-home .state-item[data-state="live"]::before {
  background: var(--cyan);
}

.page-home .state-item[data-state="warn"]::before {
  background: var(--warn);
}

.page-home .state-item:hover {
  border-color: var(--mist-line-strong);
  background: linear-gradient(120deg, rgba(18, 48, 74, .95), rgba(6, 13, 24, .72));
}

.page-home .state-item p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--mist-strong);
}

/* ---------- 02 赛程分类 ---------- */
.page-home .sports-head {
  display: grid;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: clamp(22px, 3vw, 30px);
  border-bottom: 1px solid var(--mist-line);
}

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

.page-home .sport-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--mist-line);
  border-radius: var(--radius-m);
  background: rgba(11, 29, 51, .55);
  overflow: hidden;
  transition: border-color .22s var(--ease), transform .22s var(--ease), background .22s var(--ease);
}

.page-home .sport-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent 72%);
  opacity: .75;
}

.page-home .sport-card:nth-child(2n)::before {
  background: linear-gradient(90deg, var(--cyan), transparent 72%);
}

.page-home .sport-card:hover {
  border-color: rgba(255, 176, 0, .48);
  background: rgba(18, 48, 74, .68);
  transform: translateY(-2px);
}

.page-home .sport-link {
  display: grid;
  gap: 8px;
  padding: 22px 20px 20px;
  text-decoration: none;
  color: inherit;
}

.page-home .sport-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--paper);
}

.page-home .sport-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist-mid);
}

.page-home .sport-go {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--cyan);
  transition: color .2s var(--ease);
}

.page-home .sport-card:hover .sport-go {
  color: var(--gold);
}

/* ---------- 03 比分卡与复盘 ---------- */
.page-home .score-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.page-home .score-left,
.page-home .score-right {
  min-width: 0;
}

.page-home .big-score {
  position: relative;
  margin-top: clamp(22px, 3vw, 32px);
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--mist-line-strong);
  border-radius: var(--radius-m);
  background:
    linear-gradient(160deg, rgba(18, 48, 74, .92), rgba(6, 13, 24, .96)),
    var(--ink-800);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.page-home .big-score::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% 40%;
  height: 160px;
  background: radial-gradient(closest-side, rgba(255, 176, 0, .22), transparent 72%);
  pointer-events: none;
}

.page-home .bs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-home .bs-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--mist-mid);
}

.page-home .bs-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0 6px;
}

.page-home .bs-team {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.9vw, 19px);
  font-weight: 700;
  color: var(--mist-strong);
}

.page-home .bs-team--right {
  text-align: right;
}

.page-home .bs-score {
  font-family: var(--font-mono);
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--paper);
}

.page-home .bs-sep {
  color: var(--gold);
  margin: 0 4px;
}

.page-home .bs-fields {
  display: grid;
  margin: 18px 0 0;
  border-top: 1px solid var(--mist-line);
}

.page-home .bs-field {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--mist-line);
}

.page-home .bs-field dt {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mist-mid);
}

.page-home .bs-field dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper);
  text-align: right;
}

.page-home .score-figure {
  margin: 0 0 24px;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--mist-line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

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

.page-home .recap-label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--gold);
}

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

.page-home .recap-list li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mist-line);
}

.page-home .recap-list strong {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .recap-list span {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--mist-mid);
}

.page-home .recap-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(36, 224, 255, .4);
  padding-bottom: 3px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.page-home .recap-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ---------- 04 关注列表同步 ---------- */
.page-home .sync-grid {
  display: grid;
  gap: clamp(26px, 3.6vw, 44px);
  align-items: start;
}

.page-home .sync-copy {
  min-width: 0;
}

.page-home .sync-states {
  display: grid;
  gap: 12px;
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .sync-state {
  position: relative;
  padding: 16px 18px 16px 22px;
  border: 1px solid var(--mist-line);
  border-radius: var(--radius-m);
  background: rgba(11, 29, 51, .58);
}

.page-home .sync-state::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--sync);
}

.page-home .sync-state[data-state="warn"]::before {
  background: var(--warn);
}

.page-home .sync-state[data-state="fault"]::before {
  background: var(--fault);
}

.page-home .sync-state p {
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist-strong);
}

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

.page-home .sync-art {
  min-width: 0;
}

.page-home .sync-figure {
  margin: 0;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--mist-line);
  border-radius: var(--radius-l);
  overflow: hidden;
  transform: rotate(1.2deg);
  box-shadow: var(--shadow-soft);
}

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

/* ---------- 05 旧版入口 ---------- */
.page-home .legacy-panel {
  position: relative;
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(255, 176, 0, .3);
  border-radius: var(--radius-l);
  background:
    linear-gradient(115deg, rgba(255, 107, 44, .18), rgba(255, 176, 0, .08) 42%, rgba(11, 29, 51, .92) 78%),
    var(--ink-850);
  overflow: hidden;
}

.page-home .legacy-panel::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 176, 0, .22);
  border-radius: 50%;
  pointer-events: none;
}

.page-home .legacy-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.page-home .legacy-copy p {
  max-width: 46em;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--mist-strong);
}

.page-home .legacy-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- 回到顶部 ---------- */
.page-home .back-top-wrap {
  display: flex;
  justify-content: flex-end;
  padding-bottom: clamp(30px, 5vw, 64px);
}

.page-home .back-top {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--mist-mid);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--mist-line-strong);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.page-home .back-top:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ---------- 响应式 ---------- */
@media (min-width: 620px) {
  .page-home .mini-score {
    margin-top: -54px;
    margin-left: clamp(0px, 3vw, 26px);
    margin-right: 12px;
  }

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

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

  .page-home .entry-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }

  .page-home .sports-head {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: end;
    gap: 32px;
  }

  .page-home .score-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .sync-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }

  .page-home .legacy-panel {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }

  .page-home .legacy-actions {
    justify-content: flex-end;
  }
}

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

  .page-home .sport-card:nth-child(1) {
    grid-column: span 5;
  }

  .page-home .sport-card:nth-child(2) {
    grid-column: span 3;
  }

  .page-home .sport-card:nth-child(3) {
    grid-column: span 4;
  }

  .page-home .sport-card:nth-child(4) {
    grid-column: span 4;
  }

  .page-home .sport-card:nth-child(5) {
    grid-column: span 3;
  }

  .page-home .sport-card:nth-child(6) {
    grid-column: span 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .sport-card,
  .page-home .path-num,
  .page-home .path-hint,
  .page-home .bs-score {
    transition: none;
  }

  .page-home .visual-frame,
  .page-home .sync-figure {
    transform: none;
  }
}
