.page-products {
  --pp-gap: clamp(16px, 2vw, 28px);
  --pp-radius: 16px;
  --pp-card-bg: linear-gradient(180deg, var(--ink-700) 0%, var(--ink-800) 100%);
  --pp-line: var(--line);
  padding-bottom: clamp(48px, 8vw, 100px);
}

/* ---------- 面包屑与首屏 ---------- */
.page-products .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: clamp(18px, 3vw, 32px);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--iron);
}

.page-products .breadcrumbs a {
  color: var(--steel);
  text-decoration: none;
}

.page-products .breadcrumbs a:hover,
.page-products .breadcrumbs a:focus-visible {
  color: var(--cyan-soft);
}

.page-products .prod-hero {
  padding-bottom: clamp(24px, 4vw, 48px);
}

.page-products .prod-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-top: clamp(22px, 3.4vw, 40px);
}

.page-products .prod-hero__eyebrow {
  margin: 0 0 14px;
}

.page-products .prod-hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 6.6vw, 62px);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--mist);
}

.page-products .prod-hero__lede {
  margin: 0 0 26px;
  max-width: 58ch;
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  line-height: 1.8;
  color: var(--steel);
}

.page-products .prod-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 状态面板 ---------- */
.page-products .prod-console {
  border: 1px solid var(--pp-line);
  border-radius: var(--radius-l);
  padding: clamp(18px, 2.4vw, 26px);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(34, 211, 238, .13), transparent 62%),
    linear-gradient(180deg, var(--ink-700), var(--ink-900));
  box-shadow: 0 22px 60px -34px rgba(34, 211, 238, .55);
}

.page-products .prod-console__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .2em;
  color: var(--steel);
  text-transform: uppercase;
}

.page-products .prod-console__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .prod-console__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 14.5px;
  color: var(--steel);
}

.page-products .prod-console__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-products .prod-console__list b {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--cyan-soft);
  text-align: right;
}

/* ---------- 状态灯 ---------- */
.page-products .led {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--iron);
  flex: none;
}

.page-products .led--cyan {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .16), 0 0 10px rgba(34, 211, 238, .7);
}

.page-products .led--gold {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(231, 184, 75, .16), 0 0 10px rgba(231, 184, 75, .6);
}

/* ---------- 通用区块与标题 ---------- */
.page-products .prod-block {
  padding-block: clamp(34px, 5.5vw, 76px);
}

.page-products .prod-head {
  display: grid;
  gap: 12px;
  max-width: 66ch;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.page-products .prod-head .section__index {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--cyan);
}

.page-products .prod-head .section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(23px, 3.6vw, 38px);
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--mist);
}

.page-products .prod-head .section__lede {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 16.5px);
  line-height: 1.8;
  color: var(--steel);
}

/* ---------- 图片容器 ---------- */
.page-products .prod-figure {
  margin: 0 0 clamp(22px, 3vw, 36px);
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  overflow: hidden;
  background: var(--ink-800);
}

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

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

.page-products .prod-figure--scenes {
  margin-top: clamp(26px, 3.6vw, 44px);
  margin-bottom: 0;
}

/* ---------- 01 入口卡片矩阵 ---------- */
.page-products .entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
}

.page-products .entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 22px 20px 24px;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  background: var(--pp-card-bg);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.page-products .entry-card__bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  opacity: .75;
}

.page-products .entry-card:hover,
.page-products .entry-card:focus-within {
  border-color: rgba(34, 211, 238, .55);
  box-shadow: 0 20px 48px -32px rgba(34, 211, 238, .9);
}

.page-products .entry-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-products .entry-card__index {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--cyan);
}

.page-products .entry-card__state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--iron);
}

.page-products .entry-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--mist);
}

.page-products .entry-card__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--steel);
}

.page-products .entry-card__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  line-height: 1.7;
  color: var(--iron);
}

.page-products .entry-card__link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 232, 245, .35);
  align-self: flex-start;
}

.page-products .entry-card__link:hover,
.page-products .entry-card__link:focus-visible {
  color: var(--mist);
  border-bottom-color: var(--gold);
}

/* ---------- 02 场景选择 ---------- */
.page-products .scene-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 40px);
}

.page-products .scene-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
  scrollbar-width: thin;
}

.page-products .scene-rail__title {
  display: none;
}

.page-products .scene-rail__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--pp-line);
  border-radius: 999px;
  background: var(--ink-800);
  font-size: 13.5px;
  color: var(--steel);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .22s ease, color .22s ease, background-color .22s ease;
}

.page-products .scene-rail__link span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--cyan);
}

.page-products .scene-rail__link:hover,
.page-products .scene-rail__link:focus-visible {
  border-color: rgba(34, 211, 238, .55);
  color: var(--mist);
  background: var(--ink-700);
}

.page-products .scene-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
}

.page-products .scene-card {
  position: relative;
  padding: 22px 20px 24px;
  border: 1px solid var(--pp-line);
  border-left: 3px solid rgba(34, 211, 238, .55);
  border-radius: var(--pp-radius);
  background: linear-gradient(180deg, rgba(22, 34, 56, .9), rgba(13, 21, 36, .9));
}

.page-products .scene-card__index {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--gold);
}

.page-products .scene-card__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--mist);
}

.page-products .scene-card__text {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--steel);
}

.page-products .scene-card__meta {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--iron);
}

.page-products .scene-card__btn {
  align-self: flex-start;
}

/* ---------- 03 切换步骤 ---------- */
.page-products .switch-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
  margin: 0 0 clamp(24px, 3.4vw, 40px);
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.page-products .switch-step {
  position: relative;
  padding: 24px 20px 24px 22px;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  background: var(--ink-800);
}

.page-products .switch-step::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(231, 184, 75, .8));
  opacity: .55;
  border-radius: 2px;
}

.page-products .switch-step__num {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(34, 211, 238, .45);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--cyan);
}

.page-products .switch-step__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--mist);
}

.page-products .switch-step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--steel);
}

/* ---------- 04 跨设备记录 ---------- */
.page-products .sync-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.page-products .sync-layout__media {
  margin-bottom: 0;
}

.page-products .sync-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.page-products .sync-points li {
  padding: 16px 18px;
  border: 1px solid var(--pp-line);
  border-radius: 12px;
  background: rgba(22, 34, 56, .55);
}

.page-products .sync-points__k {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--gold);
}

.page-products .sync-points p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--steel);
}

/* ---------- 05 目录工具 ---------- */
.page-products .tools-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.page-products .tools-layout__media {
  margin-bottom: 0;
}

.page-products .tools-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.page-products .tools-item {
  position: relative;
  padding: 18px 18px 18px 22px;
  border: 1px solid var(--pp-line);
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(42, 52, 70, .55) 0 1px, transparent 1px 7px) right 14px top 14px / 46px 12px no-repeat,
    var(--ink-800);
}

.page-products .tools-item__code {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--cyan);
}

.page-products .tools-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--mist);
}

.page-products .tools-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--steel);
}

/* ---------- 收尾行动 ---------- */
.page-products .prod-cta {
  padding-top: clamp(10px, 2vw, 24px);
}

.page-products .prod-cta__box {
  position: relative;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--pp-line);
  border-radius: var(--radius-l);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(231, 184, 75, .14), transparent 60%),
    radial-gradient(90% 120% at 100% 100%, rgba(34, 211, 238, .14), transparent 60%),
    linear-gradient(180deg, var(--ink-700), var(--ink-900));
  overflow: hidden;
}

.page-products .prod-cta__kicker {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .24em;
  color: var(--gold);
}

.page-products .prod-cta__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--mist);
}

.page-products .prod-cta__text {
  margin: 0 0 24px;
  max-width: 56ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--steel);
}

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

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

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

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

@media (min-width: 980px) {
  .page-products .prod-hero__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    gap: clamp(32px, 5vw, 72px);
  }

  .page-products .scene-layout {
    grid-template-columns: 208px minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
  }

  .page-products .scene-rail {
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
    border-bottom: 0;
    border-left: 1px solid var(--line-soft);
    padding-left: 16px;
    position: sticky;
    top: calc(var(--header-h) + 20px);
    align-self: start;
  }

  .page-products .scene-rail__title {
    display: block;
    margin: 0 0 8px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .2em;
    color: var(--iron);
  }

  .page-products .scene-rail__link {
    border-radius: 10px;
    white-space: normal;
  }

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

  .page-products .sync-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(28px, 4vw, 56px);
  }

  .page-products .tools-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(28px, 4vw, 56px);
  }
}

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

  .page-products .entry-card:nth-child(even) {
    transform: translateY(30px);
  }

  .page-products .entry-grid {
    padding-bottom: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .entry-card,
  .page-products .scene-rail__link,
  .page-products .entry-card__link {
    transition: none;
  }

  .page-products .entry-card:nth-child(even) {
    transform: none;
  }
}
