.page-products {
  --pf-pad: 20px;
  --pf-ink-soft: #3d3733;
  --pf-line: rgba(26, 22, 20, 0.14);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.page-products .container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pf-pad);
}

.page-products h1,
.page-products h2,
.page-products h3 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.page-products p {
  margin: 0 0 14px;
}

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

.page-products a {
  color: var(--ag-blue);
}

.page-products img {
  max-width: 100%;
  height: auto;
}

.page-products .mono,
.page-products .label-mono {
  font-family: var(--font-mono);
}

/* 面包屑 */
.page-products .breadcrumb {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px var(--pf-pad);
  font-size: 13px;
  color: var(--gray);
}

.page-products .breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--gray);
}

/* 首屏 */
.pf-hero {
  position: relative;
  overflow: hidden;
  padding-block: 44px 52px;
  background: linear-gradient(158deg, var(--deep-blue) 0%, var(--ag-blue) 62%, #0a4ea3 100%);
  color: var(--white);
}

.pf-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -25%;
  bottom: -30%;
  left: 28%;
  background: linear-gradient(200deg, rgba(0, 194, 209, 0.5), rgba(0, 194, 209, 0) 68%);
  clip-path: polygon(36% 0, 100% 0, 100% 100%, 0 100%);
  transform: rotate(-8deg);
  pointer-events: none;
}

.pf-hero::after {
  content: "";
  position: absolute;
  left: -12%;
  bottom: -60%;
  width: 72%;
  height: 86%;
  background: var(--cream);
  opacity: 0.1;
  clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 100%);
  transform: rotate(-6deg);
  pointer-events: none;
}

.pf-hero__inner {
  position: relative;
  z-index: 1;
}

.pf-hero .eyebrow {
  color: var(--cyan);
  letter-spacing: 0.14em;
}

.pf-hero__title {
  margin: 10px 0 18px;
  font-size: clamp(30px, 7.4vw, 58px);
  line-height: 1.16;
}

.pf-hero__lead {
  max-width: 36em;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.9);
}

.pf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.pf-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
}

.pf-hero__facts li {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pf-hero__facts .mono {
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.pf-hero__note {
  position: absolute;
  right: 8px;
  bottom: 22px;
  color: rgba(255, 255, 255, 0.45);
  z-index: 1;
}

/* 章节通用 */
.page-products .pf-sec-head {
  max-width: 62ch;
  margin-bottom: 26px;
}

.page-products .pf-sec-head h2 {
  margin: 10px 0 14px;
  font-size: clamp(22px, 4.6vw, 34px);
}

.page-products .pf-sec-lead {
  font-size: 15.5px;
  color: var(--pf-ink-soft);
}

.page-products .section {
  padding-block: 52px;
}

.pf-overview {
  background: var(--cream);
}

.pf-cats {
  background: var(--wash);
}

.pf-matrix {
  background: var(--cream);
}

/* 媒体 */
.page-products .media {
  margin: 0 0 26px;
}

.page-products .media__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(140deg, var(--deep-blue), var(--ag-blue) 60%, #0a4ea3);
}

.page-products .media__caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--gray);
}

/* 表格 */
.page-products .pf-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

.page-products .pf-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.6;
}

.page-products .pf-table caption {
  padding: 14px 16px 10px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gray);
}

.page-products .pf-table thead th {
  padding: 10px 14px;
  text-align: left;
  background: var(--deep-blue);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.page-products .pf-table tbody th,
.page-products .pf-table tbody td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.page-products .pf-table tbody th {
  font-weight: 500;
}

.page-products .pf-table tbody tr:nth-child(even) {
  background: rgba(215, 227, 244, 0.6);
}

.page-products .pf-table tbody tr:hover {
  background: var(--wash);
  transition: background 250ms var(--ease);
}

.page-products .pf-table__group th {
  padding: 8px 14px;
  background: var(--wash);
  border-top: 2px solid var(--ag-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--deep-blue);
}

.page-products .tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  white-space: nowrap;
}

/* 品类索引与画布 */
.pf-cats__index {
  margin-bottom: 24px;
}

.pf-cats__index .label-mono {
  display: block;
  margin: 0 0 8px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--deep-blue);
}

.pf-cats__list {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0 0 6px;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pf-cats__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 240ms var(--ease), box-shadow 240ms var(--ease);
}

.pf-cats__link .mono {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.pf-cats__link:hover,
.pf-cats__link:focus-visible {
  background: var(--white);
  box-shadow: inset 0 -3px 0 var(--cyan);
}

.pf-cats__hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--deep-blue);
  opacity: 0.78;
}

.pf-cat {
  margin-bottom: 18px;
  padding: 22px 18px;
  background: var(--white);
  border-radius: var(--radius);
  scroll-margin-top: 72px;
}

.pf-cat:target {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.pf-cat__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--pf-line);
}

.pf-cat__num {
  flex: none;
  padding: 1px 7px;
  border: 1px solid rgba(0, 87, 184, 0.35);
  border-radius: 6px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ag-blue);
}

.pf-cat h3 {
  padding-left: 12px;
  border-left: 4px solid var(--ag-blue);
  font-size: clamp(18px, 4.2vw, 23px);
  line-height: 1.45;
}

.pf-cat__body {
  display: grid;
  gap: 18px;
}

.pf-cat__main p {
  font-size: 15.5px;
}

.pf-points {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.pf-points li {
  position: relative;
  padding-left: 14px;
  font-size: 14.5px;
  color: var(--pf-ink-soft);
}

.pf-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 2px;
  height: 1em;
  background: var(--ag-blue);
}

.pf-more {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dashed var(--pf-line);
}

.pf-more summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ag-blue);
}

.pf-more summary::-webkit-details-marker {
  display: none;
}

.pf-more summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
  color: var(--orange);
}

.pf-more[open] summary::before {
  content: "−";
}

.pf-more .pf-points {
  margin-top: 10px;
}

.pf-cat__fig {
  margin: 0;
}

/* 矩阵 */
.pf-matrix__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.pf-stat {
  padding: 14px 16px;
  background: var(--white);
  border-left: 4px solid var(--gray);
  border-radius: 12px;
}

.pf-stat--ok {
  border-left-color: var(--green);
}

.pf-stat--soft {
  border-left-color: var(--ag-blue);
}

.pf-stat--plan {
  border-left-color: var(--orange);
}

.pf-stat__num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--deep-blue);
}

.pf-stat--plan .pf-stat__num {
  color: var(--orange);
}

.pf-stat__label {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--gray);
}

.pf-matrix__note {
  padding: 14px 16px;
  margin-bottom: 18px;
  background: var(--amber);
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink);
}

.pf-legend {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--pf-ink-soft);
}

.pf-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pf-legend__hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gray);
}

.pf-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.pf-dot--ok {
  background: var(--green);
}

.pf-dot--soft {
  background: var(--ag-blue);
}

.pf-dot--plan {
  background: var(--orange);
}

/* 选型 */
.pf-pick {
  background: var(--space);
  color: var(--white);
}

.pf-pick .eyebrow {
  color: var(--cyan);
}

.pf-pick .pf-sec-lead {
  color: rgba(255, 255, 255, 0.78);
}

.pf-pick__wrap {
  overflow-x: auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-overflow-scrolling: touch;
}

.pf-pick__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}

.pf-pick__table caption {
  padding: 12px 14px 8px;
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
}

.pf-pick__table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  white-space: nowrap;
}

.pf-pick__table tbody th,
.pf-pick__table tbody td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
}

.pf-pick__table tbody th.pf-pick__who {
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.pf-pick__table tbody tr:hover th,
.pf-pick__table tbody tr:hover td {
  background: rgba(0, 194, 209, 0.12);
  transition: background 250ms var(--ease);
}

.pf-pick__table a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 194, 209, 0.5);
  white-space: nowrap;
}

.pf-pick__table a:hover,
.pf-pick__table a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* 收尾 */
.pf-cta {
  padding-block: 48px;
  background: var(--ag-blue);
  color: var(--white);
}

.pf-cta__inner h2 {
  margin-bottom: 12px;
  font-size: clamp(21px, 4.2vw, 30px);
}

.pf-cta__inner p {
  max-width: 40em;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}

.pf-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.pf-cta .btn--ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.pf-cta .btn--ghost:hover,
.pf-cta .btn--ghost:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

/* 品类索引的当前定位 */
.page-products .pf-cats__layout:has(#cat-01:target) a[href="#cat-01"],
.page-products .pf-cats__layout:has(#cat-02:target) a[href="#cat-02"],
.page-products .pf-cats__layout:has(#cat-03:target) a[href="#cat-03"],
.page-products .pf-cats__layout:has(#cat-04:target) a[href="#cat-04"],
.page-products .pf-cats__layout:has(#cat-05:target) a[href="#cat-05"],
.page-products .pf-cats__layout:has(#cat-06:target) a[href="#cat-06"] {
  background: var(--deep-blue);
  color: var(--white);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.page-products .pf-cats__layout:has(#cat-01:target) a[href="#cat-01"] .mono,
.page-products .pf-cats__layout:has(#cat-02:target) a[href="#cat-02"] .mono,
.page-products .pf-cats__layout:has(#cat-03:target) a[href="#cat-03"] .mono,
.page-products .pf-cats__layout:has(#cat-04:target) a[href="#cat-04"] .mono,
.page-products .pf-cats__layout:has(#cat-05:target) a[href="#cat-05"] .mono,
.page-products .pf-cats__layout:has(#cat-06:target) a[href="#cat-06"] .mono {
  color: var(--cyan);
}

/* 响应式 */
@media (min-width: 720px) {
  .page-products {
    --pf-pad: 40px;
  }

  .pf-hero {
    padding-block: 64px 72px;
  }

  .page-products .section {
    padding-block: 68px;
  }

  .pf-cat {
    padding: 30px 28px;
  }

  .pf-matrix__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pf-pick__table,
  .page-products .pf-table {
    min-width: 0;
  }
}

@media (min-width: 960px) {
  .page-products {
    --pf-pad: 64px;
  }

  .pf-cats__layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
  }

  .pf-cats__index {
    position: sticky;
    top: 24px;
    margin-bottom: 0;
  }

  .pf-cats__list {
    flex-direction: column;
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }

  .pf-cats__link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
  }

  .pf-cat {
    margin-bottom: 22px;
    padding: 34px 32px;
  }

  .pf-cat__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: 32px;
    align-items: start;
  }

  .pf-cat--flip .pf-cat__fig {
    order: -1;
  }

  .pf-cat__fig {
    margin-top: 4px;
  }

  .pf-hero__lead {
    font-size: 17px;
  }

  .pf-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 40px;
    align-items: end;
  }

  .pf-cta__inner h2,
  .pf-cta__inner p {
    grid-column: 1;
  }

  .pf-cta__actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin-top: 0;
  }
}

@media (min-width: 1180px) {
  .pf-matrix__figure {
    margin-left: 0;
    margin-right: -40px;
  }
}

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