.page-products {
  overflow-x: clip;
}

/* ---------- 首屏 ---------- */
.page-products .prod-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(1.6rem, 5vw, 3rem) clamp(1.4rem, 4vw, 2.6rem);
}

.page-products .prod-hero::before {
  content: "";
  position: absolute;
  inset: -18% -12% auto -12%;
  height: 130%;
  z-index: -1;
  background:
    radial-gradient(44% 52% at 16% 10%, rgba(168, 85, 247, 0.30), transparent 70%),
    radial-gradient(40% 48% at 86% 26%, rgba(59, 130, 246, 0.26), transparent 72%),
    radial-gradient(36% 40% at 58% 96%, rgba(34, 211, 238, 0.16), transparent 70%);
  pointer-events: none;
}

.page-products .prod-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(30, 41, 59, 0.65) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 41, 59, 0.65) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 5%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 5%, transparent 78%);
  pointer-events: none;
}

.page-products .prod-hero__title {
  margin: 0.55rem 0 1.05rem;
  line-height: 1.03;
  letter-spacing: 0.02em;
}

.page-products .prod-hero .lede {
  max-width: 62ch;
}

/* ---------- 首屏数据条 ---------- */
.page-products .prod-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(1.4rem, 4vw, 2.2rem);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .prod-figures__cell {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.05rem;
  background: var(--ink);
}

.page-products .prod-figures__cell .stat__value {
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  line-height: 1.1;
}

.page-products .prod-figures__cell .stat__label {
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ---------- 模块索引 ---------- */
.page-products .prod-index {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.35rem;
  padding-bottom: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.page-products .prod-index::-webkit-scrollbar {
  display: none;
}

.page-products .prod-index__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  background: rgba(14, 17, 26, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.page-products .prod-index__link .mono {
  font-size: 0.72rem;
  color: var(--cyan);
}

.page-products .prod-index__link:hover,
.page-products .prod-index__link:focus-visible {
  color: var(--white);
  border-color: rgba(168, 85, 247, 0.55);
  transform: translateY(-2px);
}

/* ---------- 模块堆叠 ---------- */
.page-products .prod-stack {
  display: grid;
  gap: 0.9rem;
}

.page-products .prod-step {
  scroll-margin-top: 84px;
}

.page-products .prod-mod {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel) 0%, #090C14 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-products .prod-mod::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--grad);
  opacity: 0.65;
  transition: opacity 0.25s ease;
}

.page-products .prod-mod[open] {
  border-color: rgba(168, 85, 247, 0.42);
  box-shadow: 0 22px 48px -34px rgba(168, 85, 247, 0.85);
}

.page-products .prod-mod[open]::before {
  opacity: 1;
}

/* ---------- 状态条 ---------- */
.page-products .prod-mod__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "no name chev"
    "no status stat";
  align-items: center;
  gap: 0.4rem 0.75rem;
  padding: 1rem 1.05rem;
  cursor: pointer;
  list-style: none;
}

.page-products .prod-mod__bar::-webkit-details-marker {
  display: none;
}

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

.page-products .prod-mod__no {
  grid-area: no;
  align-self: start;
  padding-top: 0.15rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-products .prod-mod__name {
  grid-area: name;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: var(--white);
}

.page-products .prod-mod__status {
  grid-area: status;
  justify-self: start;
}

.page-products .prod-mod__stat {
  grid-area: stat;
  justify-self: end;
  font-size: 0.78rem;
  color: var(--orange);
  letter-spacing: 0.04em;
}

.page-products .prod-mod__chev {
  grid-area: chev;
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  transition: border-color 0.22s ease, background-color 0.22s ease;
}

.page-products .prod-mod__chev::before,
.page-products .prod-mod__chev::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: 1px;
}

.page-products .prod-mod__chev::before {
  width: 10px;
  height: 1.5px;
}

.page-products .prod-mod__chev::after {
  width: 1.5px;
  height: 10px;
  transition: opacity 0.2s ease;
}

.page-products .prod-mod[open] .prod-mod__chev {
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(168, 85, 247, 0.14);
}

.page-products .prod-mod[open] .prod-mod__chev::after {
  opacity: 0;
}

.page-products .prod-mod__bar:hover .prod-mod__chev {
  border-color: rgba(34, 211, 238, 0.6);
}

/* ---------- 模块正文 ---------- */
.page-products .prod-mod__body {
  padding: 1.1rem 1.05rem 1.35rem;
  border-top: 1px solid var(--line-soft);
}

.page-products .prod-mod[open] > .prod-mod__body {
  animation: prodReveal 0.35s ease both;
}

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

.page-products .prod-mod__grid {
  display: grid;
  gap: 1.2rem;
}

.page-products .prod-mod__text p {
  margin-top: 0;
}

.page-products .prod-mod__note {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--white);
  background: rgba(59, 130, 246, 0.10);
  border-left: 2px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.page-products .prod-mod__meta {
  margin: 1.15rem 0 0;
  padding-top: 0.85rem;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-top: 1px dashed var(--line);
}

.page-products .prod-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.page-products .prod-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .prod-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--grad);
}

/* ---------- 图 ---------- */
.page-products .prod-figure {
  margin: 0;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.page-products .prod-figure--tall {
  max-width: 320px;
  margin-inline: auto;
}

.page-products .prod-figure__cap {
  padding: 0.6rem 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

/* ---------- 胜率小图 ---------- */
.page-products .prod-mod__visual {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.page-products .prod-spark {
  display: block;
  width: 100%;
  height: 96px;
  padding: 0.6rem 0.7rem;
  background:
    linear-gradient(180deg, rgba(168, 85, 247, 0.10), rgba(34, 211, 238, 0.04));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- 三级流程 ---------- */
.page-products .prod-flow {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.3rem;
}

.page-products .prod-flow__step {
  padding: 1rem;
  background: rgba(19, 24, 38, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.page-products .prod-flow__no {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.page-products .prod-flow__title {
  margin: 0.45rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--white);
}

.page-products .prod-flow__step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 结尾行动区 ---------- */
.page-products .prod-cta {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.3rem, 4vw, 2.2rem);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(168, 85, 247, 0.22), transparent 62%),
    linear-gradient(180deg, var(--panel), #080B12);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-products .prod-cta__title {
  margin: 0.5rem 0 0.7rem;
}

.page-products .prod-cta__text {
  margin: 0;
  max-width: 60ch;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-products .prod-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- 宽屏 ---------- */
@media (min-width: 700px) {
  .page-products .prod-figures {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .page-products .prod-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 900px) {
  .page-products .prod-mod__bar {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    grid-template-areas: "no name status stat chev";
    gap: 1rem;
    padding: 1.1rem 1.4rem;
  }

  .page-products .prod-mod__no {
    align-self: center;
    padding-top: 0;
    font-size: 0.8rem;
  }

  .page-products .prod-mod__stat {
    font-size: 0.85rem;
  }

  .page-products .prod-mod__body {
    padding: 1.3rem 1.4rem 1.6rem;
  }

  .page-products .prod-mod__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
    gap: 1.8rem;
  }

  .page-products .prod-figure--tall {
    margin-inline: 0 auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-products .prod-mod__body,
  .page-products .prod-mod,
  .page-products .prod-index__link,
  .page-products .prod-mod__chev {
    animation: none;
    transition: none;
  }
}
