.page-products {
  --pd-gap: 22px;
  --pd-radius: 20px;
  color: var(--text);
}

.page-products .pd-section {
  padding-top: 44px;
  padding-bottom: 44px;
}

/* ---------- 首屏 ---------- */
.page-products .pd-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 30px;
  padding-top: 26px;
  padding-bottom: 46px;
}

.page-products .pd-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20px;
  right: 0;
  width: min(520px, 72%);
  height: 250px;
  background: linear-gradient(135deg, rgba(47, 224, 232, 0.20) 0%, rgba(18, 60, 99, 0.55) 52%, rgba(5, 15, 27, 0) 100%);
  clip-path: polygon(24% 0, 100% 0, 100% 70%, 0 100%);
  pointer-events: none;
}

.page-products h1 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 6.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.page-products .pd-hero__lead {
  margin: 16px 0 0;
  max-width: 54ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.page-products .pd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.page-products .pd-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
}

.page-products .pd-hero__stats .data-card {
  border-radius: var(--r-md);
}

.page-products .pd-unit {
  margin-left: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- 模块区 ---------- */
.page-products .pd-mods {
  display: grid;
  gap: var(--pd-gap);
  margin-top: 28px;
}

.page-products .pd-mod {
  position: relative;
  padding: 24px 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--pd-radius);
  box-shadow: var(--shadow);
  transition: transform 140ms var(--ease), border-color 140ms var(--ease);
}

.page-products .pd-mod::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  width: 46px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}

.page-products .pd-mod:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 224, 232, 0.55);
}

.page-products .pd-mod__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.page-products .pd-mod__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.page-products .pd-mod__title {
  flex: 1 1 auto;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: -0.01em;
}

.page-products .pd-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.page-products .pd-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pd-breathe 2.4s var(--ease) infinite;
}

@keyframes pd-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.55); }
  55% { box-shadow: 0 0 0 6px rgba(255, 77, 94, 0); }
}

.page-products .pd-mod__body {
  display: grid;
  gap: 20px;
  align-items: start;
}

.page-products .pd-mod__lede {
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--cyan);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
}

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

.page-products .pd-points li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.75;
}

.page-products .pd-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
}

.page-products .pd-mod__note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-products .pd-mod__note a,
.page-products .pd-tail a,
.page-products .pd-steps a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 224, 232, 0.4);
}

.page-products .pd-mod__note a:hover,
.page-products .pd-tail a:hover,
.page-products .pd-steps a:hover {
  border-bottom-color: var(--cyan);
}

.page-products .pd-more {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.page-products .pd-more > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

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

.page-products .pd-more > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 15px;
  line-height: 1;
}

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

.page-products .pd-more p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

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

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

.page-products .pd-mod__figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.page-products .pd-spark {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 20px;
}

/* ---------- 苹果端模块 ---------- */
.page-products .pd-app__grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.page-products .pd-app__steps {
  list-style: none;
  counter-reset: pdapp;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .pd-app__steps > li {
  counter-increment: pdapp;
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  line-height: 1.75;
}

.page-products .pd-app__steps > li::before {
  content: counter(pdapp);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  background: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
}

.page-products .pd-tip {
  position: relative;
  margin: 22px 0 0;
}

.page-products .pd-tip__pop {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  padding: 8px 12px;
  white-space: nowrap;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms var(--ease), visibility 140ms var(--ease);
}

.page-products .pd-tip:hover .pd-tip__pop,
.page-products .pd-tip:focus-within .pd-tip__pop {
  opacity: 1;
  visibility: visible;
}

.page-products .pd-app__figure {
  margin: 0;
  display: flex;
  justify-content: center;
}

.page-products .pd-app__figure img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.page-products .pd-app__figure figcaption {
  display: none;
}

/* ---------- 会员矩阵 ---------- */
.page-products .pd-benefits__figure {
  margin: 26px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-2);
}

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

.page-products .pd-matrix {
  position: relative;
  margin-top: 26px;
}

.page-products .pd-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-products .pd-switch__label {
  display: inline-block;
  margin: 0 8px 0 0;
  cursor: pointer;
  user-select: none;
}

.page-products #pd-view-tier:checked + .pd-switch__label,
.page-products #pd-view-feature:checked + .pd-switch__label {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

.page-products .pd-switch__input:focus-visible + .pd-switch__label {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-products .pd-matrix__panel {
  display: none;
  margin-top: 16px;
  overflow-x: auto;
}

.page-products #pd-view-tier:checked ~ .pd-matrix__panel--tier,
.page-products #pd-view-feature:checked ~ .pd-matrix__panel--feature {
  display: block;
}

.page-products .pd-matrix__panel .table {
  min-width: 560px;
}

.page-products .pd-matrix .pd-row--focus th,
.page-products .pd-matrix .pd-row--focus td {
  background: var(--lime-soft);
}

.page-products .pd-yes {
  color: var(--lime);
  font-weight: 600;
}

.page-products .pd-no {
  color: var(--muted);
  opacity: 0.5;
}

.page-products .pd-matrix__note {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--r-md);
  background: var(--orange-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- 三端对照与步骤 ---------- */
.page-products .pd-compare__wrap {
  margin-top: 26px;
  overflow-x: auto;
}

.page-products .pd-compare {
  min-width: 620px;
}

.page-products .pd-compare tbody tr:hover th,
.page-products .pd-compare tbody tr:hover td {
  background: var(--cyan-soft);
}

.page-products .pd-steps {
  list-style: none;
  counter-reset: pdstep;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .pd-steps > li {
  counter-increment: pdstep;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  font-size: 14px;
  line-height: 1.75;
}

.page-products .pd-steps > li::before {
  content: "0" counter(pdstep);
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.page-products .pd-tail {
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-products .pd-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .page-products .pd-mod {
    padding: 28px 26px 26px;
  }

  .page-products .pd-mod__body,
  .page-products .pd-app__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .page-products .pd-mod__body--flip .pd-mod__figure {
    order: -1;
  }

  .page-products .pd-app__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  }

  .page-products .pd-benefits__figure {
    margin-top: 32px;
  }
}

@media (min-width: 1000px) {
  .page-products .pd-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: end;
    gap: 40px;
    padding-top: 44px;
    padding-bottom: 72px;
  }

  .page-products .pd-hero::before {
    height: 320px;
    top: -30px;
  }

  .page-products .pd-mods {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .page-products .pd-mod--full {
    grid-column: 1 / -1;
  }

  .page-products .pd-mod--left {
    grid-column: 1 / span 7;
  }

  .page-products .pd-mod--right {
    grid-column: 6 / span 7;
  }

  .page-products .pd-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pd-pulse {
    animation: none;
  }

  .page-products .pd-mod {
    transition: none;
  }

  .page-products .pd-mod:hover {
    transform: none;
  }
}
