.page-products {
  --xp-hair-dark: rgba(16, 20, 23, 0.14);
  --xp-hair-light: rgba(220, 231, 232, 0.16);
  --xp-maxw-text: 62ch;
  background: var(--sand-100);
  color: var(--ink-950);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-products .xp-hero {
  position: relative;
  overflow: hidden;
  background: var(--abyss-950);
  color: var(--white-050);
  padding: clamp(22px, 3vw, 34px) 0 clamp(48px, 7vw, 92px);
}

.page-products .xp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(220, 231, 232, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(220, 231, 232, 0.055) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(125% 95% at 72% 8%, #000 0%, transparent 78%);
  mask-image: radial-gradient(125% 95% at 72% 8%, #000 0%, transparent 78%);
  pointer-events: none;
}

.page-products .xp-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -30%;
  width: min(560px, 74vw);
  height: min(560px, 74vw);
  background: radial-gradient(circle, rgba(46, 217, 206, 0.16), transparent 68%);
  pointer-events: none;
}

.page-products .xp-crumbs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(26px, 5vw, 56px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(252, 252, 248, 0.55);
}

.page-products .xp-crumbs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-products .xp-crumbs a:hover,
.page-products .xp-crumbs a:focus-visible {
  color: var(--cyan-400);
  border-bottom-color: currentColor;
}

.page-products .xp-crumbs [aria-current="page"] {
  color: var(--coral-500);
}

.page-products .xp-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(30px, 4vw, 52px);
}

.page-products .xp-hero__eyebrow {
  margin: 0 0 14px;
  color: var(--cyan-400);
}

.page-products .xp-hero__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(36px, 7.2vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.page-products .xp-hero__title span {
  display: block;
  font-weight: 800;
  color: var(--coral-500);
  letter-spacing: -0.035em;
}

.page-products .xp-hero__lead {
  max-width: 56ch;
  margin: 0 0 26px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.9;
  color: rgba(252, 252, 248, 0.76);
}

.page-products .xp-hero__facts {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-products .xp-hero__facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(220, 231, 232, 0.12);
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 12.5px);
  letter-spacing: 0.04em;
  color: rgba(252, 252, 248, 0.7);
}

.page-products .xp-hero__facts li:last-child {
  border-bottom: 1px solid rgba(220, 231, 232, 0.12);
}

.page-products .xp-lamp {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(46, 217, 206, 0.14);
  flex: 0 0 auto;
}

.page-products .xp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-products .xp-hero__stage {
  margin: 0;
}

.page-products .media-frame {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--ink-950);
  background: var(--abyss-950);
}

.page-products .media-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .xp-stage {
  border-color: rgba(220, 231, 232, 0.32);
  box-shadow: 12px 12px 0 0 rgba(46, 217, 206, 0.24);
}

.page-products .xp-stage__cap {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(252, 252, 248, 0.5);
}

.page-products .xp-sec {
  position: relative;
  padding: clamp(46px, 7vw, 90px) 0;
}

.page-products .xp-sec__hd {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 3vw, 30px);
  align-items: start;
  margin-bottom: clamp(26px, 4vw, 46px);
}

.page-products .xp-sec h2 {
  margin: 4px 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.page-products .xp-sec__lead {
  max-width: var(--xp-maxw-text);
  margin: 0;
  font-size: clamp(14.5px, 1.5vw, 16.5px);
  line-height: 1.88;
  color: rgba(16, 20, 23, 0.72);
}

/* ---------- 01 收藏夹抽屉 ---------- */

.page-products .xp-fix__grid {
  display: grid;
  gap: clamp(24px, 3.4vw, 40px);
}

.page-products .xp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .xp-steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 2px 14px;
  padding: 20px 0;
  border-top: 2px solid var(--ink-950);
}

.page-products .xp-steps li:last-child {
  border-bottom: 2px solid var(--ink-950);
}

.page-products .xp-steps__idx {
  grid-row: span 2;
  padding-top: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--coral-500);
}

.page-products .xp-steps h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(17px, 2vw, 20px);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.page-products .xp-steps p {
  margin: 6px 0 0;
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.82;
  color: rgba(16, 20, 23, 0.7);
}

.page-products .xp-drawer-demo {
  background: var(--abyss-800);
  color: var(--white-050);
  border: 2px solid var(--ink-950);
  box-shadow: var(--shadow-brut);
  align-self: start;
}

.page-products .xp-drawer-demo__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--xp-hair-light);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(252, 252, 248, 0.72);
}

.page-products .xp-drawer-demo__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.page-products .xp-drawer-demo__list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  color: rgba(252, 252, 248, 0.78);
  text-decoration: none;
  border-left: 3px solid transparent;
  font-size: 14.5px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.page-products .xp-drawer-demo__list a:hover,
.page-products .xp-drawer-demo__list a:focus-visible {
  background: rgba(46, 217, 206, 0.1);
  border-left-color: var(--cyan-400);
  color: var(--white-050);
}

.page-products .xp-drawer-demo__list a[aria-current="page"] {
  border-left-color: var(--coral-500);
  color: var(--white-050);
  background: rgba(255, 106, 69, 0.1);
}

.page-products .xp-drawer-demo__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(252, 252, 248, 0.42);
}

/* ---------- 02 内容路径矩阵 ---------- */

.page-products .xp-paths {
  background: var(--fog-200);
}

.page-products .xp-paths__figure {
  margin: 0 0 clamp(24px, 3.6vw, 40px);
}

.page-products .xp-matrix {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-products .xp-matrix__cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--white-050);
  border: 2px solid var(--ink-950);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-products .xp-matrix__cell:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 0 var(--tide-600);
}

.page-products .xp-matrix__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-products .xp-matrix__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--coral-500);
}

.page-products .xp-matrix__cell h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.page-products .xp-matrix__cell p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.82;
  color: rgba(16, 20, 23, 0.72);
}

.page-products .xp-matrix__list {
  list-style: none;
  margin: 4px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--xp-hair-dark);
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: rgba(16, 20, 23, 0.62);
}

.page-products .xp-matrix__list li {
  display: flex;
  gap: 10px;
}

.page-products .xp-matrix__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 6px;
  flex: 0 0 auto;
  background: var(--tide-600);
}

.page-products .xp-matrix__link {
  margin-top: auto;
  padding-top: 6px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-950);
  text-decoration: none;
  border-bottom: 2px solid var(--coral-500);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease);
}

.page-products .xp-matrix__link:hover,
.page-products .xp-matrix__link:focus-visible {
  color: var(--tide-600);
}

/* ---------- 03 站内检索 ---------- */

.page-products .xp-search__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 48px);
  background: var(--abyss-800);
  color: var(--white-050);
  border: 2px solid var(--ink-950);
  box-shadow: var(--shadow-brut);
}

.page-products .xp-search__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 86% 10%, rgba(46, 217, 206, 0.16), transparent 44%),
    radial-gradient(circle at 6% 92%, rgba(255, 106, 69, 0.12), transparent 42%);
  pointer-events: none;
}

.page-products .xp-search__hd,
.page-products .xp-search__grid {
  position: relative;
  z-index: 1;
}

.page-products .xp-search h2 {
  color: var(--white-050);
}

.page-products .xp-search .xp-sec__lead {
  color: rgba(252, 252, 248, 0.74);
}

.page-products .xp-search__grid {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.page-products .xp-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 2px solid rgba(220, 231, 232, 0.34);
  background: rgba(4, 16, 25, 0.55);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: rgba(252, 252, 248, 0.56);
}

.page-products .xp-field__mag {
  flex: 0 0 auto;
  color: var(--cyan-400);
}

.page-products .xp-field__caret {
  width: 2px;
  height: 15px;
  margin-left: auto;
  background: var(--cyan-400);
  animation: xp-blink 1.6s steps(1) infinite;
}

.page-products .xp-field--result {
  align-items: baseline;
  gap: 14px;
  background: rgba(46, 217, 206, 0.07);
  border-color: rgba(46, 217, 206, 0.32);
  color: rgba(252, 252, 248, 0.82);
}

.page-products .xp-field__k {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cyan-400);
}

.page-products .xp-field__v {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
}

.page-products .xp-search__notes {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(252, 252, 248, 0.66);
}

.page-products .xp-search__notes li {
  position: relative;
  padding-left: 18px;
}

.page-products .xp-search__notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--coral-500);
}

.page-products .xp-search__figure {
  margin: 0;
}

.page-products .xp-search__figure .media-frame {
  border-color: rgba(220, 231, 232, 0.3);
}

.page-products .xp-flow {
  display: block;
  width: 100%;
  height: auto;
  max-width: 360px;
  margin: 18px 0 0;
  color: rgba(252, 252, 248, 0.8);
}

/* ---------- 04 加载反馈 ---------- */

.page-products .xp-load__grid {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

.page-products .xp-load__card {
  border: 2px solid var(--ink-950);
  background: var(--white-050);
  padding: 14px;
  box-shadow: var(--shadow-brut);
}

.page-products .xp-load__card .media-frame {
  border-width: 2px;
}

.page-products .xp-loadbar {
  position: relative;
  height: 6px;
  margin: 16px 0 0;
  overflow: hidden;
  background: rgba(16, 20, 23, 0.12);
}

.page-products .xp-loadbar span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, var(--cyan-400), transparent);
  animation: xp-sweep 2.6s var(--ease) infinite;
}

.page-products .xp-load__cap {
  margin: 12px 0 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(16, 20, 23, 0.55);
}

.page-products .xp-load__notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-products .xp-load__notes li {
  padding-left: 16px;
  border-left: 3px solid var(--cyan-400);
}

.page-products .xp-load__notes h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(16px, 1.9vw, 19px);
  letter-spacing: -0.01em;
}

.page-products .xp-load__notes p {
  margin: 0;
  max-width: 54ch;
  font-size: 14.5px;
  line-height: 1.82;
  color: rgba(16, 20, 23, 0.7);
}

/* ---------- 05 适配范围 ---------- */

.page-products .xp-fit__grid {
  display: grid;
  gap: clamp(26px, 4vw, 44px);
}

.page-products .xp-spec {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink-950);
}

.page-products .xp-spec li {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 6px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--xp-hair-dark);
}

.page-products .xp-spec__k {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--tide-600);
}

.page-products .xp-spec__v {
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(16, 20, 23, 0.75);
}

.page-products .xp-fit__side {
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
}

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

.page-products .xp-fit__tip {
  padding: clamp(18px, 2.6vw, 26px);
  background: var(--abyss-950);
  color: var(--white-050);
  border: 2px solid var(--ink-950);
  box-shadow: 8px 8px 0 0 var(--coral-500);
}

.page-products .xp-fit__tip h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: -0.01em;
}

.page-products .xp-fit__tip p {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.82;
  color: rgba(252, 252, 248, 0.76);
}

/* ---------- 收束 ---------- */

.page-products .xp-next {
  background: var(--abyss-950);
  color: var(--white-050);
  padding: clamp(34px, 5vw, 64px) 0;
}

.page-products .xp-next__bar {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

.page-products .xp-next__lead {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.86;
  color: rgba(252, 252, 248, 0.76);
}

.page-products .xp-next__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 动效 ---------- */

@keyframes xp-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes xp-sweep {
  from { transform: translateX(-115%); }
  to { transform: translateX(300%); }
}

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

@media (min-width: 760px) {
  .page-products .xp-matrix {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
  }
  .page-products .xp-matrix__cell--a { grid-column: span 7; }
  .page-products .xp-matrix__cell--b { grid-column: span 5; }
  .page-products .xp-matrix__cell--c { grid-column: span 5; }
  .page-products .xp-matrix__cell--d { grid-column: span 7; }
}

@media (min-width: 880px) {
  .page-products .xp-hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: end;
  }
  .page-products .xp-fix__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: start;
  }
  .page-products .xp-next__bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .page-products .xp-search__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    align-items: start;
  }
  .page-products .xp-load__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }
  .page-products .xp-fit__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }
}

@media (max-width: 520px) {
  .page-products .xp-spec li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .page-products .xp-spec__k {
    padding-top: 0;
    color: var(--coral-500);
  }
  .page-products .xp-search__panel {
    padding: 18px 16px;
  }
  .page-products .xp-fit__tip {
    box-shadow: 5px 5px 0 0 var(--coral-500);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .xp-field__caret {
    animation: none;
    opacity: 1;
  }
  .page-products .xp-loadbar span {
    animation: none;
    width: 100%;
    background: var(--cyan-400);
    opacity: 0.5;
  }
  .page-products .xp-matrix__cell {
    transition: none;
  }
  .page-products .xp-matrix__cell:hover {
    transform: none;
    box-shadow: none;
  }
}
