.page-products {
  --pd-gap: clamp(18px, 3vw, 34px);
  --pd-hair: rgba(77, 163, 255, 0.16);
  --pd-warm: rgba(255, 106, 31, 0.12);
}

.page-products .pd-topbar {
  padding-top: clamp(18px, 4vw, 34px);
}

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

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

.page-products figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- 首屏 ---------- */
.page-products .pd-hero {
  padding-top: clamp(24px, 4vw, 52px);
}

.page-products .pd-hero__grid {
  display: grid;
  gap: var(--pd-gap);
  align-items: center;
}

.page-products .pd-hero__copy h1 {
  margin: 14px 0 0;
  font-size: clamp(32px, 6.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.page-products .pd-lede {
  margin: 20px 0 0;
  max-width: 36em;
  font-size: 17px;
  line-height: 1.78;
  color: var(--muted);
}

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

.page-products .pd-hero__facts {
  margin-top: 26px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

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

.page-products .pd-console {
  position: relative;
  overflow: hidden;
  background: linear-gradient(158deg, var(--panel-up), var(--panel) 62%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.6vw, 26px);
  box-shadow: var(--shadow-panel);
}

.page-products .pd-console::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 31, 0.34), transparent 66%);
  pointer-events: none;
}

.page-products .pd-console__head,
.page-products .pd-console__foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-products .pd-console__head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.page-products .pd-console__ver {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.page-products .pd-console__body {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px 0;
}

.page-products .pd-slot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(7, 12, 26, 0.6);
  border: 1px solid var(--line);
  font-size: 14px;
}

.page-products .pd-slot__idx {
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.06em;
}

.page-products .pd-slot__name {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-products .pd-slot__time {
  font-size: 13px;
  color: var(--muted);
}

.page-products .pd-console__foot {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.page-products .pd-console__count {
  font-size: 12px;
  color: var(--green);
  letter-spacing: 0.04em;
}

.page-products .pd-console__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(53, 224, 138, 0.16);
}

/* ---------- 章节标题 ---------- */
.page-products .pd-head {
  max-width: 760px;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.page-products .pd-head--wide {
  max-width: 860px;
}

.page-products .pd-head h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4.4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.page-products .pd-head__text {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
  max-width: 38em;
}

/* ---------- 订阅对照 ---------- */
.page-products .pd-plans__grid {
  display: grid;
  gap: var(--pd-gap);
  align-items: start;
}

.page-products .pd-tablewrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  -webkit-overflow-scrolling: touch;
}

.page-products .pd-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}

.page-products .pd-table__caption {
  padding: 18px 18px 10px;
  text-align: left;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.page-products .pd-table th,
.page-products .pd-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
}

.page-products .pd-table thead th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
}

.page-products .pd-table tbody th {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.page-products .pd-table tbody td {
  color: var(--text);
}

.page-products .pd-table__hl {
  background: var(--pd-warm);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 31, 0.28);
}

.page-products .pd-table thead .pd-table__hl {
  color: var(--orange-soft);
  border-top: 2px solid var(--orange);
}

.page-products .pd-table tbody tr:last-child th,
.page-products .pd-table tbody tr:last-child td {
  border-bottom: 0;
}

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

.page-products .pd-plans__figure .media,
.page-products .pd-dl__figure .media,
.page-products .pd-scenes__figure .media,
.page-products .pd-migrate__figure .media,
.page-products .pd-screen__figure .media {
  border-radius: var(--radius-lg);
}

/* ---------- 同屏演示 ---------- */
.page-products .pd-screen__figure {
  margin: 0 0 clamp(26px, 4vw, 40px);
}

.page-products .pd-screen__tabs {
  display: block;
}

.page-products .pd-screen__tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: var(--panel);
  border: 1px solid var(--line);
  width: fit-content;
  max-width: 100%;
}

.page-products .tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.page-products .tab:hover {
  color: var(--text);
  background: rgba(22, 34, 74, 0.7);
}

.page-products .tab[aria-selected="true"] {
  background: var(--panel-up);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(53, 224, 138, 0.5);
}

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

.page-products .pd-screen__panel {
  margin-top: 20px;
}

.page-products .pd-screen__panel:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 6px;
  border-radius: var(--radius-md);
}

.page-products .pd-screen__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}

.page-products .pd-screen__col {
  min-width: 0;
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--line);
}

.page-products .pd-screen__coltitle {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-products .pd-bar {
  display: block;
  height: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(77, 163, 255, 0.6), rgba(77, 163, 255, 0.1));
}

.page-products .pd-bar--a { width: 88%; }
.page-products .pd-bar--b { width: 64%; }
.page-products .pd-bar--c { width: 42%; }

.page-products .pd-screen__colmeta {
  font-size: 11px;
  color: var(--muted);
}

.page-products .pd-screen__note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  max-width: 44em;
}

/* ---------- 下载 ---------- */
.page-products .pd-dl__grid {
  display: grid;
  gap: var(--pd-gap);
  align-items: start;
}

.page-products .pd-dl__plates {
  display: grid;
  gap: var(--pd-gap);
  min-width: 0;
}

.page-products .pd-plate {
  padding: clamp(18px, 3vw, 26px);
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
}

.page-products .pd-plate__ver {
  margin: 10px 0 0;
  font-size: clamp(32px, 5.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--orange);
  line-height: 1;
}

.page-products .pd-plate__list {
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}

.page-products .pd-plate__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.page-products .pd-plate__row dt {
  color: var(--muted);
  font-size: 13px;
}

.page-products .pd-plate__row dd {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  text-align: right;
}

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

.page-products .pd-steps {
  list-style: none;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-products .pd-step {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 6px;
}

.page-products .pd-step::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: -8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(53, 224, 138, 0.45), rgba(53, 224, 138, 0));
}

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

.page-products .pd-step__node {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--panel-up);
  border: 1px solid var(--line);
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.page-products .pd-step__label {
  padding-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

/* ---------- 迁移 ---------- */
.page-products .pd-migrate {
  background: linear-gradient(180deg, rgba(22, 34, 74, 0.55), rgba(7, 12, 26, 0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-products .pd-migrate__grid {
  display: grid;
  gap: var(--pd-gap);
  align-items: center;
}

.page-products .pd-migrate__copy h2 {
  margin: 12px 0 0;
  font-size: clamp(25px, 4.2vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.page-products .pd-migrate__copy > p {
  margin: 16px 0 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.page-products .pd-migrate__list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.page-products .pd-migrate__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.page-products .pd-migrate__links a,
.page-products .pd-cta__inner a.btn {
  color: var(--blue);
}

.page-products .pd-migrate__links a {
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid rgba(77, 163, 255, 0.4);
  padding-bottom: 2px;
}

.page-products .pd-migrate__links a:hover {
  color: var(--orange-soft);
  border-bottom-color: rgba(255, 154, 61, 0.6);
}

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

/* ---------- 用法卡片 ---------- */
.page-products .pd-scenes {
  display: grid;
  gap: var(--pd-gap);
}

.page-products .pd-scene {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.page-products .pd-scene::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 106, 31, 0));
}

.page-products .pd-scene:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-panel);
}

.page-products .pd-scene__tag {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--green);
}

.page-products .pd-scene__title {
  margin: 12px 0 0;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.page-products .pd-scene__text {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.page-products .pd-scene .bullets {
  margin-top: 18px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.page-products .pd-scenes__figure {
  margin: clamp(28px, 4vw, 48px) 0 0;
}

/* ---------- 收尾 ---------- */
.page-products .pd-cta__inner {
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--panel-up), var(--panel) 70%);
  border: 1px solid var(--line);
}

.page-products .pd-cta__inner h2 {
  margin: 12px 0 0;
  font-size: clamp(24px, 3.8vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.page-products .pd-cta__text {
  margin: 16px 0 0;
  max-width: 38em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

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

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

@media (min-width: 900px) {
  .page-products .pd-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .page-products .pd-step {
    flex-direction: column;
    padding-bottom: 0;
  }

  .page-products .pd-step::after {
    left: 50px;
    right: 6px;
    top: 20px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, rgba(53, 224, 138, 0.4), rgba(53, 224, 138, 0));
  }

  .page-products .pd-step__label {
    padding-top: 4px;
  }

  .page-products .pd-scenes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .page-products .pd-scene--tall {
    min-height: 330px;
  }

  .page-products .pd-scene {
    min-height: 280px;
    margin-top: 42px;
  }

  .page-products .pd-scene--short {
    min-height: 250px;
    margin-top: 84px;
  }
}

@media (min-width: 1024px) {
  .page-products .pd-hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(32px, 5vw, 76px);
  }

  .page-products .pd-plans__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(26px, 3.6vw, 48px);
  }

  .page-products .pd-dl__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(26px, 3.6vw, 48px);
  }

  .page-products .pd-migrate__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(30px, 4.4vw, 64px);
  }

  .page-products .pd-scenes__figure .media {
    max-width: 1040px;
  }
}

@media (max-width: 720px) {
  .page-products .pd-screen__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .pd-console__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .page-products .pd-slot {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .page-products .pd-slot__time {
    grid-column: 2;
    font-size: 12px;
  }
}

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

  .page-products .pd-scene:hover {
    transform: none;
  }
}

.page-products {
  --cols: inherit;
}
