.page-products {
  --prod-card: #26262C;
  --prod-card-2: #2E2E34;
  --prod-line: rgba(245, 197, 24, .24);
  --prod-line-strong: rgba(245, 197, 24, .5);
  --prod-red-soft: rgba(198, 40, 40, .22);
  --prod-gold-soft: rgba(245, 197, 24, .12);
  overflow-x: clip;
}

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

.page-products .breadcrumbs {
  padding-top: 24px;
  padding-bottom: 4px;
  font-size: 13px;
  color: var(--c-text-secondary);
}

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

.page-products .crumb-sep {
  margin-inline: 8px;
  opacity: .6;
}

/* ========== 首屏 Hero ========== */
.page-products .product-hero {
  display: grid;
  gap: 24px;
  padding-block: 18px 56px;
}

.page-products .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.page-products .hero-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.12;
  letter-spacing: .02em;
  margin: 0;
}

.page-products .hero-title::after {
  content: "";
  display: block;
  width: 84px;
  height: 4px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-gold));
}

.page-products .hero-lead {
  max-width: 48ch;
  color: var(--c-text-secondary);
  line-height: 1.75;
  margin: 0;
}

.page-products .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-products .hero-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.page-products .bento-card--media {
  grid-column: 1 / -1;
  padding: 8px;
  background: var(--prod-card);
  border: 1px solid var(--prod-line);
  overflow: hidden;
}

.page-products .bento-card--media img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 800;
  object-fit: cover;
}

.page-products .bento-card--stat,
.page-products .bento-card--speed {
  position: relative;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--prod-line);
  background: linear-gradient(145deg, var(--prod-card), var(--prod-card-2));
}

.page-products .stat-num {
  font-family: var(--font-num);
  font-size: 40px;
  line-height: 1;
  color: var(--c-gold);
}

.page-products .stat-unit {
  font-size: 14px;
  color: var(--c-text-secondary);
  margin-left: 2px;
}

.page-products .stat-label {
  font-size: 14px;
  color: var(--c-text-secondary);
}

.page-products .bento-card--speed {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: var(--c-primary);
  border-color: transparent;
  min-height: 56px;
  padding-block: 12px;
}

.page-products .speed-bolt {
  font-size: 24px;
  color: var(--c-gold);
  line-height: 1;
}

.page-products .speed-text {
  font-family: var(--font-head);
  font-size: 22px;
  color: #fff;
}

.page-products .speed-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, .88);
}

/* ========== 通用区块标题 ========== */
.page-products .section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.page-products .section-heading h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.2;
  margin: 0;
}

.page-products .section-lead {
  max-width: 62ch;
  color: var(--c-text-secondary);
  line-height: 1.7;
  margin: 0 0 24px;
}

/* ========== 下载区 ========== */
.page-products .download-section {
  position: relative;
  background:
    radial-gradient(circle at 88% 12%, var(--prod-gold-soft), transparent 32%),
    linear-gradient(135deg, var(--prod-red-soft), transparent 46%);
  border-block: 1px solid var(--prod-line);
  padding-block: 40px;
}

.page-products .download-grid {
  display: grid;
  gap: 20px;
}

.page-products .qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: rgba(245, 245, 247, .03);
  border: 1px solid var(--prod-line);
  text-align: center;
}

.page-products .qr-label {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--c-gold);
}

.page-products .qr-frame {
  position: relative;
  width: 168px;
  height: 168px;
  padding: 8px;
  background: #fff;
  border: 2px solid var(--c-gold);
  overflow: hidden;
}

.page-products .qr-code {
  display: block;
  width: 100%;
  height: 100%;
}

.page-products .qr-scanline {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 4px;
  height: 30px;
  background: linear-gradient(180deg, transparent, rgba(245, 197, 24, .45), transparent);
  z-index: 2;
  animation: pageProductsScan 2.8s ease-in-out infinite;
}

@keyframes pageProductsScan {
  0% {
    top: 4px;
  }
  55% {
    top: 124px;
  }
  100% {
    top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .qr-scanline {
    animation: none;
    opacity: .4;
  }
}

.page-products .qr-note {
  font-size: 13px;
  color: var(--c-text-secondary);
  margin: 0;
}

.page-products .platform-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-products .download-meta {
  display: grid;
  gap: 18px;
  padding: 20px;
  background: var(--prod-card);
  border: 1px solid var(--prod-line);
}

.page-products .spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.page-products .spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 2px solid var(--c-primary);
  padding-top: 10px;
}

.page-products .spec-name {
  font-size: 13px;
  color: var(--c-text-secondary);
}

.page-products .spec-value {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--c-gold);
}

.page-products .spec-value--num {
  font-family: var(--font-num);
}

.page-products .spec-desc {
  font-size: 12px;
  color: var(--c-text-secondary);
}

.page-products .mini-title {
  font-family: var(--font-head);
  font-size: 16px;
  margin: 8px 0 0;
  color: var(--c-text);
}

.page-products .install-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--c-text-secondary);
  line-height: 1.6;
}

.page-products .install-note {
  font-size: 13px;
  color: var(--c-text-secondary);
  margin: 0;
  line-height: 1.6;
}

.page-products .install-note a {
  color: var(--c-gold);
}

.page-products .download-flow {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--prod-line);
  background: var(--prod-card);
}

.page-products .download-flow img {
  display: block;
  width: 100%;
  aspect-ratio: 600 / 400;
  object-fit: cover;
}

.page-products .download-flow figcaption {
  padding: 10px 4px 6px;
  font-size: 13px;
  color: var(--c-text-secondary);
  text-align: center;
}

/* ========== 手机 vs 电脑 ========== */
.page-products .compare-section {
  padding-block: 48px 40px;
}

.page-products .comparison-bento {
  position: relative;
  display: grid;
  gap: 14px;
  margin-block: 28px 22px;
}

.page-products .device-card {
  position: relative;
  padding: 22px 20px;
  background: linear-gradient(150deg, var(--prod-card), #202024);
  border: 1px solid var(--prod-line);
  transform: perspective(900px) rotateY(0deg);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.page-products .device-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.page-products .device-head h3 {
  font-family: var(--font-head);
  font-size: 20px;
  margin: 0;
}

.page-products .device-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-gold);
}

.page-products .device-icon--phone::before {
  content: "";
  display: block;
  width: 18px;
  height: 30px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.page-products .device-icon--phone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.page-products .device-icon--desktop::before {
  content: "";
  display: block;
  width: 30px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.page-products .device-icon--desktop::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  margin-top: 8px;
}

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

.page-products .feature-list li {
  position: relative;
  padding-left: 20px;
  color: var(--c-text-secondary);
  line-height: 1.55;
  font-size: 14px;
}

.page-products .feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  background: var(--c-primary);
  transform: rotate(45deg);
}

.page-products .feature-list li:nth-child(even)::before {
  background: var(--c-gold);
}

.page-products .speed-signal {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: linear-gradient(120deg, var(--c-primary), var(--c-deep-red));
  border: 1px dashed var(--c-gold);
  color: #fff;
  font-size: 14px;
}

.page-products .speed-signal strong {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--c-gold);
  letter-spacing: .04em;
}

.page-products .signal-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-gold);
  animation: pageProductsPulse 1.8s ease-in-out infinite;
}

@keyframes pageProductsPulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(245, 197, 24, .12);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(245, 197, 24, .24);
  }
}

@media (hover: hover) {
  .page-products .device-card--phone:hover {
    transform: perspective(900px) rotateY(-5deg) translateY(-4px);
    border-color: var(--prod-line-strong);
    box-shadow: var(--shadow);
  }

  .page-products .device-card--desktop:hover {
    transform: perspective(900px) rotateY(4deg) translateY(-4px);
    border-color: var(--prod-line-strong);
    box-shadow: var(--shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .signal-light {
    animation: none;
  }
}

.page-products .table-wrap {
  overflow-x: auto;
  border: 1px solid var(--prod-line);
  background: var(--prod-card);
}

.page-products .compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-products .compare-table th,
.page-products .compare-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--prod-line);
}

.page-products .compare-table thead th {
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}

.page-products .compare-table tbody th {
  color: var(--c-gold);
  font-weight: 500;
}

.page-products .compare-table tbody td:nth-child(2),
.page-products .compare-table tbody td:nth-child(3) {
  font-family: var(--font-num);
  color: var(--c-text);
}

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

/* ========== 版本演进 ========== */
.page-products .changelog-section {
  position: relative;
  padding-block: 48px 44px;
  background:
    radial-gradient(circle at 12% 18%, var(--prod-red-soft), transparent 36%),
    var(--c-bg-dark);
  border-block: 1px solid var(--prod-line);
}

.page-products .timeline-scroll {
  overflow-x: auto;
  padding: 28px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-gold) var(--prod-card);
  -webkit-overflow-scrolling: touch;
}

.page-products .timeline-scroll::-webkit-scrollbar {
  height: 6px;
}

.page-products .timeline-scroll::-webkit-scrollbar-thumb {
  background-color: var(--c-gold);
  border-radius: 0;
}

.page-products .timeline-media {
  margin-bottom: 14px;
}

.page-products .timeline-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1000 / 500;
  object-fit: cover;
  border: 1px solid var(--prod-line);
}

.page-products .timeline-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 880px;
}

.page-products .timeline-item {
  position: relative;
  padding: 18px 14px 14px;
  background: var(--prod-card);
  border-top: 3px solid var(--c-gold);
  transition: transform .25s ease, border-color .25s ease;
}

.page-products .timeline-version {
  display: block;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 18px;
  color: var(--c-gold);
  letter-spacing: .02em;
}

.page-products .timeline-desc {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--c-text-secondary);
  line-height: 1.55;
}

/* ========== 画廊 ========== */
.page-products .gallery-section {
  padding-block: 48px 40px;
}

.page-products .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.page-products .gallery-item {
  margin: 0;
  padding: 10px 10px 12px;
  background: var(--prod-card);
  border: 1px solid var(--prod-line);
}

.page-products .gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 375 / 800;
  object-fit: cover;
}

.page-products .gallery-item:nth-child(2) img {
  aspect-ratio: 390 / 800;
}

.page-products .gallery-item figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--c-text-secondary);
}

/* ========== 兼容性 ========== */
.page-products .compatibility-section {
  padding-block: 48px 52px;
  background: linear-gradient(180deg, transparent, rgba(142, 29, 29, .18));
  border-top: 1px solid var(--prod-line);
}

.page-products .compat-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.page-products .compat-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 8px 14px;
  background: var(--prod-card);
  border: 1px solid var(--prod-line);
  cursor: default;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.page-products .compat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--c-gold);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--c-gold);
  background: var(--prod-gold-soft);
}

.page-products .compat-name {
  font-size: 14px;
  color: var(--c-text);
}

.page-products .compat-hint {
  font-size: 12px;
  color: var(--c-text-secondary);
  margin-top: auto;
}

.page-products .compat-figure {
  margin: 18px 0 0;
  padding: 8px;
  border: 1px solid var(--prod-line);
  background: var(--prod-card);
}

.page-products .compat-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 900 / 600;
  object-fit: cover;
}

.page-products .compat-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--c-text-secondary);
  line-height: 1.7;
}

.page-products .compat-note a {
  color: var(--c-gold);
}

/* ========== 响应式 ========== */
@media (min-width: 768px) {
  .page-products .product-hero {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 40px;
  }

  .page-products .download-grid {
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  }

  .page-products .download-flow {
    grid-column: 1 / -1;
    max-width: 640px;
    margin-inline: auto;
  }

  .page-products .comparison-bento {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .page-products .speed-signal {
    order: -1;
    grid-column: 1 / -1;
  }

  .page-products .compat-wall {
    grid-template-columns: repeat(6, 1fr);
  }

  .page-products .timeline-item:hover {
    transform: translateY(-3px);
  }
}

@media (min-width: 1100px) {
  .page-products .hero-bento {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr);
    grid-template-rows: repeat(3, auto);
    align-items: stretch;
  }

  .page-products .bento-card--media {
    grid-column: 1 / 2;
    grid-row: 1 / 4;
    display: flex;
  }

  .page-products .bento-card--media img {
    flex: 1;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .page-products .bento-card--steps {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .page-products .bento-card--steps-desktop {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .page-products .bento-card--speed {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }

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

  .page-products .compat-wall {
    gap: 16px;
  }
}

@media (hover: hover) {
  .page-products .compat-item:hover {
    transform: translateY(-3px);
    border-color: var(--prod-line-strong);
    box-shadow: var(--shadow);
  }

  .page-products .timeline-item:hover {
    transform: translateY(-3px);
    border-top-color: var(--c-primary);
  }
}
