.page-products {
  --pp-gap: clamp(20px, 3vw, 36px);
  --pp-pad: clamp(20px, 3.2vw, 40px);
  --pp-ink-soft: rgba(242, 239, 230, .78);
  --pp-line: rgba(255, 255, 255, .1);
  --pp-line-soft: rgba(255, 255, 255, .06);
  --pp-shadow: 0 24px 60px -30px rgba(0, 0, 0, .92);
  width: 100%;
  overflow-x: clip;
}

.page-products * {
  min-width: 0;
}

.page-products img {
  max-width: 100%;
  height: auto;
}

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

.page-products .p-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4.5vw, 68px) 0 clamp(44px, 6vw, 88px);
  border-bottom: 1px solid var(--pp-line-soft);
}

.page-products .p-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 130%;
  background:
    radial-gradient(52% 58% at 16% 22%, rgba(123, 47, 247, .44), transparent 68%),
    radial-gradient(44% 50% at 88% 8%, rgba(0, 229, 255, .26), transparent 70%);
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
}

.page-products .p-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -32% -12%;
  height: 48%;
  background: linear-gradient(102deg, transparent 0%, rgba(123, 47, 247, .18) 34%, rgba(0, 229, 255, .14) 64%, transparent 100%);
  transform: rotate(-3.4deg);
  pointer-events: none;
  z-index: 0;
}

.page-products .p-hero > .shell {
  position: relative;
  z-index: 1;
}

.page-products .p-hero__grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}

.page-products .p-hero__main {
  max-width: 44em;
}

.page-products .p-hero .breadcrumb {
  margin-bottom: clamp(14px, 2vw, 22px);
}

.page-products .p-hero__title {
  margin: .24em 0 .42em;
  font-size: clamp(38px, 7vw, 86px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -.03em;
  background: linear-gradient(100deg, var(--paper) 0%, var(--paper) 42%, var(--mist) 76%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--mist);
}

.page-products .p-hero .lede {
  max-width: 34em;
  color: var(--pp-ink-soft);
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.78;
}

.page-products .p-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 34px);
}

.page-products .p-hero__actions .btn {
  min-height: 46px;
}

.page-products .p-hero__side {
  display: grid;
  gap: 18px;
  padding: var(--pp-pad);
  border-radius: var(--radius);
  border: 1px solid var(--glass-line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--pp-shadow);
}

.page-products .p-searchbar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, .34);
  background: rgba(0, 229, 255, .06);
  color: var(--paper);
  font: inherit;
  font-size: 15.5px;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}

.page-products .p-searchbar:hover,
.page-products .p-searchbar:focus-visible {
  border-color: var(--accent);
  background: rgba(0, 229, 255, .1);
  box-shadow: var(--glow-accent);
}

.page-products .p-searchbar__glyph {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--accent);
}

.page-products .p-searchbar__text {
  color: rgba(242, 239, 230, .72);
}

.page-products .p-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--pp-line-soft);
}

.page-products .p-stats > div {
  display: grid;
  gap: 4px;
}

.page-products .p-stats .stat__label {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--mist);
}

.page-products .p-stats .stat__value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent);
}

.page-products .p-hero .frame__stamp {
  position: absolute;
  right: clamp(14px, 3vw, 42px);
  bottom: 12px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: rgba(185, 140, 255, .55);
}

/* ---------- 技能树路径 ---------- */

.page-products .p-path {
  padding-top: clamp(48px, 7vw, 96px);
}

.page-products .p-path__intro {
  max-width: 48em;
  margin-bottom: clamp(30px, 5vw, 56px);
}

.page-products .p-path__layout {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
}

.page-products .p-tree {
  padding: 20px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--pp-line-soft);
  background: linear-gradient(170deg, var(--surface) 0%, var(--surface-2) 100%);
}

.page-products .p-tree__kicker {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mist);
}

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

.page-products .p-tree__list::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--brand) 56%, rgba(123, 47, 247, .14) 100%);
}

.page-products .p-tree__node {
  position: relative;
  display: block;
  padding: 12px 12px 14px 32px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--paper);
  min-height: 44px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}

.page-products .p-tree__node:hover,
.page-products .p-tree__node:focus-visible {
  background: rgba(123, 47, 247, .16);
  transform: translateX(3px);
}

.page-products .p-tree__dot {
  position: absolute;
  left: 0;
  top: 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, .12);
}

.page-products .p-tree__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--accent);
}

.page-products .p-tree__label {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.4;
}

.page-products .p-stream {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}

.page-products .p-node {
  position: relative;
  display: grid;
  gap: 18px;
  overflow: hidden;
  padding: clamp(22px, 3.2vw, 40px);
  border-radius: var(--radius);
  border: 1px solid var(--pp-line-soft);
  background: linear-gradient(155deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--pp-shadow);
  scroll-margin-top: calc(var(--topbar-h) + 28px);
}

.page-products .p-node::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(22px, 3.2vw, 40px);
  bottom: clamp(22px, 3.2vw, 40px);
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--accent), var(--brand));
}

.page-products .p-node__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.page-products .p-node__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--accent);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, .32);
  background: rgba(0, 229, 255, .07);
}

.page-products .p-node__title {
  margin: 0;
  font-size: clamp(21px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--paper);
}

.page-products .p-node p {
  margin: 0 0 14px;
  max-width: 40em;
  font-size: clamp(15.5px, 1.5vw, 17px);
  line-height: 1.78;
  color: var(--pp-ink-soft);
}

.page-products .p-node p:last-child {
  margin-bottom: 0;
}

.page-products .p-node__sub {
  margin: 22px 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent);
}

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

.page-products .p-node__list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(242, 239, 230, .74);
}

.page-products .p-node__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px rgba(123, 47, 247, .8);
}

.page-products .p-node__facts {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 152px), 1fr));
}

.page-products .p-node__facts li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--pp-line-soft);
  background: rgba(255, 255, 255, .03);
  font-size: 13.5px;
  color: var(--mist);
}

.page-products .p-node__key {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent);
}

.page-products .p-node__lead {
  margin: 0;
  max-width: 46em;
}

.page-products .p-figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  align-self: start;
}

.page-products .p-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--ink-2);
}

.page-products .p-figure .media__label {
  display: block;
  padding: 10px 14px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--mist);
  border-top: 1px solid var(--pp-line-soft);
}

/* ---------- 手机端通道 ---------- */

.page-products .p-node--device {
  background: linear-gradient(160deg, rgba(123, 47, 247, .16) 0%, var(--surface-2) 52%, var(--surface) 100%);
}

.page-products .p-device {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  justify-items: center;
}

.page-products .p-device__copy p {
  max-width: 36em;
}

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

.page-products .p-device__frame {
  position: relative;
  margin: 0;
  width: min(320px, 78vw);
  padding: 12px;
  border-radius: 38px;
  background: linear-gradient(155deg, rgba(123, 47, 247, .55), rgba(0, 229, 255, .32));
  box-shadow: 0 48px 100px -46px rgba(123, 47, 247, .92), 0 0 0 1px var(--glass-line);
}

.page-products .p-device__frame::after {
  content: "";
  position: absolute;
  inset: 16% -24%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 229, 255, .32), transparent 70%);
  filter: blur(44px);
  pointer-events: none;
}

.page-products .p-device__frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: var(--ink-2);
}

.page-products .p-device__frame .media__label {
  position: relative;
  z-index: 1;
  display: block;
  padding: 12px 6px 2px;
  font-size: 12.5px;
  letter-spacing: .04em;
  text-align: center;
  color: rgba(242, 239, 230, .72);
}

/* ---------- 导出 ---------- */

.page-products .p-export {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--pp-line-soft);
  background: linear-gradient(120deg, rgba(123, 47, 247, .14), rgba(0, 229, 255, .06));
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.page-products .p-export__cap {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--mist);
}

.page-products .p-export__cap--now {
  color: var(--cta);
}

.page-products .p-steps {
  opacity: .62;
}

.page-products .p-export__arrow {
  margin: 0;
  display: flex;
  justify-content: center;
  color: var(--cta);
  filter: drop-shadow(0 0 10px rgba(255, 107, 53, .55));
}

.page-products .p-export__arrow svg {
  transform: rotate(90deg);
}

.page-products .p-export__one {
  margin: 0;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--paper);
}

.page-products .p-export__note {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(242, 239, 230, .68);
}

.page-products .p-figure--wide {
  align-self: stretch;
}

/* ---------- 分类体系 ---------- */

.page-products .p-cats {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.page-products .p-cats__intro {
  max-width: 50em;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.page-products .p-cats__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr));
  border: 1px solid var(--pp-line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pp-line-soft);
}

.page-products .p-cats__item {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  background: var(--ink-2);
  transition: background .3s var(--ease);
}

.page-products .p-cats__item:hover {
  background: var(--surface);
}

.page-products .p-cats__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--accent);
}

.page-products .p-cats__name {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--paper);
}

.page-products .p-cats__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mist);
}

.page-products .p-cats__folds {
  margin-top: clamp(28px, 4vw, 44px);
}

.page-products .p-cats__hint {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--mist);
}

.page-products .p-fold {
  border: 1px solid var(--pp-line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  overflow: hidden;
}

.page-products .p-fold + .p-fold {
  margin-top: 10px;
}

.page-products .p-fold > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--paper);
  transition: background .25s var(--ease);
}

.page-products .p-fold > summary:hover {
  background: rgba(123, 47, 247, .12);
}

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

.page-products .p-fold > summary::after {
  content: "";
  flex: 0 0 auto;
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
}

.page-products .p-fold[open] > summary::after {
  transform: rotate(225deg);
}

.page-products .p-fold__body {
  padding: 0 20px 18px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--pp-ink-soft);
}

.page-products .p-fold__body p {
  margin: 0 0 12px;
  max-width: 42em;
}

.page-products .p-fold__body p:last-child {
  margin-bottom: 0;
}

/* ---------- 版本节奏 ---------- */

.page-products .p-version {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.page-products .p-version__intro {
  max-width: 48em;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.page-products .p-version__list {
  list-style: none;
  margin: 0 0 clamp(32px, 5vw, 56px);
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .p-version__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  gap: 20px;
  padding: 20px 20px 20px 24px;
  border-left: 2px solid var(--pp-line);
}

.page-products .p-version__item::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 26px;
  width: 2px;
  height: 28px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(0, 229, 255, .7);
}

.page-products .p-version__ver {
  font-family: var(--font-mono);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
  line-height: 1.24;
}

.page-products .p-version__name {
  margin: 0 0 8px;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  color: var(--paper);
  line-height: 1.4;
}

.page-products .p-version__body p {
  margin: 0;
  max-width: 44em;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--pp-ink-soft);
}

.page-products .p-version__figure {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--glass-line);
  overflow: hidden;
  background: var(--glass);
}

.page-products .p-version__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--ink-2);
}

.page-products .p-version__figure .media__label {
  display: block;
  padding: 12px 18px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--mist);
  border-top: 1px solid var(--pp-line-soft);
}

.page-products .p-version__more {
  margin: clamp(22px, 3vw, 32px) 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--pp-ink-soft);
}

.page-products .p-version__link {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid rgba(185, 140, 255, .42);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.page-products .p-version__link:hover,
.page-products .p-version__link:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- 断点 ---------- */

@media (min-width: 640px) {
  .page-products .p-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (min-width: 760px) {
  .page-products .p-export {
    grid-template-columns: minmax(0, 1.4fr) auto minmax(0, .85fr);
    align-items: center;
  }

  .page-products .p-export__arrow svg {
    transform: none;
  }
}

@media (min-width: 820px) {
  .page-products .p-node--split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(22px, 3vw, 38px);
  }

  .page-products .p-node--split > .p-node__head {
    grid-column: 1 / -1;
  }
}

@media (min-width: 880px) {
  .page-products .p-device {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: start;
  }

  .page-products .p-device__copy {
    padding-right: clamp(16px, 3vw, 40px);
  }
}

@media (min-width: 960px) {
  .page-products .p-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  }
}

@media (min-width: 1024px) {
  .page-products .p-path__layout {
    grid-template-columns: 216px minmax(0, 1fr);
    align-items: start;
  }

  .page-products .p-tree {
    position: sticky;
    top: calc(var(--topbar-h) + 24px);
  }
}

@media (max-width: 639px) {
  .page-products .p-version__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding-left: 18px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-products .p-searchbar,
  .page-products .p-tree__node,
  .page-products .p-cats__item,
  .page-products .p-fold > summary,
  .page-products .p-fold > summary::after,
  .page-products .p-version__link {
    transition: none;
  }

  .page-products .p-tree__node:hover,
  .page-products .p-tree__node:focus-visible {
    transform: none;
  }
}
