.page-products {
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 10% -6%, rgba(39, 225, 232, 0.12), transparent 44%),
    radial-gradient(circle at 94% 3%, rgba(212, 175, 55, 0.14), transparent 46%);
  background-repeat: no-repeat;
  padding-bottom: 72px;
}

.page-products .breadcrumbs {
  padding: 18px 0 8px;
  font-size: 13px;
}
.page-products .crumb-sep {
  margin: 0 8px;
  color: var(--gold-dark);
}
.page-products .crumb-current {
  color: var(--muted);
}

/* ---------- 首屏 ---------- */
.page-products .cat-hero {
  position: relative;
  padding: 20px 0 58px;
}
.page-products .cat-hero-inner {
  display: grid;
  gap: 34px;
  align-items: center;
}
.page-products .cat-hero-copy {
  max-width: 640px;
}
.page-products .cat-hero h1 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(29px, 6.4vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 12px 0 18px;
}
.page-products .cat-hero .lead {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(244, 241, 234, 0.82);
  margin: 0;
}
.page-products .cat-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.page-products .cat-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 34px;
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.page-products .cat-stat {
  min-width: 92px;
}
.page-products .cat-stat dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.page-products .cat-stat dd {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 27px;
  line-height: 1.1;
  color: var(--gold-light);
}
.page-products .cat-unit {
  display: block;
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
}
.page-products .cat-hero-visual {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -40px rgba(39, 225, 232, 0.5);
}
.page-products .cat-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(212, 175, 55, 0.22) 72%, transparent 100%);
  pointer-events: none;
}
.page-products .cat-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- 通用小节 ---------- */
.page-products .cat-overview,
.page-products .cat-flow,
.page-products .cat-index,
.page-products .cat-check,
.page-products .cat-version {
  padding: 42px 0;
  position: relative;
}
.page-products .cat-head {
  max-width: 720px;
}
.page-products .cat-head h2,
.page-products .cat-flow-body h2,
.page-products .cat-check-intro h2,
.page-products .cat-version-body h2,
.page-products .cat-next-panel h2 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(23px, 4.3vw, 37px);
  line-height: 1.28;
  color: var(--paper);
  margin: 10px 0 14px;
}
.page-products .cat-head .lead,
.page-products .cat-flow-body .lead,
.page-products .cat-check-intro .lead,
.page-products .cat-version-body .lead {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 241, 234, 0.78);
  margin: 0;
}

/* ---------- 标签条 ---------- */
.page-products .cat-tag-rail {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  padding: 4px 2px 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.page-products .cat-tag-rail .tag {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 24, 29, 0.82);
  color: rgba(244, 241, 234, 0.86);
  font-size: 13px;
  white-space: nowrap;
}
.page-products .cat-tag-rail .cat-tag-em {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.13);
}

/* ---------- 层级卡 ---------- */
.page-products .cat-tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 10px;
}
.page-products .cat-tier {
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(22, 24, 29, 0.96), rgba(11, 12, 14, 0.9));
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.page-products .cat-tier-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--paper);
  margin: 14px 0 10px;
}
.page-products .cat-tier p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(244, 241, 234, 0.76);
}

.page-products .cat-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  padding: 3px 9px;
  border: 1px solid var(--line-cyan);
  border-radius: 4px;
}

/* ---------- 流程 ---------- */
.page-products .cat-flow-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}
.page-products .cat-flow-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius);
  position: relative;
}
.page-products .cat-flow-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.page-products .cat-steps {
  list-style: none;
  counter-reset: catstep;
  margin: 26px 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.page-products .cat-steps li {
  counter-increment: catstep;
  position: relative;
  padding: 16px 18px 16px 62px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(22, 24, 29, 0.72);
  font-size: 14px;
  line-height: 1.75;
  color: rgba(244, 241, 234, 0.84);
}
.page-products .cat-steps li::before {
  content: counter(catstep, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

/* ---------- 索引卡 ---------- */
.page-products .cat-index-banner {
  margin: 26px 0 32px;
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius);
  overflow: hidden;
}
.page-products .cat-index-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
.page-products .cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.page-products .cat-card {
  position: relative;
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(22, 24, 29, 0.96), rgba(11, 12, 14, 0.9));
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.page-products .cat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), transparent 78%);
  opacity: 0.85;
}
.page-products .cat-card:hover,
.page-products .cat-card:focus-within {
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -30px rgba(212, 175, 55, 0.6);
}
.page-products .cat-card--feature {
  border-color: var(--gold);
  background: linear-gradient(150deg, rgba(212, 175, 55, 0.16), rgba(22, 24, 29, 0.96) 58%);
}
.page-products .cat-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--paper);
  margin: 14px 0 9px;
}
.page-products .cat-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(244, 241, 234, 0.76);
}
.page-products .cat-subtags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
}
.page-products .cat-subtags li {
  font-size: 12px;
  color: var(--muted);
  padding: 3px 10px;
  border: 1px dashed rgba(138, 143, 152, 0.45);
  border-radius: 999px;
}

/* ---------- 适配清单 ---------- */
.page-products .cat-check-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}
.page-products .cat-check-media {
  margin: 26px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.page-products .cat-check-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.page-products .cat-check .accordion-item {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 24, 29, 0.74);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.page-products .cat-check .accordion-item:hover {
  border-color: rgba(39, 225, 232, 0.45);
}
.page-products .cat-check .accordion-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--paper);
  cursor: pointer;
}
.page-products .cat-check .accordion-trigger::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--gold);
}
.page-products .cat-check .accordion-trigger[aria-expanded="true"]::after {
  content: "\2212";
}
.page-products .cat-check .accordion-panel-inner {
  padding: 0 18px 18px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(244, 241, 234, 0.78);
}
.page-products .cat-check .accordion-panel-inner p {
  margin: 0;
}

/* ---------- 版本 ---------- */
.page-products .cat-version-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}
.page-products .cat-version-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.page-products .cat-version-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.page-products .cat-version .timeline {
  list-style: none;
  margin: 26px 0 28px;
  padding: 0 0 0 20px;
  border-left: 1px solid var(--line);
}
.page-products .cat-version .timeline-item {
  position: relative;
  padding: 0 0 22px 18px;
  font-size: 14px;
  line-height: 1.78;
  color: rgba(244, 241, 234, 0.82);
}
.page-products .cat-version .timeline-item:last-child {
  padding-bottom: 0;
}
.page-products .cat-version .timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

/* ---------- 收尾 ---------- */
.page-products .cat-next {
  padding: 42px 0 0;
}
.page-products .cat-next-panel {
  position: relative;
  padding: 34px 24px 36px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(212, 175, 55, 0.15), rgba(11, 12, 14, 0.94) 62%);
  overflow: hidden;
}
.page-products .cat-next-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 225, 232, 0.28), transparent 68%);
  pointer-events: none;
}
.page-products .cat-next-panel p {
  position: relative;
  margin: 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(244, 241, 234, 0.8);
}
.page-products .cat-next-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- 断点 ---------- */
@media (min-width: 700px) {
  .page-products .cat-tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-products .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .page-products .cat-hero-visual img {
    aspect-ratio: 16 / 10;
  }
  .page-products .cat-next-panel {
    padding: 44px 40px 48px;
  }
}

@media (min-width: 960px) {
  .page-products .cat-hero {
    padding: 32px 0 76px;
  }
  .page-products .cat-hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
  .page-products .cat-flow-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
  }
  .page-products .cat-check-layout {
    grid-template-columns: 1fr 1fr;
    gap: 46px;
  }
  .page-products .cat-version-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
  .page-products .cat-overview,
  .page-products .cat-flow,
  .page-products .cat-index,
  .page-products .cat-check,
  .page-products .cat-version {
    padding: 56px 0;
  }
}

@media (min-width: 1040px) {
  .page-products .cat-tier-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .page-products .cat-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 26px 22px;
  }
  .page-products .cat-card {
    align-self: start;
  }
  .page-products .cat-card:nth-child(1) { grid-column: 1 / span 7; }
  .page-products .cat-card:nth-child(2) { grid-column: 8 / span 5; }
  .page-products .cat-card:nth-child(3) { grid-column: 1 / span 5; }
  .page-products .cat-card:nth-child(4) { grid-column: 6 / span 7; }
  .page-products .cat-card:nth-child(5) { grid-column: 1 / span 4; }
  .page-products .cat-card:nth-child(6) { grid-column: 5 / span 4; }
  .page-products .cat-card:nth-child(7) { grid-column: 9 / span 4; }
  .page-products .cat-card:nth-child(8) { grid-column: 1 / span 6; }
  .page-products .cat-card:nth-child(9) { grid-column: 7 / span 6; }
  .page-products .cat-card:nth-child(even) {
    margin-top: 34px;
  }
}
