/* ================= 入口与资料库 · 页面专属样式 ================= */
.page-products {
  --pp-pad: clamp(20px, 4.2vw, 44px);
  --pp-gap: clamp(72px, 9vw, 116px);
  --pp-cut: 12px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  padding-bottom: var(--pp-gap);
}

.page-products *,
.page-products *::before,
.page-products *::after {
  box-sizing: border-box;
}

.page-products > header,
.page-products > section {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pp-pad);
}

/* ---------- 首屏 ---------- */
.page-products .prod-hero {
  position: relative;
  padding-top: clamp(30px, 5vw, 56px);
  padding-bottom: clamp(40px, 5.5vw, 68px);
  border-bottom: 1px solid var(--line);
}

.page-products .prod-hero::after {
  content: "";
  position: absolute;
  left: var(--pp-pad);
  bottom: -1px;
  width: clamp(64px, 12vw, 140px);
  height: 3px;
  background: linear-gradient(90deg, var(--electric), var(--amber));
}

.page-products .prod-hero .breadcrumb {
  margin-bottom: 20px;
}

.page-products .prod-hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: 22ch;
}

.page-products .prod-hero .lede {
  margin: 20px 0 0;
  max-width: 44em;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.85;
  color: var(--soft);
}

/* ---------- 核心数字 ---------- */
.page-products .prod-stats {
  list-style: none;
  margin: clamp(30px, 4vw, 46px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-products .prod-stats li {
  padding: 18px 16px 20px;
  background: var(--night);
  border-left: 2px solid var(--electric);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--pp-cut)), calc(100% - var(--pp-cut)) 100%, 0 100%);
  transition: background var(--dur) var(--ease);
}

.page-products .prod-stats li:nth-child(2),
.page-products .prod-stats li:nth-child(3) {
  border-left-color: var(--amber);
}

.page-products .prod-stats li:hover {
  background: var(--slate);
}

.page-products .prod-stats .stat-num {
  display: block;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.9rem, 4.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-products .prod-stats .stat-label {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink);
}

/* ---------- 区块通用 ---------- */
.page-products .prod-section {
  padding-top: var(--pp-gap);
}

.page-products .section-title {
  margin-top: 12px;
}

.page-products .prod-cols {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}

.page-products .prod-list {
  list-style: none;
  margin: clamp(20px, 2.6vw, 30px) 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-products .prod-list > li {
  position: relative;
  padding-left: 18px;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--soft);
  border-left: 1px solid var(--line);
}

.page-products .prod-list > li::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0.55em;
  width: 3px;
  height: 14px;
  background: var(--electric);
}

.page-products .prod-list-key {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  font-family: var(--font-num);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--deep);
  background: var(--electric);
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  vertical-align: 1px;
}

.page-products .prod-inline-link {
  margin: 26px 0 0;
  font-size: 0.86rem;
  color: var(--ink);
}

.page-products .prod-inline-link a {
  color: var(--electric);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.page-products .prod-inline-link a:hover {
  border-bottom-color: var(--electric);
}

/* ---------- 图片容器 ---------- */
.page-products .img-frame {
  margin: 0;
}

.page-products .img-frame img,
.page-products .prod-wide-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .img-cap {
  display: block;
  margin-top: 12px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink);
}

.page-products .pp-figure--cut img {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-products .pp-figure--stack {
  position: relative;
  padding: 16px;
}

.page-products .pp-figure--stack::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--night);
  border: 1px solid var(--line);
  transform: rotate(-1.6deg);
}

.page-products .pp-figure--stack > img,
.page-products .pp-figure--stack > .img-cap {
  position: relative;
}

/* ---------- 场景分组图 ---------- */
.page-products .prod-map {
  margin: clamp(34px, 4.5vw, 56px) 0 0;
  padding: clamp(16px, 2.6vw, 28px);
  background: var(--night);
  border: 1px solid var(--line);
  position: relative;
}

.page-products .prod-map::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 3px;
  background: var(--amber);
}

.page-products .prod-map-canvas {
  overflow-x: auto;
}

.page-products .prod-map-canvas svg {
  display: block;
  width: 100%;
  min-width: 460px;
  height: auto;
}

.page-products .pm-ring {
  fill: none;
  stroke: rgba(143, 163, 184, 0.22);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}

.page-products .pm-line {
  stroke: rgba(35, 224, 208, 0.3);
  stroke-width: 1;
}

.page-products .pm-core {
  fill: rgba(35, 224, 208, 0.12);
  stroke: var(--electric);
  stroke-width: 1.5;
}

.page-products .pm-core-t {
  fill: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
}

.page-products .pm-core-n {
  fill: var(--amber);
  font-family: var(--font-num);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.page-products .pm-dot {
  fill: var(--amber);
}

.page-products .pm-label {
  fill: var(--soft);
  font-family: var(--font-body);
  font-size: 13px;
}

/* ---------- 资料库筛选 ---------- */
.page-products .filter-set {
  margin-top: clamp(34px, 4.5vw, 52px);
}

.page-products .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-products .filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 0.8rem;
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-products .filter-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-products .filter-chip:hover {
  color: var(--paper);
  border-color: var(--line-strong);
}

.page-products .filter-chip:has(input:checked) {
  color: var(--deep);
  background: var(--electric);
  border-color: var(--electric);
}

.page-products .filter-set:has(input[data-filter="live"]:checked) .filter-item:not([data-cat~="live"]),
.page-products .filter-set:has(input[data-filter="archive"]:checked) .filter-item:not([data-cat~="archive"]),
.page-products .filter-set:has(input[data-filter="guide"]:checked) .filter-item:not([data-cat~="guide"]) {
  display: none;
}

/* ---------- 六个栏目 ---------- */
.page-products .prod-lib {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: 0;
}

.page-products .prod-lib > li {
  background: var(--deep);
  padding: clamp(18px, 2.4vw, 26px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 14px;
  align-items: baseline;
  border-left: 2px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-products .prod-lib > li:hover {
  background: var(--night);
  border-left-color: var(--electric);
}

.page-products .prod-lib-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--electric);
}

.page-products .prod-lib-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.page-products .prod-lib-item > p {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.78;
  color: var(--soft);
}

.page-products .prod-lib-item .tag {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 12px;
}

/* ---------- 资料库数据点 ---------- */
.page-products .prod-facts {
  list-style: none;
  margin: clamp(28px, 3.4vw, 40px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-products .prod-facts > li {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink);
}

.page-products .prod-facts .num {
  margin-right: 4px;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amber);
}

/* ---------- 三种用法对照表 ---------- */
.page-products .prod-table-wrap {
  margin-top: clamp(28px, 3.6vw, 44px);
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
}

.page-products .prod-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.page-products .prod-table th,
.page-products .prod-table td {
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.page-products .prod-table thead th {
  font-family: var(--font-num);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

.page-products .prod-table tbody tr {
  transition: background var(--dur) var(--ease);
}

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

.page-products .prod-table tbody th {
  font-weight: 600;
  color: var(--paper);
}

.page-products .prod-table tbody td {
  color: var(--soft);
}

.page-products .prod-row-num {
  display: inline-block;
  min-width: 2.4em;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}

.page-products .prod-table tbody tr:hover .prod-row-num {
  color: var(--amber);
}

.page-products .prod-wide-figure {
  margin: clamp(34px, 4.5vw, 56px) 0 0;
}

.page-products .prod-wide-figure img {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

/* ---------- 维护与行动 ---------- */
.page-products .prod-cta {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  background: linear-gradient(152deg, var(--night), var(--slate));
  border-left: 3px solid var(--amber);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-products .prod-cta-title {
  margin: 0 0 12px;
  font-family: var(--font-num);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--amber);
}

.page-products .prod-cta-text {
  margin: 0 0 20px;
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--soft);
}

.page-products .prod-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 断点 ---------- */
@media (min-width: 760px) {
  .page-products .prod-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .page-products .prod-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .prod-lib {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-products .prod-cols--7-5 {
    grid-template-columns: 7fr 5fr;
  }

  .page-products .prod-cols--5-7 {
    grid-template-columns: 5fr 7fr;
  }

  .page-products .prod-cols--5-7 .prod-copy {
    padding-top: 8px;
  }
}

@media (max-width: 899px) {
  .page-products .pp-figure--stack::before {
    transform: rotate(-0.9deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products *,
  .page-products *::before,
  .page-products *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .page-products .pp-figure--stack::before {
    transform: none;
  }
}
