.page-products {
  --pp-gap: clamp(1.25rem, 3.2vw, 2.5rem);
  --pp-radius: 22px 8px 22px 8px;
  --pp-ink-soft: rgba(27, 38, 51, 0.74);
  --pp-paper-soft: rgba(237, 231, 217, 0.74);
  --pp-gold-deep: #8A6B22;
  --pp-rail: clamp(1.6rem, 4vw, 2.4rem);
  background: var(--ink-900);
  color: var(--paper);
  overflow-x: clip;
}

.page-products .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

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

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

.page-products .figure__caption {
  margin-top: 0.75rem;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--mist);
}

/* ---------- 面包屑 ---------- */

.page-products .pp-crumb {
  padding-top: clamp(1rem, 2.5vw, 1.6rem);
}

.page-products .pp-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-products .pp-crumb li + li::before {
  content: "/";
  color: var(--line-strong);
  margin-right: 0.55rem;
}

.page-products .pp-crumb a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.28s ease;
}

.page-products .pp-crumb a:hover {
  color: var(--gold);
}

/* ---------- 首屏 ---------- */

.page-products .pp-hero {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.75rem, 6vw, 4.5rem);
  overflow: hidden;
}

.page-products .pp-hero__ring {
  position: absolute;
  right: -170px;
  top: -210px;
  width: min(620px, 100vw);
  aspect-ratio: 1 / 1;
  border: 1px dashed var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.page-products .pp-hero .frame {
  position: relative;
  z-index: 1;
}

.page-products .pp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pp-gap);
}

.page-products .pp-hero__title {
  margin: 0.75rem 0 1.1rem;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.95rem, 6.4vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: var(--ivory);
  text-wrap: balance;
}

.page-products .pp-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.page-products .pp-hero__aside {
  padding: clamp(1.15rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--pp-radius);
  background: linear-gradient(158deg, var(--ink-800) 0%, var(--ink-900) 88%);
}

.page-products .pp-hero__num {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.page-products .pp-hero__aside-text {
  margin: 0.85rem 0 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--paper);
}

.page-products .pp-hero__aside-note {
  margin: 0.95rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.68;
  letter-spacing: 0.04em;
  color: var(--mist);
}

/* ---------- 通用章节标题组 ---------- */

.page-products .pp-head {
  max-width: 66ch;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.page-products .pp-head .section-title {
  margin: 0.6rem 0 0.9rem;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.55rem, 4.2vw, 2.45rem);
  line-height: 1.26;
  color: var(--ivory);
}

.page-products .section-title {
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: 0.01em;
}

/* ---------- 服务总览 ---------- */

.page-products .pp-map__figure {
  margin: 0 0 clamp(2rem, 5vw, 3.25rem);
}

.page-products .pp-svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.85rem, 2.2vw, 1.35rem);
}

.page-products .pp-svc-card {
  border: 1px solid var(--line);
  border-radius: var(--pp-radius);
  background: linear-gradient(165deg, var(--ink-800) 0%, rgba(10, 26, 42, 0.92) 100%);
  overflow: hidden;
  transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.38s ease;
}

.page-products .pp-svc-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

.page-products .pp-svc-card__btn {
  display: grid;
  width: 100%;
  min-height: 48px;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "idx title"
    "idx q"
    "meta meta";
  align-items: start;
  gap: 0.35rem 0.9rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.page-products .pp-svc-card__idx {
  grid-area: idx;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.4rem, 4vw, 1.95rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.page-products .pp-svc-card__title {
  grid-area: title;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.35;
  color: var(--ivory);
}

.page-products .pp-svc-card__q {
  grid-area: q;
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--pp-paper-soft);
}

.page-products .pp-svc-card__meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-products .pp-svc-card__panel {
  padding: clamp(1rem, 2.5vw, 1.3rem) clamp(1.1rem, 3vw, 1.5rem) clamp(1.2rem, 3vw, 1.6rem);
  border-top: 1px dashed var(--line);
}

.page-products .pp-svc-card__panel p {
  margin: 0 0 0.85rem;
  font-size: 0.94rem;
  line-height: 1.82;
  color: var(--paper);
}

.page-products .pp-svc-card__panel p:last-child {
  margin-bottom: 0;
}

/* ---------- 列表与链接 ---------- */

.page-products .pp-plain {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 0.95rem;
  padding: 0;
  list-style: none;
}

.page-products .pp-plain li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.74;
  color: var(--paper);
}

.page-products .pp-plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.page-products .pp-link {
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--gold);
  font-size: 0.93rem;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.28s ease, border-color 0.28s ease;
}

.page-products .pp-link::after {
  content: " →";
  font-family: var(--mono);
}

.page-products .pp-link:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.page-products .pp-note {
  max-width: 60ch;
  margin: 1.6rem 0 0;
  font-size: 0.9rem;
  line-height: 1.76;
  color: var(--mist);
}

/* ---------- 标签 ---------- */

.page-products .tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.15rem 0.62rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--mist);
}

.page-products .tag--gold {
  border-color: rgba(217, 169, 76, 0.5);
  color: var(--gold);
}

.page-products .tag--jade {
  border-color: rgba(63, 167, 150, 0.5);
  color: var(--jade);
}

/* ---------- 步骤 ---------- */

.page-products .pp-steps {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 2.25rem);
  margin: clamp(1.5rem, 3.5vw, 2.25rem) 0 0;
  padding: 0 0 0 var(--pp-rail);
  list-style: none;
}

.page-products .pp-steps::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 1px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(217, 169, 76, 0.08) 100%);
}

.page-products .pp-step {
  position: relative;
}

.page-products .pp-step::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--pp-rail) + 1px);
  top: 0.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 169, 76, 0.14);
}

.page-products .pp-step__index {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 4.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.page-products .pp-step__title {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.06rem, 2.4vw, 1.28rem);
  line-height: 1.46;
  color: var(--ivory);
}

.page-products .pp-step__body {
  max-width: 62ch;
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--pp-paper-soft);
}

.page-products .pp-step__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 46px;
  margin-top: 0.75rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--mist);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.page-products .pp-step__toggle::after {
  content: "＋";
  font-family: var(--mono);
  font-size: 12px;
}

.page-products .pp-step__toggle[aria-expanded="true"]::after {
  content: "－";
}

.page-products .pp-step__toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.page-products .pp-step__note {
  margin-top: 0.8rem;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: var(--ink-800);
}

.page-products .pp-step__note p {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.78;
  color: var(--paper);
}

/* ---------- 移动端章节 ---------- */

.page-products .pp-mobile__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.page-products .pp-mobile__figure {
  margin: 0;
}

.page-products .pp-mobile__figure .figure__img {
  aspect-ratio: 3 / 4;
}

/* ---------- 重登章节 ---------- */

.page-products .pp-relogin__figure {
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
}

.page-products .pp-steps--wide {
  padding-left: 0;
}

.page-products .pp-steps--wide::before,
.page-products .pp-steps--wide .pp-step::before {
  display: none;
}

/* ---------- 记录查询（象牙白呼吸区） ---------- */

.page-products .section--ivory {
  background: var(--ivory);
  color: var(--graphite);
}

.page-products .section--ivory .eyebrow {
  color: var(--pp-gold-deep);
}

.page-products .section--ivory .section-title {
  color: var(--graphite);
}

.page-products .section--ivory .lede {
  color: var(--pp-ink-soft);
}

.page-products .section--ivory .figure__caption {
  color: var(--pp-ink-soft);
}

.page-products .section--ivory .figure__img {
  border-color: rgba(27, 38, 51, 0.16);
  background: rgba(27, 38, 51, 0.06);
}

.page-products .section--ivory .pp-plain li {
  color: var(--graphite);
}

.page-products .section--ivory .pp-plain li::before {
  background: var(--pp-gold-deep);
}

.page-products .section--ivory .pp-link {
  color: var(--pp-gold-deep);
  border-color: rgba(138, 107, 34, 0.4);
}

.page-products .section--ivory .pp-link:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.page-products .pp-record__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.page-products .pp-code {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1.5rem 0 0;
}

.page-products .pp-code__seg {
  display: block;
  padding: 0.85rem 0.6rem;
  text-align: center;
  border: 1px solid rgba(27, 38, 51, 0.18);
  border-radius: 12px 4px 12px 4px;
  background: rgba(255, 255, 255, 0.62);
}

.page-products .pp-code__num {
  display: block;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--graphite);
}

.page-products .pp-code__lab {
  display: block;
  margin-top: 0.35rem;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--pp-ink-soft);
}

.page-products .pp-record__sample {
  margin: 1.05rem 0 1.3rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--pp-ink-soft);
}

.page-products .pp-record__sample .num {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--graphite);
}

/* ---------- 订阅章节 ---------- */

.page-products .pp-subscribe__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: start;
}

.page-products .pp-subscribe__figure {
  margin: 0;
}

.page-products .pp-rhythm {
  display: grid;
  gap: 1rem;
}

.page-products .pp-rhythm__item {
  padding: clamp(1.15rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--pp-radius);
  background: linear-gradient(150deg, var(--ink-800) 0%, var(--ink-900) 100%);
}

.page-products .pp-rhythm__item--alt {
  border-color: rgba(63, 167, 150, 0.4);
}

.page-products .pp-rhythm__item h3 {
  margin: 0.7rem 0 0.55rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--ivory);
}

.page-products .pp-rhythm__item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.82;
  color: var(--pp-paper-soft);
}

.page-products .pp-rhythm__note {
  margin: 0.25rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  font-size: 0.89rem;
  line-height: 1.78;
  color: var(--mist);
}

/* ---------- 延伸指引 ---------- */

.page-products .pp-next__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-products .pp-next__list li {
  border-bottom: 1px solid var(--line);
}

.page-products .pp-next__list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
  padding: clamp(1.1rem, 3vw, 1.5rem) 0;
  color: inherit;
  text-decoration: none;
  transition: padding-left 0.32s ease;
}

.page-products .pp-next__list a:hover {
  padding-left: 0.75rem;
}

.page-products .pp-next__t {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.04rem, 2.4vw, 1.24rem);
  line-height: 1.45;
  color: var(--ivory);
  transition: color 0.3s ease;
}

.page-products .pp-next__list a:hover .pp-next__t {
  color: var(--gold);
}

.page-products .pp-next__d {
  font-size: 0.92rem;
  line-height: 1.76;
  color: var(--mist);
}

/* ---------- 桌面栅格 ---------- */

@media (min-width: 560px) {
  .page-products .pp-code {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 780px) {
  .page-products .pp-svc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .page-products .pp-svc > :nth-child(2) {
    margin-top: clamp(1.25rem, 3vw, 2.5rem);
  }
  .page-products .pp-svc > :nth-child(4) {
    margin-top: clamp(1.25rem, 3vw, 2.5rem);
  }
  .page-products .pp-next__list a {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 1.75rem;
    align-items: baseline;
  }
}

@media (min-width: 860px) {
  .page-products .pp-steps--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.15rem, 3vw, 1.75rem);
    align-items: start;
  }
  .page-products .pp-steps--wide .pp-step {
    padding: 1.3rem 1.3rem 1.45rem;
    border: 1px solid var(--line);
    border-radius: var(--pp-radius);
    background: var(--ink-800);
  }
}

@media (min-width: 900px) {
  .page-products .pp-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: end;
    gap: clamp(2rem, 6vw, 5rem);
  }
  .page-products .pp-mobile__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(2.25rem, 6vw, 5rem);
  }
  .page-products .pp-subscribe__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 4rem);
  }
}

@media (min-width: 920px) {
  .page-products .pp-record__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(2.25rem, 6vw, 4.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pp-svc-card,
  .page-products .pp-link,
  .page-products .pp-step__toggle,
  .page-products .pp-next__list a,
  .page-products .pp-next__t {
    transition-duration: 0.01ms;
  }
  .page-products .pp-svc-card:hover {
    transform: none;
  }
  .page-products .pp-next__list a:hover {
    padding-left: 0;
  }
}
