.page-products {
  --pp-scroll-offset: calc(var(--ticker-h) + 20px);
}

.page-products #platforms,
.page-products #login-flow,
.page-products #register,
.page-products #devices,
.page-products #changelog {
  scroll-margin-top: var(--pp-scroll-offset);
}

.page-products img {
  max-width: 100%;
  height: auto;
}

/* ============ 首屏 ============ */
.page-products .ph-hero {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  padding: clamp(18px, 3vw, 36px) 0 clamp(40px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}

.page-products .ph-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.page-products .ph-title {
  margin: 0;
  font-size: clamp(34px, 7.4vw, 70px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.page-products .ph-lede {
  margin: 0;
  max-width: 54ch;
  font-size: clamp(15px, 1.6vw, 17.5px);
  line-height: 1.8;
  opacity: 0.84;
}

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

.page-products .ph-hero__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--moss-t);
}

/* 控制台面板 */
.page-products .ph-console {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(158deg, #151A22 0%, #101720 58%, #12212B 100%);
}

.page-products .ph-console::after {
  content: "";
  position: absolute;
  right: -28%;
  bottom: -46%;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 240, 211, 0.18), transparent 62%);
  pointer-events: none;
}

.page-products .ph-console__row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.page-products .ph-plat {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .ph-plat__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.86;
}

.page-products .ph-plat__item svg {
  width: 17px;
  height: 17px;
  color: var(--volt);
}

.page-products .ph-console__badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  border: 1px solid rgba(69, 240, 211, 0.4);
  padding: 3px 9px;
  border-radius: var(--radius);
}

.page-products .ph-console__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
  margin-top: 18px;
}

.page-products .ph-spec__k {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--moss-t);
}

.page-products .ph-spec__v {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 600;
  color: var(--cyan);
}

.page-products .ph-spec--amber .ph-spec__v { color: var(--amber); }
.page-products .ph-spec--paper .ph-spec__v { color: var(--paper); }

/* ============ 通用区块元素 ============ */
.page-products .ph-intro {
  max-width: 62ch;
  margin: 0 0 clamp(22px, 3.4vw, 36px);
  font-size: 16px;
  line-height: 1.85;
  opacity: 0.84;
}

.page-products .ph-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  overflow: hidden;
}

.page-products .ph-figure--wide { margin-bottom: clamp(26px, 4vw, 44px); }
.page-products .ph-figure--rail { margin-top: clamp(28px, 4vw, 48px); }

.page-products .ph-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .ph-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--moss-t);
}

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

.page-products .ph-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  line-height: 1.72;
  opacity: 0.8;
}

.page-products .ph-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--volt);
}

/* ============ 平台与下载 ============ */
.page-products .ph-platforms {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

.page-products .ph-index__list {
  display: flex;
  gap: 8px;
  margin: 0 0 4px;
  padding: 0 0 6px;
  list-style: none;
  overflow-x: auto;
}

.page-products .ph-index__link {
  display: inline-block;
  white-space: nowrap;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--paper);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}

.page-products .ph-index__link:hover,
.page-products .ph-index__link:focus-visible {
  border-color: var(--cyan);
  background: rgba(69, 240, 211, 0.08);
  color: var(--cyan);
}

.page-products .ph-cards {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

.page-products .ph-card {
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  scroll-margin-top: var(--pp-scroll-offset);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-products .ph-card:hover {
  transform: translateY(-3px);
  border-color: rgba(69, 240, 211, 0.55);
}

.page-products .ph-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.page-products .ph-card__name {
  margin: 0;
  font-size: 18.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.page-products .ph-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--cyan);
}

.page-products .ph-card__idx {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--moss-t);
}

.page-products .ph-card__text {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.8;
  opacity: 0.86;
}

/* ============ 登录通道 ============ */
.page-products .ph-band {
  background: linear-gradient(180deg, rgba(79, 107, 88, 0.24), rgba(10, 12, 16, 0) 82%);
}

.page-products .ph-flow__intro {
  max-width: 62ch;
  margin: 0 0 clamp(24px, 4vw, 42px);
  font-size: 16.5px;
  line-height: 1.85;
  opacity: 0.86;
}

.page-products .ph-flow__grid {
  display: grid;
  gap: clamp(26px, 4vw, 46px);
}

.page-products .ph-steps {
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
  border-left: 1px solid var(--line);
}

.page-products .ph-step {
  position: relative;
  padding-bottom: 26px;
}

.page-products .ph-step:last-child { padding-bottom: 0; }

.page-products .ph-step::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 0.42em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(69, 240, 211, 0.16);
}

.page-products .ph-step__num {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-products .ph-step__title {
  margin: 0 0 6px;
  font-size: 17.5px;
  font-weight: 500;
}

.page-products .ph-step__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  opacity: 0.82;
}

.page-products .ph-notes {
  display: grid;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.page-products .ph-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  opacity: 0.84;
}

.page-products .ph-note__k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--amber);
  padding-top: 4px;
}

/* ============ 注册与专栏 ============ */
.page-products .ph-register__grid {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.page-products .ph-register__text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.85;
  opacity: 0.86;
  max-width: 60ch;
}

.page-products .ph-register__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
}

.page-products .ph-modules {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.page-products .ph-module {
  display: grid;
  gap: 5px;
  padding: 15px 17px;
  background: var(--ink-2);
}

.page-products .ph-module__k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.page-products .ph-module__t {
  font-size: 16px;
  font-weight: 500;
}

.page-products .ph-module__d {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.78;
}

/* ============ 双端适配 ============ */
.page-products .ph-dark {
  background: linear-gradient(120deg, rgba(29, 42, 58, 0.72), rgba(21, 26, 34, 0.94));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-products .ph-device {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
  padding: clamp(24px, 3.6vw, 42px) 0;
  border-top: 1px solid var(--line);
}

.page-products .ph-device:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.page-products .ph-device__title {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 500;
}

.page-products .ph-device__text {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.82;
  opacity: 0.86;
}

/* ============ 更新日志 ============ */
.page-products .ph-log {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0 0 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.page-products .ph-log__item {
  flex: 0 0 min(76vw, 300px);
  scroll-snap-align: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.page-products .ph-log__item:first-child { border-top-color: var(--amber); }
.page-products .ph-log__item:last-child { border-top-color: var(--cyan); }

.page-products .ph-log__item:hover,
.page-products .ph-log__item:focus-within {
  border-color: var(--cyan);
  background: #101820;
}

.page-products .ph-log__ver {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--paper);
}

.page-products .ph-log__tag {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--moss-t);
}

.page-products .ph-log__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.76;
  opacity: 0.8;
}

/* ============ 结尾入口 ============ */
.page-products .ph-cta__inner {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 3.6vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(184, 92, 67, 0.18), rgba(47, 107, 255, 0.13) 55%, rgba(69, 240, 211, 0.1));
}

.page-products .ph-cta__t {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 500;
}

.page-products .ph-cta__p {
  margin: 0;
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.8;
  opacity: 0.86;
}

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

/* ============ 响应式 ============ */
@media (min-width: 760px) {
  .page-products .ph-console__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .page-products .ph-notes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 24px;
  }

  .page-products .ph-cta__inner {
    grid-template-columns: minmax(0, 1.3fr) auto;
    align-items: center;
  }
}

@media (min-width: 1000px) {
  .page-products .ph-hero {
    grid-template-columns: 1.06fr 0.94fr;
    align-items: center;
  }

  .page-products .ph-platforms {
    grid-template-columns: 176px minmax(0, 1fr);
    gap: clamp(24px, 3vw, 42px);
  }

  .page-products .ph-index {
    position: sticky;
    top: var(--pp-scroll-offset);
    align-self: start;
  }

  .page-products .ph-index__list {
    flex-direction: column;
    gap: 4px;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-products .ph-index__link {
    display: block;
    border-color: transparent;
    border-left: 1px solid var(--line);
    border-radius: 0;
    padding: 8px 12px;
  }

  .page-products .ph-index__link:hover,
  .page-products .ph-index__link:focus-visible {
    border-color: transparent;
    border-left-color: var(--cyan);
    background: rgba(69, 240, 211, 0.06);
  }

  .page-products .ph-flow__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
    align-items: start;
  }

  .page-products .ph-register__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
    align-items: start;
  }

  .page-products .ph-device {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
    gap: clamp(28px, 4vw, 52px);
  }

  .page-products .ph-device--rev {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  }

  .page-products .ph-device--rev > .ph-device__copy { order: 2; }
  .page-products .ph-device--rev > .ph-device__media { order: 1; }

  .page-products .ph-log {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }

  .page-products .ph-log__item { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .ph-card,
  .page-products .ph-index__link,
  .page-products .ph-log__item {
    transition: none;
  }

  .page-products .ph-card:hover {
    transform: none;
  }
}
