.page-products {
  --pdl-line: var(--hairline);
  --pdl-radius: 2px;
  --pdl-gap: 24px;
  --pdl-space: 64px;
  background: var(--ink-night);
  color: var(--cream);
  padding-bottom: 80px;
  overflow-x: hidden;
}

.page-products .pdl-crumbs {
  padding-top: 26px;
  padding-bottom: 4px;
}

.page-products .pdl-hero {
  padding: 20px 0 var(--pdl-space);
  border-bottom: var(--edge) solid var(--pdl-line);
}

.page-products .pdl-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.page-products .pdl-hero__card {
  position: relative;
  background: var(--cream);
  color: var(--dark-brown);
  border: var(--edge) solid var(--dark-brown);
  box-shadow: var(--shadow-hard);
  padding: 26px 22px 28px;
}

.page-products .pdl-hero__card .eyebrow {
  color: var(--neon-purple);
}

.page-products .pdl-hero__card h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 6.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
  color: var(--dark-brown);
}

.page-products .pdl-hero__lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark-brown);
  margin: 0 0 4px;
}

.page-products .pdl-version {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 22px 0 24px;
  border-top: 1px solid var(--cream-grey);
  border-bottom: 1px solid var(--cream-grey);
}

.page-products .pdl-version__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--cream-grey);
}

.page-products .pdl-version__item:last-child {
  border-bottom: 0;
}

.page-products .pdl-version__key {
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #6c5f83;
  margin: 0;
}

.page-products .pdl-version__val {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--dark-brown);
}

.page-products .pdl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-products .pdl-hero__actions .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-products .pdl-hero__fixnote {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: #4a3f63;
}

.page-products .pdl-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  background: var(--warm-orange);
  color: var(--dark-brown);
  border: 2px solid var(--dark-brown);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  vertical-align: 1px;
}

.page-products .pdl-hero__visual {
  margin: 0;
  border: var(--edge) solid var(--dark-brown);
  box-shadow: var(--shadow-soft);
  background: var(--panel-deep);
}

.page-products .pdl-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.page-products .pdl-section {
  padding: var(--pdl-space) 0;
  border-bottom: 1px solid var(--pdl-line);
}

.page-products .pdl-section--tinted {
  background: var(--panel-deep);
}

.page-products .pdl-head {
  max-width: 68ch;
  margin-bottom: 32px;
}

.page-products .pdl-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 4.2vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 10px 0 14px;
  color: var(--cream);
}

.page-products .pdl-head__lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--mist);
  margin: 0;
}

.page-products .pdl-section h2 {
  font-family: var(--font-display);
  font-weight: 900;
}

/* 用法对照 */
.page-products .pdl-compare-scroll {
  overflow-x: auto;
  border: var(--edge) solid var(--pdl-line);
  background: var(--panel-deep);
}

.page-products .pdl-compare {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}

.page-products .pdl-compare th,
.page-products .pdl-compare td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pdl-line);
  vertical-align: top;
}

.page-products .pdl-compare thead th {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mist);
  background: rgba(180, 76, 255, 0.1);
  text-transform: uppercase;
}

.page-products .pdl-compare tbody th {
  font-weight: 600;
  color: var(--mist);
  white-space: nowrap;
}

.page-products .pdl-compare tbody td {
  color: var(--cream);
  line-height: 1.6;
}

.page-products .pdl-compare tbody tr:nth-child(even) {
  background: rgba(180, 76, 255, 0.05);
}

.page-products .pdl-compare__col--app {
  color: var(--neon-cyan) !important;
}

.page-products .pdl-scenes {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pdl-gap);
  margin-top: 32px;
}

.page-products .pdl-scene {
  position: relative;
  padding: 22px 20px 20px;
}

.page-products .pdl-scene h3 {
  margin: 0 0 10px;
  font-size: 19px;
  color: var(--dark-brown);
}

.page-products .pdl-scene p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.68;
  color: #4a3f63;
}

.page-products .pdl-scene__pick {
  margin: 0 !important;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--neon-purple) !important;
  font-weight: 700;
}

.page-products .pdl-choose__fig {
  margin: 40px 0 0;
  border: var(--edge) solid var(--dark-brown);
  box-shadow: var(--shadow-soft);
}

.page-products .pdl-choose__fig img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-products .frame-media__caption {
  color: var(--mist);
}

/* 版本修复 */
.page-products .pdl-fixes__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.page-products .pdl-fixes__copy h2 {
  font-size: clamp(24px, 4.2vw, 36px);
  line-height: 1.2;
  margin: 10px 0 16px;
  color: var(--cream);
}

.page-products .pdl-fixes__copy > p {
  color: var(--mist);
  line-height: 1.75;
  margin: 0 0 12px;
}

.page-products .pdl-fixlist {
  list-style: none;
  margin: 26px 0 20px;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-products .pdl-fixlist__item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 18px 18px 18px 0;
  border-top: 1px solid var(--pdl-line);
}

.page-products .pdl-fixlist__mark {
  font-size: 22px;
  font-weight: 700;
  color: var(--neon-cyan);
  line-height: 1.2;
}

.page-products .pdl-fixlist__body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--cream);
}

.page-products .pdl-fixlist__body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--mist);
}

.page-products .pdl-fixes__note {
  margin: 0;
  padding: 16px 18px;
  border-left: 6px solid var(--warm-orange);
  background: rgba(255, 138, 61, 0.1);
  color: var(--cream);
  font-size: 14.5px;
  line-height: 1.72;
}

.page-products .pdl-fixes__fig {
  margin: 0;
  border: var(--edge) solid var(--dark-brown);
  box-shadow: var(--shadow-soft);
}

.page-products .pdl-fixes__fig img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.page-products .pdl-beforeafter {
  margin: 40px 0 0;
  border: var(--edge) solid var(--dark-brown);
  background: var(--ink-night);
  position: relative;
}

.page-products .pdl-beforeafter img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: cover;
}

.page-products .pdl-beforeafter__bar {
  display: flex;
  gap: 10px;
  padding: 14px 16px 0;
}

.page-products .pdl-beforeafter__tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  border: 2px solid currentColor;
}

.page-products .pdl-beforeafter__tag--before {
  color: var(--alert-magenta);
  background: rgba(255, 61, 110, 0.12);
}

.page-products .pdl-beforeafter__tag--after {
  color: var(--neon-cyan);
  background: rgba(53, 230, 224, 0.12);
}

/* 安装步骤 */
.page-products .pdl-steps-fig {
  margin: 0 0 36px;
  border: var(--edge) solid var(--dark-brown);
  background: var(--panel-deep);
}

.page-products .pdl-steps-fig img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.page-products .pdl-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .pdl-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding-bottom: 34px;
}

.page-products .pdl-step::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 46px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, var(--neon-purple), var(--neon-cyan));
}

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

.page-products .pdl-step__node {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-deep);
  border: var(--edge) solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-size: 17px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.page-products .pdl-step__body h3 {
  margin: 10px 0 10px;
  font-size: 20px;
  color: var(--cream);
}

.page-products .pdl-step__body > p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
  max-width: 62ch;
}

.page-products .pdl-branch {
  border: 1px solid var(--pdl-line);
  background: rgba(255, 61, 110, 0.07);
  max-width: 62ch;
}

.page-products .pdl-branch summary {
  cursor: pointer;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--alert-magenta);
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;
}

.page-products .pdl-branch summary::-webkit-details-marker {
  display: none;
}

.page-products .pdl-branch summary::before {
  content: "+";
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1;
}

.page-products .pdl-branch[open] summary::before {
  content: "−";
}

.page-products .pdl-branch p {
  margin: 0;
  padding: 0 16px 16px 42px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--mist);
}

.page-products .pdl-branch summary:focus-visible {
  outline: 2px solid var(--neon-purple);
  outline-offset: 2px;
}

/* 兼容清单 */
.page-products .pdl-compat__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.page-products .pdl-chip {
  display: inline-block;
  padding: 5px 12px;
  border: 2px solid currentColor;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.page-products .pdl-chip--tested {
  color: var(--neon-cyan);
  background: rgba(53, 230, 224, 0.1);
}

.page-products .pdl-chip--cover {
  color: var(--neon-purple);
  background: rgba(180, 76, 255, 0.12);
}

.page-products .pdl-chip--fallback {
  color: var(--warm-orange);
  background: rgba(255, 138, 61, 0.12);
}

.page-products .pdl-compat {
  overflow-x: auto;
  border: var(--edge) solid var(--dark-brown);
  background: var(--panel-deep);
}

.page-products .pdl-compat__table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.page-products .pdl-compat__table th,
.page-products .pdl-compat__table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pdl-line);
  white-space: nowrap;
}

.page-products .pdl-compat__table thead th {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.07em;
  color: var(--mist);
  background: rgba(180, 76, 255, 0.14);
}

.page-products .pdl-compat__table tbody th {
  color: var(--cream);
  letter-spacing: 0.04em;
}

.page-products .pdl-compat__table tbody td {
  color: var(--mist);
}

.page-products .pdl-compat__row--tested {
  background: rgba(53, 230, 224, 0.06);
}

.page-products .pdl-compat__row--fallback {
  background: rgba(255, 138, 61, 0.08);
}

.page-products .pdl-status {
  display: inline-block;
  font-size: 13px;
  padding: 3px 9px;
  border: 1px solid currentColor;
}

.page-products .pdl-status--ok {
  color: var(--neon-cyan);
}

.page-products .pdl-status--cover {
  color: var(--neon-purple);
}

.page-products .pdl-status--warn {
  color: var(--warm-orange);
}

.page-products .pdl-compat__notes {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.page-products .pdl-compat__notes p {
  margin: 0;
  padding: 16px 18px;
  background: var(--panel-deep);
  border-left: 6px solid var(--neon-purple);
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.72;
}

.page-products .pdl-compat__notes strong {
  color: var(--cream);
}

/* 排查顺序 */
.page-products .pdl-ts__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.page-products .pdl-ts__copy h2 {
  font-size: clamp(24px, 4.2vw, 36px);
  line-height: 1.2;
  margin: 10px 0 16px;
  color: var(--cream);
}

.page-products .pdl-ts__copy > p {
  color: var(--mist);
  line-height: 1.75;
  margin: 0 0 24px;
}

.page-products .pdl-ts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-products .pdl-ts__item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 18px;
  background: var(--panel-deep);
  border: 1px solid var(--pdl-line);
}

.page-products .pdl-ts__num {
  font-size: 20px;
  font-weight: 700;
  color: var(--neon-purple);
  line-height: 1.3;
}

.page-products .pdl-ts__item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--cream);
}

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

.page-products .pdl-ts__aside h3 {
  margin: 0 0 16px;
  font-size: 19px;
  color: var(--dark-brown);
}

.page-products .pdl-ts__links {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .pdl-ts__links a {
  color: var(--dark-brown);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14.5px;
  line-height: 1.6;
  display: inline-block;
  min-height: 24px;
}

.page-products .pdl-ts__links a:hover {
  color: var(--neon-purple);
}

.page-products .pdl-ts__aside-note {
  margin: 0;
  padding-top: 16px;
  border-top: 1px dashed var(--cream-grey);
  font-size: 13.5px;
  line-height: 1.7;
  color: #4a3f63;
}

/* 收尾 */
.page-products .pdl-outro {
  padding: 56px 0 8px;
}

.page-products .pdl-outro__inner {
  background: var(--panel-deep);
  border: var(--edge) solid var(--neon-purple);
  box-shadow: var(--shadow-soft);
  padding: 32px 24px;
  display: grid;
  gap: 22px;
  align-items: center;
}

.page-products .pdl-outro h2 {
  font-size: clamp(22px, 3.6vw, 30px);
  margin: 0 0 12px;
  color: var(--cream);
}

.page-products .pdl-outro p {
  margin: 0;
  color: var(--mist);
  line-height: 1.75;
  font-size: 15px;
}

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

.page-products .pdl-outro__actions .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-products a:focus-visible,
.page-products summary:focus-visible {
  outline: 2px solid var(--neon-purple);
  outline-offset: 2px;
}

@media (min-width: 720px) {
  .page-products .pdl-crumbs {
    padding-top: 34px;
  }

  .page-products .pdl-hero {
    padding-top: 28px;
  }

  .page-products .pdl-version {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-products .pdl-version__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px 14px 0;
    border-bottom: 0;
    border-right: 1px solid var(--cream-grey);
  }

  .page-products .pdl-version__item:last-child {
    border-right: 0;
  }

  .page-products .pdl-scenes {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products .pdl-compat__notes {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products .pdl-outro__inner {
    grid-template-columns: 1fr auto;
    padding: 40px 36px;
  }
}

@media (min-width: 960px) {
  .page-products {
    --pdl-space: 88px;
  }

  .page-products .pdl-hero__grid {
    grid-template-columns: 5fr 7fr;
    gap: 44px;
  }

  .page-products .pdl-hero__card {
    padding: 34px 32px 36px;
  }

  .page-products .pdl-fixes__split {
    grid-template-columns: 7fr 5fr;
    gap: 44px;
  }

  .page-products .pdl-ts__split {
    grid-template-columns: 7fr 5fr;
    gap: 44px;
  }

  .page-products .pdl-steps-fig {
    margin-bottom: 48px;
  }

  .page-products .pdl-step {
    grid-template-columns: 60px 1fr;
    gap: 26px;
  }

  .page-products .pdl-step::before {
    left: 29px;
  }

  .page-products .pdl-step__node {
    width: 60px;
    height: 60px;
    font-size: 19px;
  }

  .page-products .pdl-beforeafter img {
    aspect-ratio: 14 / 9;
  }
}

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