.page-products {
  --p-edge: clamp(18px, 4.5vw, 56px);
  --p-block: clamp(44px, 7vw, 96px);
  --p-card: #ffffff;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.page-products *,
.page-products *::before,
.page-products *::after {
  box-sizing: border-box;
}

.page-products [id] {
  scroll-margin-top: 96px;
}

.page-products h1,
.page-products h2,
.page-products h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.16;
  color: var(--ink);
}

.page-products h1 {
  font-size: clamp(32px, 6.4vw, 60px);
  line-height: 1.06;
  font-style: italic;
}

.page-products h2 {
  font-size: clamp(24px, 3.6vw, 40px);
}

.page-products h3 {
  font-size: clamp(17px, 2vw, 21px);
}

.page-products p {
  margin: 0;
}

.page-products .section {
  padding-block: var(--p-block);
}

.page-products .p-crumb {
  padding: 18px 0 4px;
}

.page-products .p-body {
  font-size: clamp(15px, 1.15vw, 16.5px);
  line-height: 1.8;
  color: var(--slate);
}

.page-products .p-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding-bottom: 2px;
  color: var(--signal);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(232, 93, 4, 0.32);
  transition: border-color 0.18s ease, gap 0.18s ease;
}

.page-products .p-link:hover,
.page-products .p-link:focus-visible {
  gap: 12px;
  border-color: var(--signal);
}

.page-products .p-note {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: rgba(36, 90, 122, 0.08);
  color: var(--blue);
  font-size: 13.5px;
  line-height: 1.7;
}

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

.page-products .p-hero {
  position: relative;
  isolation: isolate;
  margin: 8px clamp(8px, 1.6vw, 20px) 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--deep);
  color: #fff;
}

.page-products .p-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-products .p-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.page-products .p-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(620px 320px at 84% 6%, rgba(232, 93, 4, 0.45), transparent 70%),
    linear-gradient(118deg, rgba(11, 42, 34, 0.96) 0%, rgba(11, 42, 34, 0.86) 48%, rgba(36, 90, 122, 0.6) 100%);
}

.page-products .p-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  padding: clamp(30px, 5vw, 64px) clamp(20px, 4vw, 52px);
}

.page-products .p-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.page-products .p-kicker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(20, 224, 196, 0.18);
}

.page-products .p-hero h1 {
  margin-top: 16px;
  color: #fff;
}

.page-products .p-hero__lede {
  margin-top: 18px;
  max-width: 40em;
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
}

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

.page-products .p-hero__actions .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.page-products .p-status {
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid rgba(20, 224, 196, 0.3);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.page-products .p-status__title {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-products .p-status__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .p-status__item {
  display: grid;
  gap: 4px;
}

.page-products .p-status__value {
  font-family: var(--font-data);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.page-products .p-status__label {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
}

.page-products .p-status__note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.66);
}

/* ---------- 总览仪表板 ---------- */

.page-products .p-dash__head {
  display: grid;
  gap: 14px;
  max-width: 62ch;
}

.page-products .p-dash__intro {
  font-size: clamp(15px, 1.15vw, 16.5px);
  line-height: 1.8;
  color: var(--slate);
}

.page-products .p-dash__grid {
  display: grid;
  gap: 18px;
  margin-top: clamp(24px, 3vw, 40px);
}

.page-products .p-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.page-products .p-rail__item {
  flex: 0 0 auto;
  min-width: 205px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num name"
    "num desc";
  gap: 2px 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--p-card);
  color: var(--ink);
  text-decoration: none;
  scroll-snap-align: start;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.page-products .p-rail__item:hover,
.page-products .p-rail__item:focus-visible {
  border-color: var(--signal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.page-products .p-rail__num {
  grid-area: num;
  align-self: center;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  color: var(--signal);
}

.page-products .p-rail__name {
  grid-area: name;
  font-size: 15px;
  font-weight: 700;
}

.page-products .p-rail__desc {
  grid-area: desc;
  font-size: 12.5px;
  color: var(--slate);
}

.page-products .p-features {
  display: grid;
  gap: 12px;
}

.page-products .p-feature {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--p-card);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.page-products .p-feature[open] {
  border-color: rgba(232, 93, 4, 0.5);
  box-shadow: var(--shadow-lift);
}

.page-products .p-feature__summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

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

.page-products .p-feature__summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: -2px;
}

.page-products .p-feature__badge {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 12px;
}

.page-products .p-feature__title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 900;
}

.page-products .p-feature__hint {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(36, 90, 122, 0.1);
  color: var(--blue);
  font-size: 13px;
  line-height: 1;
}

.page-products .p-feature__hint::after {
  content: "＋";
}

.page-products .p-feature[open] .p-feature__hint {
  background: var(--signal);
  color: #fff;
}

.page-products .p-feature[open] .p-feature__hint::after {
  content: "－";
}

.page-products .p-feature__body {
  display: grid;
  gap: 12px;
  padding: 0 18px 20px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--slate);
  animation: p-fade 0.2s ease both;
}

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

.page-products .p-feature__list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.page-products .p-feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 2px;
  background: var(--signal);
}

.page-products .p-feature__use {
  padding: 9px 12px;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(36, 90, 122, 0.08);
  font-size: 13px;
  line-height: 1.65;
  color: var(--blue);
}

/* ---------- 左右分屏 ---------- */

.page-products .p-split {
  display: grid;
  gap: clamp(22px, 3.5vw, 48px);
  align-items: center;
}

.page-products .p-split__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--deep), var(--blue));
}

.page-products .p-split__media .p-img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  max-width: 100%;
}

.page-products .p-split__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--signal), var(--amber), var(--cyan));
}

.page-products .p-split__body {
  display: grid;
  gap: 16px;
  align-content: start;
}

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

.page-products .p-chips li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.page-products .p-chips li:nth-child(even) {
  background: #fff;
  border: 1px solid var(--line);
}

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

.page-products .p-checks li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--slate);
}

.page-products .p-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(232, 93, 4, 0.16);
  box-shadow: inset 0 0 0 3px var(--signal);
}

.page-products .p-checks strong {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

/* ---------- 复盘流程 ---------- */

.page-products .p-review__head {
  display: grid;
  gap: 14px;
  max-width: 64ch;
}

.page-products .p-flow {
  display: grid;
  gap: 14px;
  margin: clamp(24px, 3vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}

.page-products .p-flow__step {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--p-card);
  overflow: hidden;
}

.page-products .p-flow__step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--signal), var(--amber));
}

.page-products .p-flow__num {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--signal);
}

.page-products .p-flow__step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
}

.page-products .p-flow__step:last-child {
  background: var(--deep);
  border-color: var(--deep);
}

.page-products .p-flow__step:last-child h3 {
  color: #fff;
}

.page-products .p-flow__step:last-child p {
  color: rgba(255, 255, 255, 0.76);
}

.page-products .p-flow__step:last-child .p-flow__num {
  color: var(--cyan);
}

.page-products .p-flow__step:last-child::before {
  background: linear-gradient(90deg, var(--cyan), var(--signal));
}

.page-products .p-review__foot {
  display: grid;
  gap: 14px;
  align-items: center;
  margin-top: clamp(22px, 3vw, 34px);
  padding: clamp(18px, 2.6vw, 28px);
  border-radius: var(--r-md);
  background: var(--sand);
}

.page-products .p-review__foot p {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

/* ---------- 观众数据 ---------- */

.page-products .p-metrics {
  display: grid;
  gap: 12px;
  margin: 0;
}

.page-products .p-metrics > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-sm);
  background: #fff;
}

.page-products .p-metrics dt {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}

.page-products .p-metrics dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--slate);
}

.page-products .p-chart {
  margin: 4px 0 0;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--deep);
}

.page-products .p-chart__svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .p-chart__svg rect {
  fill: var(--cyan);
  opacity: 0.85;
}

.page-products .p-chart__svg rect.is-hi {
  fill: var(--signal);
  opacity: 1;
}

.page-products .p-chart figcaption {
  margin-top: 10px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- 电脑端与版本 ---------- */

.page-products .p-desktop__head {
  display: grid;
  gap: 14px;
  max-width: 66ch;
}

.page-products .p-desktop__grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
  margin-top: clamp(24px, 3vw, 36px);
}

.page-products .p-tabs {
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--p-card);
}

.page-products .p-tabs__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-products .p-tabs__labels {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.page-products .p-tabs__labels label {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--slate);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.page-products .p-tabs__labels label:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.page-products #p-ver-1:checked ~ .p-tabs__labels label[for="p-ver-1"],
.page-products #p-ver-2:checked ~ .p-tabs__labels label[for="p-ver-2"],
.page-products #p-ver-3:checked ~ .p-tabs__labels label[for="p-ver-3"] {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}

.page-products #p-ver-1:focus-visible ~ .p-tabs__labels label[for="p-ver-1"],
.page-products #p-ver-2:focus-visible ~ .p-tabs__labels label[for="p-ver-2"],
.page-products #p-ver-3:focus-visible ~ .p-tabs__labels label[for="p-ver-3"] {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

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

.page-products .p-tabs__panel {
  display: none;
  animation: p-fade 0.2s ease both;
}

.page-products .p-tabs__panel h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.page-products .p-tabs__panel p {
  margin-bottom: 12px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--slate);
}

.page-products #p-ver-1:checked ~ .p-tabs__panels > .p-tabs__panel:nth-child(1),
.page-products #p-ver-2:checked ~ .p-tabs__panels > .p-tabs__panel:nth-child(2),
.page-products #p-ver-3:checked ~ .p-tabs__panels > .p-tabs__panel:nth-child(3) {
  display: block;
}

.page-products .p-desktop__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--deep);
}

.page-products .p-desktop__media .p-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-products .p-desktop__media figcaption {
  padding: 10px 14px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.72);
}

.page-products .p-note--wide {
  margin-top: clamp(18px, 2.4vw, 26px);
}

/* ---------- 场景跑道 ---------- */

.page-products .p-scene-sec__head {
  display: grid;
  gap: 14px;
  max-width: 64ch;
}

.page-products .p-runway {
  display: flex;
  gap: 14px;
  margin-top: clamp(24px, 3vw, 36px);
  padding: 2px clamp(18px, 4.5vw, 56px) 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.page-products .p-scene {
  flex: 0 0 min(78vw, 320px);
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--p-card);
  scroll-snap-align: start;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.page-products .p-scene:hover,
.page-products .p-scene:focus-within {
  transform: translateY(-3px);
  border-color: var(--signal);
  box-shadow: var(--shadow-lift);
}

.page-products .p-scene__tag {
  width: fit-content;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.13);
  color: var(--signal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-products .p-scene h3 {
  font-size: 18px;
}

.page-products .p-scene p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
}

.page-products .p-scene__path {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(36, 90, 122, 0.08);
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--blue);
}

/* ---------- 收尾 ---------- */

.page-products .p-cta {
  position: relative;
  overflow: hidden;
  margin: clamp(36px, 6vw, 80px) clamp(8px, 1.6vw, 20px) 0;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--deep) 0%, var(--blue) 100%);
  color: #fff;
}

.page-products .p-cta::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -110px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 224, 196, 0.28), transparent 68%);
}

.page-products .p-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  padding: clamp(26px, 4vw, 52px);
}

.page-products .p-cta h2 {
  color: #fff;
  font-size: clamp(22px, 3vw, 32px);
}

.page-products .p-cta p {
  margin-top: 10px;
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.page-products .p-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-products .p-cta__actions .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

@keyframes p-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

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

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

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

@media (min-width: 900px) {
  .page-products .p-hero__inner {
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
    align-items: end;
    padding: clamp(40px, 5vw, 70px) clamp(28px, 4vw, 56px);
  }

  .page-products .p-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(28px, 4vw, 56px);
  }

  .page-products .p-split--flip {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-products .p-desktop__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-products .p-cta__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .page-products .p-dash__grid {
    grid-template-columns: 292px minmax(0, 1fr);
    gap: clamp(22px, 3vw, 36px);
    align-items: start;
  }

  .page-products .p-rail {
    display: grid;
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-products .p-rail__item {
    min-width: 0;
  }
}

@media (min-width: 1080px) {
  .page-products .p-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

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

  .page-products .p-rail__item:hover,
  .page-products .p-scene:hover {
    transform: none;
  }
}
