.page-products {
  --pd-cyan-soft: rgba(34, 211, 238, .14);
  --pd-gold-soft: rgba(242, 193, 78, .10);
  --pd-card: rgba(16, 42, 67, .55);
  display: block;
  background:
    radial-gradient(120% 82% at 92% -6%, var(--pd-cyan-soft), transparent 60%),
    radial-gradient(80% 62% at -8% 18%, var(--pd-gold-soft), transparent 56%);
  padding-bottom: clamp(56px, 9vw, 104px);
  overflow-x: hidden;
}

.page-products .breadcrumb {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 26px) var(--gutter) 0;
}

.page-products .figure-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(140deg, rgba(16, 42, 67, .9), rgba(10, 25, 41, .72));
}

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

/* ---------- 首屏 ---------- */
.page-products .pd-hero {
  padding-top: clamp(22px, 4vw, 46px);
}

.page-products .pd-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}

.page-products .pd-hero__title {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: clamp(34px, 8.4vw, 60px);
  line-height: 1.05;
  letter-spacing: .005em;
  color: var(--cream);
  margin: 14px 0 0;
}

.page-products .pd-hero__title span {
  display: block;
  margin-top: 10px;
  font-size: clamp(19px, 4.2vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--cyan);
}

.page-products .pd-hero__lead {
  margin: 20px 0 0;
  max-width: 50ch;
  color: var(--mist);
  font-size: clamp(15.5px, 2.3vw, 17.5px);
  line-height: 1.8;
}

.page-products .pd-prep {
  margin-top: 26px;
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(16, 42, 67, .74), rgba(10, 25, 41, .5));
}

.page-products .pd-prep__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--cyan);
}

.page-products .pd-prep__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .pd-prep__list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.7;
}

.page-products .pd-prep__n {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--gold);
  padding-top: 3px;
}

.page-products .pd-hero__media {
  position: relative;
}

.page-products .pd-hero__shot {
  aspect-ratio: 3 / 2;
}

.page-products .pd-get {
  margin-top: 16px;
  padding: 18px 20px 20px;
  border-radius: var(--r-md);
  backdrop-filter: blur(14px);
}

.page-products .pd-get__ver {
  margin: 10px 0 0;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(19px, 3.4vw, 23px);
  letter-spacing: .02em;
  color: var(--cream);
}

.page-products .pd-get__meta {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.page-products .pd-get__meta li {
  position: relative;
  padding-left: 14px;
  color: var(--mist);
  font-size: 13.5px;
  line-height: 1.6;
}

.page-products .pd-get__meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 5px;
  background: var(--cyan);
}

.page-products .pd-get .btn {
  margin-top: 16px;
}

/* ---------- 章节头 ---------- */
.page-products .pd-head {
  max-width: 64ch;
  margin-bottom: clamp(22px, 3.6vw, 36px);
}

.page-products .pd-head h2 {
  margin: 12px 0 0;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(26px, 5.4vw, 38px);
  line-height: 1.14;
  color: var(--cream);
}

.page-products .pd-head__sub {
  margin: 14px 0 0;
  color: var(--mist);
  font-size: clamp(15px, 2.2vw, 16.5px);
  line-height: 1.78;
}

/* ---------- 换设备 ---------- */
.page-products .pd-switch {
  padding-top: clamp(44px, 7vw, 82px);
}

.page-products .pd-switch__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
}

.page-products .pd-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .pd-step {
  position: relative;
  padding: 0 0 clamp(22px, 3.6vw, 30px) 54px;
}

.page-products .pd-step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(34, 211, 238, .42), rgba(34, 211, 238, .04));
}

.page-products .pd-step:last-child::before {
  display: none;
}

.page-products .pd-step__n {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
}

.page-products .pd-step__title {
  margin: 6px 0 0;
  font-size: clamp(17px, 2.6vw, 19px);
  font-weight: 600;
  color: var(--cream);
}

.page-products .pd-step__body {
  margin: 8px 0 0;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.76;
}

.page-products .pd-more {
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--pd-card);
}

.page-products .pd-more > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 15px;
  font-size: 13.5px;
  color: var(--cyan);
}

.page-products .pd-more > summary::-webkit-details-marker {
  display: none;
}

.page-products .pd-more > summary::after {
  content: "＋";
  float: right;
  font-family: var(--font-mono);
}

.page-products .pd-more[open] > summary::after {
  content: "－";
}

.page-products .pd-more__body {
  padding: 0 15px 15px;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.72;
}

.page-products .pd-more__body p {
  margin: 0 0 9px;
}

.page-products .pd-more__body p:last-child {
  margin-bottom: 0;
}

.page-products .pd-more__body a {
  color: var(--cyan);
}

.page-products .pd-switch__shot {
  aspect-ratio: 3 / 2;
}

/* ---------- 功能 ---------- */
.page-products .pd-features {
  padding-top: clamp(44px, 7vw, 82px);
}

.page-products .pd-features__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3.6vw, 38px);
  align-items: start;
}

.page-products .pd-feature__shot {
  aspect-ratio: 8 / 5;
}

.page-products .pd-feat-list {
  display: grid;
  gap: 13px;
}

.page-products .pd-feat {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--pd-card);
  transition: border-color var(--dur) ease, transform var(--dur) ease;
}

.page-products .pd-feat__ico {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, .42);
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, .3), rgba(34, 211, 238, .04));
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cyan);
}

.page-products .pd-feat h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--cream);
}

.page-products .pd-feat p {
  margin: 7px 0 0;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.72;
}

/* ---------- 适配 ---------- */
.page-products .pd-devices {
  padding-top: clamp(44px, 7vw, 82px);
}

.page-products .pd-device__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
}

.page-products .pd-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.page-products .pd-filter__btn {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--mist);
  font-size: 13.5px;
  cursor: pointer;
  transition: color var(--dur) ease, background-color var(--dur) ease, border-color var(--dur) ease;
}

.page-products #pd-f-all:checked ~ .pd-filter .pd-filter__btn[for="pd-f-all"],
.page-products #pd-f-android:checked ~ .pd-filter .pd-filter__btn[for="pd-f-android"],
.page-products #pd-f-ios:checked ~ .pd-filter .pd-filter__btn[for="pd-f-ios"],
.page-products #pd-f-tablet:checked ~ .pd-filter .pd-filter__btn[for="pd-f-tablet"] {
  color: var(--ink-900);
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 600;
}

.page-products .pd-matrix {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.page-products .pd-dev {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(16, 42, 67, .45);
  transition: opacity var(--dur) ease, border-color var(--dur) ease;
}

.page-products .pd-dev__ph {
  height: 42px;
  border: 1px dashed rgba(167, 199, 217, .3);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, .14), transparent 62%),
    repeating-linear-gradient(90deg, rgba(167, 199, 217, .13) 0 1px, transparent 1px 12px);
}

.page-products .pd-dev__name {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--cream);
}

.page-products .pd-dev__state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--moss);
}

.page-products .pd-dev__state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moss);
}

.page-products #pd-f-android:checked ~ .pd-matrix .pd-dev:not(.is-android),
.page-products #pd-f-ios:checked ~ .pd-matrix .pd-dev:not(.is-ios),
.page-products #pd-f-tablet:checked ~ .pd-matrix .pd-dev:not(.is-tablet) {
  opacity: .3;
}

.page-products .pd-device__shot {
  aspect-ratio: 5 / 3;
}

.page-products .pd-opt {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.page-products .pd-opt li {
  position: relative;
  padding-left: 16px;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.7;
}

.page-products .pd-opt li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.page-products .pd-opt b {
  display: block;
  color: var(--cream);
  font-weight: 600;
  font-size: 14.5px;
}

/* ---------- 版本 ---------- */
.page-products .pd-log {
  padding-top: clamp(44px, 7vw, 82px);
}

.page-products .pd-log__tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(10, 25, 41, .62);
}

.page-products .pd-log__tab {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mist);
  cursor: pointer;
  transition: color var(--dur) ease, background-color var(--dur) ease;
}

.page-products #pd-ver-52:checked ~ .pd-log__tabs .pd-log__tab[for="pd-ver-52"],
.page-products #pd-ver-51:checked ~ .pd-log__tabs .pd-log__tab[for="pd-ver-51"] {
  background: var(--gold);
  color: var(--ink-900);
  font-weight: 700;
}

.page-products .pd-log__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3.6vw, 38px);
  align-items: start;
}

.page-products .pd-log__panel {
  display: none;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(16, 42, 67, .7), rgba(10, 25, 41, .48));
}

.page-products #pd-ver-52:checked ~ .pd-log__body .pd-log__panel--52,
.page-products #pd-ver-51:checked ~ .pd-log__body .pd-log__panel--51 {
  display: block;
  animation: pd-panel-in var(--dur) ease both;
}

.page-products .pd-log__stage {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--gold);
}

.page-products .pd-log__items {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.page-products .pd-log__items li {
  position: relative;
  padding-left: 16px;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.72;
}

.page-products .pd-log__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-products .pd-log__items b {
  display: block;
  margin-bottom: 3px;
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
}

.page-products .pd-log__shot {
  aspect-ratio: 9 / 5;
}

/* ---------- 帮助 ---------- */
.page-products .pd-support {
  padding-top: clamp(44px, 7vw, 82px);
}

.page-products .pd-support__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}

.page-products .pd-linkcard {
  display: block;
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(16, 42, 67, .78), rgba(10, 25, 41, .46));
  transition: border-color var(--dur) ease, transform var(--dur) ease;
}

.page-products .pd-linkcard__t {
  display: block;
  color: var(--cream);
  font-size: 16px;
  font-weight: 600;
}

.page-products .pd-linkcard__d {
  margin: 8px 0 0;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.72;
}

.page-products .pd-linkcard__go {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

@keyframes pd-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-products .pd-matrix {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (min-width: 960px) {
  .page-products .pd-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: start;
  }

  .page-products .pd-get {
    position: absolute;
    left: clamp(18px, 3vw, 28px);
    bottom: clamp(18px, 3vw, 28px);
    width: min(332px, 64%);
    margin: 0;
  }

  .page-products .pd-switch__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  }

  .page-products .pd-switch__shot {
    position: sticky;
    top: 110px;
  }

  .page-products .pd-features__layout {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  }

  .page-products .pd-feat:nth-child(even) {
    transform: translateX(20px);
  }

  .page-products .pd-device__layout {
    grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  }

  .page-products .pd-log__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
  }
}

@media (min-width: 1180px) {
  .page-products .pd-matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .page-products .pd-feat:nth-child(even) {
    transform: none !important;
  }
}
