.page-products {
  background:
    linear-gradient(rgba(0, 212, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.032) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text-primary);
}

.page-products .products-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
}

.page-products .products-page-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

/* Hero 首屏 */
.page-products .products-hero {
  padding-top: 44px;
  padding-bottom: 24px;
}

.page-products .products-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.page-products .products-hero-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

.page-products .products-hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.16;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
  max-width: 13em;
  color: var(--text-primary);
}

.page-products .products-hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--silver);
  max-width: 46em;
  margin: 0 0 20px;
}

.page-products .products-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-products .products-hero-stats {
  display: grid;
  gap: 12px;
  align-content: center;
}

.page-products .products-stat-card {
  background: linear-gradient(135deg, rgba(16, 27, 51, 0.94), rgba(10, 31, 68, 0.88));
  border: var(--border-line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.page-products .products-stat-card .stat-value {
  font-size: 26px;
  line-height: 1.25;
  display: block;
  color: var(--text-primary);
}

.page-products .products-stat-card .stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

@media (min-width: 860px) {
  .page-products .products-hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
    gap: 44px;
  }
}

/* 区块标题 */
.page-products .products-section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 2px 16px;
  border-bottom: var(--border-line);
  padding-bottom: 16px;
  margin-bottom: 26px;
}

.page-products .products-section-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.page-products .products-section-title {
  font-family: var(--font-headline);
  font-size: 24px;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0;
}

.page-products .products-section-note {
  grid-column: 2;
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

/* 双端功能对比 */
.page-products .products-compare {
  padding-top: 48px;
}

.page-products .compare-platforms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.page-products .platform-block {
  background: linear-gradient(165deg, rgba(16, 27, 51, 0.92), rgba(10, 31, 68, 0.8));
  border: var(--border-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding-bottom: 20px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-products .platform-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(255, 107, 53, 0.4);
}

.page-products .platform-shot {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.page-products .platform-shot::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent), var(--data-cyan));
  z-index: 2;
}

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

.page-products .platform-block h3 {
  font-family: var(--font-headline);
  font-size: 18px;
  margin: 16px 20px 6px;
  color: var(--text-primary);
}

.page-products .platform-tagline {
  margin: 0 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

@media (min-width: 760px) {
  .page-products .compare-platforms {
    grid-template-columns: 1fr 1fr;
  }
}

/* 对比表 */
.page-products .compare-table {
  margin-top: 22px;
}

.page-products .compare-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px;
  border: var(--border-line);
  border-radius: 14px;
  margin-bottom: 12px;
  background: rgba(16, 27, 51, 0.72);
}

.page-products .compare-head {
  display: none;
}

.page-products .compare-feature {
  font-family: var(--font-headline);
  font-size: 15px;
  color: var(--data-cyan);
}

.page-products .compare-pc::before,
.page-products .compare-mobile::before {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.page-products .compare-pc::before {
  content: 'PC 端';
  color: var(--accent);
}

.page-products .compare-mobile::before {
  content: '移动端';
  color: var(--silver);
}

.page-products .compare-pc,
.page-products .compare-mobile {
  font-size: 14px;
  line-height: 1.65;
  color: var(--silver);
}

@media (min-width: 820px) {
  .page-products .compare-head,
  .page-products .compare-row {
    display: grid;
    grid-template-columns: 0.9fr 1fr 1fr;
    align-items: center;
    gap: 0;
    border: 0;
    border-bottom: var(--border-line);
    border-radius: 0;
    background: transparent;
    margin-bottom: 0;
    padding: 10px 4px;
  }

  .page-products .compare-head {
    border-bottom: 1px solid rgba(0, 212, 255, 0.28);
  }

  .page-products .compare-head .compare-cell {
    font-family: var(--font-headline);
    font-size: 14px;
    color: var(--text-primary);
  }

  .page-products .compare-cell {
    padding: 6px 14px;
    font-size: 14px;
    line-height: 1.6;
    border-left: var(--border-line);
  }

  .page-products .compare-cell:first-child {
    border-left: 0;
  }

  .page-products .compare-pc::before,
  .page-products .compare-mobile::before {
    display: none;
  }

  .page-products .compare-row:hover {
    background: rgba(255, 107, 53, 0.06);
  }

  .page-products .compare-row:hover .compare-cell:first-child {
    box-shadow: inset 3px 0 0 var(--accent);
  }
}

/* 客户端下载 */
.page-products .products-download {
  padding-top: 56px;
}

.page-products .download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 860px) {
  .page-products .download-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.page-products .download-card {
  background: linear-gradient(160deg, rgba(16, 27, 51, 0.94), rgba(10, 31, 68, 0.86));
  border: var(--border-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-products .download-card:hover,
.page-products .download-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(255, 107, 53, 0.42);
}

.page-products .download-card::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 107, 53, 0.35) 50%);
  z-index: 1;
  pointer-events: none;
}

.page-products .download-card::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.page-products .download-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  border: var(--border-line);
}

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

.page-products .download-card h3 {
  font-family: var(--font-headline);
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.page-products .download-card p {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.65;
  margin: 0 0 16px;
}

.page-products .download-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
}

.page-products .download-card li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.page-products .download-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

.page-products .download-card .btn {
  margin-top: 2px;
}

/* 二维码悬停提示 */
.page-products .qr-tip {
  display: block;
  margin-top: 14px;
  width: 88px;
  height: 104px;
  background: rgba(230, 237, 246, 0.95);
  border-radius: 10px;
  padding: 8px;
  border: 1px solid rgba(192, 192, 192, 0.3);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.page-products .download-card:hover .qr-tip,
.page-products .download-card:focus-within .qr-tip {
  opacity: 1;
  transform: translateY(0);
}

.page-products .qr-svg {
  width: 100%;
  height: 72px;
  display: block;
}

.page-products .qr-frame {
  fill: none;
  stroke: var(--bg-primary);
  stroke-width: 2;
}

.page-products .qr-solid {
  fill: var(--bg-primary);
}

.page-products .qr-cap {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  text-align: center;
}

.page-products .download-source-note {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  border-left: 2px solid var(--data-cyan);
  padding-left: 14px;
}

/* 离线存档机制 */
.page-products .products-offline {
  padding-top: 56px;
}

.page-products .offline-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 960px) {
  .page-products .offline-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 40px;
  }
}

.page-products .offline-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: var(--border-line);
}

.page-products .offline-visual img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.page-products .offline-copy h3 {
  font-family: var(--font-headline);
  font-size: 18px;
  margin: 24px 0 8px;
  color: var(--text-primary);
}

.page-products .offline-copy h3:first-of-type {
  margin-top: 0;
}

.page-products .offline-copy p {
  font-size: 15px;
  color: var(--silver);
  line-height: 1.75;
  margin: 0;
}

.page-products .offline-note {
  margin-top: 24px;
  background: rgba(255, 107, 53, 0.12);
  border-left: 3px solid var(--accent);
  border-radius: 4px 12px 12px 4px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--silver);
  line-height: 1.7;
}

.page-products .offline-help {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.page-products .offline-help a,
.page-products .version-news a {
  color: var(--accent);
  text-underline-offset: 4px;
}

/* 版本演进 */
.page-products .products-versions {
  padding-top: 56px;
  padding-bottom: 20px;
}

.page-products .version-stage {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 22px;
  background: rgba(16, 27, 51, 0.6);
  border: var(--border-line);
  overflow: hidden;
}

.page-products .version-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  pointer-events: none;
}

.page-products .version-scroll-hint {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0 0 12px;
  text-align: right;
  letter-spacing: 0.06em;
}

.page-products .version-scroll-hint span {
  color: var(--accent);
}

.page-products .version-scroll {
  position: relative;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
}

.page-products .version-card {
  flex: 0 0 calc(100% - 12px);
  scroll-snap-align: start;
  background: rgba(10, 31, 68, 0.78);
  backdrop-filter: blur(10px);
  border: var(--border-line);
  border-radius: var(--radius);
  padding: 0 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-products .version-card[open] {
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.page-products .version-card summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  font-family: var(--font-headline);
  font-size: 16px;
  color: var(--text-primary);
}

.page-products .version-card summary::-webkit-details-marker {
  display: none;
}

.page-products .version-card summary::after {
  content: '+';
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.page-products .version-card[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.page-products .version-body {
  padding: 0 0 16px;
}

.page-products .version-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-products .version-body li {
  font-size: 14px;
  color: var(--silver);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.page-products .version-body li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--data-cyan);
}

.page-products .version-news {
  position: relative;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 8px 0 0;
  text-align: right;
}

@media (min-width: 700px) {
  .page-products .version-card {
    flex-basis: calc(50% - 8px);
  }
}

@media (min-width: 980px) {
  .page-products .version-card {
    flex-basis: calc(33.33% - 11px);
  }
}
