.page-home {
  background: var(--ink);
  color: var(--text);
}

.page-home a:focus-visible,
.page-home button:focus-visible,
.page-home summary:focus-visible {
  outline: 2px solid var(--pulse);
  outline-offset: 3px;
}

/* 首屏 */
.page-home .hero {
  position: relative;
  padding: clamp(28px, 5vw, 56px) 0 clamp(36px, 6vw, 76px);
  overflow: hidden;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(68% 52% at 84% 10%, rgba(108, 255, 122, 0.1), transparent 68%),
    linear-gradient(180deg, rgba(8, 36, 29, 0.78), transparent 62%);
  pointer-events: none;
}

.page-home .hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 5vw, 54px);
}

.page-home .hero h1 {
  margin: 14px 0 20px;
  max-width: 12ch;
  font-size: clamp(38px, 6.2vw, 74px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-home .hero .lede {
  max-width: 34em;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.8;
  color: var(--text);
}

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

.page-home .hero-path {
  margin: 22px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--amber);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .hero-side {
  display: grid;
  gap: 22px;
}

.page-home .hero-figure {
  margin: 0;
}

.page-home .hero-index {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.page-home .hero-index-label {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.page-home .chapter-index {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .chapter-index li + li {
  border-top: 1px solid rgba(42, 82, 71, 0.6);
}

.page-home .chapter-index a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 12px 2px;
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.page-home .chapter-index a .mono {
  font-size: 12px;
  color: var(--cyan);
}

.page-home .chapter-index a:hover,
.page-home .chapter-index a:focus-visible {
  color: var(--green);
  padding-left: 10px;
}

/* 平板入口带 */
.page-home .tablet-strip {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .tablet-grid {
  display: grid;
  gap: clamp(20px, 4vw, 46px);
  padding-block: clamp(28px, 5vw, 60px);
}

.page-home .tablet-figure {
  margin: 0;
}

.page-home .tablet-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.page-home .tablet-copy .section-title {
  margin-bottom: 14px;
}

.page-home .device-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .device-chips li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  background: rgba(27, 74, 62, 0.5);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text);
  border-radius: var(--radius);
}

.page-home .tablet-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px dashed rgba(42, 82, 71, 0.9);
  padding-top: 12px;
}

/* 通用区块 */
.page-home .section {
  padding: clamp(44px, 7vw, 92px) 0;
}

.page-home .section-title {
  margin: 10px 0 14px;
  font-size: clamp(27px, 3.6vw, 40px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-home .section-head {
  display: grid;
  gap: 16px 40px;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.page-home .section-note {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

/* 连看收藏 */
.page-home .collection-grid {
  display: grid;
  gap: clamp(22px, 4vw, 46px);
}

.page-home .collection-figure {
  margin: 0;
}

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

.page-home .step {
  position: relative;
  padding: 20px 22px;
  background: var(--content);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .step:hover {
  transform: translateY(-2px);
  border-color: var(--amber);
}

.page-home .step-num {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--amber);
}

.page-home .step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

.page-home .step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .collection-stats {
  display: grid;
  gap: 0;
  margin-top: clamp(22px, 4vw, 38px);
  background: rgba(13, 53, 43, 0.55);
  border: 1px solid var(--line);
}

.page-home .collection-stats .data-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.page-home .collection-stats .data-row:last-child {
  border-bottom: 0;
}

.page-home .collection-stats .data-key {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .collection-stats .data-value {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 700;
  color: var(--green);
}

/* 多联赛主题带 */
.page-home .band {
  background: linear-gradient(180deg, var(--ink-2), var(--ink) 76%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .band-head {
  display: grid;
  gap: clamp(20px, 4vw, 44px);
  margin-bottom: clamp(24px, 4vw, 38px);
}

.page-home .band-head p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 40em;
}

.page-home .band-figure {
  margin: 0;
}

.page-home .filter-bar {
  margin-bottom: 22px;
}

.page-home .league-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .league-card {
  position: relative;
  padding: 18px 18px 18px 22px;
  background: rgba(13, 53, 43, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-home .league-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: var(--blue);
}

.page-home .league-card[data-league="purple"]::before {
  background: var(--purple);
}

.page-home .league-card[data-league="orange"]::before {
  background: var(--orange);
}

.page-home .league-card:hover {
  background: rgba(13, 53, 43, 0.96);
  border-color: var(--green);
}

.page-home .league-card h3 {
  margin: 10px 0 6px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.page-home .league-card .mono {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* 回放入口 */
.page-home .replay-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .replay-list a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 6px 14px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.page-home .replay-list a:hover,
.page-home .replay-list a:focus-visible {
  background: rgba(27, 74, 62, 0.42);
  padding-left: 12px;
}

.page-home .replay-idx {
  grid-row: 1;
  font-size: 12px;
  color: var(--cyan);
}

.page-home .replay-name {
  font-size: 17px;
  font-weight: 800;
}

.page-home .replay-desc {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .replay-go {
  grid-column: 2;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--green);
}

/* V4 */
.page-home .v4 {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.page-home .v4-grid {
  display: grid;
  gap: clamp(24px, 4vw, 50px);
}

.page-home .v4-copy p {
  color: var(--muted);
  line-height: 1.85;
  max-width: 36em;
}

.page-home .v4-timeline {
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
  border-left: 1px solid var(--line);
}

.page-home .v4-timeline li {
  position: relative;
  padding: 0 0 22px 4px;
}

.page-home .v4-timeline li:last-child {
  padding-bottom: 0;
}

.page-home .v4-timeline li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(43, 227, 107, 0.18);
}

.page-home .v4-timeline li:last-child::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 200, 87, 0.2);
}

.page-home .v4-timeline .mono {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.page-home .v4-timeline p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .v4-details {
  margin-top: clamp(22px, 3vw, 34px);
  background: rgba(13, 53, 43, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-home .v4-details summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.page-home .v4-details summary::-webkit-details-marker {
  display: none;
}

.page-home .v4-details summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--green);
}

.page-home .v4-details[open] summary::before {
  content: "–";
}

.page-home .v4-details-body {
  padding: 0 18px 18px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .v4-details-body p {
  margin: 0;
}

/* 支持 */
.page-home .support {
  border-top: 1px solid var(--line);
}

.page-home .support-grid {
  display: grid;
  gap: clamp(22px, 4vw, 46px);
}

.page-home .support-copy p {
  color: var(--muted);
  line-height: 1.85;
  max-width: 34em;
}

.page-home .support-contact {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
}

.page-home .support-contact a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 224, 208, 0.35);
}

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

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

.page-home .support-links a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  padding: 15px 18px;
  background: var(--ink);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.page-home .support-links a:hover,
.page-home .support-links a:focus-visible {
  background: var(--content);
  color: var(--green);
}

.page-home .support-links .mono {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
}

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

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

  .page-home .collection-stats .data-row:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .page-home .collection-stats .data-row:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (min-width: 780px) {
  .page-home .replay-list a {
    grid-template-columns: 48px minmax(0, 0.44fr) minmax(0, 1fr) 68px;
    align-items: baseline;
  }

  .page-home .replay-idx,
  .page-home .replay-name,
  .page-home .replay-desc,
  .page-home .replay-go {
    grid-column: auto;
  }

  .page-home .replay-go {
    text-align: right;
  }
}

@media (min-width: 860px) {
  .page-home .tablet-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: center;
  }

  .page-home .band-head {
    grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr);
    align-items: end;
  }

  .page-home .section-head {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.78fr);
    align-items: end;
  }
}

@media (min-width: 920px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: start;
  }

  .page-home .collection-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
  }

  .page-home .step:nth-child(2) {
    margin-left: clamp(18px, 3vw, 40px);
  }

  .page-home .step:nth-child(3) {
    margin-left: clamp(36px, 6vw, 80px);
  }

  .page-home .v4-grid {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    align-items: start;
  }

  .page-home .support-grid {
    grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
    align-items: start;
  }
}

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

  .page-home .collection-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .collection-stats .data-row {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .page-home .collection-stats .data-row:last-child {
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition: none !important;
    animation: none !important;
  }
}
