.page-products {
  --pr-soft: rgba(244, 239, 228, .06);
  --pr-edge: rgba(244, 239, 228, .13);
  --pr-clay-soft: rgba(201, 123, 90, .16);
  --pr-blue-soft: rgba(45, 125, 255, .16);
  --pr-night-veil: rgba(7, 26, 18, .55);
  background: var(--bw-deep);
  color: var(--bw-cream);
  overflow-x: hidden;
}

/* ---------- 首屏导览 ---------- */
.page-products .pr-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(26px, 5vw, 60px);
  padding-bottom: clamp(38px, 6vw, 80px);
}

.page-products .pr-hero::after {
  content: "";
  position: absolute;
  top: -170px;
  right: -140px;
  width: min(560px, 92vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, rgba(63, 107, 74, .55), rgba(13, 43, 30, 0) 70%);
  pointer-events: none;
}

.page-products .pr-hero .bw-shell {
  position: relative;
  z-index: 1;
}

.page-products .pr-hero .bw-label {
  margin-top: clamp(16px, 3vw, 28px);
}

.page-products .pr-hero .bw-h1 {
  margin-top: 14px;
}

.page-products .pr-hero__lede {
  max-width: 62ch;
  margin-top: clamp(14px, 2.4vw, 24px);
}

.page-products .pr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 52px);
  margin-top: clamp(26px, 4vw, 46px);
  padding-top: clamp(18px, 3vw, 28px);
  border-top: 1px solid var(--pr-edge);
}

.page-products .pr-meta .bw-kpi {
  min-width: 104px;
}

.page-products .pr-meta .bw-kpi__num small {
  font-size: .5em;
  margin-left: 2px;
  color: var(--bw-mist);
}

/* 导览索引 */
.page-products .pr-quick {
  margin-top: clamp(30px, 5vw, 56px);
}

.page-products .pr-quick__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.page-products .pr-quick__hint {
  font-size: .74rem;
  letter-spacing: .18em;
  color: var(--bw-mist);
}

.page-products .pr-quick__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--pr-edge);
}

.page-products .pr-quick__item {
  display: block;
  padding: 14px 12px;
  border-bottom: 1px solid var(--pr-edge);
  color: inherit;
  text-decoration: none;
  transition: background .3s var(--bw-ease), padding-left .3s var(--bw-ease);
}

.page-products .pr-quick__item:hover,
.page-products .pr-quick__item:focus-visible {
  background: var(--pr-soft);
  padding-left: 18px;
}

.page-products .pr-quick__num {
  font-family: var(--bw-font-mono);
  font-size: .75rem;
  letter-spacing: .16em;
  color: var(--bw-signal);
}

.page-products .pr-quick__title {
  display: block;
  margin-top: 6px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.page-products .pr-quick__meta {
  display: block;
  margin-top: 4px;
  font-size: .78rem;
  color: var(--bw-mist);
}

/* ---------- 产品区块通用 ---------- */
.page-products .pr-block {
  position: relative;
}

.page-products .pr-block__body {
  margin-top: clamp(24px, 4vw, 46px);
  align-items: start;
}

.page-products .pr-block__side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-products .pr-para {
  margin-top: 18px;
}

.page-products .pr-media {
  display: block;
  width: 100%;
}

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

.page-products .pr-side-card {
  padding: clamp(16px, 2.6vw, 24px);
}

.page-products .pr-card-text {
  margin-top: 14px;
  font-size: .92rem;
}

.page-products .pr-facts {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .pr-facts li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--bw-line-soft);
}

.page-products .pr-facts li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-products .pr-facts__k {
  font-size: .86rem;
  color: var(--bw-mist);
}

.page-products .pr-facts__v {
  font-size: .9rem;
  color: var(--bw-cream);
}

/* 字段表 */
.page-products .pr-table {
  width: 100%;
  margin-top: clamp(22px, 3.4vw, 34px);
  border-collapse: collapse;
  font-size: .88rem;
}

.page-products .pr-table__caption {
  text-align: left;
  padding-bottom: 12px;
  font-size: .76rem;
  letter-spacing: .16em;
  color: var(--bw-mist);
}

.page-products .pr-table th,
.page-products .pr-table td {
  padding: 11px 10px;
  text-align: left;
  border-bottom: 1px solid var(--pr-edge);
  vertical-align: top;
}

.page-products .pr-table th {
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--bw-mist);
  font-weight: 500;
}

.page-products .pr-table td {
  color: rgba(244, 239, 228, .88);
}

.page-products .pr-table .bw-table__num {
  color: var(--bw-signal);
  white-space: nowrap;
}

/* 新旧对照 */
.page-products .pr-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.page-products .pr-compare__col {
  padding: clamp(16px, 2.6vw, 24px);
  border-radius: var(--bw-radius-sm);
  background: var(--pr-soft);
}

.page-products .pr-compare__col--new {
  background: linear-gradient(150deg, var(--pr-blue-soft), rgba(10, 61, 58, .42));
}

.page-products .pr-compare__col .bw-text {
  margin-top: 10px;
  font-size: .94rem;
}

/* 标签 */
.page-products .pr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(18px, 3vw, 26px) 0 0;
  padding: 0;
  list-style: none;
}

/* 时间线 */
.page-products .pr-tl-text {
  display: block;
  width: 100%;
  margin-top: 2px;
  font-size: .84rem;
  color: var(--bw-mist);
}

/* 区域入口 */
.page-products .pr-regions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pr-regions__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(7, 26, 18, .34);
  border-radius: var(--bw-radius-sm);
  font-size: .92rem;
  transition: background .3s var(--bw-ease), transform .3s var(--bw-ease);
}

.page-products .pr-regions__item:hover {
  background: rgba(7, 26, 18, .6);
  transform: translateY(-2px);
}

.page-products .pr-regions__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bw-signal);
  flex: none;
}

/* 接口格式 */
.page-products .pr-code-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.page-products .pr-code {
  padding: clamp(14px, 2.4vw, 20px);
  border-radius: var(--bw-radius-sm);
  background: linear-gradient(160deg, rgba(10, 61, 58, .5), rgba(7, 26, 18, .7));
  border: 1px solid var(--bw-line-soft);
}

.page-products .pr-code--alt {
  background: linear-gradient(160deg, var(--pr-blue-soft), rgba(7, 26, 18, .7));
}

.page-products .pr-code__title {
  margin: 0 0 10px;
  font-size: .74rem;
  letter-spacing: .14em;
  color: var(--bw-signal);
}

.page-products .pr-code__body {
  margin: 0;
  overflow-x: auto;
  font-size: .78rem;
  line-height: 1.7;
  color: rgba(244, 239, 228, .84);
}

/* 图表 */
.page-products .pr-chart-figure {
  margin: 0;
  padding: clamp(14px, 2.6vw, 24px);
  border-radius: var(--bw-radius);
  background: linear-gradient(160deg, rgba(13, 43, 30, .7), rgba(7, 26, 18, .5));
  border: 1px solid var(--bw-line-soft);
}

.page-products .pr-chart {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .pr-chart__area {
  opacity: .45;
}

/* 角色建议 */
.page-products .pr-roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: clamp(24px, 4vw, 42px);
}

.page-products .pr-role {
  padding: clamp(18px, 3vw, 28px);
  background: rgba(7, 26, 18, .35);
  border-radius: var(--bw-radius-sm);
  transition: background .35s var(--bw-ease);
}

.page-products .pr-role--alt {
  background: rgba(7, 26, 18, .55);
}

.page-products .pr-role:hover {
  background: rgba(7, 26, 18, .78);
}

.page-products .pr-role .bw-h3 {
  margin-top: 12px;
}

.page-products .pr-role__text {
  margin-top: 10px;
  font-size: .94rem;
  line-height: 1.75;
  color: rgba(244, 239, 228, .82);
}

/* 结尾行动 */
.page-products .pr-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 4vw, 42px);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-products .pr-quick__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products .pr-quick__item:nth-child(odd) {
    border-right: 1px solid var(--pr-edge);
  }

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

  .page-products .pr-code-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .page-products .pr-quick__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-products .pr-quick__item {
    border-right: 1px solid var(--pr-edge);
  }

  .page-products .pr-quick__item:nth-child(4n) {
    border-right: 0;
  }

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

  .page-products .pr-regions {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .page-products .pr-role {
    padding: clamp(22px, 2.6vw, 34px);
  }
}

@media (min-width: 1120px) {
  .page-products .pr-block__body {
    column-gap: clamp(28px, 4vw, 64px);
  }

  .page-products .pr-block__side {
    position: sticky;
    top: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pr-quick__item,
  .page-products .pr-regions__item,
  .page-products .pr-role {
    transition: none;
  }
}
