.page-home {
  --home-pad: clamp(16px, 4vw, 40px);
  --home-gap: clamp(14px, 2.2vw, 22px);
  --home-line: rgba(30, 58, 49, 0.72);
  background: var(--ink);
  color: var(--chalk);
  overflow-x: clip;
}

.page-home h1,
.page-home h2,
.page-home h3,
.page-home p {
  margin: 0;
}

.page-home ul,
.page-home ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- 上下文提示条 ---------- */
.page-home .home-context {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 46, 36, 0.8), rgba(5, 13, 10, 0));
}

.page-home .home-context-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
  padding-block: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.page-home .home-context-live {
  color: var(--cyan);
}

.page-home .live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--cyan);
  vertical-align: middle;
  animation: homePulse 2s ease-in-out infinite;
}

@keyframes homePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(53, 242, 214, 0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 0 7px rgba(53, 242, 214, 0); }
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(2.4rem, 7vw, 4.6rem) 0 clamp(2.6rem, 6vw, 4.2rem);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: -12% -6% 0;
  z-index: 0;
  background-image:
    repeating-linear-gradient(90deg, var(--home-line) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, var(--home-line) 0 1px, transparent 1px 88px);
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(130% 95% at 18% 0%, #000 18%, transparent 76%);
  mask-image: radial-gradient(130% 95% at 18% 0%, #000 18%, transparent 76%);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(64%, 780px);
  z-index: 0;
  background: linear-gradient(218deg, var(--deep) 0%, rgba(11, 46, 36, 0) 74%);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-home .home-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 5vw, 46px);
}

.page-home .home-hero-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.page-home .home-hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(2.5rem, 9.6vw, 5.2rem);
  margin-bottom: 20px;
}

.page-home .home-hero-title .hl {
  color: var(--amber);
}

.page-home .home-hero-lead {
  max-width: 36ch;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.75;
  color: var(--steel);
  margin-bottom: 26px;
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.page-home .home-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.page-home .home-fact {
  display: grid;
  gap: 4px;
}

.page-home .home-fact-num {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--chalk);
}

.page-home .home-fact-unit {
  font-size: 0.62em;
  color: var(--amber);
  margin-left: 2px;
}

.page-home .home-fact-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.page-home .home-hero-visual {
  position: relative;
  margin: 0;
}

.page-home .home-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  filter: saturate(0.9) contrast(1.06);
}

.page-home .home-hero-live {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: min(230px, 74%);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(53, 242, 214, 0.35);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.page-home .home-live-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.page-home .home-live-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  padding: 3px 0;
  border-top: 1px solid rgba(30, 58, 49, 0.6);
}

.page-home .home-live-line b {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--amber);
}

.page-home .home-live-note {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

/* ---------- 比分带 ---------- */
.page-home .home-rail {
  margin-top: clamp(22px, 3.4vw, 34px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding-bottom: 8px;
}

.page-home .home-rail:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.page-home .home-rail::-webkit-scrollbar {
  height: 6px;
}

.page-home .home-rail::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
}

.page-home .score-strip {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 4px max(16px, calc((100vw - 1200px) / 2)) 14px;
}

.page-home .score-card {
  position: relative;
  flex: 0 0 auto;
  width: min(76vw, 248px);
  scroll-snap-align: start;
  display: grid;
  gap: 10px;
  padding: 14px 14px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--turf), var(--deep));
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.page-home .score-card:hover,
.page-home .score-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--amber-dim);
}

.page-home .score-card.is-live {
  border-left: 3px solid var(--cyan);
}

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

.page-home .score-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.page-home .score-body {
  display: grid;
  gap: 6px;
}

.page-home .score-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  color: var(--chalk);
}

.page-home .score-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--steel);
}

.page-home .score-card.is-live .score-num {
  color: var(--amber);
}

.page-home .score-card.is-flash .score-num {
  animation: homeFlash 1.5s ease 0.5s 1;
}

@keyframes homeFlash {
  0%, 100% { color: var(--amber); text-shadow: none; }
  45% { color: var(--cyan); text-shadow: 0 0 14px rgba(53, 242, 214, 0.65); }
}

.page-home .score-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(30, 58, 49, 0.75);
}

.page-home .score-time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.page-home .fav-input,
.page-home .alert-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-home .fav-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--steel);
  cursor: pointer;
  user-select: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.page-home .fav-label:hover {
  color: var(--amber);
  border-color: var(--amber-dim);
}

.page-home .fav-input:focus-visible + .fav-label {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-home .fav-input:checked + .fav-label {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 700;
}

.page-home .fav-on { display: none; }

.page-home .fav-input:checked + .fav-label .fav-on { display: inline; }
.page-home .fav-input:checked + .fav-label .fav-off { display: none; }

.page-home .home-score-map {
  margin-top: clamp(18px, 3vw, 28px);
}

.page-home .home-score-map img {
  border-radius: var(--radius);
}

/* ---------- 三步收藏 ---------- */
.page-home .home-save-grid,
.page-home .home-sub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.page-home .save-steps {
  display: grid;
  gap: 14px;
}

.page-home .save-step {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber-dim);
  background: var(--glass);
}

.page-home .save-step:nth-child(2) { margin-left: 16px; }
.page-home .save-step:nth-child(3) { margin-left: 32px; }

.page-home .save-no {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--amber);
  padding-top: 3px;
}

.page-home .save-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.page-home .save-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--steel);
}

.page-home .home-save-aside {
  display: grid;
  gap: 18px;
}

.page-home .home-desk {
  padding: 18px 20px;
}

.page-home .home-desk-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.page-home .home-desk-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.page-home .home-desk-list li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--chalk);
}

.page-home .home-desk-note {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--steel);
}

/* ---------- 订阅提醒 ---------- */
.page-home .alert-list {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.page-home .alert-item {
  position: relative;
}

.page-home .alert-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(20, 81, 63, 0.85), rgba(11, 46, 36, 0.9));
  cursor: pointer;
  user-select: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.page-home .alert-label:hover {
  border-color: var(--amber-dim);
}

.page-home .alert-input:focus-visible + .alert-label {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-home .alert-key {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--steel);
  padding-top: 2px;
}

.page-home .alert-body {
  display: grid;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
}

.page-home .alert-name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--steel);
  transition: color 0.18s ease;
}

.page-home .alert-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--steel);
}

.page-home .alert-switch {
  flex: 0 0 auto;
  position: relative;
  width: 40px;
  height: 22px;
  margin-top: 2px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 13, 10, 0.7);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.page-home .alert-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--steel);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.page-home .alert-input:checked + .alert-label .alert-switch {
  background: rgba(53, 242, 214, 0.18);
  border-color: var(--cyan);
}

.page-home .alert-input:checked + .alert-label .alert-switch::after {
  transform: translateX(18px);
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(53, 242, 214, 0.7);
}

.page-home .alert-input:checked + .alert-label .alert-name {
  color: var(--chalk);
}

.page-home .alert-input:checked + .alert-label .alert-text {
  color: var(--steel);
}

/* ---------- 目录索引 ---------- */
.page-home .home-toc {
  display: grid;
  border-top: 1px solid var(--line);
}

.page-home .toc-row {
  border-bottom: 1px solid var(--line);
}

.page-home .toc-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "no title arrow"
    "no desc arrow";
  align-items: center;
  gap: 2px 16px;
  padding: 16px 4px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.18s ease, padding-left 0.18s ease;
}

.page-home .toc-link:hover,
.page-home .toc-link:focus-visible {
  background: rgba(242, 246, 243, 0.05);
  padding-left: 12px;
}

.page-home .toc-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.page-home .toc-no {
  grid-area: no;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.page-home .toc-title {
  grid-area: title;
  font-size: 1rem;
  font-weight: 700;
  color: var(--chalk);
}

.page-home .toc-desc {
  grid-area: desc;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--steel);
}

.page-home .toc-arrow {
  grid-area: arrow;
  font-size: 1.1rem;
  color: var(--steel);
  transition: color 0.18s ease, transform 0.18s ease;
}

.page-home .toc-link:hover .toc-arrow {
  color: var(--cyan);
  transform: translateX(4px);
}

/* ---------- 收束条 ---------- */
.page-home .home-close {
  padding: clamp(2.4rem, 5vw, 3.6rem) 0 clamp(3rem, 6vw, 4.4rem);
}

.page-home .home-close-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  background: linear-gradient(120deg, var(--deep), rgba(5, 13, 10, 0.9));
}

.page-home .home-close-copy {
  flex: 1 1 320px;
  min-width: 0;
}

.page-home .home-close-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.page-home .home-close-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--steel);
  max-width: 62ch;
}

/* ---------- 响应式 ---------- */
@media (min-width: 760px) {
  .page-home .home-facts {
    gap: 16px 44px;
  }

  .page-home .home-toc .toc-link {
    grid-template-columns: 60px minmax(0, 1fr) 240px auto;
    grid-template-areas: "no title desc arrow";
    gap: 0 18px;
    padding: 18px 6px;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero-inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
    gap: clamp(32px, 4vw, 60px);
  }

  .page-home .home-hero-live {
    left: -30px;
    bottom: 18px;
    width: 246px;
  }

  .page-home .home-save-grid,
  .page-home .home-sub-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 4vw, 56px);
  }

  .page-home .home-save-aside,
  .page-home .home-sub-aside {
    margin-top: 46px;
  }

  .page-home .save-step:nth-child(2) { margin-left: 34px; }
  .page-home .save-step:nth-child(3) { margin-left: 68px; }

  .page-home .home-sub-aside {
    margin-top: 72px;
  }
}

@media (min-width: 1200px) {
  .page-home .home-hero-live {
    left: -44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .live-dot,
  .page-home .score-card.is-flash .score-num {
    animation: none;
  }

  .page-home .score-card,
  .page-home .fav-label,
  .page-home .alert-label,
  .page-home .alert-switch,
  .page-home .alert-switch::after,
  .page-home .toc-link,
  .page-home .toc-arrow {
    transition: none;
  }

  .page-home .score-card:hover,
  .page-home .score-card:focus-within {
    transform: none;
  }
}
