.page-products {
  --pd-border: 2px solid rgba(138, 153, 168, 0.35);
  position: relative;
  overflow-x: hidden;
}

.page-products [hidden] {
  display: none !important;
}

.page-products section[id] {
  scroll-margin-top: 150px;
}

.page-products .filter-btn.is-active {
  background: var(--color-accent);
  color: var(--color-ink);
  border-color: var(--color-accent);
}

/* ===== 顶部横幅 ===== */
.pd-hero {
  background:
    linear-gradient(135deg, rgba(10, 30, 60, 0.98) 0%, rgba(10, 30, 60, 0.9) 55%, rgba(30, 58, 95, 0.95) 100%),
    radial-gradient(circle at 85% 12%, rgba(57, 255, 20, 0.22) 0%, transparent 50%);
  border-bottom: 6px solid var(--color-accent);
  color: var(--color-paper);
  position: relative;
  overflow: hidden;
}

.pd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 32px,
    rgba(255, 255, 255, 0.03) 32px,
    rgba(255, 255, 255, 0.03) 33px
  );
  pointer-events: none;
}

.pd-hero .container {
  position: relative;
  z-index: 1;
}

.pd-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.pd-hero__main {
  max-width: 860px;
}

.pd-hero__main h1 {
  margin: 8px 0 14px;
}

.pd-hero__main .lead {
  color: var(--color-cyan);
  line-height: 1.5;
  margin: 0 0 12px;
  font-family: var(--font-head);
}

.pd-hero__desc {
  color: rgba(245, 247, 250, 0.82);
  line-height: 1.75;
  margin: 0 0 22px;
  max-width: 640px;
  font-size: 15px;
}

.pd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pd-hero__board {
  background: rgba(16, 16, 16, 0.72);
  border: 2px solid var(--color-steel);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
  padding: 16px;
}

.pd-hero__board::before {
  content: "平台数据快照";
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.pd-hero__stat {
  background: rgba(245, 247, 250, 0.06);
  border: 1px solid rgba(138, 153, 168, 0.25);
  border-top: 4px solid var(--color-ember);
  padding: 10px 12px;
}

.pd-hero__stat--accent {
  border-top-color: var(--color-accent);
  background: rgba(57, 255, 20, 0.06);
}

.pd-hero__stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.pd-hero__stat-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-cloud);
}

.pd-hero__stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-paper);
}

.pd-hero__stat--accent .pd-hero__stat-num {
  font-size: 2.1rem;
  color: var(--color-accent);
}

/* ===== 通用章节头 ===== */
.pd-section-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.pd-section-head__no {
  font-family: var(--font-mono);
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
  color: var(--color-ember);
  border-left: 4px solid var(--color-ember);
  padding-left: 10px;
  flex-shrink: 0;
}

.pd-section-head__text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.2;
  margin: 4px 0 8px;
  color: var(--color-ink);
}

.pd-section-head__text p {
  margin: 0;
  max-width: 660px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-muted-ink);
}

.pd-section-head--light .pd-section-head__text h2 {
  color: var(--color-paper);
}

.pd-section-head--light .pd-section-head__text p {
  color: var(--color-cloud);
}

/* ===== 功能矩阵 ===== */
.pd-function {
  position: relative;
}

.pd-function__bg {
  position: absolute;
  top: 18px;
  left: 0;
  width: 180px;
  margin: 0;
  z-index: 0;
  opacity: 0.2;
  transform: rotate(-3deg);
  pointer-events: none;
}

.pd-function__bg img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--color-steel);
}

.pd-function__filter,
.pd-matrix {
  position: relative;
  z-index: 1;
}

.pd-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.pd-feature {
  border: var(--pd-border);
  background: var(--color-paper);
  box-shadow: 6px 6px 0 rgba(16, 16, 16, 0.1);
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pd-feature::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, transparent 48%, rgba(255, 107, 53, 0.7) 48%);
  z-index: 1;
}

.pd-feature:hover {
  transform: translateY(-4px);
  box-shadow: 10px 10px 0 rgba(16, 16, 16, 0.14);
  border-color: var(--color-ink);
}

.pd-feature__no {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--color-ember);
  border: 1px solid currentColor;
  padding: 3px 7px;
  margin-bottom: 12px;
}

.pd-feature h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--color-ink);
}

.pd-feature p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-muted-ink);
}

.pd-feature a {
  color: var(--color-ember);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.pd-feature a:hover {
  color: var(--color-ink);
}

/* ===== 数据查询流程 ===== */
.pd-flow {
  background:
    linear-gradient(rgba(57, 255, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.05) 1px, transparent 1px),
    var(--color-ink);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--color-paper);
  position: relative;
  overflow: hidden;
}

.pd-flow__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.pd-flow__trail {
  position: relative;
}

.pd-flow__trail-bg {
  display: none;
  position: absolute;
  top: 42%;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 0;
  pointer-events: none;
}

.pd-flow__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.pd-flow__step {
  background: #161c27;
  border: 1px solid rgba(138, 153, 168, 0.35);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pd-flow__step:hover {
  border-color: rgba(57, 255, 20, 0.6);
  transform: translateY(-3px);
}

.pd-flow__step[open] {
  border-color: var(--color-accent);
}

.pd-flow__step summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.pd-flow__step summary::-webkit-details-marker {
  display: none;
}

.pd-flow__step-no {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 5px 7px;
  min-width: 2.4em;
  text-align: center;
  flex-shrink: 0;
}

.pd-flow__step-title {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--color-paper);
}

.pd-flow__step-detail {
  margin: 0;
  padding: 0 16px 16px 52px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-cloud);
}

.pd-flow__media {
  border: 2px solid rgba(57, 255, 20, 0.5);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.35);
  margin: 0;
}

.pd-flow__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.pd-flow__branches {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}

.pd-branch {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-steel);
  border: 1px solid rgba(138, 153, 168, 0.3);
  padding: 18px;
}

.pd-branch__no {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1;
  color: var(--color-ember);
  border: 1px solid currentColor;
  padding: 5px 7px;
  flex-shrink: 0;
}

.pd-branch h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--color-paper);
}

.pd-branch p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-cloud);
}

/* ===== 新版能力对比 ===== */
.pd-compare__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.pd-compare__table-wrap {
  overflow-x: auto;
}

.pd-compare__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--color-paper);
}

.pd-compare__caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted-ink);
  padding: 0 2px 10px;
}

.pd-compare__table th,
.pd-compare__table td {
  border: 2px solid var(--color-ink);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
}

.pd-compare__table thead th {
  background: var(--color-space);
  color: var(--color-paper);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  border-bottom-width: 4px;
  border-bottom-color: var(--color-accent);
}

.pd-compare__table tbody th {
  background: #e9edf2;
  font-family: var(--font-head);
  font-size: 0.85rem;
  white-space: nowrap;
}

.pd-compare__table td {
  background: #ffffff;
}

.page-products .pd-compare__table td.pd-compare__new {
  background: rgba(57, 255, 20, 0.14);
  border-left-width: 4px;
  border-left-color: var(--color-accent);
  font-weight: 650;
}

.pd-compare__media {
  margin: 0;
}

.pd-compare__media img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--color-ink);
  box-shadow: 8px 8px 0 rgba(16, 16, 16, 0.2);
}

/* ===== 支持联赛 ===== */
.pd-league__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.pd-league__sidebar {
  order: 2;
}

.pd-league__main {
  order: 1;
}

.pd-league__banner {
  margin: 0 0 16px;
}

.pd-league__banner img {
  display: block;
  width: 100%;
  height: auto;
}

.pd-league__banner--side {
  border: 2px solid rgba(57, 255, 20, 0.45);
  margin-bottom: 14px;
}

.pd-league__banner--main {
  border: 2px solid var(--color-space);
}

.pd-league__side-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-league__side-tag {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid rgba(245, 247, 250, 0.4);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-paper);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pd-league__side-tag:hover,
.pd-league__side-tag.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-ink);
}

.pd-league__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.pd-league__block {
  background: var(--color-space);
  border: 1px solid rgba(138, 153, 168, 0.3);
  padding: 20px 18px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.pd-league__block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--color-accent);
}

.pd-league__block h3::before {
  content: "";
  width: 10px;
  height: 10px;
  display: inline-block;
  background: var(--color-ember);
  transform: rotate(45deg);
}

.pd-league__block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-league__block li {
  padding: 5px 10px;
  font-size: 0.85rem;
  color: rgba(245, 247, 250, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ===== CTA ===== */
.pd-cta__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  background: var(--color-space);
  border: 2px solid var(--color-accent);
  box-shadow: 10px 10px 0 rgba(16, 16, 16, 0.25);
  color: var(--color-paper);
  padding: clamp(24px, 5vw, 44px);
}

.pd-cta__info h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 6px 0 8px;
}

.pd-cta__info p {
  margin: 0;
  color: var(--color-cloud);
  line-height: 1.7;
}

.pd-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== 响应式 ===== */
@media (min-width: 768px) {
  .pd-hero__grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: end;
  }

  .pd-matrix {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .pd-flow__layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
  }

  .pd-flow__media {
    margin-top: 0;
  }

  .pd-flow__branches {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .pd-league__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .pd-cta__card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
  }
}

@media (min-width: 992px) {
  .pd-compare__layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 28px;
  }

  .pd-league__layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 26px;
  }

  .pd-league__sidebar {
    order: 1;
    position: sticky;
    top: 24px;
  }

  .pd-league__main {
    order: 2;
  }
}

@media (min-width: 1024px) {
  .pd-flow__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .pd-flow__trail-bg {
    display: block;
  }
}

@media (min-width: 1280px) {
  .pd-league__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .pd-function__bg {
    width: 240px;
  }
}
