.page-products {
  --pt-rail-w: 168px;
  --pt-code-col: 92px;
  --pt-veil: rgba(242, 193, 78, 0.08);
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

/* ---------- 面包屑 ---------- */
.page-products .pt-crumb {
  padding-top: 20px;
}

/* ---------- 首屏 ---------- */
.page-products .pt-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(29, 74, 62, 0.3) 0 1px, transparent 1px 76px),
    linear-gradient(158deg, var(--ink-800), var(--ink-900) 68%);
}

.page-products .pt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 6% 0%, var(--pt-veil), transparent 58%);
}

.page-products .pt-hero::after {
  content: "";
  position: absolute;
  top: -14%;
  left: 34%;
  width: 1px;
  height: 132%;
  background: linear-gradient(180deg, transparent, rgba(242, 193, 78, 0.5) 42%, transparent);
  transform: rotate(22deg);
  pointer-events: none;
}

.page-products .pt-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  padding-block: 34px 46px;
}

.page-products .pt-codes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.page-products .pt-codes li {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.page-products .pt-codes__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.page-products .pt-codes__name {
  font-size: 12px;
  color: var(--faint);
}

.page-products .pt-hero__core {
  min-width: 0;
}

.page-products .pt-hero__core h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(28px, 7vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 14px 0 16px;
  color: var(--text);
}

.page-products .pt-hero__lede {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 60ch;
}

.page-products .pt-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  margin-bottom: 28px;
}

.page-products .pt-hero__facts .stat {
  border-left: 1px solid var(--line);
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-products .pt-hero__facts .stat__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}

.page-products .pt-hero__facts .stat__label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.page-products .pt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-products .pt-hero__side {
  min-width: 0;
}

.page-products .pt-hero__figure {
  margin: 0 0 18px;
  aspect-ratio: 4 / 3;
}

.page-products .pt-gauge {
  border: 1px solid var(--line);
  background: var(--num-bg);
  padding: 14px;
}

.page-products .pt-gauge__head {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.page-products .pt-gauge__head .num {
  color: var(--gold);
  font-weight: 700;
  margin-right: 6px;
}

.page-products .pt-gauge__track {
  position: relative;
  height: 10px;
  background: var(--ink-700);
  border: 1px solid var(--line);
}

.page-products .pt-gauge__band {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12%;
  width: 44%;
  background: linear-gradient(90deg, rgba(242, 193, 78, 0.45), var(--gold));
  box-shadow: var(--glow);
}

.page-products .pt-gauge__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--faint);
}

.page-products .pt-gauge__foot {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--gold-soft);
}

/* ---------- 布局与章节索引 ---------- */
.page-products .pt-layout {
  display: grid;
  gap: 0;
}

.page-products .pt-rail {
  border-bottom: 1px solid var(--line);
  padding-top: 16px;
}

.page-products .pt-rail .chapter-index {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.page-products .pt-rail .chapter-index__link {
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.page-products .pt-rail .chapter-index__link:hover {
  color: var(--gold-soft);
}

.page-products .pt-rail .chapter-index__link[aria-current="true"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.page-products .pt-body {
  min-width: 0;
}

.page-products .pt-body > section {
  padding-block: 46px;
  border-top: 1px solid var(--line);
}

.page-products .pt-body > section:first-child {
  border-top: 0;
  padding-top: 34px;
}

/* ---------- 通用小件 ---------- */
.page-products .pt-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.page-products .pt-kicker .anchor-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.page-products .pt-note {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 78ch;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

/* ---------- 分类图标与标签带 ---------- */
.page-products .pt-iconfig {
  margin: 0 0 22px;
  max-width: 420px;
  aspect-ratio: 4 / 3;
}

.page-products .pt-iconfig--right {
  margin-left: auto;
  max-width: 360px;
}

.page-products .pt-tabs__bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: thin;
}

.page-products .filter-bar__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-products .filter-bar__item b {
  color: var(--gold);
  font-weight: 700;
}

.page-products .filter-bar__item i {
  font-style: normal;
  color: var(--faint);
  font-size: 12px;
}

.page-products .filter-bar__item[aria-pressed="true"] i {
  color: var(--gold-soft);
}

/* ---------- 折叠与总表 ---------- */
.page-products .pt-fold {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  background: var(--ink-700);
  transition: border-color 160ms var(--ease);
}

.page-products .pt-fold[open] {
  border-color: var(--gold);
}

.page-products .pt-fold > summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-products .pt-fold > summary::-webkit-details-marker {
  display: none;
}

.page-products .pt-fold > summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 220ms var(--ease);
}

.page-products .pt-fold[open] > summary::before {
  transform: rotate(-135deg);
}

.page-products .pt-fold__less {
  display: none;
}

.page-products .pt-fold[open] .pt-fold__more {
  display: none;
}

.page-products .pt-fold[open] .pt-fold__less {
  display: inline;
}

.page-products .pt-fold__body {
  padding: 0 16px 14px;
  border-top: 1px solid var(--line);
}

.page-products .pt-fold__body p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .pt-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--ink-800);
}

.page-products .pt-table-wrap .data-table {
  width: 100%;
  min-width: 760px;
}

.page-products .pt-table-wrap .data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ink-700);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-products .pt-table-wrap tbody tr {
  scroll-margin-top: 80px;
}

.page-products .pt-table-wrap tbody tr:target {
  background: rgba(242, 193, 78, 0.07);
}

.page-products .pt-fold:not([open]) + .pt-table-wrap tbody tr:nth-child(n + 6) {
  display: none;
}

.page-products .pt-code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.page-products .pt-ratio {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.page-products .pt-ratio .num {
  font-weight: 700;
  color: var(--text);
}

.page-products .pt-copy {
  flex: 0 0 auto;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  padding: 4px 7px;
  color: var(--faint);
  background: transparent;
  border: 1px solid var(--line);
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.page-products .pt-copy:hover,
.page-products .pt-copy:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.page-products .pt-cycle {
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 比率读法 ---------- */
.page-products .pt-reading {
  margin-top: 4px;
}

.page-products .pt-reading__prose p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.page-products .pt-reading__prose p:last-child {
  margin-bottom: 0;
}

.page-products .pt-reading__side {
  border: 1px solid var(--line);
  background: var(--ink-800);
  padding: 20px;
}

.page-products .pt-reading__side-title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.page-products .pt-reading__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.page-products .pt-reading__list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .pt-reading__list li .num {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

/* ---------- 试玩说明 ---------- */
.page-products .pt-trial__main > p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

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

.page-products .pt-limits li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.page-products .pt-limits li .num {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  padding-top: 3px;
}

.page-products .pt-limits h3 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.page-products .pt-limits p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-products .pt-side-card {
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: var(--num-bg);
  padding: 20px;
}

.page-products .pt-side-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.page-products .pt-side-card p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-products .pt-side-card__meta {
  font-size: 13px;
  color: var(--gold-soft);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ---------- 设备矩阵 ---------- */
.page-products .pt-devfig {
  margin: 0 0 22px;
  aspect-ratio: 15 / 8;
}

.page-products .pt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.page-products .pt-chips a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--cyan);
  border: 1px solid var(--line);
  padding: 6px 12px;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.page-products .pt-chips a:hover,
.page-products .pt-chips a:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.page-products .pt-devtable {
  min-width: 720px;
}

.page-products .pt-devtable .pt-code {
  font-family: var(--font-body);
  font-size: 15px;
}

/* ---------- 新手五步 ---------- */
.page-products .pt-tutfig {
  margin: 0 0 26px;
  max-width: 700px;
  aspect-ratio: 10 / 7;
}

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

.page-products .pt-steps li {
  position: relative;
  padding: 22px 0 22px 60px;
  border-top: 1px solid var(--line);
}

.page-products .pt-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.page-products .pt-steps li::before {
  counter-increment: pt-step;
  content: "0" counter(pt-step);
  position: absolute;
  left: 0;
  top: 22px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.page-products .pt-steps {
  counter-reset: pt-step;
}

.page-products .pt-steps h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.page-products .pt-steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 72ch;
}

/* ---------- 常见误区 ---------- */
.page-products .pt-myths {
  margin-top: 4px;
}

.page-products .pt-myth {
  border: 1px solid var(--line);
  background: var(--ink-800);
  padding: 22px 20px;
  transition: border-color 160ms var(--ease);
}

.page-products .pt-myth:hover {
  border-color: var(--gold);
}

.page-products .pt-myth__num {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.page-products .pt-myth .card__title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.page-products .pt-myth .card__meta {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 相关入口 ---------- */
.page-products .pt-more__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.page-products .pt-more__list li {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.page-products .pt-more__list li:last-child {
  border-bottom: 1px solid var(--line);
}

.page-products .pt-more__list a {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.page-products .pt-more__list a:hover,
.page-products .pt-more__list a:focus-visible {
  color: var(--gold);
}

.page-products .pt-more__list span {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 平板 ---------- */
@media (min-width: 700px) {
  .page-products .pt-hero__facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .pt-iconfig--left {
    margin-left: 0;
  }

  .page-products .pt-more__list li {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: baseline;
    gap: 20px;
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 1000px) {
  .page-products .pt-hero__inner {
    grid-template-columns: var(--pt-code-col) minmax(0, 1fr) minmax(280px, 336px);
    gap: 40px;
    align-items: start;
    padding-block: 54px 66px;
  }

  .page-products .pt-codes {
    flex-direction: column;
    gap: 9px;
    border-left: 1px solid var(--line);
    padding-left: 14px;
  }

  .page-products .pt-codes__name {
    display: none;
  }

  .page-products .pt-codes__num {
    font-size: 14px;
  }

  .page-products .pt-hero__core h1 {
    margin-top: 18px;
  }

  .page-products .pt-layout {
    grid-template-columns: minmax(0, 1fr) var(--pt-rail-w);
    gap: 56px;
    align-items: start;
  }

  .page-products .pt-rail {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 28px;
    border-bottom: 0;
    padding-top: 54px;
    align-self: start;
  }

  .page-products .pt-rail .chapter-index {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    border-left: 1px solid var(--line);
    padding-bottom: 0;
  }

  .page-products .pt-rail .chapter-index__link {
    margin-left: -1px;
    padding: 10px 0 10px 14px;
    border-bottom: 0;
    border-left: 1px solid transparent;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  .page-products .pt-rail .chapter-index__link[aria-current="true"] {
    border-left-color: var(--gold);
  }

  .page-products .pt-body {
    grid-column: 1;
    grid-row: 1;
  }

  .page-products .pt-body > section {
    padding-block: 64px;
  }

  .page-products .pt-body > section:first-child {
    padding-top: 54px;
  }
}

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