.page-home {
  --rail-w: 34px;
  --nav-col: 188px;
  display: block;
  position: relative;
  color: var(--white);
  font-family: var(--font-body);
}

/* ---------- 联赛刻度轨 ---------- */
.page-home .league-rail {
  display: none;
}

/* ---------- 按钮与通用件 ---------- */
.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .74rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.page-home .btn:hover {
  transform: translateY(-2px);
}

.page-home .btn--primary {
  background: var(--aqua);
  border-color: var(--aqua);
  color: #052B26;
}

.page-home .btn--primary:hover {
  background: var(--neon);
  border-color: var(--neon);
}

.page-home .btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--white);
}

.page-home .btn--ghost:hover {
  border-color: var(--aqua);
  color: var(--aqua);
}

.page-home .btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #241703;
}

.page-home .btn--amber:hover {
  background: #FFB944;
  border-color: #FFB944;
}

.page-home .btn--sm {
  padding: .5rem .9rem;
  font-size: .8rem;
}

.page-home .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-home .eyebrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--amber);
}

.page-home .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: .25rem .9rem .25rem 0;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(25, 227, 198, .45);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .05em;
  color: var(--aqua);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}

.page-home .link-arrow::after {
  content: "→";
}

.page-home .link-arrow:hover {
  color: var(--neon);
  border-color: var(--neon);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 4vw, 3.2rem) 0 clamp(2.4rem, 5vw, 4.4rem);
  border-bottom: 2px solid var(--line);
  background:
    radial-gradient(120% 80% at 82% -10%, rgba(25, 227, 198, .18), transparent 62%),
    radial-gradient(90% 70% at 6% 0%, rgba(245, 166, 35, .12), transparent 66%),
    linear-gradient(180deg, #0A1727 0%, var(--ink) 72%);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(112deg, rgba(143, 166, 189, .09) 0 2px, transparent 2px 26px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 78%);
}

.page-home .hero__grid {
  position: relative;
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.6rem);
  align-items: center;
}

.page-home .hero__title {
  margin: .6rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.6rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.015em;
  color: var(--white);
}

.page-home .hero__title em {
  display: inline-block;
  font-style: normal;
  color: var(--aqua);
}

.page-home .hero__lede {
  margin: 1rem 0 0;
  max-width: 46ch;
  font-size: .98rem;
  line-height: 1.85;
  color: #C8D6E4;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.5rem;
}

.page-home .hero__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: .7rem;
  margin: 1.7rem 0 0;
}

.page-home .stat {
  padding-left: .75rem;
  border-left: 2px solid var(--aqua);
}

.page-home .stat dt {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-home .stat dd {
  display: flex;
  align-items: baseline;
  gap: .18rem;
  margin: .18rem 0 0;
  font-size: .86rem;
  font-weight: 600;
  color: var(--white);
}

.page-home .stat__num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--aqua);
}

.page-home .hero__visual {
  position: relative;
  margin: 0;
  min-height: 320px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--stand);
  box-shadow: 12px 12px 0 rgba(6, 18, 31, .92), var(--shadow-soft);
}

.page-home .hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .62;
  filter: saturate(.92) contrast(1.06);
}

.page-home .hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 18, 31, .1) 0%, rgba(7, 18, 31, .82) 100%);
}

.page-home .console {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: .7rem .8rem .8rem;
  border: 1px solid rgba(107, 255, 240, .38);
  border-radius: var(--radius-m);
  background: rgba(7, 18, 31, .84);
  font-family: var(--font-mono);
}

.page-home .console__bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-size: .64rem;
  letter-spacing: .18em;
  color: var(--neon);
}

.page-home .console__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 3px rgba(25, 227, 198, .18);
  animation: home-pulse 2.4s ease-in-out infinite;
}

.page-home .console__rows {
  display: grid;
  gap: .3rem;
  margin: .6rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .console__rows li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .28rem;
  border-bottom: 1px dashed rgba(143, 166, 189, .2);
  font-size: .78rem;
}

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

.page-home .console__lg {
  color: var(--amber);
  letter-spacing: .1em;
}

.page-home .console__val {
  color: var(--neon);
  font-weight: 700;
}

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

/* ---------- 章节框架 ---------- */
.page-home .chapters {
  padding: clamp(2rem, 5vw, 3.6rem) 0 clamp(3rem, 7vw, 5.4rem);
}

.page-home .chapter-nav {
  display: none;
}

.page-home .toc__title {
  margin: 0 0 .6rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-home .toc {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}

.page-home .toc li {
  margin: 0;
}

.page-home .toc__link {
  display: block;
  margin-left: -2px;
  padding: .45rem .6rem;
  border-left: 2px solid transparent;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .03em;
  color: var(--mist);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.page-home .toc__link:hover {
  color: var(--white);
}

.page-home .toc__link.is-active {
  border-left-color: var(--aqua);
  background: rgba(25, 227, 198, .08);
  color: var(--aqua);
}

.page-home .chapter-stack {
  min-width: 0;
}

.page-home .chapter {
  position: relative;
  padding: clamp(1.8rem, 4.5vw, 3rem) 0 clamp(2rem, 5vw, 3.2rem);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.page-home .chapter + .chapter {
  border-top: 1px solid var(--line);
}

.page-home .chapter__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(.8rem, 2vw, 1.3rem);
  align-items: start;
  margin-bottom: clamp(1rem, 2.6vw, 1.6rem);
}

.page-home .section-num {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 7vw, 4.2rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(143, 166, 189, .5);
}

.page-home .chapter__title {
  margin: .4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.14;
  color: var(--white);
}

.page-home .chapter__text {
  margin: 0 0 1rem;
  max-width: 62ch;
  font-size: .96rem;
  line-height: 1.85;
  color: #C8D6E4;
}

.page-home .benefit-list {
  display: grid;
  gap: .6rem;
  margin: 0 0 1.2rem;
  padding: 0;
  max-width: 64ch;
  list-style: none;
}

.page-home .benefit-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .93rem;
  line-height: 1.75;
  color: #C8D6E4;
}

.page-home .benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--aqua);
  transform: rotate(45deg);
}

/* ---------- 三条主线 ---------- */
.page-home .lines {
  display: grid;
  gap: 1rem;
}

.page-home .lines__media {
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--stand);
}

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

.page-home .lines__cards {
  display: grid;
  gap: .85rem;
  min-width: 0;
}

.page-home .line-card {
  padding: 1rem 1.1rem 1.1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, rgba(18, 40, 63, .92), rgba(7, 18, 31, .92));
  transition: transform .22s ease, border-color .22s ease;
}

.page-home .line-card:hover {
  transform: translateY(-3px);
  border-color: var(--aqua);
}

.page-home .line-card__idx {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .18em;
  color: var(--amber);
}

.page-home .line-card h3 {
  margin: .35rem 0 .4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.page-home .line-card p {
  margin: 0 0 .7rem;
  font-size: .9rem;
  line-height: 1.75;
  color: #BFD0E0;
}

.page-home .line-card p.line-card__idx {
  color: var(--amber);
  font-size: .66rem;
}

/* ---------- 订阅面板 ---------- */
.page-home .chapter--band {
  margin: clamp(1.2rem, 3.5vw, 2.2rem) 0;
  padding: clamp(1.2rem, 3.5vw, 2.4rem);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-l);
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(25, 227, 198, .12), transparent 62%),
    linear-gradient(170deg, rgba(13, 30, 49, .96), rgba(7, 18, 31, .96));
}

.page-home .panel-grid {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}

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

.page-home .league-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .3rem 0 1.1rem;
}

.page-home .chip {
  display: inline-flex;
  align-items: center;
  padding: .34rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(18, 40, 63, .6);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--mist);
}

.page-home .chip--on {
  border-color: var(--aqua);
  background: var(--aqua);
  color: #052B26;
  font-weight: 700;
}

.page-home .chip--amber {
  border-color: var(--amber);
  background: var(--amber);
  color: #241703;
  font-weight: 700;
}

.page-home .panel-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .panel-metrics li {
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: rgba(7, 18, 31, .6);
}

.page-home .metric__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--neon);
}

.page-home .metric__label {
  display: block;
  margin-top: .35rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--mist);
}

.page-home .panel-media {
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--stand);
}

.page-home .panel-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 导出留档（奶油纸） ---------- */
.page-home .chapter--paper {
  margin: clamp(1.2rem, 3.5vw, 2.2rem) 0;
  padding: clamp(1.2rem, 3.5vw, 2.4rem);
  border: 2px solid rgba(26, 20, 16, .85);
  border-radius: var(--radius-l);
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, .55);
}

.page-home .chapter--paper .chapter__title {
  color: var(--paper-ink);
}

.page-home .chapter--paper .chapter__text {
  color: #3E332A;
}

.page-home .chapter--paper .eyebrow {
  color: #6B5A44;
}

.page-home .chapter--paper .section-num {
  -webkit-text-stroke: 1.5px rgba(26, 20, 16, .38);
}

.page-home .chapter--paper .link-arrow {
  color: #8A5A00;
  border-color: rgba(138, 90, 0, .45);
}

.page-home .chapter--paper .link-arrow:hover {
  color: #5C3C00;
  border-color: #5C3C00;
}

.page-home .steps {
  display: grid;
  gap: .85rem;
  margin: 0 0 1.3rem;
  padding: 0;
  list-style: none;
}

.page-home .step {
  padding: .9rem 1rem 1rem;
  border: 2px solid rgba(26, 20, 16, .85);
  border-radius: var(--radius-m);
  background: #FBF4E6;
  box-shadow: 6px 6px 0 rgba(245, 166, 35, .6);
}

.page-home .step__num {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .18em;
  color: #8A5A00;
}

.page-home .step h3 {
  margin: .35rem 0 .35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--paper-ink);
}

.page-home .step p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.72;
  color: #403529;
}

.page-home .export-media {
  margin: 0 0 1rem;
  overflow: hidden;
  border: 2px solid rgba(26, 20, 16, .85);
  border-radius: var(--radius-m);
}

.page-home .export-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .paper-note {
  margin: 0;
  max-width: 70ch;
  font-size: .9rem;
  line-height: 1.85;
  color: #403529;
}

/* ---------- 动态与版本 ---------- */
.page-home .news-grid {
  display: grid;
  gap: 1.1rem;
}

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

.page-home .log__item {
  display: grid;
  grid-template-columns: minmax(64px, auto) minmax(0, 1fr);
  gap: .9rem;
  padding: .85rem 0;
  border-bottom: 1px dashed var(--line);
}

.page-home .log__item:first-child {
  padding-top: 0;
}

.page-home .log__time {
  padding-top: .18rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--amber);
  white-space: nowrap;
}

.page-home .log__title {
  margin: 0;
  font-size: .93rem;
  line-height: 1.7;
  color: #D3E0EC;
}

.page-home .log__tag {
  display: inline-block;
  margin-right: .45rem;
  padding: .1rem .42rem;
  border: 1px solid rgba(25, 227, 198, .5);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .08em;
  color: var(--aqua);
}

.page-home .news-side {
  padding: 1rem 1.1rem 1.1rem;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, rgba(18, 40, 63, .82), rgba(7, 18, 31, .82));
}

.page-home .news-side h3 {
  margin: 0 0 .5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.page-home .news-side p {
  margin: 0 0 .8rem;
  font-size: .88rem;
  line-height: 1.78;
  color: #BDCDDD;
}

.page-home .news-side .link-arrow {
  display: flex;
  width: fit-content;
}

/* ---------- 支持与联系 ---------- */
.page-home .chapter--contact {
  margin-top: clamp(1.2rem, 3.5vw, 2.2rem);
  padding: clamp(1.2rem, 3.5vw, 2.2rem);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-l);
  background:
    radial-gradient(85% 120% at 100% 0%, rgba(245, 166, 35, .16), transparent 62%),
    linear-gradient(160deg, rgba(18, 40, 63, .92), rgba(7, 18, 31, .92));
}

.page-home .support-grid {
  display: grid;
  gap: 1.2rem;
}

.page-home .support-list {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .support-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: .9rem;
  line-height: 1.75;
  color: #C8D6E4;
}

.page-home .support-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 10px;
  height: 2px;
  background: var(--amber);
}

.page-home .contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  margin: 1.1rem 0 0;
  font-family: var(--font-mono);
  font-size: .8rem;
}

.page-home .contact-line a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 166, 35, .45);
  word-break: break-all;
}

.page-home .contact-line a:hover {
  color: #FFC15C;
  border-color: #FFC15C;
}

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

@media (min-width: 640px) {
  .page-home .hero__lede {
    font-size: 1.03rem;
  }

  .page-home .console {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

@media (min-width: 860px) {
  .page-home .hero__visual {
    min-height: 420px;
    aspect-ratio: auto;
  }

  .page-home .lines {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(1.2rem, 2.6vw, 2rem);
    align-items: start;
  }

  .page-home .line-card:nth-child(2) {
    margin-left: 1.6rem;
  }

  .page-home .line-card:nth-child(3) {
    margin-left: .8rem;
  }

  .page-home .panel-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 1.6rem;
  }

  .page-home .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 2.6rem;
  }

  .page-home .step:nth-child(2) {
    transform: translateY(14px);
  }

  .page-home .step:nth-child(3) {
    transform: translateY(28px);
  }

  .page-home .news-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
  }

  .page-home .support-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.4rem;
  }
}

@media (min-width: 900px) {
  .page-home .hero__grid {
    grid-template-columns: 7fr 5fr;
    gap: clamp(2rem, 4vw, 3.2rem);
  }

  .page-home .hero__visual {
    height: 100%;
    min-height: 460px;
  }
}

@media (min-width: 1080px) {
  .page-home .chapters {
    display: grid;
    grid-template-columns: var(--nav-col) minmax(0, 1fr);
    gap: clamp(1.8rem, 3vw, 3rem);
    align-items: start;
  }

  .page-home .chapter-nav {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 22px);
  }

  .page-home .chapter-stack .chapter:first-child {
    padding-top: 0;
  }
}

@media (min-width: 1240px) {
  .page-home .league-rail {
    position: fixed;
    top: 50%;
    right: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .85rem;
    padding: .95rem .38rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(7, 18, 31, .75);
    font-family: var(--font-mono);
    font-size: .6rem;
    letter-spacing: .14em;
    color: var(--mist);
    transform: translateY(-50%);
  }

  .page-home .league-rail span:nth-child(2) {
    color: var(--aqua);
  }

  .page-home .league-rail span:nth-child(4) {
    color: var(--amber);
  }
}

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

  .page-home .btn,
  .page-home .line-card,
  .page-home .link-arrow,
  .page-home .toc__link {
    transition: none;
  }

  .page-home .btn:hover,
  .page-home .line-card:hover {
    transform: none;
  }

  .page-home .step:nth-child(2),
  .page-home .step:nth-child(3) {
    transform: none;
  }
}
