.page-products {
  --cat-line: rgba(220, 232, 238, 0.14);
  --cat-spine: rgba(53, 240, 208, 0.42);
  --cat-soft: rgba(220, 232, 238, 0.055);
  --cat-warm: rgba(255, 209, 102, 0.09);
  --cat-warm-line: rgba(255, 209, 102, 0.55);
  display: block;
  padding-bottom: clamp(48px, 7vw, 96px);
}

/* ---------- 面包屑 ---------- */
.page-products .cat-crumb {
  padding-top: clamp(16px, 2.4vw, 28px);
}

/* ---------- 首屏 ---------- */
.page-products .cat-hero {
  padding-block: clamp(22px, 3.4vw, 44px) clamp(34px, 5vw, 64px);
}

.page-products .cat-hero__grid {
  display: grid;
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}

.page-products .cat-hero__lead h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--paper);
  margin: 14px 0 18px;
  max-width: 20ch;
}

.page-products .cat-hero__lead .lede {
  max-width: var(--measure);
  color: var(--mist);
  font-size: 1rem;
  line-height: 1.85;
  margin: 0 0 26px;
}

.page-products .cat-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-products .cat-hero__figure {
  margin: 0;
  position: relative;
}

.page-products .cat-hero__figure::before {
  content: "";
  position: absolute;
  inset: -10px -10px auto auto;
  width: 56px;
  height: 56px;
  border-top: 1px solid var(--coral);
  border-right: 1px solid var(--coral);
  border-top-right-radius: var(--radius-s);
  pointer-events: none;
}

.page-products .figure__media {
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--ink-800);
}

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

.page-products .figure__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--tide);
}

.page-products .cat-stats {
  list-style: none;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--cat-line);
  border: 1px solid var(--cat-line);
  border-radius: var(--radius-s);
  overflow: hidden;
}

.page-products .cat-stats li {
  background: var(--ink-900);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-products .cat-stats__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--aqua);
}

.page-products .cat-stats__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--tide);
}

/* ---------- 章节骨架 ---------- */
.page-products .cat-section {
  padding-block: clamp(46px, 6.4vw, 88px);
  border-top: 1px solid var(--cat-line);
}

.page-products .cat-section__head {
  max-width: 62ch;
}

.page-products .cat-section__intro {
  margin: 14px 0 0;
  color: var(--tide);
  font-size: 0.9688rem;
  line-height: 1.85;
}

/* ---------- 鱼骨总览 ---------- */
.page-products .fishbone {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 44px);
  padding-left: 22px;
}

.page-products .fishbone::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--cat-spine) 10%, var(--cat-spine) 90%, transparent);
}

.page-products .fish-node {
  position: relative;
  padding: 15px 17px 16px;
  border-radius: var(--radius-s);
  background: linear-gradient(180deg, rgba(220, 232, 238, 0.07), rgba(220, 232, 238, 0.015));
  border-left: 2px solid rgba(53, 240, 208, 0.5);
}

.page-products .fish-node::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 24px;
  width: 16px;
  height: 1px;
  background: var(--cat-spine);
}

.page-products .fish-node__idx {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--aqua);
}

.page-products .fish-node__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.0313rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--paper);
}

.page-products .fish-node__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--tide);
}

/* ---------- 标签筛选 ---------- */
.page-products .cat-section--tags {
  background: radial-gradient(120% 90% at 12% 0%, rgba(53, 240, 208, 0.08), transparent 62%);
}

.page-products .tag-filter {
  position: relative;
  margin-top: clamp(22px, 3.4vw, 36px);
}

.page-products .tag-filter__input,
.page-products .device-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-products .tag-filter__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.page-products .tag-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--mist);
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-products .tag-filter__count {
  color: var(--tide);
  font-size: 11px;
}

.page-products .tag-filter__btn:hover {
  border-color: var(--aqua);
}

.page-products #tf-all:checked ~ .tag-filter__bar [for="tf-all"],
.page-products #tf-device:checked ~ .tag-filter__bar [for="tf-device"],
.page-products #tf-read:checked ~ .tag-filter__bar [for="tf-read"],
.page-products #tf-version:checked ~ .tag-filter__bar [for="tf-version"] {
  background: var(--aqua);
  border-color: var(--aqua);
  color: var(--ink-900);
}

.page-products #tf-all:checked ~ .tag-filter__bar [for="tf-all"] .tag-filter__count,
.page-products #tf-device:checked ~ .tag-filter__bar [for="tf-device"] .tag-filter__count,
.page-products #tf-read:checked ~ .tag-filter__bar [for="tf-read"] .tag-filter__count,
.page-products #tf-version:checked ~ .tag-filter__bar [for="tf-version"] .tag-filter__count {
  color: rgba(7, 26, 43, 0.68);
}

.page-products #tf-all:focus-visible ~ .tag-filter__bar [for="tf-all"],
.page-products #tf-device:focus-visible ~ .tag-filter__bar [for="tf-device"],
.page-products #tf-read:focus-visible ~ .tag-filter__bar [for="tf-read"],
.page-products #tf-version:focus-visible ~ .tag-filter__bar [for="tf-version"] {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}

.page-products #tf-device:checked ~ .tag-wall .node-tag:not([data-kind="device"]),
.page-products #tf-read:checked ~ .tag-wall .node-tag:not([data-kind="read"]),
.page-products #tf-version:checked ~ .tag-wall .node-tag:not([data-kind="version"]) {
  display: none;
}

.page-products .tag-wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-products .node-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
  background: rgba(220, 232, 238, 0.07);
  border: 1px solid var(--cat-line);
}

.page-products .node-tag[data-kind="device"] {
  border-color: rgba(53, 240, 208, 0.32);
  color: #BFEDE4;
}

.page-products .node-tag[data-kind="read"] {
  border-color: rgba(220, 232, 238, 0.3);
}

.page-products .node-tag[data-kind="version"] {
  border-color: rgba(124, 92, 255, 0.42);
  color: #D6CFFB;
}

.page-products .tag-filter__note {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: var(--tide);
}

/* ---------- 工具专区 ---------- */
.page-products .cat-section--tools {
  background:
    radial-gradient(110% 80% at 88% 0%, rgba(255, 209, 102, 0.12), transparent 62%),
    var(--ink-800);
  border-top-color: transparent;
}

.page-products .tool-grid {
  display: grid;
  gap: 12px;
  margin-top: clamp(22px, 3.4vw, 36px);
}

.page-products .tool-card {
  padding: 18px 16px 20px;
  border-radius: var(--radius-m);
  background: var(--cat-warm);
  border-top: 2px solid var(--cat-warm-line);
}

.page-products .tool-card__title {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--paper);
}

.page-products .tool-card__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--mist);
}

.page-products .tool-foot {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  margin-top: clamp(26px, 4vw, 44px);
  padding-top: clamp(24px, 3.4vw, 36px);
  border-top: 1px dashed var(--line-strong);
}

.page-products .tool-foot__figure {
  margin: 0;
}

.page-products .tool-foot__title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sun);
}

.page-products .tool-foot__body p {
  margin: 0 0 18px;
  font-size: 0.9688rem;
  line-height: 1.85;
  color: var(--mist);
}

/* ---------- 设备路径 ---------- */
.page-products .cat-section--devices {
  background: radial-gradient(100% 80% at 100% 100%, rgba(53, 240, 208, 0.09), transparent 60%);
}

.page-products .device-layout {
  display: grid;
  gap: clamp(26px, 4vw, 46px);
  margin-top: clamp(22px, 3.4vw, 36px);
  align-items: start;
}

.page-products .device-switch {
  position: relative;
}

.page-products .device-switch__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.page-products .device-switch__tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-products .device-switch__tab:hover {
  border-color: var(--coral);
}

.page-products #dev-desktop:checked ~ .device-switch__bar [for="dev-desktop"],
.page-products #dev-android:checked ~ .device-switch__bar [for="dev-android"],
.page-products #dev-ios:checked ~ .device-switch__bar [for="dev-ios"] {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--paper);
}

.page-products #dev-desktop:focus-visible ~ .device-switch__bar [for="dev-desktop"],
.page-products #dev-android:focus-visible ~ .device-switch__bar [for="dev-android"],
.page-products #dev-ios:focus-visible ~ .device-switch__bar [for="dev-ios"] {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}

.page-products .device-panel {
  display: none;
}

.page-products #dev-desktop:checked ~ .device-switch__panels [data-device="desktop"],
.page-products #dev-android:checked ~ .device-switch__panels [data-device="android"],
.page-products #dev-ios:checked ~ .device-switch__panels [data-device="ios"] {
  display: block;
  animation: cat-fade 0.32s var(--ease) both;
}

@keyframes cat-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.page-products .device-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--cat-line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.page-products .device-step {
  background: var(--ink-800);
  padding: 18px 18px 20px;
  border-left: 2px solid transparent;
}

.page-products .device-step:hover {
  border-left-color: var(--aqua);
}

.page-products .device-step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--coral);
}

.page-products .device-step__title {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-size: 1.0313rem;
  font-weight: 700;
  color: var(--paper);
}

.page-products .device-step__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--mist);
}

.page-products .device-figure {
  margin: 0;
}

/* ---------- 会员权益 ---------- */
.page-products .cat-section--member {
  background: radial-gradient(110% 90% at 0% 0%, rgba(124, 92, 255, 0.14), transparent 62%);
}

.page-products .member-layout {
  display: grid;
  gap: clamp(26px, 4vw, 46px);
  margin-top: clamp(22px, 3.4vw, 36px);
  align-items: start;
}

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

.page-products .member-item {
  position: relative;
  padding: 16px 18px 18px 58px;
  border-radius: var(--radius-s);
  background: var(--cat-soft);
}

.page-products .member-item__idx {
  position: absolute;
  left: 16px;
  top: 17px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--violet);
}

.page-products .member-item__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
}

.page-products .member-item__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--tide);
}

.page-products .member-figure {
  margin: 0;
}

/* ---------- 路径变化 ---------- */
.page-products .compare {
  display: grid;
  gap: 12px;
  margin-top: clamp(22px, 3.4vw, 36px);
}

.page-products .compare__col {
  padding: 20px 18px 22px;
  border-radius: var(--radius-m);
  background: var(--cat-soft);
}

.page-products .compare__col--before {
  border-top: 2px solid rgba(169, 187, 198, 0.5);
}

.page-products .compare__col--after {
  background: linear-gradient(180deg, rgba(53, 240, 208, 0.1), rgba(53, 240, 208, 0.02));
  border-top: 2px solid var(--aqua);
}

.page-products .compare__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.page-products .compare__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--paper);
}

.page-products .compare__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: none;
}

.page-products .compare__list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--mist);
}

.page-products .compare__num {
  flex: none;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--tide);
}

.page-products .compare__col--after .compare__num {
  border-color: var(--aqua);
  color: var(--aqua);
}

.page-products .compare__badge {
  display: inline-block;
  margin: 18px 0 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
}

.page-products .compare-figure {
  margin: clamp(22px, 3.4vw, 34px) 0 0;
}

/* ---------- 三步查阅 ---------- */
.page-products .cat-section--steps {
  background: var(--ink-900);
}

.page-products .flow {
  list-style: none;
  margin: clamp(22px, 3.4vw, 36px) 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .flow__step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 18px 20px;
  border-radius: var(--radius-m);
  background: var(--cat-soft);
}

.page-products .flow__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--aqua);
}

.page-products .flow__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--paper);
}

.page-products .flow__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-products .next-links {
  display: grid;
  gap: 10px;
  margin-top: clamp(26px, 4vw, 44px);
}

.page-products .next-link {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "idx title"
    "idx text";
  gap: 2px 14px;
  padding: 16px 18px;
  border-radius: var(--radius-s);
  border: 1px solid var(--cat-line);
  text-decoration: none;
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.page-products .next-link:hover,
.page-products .next-link:focus-visible {
  border-color: var(--aqua);
  background: rgba(53, 240, 208, 0.07);
}

.page-products .next-link__idx {
  grid-area: idx;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--sun);
}

.page-products .next-link__title {
  grid-area: title;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
}

.page-products .next-link__text {
  grid-area: text;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--tide);
}

/* ---------- 悬浮路径条 ---------- */
.page-products .route-rail {
  display: none;
}

/* ---------- 平板及以上 ---------- */
@media (min-width: 640px) {
  .page-products .cat-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

@media (min-width: 900px) {
  .page-products .cat-hero__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  }

  .page-products .fishbone {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(36px, 5vw, 76px);
    row-gap: 16px;
    padding-left: 0;
  }

  .page-products .fishbone::before {
    left: 50%;
    top: 4px;
    bottom: 4px;
    transform: translateX(-0.5px);
    background: linear-gradient(180deg, transparent, var(--cat-spine) 8%, var(--cat-spine) 92%, transparent);
  }

  .page-products .fish-node {
    margin: 0;
  }

  .page-products .fish-node::before {
    display: none;
  }

  .page-products .fish-node:nth-child(odd) {
    grid-column: 1;
    text-align: right;
    border-left: none;
    border-right: 2px solid rgba(53, 240, 208, 0.5);
  }

  .page-products .fish-node:nth-child(even) {
    grid-column: 2;
    border-left: 2px solid var(--cat-warm-line);
  }

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

  .page-products .tool-foot {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  }

  .page-products .device-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  }

  .page-products .member-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

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

  .page-products .flow__step {
    flex-direction: column;
    gap: 12px;
  }
}

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

@media (min-width: 1400px) {
  .page-products .route-rail {
    display: block;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    padding: 14px 12px;
    border-radius: var(--radius-s);
    background: rgba(14, 42, 63, 0.86);
    border: 1px solid var(--cat-line);
    backdrop-filter: blur(6px);
  }

  .page-products .route-rail__title {
    margin: 0 0 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--tide);
  }

  .page-products .route-rail__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
  }

  .page-products .route-rail__list a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 2px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--mist);
    transition: color 0.2s var(--ease);
  }

  .page-products .route-rail__list a:hover,
  .page-products .route-rail__list a:focus-visible {
    color: var(--aqua);
  }

  .page-products .route-rail__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid var(--aqua);
    flex: none;
  }

  .page-products .route-rail__list a:hover .route-rail__dot {
    background: var(--aqua);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .device-switch__panels .device-panel {
    animation: none;
  }

  .page-products .tag-filter__btn,
  .page-products .device-switch__tab,
  .page-products .next-link {
    transition: none;
  }
}
