.page-products {
  --p-edge: 3px solid var(--brown);
  --p-shadow: 6px 6px 0 rgba(36, 26, 18, .22);
  --p-shadow-sm: 3px 3px 0 rgba(36, 26, 18, .22);
  background: var(--paper);
  color: var(--brown);
  font-family: var(--sans);
  overflow-x: clip;
}

.page-products h2 {
  margin: 14px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.14;
  letter-spacing: -.01em;
  font-weight: 900;
}

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

.page-products .s196-breadcrumb {
  padding: 18px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .05em;
}

.page-products .s196-breadcrumb a {
  color: var(--brick);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}

.page-products .s196-breadcrumb a:hover,
.page-products .s196-breadcrumb a:focus-visible {
  border-bottom-color: var(--orange);
  color: var(--brown);
}

/* ---------- 下载首栏 ---------- */

.p-download {
  padding: 30px 0 12px;
}

.p-download__grid {
  display: grid;
  gap: 30px;
}

.p-download__lead h1 {
  margin: 12px 0 0;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 900;
}

.p-download__intro {
  margin: 20px 0 0;
  max-width: 60ch;
  font-size: 18px;
  line-height: 1.65;
}

.p-download__intro strong {
  color: var(--brick);
  font-weight: 800;
}

.p-download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.p-download__figure {
  margin: 0;
  border: var(--p-edge);
  box-shadow: var(--p-shadow);
  background: var(--paper-2);
  overflow: hidden;
  position: relative;
}

.p-download__figure::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 10px;
  background: repeating-linear-gradient(115deg, var(--orange) 0 16px, var(--brown) 16px 32px);
}

.p-download__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.p-download__caption {
  display: block;
  padding: 12px 14px 22px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--slate);
}

.p-download__pkg {
  margin-top: 34px;
  display: grid;
  gap: 24px;
  padding: 26px 22px;
  background: var(--ink-900);
  border: var(--p-edge);
  box-shadow: var(--p-shadow);
  color: var(--paper);
}

.p-download__pkg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--mint);
}

.p-download__pulse {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--amber);
  animation: p-pulse 2s ease-out infinite;
}

@keyframes p-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, .65); }
  70% { box-shadow: 0 0 0 12px rgba(255, 176, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0); }
}

.p-download__ver {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 10px 0 0;
}

.p-download__ver .s196-num {
  font-size: clamp(56px, 12vw, 92px);
  line-height: .9;
  color: var(--orange);
}

.p-download__ver-label {
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--slate);
}

.p-download__specs {
  display: grid;
  gap: 16px;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.p-download__specs div {
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}

.p-download__specs dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mint);
}

.p-download__specs dd {
  margin: 8px 0 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--paper);
}

.p-steps {
  list-style: none;
  margin: 42px 0 0;
  padding: 0;
  display: grid;
  gap: 26px;
}

.p-steps__item {
  padding-top: 20px;
  border-top: 3px dashed var(--brick);
}

.p-steps__item h3 {
  margin-top: 14px;
}

.p-steps__item p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.65;
}

.p-steps__num {
  display: inline-block;
  padding: 5px 12px;
  background: var(--ink-900);
  color: var(--orange);
  font-size: 13px;
  letter-spacing: .14em;
}

/* ---------- 端形态切换 ---------- */

.p-forms__intro {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.65;
}

.p-switch {
  margin-top: 32px;
  position: relative;
}

.p-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.p-switch__tabs {
  display: flex;
  flex-wrap: wrap;
  border: var(--p-edge);
  background: var(--paper-2);
  box-shadow: var(--p-shadow);
}

.p-switch__tab {
  flex: 1 1 130px;
  padding: 15px 16px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .06em;
  text-align: center;
  cursor: pointer;
  color: var(--brown);
  background: var(--paper-2);
  border-left: 6px solid transparent;
  border-right: 2px solid var(--brown);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.p-switch__tab:last-child {
  border-right: 0;
}

.p-switch__tab:hover {
  background: var(--paper);
}

#p-form-web:checked ~ .p-switch__tabs label[for="p-form-web"],
#p-form-desk:checked ~ .p-switch__tabs label[for="p-form-desk"],
#p-form-mob:checked ~ .p-switch__tabs label[for="p-form-mob"] {
  background: var(--ink-900);
  color: var(--paper);
  border-left-color: var(--orange);
  font-weight: 700;
}

.p-switch__input:focus-visible ~ .p-switch__tabs {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}

.p-switch__panels {
  margin-top: 24px;
}

.p-switch__panel {
  display: none;
  gap: 24px;
  padding: 28px 22px;
  background: var(--paper-2);
  border: var(--p-edge);
  box-shadow: var(--p-shadow);
}

#p-form-web:checked ~ .p-switch__panels .p-switch__panel--web,
#p-form-desk:checked ~ .p-switch__panels .p-switch__panel--desk,
#p-form-mob:checked ~ .p-switch__panels .p-switch__panel--mob {
  display: grid;
}

.p-switch__pane-tag {
  display: inline-block;
  margin: 0;
  padding: 5px 11px;
  background: var(--ink-900);
  color: var(--mint);
  font-size: 12px;
  letter-spacing: .12em;
}

.p-switch__pane-lead h3 {
  margin-top: 14px;
  font-size: 26px;
}

.p-switch__pane-lead p {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.65;
}

.p-switch__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  align-content: start;
}

.p-switch__facts li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.6;
}

.p-switch__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  background: var(--mint);
  border: 2px solid var(--brown);
}

.p-forms__figure {
  margin: 34px 0 0;
  border: var(--p-edge);
  box-shadow: var(--p-shadow);
  background: var(--ink-800);
  overflow: hidden;
}

.p-forms__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.p-forms__caption {
  display: block;
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--paper);
  background: var(--ink-900);
}

/* ---------- 桌面端 ---------- */

.p-desktop {
  padding: 68px 0 60px;
}

.p-desktop__grid {
  display: grid;
  gap: 30px;
}

.p-desktop__figure {
  margin: 0;
  border: var(--p-edge);
  box-shadow: var(--p-shadow);
  background: var(--ink-900);
  overflow: hidden;
}

.p-desktop__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 9;
  object-fit: cover;
}

.p-desktop__caption {
  display: block;
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mint);
  border-top: 2px solid var(--brown);
}

.p-desktop__body p {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.7;
}

.p-desktop__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.p-desktop__list li {
  position: relative;
  padding-left: 24px;
  font-size: 16.5px;
  line-height: 1.6;
}

.p-desktop__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 11px;
  height: 11px;
  background: var(--orange);
  border: 2px solid var(--brown);
}

/* ---------- 功能清单（深色带） ---------- */

.p-features {
  margin-top: 60px;
  padding: 96px 0 72px;
  background: var(--ink-900);
  color: var(--paper);
  clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%);
}

.p-features .s196-eyebrow {
  color: var(--mint);
}

.p-features h2 {
  color: var(--paper);
}

.p-features__intro {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(243, 236, 224, .82);
}

.p-features__grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 2px solid rgba(243, 236, 224, .24);
  border-left: 2px solid rgba(243, 236, 224, .24);
}

.p-features__item {
  padding: 26px 22px 30px;
  border-right: 2px solid rgba(243, 236, 224, .24);
  border-bottom: 2px solid rgba(243, 236, 224, .24);
  transition: background .2s ease;
}

.p-features__item:hover {
  background: var(--ink-800);
}

.p-features__idx {
  display: block;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--orange);
}

.p-features__item h3 {
  margin-top: 14px;
  color: var(--paper);
}

.p-features__item p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(243, 236, 224, .8);
}

.p-features__link {
  display: inline-block;
  margin-top: 10px;
  color: var(--mint);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid var(--mint);
  transition: color .18s ease, border-color .18s ease;
}

.p-features__link:hover,
.p-features__link:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* ---------- 版本演进 ---------- */

.p-versions {
  padding: 72px 0 64px;
}

.p-versions__head {
  display: grid;
  gap: 16px;
}

.p-versions__note {
  margin: 0;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--brick);
}

.p-versions__timeline {
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
}

.p-versions__node {
  display: grid;
  gap: 8px 26px;
  padding: 22px 0;
  border-top: 2px solid var(--brown);
  transition: background .2s ease, padding-left .2s ease;
}

.p-versions__node:last-child {
  border-bottom: 2px solid var(--brown);
}

.p-versions__node:hover,
.p-versions__node:focus-within {
  background: var(--paper-2);
  padding-left: 14px;
}

.p-versions__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--brown);
}

.p-versions__tag::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  background: var(--orange);
  border: 2px solid var(--brown);
  transform: rotate(45deg);
}

.p-versions__node h3 {
  font-size: 19px;
}

.p-versions__node p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.65;
}

.p-versions__figure {
  margin: 38px 0 0;
  border: var(--p-edge);
  box-shadow: var(--p-shadow);
  overflow: hidden;
  background: var(--ink-800);
}

.p-versions__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 9;
  object-fit: cover;
}

/* ---------- 适配与安装 ---------- */

.p-setup {
  padding: 64px 0 68px;
  border-top: 3px solid var(--brown);
}

.p-setup__grid {
  display: grid;
  gap: 32px;
}

.p-setup__intro p {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.7;
}

.p-setup__faq {
  border-top: 2px solid var(--brown);
}

.p-setup__faq details {
  border-bottom: 2px solid var(--brown);
}

.p-setup__faq summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 6px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: color .18s ease, padding-left .18s ease;
}

.p-setup__faq summary::-webkit-details-marker {
  display: none;
}

.p-setup__faq summary::before {
  content: "+";
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1;
  color: var(--orange);
  flex: none;
}

.p-setup__faq details[open] summary::before {
  content: "–";
}

.p-setup__faq summary:hover,
.p-setup__faq summary:focus-visible {
  color: var(--brick);
}

.p-setup__faq details[open] summary {
  padding-left: 12px;
}

.p-setup__faq p {
  margin: 0 0 20px 34px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--brown);
}

.p-setup__figure {
  margin: 40px 0 0;
  border: var(--p-edge);
  box-shadow: var(--p-shadow);
  overflow: hidden;
  background: var(--ink-800);
}

.p-setup__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.p-setup__caption {
  display: block;
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mint);
  background: var(--ink-900);
}

/* ---------- 下一步入口 ---------- */

.p-next {
  padding: 0 0 76px;
}

.p-next__title {
  margin-bottom: 24px;
}

.p-next__grid {
  display: grid;
  gap: 18px;
}

.p-next__item {
  display: block;
  padding: 24px 22px 26px;
  background: var(--paper-2);
  border: var(--p-edge);
  box-shadow: var(--p-shadow);
  color: var(--brown);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.p-next__item:hover,
.p-next__item:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: var(--p-shadow-sm);
  background: var(--paper);
}

.p-next__item:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.p-next__tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--ink-900);
  color: var(--amber);
  font-size: 12px;
  letter-spacing: .12em;
}

.p-next__item h3 {
  margin-top: 16px;
}

.p-next__item p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(36, 26, 18, .78);
}

/* ---------- 响应式 ---------- */

@media (min-width: 720px) {
  .p-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .p-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-versions__node {
    grid-template-columns: 130px 1fr;
    align-items: baseline;
  }

  .p-next__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .p-download {
    padding-top: 42px;
  }

  .p-download__grid {
    grid-template-columns: 7fr 5fr;
    align-items: end;
    gap: 36px;
  }

  .p-download__pkg {
    grid-template-columns: minmax(220px, 5fr) 7fr;
    align-items: center;
    gap: 32px;
    padding: 30px 28px;
  }

  .p-switch__panel {
    grid-template-columns: 5fr 7fr;
    gap: 32px;
    padding: 34px 30px;
  }

  .p-desktop__grid {
    grid-template-columns: 7fr 5fr;
    align-items: start;
    gap: 40px;
  }

  .p-setup__grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
    gap: 44px;
  }

  .p-next__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1040px) {
  .p-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .p-features__item--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 70px minmax(150px, 220px) 1fr;
    align-items: baseline;
    gap: 0 26px;
  }

  .p-features__item--wide .p-features__idx {
    align-self: start;
    padding-top: 4px;
  }

  .p-features__item--wide h3 {
    margin-top: 0;
  }

  .p-features__item--wide p {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products *,
  .page-products *::before,
  .page-products *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
