.page-home {
  --home-indent-1: clamp(0px, 2.4vw, 36px);
  --home-indent-2: clamp(0px, 5vw, 76px);
}

.page-home .breadcrumb {
  margin: 0 auto;
  padding: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

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

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(26px, 4vw, 52px) 0 clamp(46px, 7vw, 88px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(42, 27, 69, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 27, 69, 0.5) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 80%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 80%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  right: -14%;
  bottom: 8%;
  z-index: -1;
  width: min(680px, 74%);
  height: 150px;
  transform: rotate(-9deg);
  background: linear-gradient(90deg, transparent 0%, rgba(123, 63, 228, 0.3) 38%, rgba(255, 197, 66, 0.42) 72%, transparent 100%);
  filter: blur(30px);
  pointer-events: none;
}

.page-home .home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 44px);
  align-items: start;
}

.page-home .home-hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 6.4vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

.page-home .home-lede {
  max-width: 32em;
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-soft);
}

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

.page-home .home-hero-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.page-home .home-hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.8);
}

.page-home .home-hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(11, 7, 20, 0.82) 0%, rgba(11, 7, 20, 0.12) 46%, transparent 72%),
    radial-gradient(circle at 72% 22%, rgba(162, 117, 255, 0.28), transparent 62%);
}

/* ---------- 要闻目录 ---------- */

.page-home .home-bulletin {
  list-style: none;
  margin: clamp(34px, 5vw, 60px) auto 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-home .bulletin-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "idx title arrow"
    "idx note arrow";
  gap: 3px 16px;
  align-items: start;
  padding: 16px 10px 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}

.page-home .bulletin-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--neon-light), var(--gold));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.2s var(--ease);
}

.page-home .bulletin-row:hover,
.page-home .bulletin-row:focus-visible {
  background: var(--panel);
}

.page-home .bulletin-row:hover::before,
.page-home .bulletin-row:focus-visible::before {
  transform: scaleY(1);
}

.page-home .bulletin-idx {
  grid-area: idx;
  padding-top: 5px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--jade);
}

.page-home .bulletin-title {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.02rem, 2.2vw, 1.32rem);
  letter-spacing: -0.01em;
}

.page-home .bulletin-note {
  grid-area: note;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.page-home .bulletin-arrow {
  grid-area: arrow;
  align-self: center;
  font-size: 17px;
  color: var(--ink-soft);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.page-home .bulletin-row:hover .bulletin-arrow,
.page-home .bulletin-row:focus-visible .bulletin-arrow {
  transform: translateY(3px);
  color: var(--gold);
}

/* ---------- 堆叠画板 ---------- */

.page-home .home-section {
  position: relative;
  padding: clamp(44px, 6vw, 90px) 0 clamp(44px, 6vw, 88px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 104px;
}

.page-home .home-layer--a {
  margin-left: var(--home-indent-1);
  background: linear-gradient(180deg, rgba(20, 11, 38, 0.92) 0%, rgba(20, 11, 38, 0) 78%);
}

.page-home .home-layer--b {
  margin-left: var(--home-indent-2);
  background: linear-gradient(180deg, rgba(31, 18, 51, 0.7) 0%, rgba(31, 18, 51, 0) 76%);
}

/* ---------- 资料库 ---------- */

.page-home .home-library-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  margin-top: 28px;
}

.page-home .home-library-grid .prose {
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.page-home .home-library-grid .prose p {
  margin: 0 0 16px;
}

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

.page-home .home-chips li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.page-home .home-chips li.is-key {
  border-color: var(--jade);
  color: var(--jade);
}

.page-home .home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  align-self: start;
  border: 1px solid var(--line);
  background: var(--line);
}

.page-home .home-stats .stat {
  padding: 18px 16px;
  background: var(--jade-deep);
}

.page-home .home-stats .stat-value {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  line-height: 1;
  color: var(--jade);
}

.page-home .home-stats .stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.page-home .home-library-figure {
  max-width: 640px;
  margin: clamp(28px, 4vw, 46px) 0 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
}

.page-home .home-library-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: brightness(0.78) saturate(1.05);
}

/* ---------- 访问方式 ---------- */

.page-home .home-access {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.page-home .home-access-lead p {
  margin: 16px 0 22px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 34em;
}

.page-home .home-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.page-home .home-steps li {
  position: relative;
  counter-increment: step;
  padding: 0 0 26px 58px;
}

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

.page-home .home-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--neon-light);
}

.page-home .home-steps li::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 36px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.page-home .home-steps li:last-child::after {
  display: none;
}

.page-home .home-steps h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
}

.page-home .home-steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-soft);
}

/* ---------- 分段切换 ---------- */

.page-home .seg-wrap {
  margin-top: 30px;
}

.page-home .seg-wrap .seg-panel p {
  max-width: 54ch;
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.page-home .seg-wrap .seg-panel a {
  color: var(--neon-light);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--neon);
  padding-bottom: 2px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.page-home .seg-wrap .seg-panel a:hover,
.page-home .seg-wrap .seg-panel a:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

/* ---------- 回放收藏架 ---------- */

.page-home .home-replay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 46px);
  align-items: center;
  margin-top: 30px;
}

.page-home .home-replay-grid > div > p {
  margin: 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 34em;
}

.page-home .home-facts {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-facts li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.page-home .home-replay-figure {
  margin: 0;
  overflow: hidden;
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .home-replay-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: brightness(0.76) saturate(1.1);
}

/* ---------- 联系入口 ---------- */

.page-home .home-channels {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .home-channels li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .home-channels .ch-idx {
  padding-top: 5px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--gold);
}

.page-home .home-channels h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}

.page-home .home-channels h3 .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--jade);
}

.page-home .home-channels p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 46em;
}

.page-home .home-channel-cta {
  margin-top: 26px;
}

.page-home .home-channel-band {
  position: relative;
  margin: clamp(32px, 5vw, 54px) 0 0;
  overflow: hidden;
}

.page-home .home-channel-band img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: brightness(0.6) saturate(0.95);
}

.page-home .home-channel-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(11, 7, 20, 0.95), rgba(11, 7, 20, 0.18));
}

/* ---------- 赛季节奏 ---------- */

.page-home .home-ruler {
  margin-top: 34px;
}

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

.page-home .home-ruler-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-ruler-steps li {
  padding-top: 14px;
  border-top: 2px solid var(--line);
}

.page-home .home-ruler-steps li:nth-child(1) { border-top-color: var(--jade); }
.page-home .home-ruler-steps li:nth-child(2) { border-top-color: var(--neon-light); }
.page-home .home-ruler-steps li:nth-child(3) { border-top-color: var(--gold); }
.page-home .home-ruler-steps li:nth-child(4) { border-top-color: var(--neon); }

.page-home .home-ruler-steps h3 {
  margin: 0 0 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.page-home .home-ruler-steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .home-ruler-note {
  max-width: 46em;
  margin: 28px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-home .home-exits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.page-home .home-exits a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.page-home .home-exits a:hover,
.page-home .home-exits a:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

/* ---------- 响应式 ---------- */

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

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

  .page-home .home-hero-figure {
    aspect-ratio: 4 / 5;
  }

  .page-home .home-hero-main {
    position: relative;
    z-index: 2;
    margin-right: clamp(-110px, -7vw, -40px);
  }

  .page-home .bulletin-row {
    grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.25fr) auto;
    grid-template-areas: "idx title note arrow";
    align-items: center;
    gap: 0 24px;
    padding: 20px 14px 20px 24px;
  }

  .page-home .bulletin-idx {
    padding-top: 0;
  }

  .page-home .home-library-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-home .home-access {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-home .home-replay-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }

  .page-home .home-library-figure {
    margin-left: clamp(0px, 2vw, 32px);
  }
}

@media (max-width: 520px) {
  .page-home .breadcrumb {
    font-size: 11px;
    letter-spacing: 0.05em;
  }

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

  .page-home .home-steps li {
    padding-left: 46px;
  }

  .page-home .home-steps li::after {
    left: 19px;
  }

  .page-home .home-channels h3 .mono {
    display: block;
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .bulletin-row,
  .page-home .bulletin-row::before,
  .page-home .bulletin-arrow,
  .page-home .home-exits a,
  .page-home .seg-wrap .seg-panel a {
    transition: none !important;
    animation: none !important;
  }

  .page-home .bulletin-row:hover .bulletin-arrow,
  .page-home .bulletin-row:focus-visible .bulletin-arrow {
    transform: none;
  }
}
