.page-home {
  --ph-cut: 12px;
  --ph-accent: var(--lg-red);
  background: var(--lg-cream);
  color: var(--lg-ink);
  font-family: var(--lg-font-sans);
}

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

.page-home .ph-shell {
  width: 100%;
  max-width: calc(var(--lg-w) + 40px);
  margin: 0 auto;
  padding: 0 var(--lg-gutter);
}

.page-home .ph-body {
  min-width: 0;
}

.page-home .ph-body > section {
  padding: 52px 0 0;
}

/* ---------- 左侧序号脊柱 ---------- */
.page-home .ph-spine {
  display: none;
}

@media (min-width: 1080px) {
  .page-home .ph-shell {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 36px;
    align-items: start;
  }

  .page-home .ph-spine {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 112px;
    padding-top: 44px;
  }
}

.page-home .ph-spine .lg-spine__item {
  font-family: var(--lg-font-mono);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 9px 0 9px 12px;
  color: var(--lg-faint);
  text-decoration: none;
  border-left: 2px solid var(--lg-line);
  transition: color var(--lg-ease), border-color var(--lg-ease);
}

.page-home .ph-spine .lg-spine__item:hover,
.page-home .ph-spine .lg-spine__item:focus-visible,
.page-home .ph-spine .lg-spine__item.is-active {
  color: var(--lg-red);
  border-left-color: var(--lg-red);
}

/* ---------- 首屏拼贴 ---------- */
.page-home .ph-hero {
  padding-top: 30px;
}

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

@media (min-width: 900px) {
  .page-home .ph-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 40px;
    align-items: start;
  }

  .page-home .ph-hero__figure {
    margin-top: 56px;
  }
}

.page-home .ph-hero__title {
  margin: 14px 0 18px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.02em;
  max-width: 13em;
}

.page-home .ph-hero__lede {
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--lg-muted);
  max-width: 34em;
}

.page-home .ph-hero__tags {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-home .ph-hero__tagtext {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--lg-muted);
}

.page-home .ph-hero__figure {
  margin: 0;
}

.page-home .ph-hero__media {
  background: var(--lg-sand);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.page-home .ph-hero__media img {
  width: 100%;
  aspect-ratio: 9 / 7;
  object-fit: cover;
}

.page-home .ph-hero__note {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 2px solid var(--lg-red);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--lg-muted);
}

/* ---------- 下载条 ---------- */
.page-home .ph-download {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: 26px 22px;
  background: var(--lg-ink);
  color: var(--lg-cream);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

@media (min-width: 860px) {
  .page-home .ph-download {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    column-gap: 34px;
    padding: 34px 38px;
  }
}

.page-home .ph-download__kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--lg-red);
}

.page-home .ph-download__title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--lg-cream);
}

.page-home .ph-download__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(245, 241, 234, 0.72);
  max-width: 34em;
}

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

.page-home .ph-download__actions .lg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--lg-ease), background var(--lg-ease);
}

.page-home .ph-download__actions .lg-btn--accent {
  background: var(--lg-red);
  color: var(--lg-white);
}

.page-home .ph-download__actions .lg-btn--ghost {
  background: transparent;
  color: var(--lg-cream);
  border: 1.5px solid rgba(245, 241, 234, 0.42);
}

.page-home .ph-download__actions .lg-btn:hover {
  transform: translateY(-4px);
}

.page-home .ph-download__aside img {
  width: 100%;
  aspect-ratio: 7 / 5;
  object-fit: cover;
}

/* ---------- 编号入口矩阵 ---------- */
.page-home .ph-entries__head {
  max-width: 42em;
  margin-bottom: 26px;
}

.page-home .ph-entries__title {
  margin: 10px 0 14px;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-home .ph-entries__lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--lg-muted);
}

.page-home .ph-entries__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

@media (min-width: 760px) {
  .page-home .ph-entries__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .page-home .ph-entries__grid > li:nth-child(2),
  .page-home .ph-entries__grid > li:nth-child(5) {
    margin-top: 44px;
  }

  .page-home .ph-entries__grid > li:nth-child(3),
  .page-home .ph-entries__grid > li:nth-child(6) {
    margin-top: 22px;
  }
}

.page-home .ph-entry--01 { --ph-accent: var(--lg-red); --ph-tint: var(--lg-peach); }
.page-home .ph-entry--02 { --ph-accent: var(--lg-blue); --ph-tint: var(--lg-blue-pale); }
.page-home .ph-entry--03 { --ph-accent: var(--lg-ink); --ph-tint: var(--lg-sand); }
.page-home .ph-entry--04 { --ph-accent: var(--lg-ink-2); --ph-tint: var(--lg-sand); }
.page-home .ph-entry--05 { --ph-accent: var(--lg-teal); --ph-tint: var(--lg-white); }
.page-home .ph-entry--06 { --ph-accent: var(--lg-blue); --ph-tint: var(--lg-white); }

.page-home .ph-entry__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 142px;
  padding: 16px 15px 18px;
  text-decoration: none;
  color: var(--lg-ink);
  background: var(--ph-tint, var(--lg-white));
  clip-path: polygon(0 0, calc(100% - var(--ph-cut)) 0, 100% var(--ph-cut), 100% 100%, var(--ph-cut) 100%, 0 calc(100% - var(--ph-cut)));
  transition: transform var(--lg-ease);
}

.page-home .ph-entry__link:hover,
.page-home .ph-entry__link:focus-visible {
  transform: translateY(-4px);
}

.page-home .ph-entry__link::before {
  content: "";
  width: 28px;
  height: 4px;
  background: var(--ph-accent);
  margin-bottom: 8px;
}

.page-home .ph-entry__n {
  font-family: var(--lg-font-mono);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ph-accent);
}

.page-home .ph-entry__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-home .ph-entry__text {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--lg-muted);
}

@media (min-width: 760px) {
  .page-home .ph-entry__link {
    min-height: 168px;
    padding: 18px 18px 20px;
  }

  .page-home .ph-entry__n {
    font-size: 46px;
  }

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

  .page-home .ph-entry__text {
    font-size: 13.5px;
  }
}

/* ---------- 为什么编成号 ---------- */
.page-home .ph-why__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

@media (min-width: 900px) {
  .page-home .ph-why__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    column-gap: 44px;
    align-items: start;
  }
}

.page-home .ph-why__title {
  margin: 10px 0 16px;
  font-size: clamp(25px, 3.4vw, 38px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-home .ph-why__p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--lg-muted);
  max-width: 34em;
}

.page-home .ph-why__points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .ph-why__points li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 14px;
  border-left: 2px solid var(--lg-sand);
  font-size: 14px;
  line-height: 1.7;
  color: var(--lg-muted);
}

.page-home .ph-why__points strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--lg-ink);
  letter-spacing: 0.02em;
}

.page-home .ph-why__figure {
  margin: 0;
}

.page-home .ph-why__media {
  background: var(--lg-sand);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.page-home .ph-why__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .ph-why__note {
  margin-top: 12px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--lg-faint);
}

/* ---------- 最近更新 ---------- */
.page-home .ph-updates__head {
  max-width: 42em;
}

.page-home .ph-updates__title {
  margin: 10px 0 14px;
  font-size: clamp(25px, 3.4vw, 38px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-home .ph-updates__lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--lg-muted);
}

.page-home .ph-updates__band {
  margin-top: 24px;
  overflow: hidden;
  background: var(--lg-ink);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.page-home .ph-updates__band img {
  width: 100%;
  aspect-ratio: 8 / 3;
  object-fit: cover;
}

.page-home .ph-updates__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--lg-line);
}

.page-home .ph-update {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "ver title"
    "ver meta";
  column-gap: 14px;
  row-gap: 6px;
  padding: 15px 14px;
  border-bottom: 1px solid var(--lg-line);
  background: var(--lg-white);
}

.page-home .ph-update:nth-child(even) {
  background: var(--lg-sand);
}

.page-home .ph-update__ver {
  grid-area: ver;
  font-family: var(--lg-font-mono);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--lg-red-deep);
  padding-top: 3px;
}

.page-home .ph-update__title {
  grid-area: title;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--lg-ink);
}

.page-home .ph-update__meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.page-home .ph-update__cat {
  font-family: var(--lg-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--lg-muted);
}

.page-home .ph-update__state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--lg-ink);
}

@media (min-width: 820px) {
  .page-home .ph-update {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    grid-template-areas: "ver title meta";
    align-items: center;
    min-height: 56px;
    padding: 0 20px;
  }

  .page-home .ph-update__ver {
    padding-top: 0;
  }
}

.page-home .ph-more {
  display: inline-block;
  margin-top: 22px;
  padding-bottom: 3px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--lg-red-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--lg-red);
}

.page-home .ph-more:hover {
  color: var(--lg-red);
}

/* ---------- 换设备 ---------- */
.page-home .ph-switch__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 24px 20px;
  background: var(--lg-blue-pale);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

@media (min-width: 900px) {
  .page-home .ph-switch__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 40px;
    align-items: center;
    padding: 34px 36px;
  }
}

.page-home .ph-switch__title {
  margin: 10px 0 14px;
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-home .ph-switch__p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--lg-ink-2);
  max-width: 30em;
}

.page-home .ph-switch__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--lg-blue);
  text-decoration: none;
  border-bottom: 2px solid var(--lg-blue);
  padding-bottom: 2px;
}

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

.page-home .ph-switch__panel {
  background: var(--lg-white);
  padding: 14px 12px 16px;
}

.page-home .ph-switch__label {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--lg-muted);
}

.page-home .ph-switch__seq {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--lg-ink);
}

.page-home .ph-switch__seq li {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.page-home .ph-switch__seq span {
  font-family: var(--lg-font-mono);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--lg-blue);
}

.page-home .ph-switch__rest {
  font-size: 12px;
  color: var(--lg-faint);
  padding-top: 2px;
}

/* ---------- 下一步 ---------- */
.page-home .ph-next {
  padding-bottom: 40px;
}

.page-home .ph-next__title {
  margin: 10px 0 0;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-home .ph-next__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

@media (min-width: 760px) {
  .page-home .ph-next__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

.page-home .ph-next__link {
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 100%;
  padding: 18px 16px 20px;
  background: var(--lg-white);
  text-decoration: none;
  color: var(--lg-ink);
  border-top: 4px solid var(--lg-red);
  transition: transform var(--lg-ease);
}

.page-home .ph-next__list > li:nth-child(2) .ph-next__link {
  border-top-color: var(--lg-teal);
}

.page-home .ph-next__list > li:nth-child(3) .ph-next__link {
  border-top-color: var(--lg-blue);
}

.page-home .ph-next__link:hover,
.page-home .ph-next__link:focus-visible {
  transform: translateY(-4px);
}

.page-home .ph-next__t {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-home .ph-next__d {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--lg-muted);
}

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