.page-products {
  background: var(--ink);
  color: var(--mist);
  overflow-x: clip;
}

/* ---------- 首屏 ---------- */
.page-products .pr-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 60px;
  border-bottom: 1px solid var(--line);
}

.page-products .pr-hero__glow {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(66, 232, 224, 0.22), rgba(66, 232, 224, 0) 68%);
  pointer-events: none;
}

.page-products .pr-hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -70px;
  height: 150px;
  background: linear-gradient(90deg, rgba(15, 167, 165, 0.2), rgba(66, 232, 224, 0.06) 42%, transparent 72%);
  transform: skewY(-3deg);
  pointer-events: none;
}

.page-products .pr-hero__inner {
  position: relative;
  z-index: 1;
}

.page-products .pr-hero__title {
  margin: 20px 0 0;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 15em;
}

.page-products .pr-hero__lead {
  margin: 22px 0 0;
  max-width: 40em;
  color: var(--slate);
}

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

.page-products .pr-hero__facts {
  list-style: none;
  margin: 38px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  font-size: 14px;
  color: var(--slate);
}

.page-products .pr-hero__facts-num {
  display: inline-block;
  min-width: 34px;
  font-family: var(--font-cond);
  font-size: 26px;
  line-height: 1;
  color: var(--cyan);
  margin-right: 10px;
}

/* ---------- 路径总览 ---------- */
.page-products .pr-overview {
  position: relative;
  overflow: hidden;
  padding: 60px 0 68px;
  background: var(--deep);
}

.page-products .pr-overview__texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: saturate(0.75);
  pointer-events: none;
}

.page-products .pr-overview__inner {
  position: relative;
  z-index: 1;
}

.page-products .pr-overview__note {
  margin: 18px 0 0;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--slate);
}

.page-products .pr-tree {
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
}

.page-products .pr-tree__node {
  position: relative;
  padding: 0 0 30px 44px;
}

.page-products .pr-tree__node::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 26px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, var(--line), rgba(42, 61, 87, 0));
}

.page-products .pr-tree__node:last-child {
  padding-bottom: 0;
}

.page-products .pr-tree__node:last-child::before {
  display: none;
}

.page-products .pr-tree__dot {
  position: absolute;
  left: 0;
  top: 3px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ink);
  display: grid;
  place-items: center;
}

.page-products .pr-tree__dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--slate);
}

.page-products .pr-tree__node--on .pr-tree__dot {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(66, 232, 224, 0.14);
}

.page-products .pr-tree__node--on .pr-tree__dot::after {
  background: var(--cyan);
}

.page-products .pr-tree__num {
  display: block;
  font-family: var(--font-cond);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.page-products .pr-tree__name {
  margin: 5px 0 7px;
  font-size: 19px;
  font-weight: 500;
  color: var(--mist);
}

.page-products .pr-tree__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--slate);
  max-width: 30em;
}

/* ---------- 步骤详情 ---------- */
.page-products .pr-detail {
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

.page-products .pr-detail__grid {
  display: grid;
  gap: 30px;
}

.page-products .pr-detail__body .title-md {
  margin: 14px 0 0;
}

.page-products .pr-detail__body .prose {
  margin-top: 16px;
  color: var(--slate);
}

.page-products .pr-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-float);
}

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

.page-products .pr-figure__cap {
  padding: 12px 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
  border-top: 1px solid var(--line);
}

.page-products .pr-check {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .pr-check li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate);
}

.page-products .pr-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  border: 1px solid var(--cyan);
  background: rgba(66, 232, 224, 0.16);
}

.page-products .pr-check__item--done::before {
  background: var(--cyan) !important;
  border-color: var(--cyan) !important;
}

.page-products .pr-check__item--todo::before {
  background: transparent !important;
  border-color: var(--slate) !important;
}

.page-products .pr-note {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--dim);
}

.page-products .pr-note a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 浏览器窗口 ---------- */
.page-products .pr-browser {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-float);
}

.page-products .pr-browser__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(5, 7, 12, 0.72);
  border-bottom: 1px solid var(--line);
}

.page-products .pr-browser__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.page-products .pr-browser__dot:nth-child(1) {
  background: var(--coral);
}

.page-products .pr-browser__dot:nth-child(2) {
  background: var(--gold);
}

.page-products .pr-browser__dot:nth-child(3) {
  background: var(--cyan);
}

.page-products .pr-browser__url {
  margin-left: 10px;
  font-family: var(--font-cond);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--slate);
}

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

/* ---------- 新旧对照 ---------- */
.page-products .pr-compare {
  padding: 56px 0 60px;
  background: var(--deep);
  border-bottom: 1px solid var(--line);
}

.page-products .pr-compare__note {
  margin: 18px 0 0;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--slate);
}

.page-products .pr-compare__scroll {
  margin-top: 30px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(5, 7, 12, 0.45);
}

.page-products .pr-compare__table {
  width: 100%;
  min-width: 570px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.page-products .pr-compare__table thead th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-cond);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--slate);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.page-products .pr-compare__table tbody th {
  padding: 16px 18px;
  text-align: left;
  font-weight: 500;
  color: var(--mist);
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.page-products .pr-compare__table td {
  padding: 16px 18px;
  color: var(--slate);
  line-height: 1.75;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.page-products .pr-compare__table tbody tr:last-child th,
.page-products .pr-compare__table tbody tr:last-child td {
  border-bottom: 0;
}

.page-products .pr-compare__table td:last-child {
  color: var(--mist);
}

.page-products .pr-compare__table tbody tr:hover td:last-child {
  color: var(--cyan);
}

.page-products .pr-compare__accordion {
  margin-top: 30px;
}

.page-products .pr-compare__accordion .accordion__inner p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--slate);
}

/* ---------- 资料库 ---------- */
.page-products .pr-library {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.page-products .pr-library__grid {
  display: grid;
  gap: 32px;
}

.page-products .pr-library__body .title-md {
  margin: 14px 0 0;
}

.page-products .pr-library__body .prose {
  margin-top: 16px;
  color: var(--slate);
}

.page-products .pr-library__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
}

.page-products .pr-library__tags li {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(19, 36, 58, 0.65);
  font-size: 13px;
  color: var(--slate);
}

.page-products .pr-sync {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 24px 0 0;
  font-size: 13.5px;
  color: var(--gold);
}

.page-products .pr-sync__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(232, 184, 106, 0.16);
}

/* ---------- 适用场景 ---------- */
.page-products .pr-scenes {
  padding: 56px 0 64px;
}

.page-products .pr-scenes__figure {
  margin-top: 30px;
}

.page-products .pr-scenes__grid {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.page-products .pr-scene {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(19, 36, 58, 0.92), rgba(10, 18, 32, 0.92));
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease);
}

.page-products .pr-scene:hover,
.page-products .pr-scene:focus-within {
  transform: translateY(-5px);
  border-color: rgba(66, 232, 224, 0.46);
}

.page-products .pr-scene__num {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: 30px;
  line-height: 1;
  color: rgba(66, 232, 224, 0.5);
  letter-spacing: 0.06em;
}

.page-products .pr-scene__title {
  margin: 12px 0 10px;
  font-size: 18px;
  font-weight: 500;
  color: var(--mist);
}

.page-products .pr-scene__text {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--slate);
}

.page-products .pr-scene__link {
  display: inline-block;
  font-size: 13.5px;
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 收尾 ---------- */
.page-products .pr-cta {
  padding: 12px 0 76px;
}

.page-products .pr-cta__inner {
  display: grid;
  gap: 22px;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(66, 232, 224, 0.15), transparent 62%),
    var(--panel);
}

.page-products .pr-cta__copy .title-md {
  margin: 0;
}

.page-products .pr-cta__copy .prose {
  margin: 14px 0 0;
  color: var(--slate);
}

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

/* ---------- 平板 ---------- */
@media (min-width: 700px) {
  .page-products .pr-hero__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 24px;
  }

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

/* ---------- 桌面 ---------- */
@media (min-width: 900px) {
  .page-products .pr-hero {
    padding: 48px 0 92px;
  }

  .page-products .pr-hero__title {
    margin-top: 24px;
  }

  .page-products .pr-overview {
    padding: 76px 0 84px;
  }

  .page-products .pr-tree {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    position: relative;
    margin-top: 48px;
  }

  .page-products .pr-tree::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 11px;
    height: 1px;
    background: linear-gradient(90deg, var(--teal), var(--cyan) 46%, var(--line));
  }

  .page-products .pr-tree__node {
    padding: 40px 0 0;
  }

  .page-products .pr-tree__node::before {
    display: none;
  }

  .page-products .pr-tree__dot {
    top: 0;
  }

  .page-products .pr-tree__desc {
    max-width: none;
  }

  .page-products .pr-detail {
    padding: 76px 0;
  }

  .page-products .pr-detail__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 58px;
  }

  .page-products .pr-detail--flip .pr-detail__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .page-products .pr-detail--flip .pr-detail__body {
    order: 1;
  }

  .page-products .pr-detail--flip .pr-browser {
    order: 2;
  }

  .page-products .pr-compare {
    padding: 76px 0 80px;
  }

  .page-products .pr-library {
    padding: 76px 0;
  }

  .page-products .pr-library__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
    gap: 56px;
    align-items: center;
  }

  .page-products .pr-scenes {
    padding: 76px 0 84px;
  }

  .page-products .pr-scenes__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 30px;
  }

  .page-products .pr-cta {
    padding: 16px 0 96px;
  }

  .page-products .pr-cta__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    padding: 42px 46px;
  }

  .page-products .pr-cta__actions {
    justify-content: flex-end;
  }
}

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

  .page-products .pr-scene:hover,
  .page-products .pr-scene:focus-within {
    transform: none;
  }
}
