.page-products {
  --pp-warm-bg: #3A2A18;
  --pp-warm-line: #6B4A24;
  --pp-warm-text: #F3EDE1;
  --pp-green-ok: #F2B33D;

  padding-bottom: 72px;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(42, 74, 99, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 74, 99, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--paper);
  overflow-x: hidden;
}

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

/* ---------- 面包屑 ---------- */

.page-products .crumbs {
  padding: 22px 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.page-products .crumbs a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-products .crumbs a:hover {
  color: var(--amber-hi);
  border-bottom-color: var(--amber-hi);
}

.page-products .crumbs span[aria-current] {
  color: var(--amber);
}

/* ---------- 首屏 ---------- */

.page-products .tools-hero {
  padding: 6px 0 30px;
  border-bottom: 1px solid rgba(42, 74, 99, 0.6);
}

.page-products .tools-hero .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(242, 179, 61, 0.45);
}

.page-products h1 {
  margin: 14px 0 14px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(27px, 7vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: 20ch;
}

.page-products .tools-hero__lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--mist);
  max-width: 64ch;
}

.page-products .tools-hero__facts {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.page-products .tools-hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 12px;
  border-left: 2px solid var(--amber);
}

.page-products .tools-hero__facts b {
  font-family: var(--font-mono);
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  color: var(--amber-hi);
}

.page-products .tools-hero__facts span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--mist);
}

/* ---------- 布局 ---------- */

.page-products .tool-layout {
  display: grid;
  gap: 30px;
  padding-top: 30px;
}

.page-products .tool-main {
  min-width: 0;
}

/* ---------- 射手榜侧栏 ---------- */

.page-products .rail-card {
  background: var(--steel);
  border: 1px solid rgba(42, 74, 99, 0.9);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(5, 18, 29, 0.45);
}

.page-products .rail-fig {
  height: 150px;
  background: var(--green);
  overflow: hidden;
}

.page-products .rail-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-products .rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 6px;
}

.page-products .rail-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-products .rail-title::before {
  content: "";
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--amber);
  flex: none;
}

.page-products .rail-head .stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--mist);
  white-space: nowrap;
}

.page-products .rail-note {
  margin: 0;
  padding: 0 16px 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mist);
}

.page-products .rail-leagues {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 14px;
}

.page-products .rail-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(42, 74, 99, 0.95);
  color: var(--mist);
  white-space: nowrap;
}

.page-products .rail-chip.is-on {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 700;
}

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

.page-products .scorer {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
}

.page-products .scorer__rank {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.page-products .scorer__bar {
  display: block;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(10, 27, 42, 0.8);
  overflow: hidden;
}

.page-products .scorer__bar::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--fill, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--amber-hi));
}

.page-products .scorer__goals {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-align: right;
  color: var(--amber-hi);
}

.page-products .rail-foot {
  margin: 0;
  padding: 11px 16px 14px;
  border-top: 1px solid rgba(42, 74, 99, 0.75);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--mist);
}

/* ---------- 通用区块 ---------- */

.page-products .tool-block {
  padding-bottom: 46px;
}

.page-products .tool-block + .tool-block {
  border-top: 1px solid rgba(42, 74, 99, 0.5);
  padding-top: 42px;
}

.page-products .block-fig {
  margin: 0 0 22px;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--green);
  border: 1px solid rgba(42, 74, 99, 0.7);
}

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

.page-products .block-fig--tag { height: 190px; }
.page-products .block-fig--fit { height: 190px; }
.page-products .block-fig--devices { height: 180px; }

.page-products .section-head {
  margin-bottom: 20px;
}

.page-products .section-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--amber);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(242, 179, 61, 0.5);
  margin-bottom: 10px;
}

.page-products .section-title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(19px, 5.2vw, 27px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.page-products .section-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
  max-width: 62ch;
}

/* ---------- 速查表 ---------- */

.page-products .filter-bar {
  display: grid;
  gap: 10px;
  padding: 14px 15px;
  margin-bottom: 20px;
  border: 1px solid rgba(42, 74, 99, 0.85);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-m);
  background: rgba(23, 51, 77, 0.6);
}

.page-products .filter-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.page-products .filter-line__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--amber);
  flex: none;
  min-width: 56px;
}

.page-products .chip {
  display: inline-block;
  font-size: 12px;
  line-height: 1.4;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(42, 74, 99, 0.95);
  background: transparent;
  color: var(--mist);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-products .chip:hover {
  color: var(--amber-hi);
  border-color: var(--amber);
  background: rgba(242, 179, 61, 0.12);
}

.page-products .tag-table {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(42, 74, 99, 0.6);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: rgba(42, 74, 99, 0.6);
}

.page-products .tag-row {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px 15px;
  background: var(--navy);
  transition: background var(--dur) var(--ease);
}

.page-products .tag-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur) var(--ease);
}

.page-products .tag-row:hover {
  background: var(--green);
}

.page-products .tag-row:hover::before {
  transform: scaleY(1);
}

.page-products .tag-row__cat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-products .tag-row__idx {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(242, 179, 61, 0.5);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
}

.page-products .tag-row__cat h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-products .tag-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-products .tag-row__tags .chip {
  font-size: 11.5px;
  padding: 4px 9px;
}

.page-products .tag-row__fit {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--mist);
}

/* ---------- 适配清单 ---------- */

.page-products .fit-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.page-products .fit-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--mist);
}

.page-products .fit-key i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.page-products .fit-key--ok i {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 179, 61, 0.18);
}

.page-products .fit-key--set i {
  background: var(--mist);
  box-shadow: 0 0 0 3px rgba(157, 178, 196, 0.18);
}

.page-products .fit-key--switch i {
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(229, 103, 79, 0.18);
}

.page-products .fit-list {
  border: 1px solid rgba(42, 74, 99, 0.6);
  border-radius: var(--radius-m);
  background: rgba(23, 51, 77, 0.32);
  overflow: hidden;
}

.page-products .fit-item {
  border-bottom: 1px solid rgba(42, 74, 99, 0.55);
}

.page-products .fit-item:last-child {
  border-bottom: 0;
}

.page-products .fit-item__head {
  width: 100%;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  background: none;
  border: 0;
  text-align: left;
  color: var(--paper);
  font: inherit;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}

.page-products .fit-item__head:hover {
  background: rgba(14, 59, 46, 0.5);
}

.page-products .fit-item__head::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
  color: var(--amber);
}

.page-products .fit-item__head[aria-expanded="true"]::after {
  content: "−";
  color: var(--amber-hi);
}

.page-products .fit-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.page-products .fit-dot--ok {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 179, 61, 0.16);
}

.page-products .fit-dot--set {
  background: var(--mist);
  box-shadow: 0 0 0 3px rgba(157, 178, 196, 0.16);
}

.page-products .fit-dot--switch {
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(229, 103, 79, 0.16);
}

.page-products .fit-item__name {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--paper);
}

.page-products .fit-item__state {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
  white-space: nowrap;
}

.page-products .fit-item .panel__inner {
  padding: 0 14px 15px 35px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 家庭观赛 ---------- */

.page-products .family-wrap {
  border: 1px solid var(--pp-warm-line);
  border-radius: var(--radius-l);
  padding: 14px;
  background:
    radial-gradient(120% 88% at 10% 0%, rgba(242, 179, 61, 0.2), transparent 62%),
    var(--pp-warm-bg);
}

.page-products .family-fig {
  height: 175px;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid rgba(107, 74, 36, 0.7);
}

.page-products .family-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-products .family-body {
  padding: 20px 4px 6px;
}

.page-products .family-wrap .section-num {
  color: var(--amber-hi);
  border-bottom-color: rgba(255, 212, 121, 0.55);
}

.page-products .family-wrap .section-title {
  color: var(--pp-warm-text);
}

.page-products .family-wrap .section-sub {
  color: rgba(243, 237, 225, 0.74);
}

.page-products .family-abilities {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.page-products .family-ability {
  padding: 15px;
  border: 1px solid var(--pp-warm-line);
  border-radius: var(--radius-m);
  background: rgba(5, 18, 29, 0.42);
}

.page-products .family-ability__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--amber-hi);
  margin-bottom: 8px;
}

.page-products .family-ability h3 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--pp-warm-text);
}

.page-products .family-ability p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(243, 237, 225, 0.72);
}

/* ---------- 人群搭配 ---------- */

.page-products .crowd-grid {
  display: grid;
  gap: 12px;
}

.page-products .crowd-card {
  padding: 16px;
  border: 1px solid rgba(42, 74, 99, 0.85);
  border-radius: var(--radius-m);
  background: rgba(23, 51, 77, 0.55);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-products .crowd-card:hover {
  border-color: rgba(242, 179, 61, 0.6);
  background: rgba(23, 51, 77, 0.8);
}

.page-products .crowd-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-products .crowd-card__scene {
  margin: 0 0 13px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-products .crowd-card__spec {
  margin: 0;
  padding-top: 11px;
  border-top: 1px dashed rgba(42, 74, 99, 0.9);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 5px 10px;
  font-size: 12.5px;
  line-height: 1.55;
}

.page-products .crowd-card__spec dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--amber);
}

.page-products .crowd-card__spec dd {
  margin: 0;
  color: rgba(230, 237, 244, 0.88);
}

/* ---------- 设备支持 ---------- */

.page-products .device-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  border: 1px solid rgba(42, 74, 99, 0.6);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: rgba(42, 74, 99, 0.6);
}

.page-products .device-list li {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  background: var(--navy);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
  transition: background var(--dur) var(--ease);
}

.page-products .device-list li:hover {
  background: var(--green);
}

.page-products .device-list .mono {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--amber-hi);
}

/* ---------- 旧版本 ---------- */

.page-products .old-card {
  display: grid;
  gap: 18px;
  padding: 22px 18px;
  border: 1px solid rgba(42, 74, 99, 0.9);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-l);
  background: linear-gradient(120deg, rgba(23, 51, 77, 0.95), rgba(10, 27, 42, 0.9));
}

.page-products .old-card .section-head {
  margin-bottom: 0;
}

.page-products .old-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-products .old-actions .btn {
  flex: 1 1 auto;
  text-align: center;
}

/* ---------- 兜底条 ---------- */

.page-products .help-strip {
  display: grid;
  gap: 14px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(42, 74, 99, 0.5);
}

.page-products .help-strip__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
  max-width: 56ch;
}

.page-products .help-strip__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 响应式 ---------- */

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

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

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

  .page-products .family-fig {
    height: 240px;
  }

  .page-products .block-fig--tag,
  .page-products .block-fig--fit {
    height: 250px;
  }

  .page-products .block-fig--devices {
    height: 230px;
  }
}

@media (min-width: 768px) {
  .page-products .tag-row {
    grid-template-columns: 176px minmax(0, 1fr) 220px;
    align-items: start;
    gap: 18px;
    padding: 18px 20px;
  }

  .page-products .tag-row__fit {
    text-align: right;
  }

  .page-products .device-list li {
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: baseline;
    gap: 20px;
    padding: 15px 20px;
  }

  .page-products .old-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 26px 24px;
  }

  .page-products .old-actions {
    flex: none;
  }

  .page-products .help-strip {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
  }

  .page-products .family-wrap {
    padding: 18px;
  }
}

@media (min-width: 1000px) {
  .page-products .tool-layout {
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
  }

  .page-products .tool-rail {
    position: sticky;
    top: calc(var(--header-h) + 22px);
  }

  .page-products .rail-fig {
    height: 200px;
  }

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

  .page-products .block-fig--tag {
    height: 270px;
  }

  .page-products .block-fig--fit {
    height: 248px;
  }
}

@media (max-width: 400px) {
  .page-products .fit-item__head {
    grid-template-columns: 10px minmax(0, 1fr) 12px;
  }

  .page-products .fit-item__state {
    grid-column: 2 / 3;
    grid-row: 2;
    margin-top: 2px;
  }

  .page-products .fit-item__head::after {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .tag-row,
  .page-products .tag-row::before,
  .page-products .chip,
  .page-products .crowd-card,
  .page-products .device-list li,
  .page-products .fit-item__head {
    transition: none;
  }
}

.page-products {
  --fill: currentColor;
}
