/* ===== 设备入口中心 · 页面专属样式 ===== */

.page-products {
  --pd-shell: 1320px;
  --pd-gut: 20px;
  --pd-hair: rgba(58, 42, 33, 0.16);
  --pd-hair-strong: rgba(58, 42, 33, 0.36);
  display: block;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
}

@media (min-width: 768px) {
  .page-products {
    --pd-gut: 48px;
  }
}

/* ---------- 首屏 ---------- */

.page-products .pd-hero {
  position: relative;
  overflow: hidden;
  padding: 26px 0 40px;
  color: var(--cream-50);
  background-color: var(--crimson-700);
  background-image:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(231, 200, 115, 0.07) 79px 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(231, 200, 115, 0.07) 79px 80px);
}

@media (min-width: 900px) {
  .page-products .pd-hero {
    padding: 42px 0 62px;
  }
}

.page-products .pd-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold-600) 0%, var(--gold-300) 42%, rgba(231, 200, 115, 0) 94%);
}

.page-products .pd-hero__top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-cream);
}

.page-products .pd-hero .crumbs a,
.page-products .pd-hero .crumbs__item {
  color: var(--gold-300);
}

.page-products .pd-hero .crumbs a {
  text-decoration: none;
  border-bottom: 1px solid rgba(231, 200, 115, 0.4);
}

.page-products .pd-hero .crumbs a:hover,
.page-products .pd-hero .crumbs a:focus-visible {
  border-bottom-color: var(--gold-300);
}

.page-products .pd-hero__tag {
  margin: 0;
  color: var(--gold-300);
}

.page-products .pd-title {
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 10vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.page-products .pd-hero__body {
  display: grid;
  gap: 26px;
  margin-top: 26px;
}

@media (min-width: 1000px) {
  .page-products .pd-hero__body {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 60px;
    align-items: start;
    margin-top: 34px;
  }
}

.page-products .pd-lede {
  max-width: 44ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(251, 247, 239, 0.9);
}

.page-products .pd-facts {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line-cream);
}

.page-products .pd-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-cream);
}

.page-products .pd-facts dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(251, 247, 239, 0.68);
}

.page-products .pd-facts dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--gold-300);
}

/* ---------- 区块骨架 ---------- */

.page-products .pd-section {
  padding: 52px 0;
}

@media (min-width: 900px) {
  .page-products .pd-section {
    padding: 78px 0;
  }
}

.page-products .pd-section--parch {
  background: var(--parchment-100);
}

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

.page-products .pd-head {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 32px;
}

@media (min-width: 900px) {
  .page-products .pd-head {
    margin-bottom: 46px;
  }
}

.page-products .pd-no {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold-900);
}

.page-products .pd-no--wide {
  margin-bottom: 18px;
}

.page-products .pd-section--ink .pd-no {
  color: var(--gold-300);
}

.page-products .pd-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 5.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.page-products .pd-sub {
  margin: 0;
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--slate-500);
}

.page-products .pd-section--parch .pd-sub {
  color: var(--umber-700);
}

.page-products .pd-section--ink .pd-sub {
  color: rgba(251, 247, 239, 0.72);
}

/* ---------- 图片容器 ---------- */

.page-products .pd-figure {
  margin: 0;
}

.page-products .pd-figure .frame__media {
  display: block;
  border: 1px solid var(--pd-hair);
  background: var(--parchment-100);
}

.page-products .pd-section--ink .pd-figure .frame__media {
  border-color: rgba(231, 200, 115, 0.24);
  background: var(--umber-700);
}

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

.page-products .pd-figure .frame__credit {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--slate-500);
}

.page-products .pd-section--ink .pd-figure .frame__credit {
  color: rgba(251, 247, 239, 0.6);
}

/* ---------- A-01 层级 ---------- */

.page-products .pd-levels {
  display: grid;
  gap: 32px;
}

@media (min-width: 1000px) {
  .page-products .pd-levels {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: start;
  }
}

.page-products .pd-levels__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--pd-hair-strong);
}

.page-products .pd-level {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--pd-hair);
}

.page-products .pd-level__no {
  flex: 0 0 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--crimson-700);
  padding-top: 3px;
}

.page-products .pd-level__body {
  min-width: 0;
}

.page-products .pd-level__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-products .pd-level__text {
  margin: 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.72;
  color: var(--umber-700);
}

.page-products .pd-level__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--gold-900);
  text-decoration: none;
  border-bottom: 1px solid var(--line-gold);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-products .pd-level__link:hover,
.page-products .pd-level__link:focus-visible {
  color: var(--crimson-500);
  border-bottom-color: var(--crimson-500);
}

.page-products .pd-level__link:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 3px;
}

/* ---------- A-02 三步 ---------- */

.page-products .pd-steps {
  display: grid;
  gap: 32px;
}

@media (min-width: 1000px) {
  .page-products .pd-steps {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: center;
  }
}

.page-products .pd-steps__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pdstep;
}

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

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

.page-products .pd-step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: 4px;
  width: 1px;
  background: var(--line-gold);
}

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

.page-products .pd-step__no {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-600);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--crimson-700);
  background: var(--cream-50);
}

.page-products .pd-step__title {
  margin: 6px 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.page-products .pd-step__text {
  margin: 0;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--umber-700);
}

/* ---------- A-03 适配矩阵 ---------- */

.page-products .pd-matrix-fig {
  margin-bottom: 30px;
}

.page-products .pd-matrix__wrap {
  overflow-x: auto;
  border: 1px solid var(--pd-hair-strong);
  background: var(--cream-50);
}

.page-products .pd-matrix {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.page-products .pd-matrix__cap {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--slate-500);
  border-bottom: 1px solid var(--pd-hair);
}

.page-products .pd-matrix thead th {
  padding: 12px 16px;
  text-align: left;
  background: var(--ink-900);
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.page-products .pd-matrix tbody th,
.page-products .pd-matrix tbody td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.66;
  border-bottom: 1px solid var(--pd-hair);
  border-right: 1px solid var(--pd-hair);
}

.page-products .pd-matrix tbody th:last-child,
.page-products .pd-matrix tbody td:last-child {
  border-right: 0;
}

.page-products .pd-matrix tbody tr:nth-child(odd) {
  background: var(--parchment-100);
}

.page-products .pd-matrix tbody tr:nth-child(even) {
  background: var(--cream-50);
}

.page-products .pd-matrix tbody th {
  font-weight: 700;
  color: var(--crimson-700);
  white-space: nowrap;
}

.page-products .pd-matrix td:nth-child(2) {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--gold-900);
  white-space: nowrap;
}

@media (max-width: 899px) {
  .page-products .pd-matrix__wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .page-products .pd-matrix {
    min-width: 0;
  }

  .page-products .pd-matrix,
  .page-products .pd-matrix tbody,
  .page-products .pd-matrix tr,
  .page-products .pd-matrix th,
  .page-products .pd-matrix td {
    display: block;
    width: 100%;
  }

  .page-products .pd-matrix thead,
  .page-products .pd-matrix__cap {
    display: none;
  }

  .page-products .pd-matrix tbody tr {
    margin-bottom: 14px;
    border: 1px solid var(--pd-hair-strong);
    border-left: 3px solid var(--gold-600);
    background: var(--parchment-100);
  }

  .page-products .pd-matrix tbody tr:nth-child(even) {
    background: var(--parchment-100);
  }

  .page-products .pd-matrix tbody th,
  .page-products .pd-matrix tbody td {
    border: 0;
    padding: 4px 16px;
    white-space: normal;
  }

  .page-products .pd-matrix tbody th {
    padding-top: 16px;
    padding-bottom: 8px;
    font-size: 16px;
    border-bottom: 1px solid var(--pd-hair);
  }

  .page-products .pd-matrix tbody td:last-child {
    padding-bottom: 16px;
  }

  .page-products .pd-matrix td::before {
    content: attr(data-th);
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--slate-500);
  }
}

/* ---------- A-04 自检清单 ---------- */

.page-products .pd-checklist {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--pd-hair-strong);
}

@media (min-width: 900px) {
  .page-products .pd-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
}

.page-products .pd-check {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--pd-hair);
}

.page-products .pd-check__icon {
  flex: 0 0 52px;
  width: 52px;
}

.page-products .pd-check__icon img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.page-products .pd-check__body {
  min-width: 0;
}

.page-products .pd-check__title {
  margin: 4px 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.page-products .pd-check__text {
  margin: 0;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.72;
  color: var(--umber-700);
}

/* ---------- A-05 通往词典 ---------- */

.page-products .pd-path {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--pd-hair-strong);
}

.page-products .pd-path__item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--pd-hair);
}

.page-products .pd-path__no {
  flex: 0 0 44px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--crimson-500);
  padding-top: 3px;
}

.page-products .pd-path__body {
  min-width: 0;
  max-width: 66ch;
}

.page-products .pd-path__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}

.page-products .pd-path__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--umber-700);
}

.page-products .pd-path__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--gold-900);
  text-decoration: none;
  border-bottom: 1px solid var(--line-gold);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-products .pd-path__link:hover,
.page-products .pd-path__link:focus-visible {
  color: var(--crimson-500);
  border-bottom-color: var(--crimson-500);
}

.page-products .pd-path__link:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 3px;
}

/* ---------- A-06 更新记录 ---------- */

.page-products .pd-log-fig {
  margin-bottom: 34px;
}

.page-products .pd-log {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(231, 200, 115, 0.28);
}

.page-products .pd-log__item {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(231, 200, 115, 0.22);
}

@media (min-width: 800px) {
  .page-products .pd-log__item {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 28px;
    align-items: baseline;
  }
}

.page-products .pd-log__when {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold-300);
}

.page-products .pd-log__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(251, 247, 239, 0.86);
}

.page-products .pd-log__foot {
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(251, 247, 239, 0.72);
}

.page-products .pd-log__foot a {
  color: var(--gold-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(231, 200, 115, 0.45);
}

.page-products .pd-log__foot a:hover,
.page-products .pd-log__foot a:focus-visible {
  border-bottom-color: var(--gold-300);
}

.page-products .pd-log__foot a:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
}

/* ---------- 底部横带 ---------- */

.page-products .pd-section--ribbon {
  padding: 44px 0 54px;
  border-top: 1px solid var(--pd-hair-strong);
}

@media (min-width: 900px) {
  .page-products .pd-section--ribbon {
    padding: 52px 0 72px;
  }
}

.page-products .pd-ribbon__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 190px;
  padding: 18px 22px;
  text-decoration: none;
  color: var(--ink-900);
  border: 1px solid var(--pd-hair);
  background: var(--parchment-100);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-products .pd-ribbon__item:hover,
.page-products .pd-ribbon__item:focus-visible {
  border-color: var(--gold-600);
  background: var(--cream-50);
}

.page-products .pd-ribbon__item:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 2px;
}

.page-products .pd-ribbon__no {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--crimson-700);
}

.page-products .pd-ribbon__text {
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- 动效降级 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-products .pd-level__link,
  .page-products .pd-path__link,
  .page-products .pd-ribbon__item {
    transition: none;
  }
}
