.page-home {
  --ph-cut: 8deg;
  position: relative;
  overflow-x: clip;
  color: var(--white);
  background: var(--ink);
}

.page-home .ph-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.page-home .ph-link {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(52, 216, 255, 0.35);
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.page-home .ph-link:hover {
  color: var(--lime);
  border-color: var(--lime);
}

/* ---------- 章节索引 ---------- */
.page-home .ph-index {
  display: none;
}

@media (min-width: 1400px) {
  .page-home .ph-index {
    position: fixed;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
}

.page-home .ph-index__link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  text-decoration: none;
  color: var(--violet);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  transition: color 160ms var(--ease);
}

.page-home .ph-index__link:hover,
.page-home .ph-index__link[aria-current="true"] {
  color: var(--lime);
}

.page-home .ph-index__no {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(5, 7, 14, 0.7);
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}

.page-home .ph-index__link[aria-current="true"] .ph-index__no {
  border-color: var(--lime);
  background: var(--moss);
}

.page-home .ph-index__label {
  opacity: 0;
  transform: translateX(-4px);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  white-space: nowrap;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}

.page-home .ph-index__link:hover .ph-index__label,
.page-home .ph-index__link[aria-current="true"] .ph-index__label {
  opacity: 1;
  transform: none;
}

/* ---------- 首屏 ---------- */
.page-home .ph-hero {
  position: relative;
  padding: calc(var(--header-offset) + 28px) 0 40px;
  background:
    radial-gradient(90% 70% at 82% 8%, rgba(52, 216, 255, 0.12), transparent 62%),
    radial-gradient(70% 60% at 8% 92%, rgba(182, 255, 60, 0.07), transparent 60%),
    var(--ink);
}

.page-home .ph-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: repeating-linear-gradient(0deg, rgba(230, 237, 245, 0.6) 0 1px, transparent 1px 3px);
}

.page-home .ph-hero .ab-container {
  position: relative;
  z-index: 1;
}

.page-home .ph-hero__kicker {
  color: var(--blue);
  letter-spacing: 0.14em;
}

.page-home .ph-hero__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-home .ph-hero__accent {
  color: var(--lime);
  position: relative;
  display: inline-block;
}

.page-home .ph-hero__accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), transparent);
}

.page-home .ph-hero__lede {
  max-width: 34ch;
  margin: 22px 0 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--muted);
}

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

.page-home .ph-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .ph-hero__visual {
  position: relative;
  margin: 30px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--steel);
  box-shadow: 0 1px 0 rgba(230, 237, 245, 0.06);
}

.page-home .ph-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 11;
}

.page-home .ph-hero__progress {
  position: relative;
  margin-top: 18px;
  padding: 16px 18px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(11, 18, 32, 0.86);
}

.page-home .ph-hero__progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.page-home .ph-hero__progress-tag {
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--moss);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}

.page-home .ph-hero__progress-rail {
  position: relative;
  height: 4px;
  margin: 14px 0 10px;
  border-radius: var(--radius-pill);
  background: var(--steel);
  overflow: hidden;
}

.page-home .ph-hero__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 68%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--lime));
  animation: ph-home-breathe 2s var(--ease) infinite;
}

.page-home .ph-hero__progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--violet);
}

@keyframes ph-home-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@media (min-width: 900px) {
  .page-home .ph-hero {
    padding-bottom: 64px;
  }

  .page-home .ph-hero__frame {
    position: relative;
    min-height: 540px;
  }

  .page-home .ph-hero__copy {
    position: relative;
    z-index: 2;
    width: 63%;
    padding-bottom: 34px;
  }

  .page-home .ph-hero__visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    margin: 0;
    z-index: 1;
    clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
    border-radius: 0 var(--radius) var(--radius) 0;
  }

  .page-home .ph-hero__img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 100%;
  }

  .page-home .ph-hero__progress {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 3;
    width: 44%;
    margin: 0;
    backdrop-filter: blur(10px);
  }
}

/* ---------- 桌面端三件事 ---------- */
.page-home .ph-board {
  padding: 64px 0;
  background: var(--ink);
}

.page-home .ph-board__head {
  display: grid;
  gap: 18px;
  margin-bottom: 40px;
}

.page-home .ph-board .ab-kicker {
  color: var(--blue);
}

.page-home .ph-board__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.page-home .ph-board__intro {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .ph-board__grid {
  display: grid;
  gap: 30px;
}

.page-home .ph-board__media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--steel);
}

.page-home .ph-board__media-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.page-home .ph-board__item {
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 28, 46, 0.9), rgba(11, 18, 32, 0.92));
  box-shadow: 0 1px 0 rgba(230, 237, 245, 0.06);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease);
}

.page-home .ph-board__item + .ph-board__item {
  margin-top: 18px;
}

.page-home .ph-board__item:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
}

.page-home .ph-board__no {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.page-home .ph-board__item-title {
  margin: 8px 0 0;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.page-home .ph-board__item-text {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .ph-board__path {
  display: block;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.7;
  color: var(--violet);
  word-break: break-word;
}

@media (min-width: 900px) {
  .page-home .ph-board {
    padding: 96px 0;
  }

  .page-home .ph-board__head {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: end;
    gap: 48px;
    margin-bottom: 56px;
  }

  .page-home .ph-board__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 52px;
    align-items: start;
  }

  .page-home .ph-board__media {
    position: sticky;
    top: calc(16px + 72px);
  }

  .page-home .ph-board__item:nth-child(2) {
    margin-left: 28px;
  }

  .page-home .ph-board__item:nth-child(3) {
    margin-left: 56px;
  }
}

/* ---------- 数据节奏 ---------- */
.page-home .ph-rhythm {
  position: relative;
  padding: 64px 0;
  background: var(--ink-2);
  overflow: hidden;
}

.page-home .ph-rhythm__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
}

.page-home .ph-rhythm .ab-container {
  position: relative;
  z-index: 1;
}

.page-home .ph-rhythm__grid {
  display: grid;
  gap: 38px;
}

.page-home .ph-rhythm .ab-kicker {
  color: var(--blue);
}

.page-home .ph-rhythm__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-home .ph-rhythm__text {
  margin: 16px 0 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .ph-rhythm__stamp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: relative;
  margin-top: 22px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(5, 7, 14, 0.5);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  cursor: default;
}

.page-home .ph-rhythm__pop {
  position: absolute;
  left: 0;
  top: calc(100% + 9px);
  z-index: 4;
  width: max-content;
  max-width: 260px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--steel);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}

.page-home .ph-rhythm__stamp:hover .ph-rhythm__pop,
.page-home .ph-rhythm__stamp:focus-visible .ph-rhythm__pop {
  opacity: 1;
  transform: translateY(0);
}

.page-home .ph-rhythm__track {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .ph-rhythm__track::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--blue), var(--lime), var(--violet));
  opacity: 0.45;
}

.page-home .ph-rhythm__node {
  position: relative;
  padding: 0 0 28px 34px;
}

.page-home .ph-rhythm__node:last-child {
  padding-bottom: 0;
}

.page-home .ph-rhythm__node-dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1px solid var(--blue);
  box-sizing: border-box;
}

.page-home .ph-rhythm__node:last-child .ph-rhythm__node-dot {
  border-color: var(--lime);
  background: var(--moss);
}

.page-home .ph-rhythm__node-day {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.page-home .ph-rhythm__node-title {
  margin: 6px 0 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .ph-rhythm__node-text {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--muted);
}

@media (min-width: 900px) {
  .page-home .ph-rhythm {
    padding: 96px 0;
  }

  .page-home .ph-rhythm__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 68px;
    align-items: start;
  }
}

/* ---------- 收藏夹 ---------- */
.page-home .ph-shelf {
  padding: 64px 0;
  background: var(--ink);
}

.page-home .ph-shelf__grid {
  display: grid;
  gap: 36px;
}

.page-home .ph-shelf .ab-kicker {
  color: var(--blue);
}

.page-home .ph-shelf__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.page-home .ph-shelf__text {
  margin: 16px 0 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .ph-shelf__specs {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .ph-shelf__specs li {
  display: grid;
  gap: 4px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.page-home .ph-shelf__specs li:last-child {
  border-bottom: 1px solid var(--line);
}

.page-home .ph-shelf__k {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--white);
}

.page-home .ph-shelf__v {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .ph-shelf__note {
  margin: 20px 0 0;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .ph-shelf__stack {
  position: relative;
}

.page-home .ph-shelf__media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--steel);
}

.page-home .ph-shelf__media-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.page-home .ph-shelf__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.page-home .ph-shelf__tag {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.page-home .ph-shelf__tag:hover {
  transform: translateY(-3px);
  border-color: var(--lime);
  color: var(--lime);
}

@media (min-width: 560px) {
  .page-home .ph-shelf__specs li {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: baseline;
    gap: 18px;
  }
}

@media (min-width: 900px) {
  .page-home .ph-shelf {
    padding: 96px 0;
  }

  .page-home .ph-shelf__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 60px;
    align-items: start;
  }

  .page-home .ph-shelf__stack {
    padding-top: 26px;
  }
}

/* ---------- 焕新版与旧版资料 ---------- */
.page-home .ph-rebuild {
  padding: 64px 0;
  background: var(--ink-2);
}

.page-home .ph-rebuild .ab-kicker {
  color: var(--blue);
}

.page-home .ph-rebuild__head {
  display: grid;
  gap: 14px;
  margin-bottom: 36px;
}

.page-home .ph-rebuild__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-home .ph-rebuild__lede {
  max-width: 56ch;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .ph-rebuild__paths {
  display: grid;
  gap: 20px;
}

.page-home .ph-rebuild__path {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 7, 14, 0.55);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}

.page-home .ph-rebuild__path:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.page-home .ph-rebuild__path-no {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--lime);
}

.page-home .ph-rebuild__path-title {
  margin: 8px 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .ph-rebuild__path-text {
  margin: 10px 0 20px;
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--muted);
}

@media (min-width: 800px) {
  .page-home .ph-rebuild {
    padding: 96px 0;
  }

  .page-home .ph-rebuild__paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}

/* ---------- 结尾行动区 ---------- */
.page-home .ph-end {
  padding: 64px 0 88px;
  background: var(--ink);
}

.page-home .ph-end__panel {
  position: relative;
  padding: 40px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 88% 0%, rgba(182, 255, 60, 0.14), transparent 58%),
    linear-gradient(160deg, #0B1220, #05070E);
  overflow: hidden;
}

.page-home .ph-end__panel::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(52, 216, 255, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.page-home .ph-end .ab-kicker {
  color: var(--lime);
}

.page-home .ph-end__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.page-home .ph-end__text {
  max-width: 44ch;
  margin: 14px 0 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--muted);
}

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

.page-home .ph-end__meta {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.7;
  color: var(--violet);
}

@media (min-width: 800px) {
  .page-home .ph-end {
    padding: 88px 0 112px;
  }

  .page-home .ph-end__panel {
    padding: 56px 56px 52px;
  }
}

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

  .page-home .ph-board__item,
  .page-home .ph-rebuild__path,
  .page-home .ph-shelf__tag {
    transition: opacity 160ms var(--ease);
  }

  .page-home .ph-board__item:hover,
  .page-home .ph-rebuild__path:hover,
  .page-home .ph-shelf__tag:hover {
    transform: none;
  }
}
