.page-home {
  --home-pad: 20px;
  position: relative;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--white);
}

.page-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 237, 242, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 237, 242, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
}

.page-home > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .page-home { --home-pad: 32px; }
}

@media (min-width: 1024px) {
  .page-home { --home-pad: 48px; }
}

/* ---------- Hero ---------- */

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-home .home-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.4;
}

.page-home .home-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(102deg, rgba(5, 7, 10, 0.94) 0%, rgba(5, 7, 10, 0.72) 48%, rgba(0, 229, 255, 0.1) 100%),
    linear-gradient(0deg, rgba(5, 7, 10, 0.98) 1%, rgba(5, 7, 10, 0) 44%);
}

.page-home .home-hero__inner {
  box-sizing: border-box;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px var(--home-pad) 44px;
}

.page-home .home-hero__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--blue);
  margin: 0 0 20px;
}

.page-home .home-hero__round {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 26px;
}

.page-home .home-hero__round-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(5.4rem, 26vw, 11rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.07em;
  color: var(--green);
  text-shadow: 0 0 42px var(--green-glow), 0 0 96px rgba(198, 255, 0, 0.07);
}

.page-home .home-hero__round-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 10px;
}

.page-home .home-hero__round-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.page-home .home-hero__round-sub {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 170px;
  transition: color 0.24s var(--ease);
}

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

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 6.4vw, 3.45rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 18px;
  max-width: 20ch;
}

.page-home .home-hero__lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 56ch;
}

.page-home .home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 1024px) {
  .page-home .home-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: end;
    padding: 88px var(--home-pad) 76px;
  }

  .page-home .home-hero__round {
    margin-bottom: 0;
  }

  .page-home .home-hero__lead {
    font-size: 17px;
  }
}

/* ---------- 数据条带 ---------- */

.page-home .home-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .home-strip__cell {
  position: relative;
  background: var(--ink-2);
  padding: 22px 20px 24px;
}

.page-home .home-strip__cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--green);
}

.page-home .home-strip__cell:nth-child(2)::before { background: var(--blue); }
.page-home .home-strip__cell:nth-child(3)::before { background: var(--green); }
.page-home .home-strip__cell:nth-child(4)::before { background: var(--orange); }

.page-home .home-strip__value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--white);
}

.page-home .home-strip__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--green);
}

.page-home .home-strip__cell:nth-child(2) .home-strip__num { color: var(--blue); }
.page-home .home-strip__cell:nth-child(4) .home-strip__num { color: var(--orange); }

.page-home .home-strip__label {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

@media (min-width: 640px) {
  .page-home .home-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .page-home .home-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .home-strip__cell {
    padding: 26px 28px 30px;
  }
}

/* ---------- 章节骨架 ---------- */

.page-home .home-sec {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px var(--home-pad) 58px;
}

.page-home .home-sec__index {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--green);
  margin: 0 0 14px;
}

.page-home .home-sec__index::after {
  content: "";
  flex: 1;
  max-width: 140px;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.page-home .home-sec__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5.2vw, 2.7rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 16px;
  max-width: 22ch;
}

.page-home .home-sec__lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 62ch;
}

@media (min-width: 1024px) {
  .page-home .home-sec {
    padding: 88px var(--home-pad) 90px;
  }

  .page-home .home-sec__lead {
    font-size: 17px;
  }
}

/* ---------- 图片容器 ---------- */

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

.page-home .home-figure .media-frame {
  aspect-ratio: 3 / 2;
}

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

.page-home .home-figure__cap {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 第 12 轮速览 ---------- */

.page-home .home-round__body {
  display: grid;
  gap: 34px;
}

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

.page-home .home-note {
  background: var(--ink);
  padding: 22px 0 24px;
}

.page-home .home-note__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--blue);
  margin: 0 0 10px;
}

.page-home .home-note__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
  margin: 0 0 8px;
}

.page-home .home-note__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 48ch;
}

@media (min-width: 900px) {
  .page-home .home-round__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: 56px;
    align-items: start;
  }

  .page-home .home-note {
    padding: 24px 24px 26px 0;
  }
}

/* ---------- 版本变化 ---------- */

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

.page-home .home-change {
  padding: 26px 22px 28px;
}

.page-home .home-change__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--blue);
  margin: 0 0 14px;
}

.page-home .home-change__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--white);
  margin: 0 0 10px;
}

.page-home .home-change__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

@media (min-width: 768px) {
  .page-home .home-changes {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
  }

  .page-home .home-change:nth-child(2) {
    margin-top: 34px;
  }

  .page-home .home-change:nth-child(3) {
    margin-top: 68px;
  }
}

/* ---------- 集锦栏目 ---------- */

.page-home .home-figure--clips .media-frame {
  aspect-ratio: 16 / 9;
}

.page-home .home-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 28px;
}

.page-home .home-proj {
  position: relative;
  display: block;
  background: var(--ink-2);
  padding: 18px 16px 20px;
  text-decoration: none;
  transition: background 0.24s var(--ease);
}

.page-home .home-proj::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 0.24s var(--ease);
}

.page-home .home-proj:hover,
.page-home .home-proj:focus-visible {
  background: var(--green-glow);
}

.page-home .home-proj:hover::before,
.page-home .home-proj:focus-visible::before {
  background: var(--green);
}

.page-home .home-proj__no {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--graphite);
  margin-bottom: 14px;
  transition: color 0.24s var(--ease);
}

.page-home .home-proj:hover .home-proj__no,
.page-home .home-proj:focus-visible .home-proj__no {
  color: var(--green);
}

.page-home .home-proj__name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.page-home .home-proj__desc {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.page-home .home-clips__note {
  margin: 24px 0 22px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 62ch;
}

.page-home .home-clips__cta {
  margin: 0;
}

@media (min-width: 700px) {
  .page-home .home-projects {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .page-home .home-figure--clips .media-frame {
    aspect-ratio: 21 / 9;
  }
}

/* ---------- 轮次轴 ---------- */

.page-home .home-axis-wrap {
  margin: 8px 0 34px;
  padding: 26px 18px 18px;
  background: linear-gradient(180deg, var(--ink-2), rgba(14, 19, 25, 0.35));
  border: 1px solid var(--line);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.page-home .home-axis {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .home-axis__done circle {
  fill: var(--green);
}

.page-home .home-axis__next circle {
  fill: none;
  stroke: var(--graphite);
  stroke-width: 2;
}

.page-home .home-axis__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  fill: var(--muted);
}

.page-home .home-axis__label--now {
  fill: var(--green);
}

.page-home .home-axis__cta {
  margin: 0;
}

@media (min-width: 900px) {
  .page-home .home-axis-wrap {
    padding: 40px 40px 24px;
  }
}

/* ---------- 订阅 ---------- */

.page-home .home-sub__body {
  display: grid;
  gap: 34px;
}

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

.page-home .home-sub__item {
  background: var(--ink);
  padding: 16px 0 18px;
}

.page-home .home-sub__key {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 6px;
}

.page-home .home-sub__val {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 46ch;
}

.page-home .home-sub__cta {
  margin: 0;
}

@media (min-width: 900px) {
  .page-home .home-sub__body {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
  }

  .page-home .home-sub__item {
    padding: 17px 22px 19px 0;
  }
}

/* ---------- 三步上手 ---------- */

.page-home .home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .home-step {
  background: var(--ink-2);
  padding: 26px 22px 30px;
}

.page-home .home-step__no {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--green);
  margin-bottom: 16px;
}

.page-home .home-step:nth-child(2) .home-step__no { color: var(--blue); }
.page-home .home-step:nth-child(3) .home-step__no { color: var(--orange); }

.page-home .home-step__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
  margin: 0 0 8px;
}

.page-home .home-step__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-steps__more {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-inline-link {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.4);
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.page-home .home-inline-link:hover,
.page-home .home-inline-link:focus-visible {
  color: var(--green);
  border-bottom-color: var(--green);
}

@media (min-width: 768px) {
  .page-home .home-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 延伸入口 ---------- */

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

.page-home .home-next__inner {
  box-sizing: border-box;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px var(--home-pad) 42px;
}

.page-home .home-next__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 18px;
}

.page-home .home-next__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
}

.page-home .home-next__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--white);
  text-decoration: none;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.page-home .home-next__link::before {
  content: "→";
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
}

.page-home .home-next__link:hover,
.page-home .home-next__link:focus-visible {
  color: var(--green);
  border-bottom-color: var(--green);
}

@media (min-width: 1024px) {
  .page-home .home-next__inner {
    display: flex;
    align-items: baseline;
    gap: 40px;
    padding: 38px var(--home-pad) 46px;
  }

  .page-home .home-next__label {
    margin: 0;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-proj,
  .page-home .home-proj::before,
  .page-home .home-proj__no,
  .page-home .home-next__link,
  .page-home .home-inline-link,
  .page-home .home-hero__round-sub {
    transition: none;
  }
}
