.page-products {
  --pp-line: rgba(21, 19, 26, 0.13);
  --pp-card: #ffffff;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.page-products .dl-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 首屏 ---------- */
.page-products .dl-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 54px;
  color: var(--paper);
  background:
    radial-gradient(115% 130% at 8% -10%, rgba(124, 78, 158, 0.72), rgba(124, 78, 158, 0) 58%),
    linear-gradient(158deg, #42245a 0%, #311b45 46%, #17362e 100%);
}

.page-products .dl-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 2px, transparent 2px 16px);
  opacity: 0.6;
}

.page-products .dl-hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -100px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(245, 242, 236, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.page-products .dl-hero-inner {
  position: relative;
  z-index: 1;
}

.page-products .pp-crumb ol {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.page-products .pp-crumb li {
  color: rgba(245, 242, 236, 0.58);
}

.page-products .pp-crumb li + li::before {
  content: "/";
  margin-right: 9px;
  color: rgba(245, 242, 236, 0.3);
}

.page-products .pp-crumb a {
  color: rgba(245, 242, 236, 0.8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.page-products .pp-crumb a:hover,
.page-products .pp-crumb a:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.page-products .dl-hero-kicker {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--amber);
}

.page-products .dl-hero h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 6.6vw, 58px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  max-width: 15em;
}

.page-products .dl-hero-lead {
  max-width: 46ch;
  margin: 0 0 28px;
  font-size: 16.5px;
  line-height: 1.9;
  color: rgba(245, 242, 236, 0.86);
}

.page-products .dl-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.page-products .pp-hero-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(245, 242, 236, 0.86);
  text-decoration: none;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(245, 242, 236, 0.3);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.page-products .pp-hero-link:hover,
.page-products .pp-hero-link:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* ---------- 主体 ---------- */
.page-products .dl-body {
  padding-top: 52px;
  padding-bottom: 76px;
}

.page-products .dl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}

.page-products .dl-sec + .dl-sec {
  margin-top: 62px;
  padding-top: 44px;
  border-top: 1px dashed var(--pp-line);
}

/* ---------- 栏目头 ---------- */
.page-products .pp-head {
  margin-bottom: 26px;
}

.page-products .pp-idx {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 9px;
  border: 1px solid rgba(209, 154, 60, 0.45);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--amber);
}

.page-products .pp-head h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 3.8vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.page-products .pp-head p {
  margin: 0;
  max-width: 50ch;
  color: rgba(21, 19, 26, 0.68);
}

/* ---------- 通用图片容器 ---------- */
.page-products .pp-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--pp-line);
  background: linear-gradient(150deg, var(--vine), #2b1a3a);
}

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

.page-products .pp-frame--3x2 { aspect-ratio: 3 / 2; }
.page-products .pp-frame--7x4 { aspect-ratio: 7 / 4; }
.page-products .pp-frame--10x7 { aspect-ratio: 10 / 7; }
.page-products .pp-frame--1x1 { aspect-ratio: 1 / 1; }

.page-products .dl-figure {
  margin: 26px 0 0;
}

.page-products .dl-figure--narrow {
  max-width: 340px;
}

.page-products .pp-cap {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(21, 19, 26, 0.55);
}

/* ---------- 01 阶梯 ---------- */
.page-products .ladder {
  display: grid;
  gap: 16px;
}

.page-products .ladder-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  background: var(--pp-card);
  border: 1px solid var(--pp-line);
  border-left: 3px solid var(--grape-mid);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.page-products .ladder-card:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow-1);
}

.page-products .ladder-card:focus-within {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(209, 154, 60, 0.4);
}

.page-products .ladder-step {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--grape-mid);
}

.page-products .ladder-card h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.35;
}

.page-products .ladder-cost {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--moss);
}

.page-products .ladder-card > p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(21, 19, 26, 0.78);
}

.page-products .ladder-card details {
  margin-top: auto;
}

/* ---------- details 通用 ---------- */
.page-products details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--grape-mid);
  transition: color 0.16s var(--ease);
}

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

.page-products details > summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  flex: none;
}

.page-products details[open] > summary::before {
  content: "\2013";
}

.page-products details > summary:hover {
  color: var(--amber);
}

.page-products details > summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.page-products details > summary + p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(21, 19, 26, 0.7);
}

.page-products .ladder-card details,
.page-products .step details {
  padding-top: 12px;
  border-top: 1px dashed var(--pp-line);
}

/* ---------- 02 字段表 ---------- */
.page-products .field-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  border: 1px solid var(--pp-line);
}

.page-products .field-list li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pp-line);
}

.page-products .field-list li:last-child {
  border-bottom: 0;
}

.page-products .field-list li:nth-child(odd) {
  background: var(--pp-card);
}

.page-products .field-list li:nth-child(even) {
  background: var(--mist);
}

.page-products .field-key {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--grape);
}

.page-products .field-val {
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(21, 19, 26, 0.78);
}

.page-products .dl-note {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--amber);
  font-size: 14.5px;
  color: rgba(21, 19, 26, 0.7);
}

/* ---------- 03 编号拆解 ---------- */
.page-products .code-split {
  display: grid;
  gap: 26px;
}

.page-products .code-figure {
  margin: 0;
}

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

.page-products .code-svg {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 0 22px;
}

.page-products .code-svg rect {
  transition: opacity 0.16s var(--ease);
}

.page-products .code-svg .seg--y rect { fill: var(--grape); }
.page-products .code-svg .seg--m rect { fill: var(--grape-mid); }
.page-products .code-svg .seg--d rect { fill: var(--vine); }

.page-products .code-svg .svg-num {
  fill: var(--paper);
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-anchor: middle;
}

.page-products .code-svg .svg-tick {
  stroke: var(--amber);
  stroke-width: 1;
}

.page-products .code-svg .svg-lbl {
  fill: rgba(21, 19, 26, 0.62);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-anchor: middle;
}

.page-products .code-svg .seg:hover rect {
  opacity: 0.82;
}

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

.page-products .code-list li + li {
  margin-top: 12px;
}

.page-products .code-list details {
  padding: 12px 14px;
  border: 1px solid var(--pp-line);
  background: var(--pp-card);
  transition: border-color 0.16s var(--ease);
}

.page-products .code-list details[open] {
  border-color: rgba(209, 154, 60, 0.6);
}

.page-products .code-list summary {
  font-size: 13.5px;
  color: var(--grape);
}

.page-products .code-key {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--grape-mid);
}

.page-products .code-t {
  font-family: var(--sans);
  font-size: 14.5px;
  letter-spacing: 0;
  color: rgba(21, 19, 26, 0.74);
}

/* ---------- 04 收藏页 ---------- */
.page-products .fav-grid {
  display: grid;
  gap: 20px;
}

.page-products .fav-cell {
  padding: 20px 20px 22px;
  border-top: 2px solid var(--grape);
  background: linear-gradient(180deg, rgba(230, 223, 238, 0.55), rgba(230, 223, 238, 0));
}

.page-products .fav-cell h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
}

.page-products .fav-cell p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(21, 19, 26, 0.78);
}

/* ---------- 05 步骤刻度 ---------- */
.page-products .steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .step {
  position: relative;
  padding-left: 62px;
  padding-bottom: 26px;
}

.page-products .step::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--frost) 0 5px, transparent 5px 10px);
}

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

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

.page-products .step-dot {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--grape);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--grape);
}

.page-products .step h3 {
  margin: 8px 0 6px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
}

.page-products .step > p {
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(21, 19, 26, 0.78);
}

/* ---------- 06 场景 ---------- */
.page-products .scene-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--pp-line);
}

.page-products .scene {
  display: grid;
  gap: 6px;
  padding: 22px 10px;
  border-bottom: 1px solid var(--pp-line);
  transition: background-color 0.16s var(--ease);
}

.page-products .scene:hover {
  background: rgba(230, 223, 238, 0.55);
}

.page-products .scene-tag {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.page-products .scene h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
}

.page-products .scene p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(21, 19, 26, 0.76);
}

.page-products .dl-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid var(--pp-line);
  border-left: 3px solid var(--amber);
  background: var(--pp-card);
}

.page-products .dl-cta p {
  margin: 0;
  font-size: 15px;
  color: rgba(21, 19, 26, 0.76);
}

/* ---------- 侧栏速查 ---------- */
.page-products .pin-card {
  padding: 20px;
  border: 1px solid var(--pp-line);
  border-top: 3px solid var(--grape);
  background: linear-gradient(165deg, #ffffff, var(--mist));
}

.page-products .pin-head {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--grape-mid);
}

.page-products .pin-total {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--grape);
}

.page-products .pin-total span {
  margin-left: 8px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  color: rgba(21, 19, 26, 0.6);
}

.page-products .pin-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--pp-line);
}

.page-products .pin-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 14.5px;
  color: rgba(21, 19, 26, 0.78);
}

.page-products .pin-list b {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--grape);
}

.page-products .pin-foot {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--pp-line);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: rgba(21, 19, 26, 0.58);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-products .field-list li {
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 20px;
    align-items: baseline;
  }

  .page-products .fav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 860px) {
  .page-products .ladder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: end;
  }

  .page-products .ladder-card--1 { min-height: 274px; }
  .page-products .ladder-card--2 { min-height: 314px; }
  .page-products .ladder-card--3 { min-height: 354px; }

  .page-products .scene {
    grid-template-columns: 132px minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 24px;
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  .page-products .code-split {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 36px;
    align-items: start;
  }

  .page-products .code-figure {
    margin: 0;
  }
}

@media (min-width: 1080px) {
  .page-products .dl-layout {
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 50px;
    align-items: start;
  }

  .page-products .dl-aside {
    position: sticky;
    top: 88px;
  }
}

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