.page-products {
  --pg-panel: #10131A;
  --pg-line: rgba(201, 162, 39, 0.24);
  --pg-gold-soft: rgba(201, 162, 39, 0.1);
  --pg-ice-soft: rgba(143, 184, 216, 0.08);
  --pg-red-tag: #A6192E;
  background-color: var(--color-ink);
  color: var(--color-cream);
  overflow-x: hidden;
}

/* ===== Hero ===== */
.page-products .page-products-hero {
  position: relative;
  padding: var(--space-4) 0 var(--space-5);
  background:
    radial-gradient(ellipse at 88% 16%, rgba(143, 184, 216, 0.14), transparent 52%),
    linear-gradient(180deg, rgba(201, 162, 39, 0.16) 0%, transparent 42%);
}
.page-products .page-products-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(201, 162, 39, 0.04) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.page-products .page-products-hero .container {
  position: relative;
  z-index: 1;
}
.page-products .hero-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.page-products .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.page-products .page-title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-cream);
  text-wrap: balance;
}
.page-products .page-subtitle {
  max-width: 64ch;
  margin: 0;
  color: var(--color-stone);
  line-height: 1.75;
  font-size: 1rem;
}
.page-products .hero-rule {
  width: min(30rem, 100%);
  margin: var(--space-4) 0 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), rgba(201, 162, 39, 0.28) 45%, transparent 100%);
}
.page-products .hero-aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--pg-line);
  background: rgba(201, 162, 39, 0.18);
}
.page-products .hero-stat {
  padding: 1rem 1rem 1.1rem;
  background: rgba(11, 12, 16, 0.94);
}
.page-products .hero-stat-value {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-gold);
  letter-spacing: 0.01em;
}
.page-products .hero-stat-label {
  display: block;
  margin-top: 0.4rem;
  color: var(--color-stone);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* ===== 通用区块标题 ===== */
.page-products .section-heading-row {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.page-products .section-heading-row h2,
.page-products .settings-copy h2,
.page-products .section-title {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.35;
  color: var(--color-cream);
}
.page-products .section-lead {
  max-width: 68ch;
  margin: 0;
  color: var(--color-stone);
  line-height: 1.75;
  font-size: 0.95rem;
}

/* ===== 活动中心 ===== */
.page-products .section-activities {
  position: relative;
  padding: var(--space-5) 0;
}
.page-products .section-activities::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold) 20%, transparent 100%);
  opacity: 0.4;
}
.page-products .products-activity-grid {
  display: grid;
  gap: var(--space-3);
}
.page-products .activity-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, #10131A 0%, #0C0E13 100%);
  border: 1px solid rgba(201, 162, 39, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.page-products .activity-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-gold);
  opacity: 0.65;
}
.page-products .activity-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0D0F14;
}
.page-products .activity-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.page-products .activity-thumb-plain {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(201, 162, 39, 0.14), transparent 68%),
    #10131A;
}
.page-products .thumb-double-diamond {
  width: 1.4rem;
  height: 1.4rem;
  background: rgba(201, 162, 39, 0.3);
  transform: rotate(45deg);
  position: relative;
}
.page-products .thumb-double-diamond::after {
  content: "";
  position: absolute;
  inset: 0.32rem;
  background: rgba(201, 162, 39, 0.5);
  transform: rotate(45deg);
}
.page-products .activity-body {
  display: grid;
  gap: 0.65rem;
  padding: var(--space-3) var(--space-3) var(--space-4);
  flex: 1;
  align-content: start;
}
.page-products .activity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.page-products .activity-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-cream);
  transition: color 0.25s ease;
}
.page-products .activity-desc {
  margin: 0;
  color: var(--color-stone);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ===== 设置项集中左侧栏 ===== */
.page-products .section-settings {
  padding: var(--space-5) 0;
  background:
    linear-gradient(180deg, transparent 0%, var(--pg-ice-soft) 30%, transparent 68%),
    radial-gradient(ellipse at 12% 22%, rgba(143, 184, 216, 0.08), transparent 44%);
}
.page-products .settings-layout {
  display: grid;
  gap: var(--space-4);
}
.page-products .settings-window {
  display: grid;
  grid-template-columns: 9rem 1fr;
  min-height: 20rem;
  border: 1px solid var(--color-gold);
  background: rgba(11, 12, 16, 0.94);
  box-shadow: 0 0 0 0.45rem rgba(201, 162, 39, 0.06);
}
.page-products .settings-sidebar {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  background: rgba(201, 162, 39, 0.05);
  border-right: 1px solid rgba(201, 162, 39, 0.25);
}
.page-products .settings-item {
  padding: 0.8rem 0.7rem 0.8rem 0.9rem;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(201, 162, 39, 0.08);
  color: var(--color-stone);
  font-size: 0.85rem;
  line-height: 1.4;
  transition: color 0.2s ease, background 0.2s ease;
}
.page-products .settings-item:hover {
  color: var(--color-cream);
  background: rgba(201, 162, 39, 0.08);
}
.page-products .settings-item.is-active {
  border-left-color: var(--color-gold);
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.16), transparent);
  color: var(--color-gold);
}
.page-products .settings-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.38rem;
  border: 1px solid var(--color-red);
  border-radius: 2px;
  color: var(--color-red);
  font-size: 0.68rem;
  transform: translateY(-0.05em);
}
.page-products .settings-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2) var(--space-2) var(--space-3);
}
.page-products .settings-pane-label {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-stone);
}
.page-products .settings-pane h3 {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  color: var(--color-gold);
}
.page-products .settings-pane ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.page-products .settings-pane li {
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(143, 184, 216, 0.16);
  background: rgba(143, 184, 216, 0.06);
  color: var(--color-ice);
  font-size: 0.82rem;
}
.page-products .settings-copy p {
  margin: 0.8rem 0 0;
  color: var(--color-stone);
  line-height: 1.75;
  font-size: 0.95rem;
}
.page-products .settings-points {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.page-products .settings-points li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--color-cream);
  font-size: 0.9rem;
  line-height: 1.6;
}
.page-products .settings-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-gold);
  transform: rotate(45deg);
}

/* ===== 新旧版本对照 ===== */
.page-products .section-compare {
  padding: var(--space-5) 0;
}
.page-products .compare-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(201, 162, 39, 0.22);
  background: rgba(255, 255, 255, 0.015);
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) rgba(201, 162, 39, 0.08);
}
.page-products .compare-stage:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
.page-products .compare-track {
  display: flex;
  align-items: stretch;
  min-width: 100%;
}
.page-products .compare-panel {
  flex: 1 0 86%;
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: var(--space-3) var(--space-3) var(--space-4);
  scroll-snap-align: start;
}
.page-products .compare-head {
  display: grid;
  gap: 0.6rem;
}
.page-products .compare-head h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--color-cream);
}
.page-products .compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  counter-reset: pg-compare;
}
.page-products .compare-list li {
  counter-increment: pg-compare;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.6rem 0.8rem;
  border-left: 3px solid var(--color-stone);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-cream);
  font-size: 0.9rem;
  line-height: 1.5;
}
.page-products .compare-list li::before {
  content: counter(pg-compare, decimal-leading-zero);
  flex: none;
  color: var(--color-stone);
  font-size: 0.75rem;
  font-weight: 700;
}
.page-products .compare-new .compare-list li {
  border-left-color: var(--color-gold);
  background: rgba(201, 162, 39, 0.07);
}
.page-products .compare-new .compare-list li::before {
  color: var(--color-gold);
}
.page-products .compare-divider {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  color: var(--color-gold);
  font-size: 1.5rem;
  font-weight: 800;
}
.page-products .compare-note {
  margin: 0;
  color: var(--color-stone);
  font-size: 0.85rem;
  line-height: 1.6;
}
.page-products .compare-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 0.85rem;
  color: var(--color-stone);
  font-size: 0.8rem;
}
.page-products .hint-arrow {
  color: var(--color-gold);
  animation: pg-arrow-pulse 1.4s ease-in-out infinite;
}
.page-products .hint-arrow:last-child {
  animation-delay: 0.18s;
}
.page-products .products-compare-figure {
  margin: var(--space-3) 0 0;
  overflow: hidden;
  border: 1px solid var(--pg-line);
  background: rgba(11, 12, 16, 0.6);
}
.page-products .products-compare-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.page-products .products-compare-figure figcaption {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(201, 162, 39, 0.16);
  color: var(--color-stone);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ===== 特色功能 ===== */
.page-products .section-features {
  padding: var(--space-5) 0;
  background:
    radial-gradient(ellipse at 85% 88%, rgba(201, 162, 39, 0.08), transparent 55%),
    linear-gradient(180deg, transparent, rgba(201, 162, 39, 0.06) 48%, rgba(143, 184, 216, 0.05));
}
.page-products .features-layout {
  display: grid;
  gap: var(--space-4);
}
.page-products .features-list {
  display: grid;
  gap: var(--space-2);
}
.page-products .feature-item {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  padding: var(--space-2) 0;
  border-bottom: 1px dashed rgba(201, 162, 39, 0.22);
}
.page-products .feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.28);
  clip-path: polygon(12% 0, 100% 12%, 88% 100%, 0 88%);
}
.page-products .feature-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}
.page-products .feature-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-cream);
}
.page-products .feature-item p {
  margin: 0;
  color: var(--color-stone);
  font-size: 0.875rem;
  line-height: 1.65;
}
.page-products .features-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--pg-line);
  background: rgba(11, 12, 16, 0.6);
}
.page-products .features-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.page-products .features-figure figcaption {
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(30, 32, 38, 0.3);
  color: var(--color-stone);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ===== CTA 区块 ===== */
.page-products .products-cta {
  padding: var(--space-5) 0 var(--space-6);
}
.page-products .cta-panel {
  display: grid;
  gap: 1rem;
  padding: var(--space-4);
  background: linear-gradient(135deg, #10131A 0%, #0B0C10 100%);
  border: 1px solid var(--color-gold);
  box-shadow: inset 0 0 0 0.5rem rgba(201, 162, 39, 0.05);
}
.page-products .cta-panel h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
  color: var(--color-cream);
}
.page-products .cta-panel p {
  margin: 0;
  color: var(--color-stone);
  line-height: 1.7;
  font-size: 0.95rem;
}
.page-products .cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.2rem;
}

/* ===== 动效 ===== */
.page-products .activity-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(201, 162, 39, 0.18);
}
.page-products .activity-card:hover .activity-title {
  color: var(--color-gold);
}
.page-products .activity-card:hover .activity-thumb img {
  transform: scale(1.04);
}
@keyframes pg-arrow-pulse {
  0%, 100% {
    opacity: 0.25;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(3px);
  }
}

/* ===== 响应式 ===== */
@media (min-width: 640px) {
  .page-products .products-activity-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  .page-products .settings-window {
    grid-template-columns: 10rem 1fr;
  }
  .page-products .settings-pane {
    padding: var(--space-3) var(--space-3) var(--space-4);
  }
}

@media (min-width: 768px) {
  .page-products .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    gap: var(--space-5);
  }
  .page-products .hero-aside {
    grid-template-columns: 1fr 1fr;
  }
  .page-products .hero-stat {
    padding: 1.2rem 1.3rem;
  }
  .page-products .hero-stat-value {
    font-size: 1.8rem;
  }
  .page-products .section-heading-row {
    grid-template-columns: 1fr 1.2fr;
    align-items: end;
  }
  .page-products .section-lead {
    text-align: left;
  }
  .page-products .settings-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-5);
    align-items: center;
  }
  .page-products .settings-copy {
    order: 2;
  }
  .page-products .settings-visual {
    order: 1;
  }
  .page-products .compare-panel {
    flex: 1 1 0;
    max-width: none;
    padding: var(--space-4);
  }
  .page-products .compare-divider {
    flex: 0 0 3rem;
  }
  .page-products .compare-hint {
    display: none;
  }
  .page-products .features-layout {
    grid-template-columns: 1fr 0.9fr;
    gap: var(--space-5);
    align-items: start;
  }
  .page-products .features-list {
    padding-top: var(--space-1);
  }
}

@media (min-width: 1024px) {
  .page-products .products-activity-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-products .page-products-hero {
    padding-top: var(--space-5);
  }
  .page-products .cta-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: var(--space-4) var(--space-5);
  }
  .page-products .cta-links {
    margin-top: 0;
    justify-content: flex-end;
  }
}
