.page-products {
  --pd-cut: var(--oy-radius-cut);
  --pd-pad: clamp(20px, 4vw, 34px);
}

.page-products .oy-section {
  padding-block: clamp(32px, 6vw, 72px);
}

/* ---------- 首屏 ---------- */
.page-products .pd-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(24px, 4vw, 48px);
}

.page-products .pd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 78% at 82% 24%, rgba(198, 255, 61, 0.10), transparent 68%),
    linear-gradient(180deg, rgba(15, 74, 58, 0.55), transparent 62%);
  pointer-events: none;
}

.page-products .pd-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--oy-lime), transparent 62%);
  opacity: 0.5;
}

.page-products .pd-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.page-products .pd-hero__copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(30px, 5.4vw, 54px);
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.page-products .pd-hero__copy .oy-lede {
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.9;
  color: var(--oy-ink-2);
}

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

/* ---------- 设备选择图 ---------- */
.page-products .pd-device {
  position: relative;
  aspect-ratio: 16 / 9;
  border: var(--oy-line);
  border-radius: var(--pd-cut);
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--oy-panel), var(--oy-deep));
  box-shadow: inset 0 0 0 1px rgba(198, 255, 61, 0.06);
}

.page-products .pd-device__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
}

.page-products .pd-device__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-products .pd-device__lines path {
  fill: none;
  stroke: var(--oy-lime);
  stroke-width: 1;
  stroke-dasharray: 6 8;
  opacity: 0.6;
  vector-effect: non-scaling-stroke;
}

.page-products .pd-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 13px;
  border: 1px solid var(--oy-grid);
  border-radius: 8px;
  background: var(--oy-base);
  color: var(--oy-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color 0.25s var(--oy-ease), transform 0.25s var(--oy-ease);
}

.page-products .pd-node em {
  font-family: var(--oy-font-mono);
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: var(--oy-ink-2);
}

.page-products .pd-node:hover,
.page-products .pd-node:focus-visible {
  border-color: var(--oy-lime);
  transform: translateY(-2px);
}

.page-products .pd-node--root {
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  border-color: var(--oy-lime);
  background: var(--oy-lime);
  color: var(--oy-deep);
  font-size: 12px;
  font-family: var(--oy-font-mono);
  letter-spacing: 0.02em;
}

.page-products .pd-node--root:hover,
.page-products .pd-node--root:focus-visible {
  transform: translateX(-50%) translateY(-2px);
}

.page-products .pd-node--a {
  left: 4%;
  bottom: 6%;
  width: 28%;
}

.page-products .pd-node--b {
  left: 36%;
  bottom: 6%;
  width: 28%;
}

.page-products .pd-node--c {
  left: 68%;
  bottom: 6%;
  width: 28%;
}

/* ---------- 三端对照表 ---------- */
.page-products .pd-table {
  border: var(--oy-line);
  border-radius: var(--pd-cut);
  overflow: hidden;
  background: var(--oy-base);
}

.page-products .pd-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: var(--oy-line);
}

.page-products .pd-table__row:first-child {
  border-top: 0;
}

.page-products .pd-table__cell {
  padding: 13px 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--oy-ink);
  border-top: 1px dashed var(--oy-grid);
}

.page-products .pd-table__cell:first-child {
  border-top: 0;
  background: var(--oy-panel);
  color: var(--oy-ink-2);
  font-weight: 700;
}

.page-products .pd-table__cell::before {
  content: attr(data-label);
  display: block;
  font-family: var(--oy-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--oy-ink-3);
  margin-bottom: 4px;
}

.page-products .pd-table__row--head {
  display: none;
}

/* ---------- 方案长条卡 ---------- */
.page-products .pd-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: var(--pd-pad);
  border: var(--oy-line);
  border-radius: var(--pd-cut);
  background: linear-gradient(150deg, var(--oy-panel), var(--oy-base) 72%);
}

.page-products .pd-plan__body p {
  margin: 0;
}

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

.page-products .pd-plan__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--oy-ink-2);
}

.page-products .pd-plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 9px;
  height: 1px;
  background: var(--oy-lime);
}

.page-products .pd-plan__list strong {
  color: var(--oy-ink);
  font-weight: 700;
}

.page-products .pd-plan__gauge {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 18px;
  border-top: var(--oy-line);
}

.page-products .pd-gauge {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 110px;
}

.page-products .pd-gauge__num {
  color: var(--oy-lime);
  line-height: 1.1;
}

.page-products .pd-gauge__cap {
  font-size: 13px;
  line-height: 1.5;
  color: var(--oy-ink-2);
}

.page-products .pd-gauge__line {
  display: block;
  height: 1px;
  margin-top: 10px;
  background: repeating-linear-gradient(90deg, var(--oy-grid) 0 6px, transparent 6px 12px);
}

/* ---------- 配图 ---------- */
.page-products .pd-figure {
  margin: 24px 0 0;
  border: var(--oy-line);
  border-radius: var(--pd-cut);
  overflow: hidden;
  background: var(--oy-panel);
}

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

.page-products .pd-figure figcaption {
  padding: 11px 16px;
  border-top: var(--oy-line);
  font-family: var(--oy-font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--oy-ink-2);
}

.page-products .pd-figure--portrait {
  max-width: 460px;
}

/* ---------- 分栏 ---------- */
.page-products .pd-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 40px);
}

.page-products .pd-figure--side {
  margin-top: 0;
  align-self: start;
}

/* ---------- 折叠层级 ---------- */
.page-products .pd-folds {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.page-products .pd-fold {
  border: var(--oy-line);
  border-radius: var(--pd-cut);
  background: var(--oy-panel);
  overflow: hidden;
}

.page-products .pd-fold__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.page-products .pd-fold__btn::-webkit-details-marker {
  display: none;
}

.page-products .pd-fold__btn::marker {
  content: "";
}

.page-products .pd-fold__btn::after {
  content: "+";
  margin-left: 8px;
  font-family: var(--oy-font-mono);
  font-size: 16px;
  color: var(--oy-lime);
}

.page-products .pd-fold[open] .pd-fold__btn::after {
  content: "\2013";
}

.page-products .pd-fold[open] .pd-fold__btn {
  border-bottom: var(--oy-line);
}

.page-products .pd-fold__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--oy-ink);
}

.page-products .pd-fold__count {
  margin-left: auto;
  font-size: 12px;
  color: var(--oy-ink-3);
}

.page-products .pd-fold__body {
  padding: 14px 16px 18px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--oy-ink-2);
}

.page-products .pd-fold__body p {
  margin: 0;
}

/* ---------- 换设备步骤 ---------- */
.page-products .pd-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .pd-step {
  position: relative;
  padding: 0 0 26px 46px;
}

.page-products .pd-step::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 34px;
  bottom: 0;
  width: 1px;
  background: var(--oy-grid);
}

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

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

.page-products .pd-step__dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid var(--oy-lime);
  border-radius: 50%;
  font-family: var(--oy-font-mono);
  font-size: 12px;
  color: var(--oy-lime);
}

.page-products .pd-step h3 {
  margin: 2px 0 6px;
  font-size: 18px;
  line-height: 1.5;
}

.page-products .pd-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--oy-ink-2);
}

.page-products .pd-step a {
  color: var(--oy-lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 权限清单 ---------- */
.page-products .pd-perms {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.page-products .pd-perm {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border: var(--oy-line);
  border-radius: 10px;
  background: var(--oy-panel);
  font-size: 15px;
  line-height: 1.6;
  color: var(--oy-ink);
}

.page-products .pd-perm__box {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1px solid var(--oy-grid);
  border-radius: 4px;
}

.page-products .pd-perm--on .pd-perm__box {
  border-color: var(--oy-lime);
  background: var(--oy-lime);
}

.page-products .pd-perm--on .pd-perm__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--oy-deep);
  border-bottom: 2px solid var(--oy-deep);
  transform: rotate(42deg);
}

.page-products .pd-perm__text em {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-style: normal;
  color: var(--oy-ink-3);
}

/* ---------- 组合建议 ---------- */
.page-products .pd-combos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.page-products .pd-combo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: var(--oy-line);
  border-radius: var(--pd-cut);
  background: var(--oy-panel);
}

.page-products .pd-combo__tag {
  font-family: var(--oy-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--oy-lime);
}

.page-products .pd-combo h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
}

.page-products .pd-combo p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--oy-ink-2);
}

.page-products .pd-combo__hint {
  padding-top: 10px;
  border-top: 1px dashed var(--oy-grid);
  font-size: 13.5px !important;
  color: var(--oy-ink-3) !important;
}

.page-products .pd-combo__hint a {
  color: var(--oy-lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 收尾 ---------- */
.page-products .pd-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: var(--pd-pad);
  border: var(--oy-line);
  border-radius: var(--pd-cut);
  background: linear-gradient(135deg, var(--oy-panel), var(--oy-deep));
}

.page-products .pd-cta h2 {
  margin: 10px 0 12px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
}

.page-products .pd-cta p {
  margin: 0;
}

.page-products .pd-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 平板以上 ---------- */
@media (min-width: 768px) {
  .page-products .pd-table__row {
    grid-template-columns: minmax(140px, 1.1fr) repeat(3, minmax(0, 1fr));
    border-top: var(--oy-line);
  }

  .page-products .pd-table__row--head {
    display: grid;
  }

  .page-products .pd-table__cell {
    border-top: 0;
    border-left: var(--oy-line);
    padding: 15px 18px;
  }

  .page-products .pd-table__cell:first-child {
    border-left: 0;
  }

  .page-products .pd-table__cell::before {
    display: none;
  }

  .page-products .pd-table__row--head .pd-table__cell {
    background: var(--oy-panel);
    font-family: var(--oy-font-mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--oy-lime);
  }

  .page-products .pd-table__row--head .pd-table__cell--label {
    color: var(--oy-ink-3);
    font-weight: 500;
  }

  .page-products .pd-table__row:not(.pd-table__row--head) .pd-table__cell--label {
    font-weight: 700;
  }

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

/* ---------- 桌面端 ---------- */
@media (min-width: 960px) {
  .page-products .pd-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  }

  .page-products .pd-plan {
    grid-template-columns: minmax(0, 1fr) 218px;
    align-items: start;
    gap: 28px;
  }

  .page-products .pd-plan__gauge {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 20px;
    padding-top: 0;
    padding-left: 24px;
    border-top: 0;
    border-left: var(--oy-line);
    min-height: 100%;
  }

  .page-products .pd-plan--flip {
    grid-template-columns: 218px minmax(0, 1fr);
  }

  .page-products .pd-plan--flip .pd-plan__gauge {
    order: -1;
    padding-left: 0;
    padding-right: 24px;
    border-left: 0;
    border-right: var(--oy-line);
  }

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

  .page-products .pd-split--wide {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }

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

  .page-products .pd-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
  }

  .page-products .pd-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 767px) {
  .page-products .pd-device {
    aspect-ratio: auto;
    display: grid;
    gap: 10px;
    padding: 16px;
  }

  .page-products .pd-device__lines {
    display: none;
  }

  .page-products .pd-device__bg {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .page-products .pd-node {
    position: static;
    width: auto;
    transform: none;
  }

  .page-products .pd-node--root {
    order: -1;
    text-align: center;
  }

  .page-products .pd-node--root:hover,
  .page-products .pd-node--root:focus-visible {
    transform: none;
  }

  .page-products .pd-node:hover,
  .page-products .pd-node:focus-visible {
    transform: none;
  }

  .page-products .pd-gauge {
    flex: 1 1 40%;
  }
}

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