/* ===== 入口与工具 · 页面专属样式 ===== */

.page-products {
  --pp-glow: radial-gradient(58% 92% at 74% 0%, rgba(57, 245, 208, .15), transparent 68%);
}

.page-products .pp-crumb {
  padding-top: clamp(18px, 4vw, 32px);
}

/* ---------- 首屏 ---------- */
.page-products .products-hero {
  position: relative;
  display: grid;
  gap: clamp(22px, 5vw, 46px);
  padding: clamp(28px, 6vw, 56px) 0 clamp(40px, 7vw, 84px);
  isolation: isolate;
}

.page-products .products-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 440px;
  background: var(--pp-glow);
  pointer-events: none;
  z-index: -1;
}

.page-products .products-hero h1 {
  margin: .28em 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 9vw, 5.4rem);
  line-height: .95;
  letter-spacing: -.025em;
  color: var(--white);
  text-wrap: balance;
}

.page-products .products-hero__lede {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(.94rem, 1.7vw, 1.05rem);
  line-height: 1.9;
  color: var(--mist);
}

.page-products .products-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 28px);
}

@media (min-width: 900px) {
  .page-products .products-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: end;
    gap: clamp(40px, 6vw, 84px);
  }

  .page-products .products-hero__rail {
    padding-left: clamp(20px, 3vw, 36px);
    padding-bottom: .8rem;
    border-left: 1px solid var(--line);
  }
}

/* ---------- 三步路径 ---------- */
.page-products .tool-map {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-products .tool-map__figure {
  position: relative;
  margin: 0;
}

.page-products .tool-map__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 19, 0) 34%, rgba(23, 63, 53, .92) 100%);
  pointer-events: none;
}

.page-products .tool-map__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 300px;
  object-fit: cover;
}

.page-products .tool-map__body {
  padding: clamp(22px, 4vw, 44px);
}

.page-products .tool-map__body h2 {
  margin: .35em 0 .55em;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.6rem);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.012em;
  color: var(--white);
}

.page-products .tool-map__note {
  margin: 0 0 clamp(20px, 3vw, 32px);
  max-width: 62ch;
  font-size: .94rem;
  line-height: 1.9;
  color: var(--mist);
}

.page-products .route__stage {
  position: relative;
}

.page-products .route__line {
  display: none;
}

.page-products .route__list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .route__step {
  position: relative;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--ink-600);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}

.page-products .route__step:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.page-products .route__num {
  display: inline-block;
  margin-bottom: 10px;
  font-size: .76rem;
  letter-spacing: .18em;
  color: var(--cyan);
}

.page-products .route__step h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}

.page-products .route__step p {
  margin: 0;
  font-size: .89rem;
  line-height: 1.82;
  color: var(--mist);
}

@media (min-width: 860px) {
  .page-products .tool-map__figure img {
    max-height: 360px;
  }

  .page-products .route__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 3.2vw, 44px);
  }

  .page-products .route__line {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }

  .page-products .route__line path {
    stroke: var(--cyan);
    opacity: .42;
  }
}

/* ---------- 工具筛选与详情 ---------- */
.page-products .tools-head {
  max-width: 62ch;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.page-products .tools-head h2 {
  margin: .35em 0 .45em;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.7rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.012em;
  color: var(--white);
}

.page-products .tools-head__note {
  margin: 0;
  font-size: .94rem;
  line-height: 1.85;
  color: var(--mist);
}

.page-products .tool-filter {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(22px, 3.4vw, 34px);
}

.page-products .tool-filter__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-products .tool-filter__btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mist);
  font-size: .86rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}

.page-products .tool-filter__btn:hover {
  color: var(--white);
  border-color: var(--line-strong);
}

.page-products .tool-filter__input:checked + .tool-filter__btn {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-900);
  font-weight: 700;
}

.page-products .tool-filter__input:focus-visible + .tool-filter__btn {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 3px;
}

.page-products .tools-shell:has(#tf-schedule:checked) .tool-detail:not([data-cat="schedule"]),
.page-products .tools-shell:has(#tf-rank:checked) .tool-detail:not([data-cat="rank"]),
.page-products .tools-shell:has(#tf-center:checked) .tool-detail:not([data-cat="center"]) {
  display: none;
}

.page-products .tool-detail {
  display: grid;
  gap: clamp(18px, 3vw, 26px);
  margin-bottom: clamp(20px, 3.5vw, 32px);
  padding: clamp(16px, 3vw, 26px);
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.page-products .tool-detail__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-products .tool-detail__media::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.page-products .tool-detail__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-products .tool-detail__body h3 {
  margin: .5em 0 .6em;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2.7vw, 1.72rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.006em;
  color: var(--white);
}

.page-products .tool-detail__desc {
  margin: 0 0 18px;
  max-width: 58ch;
  font-size: .93rem;
  line-height: 1.92;
  color: var(--mist);
}

.page-products .tool-detail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .tool-detail__list li {
  position: relative;
  padding-left: 20px;
  font-size: .89rem;
  line-height: 1.72;
  color: var(--white);
  opacity: .86;
}

.page-products .tool-detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-wash);
}

@media (min-width: 920px) {
  .page-products .tool-detail {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(28px, 4vw, 52px);
    padding: clamp(22px, 3vw, 36px);
  }

  .page-products .tool-detail:nth-of-type(even) {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  }

  .page-products .tool-detail:nth-of-type(even) .tool-detail__media {
    order: 2;
  }

  .page-products .tool-detail:nth-of-type(even) .tool-detail__body {
    order: 1;
  }
}

/* ---------- 速查表 ---------- */
.page-products .pp-matrix__grid {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

.page-products .pp-matrix__main h2 {
  margin: .35em 0 clamp(18px, 2.6vw, 26px);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.6vw, 2.5rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--white);
}

.page-products .pp-table__wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--ink-700);
  -webkit-overflow-scrolling: touch;
}

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

.page-products .pp-table__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-products .pp-table thead th {
  padding: 14px 16px;
  text-align: left;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line);
  color: var(--cyan);
  font-weight: 600;
  font-size: .73rem;
  letter-spacing: .13em;
  white-space: nowrap;
}

.page-products .pp-table tbody th {
  padding: 15px 16px;
  text-align: left;
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}

.page-products .pp-table tbody td {
  padding: 15px 16px;
  color: var(--mist);
  line-height: 1.62;
  border-top: 1px solid var(--line);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

.page-products .pp-table tbody tr:hover th {
  background: var(--ink-600);
  box-shadow: inset 2px 0 0 var(--cyan);
}

.page-products .pp-table tbody tr:hover td {
  background: var(--ink-600);
  color: var(--white);
}

.page-products .pp-matrix__aside {
  padding: clamp(20px, 3vw, 26px);
  border-radius: var(--radius-md);
  background: var(--ink-700);
  border: 1px solid var(--line);
}

.page-products .pp-matrix__hint {
  margin: 14px 0 0;
  font-size: .82rem;
  line-height: 1.78;
  color: var(--mist);
}

.page-products .pp-matrix__tips {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .pp-matrix__tips li {
  position: relative;
  padding-left: 15px;
  font-size: .84rem;
  line-height: 1.72;
  color: var(--white);
  opacity: .78;
}

.page-products .pp-matrix__tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 7px;
  height: 1px;
  background: var(--gold);
}

@media (min-width: 960px) {
  .page-products .pp-matrix__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }

  .page-products .pp-matrix__aside {
    position: sticky;
    top: 112px;
  }
}

/* ---------- 使用场景 ---------- */
.page-products .pp-scene__grid {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}

.page-products .pp-scene__copy h2 {
  margin: .35em 0 clamp(18px, 3vw, 26px);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.8vw, 2.6rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--white);
}

.page-products .pp-scene__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(16px, 2.6vw, 24px);
}

.page-products .pp-scene__list li {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.page-products .pp-scene__list h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--cyan);
}

.page-products .pp-scene__list p {
  margin: 0;
  max-width: 52ch;
  font-size: .89rem;
  line-height: 1.86;
  color: var(--mist);
}

.page-products .pp-scene__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-products .pp-scene__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

@media (min-width: 900px) {
  .page-products .pp-scene__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }
}

/* ---------- 数据带 ---------- */
.page-products .pp-numbers {
  padding: clamp(30px, 5vw, 56px) 0;
  background: var(--ink-900);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-products .pp-numbers__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.page-products .pp-numbers__list li {
  display: grid;
  gap: 8px;
}

.page-products .pp-numbers__num {
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--gold);
}

.page-products .pp-numbers__label {
  font-size: .79rem;
  letter-spacing: .05em;
  line-height: 1.6;
  color: var(--mist);
}

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

/* ---------- 版本演进 ---------- */
.page-products .pp-versions h2 {
  margin: .35em 0 clamp(22px, 3.5vw, 34px);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.8vw, 2.6rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--white);
}

.page-products .pp-versions__list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(16px, 2.6vw, 24px);
  max-width: 760px;
}

.page-products .pp-versions__list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  opacity: .45;
}

.page-products .pp-versions__list li {
  position: relative;
  padding-left: 30px;
}

.page-products .pp-versions__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-800);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-wash);
}

.page-products .pp-versions__year {
  display: block;
  margin-bottom: 4px;
  font-size: .77rem;
  letter-spacing: .16em;
  color: var(--gold);
}

.page-products .pp-versions__list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--white);
}

.page-products .pp-versions__list p {
  margin: 5px 0 0;
  max-width: 58ch;
  font-size: .89rem;
  line-height: 1.82;
  color: var(--mist);
}

/* ---------- 收尾 ---------- */
.page-products .pp-outro__box {
  display: grid;
  gap: clamp(22px, 3.5vw, 36px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(82% 130% at 100% 0%, var(--cyan-wash), transparent 62%),
    var(--ink-700);
}

.page-products .pp-outro__text h2 {
  margin: .35em 0 .5em;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.22;
  font-weight: 800;
  color: var(--white);
}

.page-products .pp-outro__lead {
  margin: 0;
  max-width: 58ch;
  font-size: .92rem;
  line-height: 1.95;
  color: var(--mist);
}

.page-products .pp-outro__lead a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color .3s var(--ease);
}

.page-products .pp-outro__lead a:hover {
  color: var(--cyan-bright);
}

.page-products .pp-outro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

@media (min-width: 860px) {
  .page-products .pp-outro__box {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .route__step,
  .page-products .tool-filter__btn,
  .page-products .pp-table tbody th,
  .page-products .pp-table tbody td,
  .page-products .pp-outro__lead a {
    transition: none;
  }

  .page-products .route__step:hover {
    transform: none;
  }
}
