.page-products {
  --pl-cut: 24px;
  --pl-hair: rgba(106, 82, 54, 0.45);
  overflow-x: clip;
}

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

/* ---------- 首屏 ---------- */
.page-products .pl-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px 0 52px;
  border-top: 1px solid var(--line-copper);
}

.page-products .pl-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.page-products .pl-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(0.75) contrast(1.05);
}

.page-products .pl-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(10, 12, 17, 0.72), rgba(10, 12, 17, 0.97) 62%),
    linear-gradient(100deg, rgba(10, 12, 17, 0.97) 0%, rgba(10, 12, 17, 0.78) 52%, rgba(10, 12, 17, 0.42) 100%);
}

.page-products .pl-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.page-products .pl-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 4.1rem);
  line-height: 1.18;
  color: var(--paper);
  max-width: min(100%, 15em);
}

.page-products .pl-hero-lead {
  margin: 0;
  max-width: 33em;
  font-size: clamp(1rem, 2.1vw, 1.1875rem);
  line-height: 1.85;
  color: var(--mist);
}

.page-products .pl-hero-lead::first-line {
  color: var(--paper);
}

.page-products .pl-hero-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .pl-hero-jump a {
  display: inline-block;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  text-decoration: none;
  border: 1px solid rgba(201, 162, 39, 0.42);
  border-radius: 2px;
  background: rgba(201, 162, 39, 0.06);
  transition: border-color 0.26s var(--ease), background 0.26s var(--ease), color 0.26s var(--ease);
}

.page-products .pl-hero-jump a:hover,
.page-products .pl-hero-jump a:focus-visible {
  border-color: var(--gold-bright);
  background: rgba(201, 162, 39, 0.18);
  color: var(--paper);
}

/* ---------- 区块骨架 ---------- */
.page-products .pl-section {
  padding: 48px 0;
}

.page-products .pl-section + .pl-section {
  border-top: 1px solid var(--pl-hair);
}

.page-products .pl-section-head {
  display: grid;
  gap: 10px;
  max-width: 44em;
  margin-bottom: 28px;
}

.page-products .pl-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.55rem, 3.6vw, 2.5rem);
  line-height: 1.28;
  color: var(--paper);
}

.page-products .pl-section-head p {
  margin: 0;
  font-size: 0.9875rem;
  line-height: 1.85;
  color: var(--mist);
}

/* ---------- 卡墙 ---------- */
.page-products .pl-wall-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.page-products .pl-card {
  --pl-accent: var(--gold);
  position: relative;
  display: grid;
  gap: 12px;
  padding: 58px 22px 24px;
  background: linear-gradient(158deg, rgba(106, 82, 54, 0.18) 0%, rgba(18, 24, 38, 0.96) 40%, rgba(10, 12, 17, 0.98) 100%);
  border: 1px solid var(--line-copper);
  clip-path: polygon(var(--pl-cut) 0, 100% 0, 100% calc(100% - var(--pl-cut)), calc(100% - var(--pl-cut)) 100%, 0 100%, 0 var(--pl-cut));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.page-products .pl-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--pl-cut) + 10px);
  width: 54px;
  height: 3px;
  background: var(--pl-accent);
  opacity: 0.9;
}

.page-products .pl-card:hover,
.page-products .pl-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: linear-gradient(158deg, rgba(201, 162, 39, 0.16) 0%, rgba(20, 27, 43, 0.97) 40%, rgba(10, 12, 17, 0.98) 100%);
}

.page-products .pl-card-num {
  position: absolute;
  top: 16px;
  left: 22px;
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--pl-accent);
}

.page-products .pl-card-issue {
  position: absolute;
  top: 15px;
  right: 20px;
  padding: 1px 7px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--gold-bright);
  border: 1px solid rgba(201, 162, 39, 0.42);
  border-radius: 2px;
  background: rgba(201, 162, 39, 0.08);
}

.page-products .pl-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--paper);
}

.page-products .pl-card-body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-products .pl-card-fit {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--mist);
}

.page-products .pl-chip {
  display: inline-block;
  margin-right: 7px;
  padding: 1px 8px;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--jade);
  border: 1px solid rgba(95, 168, 147, 0.45);
  border-radius: 2px;
  background: rgba(28, 58, 52, 0.6);
}

.page-products .pl-card-link {
  justify-self: start;
  margin-top: 2px;
  padding-bottom: 2px;
  font-size: 0.9375rem;
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 39, 0.4);
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.page-products .pl-card-link:hover,
.page-products .pl-card-link:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--gold-bright);
}

/* ---------- 分类展开 ---------- */
.page-products .pl-detail {
  display: grid;
  gap: 22px;
  padding: 30px 0;
  position: relative;
}

.page-products .pl-detail + .pl-detail {
  border-top: 1px solid var(--pl-hair);
}

.page-products .pl-detail:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 62%;
  height: 1px;
  background: linear-gradient(90deg, var(--line-gold), transparent);
  transform: rotate(-0.7deg);
  transform-origin: left center;
}

.page-products .pl-detail-text h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.38;
  color: var(--paper);
}

.page-products .pl-detail-text p {
  margin: 0 0 14px;
  max-width: 34em;
  font-size: 0.9875rem;
  line-height: 1.85;
  color: var(--mist);
}

.page-products .pl-detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pl-detail-list li {
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
  border-left: 2px solid var(--gold);
  background: rgba(201, 162, 39, 0.07);
}

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

.page-products .pl-media {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--pl-hair);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.page-products .pl-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.04);
}

.page-products .pl-media + .media-caption,
.page-products .pl-figure .media-caption {
  margin-top: 8px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 三步路径 ---------- */
.page-products .pl-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pl-step {
  position: relative;
  padding: 24px 20px 20px;
  background: linear-gradient(160deg, rgba(18, 24, 38, 0.96), rgba(10, 12, 17, 0.96));
  border: 1px solid var(--pl-hair);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.page-products .pl-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--gold);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.page-products .pl-step h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.4;
  color: var(--paper);
}

.page-products .pl-step > p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-products .pl-step .note {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--mist);
}

.page-products .pl-path-figure {
  margin-top: 26px;
}

/* ---------- 版本适配 ---------- */
.page-products .pl-version-figure {
  margin-bottom: 24px;
}

.page-products .pl-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--pl-hair);
  background: rgba(18, 24, 38, 0.6);
  -webkit-overflow-scrolling: touch;
}

.page-products .pl-version-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.page-products .pl-version-table caption {
  padding: 12px 14px 10px;
  text-align: left;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.page-products .pl-version-table th {
  padding: 10px 14px 12px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--line-gold);
  white-space: nowrap;
}

.page-products .pl-version-table td {
  padding: 14px;
  vertical-align: top;
  line-height: 1.72;
  color: var(--mist);
  border-bottom: 1px solid rgba(106, 82, 54, 0.25);
}

.page-products .pl-version-table tbody tr:nth-child(odd) {
  background: rgba(10, 12, 17, 0.55);
}

.page-products .pl-version-table tbody tr:hover {
  background: rgba(201, 162, 39, 0.08);
}

.page-products .pl-version-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--jade);
  border: 1px solid rgba(95, 168, 147, 0.45);
  border-radius: 2px;
  background: rgba(28, 58, 52, 0.55);
  white-space: nowrap;
}

.page-products .pl-note-inline {
  margin: 18px 0 0;
  max-width: 42em;
  padding-left: 14px;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--mist);
  border-left: 2px solid var(--jade);
}

/* ---------- 公告联动 ---------- */
.page-products .pl-announce {
  padding: 26px 22px;
  background: linear-gradient(120deg, rgba(28, 58, 52, 0.9) 0%, rgba(18, 24, 38, 0.96) 62%, rgba(10, 12, 17, 0.96) 100%);
  border-left: 3px solid var(--jade);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.page-products .pl-announce-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}

.page-products .pl-announce h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.4;
  color: var(--paper);
}

.page-products .pl-announce p {
  margin: 0 0 14px;
  max-width: 40em;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--mist);
}

.page-products .pl-announce .btn {
  margin-top: 4px;
  text-decoration: none;
}

/* ---------- 帮助区 ---------- */
.page-products .pl-help-grid {
  display: grid;
  gap: 16px;
}

.page-products .pl-help-card {
  display: grid;
  gap: 10px;
  padding: 22px 20px;
  background: linear-gradient(160deg, rgba(18, 24, 38, 0.9), rgba(10, 12, 17, 0.94));
  border: 1px solid var(--pl-hair);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  transition: border-color 0.28s var(--ease), transform 0.28s var(--ease);
}

.page-products .pl-help-card:hover,
.page-products .pl-help-card:focus-within {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.page-products .pl-help-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--paper);
}

.page-products .pl-help-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-products .pl-help-card--contact {
  border-color: rgba(201, 162, 39, 0.42);
  background: linear-gradient(160deg, rgba(106, 82, 54, 0.22), rgba(18, 24, 38, 0.94));
}

.page-products .pl-help-card--contact .btn {
  justify-self: start;
  margin-top: 4px;
  text-decoration: none;
}

.page-products .pl-closing {
  margin: 26px 0 0;
  max-width: 44em;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--mist);
}

.page-products .pl-closing a {
  color: var(--jade);
  text-decoration: none;
  border-bottom: 1px solid rgba(95, 168, 147, 0.45);
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.page-products .pl-closing a:hover,
.page-products .pl-closing a:focus-visible {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

/* ---------- 断点 ---------- */
@media (min-width: 700px) {
  .page-products .pl-hero {
    padding: 34px 0 68px;
  }

  .page-products .pl-section {
    padding: 60px 0;
  }

  .page-products .pl-wall-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .page-products .pl-card:nth-child(2) {
    margin-top: 54px;
  }

  .page-products .pl-card:nth-child(4) {
    margin-top: 54px;
  }

  .page-products .pl-brand,
  .page-products .pl-help-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-products .pl-help-card--contact {
    grid-column: 1 / -1;
  }

  .page-products .pl-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .page-products .pl-step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 40px;
    right: -16px;
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    transform: rotate(-12deg);
  }
}

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

  .page-products .pl-section-head {
    margin-bottom: 36px;
  }

  .page-products .pl-detail {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.84fr);
    gap: 46px;
    align-items: center;
    padding: 38px 0;
  }

  .page-products .pl-detail--flip .pl-detail-text {
    order: 2;
  }

  .page-products .pl-detail--flip .pl-detail-media {
    order: 1;
  }

  .page-products .pl-wall-grid {
    gap: 24px;
  }

  .page-products .pl-card {
    padding: 62px 26px 28px;
  }

  .page-products .pl-card-num {
    left: 26px;
  }

  .page-products .pl-card-issue {
    right: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pl-card,
  .page-products .pl-help-card,
  .page-products .pl-hero-jump a,
  .page-products .pl-card-link,
  .page-products .pl-closing a {
    transition: none;
  }

  .page-products .pl-card:hover,
  .page-products .pl-card:focus-within,
  .page-products .pl-help-card:hover,
  .page-products .pl-help-card:focus-within {
    transform: none;
  }
}
