.page-products {
  --pr-rule-dark: rgba(255, 249, 239, 0.16);
  --pr-rule-light: rgba(36, 28, 22, 0.14);
  --pr-muted-light: rgba(36, 28, 22, 0.7);
  background-color: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

.page-products img {
  max-width: 100%;
  height: auto;
}

/* ---------- 首屏 ---------- */
.page-products .pr-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--forest);
  color: var(--paper);
  padding: clamp(22px, 5vw, 40px) 0 clamp(36px, 6vw, 72px);
}

.page-products .pr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(54, 240, 192, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(54, 240, 192, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 88%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 88%);
  pointer-events: none;
}

.page-products .pr-hero > .wrap {
  position: relative;
  z-index: 1;
}

.page-products .pr-crumbs .crumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
}

.page-products .pr-crumbs .crumbs__link {
  color: var(--mist);
  text-decoration: none;
}

.page-products .pr-crumbs .crumbs__link:hover {
  color: var(--neon);
}

.page-products .pr-crumbs .crumbs__current {
  color: var(--paper);
}

.page-products .pr-crumbs .crumbs__item + .crumbs__item::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(201, 194, 182, 0.5);
}

.page-products .eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--steel);
}

.page-products .pr-hero .eyebrow {
  color: var(--neon);
}

.page-products .pr-hero__head {
  max-width: 52rem;
  margin-top: clamp(24px, 4vw, 44px);
}

.page-products .pr-hero h1 {
  margin: 0.7rem 0 0;
  font-size: clamp(1.9rem, 7vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 900;
  color: var(--paper);
}

.page-products .pr-hero__lede {
  margin: 1rem 0 0;
  max-width: 40em;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-products .pr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.page-products .pr-hero__panel {
  margin-top: clamp(26px, 5vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--pr-rule-dark);
  border: 1px solid var(--pr-rule-dark);
}

.page-products .pr-route-box {
  background: var(--carbon);
  padding: clamp(14px, 3vw, 26px);
}

.page-products .pr-route-box__label {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--neon);
}

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

.page-products .pr-hero__figure {
  margin: 0;
  background: var(--carbon);
  overflow: hidden;
}

.page-products .pr-hero__figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.page-products .pr-stats {
  list-style: none;
  margin: clamp(22px, 4vw, 36px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--pr-rule-dark);
  border-top: 1px solid var(--pr-rule-dark);
}

.page-products .pr-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 0.9rem 1.05rem;
  background: var(--forest);
}

.page-products .pr-stats .stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--flame);
}

.page-products .pr-stats .stat__label {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--mist);
}

/* ---------- 章节外壳 ---------- */
.page-products .pr-section {
  padding: clamp(44px, 8vw, 104px) 0;
}

.page-products .pr-section--cream {
  background: var(--cream);
  color: var(--ink);
}

.page-products .pr-section--paper {
  background: var(--paper);
  color: var(--ink);
}

.page-products .pr-section--carbon {
  background: var(--carbon);
  color: var(--paper);
}

.page-products .pr-section--forest {
  background: var(--forest);
  color: var(--paper);
}

.page-products .section-head {
  max-width: 52rem;
}

.page-products .section-head__title {
  margin: 0.55rem 0 0;
  font-size: clamp(1.45rem, 3.6vw, 2.4rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: var(--ink);
}

.page-products .section-head__note {
  margin: 0.9rem 0 0;
  font-size: 0.975rem;
  line-height: 1.85;
  color: var(--pr-muted-light);
}

.page-products .pr-section--carbon .section-head__title,
.page-products .pr-section--forest .section-head__title {
  color: var(--paper);
}

.page-products .pr-section--carbon .section-head__note,
.page-products .pr-section--forest .section-head__note {
  color: var(--mist);
}

.page-products .pr-section--carbon .eyebrow,
.page-products .pr-section--forest .eyebrow {
  color: var(--neon);
}

/* ---------- 工作台三线 ---------- */
.page-products .pr-lanes {
  list-style: none;
  margin: clamp(22px, 4vw, 40px) 0 0;
  padding: 0;
  border-top: 1px solid var(--pr-rule-light);
}

.page-products .pr-lane {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1rem;
  padding: 1.15rem 0.9rem 1.3rem;
  background: var(--cream);
  border-bottom: 1px solid var(--pr-rule-light);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.page-products .pr-lane::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--flame);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.18s ease;
}

.page-products .pr-lane:hover {
  transform: translateY(-2px);
  background: var(--paper);
}

.page-products .pr-lane:hover::before {
  transform: scaleY(1);
}

.page-products .pr-lane__num {
  padding-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--flame);
}

.page-products .pr-lane__title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--ink);
}

.page-products .pr-lane__text {
  margin: 0.45rem 0 0;
  max-width: 44em;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--pr-muted-light);
}

.page-products .pr-lane__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.7rem 0 0;
  padding: 0;
}

.page-products .pr-lane__tags .tag {
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--pr-rule-light);
  font-size: 0.75rem;
  color: var(--steel);
}

.page-products .pr-lanes__foot {
  margin: 1.25rem 0 0;
  max-width: 46em;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--pr-muted-light);
}

/* ---------- 筛选芯片 ---------- */
.page-products .pr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.35rem;
}

.page-products .pr-chip {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--pr-rule-light);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.page-products .pr-chip:hover {
  border-color: var(--flame);
  color: var(--flame);
}

.page-products .pr-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.page-products .pr-chip:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
}

.page-products .pr-section--carbon .pr-chip,
.page-products .pr-section--forest .pr-chip {
  color: var(--paper);
  border-color: var(--pr-rule-dark);
}

.page-products .pr-section--carbon .pr-chip:hover,
.page-products .pr-section--forest .pr-chip:hover {
  border-color: var(--neon);
  color: var(--neon);
}

.page-products .pr-section--carbon .pr-chip[aria-pressed="true"],
.page-products .pr-section--forest .pr-chip[aria-pressed="true"] {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--carbon);
}

.page-products .pr-section--carbon .pr-chip:focus-visible,
.page-products .pr-section--forest .pr-chip:focus-visible {
  outline-color: var(--neon);
}

/* ---------- 战报归档 ---------- */
.page-products .pr-archive {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--pr-rule-light);
  border: 1px solid var(--pr-rule-light);
}

.page-products .pr-archive__card {
  display: flex;
  flex-direction: column;
  padding: 1.05rem 1rem 1.2rem;
  background: var(--paper);
  border-top: 2px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.page-products .pr-archive__card:hover {
  background: #ffffff;
  border-top-color: var(--flame);
}

.page-products .pr-archive__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--steel);
}

.page-products .pr-archive__title {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 800;
  color: var(--ink);
}

.page-products .pr-archive__text {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--pr-muted-light);
}

.page-products .pr-archive__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.8rem 0 0;
  padding: 0;
}

.page-products .pr-archive__tags .tag {
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--pr-rule-light);
  font-size: 0.7rem;
  color: var(--steel);
}

/* ---------- 入口变更 ---------- */
.page-products .pr-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: clamp(22px, 4vw, 40px);
}

.page-products .pr-entry__copy p {
  margin: 0;
  font-size: 0.975rem;
  line-height: 1.85;
  color: var(--mist);
}

.page-products .pr-entry__copy p + p {
  margin-top: 0.85rem;
}

.page-products .pr-steps {
  list-style: none;
  counter-reset: prs;
  margin: 1.3rem 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--pr-rule-dark);
  border-top: 1px solid var(--pr-rule-dark);
}

.page-products .pr-steps li {
  counter-increment: prs;
  position: relative;
  padding: 0.85rem 0.9rem 0.9rem 2.8rem;
  background: var(--carbon);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--paper);
}

.page-products .pr-steps li::before {
  content: "0" counter(prs);
  position: absolute;
  left: 0.9rem;
  top: 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--flame);
}

.page-products .pr-entry__figure {
  margin: 0;
}

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

.page-products .pr-entry__figure .media__caption {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(201, 194, 182, 0.8);
}

.page-products .pr-pathpanel-group {
  margin-top: clamp(24px, 4vw, 40px);
}

.page-products .pr-panels {
  display: grid;
  gap: 1px;
  margin-top: 1rem;
  background: var(--pr-rule-dark);
  border: 1px solid var(--pr-rule-dark);
}

.page-products .pr-panel {
  max-width: 46em;
  padding: 1.15rem 1rem 1.3rem;
  background: var(--carbon);
}

.page-products .pr-panel__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--paper);
}

.page-products .pr-panel__text {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- 案例研究板 ---------- */
.page-products .pr-case {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: clamp(22px, 4vw, 40px);
}

.page-products .pr-case__figure {
  margin: 0;
}

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

.page-products .pr-case__parts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--pr-rule-light);
  border-top: 1px solid var(--pr-rule-light);
}

.page-products .pr-case__parts li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.2rem 0.7rem;
  padding: 0.9rem 0 0.95rem;
  background: var(--cream);
}

.page-products .pr-case__num {
  padding-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--flame);
}

.page-products .pr-case__parts h3 {
  margin: 0;
  font-size: 0.975rem;
  font-weight: 800;
  color: var(--ink);
}

.page-products .pr-case__parts p {
  grid-column: 2;
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--pr-muted-light);
}

.page-products .pr-case__note {
  margin: 1.25rem 0 1.4rem;
  max-width: 46em;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--pr-muted-light);
}

/* ---------- 设备兼容 ---------- */
.page-products .pr-device {
  margin-top: clamp(22px, 4vw, 40px);
}

.page-products .pr-device__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
  margin-top: 1rem;
}

.page-products .pr-device-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--pr-rule-dark);
  border-top: 1px solid var(--pr-rule-dark);
}

.page-products .pr-device-notes li {
  padding: 1rem 0.95rem 1.1rem;
  background: var(--forest);
}

.page-products .pr-device-notes h3 {
  margin: 0;
  font-size: 0.975rem;
  font-weight: 800;
  color: var(--paper);
}

.page-products .pr-device-notes p {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-products .pr-device__figure {
  margin: 0;
}

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

/* ---------- 帮助索引 ---------- */
.page-products .pr-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: clamp(22px, 4vw, 40px);
}

.page-products .pr-help__figure {
  margin: 0;
}

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

.page-products .pr-faq {
  border-bottom: 1px solid var(--pr-rule-light);
}

.page-products .pr-faq summary {
  position: relative;
  padding: 0.95rem 2rem 0.95rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}

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

.page-products .pr-faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--flame);
}

.page-products .pr-faq[open] summary::after {
  content: "\2212";
}

.page-products .pr-faq summary:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
}

.page-products .pr-faq p {
  margin: 0 0 1rem;
  max-width: 44em;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--pr-muted-light);
}

.page-products .pr-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

/* ---------- 尾部行动 ---------- */
.page-products .pr-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 7vw, 88px) 0 calc(clamp(42px, 7vw, 88px) + 10px);
  background: var(--carbon);
  color: var(--paper);
}

.page-products .pr-cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--flame) 0 14px, transparent 14px 28px);
  opacity: 0.55;
}

.page-products .pr-cta h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 900;
  color: var(--paper);
}

.page-products .pr-cta p {
  margin: 0.9rem 0 0;
  max-width: 38em;
  font-size: 0.975rem;
  line-height: 1.85;
  color: var(--mist);
}

.page-products .pr-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

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

@media (min-width: 820px) {
  .page-products .pr-lane {
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 0 1.5rem;
    padding: 1.5rem 1.25rem 1.6rem;
  }

  .page-products .pr-lane__num {
    font-size: 1.25rem;
    padding-top: 0.15rem;
  }

  .page-products .pr-lane__title {
    font-size: 1.3rem;
  }

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

  .page-products .pr-stats .stat {
    padding: 1.2rem 1.1rem 1.25rem;
  }
}

@media (min-width: 900px) {
  .page-products .pr-hero__panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .page-products .pr-entry {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
  }

  .page-products .pr-case {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
  }

  .page-products .pr-device__body {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(22px, 4vw, 44px);
    align-items: start;
  }

  .page-products .pr-help {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(22px, 4vw, 48px);
    align-items: start;
  }
}

@media (min-width: 1000px) {
  .page-products .pr-archive {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-products .pr-hero__lede {
    font-size: 1.0625rem;
  }

  .page-products .pr-hero__figure img {
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pr-lane,
  .page-products .pr-lane::before,
  .page-products .pr-chip {
    transition: none;
  }

  .page-products .pr-lane:hover {
    transform: none;
  }
}
