.page-products {
  --pg-gold: var(--accent-gold);
  --pg-green: var(--accent-green);
  --pg-data: var(--font-data);
  --pg-ink: #0d1f1c;

  position: relative;
  max-width: var(--container-lg);
  margin-inline: auto;
  padding: 0 1rem 4rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-products .breadcrumb-nav {
  padding: 1.25rem 0 0.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.page-products .breadcrumb-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.page-products .breadcrumb-nav a:hover,
.page-products .breadcrumb-nav a:focus-visible {
  color: var(--pg-gold);
}

/* ===== 01 下载英雄区 ===== */
.page-products .app-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0 2.25rem;
  position: relative;
}

.page-products .app-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 62%;
  height: 3px;
  background: linear-gradient(90deg, var(--pg-gold), transparent);
  border-radius: 999px;
}

.page-products .app-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.page-products .app-hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  max-width: 90%;
}

.page-products .app-hero__lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 34rem;
}

.page-products .app-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.page-products .app-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.page-products .app-hero__note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 30rem;
}

.page-products .app-hero__mock {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.page-products .phone-frame {
  position: relative;
  width: 206px;
  height: 330px;
  border-radius: 26px;
  border: 6px solid var(--border-subtle);
  background: var(--pg-ink);
  overflow: hidden;
  box-shadow:
    0 24px 42px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(242, 193, 78, 0.08),
    0 0 28px rgba(242, 193, 78, 0.12);
}

.page-products .phone-frame__screen {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.page-products .phone-frame__live {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(13, 31, 28, 0.72);
  color: var(--pg-gold);
  font-family: var(--pg-data);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  border: 1px solid rgba(242, 193, 78, 0.7);
  backdrop-filter: blur(4px);
}

.page-products .phone-frame__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 28%;
  background: linear-gradient(to bottom, transparent, rgba(77, 208, 168, 0.14), transparent);
  animation: page-products-scan 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes page-products-scan {
  0% { top: -30%; }
  55% { top: 115%; }
  100% { top: 115%; }
}

/* ===== 02 扫码下载区 ===== */
.page-products .qr-download {
  padding: 0.5rem 0 1.5rem;
}

.page-products .qr-download__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: 1.75rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.page-products .qr-download__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--pg-gold), var(--accent-green), transparent);
}

.page-products .qr-download__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.page-products .qr-symbol {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 14px;
  background-color: #f5f5ef;
  background-image: radial-gradient(circle, rgba(13, 31, 28, 0.82) 1.8px, transparent 2px);
  background-size: 14px 14px;
  background-position: 7px 7px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.page-products .qr-symbol__finder {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 7px solid #0d1f1c;
  border-radius: 4px;
  background-color: #f5f5ef;
  z-index: 1;
}

.page-products .qr-symbol__finder--tl { top: 8px; left: 8px; }
.page-products .qr-symbol__finder--tr { top: 8px; right: 8px; }
.page-products .qr-symbol__finder--bl { bottom: 8px; left: 8px; }

.page-products .qr-download__stamp {
  font-family: var(--pg-data);
  font-size: 0.8125rem;
  color: var(--pg-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-products .qr-download__body {
  flex: 1;
  min-width: 0;
}

.page-products .qr-download__body h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 700;
}

.page-products .qr-download__body > p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.page-products .qr-download__facts {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.page-products .qr-download__facts li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.page-products .qr-download__facts li::before {
  content: "▪";
  position: absolute;
  left: 0.15rem;
  color: var(--pg-gold);
  font-size: 0.875rem;
}

.page-products .qr-download__contact {
  display: block;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.page-products .qr-download__notice {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(168, 184, 176, 0.78);
  line-height: 1.55;
}

/* ===== 03 核心功能 ===== */
.page-products .feature-panel {
  padding: 2rem 0 2.5rem;
}

.page-products .feature-panel__head {
  margin-bottom: 1.25rem;
}

.page-products .feature-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
}

.page-products .feature-panel__intro {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 38rem;
}

.page-products .theme-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  scrollbar-width: thin;
}

.page-products .theme-filter__btn {
  flex: 0 0 auto;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.page-products .theme-filter__btn:hover,
.page-products .theme-filter__btn:focus-visible {
  border-color: var(--pg-gold);
  color: var(--pg-gold);
}

.page-products .theme-filter__btn.is-active {
  background: var(--pg-gold);
  border-color: var(--pg-gold);
  color: #0d1f1c;
  font-weight: 600;
  box-shadow: 0 4px 18px var(--shadow-gold);
}

.page-products .theme-filter__btn.is-active:hover {
  color: #0d1f1c;
}

.page-products .feature-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.25rem;
  margin: 0 -0.25rem;
  scrollbar-color: rgba(242, 193, 78, 0.5) rgba(13, 31, 28, 0);
  scrollbar-width: thin;
}

.page-products .feature-card {
  flex: 0 0 17rem;
  scroll-snap-align: start;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.page-products .feature-card::after {
  content: "";
  position: absolute;
  top: 12px;
  right: -8px;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--pg-gold), transparent);
  opacity: 0.65;
}

.page-products .feature-card:hover,
.page-products .feature-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(242, 193, 78, 0.7);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(242, 193, 78, 0.22);
}

.page-products .feature-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.page-products .feature-card__index {
  font-family: var(--pg-data);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(242, 193, 78, 0.28);
  line-height: 1;
  letter-spacing: -0.02em;
}

.page-products .feature-card__icon {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.page-products .feature-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.page-products .feature-card__text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
  flex: 1;
}

.page-products .feature-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--pg-gold);
  font-size: 0.8125rem;
  text-decoration: none;
  font-weight: 500;
  transition: gap var(--transition);
}

.page-products .feature-card__link:hover,
.page-products .feature-card__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
  gap: 0.5rem;
}

.page-products [data-theme].is-hidden,
.page-products [data-row-detail].is-hidden {
  display: none !important;
}

/* ===== 04 版本演进 ===== */
.page-products .version-panel {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.page-products .version-panel__head {
  margin-bottom: 1.5rem;
}

.page-products .version-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
}

.page-products .version-panel__intro {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 40rem;
}

.page-products .version-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1rem;
  margin: 0 -0.25rem;
  scrollbar-color: rgba(242, 193, 78, 0.5) rgba(13, 31, 28, 0);
  scrollbar-width: thin;
}

.page-products .version-node {
  flex: 0 0 15.5rem;
  scroll-snap-align: start;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.page-products .version-node:hover,
.page-products .version-node:focus-within {
  transform: translateY(-3px);
  border-color: rgba(242, 193, 78, 0.6);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.page-products .version-node--current {
  border-color: rgba(242, 193, 78, 0.55);
  background: linear-gradient(135deg, rgba(242, 193, 78, 0.1), transparent 60%),
    var(--bg-secondary);
  box-shadow: 0 0 22px rgba(242, 193, 78, 0.1);
}

.page-products .version-node__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-products .version-node__code {
  font-family: var(--pg-data);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pg-gold);
  letter-spacing: -0.02em;
}

.page-products .version-node__tag {
  font-family: var(--pg-data);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.page-products .version-node--current .version-node__tag {
  color: #0d1f1c;
  background: var(--pg-gold);
  border-color: var(--pg-gold);
  font-weight: 600;
}

.page-products .version-node__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.page-products .version-node__detail {
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.65rem;
  margin-top: 0.15rem;
}

.page-products .version-node__detail p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-products .version-panel__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.page-products .version-panel__foot a {
  color: var(--pg-gold);
  text-decoration: none;
}

.page-products .version-panel__foot a:hover,
.page-products .version-panel__foot a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== 05 服务覆盖 ===== */
.page-products .coverage-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding: 2rem 0 1rem;
  border-top: 1px solid var(--border-subtle);
}

.page-products .coverage-panel__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.page-products .coverage-panel__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 31, 28, 0.55));
  pointer-events: none;
}

.page-products .coverage-panel__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-products .coverage-panel__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.page-products .coverage-panel h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
}

.page-products .coverage-panel__intro {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 34rem;
}

.page-products .coverage-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  width: 100%;
}

.page-products .coverage-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.page-products .coverage-list li::before {
  content: "→";
  position: absolute;
  left: 0.15rem;
  color: var(--pg-gold);
  font-weight: 700;
}

.page-products .coverage-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.75rem;
}

.page-products .coverage-stats__item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.page-products .coverage-stats__num {
  font-family: var(--pg-data);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pg-gold);
  line-height: 1.2;
}

.page-products .coverage-stats__label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===== 媒体查询：平板 ===== */
@media (min-width: 620px) {
  .page-products .app-hero__title {
    font-size: 3rem;
  }

  .page-products .qr-download__card {
    flex-direction: row;
    align-items: center;
  }

  .page-products .feature-card {
    flex-basis: 18.5rem;
  }

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

/* ===== 媒体查询：桌面 ===== */
@media (min-width: 960px) {
  .page-products {
    padding: 0 1.5rem 5rem;
  }

  .page-products .app-hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    padding: 3.25rem 0 3rem;
  }

  .page-products .app-hero__title {
    font-size: 4rem;
    line-height: 1.08;
  }

  .page-products .app-hero__lead {
    font-size: 1.0625rem;
  }

  .page-products .phone-frame {
    width: 244px;
    height: 390px;
  }

  .page-products .qr-download__card {
    padding: 2rem 2.25rem;
    gap: 2.5rem;
  }

  .page-products .qr-symbol {
    width: 190px;
    height: 190px;
  }

  .page-products .feature-panel {
    padding: 3rem 0 3.5rem;
  }

  .page-products .feature-panel h2,
  .page-products .version-panel h2,
  .page-products .coverage-panel h2 {
    font-size: 2.5rem;
  }

  .page-products .feature-scroller {
    gap: 1.25rem;
  }

  .page-products .feature-card {
    flex-basis: 19.5rem;
  }

  .page-products .version-panel {
    padding: 3rem 0 3rem;
  }

  .page-products .version-track {
    gap: 1.25rem;
  }

  .page-products .version-node {
    flex-basis: 16.5rem;
  }

  .page-products .coverage-panel {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.75rem;
    align-items: center;
    padding: 3rem 0 1.5rem;
  }

  .page-products .coverage-panel__img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
  }
}

/* ===== 降级：弱动效 ===== */
@media (prefers-reduced-motion: reduce) {
  .page-products .phone-frame__scan {
    animation: none;
  }

  .page-products .feature-card,
  .page-products .version-node {
    transition: none;
  }
}
