.page-products {
  --p-rule: 2px solid var(--ridge);
  --p-rule-thin: 1px solid var(--ridge);
  --p-gap-lg: clamp(26px, 4vw, 56px);
  display: block;
}

/* ---------- 首屏 ---------- */
.page-products .p-hero {
  padding-top: clamp(20px, 3vw, 36px);
  padding-bottom: clamp(32px, 5vw, 64px);
  border-bottom: var(--p-rule);
  background:
    radial-gradient(130% 110% at 100% 0%, rgba(46, 92, 120, 0.55) 0%, rgba(10, 31, 46, 0) 58%),
    linear-gradient(180deg, rgba(15, 42, 61, 0.85) 0%, rgba(10, 31, 46, 0) 100%);
}

.page-products .p-hero .breadcrumbs {
  margin-bottom: clamp(20px, 3vw, 34px);
}

.page-products .p-hero-grid {
  display: grid;
  gap: clamp(22px, 3.5vw, 44px);
}

.page-products .p-hero-main {
  order: 1;
  min-width: 0;
}

.page-products .p-rail {
  order: 2;
  min-width: 0;
  border: var(--p-rule);
  background: var(--night);
  box-shadow: var(--shadow-hard);
  padding: clamp(14px, 1.8vw, 22px);
}

.page-products .p-rail-label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--mist);
}

.page-products .p-rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.page-products .p-rail-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px;
  color: var(--ice);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
  border-left: 3px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.page-products .p-rail-link:hover {
  background: var(--dusk);
}

.page-products .p-rail-link[aria-current="true"] {
  background: var(--sunset);
  color: var(--ink);
  border-left-color: var(--neon);
}

.page-products .p-rail-link:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

.page-products .p-rail-num {
  font-size: 12px;
  color: var(--mist);
}

.page-products .p-rail-link[aria-current="true"] .p-rail-num {
  color: var(--ink);
}

.page-products .p-title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5.6vw, 62px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: var(--ice);
}

.page-products .p-lede {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.85;
  color: var(--mist);
}

.page-products .p-stats {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ridge);
  border: var(--p-rule);
}

.page-products .p-stat {
  background: var(--night);
  padding: 14px 12px;
  min-width: 0;
}

.page-products .p-stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1.2;
  color: var(--sunset);
}

.page-products .p-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.page-products .p-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- 功能面板区 ---------- */
.page-products .p-board {
  padding-top: clamp(36px, 5vw, 72px);
  padding-bottom: clamp(32px, 4vw, 56px);
}

.page-products .p-board-head {
  display: grid;
  gap: 10px;
  max-width: 54ch;
}

.page-products .p-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: clamp(22px, 3vw, 34px);
}

.page-products .p-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.page-products .p-panel:hover {
  background: var(--dusk);
  box-shadow: var(--shadow-hard-lg);
}

.page-products .p-panel:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.page-products .p-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-products .p-panel-idx {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ridge);
}

.page-products .p-panel-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--ice);
}

.page-products .p-panel p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.page-products .p-panel-more {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--neon);
}

/* ---------- 章节骨架 ---------- */
.page-products .p-chapter {
  padding-top: clamp(38px, 5.5vw, 84px);
  padding-bottom: clamp(32px, 4vw, 60px);
  border-top: var(--p-rule);
}

.page-products .p-chapter-head {
  display: grid;
  gap: 10px;
  max-width: 60ch;
}

.page-products .p-chapter-head .section-index {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--sunset);
}

.page-products .p-text {
  margin: 0 0 16px;
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--mist);
}

.page-products .p-text:last-child {
  margin-bottom: 0;
}

.page-products .p-sub-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--ice);
}

.page-products .p-table-title {
  margin-top: clamp(30px, 4vw, 48px);
}

.page-products .p-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--p-gap-lg);
  margin-top: clamp(22px, 3vw, 34px);
}

.page-products .p-split-main,
.page-products .p-split-side {
  min-width: 0;
}

.page-products .p-figure {
  margin: 0;
  border: var(--p-rule);
  box-shadow: var(--shadow-hard);
  background: var(--card);
}

.page-products .p-figure--wide {
  margin-top: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow-hard-lg);
}

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

.page-products .p-figure .media-caption {
  padding: 12px 14px;
  border-top: var(--p-rule-thin);
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-products .p-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 要点列表 ---------- */
.page-products .p-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .p-points li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

.page-products .p-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--neon);
}

.page-products .p-points strong {
  color: var(--ice);
  font-weight: 700;
}

/* ---------- 筛选标签 ---------- */
.page-products .p-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

/* ---------- 表格 ---------- */
.page-products .p-table-wrap {
  margin-top: clamp(20px, 3vw, 30px);
  border: var(--p-rule);
  background: var(--card);
  box-shadow: var(--shadow-hard);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-products .p-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}

.page-products .p-table th,
.page-products .p-table td {
  padding: 11px 14px;
  border-bottom: var(--p-rule-thin);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ice);
  white-space: nowrap;
}

.page-products .p-table thead th {
  background: var(--night);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-products .p-table td:first-child,
.page-products .p-table th:first-child {
  font-family: var(--font-body);
  font-size: 15px;
  white-space: normal;
  min-width: 150px;
}

.page-products .p-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-products .p-table tbody tr {
  transition: background-color 140ms ease;
}

.page-products .p-table tbody tr:hover {
  background: var(--dusk);
}

.page-products .p-table .is-num {
  text-align: right;
}

.page-products .p-table--screens td:nth-child(2),
.page-products .p-table--screens td:nth-child(3) {
  white-space: normal;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--mist);
}

.page-products .p-delta-up {
  color: var(--neon);
}

.page-products .p-delta-down {
  color: var(--sunset);
}

/* ---------- 四步流程 ---------- */
.page-products .p-flow {
  list-style: none;
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.page-products .p-flow-step {
  position: relative;
  border: var(--p-rule);
  background: var(--night);
  padding: 20px 18px;
  box-shadow: var(--shadow-hard);
}

.page-products .p-flow-num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 26px;
  line-height: 1;
  color: var(--sunset);
}

.page-products .p-flow-step h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.03em;
  color: var(--ice);
}

.page-products .p-flow-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 收尾 ---------- */
.page-products .p-outro {
  border-top: var(--p-rule);
  padding-top: clamp(36px, 5vw, 68px);
  padding-bottom: clamp(48px, 6vw, 96px);
  background: linear-gradient(180deg, rgba(15, 42, 61, 0.7) 0%, rgba(10, 31, 46, 0) 100%);
}

.page-products .p-outro .p-text {
  margin-top: 16px;
}

.page-products .p-outro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 620px) {
  .page-products .p-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 760px) {
  .page-products .p-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-products .p-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-products .p-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .page-products .p-hero-grid {
    grid-template-columns: minmax(210px, 3fr) 9fr;
    align-items: start;
  }

  .page-products .p-hero-main {
    order: 0;
  }

  .page-products .p-rail {
    order: 0;
    position: sticky;
    top: 104px;
  }

  .page-products .p-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .page-products .p-panel-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .p-panel,
  .page-products .p-table tbody tr,
  .page-products .p-rail-link {
    transition: none;
  }
}
