.page-products {
  --pd-hair: rgba(138, 148, 166, .22);
  --pd-hair-cyan: rgba(34, 224, 214, .38);
  --pd-hair-violet: rgba(162, 56, 255, .42);
  --pd-card: #0E1526;
  --pd-card-2: #141E36;
}

/* ---------- 面包屑 ---------- */
.page-products .bb-breadcrumb {
  padding-top: 14px;
  padding-bottom: 6px;
}

/* ---------- 首屏 ---------- */
.page-products .pd-hero {
  padding-top: 10px;
}

.page-products .pd-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.page-products .pd-hero__copy {
  position: relative;
  padding-left: 16px;
  min-width: 0;
}

.page-products .pd-hero__copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--bb-cyan), rgba(34, 224, 214, 0) 88%);
}

.page-products .pd-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

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

.page-products .pd-hero__art {
  position: relative;
  min-width: 0;
}

.page-products .pd-hero__art::after {
  content: "v3.8";
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-family: var(--bb-font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--bb-ink);
  background: var(--bb-cyan);
  font-weight: 700;
}

.page-products .pd-media-43 {
  aspect-ratio: 4 / 3;
}

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

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

.page-products .pd-caption {
  margin: 10px 2px 0;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--bb-steel);
  text-transform: uppercase;
}

/* ---------- 章节标题组 ---------- */
.page-products .pd-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.page-products .pd-head .bb-title {
  margin: 10px 0 14px;
}

/* ---------- 设备网格 ---------- */
.page-products .pd-device-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-products .pd-device {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px 22px;
  border-top: 2px solid var(--pd-hair);
  overflow: hidden;
}

.page-products .pd-device::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 90px;
  pointer-events: none;
  background: radial-gradient(120% 100% at 100% 0%, rgba(34, 224, 214, .10), transparent 70%);
}

.page-products .pd-device--ios { border-top-color: var(--bb-cyan); }
.page-products .pd-device--android { border-top-color: var(--bb-orange); }
.page-products .pd-device--android::after {
  background: radial-gradient(120% 100% at 100% 0%, rgba(255, 122, 26, .12), transparent 70%);
}
.page-products .pd-device--web { border-top-color: var(--bb-violet); }
.page-products .pd-device--web::after {
  background: radial-gradient(120% 100% at 100% 0%, rgba(162, 56, 255, .16), transparent 70%);
}

.page-products .pd-device__index {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--bb-steel);
}

.page-products .pd-device__name {
  margin: 2px 0 0;
  font-family: var(--bb-font-head);
  font-size: 22px;
  line-height: 1.25;
  color: var(--bb-text);
  letter-spacing: -.01em;
}

.page-products .pd-device__req {
  margin: 0;
  font-size: 13px;
  color: var(--bb-cyan);
  letter-spacing: .02em;
}

.page-products .pd-device--android .pd-device__req { color: var(--bb-orange); }
.page-products .pd-device--web .pd-device__req { color: #C79BFF; }

.page-products .pd-device__desc {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--bb-text-2);
}

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

.page-products .pd-device__points li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bb-text-2);
}

.page-products .pd-device__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .66em;
  width: 8px;
  height: 2px;
  background: var(--bb-steel);
}

.page-products .pd-device--ios .pd-device__points li::before { background: var(--bb-cyan); }
.page-products .pd-device--android .pd-device__points li::before { background: var(--bb-orange); }
.page-products .pd-device--web .pd-device__points li::before { background: var(--bb-violet); }

.page-products .pd-device .bb-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- 非对称分栏 ---------- */
.page-products .pd-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.page-products .pd-split__main,
.page-products .pd-split__side {
  min-width: 0;
}

.page-products .pd-split__main .bb-title {
  margin: 10px 0 16px;
}

.page-products .pd-split__main > p {
  color: var(--bb-text-2);
  line-height: 1.7;
  max-width: 64ch;
}

/* ---------- 指标 ---------- */
.page-products .pd-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 6px;
}

.page-products .bb-stat {
  padding: 14px 16px;
  border-left: 2px solid var(--pd-hair-violet);
  border-radius: 0 12px 12px 0;
  background: var(--pd-card);
}

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

.page-products .pd-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--bb-text-2);
}

.page-products .pd-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 8px;
  height: 2px;
  background: var(--bb-orange);
}

.page-products .pd-list--violet li::before { background: var(--bb-violet); }

/* ---------- 旧版权益 ---------- */
.page-products .pd-legacy {
  display: grid;
  gap: 14px;
  padding: 26px 22px;
  border-radius: var(--bb-radius-lg);
  border: 1px solid var(--pd-hair-violet);
  background:
    linear-gradient(155deg, rgba(162, 56, 255, .16), rgba(7, 11, 20, .94) 58%),
    var(--pd-card);
  box-shadow: 0 18px 40px -28px rgba(162, 56, 255, .55);
}

.page-products .pd-legacy .bb-title {
  margin: 4px 0 6px;
  font-size: clamp(28px, 6vw, 38px);
}

.page-products .pd-legacy > p {
  margin: 0;
  color: var(--bb-text-2);
  line-height: 1.7;
}

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

/* ---------- 更新日志 ---------- */
.page-products .pd-log-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.page-products .pd-log-media {
  min-width: 0;
}

.page-products .pd-log-groups {
  min-width: 0;
}

.page-products .pd-log {
  border: 1px solid var(--pd-hair);
  border-radius: var(--bb-radius);
  background: var(--pd-card);
  overflow: hidden;
}

.page-products .pd-log + .pd-log {
  margin-top: 12px;
}

.page-products .pd-log > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 46px 16px 18px;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-family: var(--bb-font-head);
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--bb-text);
}

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

.page-products .pd-log > summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--bb-font-mono);
  font-size: 18px;
  color: var(--bb-cyan);
  transition: transform .22s var(--bb-ease);
}

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

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

.page-products .pd-log__items li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--bb-text-2);
}

.page-products .pd-log__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--bb-cyan);
}

.page-products .pd-log:nth-of-type(2) .pd-log__items li::before { background: var(--bb-orange); }
.page-products .pd-log:nth-of-type(3) .pd-log__items li::before { background: var(--bb-violet); }

/* ---------- 检查清单 ---------- */
.page-products .pd-checklist {
  list-style: none;
  counter-reset: pd-check;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .pd-checklist li {
  counter-increment: pd-check;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--pd-hair);
  border-radius: 12px;
  background: var(--pd-card);
}

.page-products .pd-checklist li::before {
  content: counter(pd-check, decimal-leading-zero);
  font-family: var(--bb-font-mono);
  font-size: 15px;
  line-height: 1.6;
  color: var(--bb-cyan);
}

.page-products .pd-checklist strong {
  display: block;
  font-size: 15px;
  color: var(--bb-text);
  margin-bottom: 4px;
}

.page-products .pd-checklist span {
  display: block;
  font-size: 14px;
  line-height: 1.68;
  color: var(--bb-text-2);
}

/* ---------- 问答 ---------- */
.page-products .pd-faq-list {
  border-top: 1px solid var(--pd-hair);
}

.page-products .pd-faq {
  border-bottom: 1px solid var(--pd-hair);
}

.page-products .pd-faq > summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--bb-text);
}

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

.page-products .pd-faq > summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--bb-cyan);
  border-bottom: 2px solid var(--bb-cyan);
  transform: translateY(-72%) rotate(45deg);
  transition: transform .25s var(--bb-ease);
}

.page-products .pd-faq[open] > summary::after {
  transform: translateY(-28%) rotate(-135deg);
}

.page-products .pd-faq__body {
  padding: 0 0 20px;
  max-width: 70ch;
  color: var(--bb-text-2);
  line-height: 1.72;
}

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

.page-products .pd-faq-more {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- 断点 ---------- */
@media (min-width: 640px) {
  .page-products .pd-device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 860px) {
  .page-products .pd-hero__grid {
    grid-template-columns: 62fr 38fr;
    gap: 40px;
  }

  .page-products .pd-hero__copy {
    padding-left: 20px;
  }

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

  .page-products .pd-split {
    grid-template-columns: 62fr 38fr;
    gap: 34px;
  }

  .page-products .pd-split--flip {
    grid-template-columns: 38fr 62fr;
  }

  .page-products .pd-log-layout {
    grid-template-columns: 38fr 62fr;
    gap: 30px;
  }

  .page-products .pd-log-media {
    position: sticky;
    top: 96px;
  }

  .page-products .bb-section {
    scroll-margin-top: 96px;
  }

  .page-products .pd-head {
    margin-bottom: 36px;
  }
}

@media (min-width: 1080px) {
  .page-products .pd-hero__grid {
    gap: 54px;
  }

  .page-products .pd-legacy {
    padding: 34px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pd-log > summary::after,
  .page-products .pd-faq > summary::after {
    transition: none;
  }
}
