.page-products {
  --pd-line: rgba(36, 64, 92, 0.8);
  --pd-panel: linear-gradient(165deg, rgba(18, 38, 60, 0.95), rgba(11, 26, 43, 0.82));
  background-color: var(--ink-950);
  background-image:
    radial-gradient(900px 460px at 84% -8%, rgba(108, 77, 255, 0.22), transparent 62%),
    radial-gradient(700px 420px at -6% 34%, rgba(43, 240, 230, 0.07), transparent 66%);
  background-repeat: no-repeat;
  color: var(--paper-50);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  padding-bottom: 64px;
}

.page-products :where(h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure) {
  margin: 0;
  padding: 0;
}

.page-products :where(ul, ol) {
  list-style: none;
}

.page-products a:not(.btn) {
  color: var(--phantom-200);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 191, 255, 0.32);
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

.page-products :where(a, button, summary):focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
}

/* 面包屑 */
.page-products .pd-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mist-300);
}

.page-products .pd-crumb a {
  border-bottom: 0;
  color: var(--mist-300);
}

.page-products .pd-crumb a:hover {
  color: var(--cyan-400);
}

/* 首屏 */
.page-products .pd-hero {
  position: relative;
  padding: 26px 0 44px;
}

.page-products .pd-hero__grid {
  display: grid;
  gap: 26px;
}

.page-products .pd-toc {
  border: 1px solid var(--pd-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 26, 43, 0.92), rgba(6, 16, 29, 0.55));
  padding: 12px 14px 14px;
}

.page-products .pd-toc__title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist-300);
  margin-bottom: 10px;
}

.page-products .pd-toc__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.page-products .pd-toc__list li {
  flex: 0 0 auto;
}

.page-products .pd-toc__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--pd-line);
  border-radius: 2px;
  font-size: 13px;
  color: var(--paper-100);
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.page-products .pd-toc__list a:hover {
  border-color: var(--phantom-500);
  background: rgba(108, 77, 255, 0.14);
  color: var(--cyan-400);
}

.page-products .pd-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--phantom-200);
}

.page-products .pd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.page-products .pd-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.page-products .pd-hero__main h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(32px, 7.2vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
  max-width: 16em;
}

.page-products .pd-hero__lede {
  max-width: 40em;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--mist-300);
}

.page-products .pd-panelpair {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.page-products .pd-piece {
  position: relative;
  padding: 16px 16px 20px;
  border: 1px solid var(--pd-line);
  border-radius: var(--radius);
  background: var(--pd-panel);
  box-shadow: var(--shadow-card);
}

.page-products .pd-piece--accent {
  border-color: rgba(108, 77, 255, 0.55);
}

.page-products .pd-piece--accent::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--phantom-500), var(--cyan-400));
}

.page-products .pd-piece__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--phantom-200);
}

.page-products .pd-mini {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.page-products .pd-mini li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--paper-100);
}

.page-products .pd-mini__n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-950);
  background: var(--phantom-200);
  padding: 2px 6px;
  border-radius: 2px;
}

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

.page-products .pd-chipline li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border: 1px dashed rgba(43, 240, 230, 0.45);
  border-radius: 2px;
  color: var(--cyan-400);
}

.page-products .pd-piece__note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--mist-300);
}

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

.page-products .pd-statline {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--pd-line);
}

.page-products .pd-statline > div {
  min-width: 92px;
}

.page-products .pd-statline dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--mist-300);
}

.page-products .pd-statline dd {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--paper-50);
}

.page-products .pd-statline dd span {
  margin-left: 4px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--mist-300);
}

/* 章节骨架 */
.page-products .pd-sec {
  padding: 40px 0;
  border-top: 1px solid var(--pd-line);
}

.page-products .pd-sec__head {
  max-width: 46em;
}

.page-products .pd-sec__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--phantom-200);
}

.page-products .pd-sec__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(23px, 4.6vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 10px 0 12px;
}

.page-products .pd-sec__note {
  font-size: 15px;
  line-height: 1.9;
  color: var(--mist-300);
}

/* 四类视图 */
.page-products .pd-views {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.page-products .pd-view {
  padding: 18px 18px 20px;
  border: 1px solid var(--pd-line);
  border-left: 3px solid var(--phantom-500);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(18, 38, 60, 0.9), rgba(6, 16, 29, 0.7));
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.page-products .pd-view:nth-child(2) {
  border-left-color: var(--cyan-400);
}

.page-products .pd-view:nth-child(3) {
  border-left-color: var(--phantom-200);
}

.page-products .pd-view:nth-child(4) {
  border-left-color: var(--amber-500);
}

.page-products .pd-view:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 77, 255, 0.7);
}

.page-products .pd-view__n {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--mist-300);
}

.page-products .pd-view h3 {
  font-size: 17.5px;
  font-weight: 700;
  margin: 6px 0 8px;
}

.page-products .pd-view p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--mist-300);
}

/* 时间轴 */
.page-products .pd-timeline {
  margin-top: 28px;
  padding: 20px 16px 22px;
  border: 1px solid var(--pd-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 26, 43, 0.92), rgba(6, 16, 29, 0.5));
}

.page-products .pd-timeline__head h3 {
  font-size: 17.5px;
  font-weight: 700;
}

.page-products .pd-timeline__head p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mist-300);
}

.page-products .pd-timeline__track {
  display: flex;
  overflow-x: auto;
  margin-top: 18px;
  padding-bottom: 8px;
}

.page-products .pd-timeline__node {
  position: relative;
  flex: 0 0 auto;
  min-width: 88px;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.page-products .pd-timeline__node::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line-700);
}

.page-products .pd-timeline__node::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-950);
  border: 1px solid var(--cyan-400);
}

.page-products .pd-timeline__r {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--paper-50);
}

.page-products .pd-timeline__m {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--mist-300);
}

/* 图片容器修饰 */
.page-products .pd-fig {
  margin-top: 22px;
}

.page-products .pd-fig .media__frame {
  overflow: hidden;
  border: 1px solid var(--pd-line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--ink-800), var(--ink-950));
  box-shadow: var(--shadow-card);
}

.page-products .pd-fig img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-products .pd-fig .media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--mist-300);
}

/* 首访三步 */
.page-products .pd-steps {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.page-products .pd-step {
  padding: 0 16px;
  border: 1px solid var(--pd-line);
  border-radius: var(--radius);
  background: rgba(11, 26, 43, 0.72);
}

.page-products .pd-step[open] {
  border-color: rgba(108, 77, 255, 0.6);
  background: linear-gradient(160deg, rgba(18, 38, 60, 0.92), rgba(6, 16, 29, 0.72));
}

.page-products .pd-step summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.page-products .pd-step summary::-webkit-details-marker {
  display: none;
}

.page-products .pd-step summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--cyan-400);
}

.page-products .pd-step[open] summary::after {
  content: "−";
}

.page-products .pd-step__n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--phantom-200);
  border: 1px solid rgba(201, 191, 255, 0.4);
  border-radius: 2px;
  padding: 2px 7px;
}

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

.page-products .pd-step__body p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--mist-300);
}

/* 分栏 */
.page-products .pd-split {
  display: grid;
  gap: 26px;
}

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

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

/* 浏览器筛选 */
.page-products .pd-filterbox {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--pd-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 38, 60, 0.88), rgba(6, 16, 29, 0.6));
}

.page-products .pd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-products .pd-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  padding: 7px 11px;
  color: var(--mist-300);
  background: transparent;
  border: 1px solid var(--line-700);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.page-products .pd-chip:hover {
  color: var(--cyan-400);
  border-color: var(--cyan-400);
}

.page-products .pd-chip[aria-pressed="true"] {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: var(--ink-950);
  font-weight: 700;
}

.page-products .pd-chip:focus-visible {
  outline: 2px solid var(--phantom-200);
  outline-offset: 2px;
}

.page-products .pd-filterbox__count {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist-300);
}

.page-products .pd-entries {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.page-products .pd-entry {
  padding: 14px;
  border: 1px solid var(--pd-line);
  border-left: 2px solid var(--phantom-500);
  border-radius: 2px;
  background: rgba(6, 16, 29, 0.55);
}

.page-products .pd-entry p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--mist-300);
}

.page-products .pd-entry .pd-entry__name {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--paper-50);
}

.page-products .pd-entry .pd-entry__tag {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--signal-400);
}

.page-products [data-filter-item][hidden] {
  display: none;
}

/* 视图切换 */
.page-products .pd-switch {
  display: inline-flex;
  margin-top: 20px;
  border: 1px solid var(--line-700);
  border-radius: 2px;
  overflow: hidden;
}

.page-products .pd-switch a[href] {
  padding: 8px 16px;
  border: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist-300);
}

.page-products .pd-switch a[href]:hover {
  color: var(--cyan-400);
  background: rgba(108, 77, 255, 0.14);
}

.page-products .pd-switch a[aria-current="page"] {
  background: var(--phantom-500);
  color: var(--paper-50);
}

/* 轮次对照 */
.page-products .pd-rounds {
  display: grid;
  gap: 24px;
  margin-top: 22px;
}

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

.page-products .pd-rounds__cols {
  display: grid;
  gap: 12px;
}

.page-products .pd-rounds__col {
  padding: 14px 16px;
  border-top: 2px solid var(--cyan-400);
  background: rgba(18, 38, 60, 0.6);
  border-radius: 2px;
}

.page-products .pd-rounds__col:nth-child(2) {
  border-top-color: var(--phantom-500);
}

.page-products .pd-rounds__col h3 {
  font-size: 15px;
  font-weight: 700;
}

.page-products .pd-rounds__col p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--mist-300);
}

.page-products .pd-rounds__sub {
  margin-top: 22px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--paper-50);
}

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

.page-products .pd-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 5px 9px;
  border: 1px solid;
  border-radius: 2px;
}

.page-products .pd-tag--amber {
  color: var(--amber-500);
  border-color: rgba(255, 176, 32, 0.5);
  background: rgba(255, 176, 32, 0.08);
}

.page-products .pd-tag--cyan {
  color: var(--cyan-400);
  border-color: rgba(43, 240, 230, 0.42);
  background: rgba(43, 240, 230, 0.07);
}

.page-products .pd-rounds__note {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--mist-300);
}

/* 收藏与回溯 */
.page-products .pd-fav {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.page-products .pd-fav__card {
  padding: 18px;
}

.page-products .pd-fav__card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-products .pd-fav__card p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--mist-300);
}

.page-products .pd-fav__card--warn {
  border-left: 3px solid var(--amber-500);
}

.page-products .pd-fav__card--warn h3 {
  color: var(--amber-500);
}

.page-products .pd-fav__foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--pd-line);
  font-size: 14px;
  line-height: 1.9;
  color: var(--mist-300);
}

/* 兼容与场景 */
.page-products .pd-compat {
  margin-top: 18px;
  border-top: 1px solid var(--pd-line);
}

.page-products .pd-compat li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pd-line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--paper-100);
}

.page-products .pd-compat__v {
  color: var(--signal-400);
}

.page-products .pd-scenes {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.page-products .pd-scenes li {
  padding: 12px 14px;
  border-left: 2px solid var(--phantom-500);
  background: rgba(18, 38, 60, 0.55);
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--mist-300);
}

.page-products .pd-scenes strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14.5px;
  color: var(--paper-50);
}

/* 收束 */
.page-products .pd-sec--outro {
  padding-bottom: 0;
}

.page-products .pd-outro {
  display: grid;
  gap: 18px;
  padding: 24px 18px;
  border: 1px solid rgba(108, 77, 255, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(108, 77, 255, 0.2), rgba(43, 240, 230, 0.06) 58%, rgba(6, 16, 29, 0.45));
}

.page-products .pd-outro h2 {
  font-family: var(--font-head);
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.page-products .pd-outro p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--mist-300);
}

.page-products .pd-outro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 断点 */
@media (min-width: 560px) {
  .page-products .pd-rounds__cols {
    grid-template-columns: 1fr 1fr;
  }

  .page-products .pd-panelpair {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .page-products .pd-outro {
    grid-template-columns: minmax(0, 1.5fr) auto;
    align-items: center;
  }
}

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

  .page-products .pd-view {
    grid-column: span 6;
  }

  .page-products .pd-view:nth-child(1) {
    grid-column: span 7;
  }

  .page-products .pd-view:nth-child(2) {
    grid-column: span 5;
    margin-top: 34px;
  }

  .page-products .pd-view:nth-child(3) {
    grid-column: span 5;
  }

  .page-products .pd-view:nth-child(4) {
    grid-column: span 7;
  }
}

@media (min-width: 900px) {
  .page-products {
    padding-bottom: 88px;
  }

  .page-products .pd-split {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
    gap: 34px;
  }

  .page-products .pd-split--rev {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  }

  .page-products .pd-split--rev .pd-split__aside {
    order: -1;
  }

  .page-products .pd-rounds {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }

  .page-products .pd-sec {
    padding: 56px 0;
  }
}

@media (min-width: 960px) {
  .page-products .pd-hero {
    padding: 34px 0 56px;
  }

  .page-products .pd-hero__grid {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
  }

  .page-products .pd-toc {
    position: sticky;
    top: 24px;
  }

  .page-products .pd-toc__list {
    flex-direction: column;
    gap: 4px;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-products .pd-toc__list a {
    width: 100%;
    justify-content: flex-start;
  }

  .page-products .pd-hero__lede {
    font-size: 17px;
  }
}

@media (min-width: 1180px) {
  .page-products .pd-hero__main h1 {
    font-size: clamp(56px, 5.4vw, 78px);
  }
}
