.page-products {
  --p-gap: clamp(18px, 3vw, 32px);
  --p-pad: clamp(20px, 2.8vw, 30px);
}

/* ---------- 面包屑 ---------- */
.page-products .crumbs {
  margin: clamp(18px, 3vw, 28px) 0 0;
}

/* ---------- 首屏 ---------- */
.page-products .p-hero {
  padding-top: clamp(24px, 4vw, 48px);
}

.page-products .p-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}

.page-products .p-hero__copy {
  min-width: 0;
}

.page-products h1 {
  margin: 12px 0 18px;
  font-size: clamp(1.9rem, 5.4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--text);
}

.page-products .p-hero .lead {
  max-width: 34em;
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  line-height: 1.9;
  color: var(--text-dim);
  margin: 0 0 8px;
}

.page-products .p-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-products .p-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 44px);
  list-style: none;
  margin: clamp(26px, 4vw, 40px) 0 0;
  padding: clamp(18px, 2.4vw, 24px) 0 0;
  border-top: 1px solid var(--line);
}

.page-products .p-fact__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--cyan);
  letter-spacing: -0.02em;
}

.page-products .p-fact__lbl {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}

.page-products .p-hero__media {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
}

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

/* ---------- 左侧索引 + 正文 ---------- */
.page-products .p-rail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3.4vw, 44px);
  padding-block: clamp(36px, 6vw, 72px);
}

.page-products .p-rail {
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface-2);
  backdrop-filter: blur(14px);
}

.page-products .p-rail .rail-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--text-mute);
}

.page-products .p-rail .rail-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-products .p-rail .rail-link {
  display: block;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  border-radius: var(--radius-s);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.page-products .p-rail .rail-link:hover,
.page-products .p-rail .rail-link.is-active {
  color: var(--text);
  background: rgba(123, 92, 255, 0.16);
  border-left-color: var(--cyan);
}

.page-products .p-rail-body {
  min-width: 0;
}

/* ---------- 通用区块 ---------- */
.page-products .p-block {
  padding: clamp(30px, 4.6vw, 56px) 0;
}

.page-products .p-block:first-child {
  padding-top: 0;
}

.page-products .p-block + .p-block {
  border-top: 1px solid var(--line);
}

.page-products .p-block__head {
  max-width: 44em;
  margin-bottom: clamp(24px, 3.6vw, 40px);
}

.page-products h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.4rem, 3.2vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--text);
}

.page-products .p-block__lead {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.9;
  font-size: 0.98rem;
}

.page-products .p-grid-3 {
  gap: var(--p-gap);
}

/* ---------- 资料卡 ---------- */
.page-products .p-card {
  position: relative;
  padding: var(--p-pad);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, rgba(34, 44, 96, 0.6), rgba(10, 14, 36, 0.72) 68%);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-products .p-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.page-products .p-card__idx {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(47, 240, 228, 0.55);
}

.page-products .p-card .tag {
  margin-bottom: 14px;
}

.page-products .p-card .card-title {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--text);
}

.page-products .p-card .card-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-dim);
}

/* ---------- 设备区 ---------- */
.page-products .p-devices__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--p-gap);
  align-items: start;
}

.page-products .p-devices__media {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
}

.page-products .p-devices__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .p-devices__list li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(47, 240, 228, 0.6);
  border-radius: var(--radius-s);
  background: var(--surface);
}

.page-products .p-devices__list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.page-products .p-devices__list span {
  display: block;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-dim);
}

/* ---------- 记录区 ---------- */
.page-products .p-records__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--p-gap);
  align-items: center;
}

.page-products .p-records__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(18px, 2.6vw, 26px);
}

.page-products .p-records__list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.page-products .p-records__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-s);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: #050818;
  background: var(--grad-neon);
}

.page-products .p-records__list h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.page-products .p-records__list p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-dim);
}

.page-products .p-records__media {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
}

/* ---------- 步骤 ---------- */
.page-products .p-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 22px);
}

.page-products .p-step {
  position: relative;
  padding: var(--p-pad);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: linear-gradient(168deg, rgba(123, 92, 255, 0.18), rgba(10, 14, 36, 0.7) 66%);
}

.page-products .p-step__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 800;
  color: #050818;
  background: var(--grad-neon);
}

.page-products .p-step__title {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.page-products .p-step__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-dim);
}

/* ---------- 支持 ---------- */
.page-products .p-support__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--p-gap);
  align-items: center;
}

.page-products .p-support__card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: linear-gradient(150deg, rgba(47, 240, 228, 0.1), rgba(123, 92, 255, 0.14) 55%, rgba(10, 14, 36, 0.82));
  box-shadow: var(--shadow);
}

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

.page-products .p-support__list li {
  display: grid;
  gap: 4px;
}

.page-products .p-support__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

.page-products .p-support__value {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
}

.page-products .p-support__value a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 240, 228, 0.4);
}

.page-products .p-support__value a:hover {
  border-bottom-color: var(--cyan);
}

.page-products .p-support__note {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-s);
  background: rgba(255, 200, 97, 0.08);
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--text-dim);
}

.page-products .p-support__media {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 999px) {
  .page-products .p-rail {
    position: static;
    padding: 12px 10px;
  }

  .page-products .p-rail .rail-title {
    display: none;
  }

  .page-products .p-rail .rail-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .page-products .p-rail .rail-link {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 7px 12px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius-s);
    font-size: 0.82rem;
  }

  .page-products .p-rail .rail-link:hover,
  .page-products .p-rail .rail-link.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--cyan);
  }
}

@media (max-width: 560px) {
  .page-products .p-hero__facts {
    gap: 20px;
  }

  .page-products .p-records__list li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .page-products .p-records__mark {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
  }
}

/* ---------- 中屏 ---------- */
@media (min-width: 700px) {
  .page-products .p-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 860px) {
  .page-products .p-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

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

  .page-products .p-records__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .page-products .p-support__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 1000px) {
  .page-products .p-rail-layout {
    grid-template-columns: var(--rail) minmax(0, 1fr);
  }

  .page-products .p-rail {
    position: sticky;
    top: 96px;
  }

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

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