.page-products {
  --pr-panel: rgba(12, 42, 34, 0.82);
  --pr-panel-solid: #0C2A22;
  --pr-hair: rgba(199, 255, 61, 0.32);
  --pr-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color: var(--white);
}

/* ---------- 首屏 ---------- */
.page-products .pr-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(14px, 3vw, 26px);
  padding-bottom: clamp(46px, 7vw, 92px);
  border-bottom: 1px solid var(--line-soft);
}

.page-products .pr-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-products .pr-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(0.85);
}

.page-products .pr-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 25, 20, 0.5) 0%, rgba(6, 25, 20, 0.88) 62%, var(--ink) 100%);
}

.page-products .pr-hero::before {
  content: "";
  position: absolute;
  inset: -30% -12%;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(112deg, var(--line-soft) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(22deg, var(--line-soft) 0 1px, transparent 1px 76px);
  opacity: 0.5;
}

.page-products .pr-hero__inner {
  position: relative;
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.page-products .pr-hero__copy .breadcrumb {
  margin-bottom: 18px;
}

.page-products .pr-hero h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 7.2vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.012em;
}

.page-products .pr-hero .lead {
  margin-top: 18px;
  max-width: 44ch;
}

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

.page-products .pr-hero__board {
  position: relative;
  padding: clamp(14px, 2.4vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pr-panel);
  box-shadow: var(--pr-shadow);
  backdrop-filter: blur(10px);
}

.page-products .pr-board-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

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

.page-products .pr-board-readout > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-products .pr-board-readout .mono {
  color: var(--lime);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-products .pr-board-readout small {
  color: var(--stone);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* ---------- 通用小标题 ---------- */
.page-products .pr-h2 {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
}

.page-products .pr-body {
  margin-top: 16px;
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 52ch;
}

.page-products .pr-body + .pr-body {
  margin-top: 14px;
}

.page-products .pr-hint {
  margin-top: 12px;
  color: var(--stone);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* ---------- 流程时间轴 ---------- */
.page-products .pr-flow__head {
  max-width: 44rem;
}

.page-products .pr-steps {
  list-style: none;
  margin: clamp(26px, 4vw, 44px) 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-products .pr-step {
  position: relative;
  padding: 20px 18px 22px 54px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(12, 42, 34, 0.88), rgba(6, 25, 20, 0.86));
}

.page-products .pr-step__num {
  position: absolute;
  left: 16px;
  top: 22px;
  color: var(--lime);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.page-products .pr-step h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.page-products .pr-step p {
  margin: 8px 0 0;
  color: var(--stone);
  font-size: 0.92rem;
  line-height: 1.72;
}

/* ---------- 功能分栏 ---------- */
.page-products .pr-feature {
  display: grid;
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.page-products .pr-feature__copy {
  min-width: 0;
}

.page-products .pr-feature__media {
  min-width: 0;
}

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

.page-products .pr-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  max-width: 52ch;
}

.page-products .pr-list li {
  position: relative;
  padding-left: 22px;
  margin-top: 12px;
  color: var(--paper);
  font-size: 0.95rem;
  line-height: 1.75;
}

.page-products .pr-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--lime);
  transform: rotate(45deg);
}

/* ---------- 联赛胶囊预览 ---------- */
.page-products .pr-league-demo {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 2px 8px;
  margin-top: 20px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.page-products .pr-league-demo .league-chip {
  flex: 0 0 auto;
}

/* ---------- 折叠面板 ---------- */
.page-products .pr-accordion {
  margin-top: 24px;
  border-top: 1px solid var(--line-soft);
  max-width: 52ch;
}

.page-products .pr-accordion details {
  border-bottom: 1px solid var(--line-soft);
}

.page-products .pr-accordion summary {
  position: relative;
  padding: 15px 32px 15px 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--white);
}

.page-products .pr-accordion summary::-webkit-details-marker {
  display: none;
}

.page-products .pr-accordion summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--lime);
}

.page-products .pr-accordion details[open] summary::after {
  content: "−";
}

.page-products .pr-acc-body {
  padding: 0 0 18px;
  color: var(--stone);
  font-size: 0.93rem;
  line-height: 1.78;
}

/* ---------- 导出格式切换 ---------- */
.page-products .pr-export {
  position: relative;
  margin-top: 24px;
}

.page-products .pr-fmt-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-products .pr-fmt-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pr-panel);
}

.page-products .pr-fmt-switch label {
  cursor: pointer;
  padding: 8px 22px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--stone);
  transition: background 0.2s ease, color 0.2s ease;
}

.page-products #pr-fmt-csv:checked ~ .pr-fmt-switch label[for="pr-fmt-csv"],
.page-products #pr-fmt-png:checked ~ .pr-fmt-switch label[for="pr-fmt-png"] {
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.page-products .pr-fmt-input:focus-visible ~ .pr-fmt-switch {
  outline: 2px dashed var(--lime);
  outline-offset: 4px;
}

.page-products .pr-fmt-panel {
  display: none;
  margin-top: 16px;
  padding: 18px 18px 20px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--lime);
  border-radius: 14px;
  background: var(--pr-panel-solid);
  max-width: 52ch;
}

.page-products .pr-fmt-panel p {
  margin: 10px 0 0;
  color: var(--paper);
  font-size: 0.94rem;
  line-height: 1.78;
}

.page-products #pr-fmt-csv:checked ~ .pr-fmt-panel--csv {
  display: block;
}

.page-products #pr-fmt-png:checked ~ .pr-fmt-panel--png {
  display: block;
  border-left-color: var(--orange);
}

/* ---------- 场景 ---------- */
.page-products .pr-scenes {
  list-style: none;
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-products .pr-scene {
  position: relative;
  padding: 22px 20px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(12, 42, 34, 0.92), rgba(6, 25, 20, 0.92));
}

.page-products .pr-scene h3 {
  margin: 14px 0 8px;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.page-products .pr-scene p {
  margin: 0;
  color: var(--stone);
  font-size: 0.92rem;
  line-height: 1.74;
}

/* ---------- 版本列表 ---------- */
.page-products .pr-versions {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.page-products .pr-version {
  position: relative;
  padding: 14px 0 14px 22px;
}

.page-products .pr-version::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.page-products .pr-version .mono {
  display: block;
  color: var(--orange);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
}

.page-products .pr-version p {
  margin: 8px 0 0;
  color: var(--paper);
  font-size: 0.94rem;
  line-height: 1.75;
}

/* ---------- 结尾行动区 ---------- */
.page-products .pr-cta {
  display: grid;
  gap: 22px;
  margin-top: clamp(40px, 6vw, 76px);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--pr-hair);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(199, 255, 61, 0.1), transparent 58%),
    var(--pr-panel-solid);
}

.page-products .pr-cta h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  line-height: 1.15;
}

.page-products .pr-cta p {
  margin: 12px 0 0;
  color: var(--paper);
  font-size: 0.95rem;
  line-height: 1.78;
  max-width: 56ch;
}

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

/* ---------- 响应式 ---------- */
@media (min-width: 620px) {
  .page-products .pr-scenes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-products .pr-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .page-products .pr-step {
    padding: 46px 26px 0 0;
    border: 0;
    border-radius: 0;
    background: none;
  }

  .page-products .pr-step::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line);
  }

  .page-products .pr-step::after {
    content: "";
    position: absolute;
    top: 13px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lime);
  }

  .page-products .pr-step:last-child {
    padding-right: 0;
  }

  .page-products .pr-step__num {
    position: static;
    display: block;
    margin-bottom: 8px;
  }
}

@media (min-width: 920px) {
  .page-products .pr-hero__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }

  .page-products .pr-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .page-products .pr-feature--flip {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }

  .page-products .pr-feature--flip .pr-feature__media {
    order: -1;
  }
}

@media (min-width: 1100px) {
  .page-products .pr-scenes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pr-fmt-switch label {
    transition: none;
  }
}
