.page-products {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
}

/* ===== Hero 顶部 ===== */
.page-products .pgx-hero {
  position: relative;
  isolation: isolate;
  padding: 2rem 0 3rem;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 7px),
    linear-gradient(160deg, #0b3d2e 0%, #071f17 100%);
  border-bottom: 3px solid var(--color-gold);
}

.page-products .pgx-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20%;
  right: -8%;
  width: 45%;
  height: 140%;
  background: linear-gradient(115deg, transparent 42%, rgba(212, 175, 55, 0.18) 43%, rgba(212, 175, 55, 0.18) 49%, transparent 50%);
  transform: rotate(-8deg);
  pointer-events: none;
}

.page-products .pgx-hero .breadcrumb {
  margin-bottom: 1.8rem;
  color: var(--color-text-muted);
}

.page-products .pgx-hero .breadcrumb__link {
  color: var(--color-gold-light);
  text-decoration: none;
}

.page-products .pgx-hero .breadcrumb__link:hover,
.page-products .pgx-hero .breadcrumb__link:focus-visible {
  text-decoration: underline;
  color: var(--color-gold);
}

.page-products .pgx-hero__body {
  display: grid;
  gap: 2rem;
}

.page-products .pgx-hero .eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.page-products .pgx-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #f5ecd7;
}

.page-products .pgx-hero__desc {
  font-size: 1.05rem;
  color: rgba(232, 232, 232, 0.86);
  max-width: 56ch;
  margin: 0 0 1.4rem;
}

.page-products .pgx-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.page-products .pgx-hero__tags .tag {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-heading);
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}

.page-products .pgx-hero__tags .tag:hover,
.page-products .pgx-hero__tags .tag:focus-visible {
  transform: translateY(-2px);
  border-color: var(--color-gold);
}

.page-products .pgx-hero__data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.page-products .pgx-hero__stat {
  background: rgba(0, 0, 0, 0.28);
  border-radius: var(--radius-md);
  padding: 1rem 0.85rem;
  border-top: 2px solid var(--color-gold);
  backdrop-filter: blur(4px);
}

.page-products .pgx-hero__stat-value {
  display: block;
  font-family: var(--font-data);
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--color-gold);
}

.page-products .pgx-hero__stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

/* ===== 产品展区布局 ===== */
.page-products .pgx-showcase {
  display: grid;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.page-products .pgx-index {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--color-bg-raised);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.page-products .pgx-index__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.25);
  padding-bottom: 0.75rem;
}

.page-products .pgx-index .index-list__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md);
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}

.page-products .pgx-index .index-list__item:hover,
.page-products .pgx-index .index-list__item:focus-visible {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--color-gold-light);
  transform: translateX(4px);
}

.page-products .pgx-index__num {
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: var(--color-gold);
  background: rgba(212, 175, 55, 0.12);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
}

.page-products .pgx-index__tail {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.25);
}

/* ===== 展区卡片 ===== */
.page-products .pgx-exhibit {
  margin-bottom: 2.25rem;
  scroll-margin-top: 1.25rem;
}

.page-products .pgx-exhibit__panel {
  position: relative;
  display: grid;
  gap: 1.6rem;
  background: var(--color-bg-raised);
  border: 1px solid rgba(212, 175, 55, 0.13);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-products .pgx-exhibit__panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), transparent 65%);
}

.page-products .pgx-exhibit__panel--api::before {
  background: linear-gradient(90deg, var(--color-accent), transparent 65%);
}

.page-products .pgx-exhibit__panel--history::before {
  background: linear-gradient(90deg, var(--color-success), transparent 65%);
}

.page-products .pgx-exhibit__panel--flat {
  background: linear-gradient(135deg, #242424 0%, #1c1c1c 100%);
}

.page-products .pgx-exhibit__copy {
  min-width: 0;
}

.page-products .pgx-exhibit__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.page-products .pgx-exhibit__no {
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--color-gold);
  background: rgba(212, 175, 55, 0.12);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.page-products .pgx-exhibit__copy h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.3;
  margin: 0.5rem 0 0.75rem;
  color: #f5ecd7;
}

.page-products .pgx-exhibit__desc {
  font-size: 0.98rem;
  color: var(--color-text);
  margin: 0 0 1rem;
}

.page-products .pgx-exhibit__list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.page-products .pgx-exhibit__list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.93rem;
  color: var(--color-text);
}

.page-products .pgx-exhibit__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.5rem;
  height: 0.5rem;
  transform: rotate(45deg);
  background: var(--color-gold);
}

.page-products .pgx-exhibit__media {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.page-products .pgx-exhibit__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

/* ===== 手机框架 ===== */
.page-products .pgx-phone-frame {
  width: 100%;
  max-width: 300px;
  align-self: center;
  background: linear-gradient(145deg, #333 0%, #181818 100%);
  border: 2px solid var(--color-gold);
  border-radius: 38px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.page-products .pgx-phone-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== API 规格与代码 ===== */
.page-products .pgx-api-spec {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

.page-products .pgx-api-spec__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  padding-bottom: 0.55rem;
  font-size: 0.9rem;
}

.page-products .pgx-api-spec__name {
  color: var(--color-text-muted);
}

.page-products .pgx-api-spec__value {
  font-family: var(--font-data);
  font-size: 0.86rem;
  color: var(--color-gold);
  white-space: nowrap;
}

.page-products .pgx-code {
  width: 100%;
  background: #11151a;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.1rem;
  font-family: var(--font-data);
  font-size: 0.84rem;
  line-height: 1.9;
  color: var(--color-text-muted);
  overflow-x: auto;
}

.page-products .pgx-code__uri {
  color: var(--color-gold);
}

.page-products .pgx-code__param {
  color: var(--color-accent);
}

.page-products .pgx-api-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ===== 战报对比说明 ===== */
.page-products .pgx-compare-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.1rem;
}

.page-products .pgx-compare-caption__arrow {
  color: var(--color-accent);
  font-weight: 700;
}

/* ===== 技术保障 ===== */
.page-products .pgx-tech-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.page-products .pgx-tech-stats > div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  font-size: 0.86rem;
  color: var(--color-text);
}

.page-products .pgx-tech-stats__num {
  display: block;
  font-family: var(--font-data);
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--color-accent);
}

.page-products .pgx-tech-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-products .pgx-tech-band__item {
  font-family: var(--font-data);
  font-size: 0.76rem;
  color: var(--color-gold-light);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
}

/* ===== 展开面板 ===== */
.page-products .expand-group {
  margin-top: 1.25rem;
}

.page-products .expand-item__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--color-gold-light);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.05rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.page-products .expand-item__trigger:hover,
.page-products .expand-item__trigger:focus-visible {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--color-gold);
  transform: translateY(-1px);
}

.page-products .expand-item__panel {
  padding-top: 0.75rem;
  font-size: 0.94rem;
  color: var(--color-text);
}

.page-products .expand-item__panel[hidden] {
  display: none;
}

/* ===== CTA ===== */
.page-products .pgx-cta {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-bg) 75%);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.page-products .pgx-cta__inner {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.page-products .pgx-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.3;
  margin: 0 0 0.4rem;
  color: #f5ecd7;
}

.page-products .pgx-cta p {
  color: var(--color-text-muted);
  margin: 0;
}

.page-products .pgx-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ===== 响应式断点 ===== */
@media (min-width: 760px) {
  .page-products .pgx-hero {
    padding: 2.5rem 0 3.5rem;
  }

  .page-products .pgx-hero__body {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: end;
  }

  .page-products .pgx-hero__data {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

@media (min-width: 900px) {
  .page-products .pgx-showcase {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .page-products .pgx-showcase__side {
    position: sticky;
    top: 1.5rem;
  }

  .page-products .pgx-exhibit__panel {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 2.5rem;
    padding: 2rem;
  }

  .page-products .pgx-exhibit:nth-of-type(even) .pgx-exhibit__panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .page-products .pgx-exhibit:nth-of-type(even) .pgx-exhibit__copy {
    order: 2;
  }

  .page-products .pgx-exhibit:nth-of-type(even) .pgx-exhibit__media {
    order: 1;
  }

  .page-products .pgx-exhibit:nth-of-type(odd) {
    transform: translateX(-14px);
  }

  .page-products .pgx-exhibit:nth-of-type(even) {
    transform: translateX(14px);
  }
}

@media (min-width: 700px) {
  .page-products .pgx-cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-products .pgx-tech-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
