.page-products {
  --pd-cut: 26px;
  --pd-cut-sm: 16px;
  display: block;
  overflow-x: clip;
  background: var(--bg);
  color: var(--white);
}

/* ---------- 首屏 ---------- */
.page-products .pd-hero {
  position: relative;
  padding: 96px 0 clamp(48px, 7vw, 88px);
  overflow: hidden;
}

.page-products .pd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  opacity: .55;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 78% at 72% 0%, #000 0%, transparent 74%);
  mask-image: radial-gradient(120% 78% at 72% 0%, #000 0%, transparent 74%);
}

.page-products .pd-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: 26%;
  width: 62%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-line), transparent);
  transform: rotate(-8deg);
  pointer-events: none;
}

.page-products .pd-hero .breadcrumb {
  position: relative;
  z-index: 1;
  padding-bottom: 28px;
  font-size: 13px;
  color: var(--gray);
}

.page-products .pd-hero .breadcrumb a {
  color: var(--gray);
  text-decoration: none;
}

.page-products .pd-hero .breadcrumb a:hover,
.page-products .pd-hero .breadcrumb a:focus-visible {
  color: var(--cyan);
}

.page-products .pd-hero .breadcrumb span[aria-hidden] {
  margin: 0 8px;
  color: var(--divider);
}

.page-products .pd-hero .breadcrumb span[aria-current] {
  color: var(--white);
}

.page-products .pd-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: start;
}

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

.page-products .pd-hero__title {
  margin: 18px 0 0;
  font-size: clamp(34px, 7.6vw, 78px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.02em;
}

.page-products .pd-hero__desc {
  margin: 24px 0 0;
  max-width: 60ch;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--gray);
}

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

.page-products .pd-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.page-products .pd-specs li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: var(--panel);
}

.page-products .pd-spec__k {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--gray);
}

.page-products .pd-spec__v {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.page-products .pd-spec__v--orange {
  color: var(--orange);
}

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

.page-products .pd-hero__note {
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--gray);
}

/* ---------- 章节骨架 ---------- */
.page-products .pd-sec {
  position: relative;
  padding: clamp(56px, 8vw, 112px) 0;
}

.page-products .pd-sec--band {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-products .pd-sec__head {
  max-width: 72ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.page-products .pd-index {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--cyan);
}

.page-products .pd-sec h2 {
  margin: 0 0 16px;
  font-size: clamp(25px, 3.8vw, 40px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--white);
}

.page-products .pd-sec__head p,
.page-products .pd-row__text p {
  margin: 0 0 14px;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--gray);
}

.page-products .pd-sec__head a,
.page-products .pd-outro__text a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.page-products .pd-sec__head a:hover,
.page-products .pd-outro__text a:hover,
.page-products .pd-sec__head a:focus-visible,
.page-products .pd-outro__text a:focus-visible {
  color: var(--green);
}

.page-products .pd-sec__note {
  margin: 28px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--green-line);
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--gray);
}

/* ---------- 非对称双栏 ---------- */
.page-products .pd-row {
  display: grid;
  gap: 32px;
  align-items: start;
}

.page-products .pd-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 62ch;
}

.page-products .pd-points li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--white);
  opacity: .88;
}

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

/* ---------- 图片容器 ---------- */
.page-products .pd-frame {
  margin: 0;
  background: linear-gradient(150deg, var(--panel) 0%, var(--bg) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.page-products .pd-frame--wide img {
  aspect-ratio: 3 / 2;
}

.page-products .pd-frame--tall img {
  aspect-ratio: 5 / 4;
}

.page-products .pd-frame--flow img {
  aspect-ratio: 5 / 3;
}

.page-products .pd-frame--timeline img {
  aspect-ratio: 2 / 1;
}

.page-products .pd-frame .media-frame__caption {
  padding: 12px 18px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray);
  border-top: 1px solid var(--divider);
}

/* ---------- 筛选演示 ---------- */
.page-products .pd-demo {
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.page-products .pd-demo__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--divider);
}

.page-products .pd-demo__label {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.page-products .pd-demo__count {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--orange);
}

.page-products .pd-filter-group {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.page-products .pd-filter-group__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--gray);
}

.page-products .pd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-products .pd-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(27, 38, 55, .55);
  color: var(--gray);
  font-size: 14px;
  white-space: nowrap;
}

.page-products .pd-chip.is-on {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
}

.page-products .pd-demo__note {
  margin: 22px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--gray);
}

/* ---------- 下载三步 ---------- */
.page-products .pd-steps {
  list-style: none;
  margin: 0 0 clamp(32px, 4vw, 48px);
  padding: 0;
  display: grid;
}

.page-products .pd-step {
  position: relative;
  padding: 0 0 28px 58px;
}

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

.page-products .pd-step::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: var(--divider);
}

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

.page-products .pd-step__no {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--orange-line);
  background: var(--orange-soft);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.page-products .pd-step.is-current .pd-step__no {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--bg);
}

.page-products .pd-step__title {
  margin: 6px 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}

.page-products .pd-step__desc {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.72;
  color: var(--gray);
}

/* ---------- 数据对照 ---------- */
.page-products .pd-compare {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.page-products .pd-compare__col {
  padding: 26px 22px;
  background: var(--panel);
}

.page-products .pd-compare__col h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--gray);
}

.page-products .pd-compare__metric {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.page-products .pd-compare__col p:last-child {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--gray);
}

.page-products .pd-compare__col--live .pd-compare__metric {
  color: var(--green);
}

.page-products .pd-compare__col--h2h .pd-compare__metric {
  color: var(--orange);
}

.page-products .pd-compare__col--stat .pd-compare__metric {
  color: var(--cyan);
}

.page-products .pd-compare-notes {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.page-products .pd-compare-notes p {
  margin: 0;
  max-width: 74ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray);
}

.page-products .pd-compare-notes strong {
  color: var(--white);
  font-weight: 700;
}

/* ---------- 版本记录 ---------- */
.page-products .pd-versions {
  display: grid;
  gap: 12px;
}

.page-products .pd-version {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 180ms var(--ease);
}

.page-products .pd-version[open] {
  border-color: var(--green-line);
}

.page-products .pd-version__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--white);
}

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

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

.page-products .pd-version__no {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}

.page-products .pd-version[open] .pd-version__no {
  color: var(--green);
}

.page-products .pd-version__tag {
  padding: 3px 10px;
  border-radius: var(--pill);
  background: var(--green);
  color: var(--bg);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
}

.page-products .pd-version__body {
  margin: 0;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--divider);
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--gray);
}

/* ---------- 场景建议 ---------- */
.page-products .pd-cases {
  display: grid;
  gap: 16px;
}

.page-products .pd-case {
  position: relative;
  padding: 30px 22px 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.page-products .pd-case::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 3px;
}

.page-products .pd-case--living::before {
  background: var(--green);
}

.page-products .pd-case--commute::before {
  background: var(--orange);
}

.page-products .pd-case--desk::before {
  background: var(--cyan);
}

.page-products .pd-case h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}

.page-products .pd-case__lead {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--gray);
}

.page-products .pd-case p:last-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.74;
  color: var(--gray);
}

/* ---------- 底部行动 ---------- */
.page-products .pd-outro {
  padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 8vw, 112px);
}

.page-products .pd-outro__box {
  display: grid;
  gap: 28px;
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg) 100%);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.page-products .pd-outro__text h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--white);
}

.page-products .pd-outro__text p {
  margin: 0 0 12px;
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.76;
  color: var(--gray);
}

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

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

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

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

  .page-products .pd-compare-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 900px) {
  .page-products .pd-hero {
    padding-top: 104px;
  }

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

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

  .page-products .pd-hero__side {
    grid-column: 9 / span 4;
    padding-top: 34px;
  }

  .page-products .pd-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
  }

  .page-products .pd-row__text {
    grid-column: 1 / span 5;
  }

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

  .page-products .pd-row--flip .pd-row__text {
    grid-column: 8 / span 5;
  }

  .page-products .pd-row--flip .pd-row__stage {
    grid-column: 1 / span 6;
  }

  .page-products .pd-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: clamp(40px, 5vw, 64px);
  }

  .page-products .pd-step {
    padding: 64px 0 0;
  }

  .page-products .pd-step::before {
    left: 0;
    right: -24px;
    top: 20px;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .page-products .pd-step__no {
    left: 0;
    top: 0;
  }

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

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

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

@media (min-width: 1200px) {
  .page-products .pd-hero__lead {
    grid-column: 1 / span 7;
  }

  .page-products .pd-hero__side {
    grid-column: 9 / span 4;
  }
}

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