.page-products {
  --pp-navy: #0A1F44;
  --pp-deep: #071C38;
  --pp-card: #0D2A4D;
  --pp-float: #12315A;
  --pp-gold: #D4AF37;
  --pp-neon: #39FF14;
  --pp-text: #FFFFFF;
  --pp-mut: #A0B0D0;
  --pp-grid: #1E3A6D;
  --pp-font-display: 'Anton', 'Impact', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --pp-font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  background: linear-gradient(135deg, var(--pp-navy) 0%, var(--pp-deep) 60%, #0D2A4D 100%);
  color: var(--pp-text);
  font-family: var(--pp-font-body);
  position: relative;
}

.page-products .bb-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
  width: 100%;
  box-sizing: border-box;
}

.page-products .bb-section {
  padding: 72px 0 56px;
  position: relative;
  border-top: 1px solid var(--pp-grid);
  scroll-margin-top: 96px;
}

.page-products .bb-section-index {
  font-family: var(--pp-font-display);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--pp-gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-products .bb-section-index::after {
  content: "";
  width: 60px;
  height: 1px;
  background: var(--pp-gold);
  opacity: 0.5;
}

.page-products .bb-section-title {
  font-family: var(--pp-font-display);
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
  color: var(--pp-text);
}

.page-products .bb-section-desc {
  color: var(--pp-mut);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 640px;
}

.page-products .bb-breadcrumb {
  padding-top: 16px;
  padding-bottom: 0;
  font-size: 13px;
  color: var(--pp-mut);
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
  box-sizing: border-box;
}

.page-products .bb-breadcrumb a {
  color: var(--pp-gold);
  text-decoration: none;
}

.page-products .bb-breadcrumb a:hover {
  text-decoration: underline;
}

.page-products .bb-btn {
  display: inline-block;
  background: var(--pp-card);
  color: var(--pp-text);
  border: 1px solid var(--pp-grid);
  padding: 12px 24px;
  font-family: var(--pp-font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.page-products .bb-btn:hover {
  border-color: var(--pp-gold);
  background: var(--pp-float);
  transform: translateY(-1px);
}

.page-products .bb-btn-gold {
  background: var(--pp-gold);
  color: var(--pp-deep);
  border-color: var(--pp-gold);
}

.page-products .bb-btn-neon {
  background: rgba(57, 255, 20, 0.08);
  color: var(--pp-neon);
  border-color: rgba(57, 255, 20, 0.5);
}

.page-products .bb-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  border-left: 3px solid var(--pp-gold);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pp-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);
}

.page-products .bb-card {
  background: linear-gradient(145deg, var(--pp-card) 0%, rgba(13, 42, 77, 0.7) 100%);
  border: 1px solid var(--pp-grid);
  border-radius: 2px;
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.page-products .bb-card:hover {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.page-products .bb-card h3 {
  font-family: var(--pp-font-display);
  font-size: 20px;
  margin: 16px 0 8px;
}

.page-products .bb-card p {
  color: var(--pp-mut);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.page-products .bb-card .bb-btn {
  margin-top: 4px;
  padding: 8px 14px;
  font-size: 13px;
}

.page-products .bb-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pp-card);
  border: 1px dashed var(--pp-grid);
  color: var(--pp-mut);
  font-size: 14px;
  text-align: center;
  padding: 16px;
  min-height: 120px;
}

/* Hero */
.page-products .pp-hero {
  padding: 56px 0 40px;
  position: relative;
  background:
    linear-gradient(rgba(10, 31, 68, 0.92), rgba(10, 31, 68, 0.92)),
    repeating-linear-gradient(90deg, transparent 0 80px, var(--pp-grid) 80px 81px);
}

.page-products .pp-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 35%;
  height: 12px;
  background: linear-gradient(90deg, transparent, var(--pp-gold), var(--pp-neon));
}

.page-products .pp-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 55%;
  height: 1px;
  background: linear-gradient(90deg, var(--pp-gold), transparent);
}

.page-products .pp-hero-inner {
  display: block;
}

.page-products .pp-hero-copy {
  max-width: 720px;
}

.page-products .pp-hero-copy h1 {
  font-family: var(--pp-font-display);
  font-size: 38px;
  line-height: 1.06;
  margin: 20px 0 16px;
  letter-spacing: 0.01em;
}

.page-products .pp-hero-lead {
  color: var(--pp-mut);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 28px;
}

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

.page-products .pp-hero-meta {
  margin-top: 32px;
  background: rgba(13, 42, 77, 0.65);
  border-left: 2px solid var(--pp-gold);
  padding: 16px 20px;
  max-width: 100%;
  backdrop-filter: blur(4px);
}

.page-products .pp-hero-meta dl {
  display: block;
  margin: 0;
}

.page-products .pp-meta-cell {
  display: block;
  margin-bottom: 8px;
}

.page-products .pp-meta-cell:last-child {
  margin-bottom: 0;
}

.page-products .pp-hero-meta dt {
  display: inline;
  font-size: 13px;
  color: var(--pp-mut);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-products .pp-hero-meta dd {
  display: inline;
  font-size: 15px;
  font-weight: 600;
  color: var(--pp-text);
  margin-left: 8px;
}

.page-products .pp-hero-meta .bb-state-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pp-neon);
  margin-right: 4px;
  animation: pp-pulse 2s infinite;
}

@keyframes pp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Overview */
.page-products .pp-overview {
  background:
    linear-gradient(rgba(10, 31, 68, 0.5), transparent 40%),
    repeating-linear-gradient(0deg, transparent 0 64px, rgba(30, 58, 109, 0.3) 64px 65px);
}

.page-products .pp-overview-head {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.page-products .pp-overview-grid {
  gap: 20px;
}

.page-products .pp-scheme-card {
  padding-top: 20px;
}

.page-products .pp-scheme-coord-x {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: monospace;
  font-size: 11px;
  color: var(--pp-gold);
  opacity: 0.6;
}

.page-products .pp-scheme-icon {
  width: 48px;
  height: 48px;
  display: block;
}

/* Entry */
.page-products .pp-entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-products .pp-entry-copy {
  background:
    linear-gradient(90deg, var(--pp-card), transparent),
    linear-gradient(180deg, #0D2A4D 0%, transparent 100%);
  border-left: 4px solid var(--pp-gold);
  padding: 20px;
  position: relative;
}

.page-products .pp-entry-copy::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 2px solid var(--pp-neon);
  border-right: 2px solid var(--pp-neon);
  width: 60px;
  height: 20px;
}

.page-products .pp-check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}

.page-products .pp-check-list li {
  padding-left: 24px;
  position: relative;
  color: var(--pp-text);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.page-products .pp-check-list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--pp-neon);
  font-weight: 700;
}

/* Figures */
.page-products .pp-figure {
  margin: 0;
  background: var(--pp-card);
  border: 1px solid var(--pp-grid);
  padding: 8px;
}

.page-products .pp-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-products .pp-figure--portrait img {
  aspect-ratio: 3 / 4;
}

.page-products .pp-figure--wide img {
  aspect-ratio: 16 / 10;
}

.page-products .pp-figure--landscape img {
  aspect-ratio: 3 / 2;
}

.page-products .pp-figure--ratio img {
  aspect-ratio: 4 / 3;
}

.page-products .pp-figure figcaption {
  padding: 10px 4px 2px;
  font-size: 12px;
  color: var(--pp-mut);
  letter-spacing: 0.04em;
  text-align: left;
  border-top: 1px solid var(--pp-grid);
}

/* Guide */
.page-products .pp-guide {
  background: radial-gradient(circle at 80% 30%, rgba(57, 255, 20, 0.04), transparent 40%);
}

.page-products .pp-guide-head {
  margin-bottom: 24px;
}

.page-products .pp-guide-head .bb-section-desc {
  margin-bottom: 12px;
}

.page-products .pp-guide-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
}

.page-products .pp-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-products .pp-steps-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--pp-grid);
  position: relative;
}

.page-products .pp-steps-list li:last-child {
  border-bottom: none;
}

.page-products .pp-step-num {
  font-family: var(--pp-font-display);
  font-size: 28px;
  color: var(--pp-gold);
  line-height: 1;
  padding-top: 4px;
}

.page-products .pp-step-body h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

.page-products .pp-step-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--pp-mut);
  margin: 0;
}

/* Fav */
.page-products .pp-fav {
  background: repeating-linear-gradient(135deg, rgba(30, 58, 109, 0.25) 0 1px, transparent 1px 12px);
}

.page-products .pp-fav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.page-products .pp-fav-copy {
  order: -1;
}

.page-products .pp-fav-copy .bb-section-desc {
  margin-bottom: 16px;
}

.page-products .pp-fav-copy .pp-steps-list li {
  padding-block: 12px;
}

/* Compare */
.page-products .pp-compare {
  background: linear-gradient(150deg, rgba(13, 42, 77, 0.8) 0%, transparent 70%);
}

.page-products .pp-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

.page-products .pp-compare-table-wrap {
  overflow-x: auto;
}

.page-products .pp-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 520px;
  background: rgba(10, 31, 68, 0.7);
}

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

.page-products .pp-compare-table thead th {
  background: var(--pp-card);
  color: var(--pp-gold);
  font-family: var(--pp-font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.page-products .pp-compare-table tbody th {
  color: var(--pp-text);
  background: rgba(13, 42, 77, 0.6);
}

.page-products .pp-compare-table td {
  color: var(--pp-mut);
}

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

/* Changelog */
.page-products .pp-changelog {
  background:
    radial-gradient(circle at 90% 90%, rgba(57, 255, 20, 0.08), transparent 30%),
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.08), transparent 30%);
}

.page-products .pp-changelog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.page-products .pp-changelog-bg {
  flex-shrink: 0;
  width: 100px;
  height: 75px;
  overflow: hidden;
  border: 1px solid var(--pp-grid);
  margin: 0;
  opacity: 0.6;
  display: none;
}

.page-products .pp-changelog-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-products .pp-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.page-products .pp-timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--pp-gold), var(--pp-grid));
}

.page-products .pp-timeline li {
  position: relative;
  padding-left: 44px;
  padding-bottom: 28px;
}

.page-products .pp-timeline li:last-child {
  padding-bottom: 0;
}

.page-products .pp-timeline li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--pp-gold);
  background: var(--pp-navy);
  transform: rotate(45deg);
}

.page-products .pp-timeline-version {
  font-family: monospace;
  font-size: 13px;
  color: var(--pp-gold);
  background: rgba(212, 175, 55, 0.1);
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 6px;
}

.page-products .pp-timeline-body h3 {
  font-size: 17px;
  margin: 0 0 4px;
}

.page-products .pp-timeline-body p {
  color: var(--pp-mut);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 8px;
}

.page-products .pp-timeline-body .bb-tag {
  background: rgba(57, 255, 20, 0.1);
  color: var(--pp-neon);
  border-left-color: var(--pp-neon);
}

/* Media queries */
@media (min-width: 640px) {
  .page-products .pp-hero-copy h1 {
    font-size: 46px;
  }

  .page-products .pp-hero-meta dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
  }

  .page-products .pp-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products .pp-guide-content,
  .page-products .pp-fav-grid,
  .page-products .pp-entry-grid,
  .page-products .pp-compare-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-products .pp-compare-grid .pp-figure {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .page-products .pp-compare-table-wrap {
    grid-column: 2 / 3;
    grid-row: 1;
  }

  .page-products .pp-guide-content .pp-guide-steps {
    grid-column: 1;
    grid-row: 1;
  }

  .page-products .pp-guide-content .pp-figure--portrait {
    grid-column: 2;
    grid-row: 1;
  }

  .page-products .pp-fav-copy {
    order: initial;
  }
}

@media (min-width: 1024px) {
  .page-products .bb-section {
    padding: 88px 0 72px;
  }

  .page-products .pp-hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: end;
  }

  .page-products .pp-hero-meta {
    margin-top: 0;
  }

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

  .page-products .pp-entry-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 32px;
  }

  .page-products .pp-guide-content {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .page-products .pp-fav-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-products .pp-compare-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .page-products .pp-changelog-bg {
    display: block;
  }
}
