.page-products {
  --p-shadow: 0 20px 44px rgba(0, 0, 0, .38);
  --p-soft: rgba(13, 43, 36, .55);
}

.page-products :focus-visible {
  outline: 2px solid var(--guide);
  outline-offset: 3px;
}

.page-products h1,
.page-products h2,
.page-products h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--chalk);
}

.page-products h1 {
  font-size: clamp(32px, 8.4vw, 56px);
  line-height: 1.06;
  margin: 8px 0 0;
}

.page-products h2 {
  font-size: clamp(24px, 5.2vw, 36px);
  line-height: 1.16;
  margin: 0 0 12px;
}

.page-products h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.page-products p {
  color: var(--mist);
  line-height: 1.8;
  margin: 0 0 12px;
}

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

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

.page-products .media__label {
  display: block;
  position: static;
  margin-top: 10px;
  padding: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--mist);
}

/* 顶部确认区 */
.page-products .p-hero {
  position: relative;
  overflow: hidden;
}

.page-products .p-hero::before {
  content: "";
  position: absolute;
  inset: -30% 40% 40% -20%;
  background: radial-gradient(circle at 30% 30%, rgba(53, 242, 208, .16), transparent 62%);
  pointer-events: none;
}

.page-products .p-hero__inner {
  position: relative;
  display: grid;
  gap: 30px;
}

.page-products .p-hero__text {
  max-width: 60ch;
  font-size: 17px;
  margin-top: 14px;
}

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

.page-products .p-specs {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.2);
  background: linear-gradient(160deg, var(--deck), var(--charcoal));
  box-shadow: var(--p-shadow);
}

.page-products .p-specs__title {
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-cyan);
}

.page-products .p-specs__list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.page-products .p-specs__item dt {
  font-size: 13px;
  color: var(--mist);
  letter-spacing: .04em;
}

.page-products .p-specs__item dd {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(36px, 9vw, 48px);
  line-height: 1;
  color: var(--text-cyan);
}

.page-products .p-specs__item dd span {
  font-size: .42em;
  margin-left: 4px;
  color: var(--mist);
}

.page-products .data-num--sm {
  font-size: clamp(24px, 6vw, 30px) !important;
}

.page-products .p-specs__note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--mist);
}

/* 装前准备 */
.page-products .p-ready__inner {
  display: grid;
  gap: 26px;
  padding: 26px 20px;
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius) * 1.4);
  background: var(--p-soft);
}

.page-products .p-ready__copy > p {
  max-width: 56ch;
}

.page-products .p-ready__list {
  list-style: none;
  margin: 20px 0 22px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .p-ready__list li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--mist);
}

.page-products .p-ready__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--guide);
}

.page-products .p-ready__list strong {
  display: block;
  color: var(--chalk);
  font-weight: 700;
  margin-bottom: 2px;
}

/* 六步时间轴 */
.page-products .p-guide__inner {
  display: grid;
  gap: 32px;
}

.page-products .p-guide__head {
  display: grid;
  gap: 20px;
}

.page-products .p-guide__head p {
  max-width: 48ch;
}

.page-products .p-timeline {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  position: relative;
}

.page-products .p-timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, var(--guide), rgba(53, 242, 208, .06));
}

.page-products .p-step {
  position: relative;
  padding: 0 0 26px 64px;
}

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

.page-products .p-step__num {
  position: absolute;
  left: 0;
  top: -4px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--guide);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.page-products .p-step__body p {
  font-size: 15.5px;
  margin: 0;
}

.page-products .p-guide__perm {
  margin-top: 30px;
}

/* 检查清单 */
.page-products .p-checklist {
  counter-reset: done;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.2);
  background: var(--deck);
}

.page-products .p-checklist__title {
  font-size: 22px;
  margin: 0 0 8px;
}

.page-products .p-checklist__intro {
  font-size: 14px;
  margin: 0 0 14px;
}

.page-products .p-checklist__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.page-products .p-check label {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 9px 0;
  cursor: pointer;
}

.page-products .p-check__input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  background: rgba(7, 31, 26, .7);
  position: relative;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}

.page-products .p-check__input:checked {
  background: var(--guide);
  border-color: var(--guide);
  counter-increment: done;
}

.page-products .p-check__input:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(40deg);
}

.page-products .p-check__text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--mist);
}

.page-products .p-check__input:checked + .p-check__text {
  color: var(--chalk);
}

.page-products .p-checklist__meter {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.page-products .p-checklist__segs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.page-products .p-checklist__seg {
  height: 5px;
  border-radius: 3px;
  background: rgba(23, 67, 58, .9);
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}

.page-products .p-checklist:has(.p-check:nth-child(1) .p-check__input:checked) .p-checklist__seg:nth-child(1),
.page-products .p-checklist:has(.p-check:nth-child(2) .p-check__input:checked) .p-checklist__seg:nth-child(2),
.page-products .p-checklist:has(.p-check:nth-child(3) .p-check__input:checked) .p-checklist__seg:nth-child(3),
.page-products .p-checklist:has(.p-check:nth-child(4) .p-check__input:checked) .p-checklist__seg:nth-child(4),
.page-products .p-checklist:has(.p-check:nth-child(5) .p-check__input:checked) .p-checklist__seg:nth-child(5) {
  background: var(--guide);
  box-shadow: 0 0 10px rgba(53, 242, 208, .45);
}

.page-products .p-checklist__count {
  margin: 10px 0 0;
  font-size: 13px;
  letter-spacing: .04em;
}

.page-products .p-checklist__num::after {
  content: counter(done);
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--guide);
}

.page-products .p-checklist__ready {
  display: none;
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-cyan);
}

.page-products .p-checklist:not(:has(.p-check__input:not(:checked))) .p-checklist__ready {
  display: block;
}

/* 报错自检 */
.page-products .p-errors__inner {
  display: grid;
  gap: 28px;
}

.page-products .p-errors__copy > p {
  max-width: 54ch;
}

.page-products .p-errors__faq {
  margin-top: 18px;
}

.page-products .p-faq {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--p-soft);
}

.page-products .p-faq summary {
  list-style: none;
  position: relative;
  padding: 15px 46px 15px 16px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--chalk);
}

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

.page-products .p-faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--guide);
}

.page-products .p-faq[open] summary::after {
  content: "–";
}

.page-products .p-faq .faq__body p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 14.5px;
}

.page-products .p-errors__more {
  margin-top: 16px;
  font-size: 14.5px;
}

.page-products .p-errors__more a {
  color: var(--guide);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 版本演进 */
.page-products .p-versions__panel {
  padding: 26px 20px;
  border-radius: calc(var(--radius) * 1.5);
  border: 1px solid var(--line);
  background: var(--charcoal);
}

.page-products .p-versions__head p {
  max-width: 56ch;
}

.page-products .p-versions__figure {
  margin: 22px 0 0;
}

.page-products .p-track {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-products .p-track__item {
  position: relative;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.page-products .p-track__dot {
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--guide);
  box-shadow: 0 0 10px rgba(53, 242, 208, .6);
}

.page-products .p-track__title {
  font-size: 17px;
  margin: 0 0 6px;
}

.page-products .p-track__text {
  font-size: 14px;
  margin: 0;
}

/* 反馈 */
.page-products .p-help__card {
  display: grid;
  gap: 26px;
  padding: 28px 22px;
  border-radius: calc(var(--radius) * 1.5);
  background: linear-gradient(150deg, #FF8347, var(--track));
  border: 1px solid rgba(7, 31, 26, .2);
}

.page-products .p-help__card h2,
.page-products .p-help__card p {
  color: var(--ink);
}

.page-products .p-help__copy > p {
  max-width: 50ch;
}

.page-products .p-help__types {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
}

.page-products .p-help__types li {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(7, 31, 26, .35);
  background: rgba(7, 31, 26, .08);
  font-size: 13px;
  color: var(--ink);
}

.page-products .p-help__btn {
  background: var(--ink);
  color: var(--chalk);
  border-color: var(--ink);
}

.page-products .p-help__btn:hover {
  background: var(--deck);
  border-color: var(--deck);
}

.page-products .p-help__meta p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 14px;
  font-size: 14px;
}

.page-products .p-help__meta span {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .72;
}

.page-products .p-help__meta strong {
  font-family: var(--font-mono);
  font-size: 15px;
  word-break: break-word;
}

.page-products .p-help__note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(7, 31, 26, .25);
  font-size: 13px;
}

/* 安全提示 */
.page-products .p-safety__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .p-safety__list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(13, 43, 36, .45);
}

.page-products .p-safety__num {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--track);
  line-height: 1.3;
}

.page-products .p-safety__body h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

.page-products .p-safety__body p {
  margin: 0;
  font-size: 14.5px;
}

/* 延伸阅读 */
.page-products .p-next__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .p-next__list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--chalk);
  font-size: 15px;
  text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.page-products .p-next__list a::after {
  content: "→";
  color: var(--guide);
  font-family: var(--font-mono);
}

.page-products .p-next__list a:hover {
  border-color: var(--guide);
  transform: translateY(-2px);
}

@media (min-width: 560px) {
  .page-products .p-specs__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .page-products .p-next__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .page-products .p-guide__head {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: end;
    gap: 26px;
  }

  .page-products .p-safety__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .p-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    position: relative;
  }

  .page-products .p-track::before {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    top: 9px;
    height: 1px;
    background: linear-gradient(90deg, var(--guide), rgba(53, 242, 208, .12));
  }

  .page-products .p-track__item {
    padding: 26px 0 0;
    border-left: 0;
  }

  .page-products .p-track__dot {
    left: 0;
    top: 6px;
  }
}

@media (min-width: 900px) {
  .page-products .p-hero__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    align-items: start;
    gap: 48px;
  }

  .page-products .p-ready__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 36px;
    padding: 34px 32px;
  }

  .page-products .p-errors__inner {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: start;
    gap: 44px;
  }

  .page-products .p-help__card {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
    gap: 40px;
    padding: 36px 34px;
  }

  .page-products .p-versions__panel {
    padding: 34px 32px;
  }
}

@media (min-width: 1000px) {
  .page-products .p-guide__inner {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 48px;
  }

  .page-products .p-checklist {
    position: sticky;
    top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .p-check__input,
  .page-products .p-checklist__seg,
  .page-products .p-next__list a {
    transition: none;
  }

  .page-products .p-next__list a:hover {
    transform: none;
  }
}
