.page-products {
  --prod-rail-w: 230px;
}

.page-products img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.page-products__section-desc {
  color: var(--ink-soft);
  margin-top: 0.5rem;
  max-width: 38rem;
  line-height: 1.8;
  font-size: 0.925rem;
}

.section--dark .page-products__section-desc {
  color: rgba(255, 255, 255, 0.72);
}

/* ========== 封面 ========== */
.page-products__hero {
  position: relative;
  overflow: hidden;
}

.page-products__hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -12%;
  width: 55%;
  height: 140%;
  background: linear-gradient(135deg, transparent 25%, rgba(0, 229, 255, 0.1) 50%, transparent 75%);
  transform: skewX(-18deg);
  pointer-events: none;
}

.page-products__hero .page-hero__title em {
  font-style: normal;
  display: block;
  margin-top: 0.5rem;
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.page-products__hero-index {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

/* ========== 方案筛选台 ========== */
.page-products__console {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.page-products__console-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.page-products__filter-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--deep-blue);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.page-products__filter-rail .index-tag,
.page-products__rail-item {
  position: relative;
  z-index: 1;
}

.page-products__filter-rail .index-tag {
  width: 100%;
  flex: 1 0 100%;
  color: rgba(255, 255, 255, 0.55);
}

.page-products__rail-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-head);
  font-size: 0.925rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.page-products__rail-no {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
}

.page-products__rail-item:hover,
.page-products__rail-item.is-active {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.5);
  color: #fff;
  transform: translateX(3px);
}

.page-products__console-card {
  position: relative;
  overflow: hidden;
}

.page-products__console-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--grad-signal);
}

.page-products__console-state {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.page-products__console-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.page-products__console-body {
  line-height: 1.75;
  color: var(--ink);
}

.page-products__console-body strong {
  color: var(--deep-blue);
}

.page-products__console-meta {
  margin-top: 1.1rem;
  padding-top: 0.875rem;
  border-top: 1px dashed var(--glass-border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.page-products__console-bg {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  aspect-ratio: 14 / 5;
}

/* ========== 桌面端方案 ========== */
.page-products__desktop {
  padding: clamp(3rem, 7vw, 6rem) 0;
  position: relative;
}

.page-products__desktop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 35%, transparent);
  opacity: 0.5;
}

.page-products__card-layout {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.page-products__card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: rgba(17, 34, 64, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-products__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0.6;
}

.page-products__card:hover {
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.2), 0 18px 40px rgba(0, 229, 255, 0.08);
}

.page-products__card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.page-products__card h3,
.page-products__card-title {
  font-family: var(--font-head);
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.page-products__card-desc {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.page-products__spec {
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.55rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-products__spec div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.page-products__spec dt {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.page-products__spec dd {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--cyan);
  text-align: right;
}

.page-products__card .btn {
  margin-top: 1.25rem;
}

.page-products__desktop-media {
  min-height: 260px;
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
}

/* ========== 移动端方案 ========== */
.page-products__mobile {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.page-products__mobile-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.page-products__mobile-card {
  padding: 1.75rem;
  border-radius: var(--radius);
}

.page-products__mobile-card--ios {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
}

.page-products__mobile-card--android {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.45));
}

.page-products__mobile-card h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  margin: 1rem 0 0.5rem;
}

.page-products__mobile-card p {
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 0.95rem;
}

.page-products__mobile-card .page-products__spec {
  border-top: 1px solid var(--glass-border);
}

.page-products__mobile-card .page-products__spec dt {
  color: var(--ink-soft);
}

.page-products__mobile-card .page-products__spec dd {
  color: var(--deep-blue);
}

.page-products__mobile-media {
  border-radius: var(--radius);
  min-height: 220px;
  aspect-ratio: 9 / 7;
}

.page-products__mobile-note {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--deep-blue);
  border-color: transparent;
  color: #fff;
}

.page-products__mobile-note h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: #fff;
  margin: 0.75rem 0 0.5rem;
}

.page-products__mobile-note p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.page-products__mobile-note .btn {
  display: inline-flex;
}

/* ========== 版本对照 ========== */
.page-products__versions {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.page-products__versions-media {
  margin-top: 2.5rem;
  border-radius: var(--radius);
  aspect-ratio: 5 / 3;
}

.page-products__table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-products__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.86rem;
}

.page-products__table th,
.page-products__table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-products__table thead th {
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 229, 255, 0.06);
}

.page-products__table tbody tr:last-child th,
.page-products__table tbody tr:last-child td {
  border-bottom: none;
}

.page-products__table tbody th {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.page-products__table tbody td {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.9);
}

.page-products__table-current {
  background: rgba(0, 229, 255, 0.08);
}

.page-products__table-current th,
.page-products__table-current td {
  color: #fff;
}

.page-products__table-current td:first-child {
  color: var(--cyan);
  font-weight: 600;
}

.page-products__table-current td:first-child::before {
  content: "●";
  color: var(--orange);
  font-size: 0.6rem;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.page-products__table-note {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.8;
}

.page-products__table-note a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 229, 255, 0.4);
}

/* ========== 安装引导 ========== */
.page-products__install {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.page-products__install-layout {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.page-products__steps {
  display: grid;
  gap: 1rem;
}

.page-products__step {
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

.page-products__step summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
}

.page-products__step summary::-webkit-details-marker {
  display: none;
}

.page-products__step summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--cyan);
  transition: transform 0.25s ease;
}

.page-products__step[open] summary::after {
  transform: rotate(45deg);
}

.page-products__step[open] summary {
  background: rgba(0, 229, 255, 0.06);
}

.page-products__step > p {
  padding: 0 1.5rem 1.5rem;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 0.95rem;
  margin: 0;
}

.page-products__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--deep-blue);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
}

.page-products__install-more {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

.page-products__install-more a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 53, 0.3);
  transition: border-color 0.2s ease;
}

.page-products__install-more a:hover {
  border-color: var(--orange);
}

.page-products__install-media {
  border-radius: var(--radius);
  aspect-ratio: 8 / 5;
}

/* ========== 桌面断点 ========== */
@media (min-width: 768px) {
  .page-products__console-grid {
    grid-template-columns: var(--prod-rail-w) 1fr;
    align-items: stretch;
  }

  .page-products__filter-rail {
    flex-direction: column;
    align-items: stretch;
  }

  .page-products__filter-rail .index-tag {
    width: auto;
  }

  .page-products__rail-item {
    padding: 0.8rem 1rem;
  }

  .page-products__rail-item:hover,
  .page-products__rail-item.is-active {
    transform: translateX(6px);
  }

  .page-products__console-card {
    padding: 2rem;
  }

  .page-products__card-layout {
    grid-template-columns: 1fr 1.05fr;
    align-items: stretch;
  }

  .page-products__card {
    padding: 2rem;
  }

  .page-products__desktop-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
  }

  .page-products__mobile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-products__mobile-media,
  .page-products__mobile-note {
    grid-column: span 1;
  }

  .page-products__mobile-media {
    min-height: 260px;
  }

  .page-products__versions-media {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-products__table-wrap {
    margin-top: 2rem;
  }

  .page-products__install-layout {
    grid-template-columns: 1fr 0.9fr;
    align-items: start;
  }

  .page-products__install-media {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}
