.page-products {
  --cat-gap: clamp(14px, 2vw, 22px);
  --cat-edge: clamp(18px, 4vw, 40px);
  --accent: var(--cyan);
  background: var(--ink);
  color: var(--paper);
  overflow-x: clip;
  line-height: 1.75;
}

.page-products a {
  color: var(--cyan);
}

.page-products h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  margin: 0;
}

.page-products h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin: 0;
  letter-spacing: 0.01em;
}

/* ---------- 首屏 ---------- */
.page-products .cat-hero {
  display: grid;
  gap: clamp(22px, 4vw, 40px);
  max-width: var(--frame-max);
  margin-inline: auto;
  padding: clamp(20px, 4vw, 40px) var(--gutter) clamp(26px, 5vw, 56px);
}

.page-products .cat-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  font-size: clamp(2rem, 7vw, 3.5rem);
  margin: 12px 0 0;
  text-wrap: balance;
}

.page-products .cat-hero__lead {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.7vw, 17px);
  color: rgba(244, 240, 230, 0.84);
}

.page-products .cat-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-products .cat-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: clamp(24px, 4vw, 34px) 0 0;
  padding: 0;
}

.page-products .cat-hero__stats > div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  min-width: 0;
}

.page-products .cat-hero__stats dt {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-products .cat-hero__stats dd {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  color: var(--cyan);
}

.page-products .cat-hero__media {
  position: relative;
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--cabinet);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
}

.page-products .cat-hero__media::after {
  content: "";
  position: absolute;
  inset: 14px 14px auto auto;
  width: 46%;
  height: 3px;
  background: var(--orange);
  transform: skewX(-24deg);
  border-radius: var(--r-pill);
}

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

@media (min-width: 900px) {
  .page-products .cat-hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
  }

  .page-products .cat-hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- 通用区块 ---------- */
.page-products .cat-section {
  max-width: var(--frame-max);
  margin-inline: auto;
  padding: clamp(26px, 4.5vw, 50px) var(--gutter);
}

.page-products .cat-section + .cat-section {
  border-top: 1px solid var(--line-soft);
}

.page-products .section-head {
  display: grid;
  gap: 8px;
  margin-bottom: clamp(18px, 3vw, 26px);
}

.page-products .section-head__note {
  font-size: 14px;
  color: var(--mist);
  max-width: 56ch;
}

.page-products .cat-p {
  margin: 14px 0 0;
  font-size: clamp(15px, 1.6vw, 17px);
  color: rgba(244, 240, 230, 0.84);
  max-width: 68ch;
}

.page-products .cat-p--note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--mist);
}

.page-products .cat-p--tail {
  margin-top: 20px;
  font-size: 15px;
}

/* ---------- 五类抽屉总览 ---------- */
.page-products .drawer-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--cat-gap);
}

.page-products .drawer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--cabinet);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease;
}

.page-products .drawer-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--accent);
  transform: skewX(-24deg) scaleX(0.42);
  transform-origin: left center;
  transition: transform 200ms ease;
}

.page-products .drawer-card:hover,
.page-products .drawer-card:focus-within {
  border-color: rgba(53, 242, 214, 0.4);
  transform: translateY(-2px);
}

.page-products .drawer-card:hover::before,
.page-products .drawer-card:focus-within::before {
  transform: skewX(-24deg) scaleX(1);
}

.page-products .drawer-card:nth-child(1) { --accent: var(--cyan); }
.page-products .drawer-card:nth-child(2) { --accent: var(--orange); }
.page-products .drawer-card:nth-child(3) { --accent: var(--yellow); }
.page-products .drawer-card:nth-child(4) { --accent: var(--red); }
.page-products .drawer-card:nth-child(5) { --accent: var(--teal); }

.page-products .drawer-card__no {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.page-products .drawer-card__name {
  color: var(--paper);
}

.page-products .drawer-card__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(244, 240, 230, 0.78);
  flex: 1;
}

.page-products .drawer-card__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.page-products .drawer-card__link {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 242, 214, 0.4);
  padding-bottom: 2px;
}

.page-products .drawer-card__link:hover,
.page-products .drawer-card__link:focus-visible {
  border-bottom-color: var(--cyan);
}

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

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

/* ---------- 图文分栏 ---------- */
.page-products .cat-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 34px);
}

.page-products .cat-split__main {
  min-width: 0;
}

@media (min-width: 940px) {
  .page-products .cat-split {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: start;
  }

  .page-products .cat-split--reverse {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }
}

.page-products .cat-figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--cabinet);
  box-shadow: var(--shadow-card);
}

.page-products .cat-figure--wide {
  margin-top: clamp(18px, 3vw, 26px);
}

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

.page-products .cat-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
  border-top: 1px solid var(--line-soft);
}

/* ---------- 列表与三色图例 ---------- */
.page-products .cat-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .cat-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(244, 240, 230, 0.8);
}

.page-products .cat-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-products .cat-legend {
  margin-top: 22px;
  padding: clamp(16px, 2.2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(15, 46, 36, 0.7);
}

.page-products .cat-legend__title {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-products .cat-legend__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .cat-legend__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(244, 240, 230, 0.8);
}

.page-products .cat-legend__list .tag {
  white-space: nowrap;
}

/* ---------- 筛选维度小标签 ---------- */
.page-products .cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.page-products .cat-chips__item {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(53, 242, 214, 0.35);
  background: rgba(53, 242, 214, 0.08);
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ---------- 交锋时间轴 ---------- */
.page-products .cat-timeline {
  list-style: none;
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-products .cat-timeline__item {
  position: relative;
  padding: 16px 18px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--cabinet);
  min-width: 0;
}

.page-products .cat-timeline__item::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), rgba(53, 242, 214, 0));
  transform: skewX(-24deg);
  transform-origin: left center;
}

.page-products .cat-timeline__time {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-products .cat-timeline__item p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(244, 240, 230, 0.78);
}

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

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

/* ---------- 回看集锦四时段 ---------- */
.page-products .slot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--cat-gap);
  margin-top: clamp(20px, 3vw, 28px);
}

.page-products .slot-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2.2vw, 22px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, rgba(15, 46, 36, 0.96), rgba(7, 26, 20, 0.96));
  min-width: 0;
}

.page-products .slot-card__time {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--orange);
}

.page-products .slot-card__name {
  color: var(--paper);
}

.page-products .slot-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: rgba(244, 240, 230, 0.78);
  flex: 1;
}

.page-products .slot-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

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

/* ---------- 适配清单步骤 ---------- */
.page-products .step-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .step-item {
  position: relative;
  min-width: 0;
}

.page-products .step-item__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page-products .step-item__label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--cabinet);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.page-products .step-item__label:hover {
  border-color: rgba(53, 242, 214, 0.35);
}

.page-products .step-item__input:focus-visible + .step-item__label {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-products .step-item__input:checked + .step-item__label {
  background: rgba(53, 242, 214, 0.08);
  border-color: rgba(53, 242, 214, 0.5);
}

.page-products .step-item__no {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--mist);
  padding-top: 1px;
}

.page-products .step-item__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.page-products .step-item__text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
  line-height: 1.6;
}

.page-products .step-item__text span {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--mist);
}

.page-products .step-item__flag {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(155, 176, 168, 0.6);
  background: transparent;
  flex: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.page-products .step-item__flag::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  opacity: 0;
  transition: opacity 160ms ease;
}

.page-products .step-item__input:checked + .step-item__label .step-item__flag {
  background: var(--cyan);
  border-color: var(--cyan);
}

.page-products .step-item__input:checked + .step-item__label .step-item__flag::after {
  opacity: 1;
}

.page-products .step-item__input:checked + .step-item__label .step-item__no {
  color: var(--cyan);
}

/* ---------- 检索与收藏 ---------- */
.page-products .find-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--cat-gap);
}

.page-products .find-card {
  padding: clamp(16px, 2.2vw, 22px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  background: rgba(15, 46, 36, 0.72);
  min-width: 0;
}

.page-products .find-card h3 {
  color: var(--cyan);
}

.page-products .find-card p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(244, 240, 230, 0.78);
}

@media (min-width: 760px) {
  .page-products .find-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- 结尾 ---------- */
.page-products .cat-cta {
  max-width: var(--frame-max);
  margin-inline: auto;
  padding: clamp(26px, 4vw, 44px) var(--gutter) clamp(36px, 6vw, 66px);
  display: grid;
  gap: 16px;
}

.page-products .cat-cta__body h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.page-products .cat-cta__body p {
  margin: 10px 0 0;
  max-width: 58ch;
  font-size: 15px;
  color: rgba(244, 240, 230, 0.82);
}

.page-products .cat-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-products .cat-cta__note {
  margin: 0;
  font-size: 13px;
  color: var(--mist);
}

@media (min-width: 900px) {
  .page-products .cat-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .page-products .cat-cta__note {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .drawer-card,
  .page-products .drawer-card::before,
  .page-products .step-item__label,
  .page-products .step-item__flag,
  .page-products .step-item__flag::after {
    transition: none;
  }
}
