.page-products {
  --pp-line: rgba(212, 175, 55, 0.26);
  --pp-panel: rgba(19, 44, 74, 0.62);
  --pp-gap: clamp(18px, 4vw, 34px);
}

.page-products .section {
  position: relative;
  padding: clamp(38px, 7vw, 82px) 0;
}

.page-products .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.page-products .section-title {
  margin: 12px 0 0;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: var(--white);
}

.page-products .section-lede {
  margin: 16px 0 0;
  max-width: 68ch;
  font-size: clamp(14.5px, 1.6vw, 16.5px);
  line-height: 1.85;
  color: var(--mist);
}

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

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

/* ---------- 首屏 ---------- */
.page-products .manual-hero {
  position: relative;
  display: grid;
  gap: var(--pp-gap);
  padding: clamp(18px, 4vw, 38px) 0 clamp(36px, 6vw, 70px);
  isolation: isolate;
}

.page-products .manual-hero::after {
  content: "";
  position: absolute;
  top: -6%;
  right: 0;
  width: min(50%, 460px);
  height: 82%;
  background: linear-gradient(155deg, rgba(212, 175, 55, 0.16), rgba(0, 229, 255, 0.05) 55%, transparent 82%);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
  pointer-events: none;
}

.page-products .hero-copy {
  max-width: 640px;
}

.page-products h1 {
  margin: 14px 0 0;
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.14;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--white);
}

.page-products .hero-copy h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.page-products .hero-lede {
  margin: 18px 0 0;
  max-width: 56ch;
  font-size: clamp(14.5px, 1.8vw, 17px);
  line-height: 1.9;
  color: var(--mist);
}

.page-products .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-products .hero-note {
  margin: 20px 0 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(212, 175, 55, 0.82);
}

.page-products .hero-figure {
  margin: 0;
  border: 1px solid var(--pp-line);
  background: var(--ink-deep);
  box-shadow: 16px 16px 0 -8px rgba(212, 175, 55, 0.12);
}

@media (min-width: 900px) {
  .page-products .manual-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
  }
}

/* ---------- 配置表 ---------- */
.page-products .spec-layout {
  display: grid;
  gap: var(--pp-gap);
  margin-top: 30px;
}

@media (min-width: 900px) {
  .page-products .spec-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

.page-products .spec-table {
  border: 1px solid var(--pp-line);
  background: linear-gradient(180deg, var(--pp-panel), rgba(7, 19, 34, 0.92));
}

.page-products .spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .spec-head,
.page-products .spec-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
}

.page-products .spec-head {
  background: rgba(212, 175, 55, 0.1);
  border-bottom: 1px solid var(--pp-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-products .spec-row {
  border-bottom: 1px solid rgba(169, 183, 201, 0.14);
  transition: background 0.2s var(--ease);
}

.page-products .spec-row:last-child {
  border-bottom: 0;
}

.page-products .spec-row:hover {
  background: rgba(0, 229, 255, 0.045);
}

.page-products .spec-key {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.page-products .spec-val {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mist);
}

.page-products .spec-val.mono {
  font-size: 15px;
  color: var(--white);
}

.page-products .spec-check {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.page-products input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-products .spec-box {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: rgba(7, 19, 34, 0.7);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-products .spec-box::after {
  content: "";
  width: 10px;
  height: 5px;
  margin-top: -2px;
  border-left: 2px solid var(--ink-deep);
  border-bottom: 2px solid var(--ink-deep);
  transform: rotate(-45deg) scale(0);
  transition: transform 0.18s var(--ease);
}

.page-products input[type="checkbox"]:checked + .spec-box {
  background: var(--gold);
  border-color: var(--gold);
}

.page-products input[type="checkbox"]:checked + .spec-box::after {
  transform: rotate(-45deg) scale(1);
}

.page-products input[type="checkbox"]:focus-visible + .spec-box {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-products .spec-figure {
  margin: 0;
  border: 1px solid rgba(169, 183, 201, 0.2);
  background: var(--ink-deep);
}

.page-products .spec-annot {
  margin-top: 20px;
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--mist);
  padding-left: 14px;
  border-left: 2px solid rgba(212, 175, 55, 0.5);
}

@media (max-width: 719px) {
  .page-products .spec-head {
    display: none;
  }

  .page-products .spec-row {
    grid-template-columns: 40px minmax(0, 1fr);
    row-gap: 6px;
    padding: 16px 14px;
  }

  .page-products .spec-check {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-items: flex-start;
    padding-top: 2px;
  }

  .page-products .spec-key {
    grid-column: 2;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--gold);
  }

  .page-products .spec-val {
    grid-column: 2;
    font-size: 14px;
  }

  .page-products .spec-val::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 34px;
    margin-right: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--mist);
    opacity: 0.75;
  }
}

/* ---------- 三步下载 ---------- */
.page-products .path-layout {
  display: grid;
  gap: var(--pp-gap);
  margin-top: 30px;
}

@media (min-width: 960px) {
  .page-products .path-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

.page-products .path-rail {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .path-rail::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 12px;
  bottom: 36px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(0, 229, 255, 0.5) 62%, rgba(212, 175, 55, 0.06));
}

.page-products .path-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 30px;
}

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

.page-products .path-node {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--ink-deep);
  border: 1px solid rgba(212, 175, 55, 0.42);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 50% 100%, 0 76%);
}

.page-products .path-title {
  margin: 8px 0 8px;
  font-size: 19px;
  color: var(--white);
}

.page-products .path-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

.page-products .path-figure {
  margin: 0;
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: var(--ink-deep);
}

/* ---------- 游戏库 ---------- */
.page-products .library-grid {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.page-products .library-card {
  padding: 20px 22px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: linear-gradient(160deg, rgba(19, 44, 74, 0.85), rgba(7, 19, 34, 0.94));
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease);
}

.page-products .library-card:hover {
  border-color: rgba(0, 229, 255, 0.42);
  transform: translateY(-3px);
}

.page-products .library-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  color: var(--white);
}

.page-products .library-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mist);
}

@media (min-width: 900px) {
  .page-products .library-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
  }

  .page-products .library-card:nth-child(1) {
    grid-column: span 5;
  }

  .page-products .library-card:nth-child(2) {
    grid-column: span 7;
  }

  .page-products .library-card:nth-child(3),
  .page-products .library-card:nth-child(4),
  .page-products .library-card:nth-child(5) {
    grid-column: span 4;
  }

  .page-products .library-card:nth-child(6) {
    grid-column: span 12;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 18px;
  }

  .page-products .library-card:nth-child(6) p {
    flex: 1 1 320px;
  }
}

.page-products .library-figure {
  margin: 22px 0 0;
  border: 1px solid rgba(169, 183, 201, 0.2);
}

/* ---------- 四项能力 ---------- */
.page-products .ability-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.page-products .ability-bg {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: -1;
}

.page-products .ability-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.page-products .ability-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(11, 29, 51, 0.75) 42%, var(--ink) 100%);
}

.page-products .ability-grid {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

@media (min-width: 760px) {
  .page-products .ability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
  }

  .page-products .ability-item:nth-child(even) {
    margin-top: 16px;
  }
}

.page-products .ability-item {
  padding: 22px 24px;
  border-left: 2px solid rgba(212, 175, 55, 0.5);
  background: rgba(7, 19, 34, 0.66);
}

.page-products .ability-item h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  color: var(--white);
}

.page-products .ability-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--mist);
}

/* ---------- 校验与拦截 ---------- */
.page-products .hash-section .disclosure {
  margin-top: 16px;
}

.page-products .hash-section .disclosure-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  text-align: left;
}

.page-products .disclosure-mark {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.page-products .disclosure-mark::before,
.page-products .disclosure-mark::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.24s var(--ease);
}

.page-products .disclosure-mark::after {
  transform: rotate(90deg);
}

.page-products [data-expanded="true"] .disclosure-mark::after {
  transform: rotate(0deg);
}

.page-products .hash-code {
  margin: 14px 0 0;
  padding: 12px 16px;
  background: var(--ink-deep);
  border: 1px solid rgba(0, 229, 255, 0.22);
  color: var(--cyan);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: auto;
}

/* ---------- 收尾清单 ---------- */
.page-products .final-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .final-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(169, 183, 201, 0.18);
  background: rgba(7, 19, 34, 0.5);
  cursor: pointer;
  font-size: 15px;
  line-height: 1.75;
  color: var(--paper);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-products .final-item .spec-box {
  margin-top: 2px;
}

.page-products .final-item:has(input:checked) {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.06);
}

.page-products .outro {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--pp-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.page-products .outro p {
  margin: 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--mist);
}

.page-products .outro a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.36);
}

.page-products .outro a:hover {
  border-bottom-color: var(--cyan);
}

@media (prefers-reduced-motion: reduce) {
  .page-products * {
    animation: none !important;
    transition: none !important;
  }

  .page-products .library-card:hover {
    transform: none;
  }
}
