.page-products {
  --pp-card: rgba(11, 44, 69, .72);
  --pp-hair: rgba(157, 178, 196, .26);
  --pp-ink-soft: #123a56;
}

.page-products .pp-crumb {
  padding-top: 20px;
  padding-bottom: 4px;
}

/* ---------- 首屏 ---------- */
.page-products .pp-hero {
  padding: 14px 0 48px;
}

.page-products .pp-hero__inner {
  display: grid;
  gap: 34px;
  align-items: center;
}

.page-products .pp-hero__copy h1 {
  margin: 12px 0 0;
  font-family: var(--mg-font-display);
  font-weight: 900;
  font-size: clamp(2rem, 7.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--mg-sand);
}

.page-products .pp-hero__lead {
  margin: 18px 0 0;
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--mg-mist);
}

.page-products .pp-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .pp-hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 2px solid var(--mg-line);
}

.page-products .pp-hero__facts strong {
  font-family: var(--mg-font-editorial);
  font-size: 1.72rem;
  line-height: 1.1;
  color: var(--mg-coral);
}

.page-products .pp-hero__facts span {
  font-size: .8125rem;
  color: var(--mg-mist);
}

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

.page-products .pp-hero__diagram {
  padding: 16px;
  border: 1px solid var(--mg-line);
  border-radius: 34px 96px 34px 96px;
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 107, 74, .18), transparent 62%),
    radial-gradient(circle at 12% 88%, rgba(88, 214, 176, .1), transparent 58%),
    var(--mg-ink);
}

.page-products .pp-diagram {
  display: block;
  width: 100%;
  height: auto;
  max-width: 560px;
  margin: 0 auto;
}

.page-products .pp-node rect {
  fill: var(--mg-deep);
  stroke: var(--mg-line);
  stroke-width: 1.5;
}

.page-products .pp-node__num {
  fill: var(--mg-coral);
  font-family: var(--mg-font-editorial);
  font-size: 15px;
  letter-spacing: .08em;
}

.page-products .pp-node__label {
  fill: var(--mg-sand);
  font-family: var(--mg-font-body);
  font-size: 17px;
  font-weight: 700;
}

/* ---------- 通用章节 ---------- */
.page-products .mg-section {
  padding: 44px 0;
}

.page-products .mg-section__head {
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
}

.page-products .mg-section__num {
  font-family: var(--mg-font-editorial);
  font-size: clamp(2.2rem, 5.4vw, 3.5rem);
  line-height: .9;
  letter-spacing: .02em;
  color: var(--mg-coral);
}

.page-products .mg-section__title {
  margin: 0;
  font-family: var(--mg-font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.24;
  letter-spacing: -.01em;
  color: var(--mg-sand);
}

.page-products .mg-section__lead {
  margin: 12px 0 0;
  max-width: 64ch;
  font-size: .98rem;
  line-height: 1.8;
  color: var(--mg-mist);
}

.page-products .pp-sub {
  margin: 0 0 8px;
  font-family: var(--mg-font-body);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--mg-sand);
}

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

.page-products .pp-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 1px solid var(--mg-line);
  border-radius: var(--mg-radius);
  object-fit: cover;
}

.page-products .pp-figure figcaption {
  margin-top: 10px;
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--mg-mist);
}

.page-products .pp-inline-link {
  margin: 20px 0 0;
  font-size: .9rem;
  color: var(--mg-mist);
}

.page-products .pp-inline-link a,
.page-products .pp-textlink,
.page-products .pp-support__card a {
  color: var(--mg-coral-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products .pp-textlink {
  display: inline-block;
  margin-top: 18px;
  font-size: .9rem;
  font-weight: 700;
}

/* ---------- 01 总览 ---------- */
.page-products .pp-overview__body {
  display: grid;
  gap: 26px;
}

.page-products .pp-path {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.page-products .pp-path li {
  position: relative;
  padding: 13px 0 13px 30px;
  font-size: .94rem;
  line-height: 1.7;
  color: var(--mg-sand);
  border-bottom: 1px solid var(--pp-hair);
}

.page-products .pp-path li:last-child {
  border-bottom: 0;
}

.page-products .pp-path__dot {
  position: absolute;
  left: 0;
  top: 21px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mg-coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 74, .16);
}

.page-products .pp-path li:nth-child(2) .pp-path__dot {
  background: var(--mg-coral-soft);
  box-shadow: 0 0 0 4px rgba(255, 178, 157, .14);
}

.page-products .pp-path li:nth-child(3) .pp-path__dot {
  background: var(--mg-gravel);
  box-shadow: 0 0 0 4px rgba(217, 185, 140, .14);
}

.page-products .pp-path li:nth-child(4) .pp-path__dot {
  background: var(--mg-mint);
  box-shadow: 0 0 0 4px rgba(88, 214, 176, .14);
}

.page-products .pp-overview__note {
  margin: 20px 0 0;
  font-size: .94rem;
  line-height: 1.8;
  color: var(--mg-mist);
}

/* ---------- 02 索引 ---------- */
.page-products .pp-index__body {
  display: grid;
  gap: 20px;
}

.page-products .pp-idx-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-products .pp-idx-list li {
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--mg-line);
  border-radius: 18px 6px 18px 6px;
  background: var(--pp-card);
}

.page-products .pp-idx-list li:nth-child(even) {
  border-radius: 6px 18px 6px 18px;
}

.page-products .pp-idx__n {
  display: block;
  font-family: var(--mg-font-editorial);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--mg-gravel);
}

.page-products .pp-idx__name {
  display: block;
  margin-top: 4px;
  font-size: .98rem;
  font-weight: 700;
  color: var(--mg-sand);
}

.page-products .pp-idx__desc {
  display: block;
  margin-top: 6px;
  font-size: .85rem;
  line-height: 1.65;
  color: var(--mg-mist);
}

.page-products .pp-agg {
  padding: 18px;
  border: 1px solid var(--mg-line);
  border-radius: 26px 8px 26px 8px;
  background:
    radial-gradient(circle at 88% 8%, rgba(217, 185, 140, .14), transparent 60%),
    rgba(11, 44, 69, .5);
}

.page-products .pp-agg__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.page-products .pp-agg__list li {
  padding: 14px 18px;
  border: 1.5px dashed rgba(217, 185, 140, .55);
  border-radius: 999px;
  background: rgba(217, 185, 140, .07);
}

.page-products .pp-agg__name {
  display: inline-block;
  margin-right: 10px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--mg-gravel);
}

.page-products .pp-agg__desc {
  font-size: .85rem;
  line-height: 1.65;
  color: var(--mg-mist);
}

.page-products .pp-agg__meta {
  margin: 14px 0 0;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--mg-mist);
}

/* ---------- 03 帮助中心 ---------- */
.page-products .pp-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0;
  padding: 4px 0 14px;
  list-style: none;
  display: flex;
  gap: 14px;
  scrollbar-width: thin;
}

.page-products .pp-scroll__card {
  flex: 0 0 84%;
  min-width: 0;
  scroll-snap-align: start;
  padding: 18px;
  border: 1px solid var(--mg-line);
  border-radius: 22px 8px 22px 8px;
  background: var(--pp-card);
}

.page-products .pp-scroll__card .mg-tag {
  margin-bottom: 10px;
}

.page-products .pp-scroll__card p {
  margin: 0;
  font-size: .87rem;
  line-height: 1.7;
  color: var(--mg-mist);
}

.page-products .pp-scroll__hint {
  margin: 6px 0 0;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--mg-gravel);
}

/* ---------- 04 版本 ---------- */
.page-products .pp-versions {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.page-products .pp-ver {
  padding: 15px 18px;
  border-left: 3px solid var(--mg-line);
  border-radius: 0 16px 16px 0;
  background: linear-gradient(90deg, rgba(11, 44, 69, .85), rgba(11, 44, 69, .2));
}

.page-products .pp-ver--now {
  border-left-color: var(--mg-coral);
  background: linear-gradient(90deg, rgba(255, 107, 74, .18), rgba(11, 44, 69, .18));
}

.page-products .pp-ver__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.page-products .pp-ver__no {
  font-family: var(--mg-font-editorial);
  font-size: 1.36rem;
  line-height: 1.2;
  color: var(--mg-sand);
}

.page-products .pp-ver__tag {
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--mg-mint);
}

.page-products .pp-ver__text {
  margin: 6px 0 0;
  font-size: .88rem;
  line-height: 1.72;
  color: var(--mg-mist);
}

/* ---------- 05 导出 ---------- */
.page-products .pp-export {
  position: relative;
  margin-top: 4px;
  padding: 20px 18px 22px;
  border-radius: var(--mg-radius);
  background: var(--mg-sand);
  color: var(--mg-ink);
}

.page-products .pp-fmt-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.page-products .pp-fmt-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(6, 26, 43, .1);
}

.page-products .pp-fmt-tabs label {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--mg-deep);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.page-products #pp-fmt-csv:checked ~ .pp-fmt-tabs label[for="pp-fmt-csv"],
.page-products #pp-fmt-json:checked ~ .pp-fmt-tabs label[for="pp-fmt-json"] {
  background: var(--mg-coral);
  color: var(--mg-ink);
}

.page-products #pp-fmt-csv:focus-visible ~ .pp-fmt-tabs label[for="pp-fmt-csv"],
.page-products #pp-fmt-json:focus-visible ~ .pp-fmt-tabs label[for="pp-fmt-json"] {
  outline: 2px solid var(--mg-ink);
  outline-offset: 2px;
}

.page-products .pp-fmt-panel {
  margin-top: 16px;
}

.page-products .pp-fmt-panel--json {
  display: none;
}

.page-products #pp-fmt-json:checked ~ .pp-fmt-panel--json {
  display: block;
}

.page-products #pp-fmt-json:checked ~ .pp-fmt-panel--csv {
  display: none;
}

.page-products .pp-code {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--mg-ink);
  color: var(--mg-sand);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .78rem;
  line-height: 1.75;
  overflow-x: auto;
  white-space: pre;
}

.page-products .pp-fmt-note {
  margin: 10px 0 0;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--pp-ink-soft);
}

.page-products .pp-fields {
  margin: 14px 0 0;
  padding: 0;
}

.page-products .pp-field {
  display: grid;
  gap: 2px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(6, 26, 43, .18);
}

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

.page-products .pp-field dt {
  font-size: .88rem;
  font-weight: 700;
  color: var(--mg-ink);
}

.page-products .pp-field dd {
  margin: 0;
  font-size: .84rem;
  line-height: 1.65;
  color: var(--pp-ink-soft);
}

.page-products .pp-export__limit {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 107, 74, .16);
  font-size: .85rem;
  line-height: 1.7;
  color: var(--mg-ink);
}

.page-products .pp-export__limit strong {
  font-family: var(--mg-font-editorial);
  font-size: 1.15rem;
  color: var(--mg-deep);
}

/* ---------- 06 流程 ---------- */
.page-products .pp-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-products .pp-step {
  border: 1px solid var(--mg-line);
  border-radius: 16px;
  background: var(--pp-card);
}

.page-products .pp-step summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  font-size: .98rem;
  font-weight: 700;
  color: var(--mg-sand);
}

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

.page-products .pp-step summary::marker {
  content: "";
}

.page-products .pp-step summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--mg-font-editorial);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--mg-coral);
}

.page-products .pp-step details[open] summary::after {
  content: "–";
}

.page-products .pp-step__no {
  font-family: var(--mg-font-editorial);
  font-size: .88rem;
  letter-spacing: .08em;
  color: var(--mg-gravel);
}

.page-products .pp-step__body {
  padding: 0 18px 18px;
}

.page-products .pp-step__body p {
  margin: 0 0 8px;
  font-size: .9rem;
  line-height: 1.75;
  color: var(--mg-mist);
}

.page-products .pp-step__out {
  margin: 0 !important;
  padding-top: 8px;
  border-top: 1px dashed var(--pp-hair);
  color: var(--mg-gravel) !important;
  font-size: .84rem !important;
}

/* ---------- 07 支持 ---------- */
.page-products .pp-a11y {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.page-products .pp-a11y li {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(88, 214, 176, .28);
  border-radius: 20px 6px 20px 6px;
  background: rgba(88, 214, 176, .07);
}

.page-products .pp-a11y strong {
  font-size: .95rem;
  color: var(--mg-mint);
}

.page-products .pp-a11y span {
  font-size: .85rem;
  line-height: 1.68;
  color: var(--mg-mist);
}

.page-products .pp-support__body {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.page-products .pp-support__card {
  padding: 18px;
  border: 1px solid var(--mg-line);
  border-radius: 24px 8px 24px 8px;
  background: var(--pp-card);
}

.page-products .pp-support__card p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.75;
  color: var(--mg-mist);
}

.page-products .pp-support__card--coral {
  border-color: rgba(255, 107, 74, .45);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 107, 74, .22), transparent 62%),
    rgba(11, 44, 69, .8);
}

.page-products .pp-support__card--coral .mg-btn {
  margin-top: 14px;
}

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

  .page-products .pp-field {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 14px;
    align-items: baseline;
  }

  .page-products .pp-scroll__card {
    flex: 0 0 300px;
  }
}

@media (min-width: 800px) {
  .page-products .mg-section__head {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
  }

  .page-products .mg-section__head > div {
    grid-column: 2;
  }

  .page-products .pp-ver {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .page-products .pp-ver__text {
    margin-top: 2px;
  }

  .page-products .pp-a11y {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-products .pp-support__body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-products .pp-hero__inner {
    grid-template-columns: 7fr 5fr;
    gap: 44px;
  }

  .page-products .pp-overview__body {
    grid-template-columns: 1.05fr .95fr;
    align-items: start;
    gap: 34px;
  }

  .page-products .pp-index__body {
    grid-template-columns: 1.1fr .9fr;
    align-items: start;
    gap: 24px;
  }

  .page-products .pp-figure--wide {
    max-width: 980px;
  }

  .page-products .pp-figure--slim {
    max-width: 1040px;
  }
}

@media (min-width: 1100px) {
  .page-products .pp-idx-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-products .pp-scroll__card {
    flex: 0 0 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pp-fmt-tabs label {
    transition: none;
  }
}
