.page-home {
  --ph-gap: clamp(20px, 3.4vw, 34px);
  position: relative;
  display: block;
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-sans);
  overflow-x: clip;
}

.page-home .ph-lede {
  margin: 14px 0 0;
  max-width: 40ch;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.78;
  color: var(--muted);
}

/* ---------- 左侧刻度轨 ---------- */
.page-home .ph-rail {
  display: none;
}

/* ---------- 首屏 ---------- */
.page-home .ph-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(38px, 6.5vw, 76px) 0 clamp(48px, 7.5vw, 92px);
}

.page-home .ph-hero__deco {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 520px at 94% 2%, rgba(255, 107, 26, 0.30), transparent 64%),
    radial-gradient(600px 460px at 4% 98%, rgba(31, 224, 182, 0.16), transparent 66%);
  clip-path: polygon(0 0, 100% 0, 100% 66%, 58% 100%, 0 100%);
  pointer-events: none;
}

.page-home .ph-hero__slant {
  position: absolute;
  top: -14%;
  right: -6%;
  width: min(560px, 74vw);
  height: min(520px, 76vh);
  z-index: -1;
  background: linear-gradient(158deg, var(--orange) 0%, var(--orange-soft) 44%, rgba(255, 154, 77, 0) 100%);
  clip-path: polygon(36% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.14;
  pointer-events: none;
}

.page-home .ph-hero__inner {
  position: relative;
  display: grid;
  gap: clamp(30px, 5vw, 52px);
  align-items: center;
}

.page-home .ph-hero__copy {
  max-width: 660px;
}

.page-home .ph-hero__title {
  margin: 16px 0 0;
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.08;
}

.page-home .ph-hero__title em {
  font-style: normal;
  color: var(--orange);
}

.page-home .ph-hero__lede {
  margin: 18px 0 0;
  max-width: 38ch;
  font-size: clamp(16px, 1.85vw, 18px);
  line-height: 1.78;
  color: var(--muted);
}

.page-home .ph-ver {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 12px 22px 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(20, 28, 66, 0.74);
  box-shadow: var(--shadow-panel);
}

.page-home .ph-ver__btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: var(--r-md);
}

.page-home .ph-ver__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .ph-ver__side {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.page-home .ph-ver__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--teal);
}

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

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

.page-home .ph-hero__device {
  position: relative;
  margin: 0;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--ink-800);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}

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

.page-home .ph-hero__tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(10, 16, 48, 0.86);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--teal);
}

/* ---------- 回访栏目 ---------- */
.page-home .ph-index__grid {
  display: grid;
  gap: 14px;
  margin-top: clamp(26px, 4vw, 40px);
}

.page-home .ph-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-850) 100%);
  color: inherit;
  text-decoration: none;
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.page-home .ph-tile:hover,
.page-home .ph-tile:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 26, 0.62);
  box-shadow: 0 20px 36px -28px rgba(255, 107, 26, 0.95);
}

.page-home .ph-tile__num {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange);
}

.page-home .ph-tile__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .ph-tile__text {
  margin: 0;
  flex: 1;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .ph-tile__go {
  align-self: flex-start;
  margin-top: 4px;
  padding-bottom: 2px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--orange-soft);
  border-bottom: 1px solid rgba(255, 154, 77, 0.45);
}

.page-home .ph-chips {
  margin-top: 20px;
}

/* ---------- 版本节奏 ---------- */
.page-home .ph-roll {
  position: relative;
  padding: clamp(50px, 7.5vw, 92px) 0;
  background:
    radial-gradient(720px 420px at 88% 20%, rgba(31, 224, 182, 0.10), transparent 66%),
    var(--ink-850);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .ph-roll__layout {
  display: grid;
  gap: clamp(28px, 4.5vw, 48px);
  margin-top: clamp(26px, 4vw, 42px);
}

.page-home .ph-roll__media {
  margin: 0;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--ink-800);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}

.page-home .ph-roll__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.page-home .ph-roll__media .d168-media__note {
  display: block;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

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

.page-home .ph-tl::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--orange) 0%, var(--line) 42%, var(--line) 100%);
}

.page-home .ph-tl__item {
  position: relative;
  padding: 0 0 32px 36px;
}

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

.page-home .ph-tl__dot {
  position: absolute;
  left: 0;
  top: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--ink-850);
}

.page-home .ph-tl__item[data-state="current"] .ph-tl__dot {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(31, 224, 182, 0.16);
}

.page-home .ph-tl__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.page-home .ph-tl__ver {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .ph-tl__title {
  margin: 12px 0 8px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .ph-tl__text {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.76;
  color: var(--muted);
}

.page-home .ph-tl__meta {
  margin: 12px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---------- 安装四步 ---------- */
.page-home .ph-steps__grid {
  display: grid;
  gap: 14px;
  margin-top: clamp(26px, 4vw, 40px);
}

.page-home .ph-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-800);
}

.page-home .ph-step__num {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--orange);
}

.page-home .ph-step__title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}

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

.page-home .ph-steps__shot {
  position: relative;
  margin: clamp(26px, 4vw, 40px) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--ink-800);
  overflow: hidden;
}

.page-home .ph-steps__shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home .ph-steps__shot .d168-media__note {
  display: block;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-home .ph-steps__more {
  margin: 22px 0 0;
}

/* ---------- 帮助与资料 ---------- */
.page-home .ph-help__grid {
  display: grid;
  gap: clamp(18px, 3vw, 26px);
  margin-top: clamp(26px, 4vw, 40px);
}

.page-home .ph-box {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--ink-800);
}

.page-home .ph-box__title {
  margin: 0 0 18px;
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .ph-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .ph-cats__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: var(--ink-850);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.page-home .ph-cats__link:hover,
.page-home .ph-cats__link:focus-visible {
  border-color: rgba(255, 107, 26, 0.6);
  background: rgba(255, 107, 26, 0.08);
}

.page-home .ph-cats__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
  min-width: 3.4em;
}

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

.page-home .ph-docs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .ph-docs__item {
  display: flex;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

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

.page-home .ph-docs__tag {
  flex: none;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--teal);
  padding-top: 3px;
}

.page-home .ph-docs__item strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .ph-docs__item p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

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

.page-home .ph-box__foot strong {
  color: var(--paper);
  font-size: 15px;
}

/* ---------- 服务能力 ---------- */
.page-home .ph-trust {
  position: relative;
  padding: clamp(50px, 7.5vw, 92px) 0;
  background:
    radial-gradient(680px 420px at 10% 12%, rgba(255, 107, 26, 0.16), transparent 66%),
    var(--ink-850);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .ph-trust__grid {
  display: grid;
  gap: 14px;
  margin-top: clamp(26px, 4vw, 40px);
}

.page-home .ph-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(20, 28, 66, 0.72);
}

.page-home .ph-stat__num {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .ph-stat__num em {
  font-style: normal;
  font-size: 0.44em;
  font-weight: 700;
  color: var(--orange);
  margin-left: 4px;
  letter-spacing: 0.02em;
}

.page-home .ph-stat__label {
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .ph-stat__note {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.page-home .ph-trust__aside {
  margin-top: clamp(22px, 3.4vw, 32px);
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-lg);
  background: rgba(10, 16, 48, 0.6);
  display: grid;
  gap: 18px;
  align-items: start;
}

.page-home .ph-trust__aside p {
  margin: 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .ph-trust__aside .d168-btn {
  justify-self: start;
}

/* ---------- 收口 ---------- */
.page-home .ph-cta {
  padding-bottom: clamp(56px, 8vw, 104px);
}

.page-home .ph-cta__panel {
  display: grid;
  gap: 24px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    linear-gradient(128deg, rgba(255, 107, 26, 0.16) 0%, rgba(31, 224, 182, 0.10) 58%, rgba(20, 28, 66, 0.9) 100%),
    var(--ink-800);
  align-items: center;
}

.page-home .ph-cta__title {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--paper);
}

.page-home .ph-cta__text {
  margin: 12px 0 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
}

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

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

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

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

  .page-home .ph-trust__aside {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 920px) {
  .page-home .ph-hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .page-home .ph-roll__layout {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
  }

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

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

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

  .page-home .ph-steps__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .ph-trust__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1360px) {
  .page-home .ph-rail {
    position: fixed;
    top: 50%;
    left: 24px;
    z-index: 30;
    display: block;
    transform: translateY(-50%);
  }

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

  .page-home .ph-rail__link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.06em;
    transition: color 0.22s ease;
  }

  .page-home .ph-rail__dot {
    width: 10px;
    height: 10px;
    flex: none;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--ink-850);
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  }

  .page-home .ph-rail__name {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width 0.28s ease, opacity 0.28s ease;
  }

  .page-home .ph-rail__link:hover .ph-rail__name,
  .page-home .ph-rail__link:focus-visible .ph-rail__name {
    max-width: 8em;
    opacity: 1;
  }

  .page-home .ph-rail__link[data-active="true"] {
    color: var(--paper);
  }

  .page-home .ph-rail__link[data-active="true"] .ph-rail__dot {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.2);
  }

  .page-home .ph-rail__link[data-active="true"] .ph-rail__name {
    max-width: 8em;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ph-tile,
  .page-home .ph-cats__link,
  .page-home .ph-rail__link,
  .page-home .ph-rail__dot,
  .page-home .ph-rail__name {
    transition: none;
  }

  .page-home .ph-tile:hover,
  .page-home .ph-tile:focus-visible {
    transform: none;
  }
}
