.page-products {
  --pd-radius: 4px;
  --pd-shadow: 0 16px 34px rgba(0, 0, 0, .38);
  background-color: var(--ink-bg);
  color: var(--text);
  font-family: var(--font-sans);
  position: relative;
  overflow-x: clip;
  padding-bottom: 0;
}

.page-products .page-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
  box-sizing: border-box;
}

/* ---------- 面包屑 ---------- */
.page-products .breadcrumbs {
  padding-block: 20px 2px;
  font-size: 13px;
  color: var(--muted);
}
.page-products .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-products .breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-products .breadcrumbs li + li::before {
  content: "/";
  color: var(--line);
}
.page-products .breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.page-products .breadcrumbs a:hover { color: var(--cyan); }
.page-products .breadcrumbs [aria-current="page"] { color: var(--text); }

/* ---------- 按钮 ---------- */
.page-products .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.page-products .btn-solid {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04211C;
}
.page-products .btn-solid:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan-dim);
  transform: translateY(-2px);
}
.page-products .btn-ghost {
  background: transparent;
  color: var(--cyan);
  border-color: var(--line);
}
.page-products .btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(56, 225, 200, .08);
  transform: translateY(-2px);
}
.page-products .btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- 首屏 ---------- */
.pd-hero {
  position: relative;
  padding-block: clamp(24px, 4vw, 46px) clamp(34px, 5vw, 66px);
  isolation: isolate;
}
.pd-hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(56, 225, 200, .14), transparent 68%);
  pointer-events: none;
  z-index: -1;
}
.pd-hero-grid {
  display: grid;
  gap: 34px;
  align-items: center;
}
.pd-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--cyan);
  margin: 0 0 16px;
}
.pd-hero h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.16;
  letter-spacing: -.02em;
  font-weight: 900;
  margin: 0 0 18px;
  max-width: 19ch;
}
.page-products .lede {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 48em;
}
.pd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.pd-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}
.pd-hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pd-fact-num {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.pd-fact-label {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .04em;
}
.pd-hero-media {
  margin: 0;
  position: relative;
}
.pd-hero-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--pd-radius);
  background: var(--ink-card);
}
.pd-hero-media::before {
  content: "";
  position: absolute;
  left: -14px;
  bottom: -14px;
  width: 96px;
  height: 96px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  opacity: .6;
  pointer-events: none;
}

@media (min-width: 920px) {
  .pd-hero-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: 56px;
  }
  .pd-hero-media { transform: translateY(20px); }
}

/* ---------- 章节目录带 ---------- */
.pd-toc {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-card);
}
.pd-toc ol {
  display: flex;
  list-style: none;
  margin: 0;
  padding-block: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.pd-toc ol::-webkit-scrollbar { display: none; }
.pd-toc li {
  flex: 0 0 auto;
  border-right: 1px solid var(--line);
}
.pd-toc li:first-child { border-left: 1px solid var(--line); }
.pd-toc a {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 15px 20px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.pd-toc a:hover,
.pd-toc a:focus-visible {
  color: var(--cyan);
  background: rgba(56, 225, 200, .07);
}
.pd-toc a span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--cyan-dim);
  letter-spacing: .06em;
}

/* ---------- 章节通用 ---------- */
.pd-section {
  position: relative;
  padding-block: clamp(48px, 7vw, 92px);
}
.pd-section-alt {
  background: linear-gradient(180deg, rgba(16, 42, 35, .55), rgba(11, 31, 26, 0) 78%);
}
.pd-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.pd-index {
  font-family: var(--font-mono);
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.04em;
  color: var(--cyan);
  opacity: .88;
  flex: 0 0 auto;
}
.pd-head-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-top: 6px;
}
.pd-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.25;
  margin: 0;
}
.pd-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  letter-spacing: .16em;
  line-height: 1;
  color: var(--muted);
  margin: 0;
  padding-top: 2px;
  max-height: 110px;
  white-space: nowrap;
}
.pd-lede {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 64ch;
}
@media (max-width: 700px) {
  .pd-vertical { display: none; }
}

/* ---------- 筛选 ---------- */
.pd-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.page-products .filter-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  padding: 8px 16px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s, box-shadow .2s;
}
.page-products .filter-btn:hover {
  color: var(--text);
  border-color: var(--cyan-dim);
}
.page-products .filter-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.page-products .filter-btn.is-active {
  color: #F4ECFF;
  background: rgba(139, 92, 246, .24);
  border-color: var(--violet);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .4);
}

/* ---------- 终端翻面卡 ---------- */
.pd-terminal-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 620px) {
  .pd-terminal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .pd-terminal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.page-products .flip-card {
  perspective: 1400px;
  height: 322px;
}
.page-products .flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 420ms cubic-bezier(.4, .15, .2, 1);
}
.page-products .flip-card:hover .flip-card-inner,
.page-products .flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}
.page-products .flip-face,
.page-products .flip-back {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--pd-radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.page-products .flip-face {
  background: var(--ink-card);
  transition: border-color .25s;
}
.page-products .flip-card:hover .flip-face { border-color: var(--cyan-dim); }
.page-products .flip-back {
  background: var(--ink-lift);
  transform: rotateY(180deg);
  border-color: var(--cyan-dim);
}

.pd-tag {
  align-self: flex-start;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 3px 8px;
  margin-bottom: 14px;
}
.pd-terminal-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.01em;
  margin: 0 0 18px;
  line-height: 1.3;
}
.pd-terminal-req {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .06em;
  margin: 0 0 4px;
}
.pd-terminal-ver {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  margin: 0 0 10px;
}
.pd-terminal-sub {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.pd-flip-hint {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--cyan-dim);
  display: flex;
  align-items: center;
  gap: 7px;
}
.pd-flip-hint::before {
  content: "↻";
  font-size: 14px;
  line-height: 1;
}

.pd-back-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--cyan);
  margin: 0 0 12px;
}
.pd-back-list {
  list-style: none;
  counter-reset: pdstep;
  margin: 0 0 auto;
  padding: 0;
}
.pd-back-list li {
  counter-increment: pdstep;
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.pd-back-list li:last-child { border-bottom: none; }
.pd-back-list li::before {
  content: counter(pdstep, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  flex: 0 0 auto;
  padding-top: 3px;
}
.pd-mini-link {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
  align-self: flex-start;
}
.pd-mini-link:hover { border-bottom-color: var(--cyan); }

/* ---------- 图文分栏 ---------- */
.pd-split {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  .pd-split {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 52px;
  }
  .pd-figure-left { margin-top: 26px; }
}
.pd-figure {
  margin: 0;
}
.pd-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--pd-radius);
  background: var(--ink-card);
}
.pd-figure figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  padding-left: 12px;
  border-left: 2px solid var(--line);
}

.pd-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.pd-bullets li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.82;
  color: var(--muted);
}
.pd-bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--cyan-dim);
  transform: rotate(45deg);
}
.pd-bullets strong {
  color: var(--text);
  font-weight: 800;
}

/* ---------- 工具条带 ---------- */
.pd-tools-intro {
  display: grid;
  gap: 26px;
  margin-bottom: 34px;
}
@media (min-width: 900px) {
  .pd-tools-intro {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    gap: 50px;
    align-items: center;
  }
}
.pd-tools-intro .pd-lede { margin-bottom: 0; }

.pd-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 2px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.pd-rail::-webkit-scrollbar { height: 6px; }
.pd-rail::-webkit-scrollbar-track { background: transparent; }
.pd-rail::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}
.pd-tool {
  flex: 0 0 268px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 24px;
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--pd-radius);
  transition: transform .25s, border-color .25s, box-shadow .25s, background-color .25s;
}
.pd-tool:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  background: var(--ink-lift);
  box-shadow: var(--pd-shadow);
}
.pd-tool-index {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--gold);
  margin-bottom: 18px;
}
.pd-tool h3 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.01em;
  margin: 0 0 10px;
}
.pd-tool p {
  font-size: 14px;
  line-height: 1.82;
  color: var(--muted);
  margin: 0;
}
.pd-rail-hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 0;
}
@media (min-width: 900px) {
  .pd-rail-hint { display: none; }
}

/* ---------- 三步设置 ---------- */
.pd-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pd-step {
  display: grid;
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.pd-step:first-child { border-top: none; padding-top: 8px; }
@media (min-width: 760px) {
  .pd-step {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
  }
}
.pd-step-dot {
  display: block;
  color: var(--cyan-dim);
  transition: color .25s;
}
.pd-step-dot svg {
  display: block;
  width: 44px;
  height: 44px;
}
.pd-step.is-current .pd-step-dot {
  color: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(56, 225, 200, .45));
}
.pd-step-body h3 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.01em;
  margin: 0 0 10px;
}
.pd-step-body > p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 14px;
}
.pd-trap {
  display: block;
  font-size: 13.5px !important;
  line-height: 1.78 !important;
  color: var(--text) !important;
  background: var(--ink-card);
  border-left: 2px solid var(--gold);
  border-radius: 0 3px 3px 0;
  padding: 13px 16px;
  margin: 0 !important;
}
.pd-trap span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ---------- 版本节奏 ---------- */
.pd-release {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  isolation: isolate;
}
.pd-release-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: .16;
  z-index: -2;
}
.pd-release::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--deep) 10%, rgba(5, 16, 13, .74) 58%, rgba(5, 16, 13, .34));
  z-index: -1;
}
.pd-release-inner { position: relative; }
.pd-release-grid {
  display: grid;
  gap: 34px;
  align-items: start;
}
@media (min-width: 900px) {
  .pd-release-grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 56px;
  }
}
.pd-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan-dim);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.pd-inline-link::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 13px;
}
.pd-inline-link:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

.pd-cadence {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.pd-cadence li {
  background: rgba(16, 42, 35, .84);
  border: 1px solid var(--line);
  border-radius: var(--pd-radius);
  padding: 20px 22px;
  transition: border-color .25s, background-color .25s;
}
.pd-cadence li:hover {
  border-color: var(--cyan-dim);
  background: rgba(22, 56, 46, .9);
}
.pd-cadence-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.pd-cadence h3 {
  font-size: 17px;
  font-weight: 900;
  margin: 0 0 8px;
}
.pd-cadence p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

/* ---------- 下载前确认 ---------- */
.pd-confirm-grid {
  display: grid;
  gap: 34px;
  align-items: start;
}
@media (min-width: 900px) {
  .pd-confirm-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 52px;
  }
}
.pd-check {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pd-check li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 17px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(16, 42, 35, .5), transparent 82%);
  transition: background-color .2s, border-color .2s;
}
.pd-check li:first-child { border-top: 1px solid var(--line); }
.pd-check li:hover {
  background: var(--ink-card);
  border-bottom-color: var(--cyan-dim);
}
.pd-check-mark {
  width: 22px;
  height: 22px;
  border: 1px solid var(--cyan-dim);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  margin-top: 2px;
}
.pd-check-body { display: block; }
.pd-check-body strong {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 5px;
}
.pd-check-body > span {
  display: block;
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
}

/* ---------- 结尾行动带 ---------- */
.pd-cta {
  background: var(--deep);
  border-top: 1px solid var(--line);
}
.pd-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: 38px;
}
@media (min-width: 860px) {
  .pd-cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
}
.pd-cta-inner p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text);
  max-width: 60ch;
}
.pd-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 0 0 auto;
}

/* ---------- 入场动画 ---------- */
.page-products [data-reveal] {
  animation: pd-reveal 520ms cubic-bezier(.3, .1, .2, 1) both;
}
@keyframes pd-reveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page-products [data-reveal] { animation: none; }
  .page-products .flip-card-inner { transition: none; }
  .page-products .pd-tool:hover,
  .page-products .btn:hover { transform: none; }
}
