.page-products {
  background: var(--paper);
  color: var(--ink);
  --hx-line: rgba(26, 20, 16, 0.15);
  --hx-line-dark: rgba(56, 232, 255, 0.2);
  overflow-x: hidden;
}

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

.page-products .h-hero {
  font-size: clamp(42px, 11vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 14px 0 20px;
}

.page-products .h-section {
  font-size: clamp(26px, 5.4vw, 44px);
  line-height: 1.18;
  margin: 10px 0 20px;
}

.page-products .crumb {
  padding-top: 26px;
  padding-bottom: 10px;
}

/* ---------- 首屏分屏 ---------- */
.hx-hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 82% 12%, rgba(122, 59, 255, 0.34), transparent 62%),
    linear-gradient(170deg, var(--deep-1) 0%, var(--midnight) 58%, var(--deep-3) 100%);
  color: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.2vw), 0 100%);
  padding-bottom: 34px;
}

.hx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(56, 232, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 232, 255, 0.05) 1px, transparent 1px);
  background-size: 84px 84px, 84px 84px;
  pointer-events: none;
}

.hx-hero__inner {
  position: relative;
  display: grid;
  gap: 44px;
  padding-top: 36px;
  padding-bottom: 56px;
}

.hx-hero__lede {
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ice);
  margin: 0;
}

.hx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hx-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  margin: 38px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--hx-line-dark);
}

.hx-hero__facts div {
  min-width: 0;
}

.hx-hero__facts dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 6px;
}

.hx-hero__facts dd {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(56, 232, 255, 0.45);
}

.hx-hero__panel {
  position: relative;
  padding-top: 8px;
}

.hx-hero__panelcap {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin: 0 0 10px;
}

.hx-mini {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hx-line-dark);
}

.hx-mini__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(201, 214, 228, 0.13);
  transition: background var(--t-fast) var(--ease);
}

.hx-mini__row:hover {
  background: rgba(122, 59, 255, 0.14);
}

.hx-mini__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--ice);
}

.hx-mini__dot[data-state="live"] {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(56, 232, 255, 0.9);
}

.hx-mini__dot[data-state="warm"] {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.8);
}

.hx-mini__dot[data-state="busy"] {
  background: #6d7a8c;
  box-shadow: 0 0 8px rgba(109, 122, 140, 0.7);
}

.hx-mini__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
}

.hx-mini__id {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

.hx-mini__num {
  font-size: 12px;
  color: var(--ice);
}

.hx-mini__rank {
  font-size: 11px;
  color: var(--gold);
  border: 1px solid rgba(242, 193, 78, 0.5);
  padding: 1px 7px;
}

.hx-hero__panelfoot {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(201, 214, 228, 0.78);
  max-width: 40ch;
}

/* ---------- 通用章节 ---------- */
.hx-section {
  padding: 54px 24px;
}

.hx-grid--read {
  display: grid;
  gap: 34px;
}

.hx-read__body p {
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 16px;
}

.hx-fields {
  display: grid;
  gap: 1px;
  margin: 28px 0 0;
  background: var(--hx-line);
  border: 1px solid var(--hx-line);
}

.hx-fields__item {
  background: var(--paper);
  padding: 14px 16px;
}

.hx-fields dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--violet);
  margin-bottom: 5px;
}

.hx-fields dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(26, 20, 16, 0.82);
}

.hx-read__figure,
.hx-genre__figure,
.hx-items__figure {
  margin: 0;
}

.page-products .media__cap {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(26, 20, 16, 0.62);
}

/* ---------- 品类地图（深色带） ---------- */
.hx-catalog {
  background: linear-gradient(180deg, var(--midnight) 0%, var(--deep-2) 52%, var(--deep-1) 100%);
  color: var(--paper);
  clip-path: polygon(0 2.4vw, 100% 0, 100% 100%, 0 calc(100% - 2.4vw));
  padding: 26px 0;
}

.hx-catalog .eyebrow {
  color: var(--cyan);
}

.hx-catalog__lede {
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ice);
  margin: 0 0 34px;
}

.hx-genres {
  display: grid;
  gap: 22px;
}

.hx-genre {
  position: relative;
  border: 1px solid var(--hx-line-dark);
  background: rgba(8, 12, 36, 0.62);
  padding: 22px 20px 18px;
  transition: border-color var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}

.hx-genre::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(180deg, var(--violet), var(--cyan));
  transition: width var(--t-mid) var(--ease);
  pointer-events: none;
}

.hx-genre:hover {
  border-color: var(--violet);
  background: rgba(18, 8, 44, 0.74);
}

.hx-genre:hover::after {
  width: 3px;
}

.hx-genre__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.hx-genre__head .h-sub {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.hx-genre__tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.hx-genre__desc {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(201, 214, 228, 0.86);
}

.hx-genre__rooms {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(201, 214, 228, 0.14);
}

.hx-genre__rooms li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(201, 214, 228, 0.14);
}

.hx-genre__id {
  font-size: 11px;
  color: var(--cyan);
}

.hx-genre__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  color: var(--paper);
}

.hx-genre__meta {
  font-size: 11px;
  color: rgba(201, 214, 228, 0.72);
}

.hx-genre__figure {
  grid-column: 1 / -1;
}

.hx-catalog .media__cap {
  color: rgba(201, 214, 228, 0.68);
}

/* ---------- 筛选矩阵 ---------- */
.hx-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 20px;
}

.hx-matrix {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--hx-line);
}

.hx-matrix__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 13px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--hx-line);
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.hx-matrix__row:last-child {
  border-bottom: 0;
}

.hx-matrix__row:hover {
  background: #efe4d2;
  box-shadow: inset 3px 0 0 var(--violet);
}

.hx-matrix__row--head {
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hx-matrix__row--head:hover {
  background: var(--ink);
  box-shadow: none;
}

.hx-matrix__name {
  flex: 1 1 130px;
  min-width: 0;
  font-size: 14px;
}

.hx-matrix__id {
  font-size: 11px;
  color: var(--violet);
  letter-spacing: 0.06em;
}

.hx-matrix__num {
  font-size: 12px;
  color: rgba(26, 20, 16, 0.72);
}

.hx-matrix__rank {
  font-size: 11px;
  color: #8a6510;
  border: 1px solid rgba(242, 193, 78, 0.7);
  padding: 1px 6px;
}

.hx-matrix__row--head .hx-matrix__id,
.hx-matrix__row--head .hx-matrix__num,
.hx-matrix__row--head .hx-matrix__rank {
  color: var(--icy, var(--ice));
  border-color: transparent;
}

.hx-paths {
  display: grid;
  gap: 1px;
  margin-top: 30px;
  background: var(--hx-line);
  border: 1px solid var(--hx-line);
}

.hx-path {
  background: var(--paper);
  padding: 22px 20px;
}

.hx-path__no {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin: 0 0 8px;
}

.hx-path .h-sub {
  margin: 0 0 10px;
  font-size: 20px;
}

.hx-path p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(26, 20, 16, 0.8);
}

/* ---------- 道具 ---------- */
.hx-items {
  background: #ece0cd;
  border-top: 1px solid var(--hx-line);
  border-bottom: 1px solid var(--hx-line);
}

.hx-items__inner {
  display: grid;
  gap: 34px;
}

.hx-items__head p {
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
}

.hx-table__scroll {
  overflow-x: auto;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.hx-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.hx-table__cap {
  text-align: left;
  padding: 14px 16px 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26, 20, 16, 0.6);
}

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

.hx-table thead th {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border-bottom: 0;
}

.hx-table tbody th {
  font-size: 14px;
  white-space: nowrap;
}

.hx-table tbody tr:last-child th,
.hx-table tbody tr:last-child td {
  border-bottom: 0;
}

.hx-table td.mono {
  color: var(--violet);
  white-space: nowrap;
}

.hx-items__side {
  display: grid;
  gap: 28px;
}

.hx-gauges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.hx-gauge {
  display: grid;
  gap: 6px;
}

.hx-gauge__name {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.hx-gauge__bar {
  display: block;
  height: 8px;
  background: rgba(26, 20, 16, 0.12);
  overflow: hidden;
}

.hx-gauge__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.hx-gauge:nth-child(1) .hx-gauge__fill { width: 10%; }
.hx-gauge:nth-child(2) .hx-gauge__fill { width: 33%; }
.hx-gauge:nth-child(3) .hx-gauge__fill { width: 50%; }
.hx-gauge:nth-child(4) .hx-gauge__fill { width: 100%; }

.hx-gauge__num {
  font-size: 12px;
  color: rgba(26, 20, 16, 0.66);
}

.hx-gauge__tip {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(26, 20, 16, 0.7);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-left: 2px solid transparent;
  padding-left: 0;
  transition: max-height var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease), padding-left var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}

.hx-gauge:hover .hx-gauge__tip,
.hx-gauge:focus-within .hx-gauge__tip {
  max-height: 90px;
  opacity: 1;
  padding-left: 10px;
  border-color: var(--orange);
}

/* ---------- 入座与房规 ---------- */
.hx-steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--hx-line);
  border: 1px solid var(--hx-line);
}

.hx-step {
  background: var(--paper);
  padding: 22px 20px;
}

.hx-step__no {
  margin: 0 0 6px;
  font-size: 26px;
  color: var(--violet);
  line-height: 1;
}

.hx-step .h-sub {
  margin: 0 0 8px;
  font-size: 20px;
}

.hx-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(26, 20, 16, 0.8);
}

.hx-house {
  margin-top: 40px;
  padding: 24px 20px;
  border-left: 3px solid var(--orange);
  background: #f7f0e3;
}

.hx-house .h-sub {
  margin: 0 0 14px;
  font-size: 20px;
}

.hx-house__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hx-house__list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(26, 20, 16, 0.82);
}

.hx-house__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--violet);
}

.hx-house__more {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.75;
}

.hx-house__more a {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 维护节奏 ---------- */
.hx-sync {
  background: linear-gradient(120deg, var(--deep-2) 0%, var(--midnight) 55%, var(--deep-3) 100%);
  color: var(--paper);
  clip-path: polygon(0 0, 100% 2.2vw, 100% 100%, 0 100%);
  padding-top: 22px;
}

.hx-sync .eyebrow {
  color: var(--cyan);
}

.hx-sync__inner {
  display: grid;
  gap: 32px;
}

.hx-sync p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ice);
  margin: 0 0 16px;
}

.hx-sync__links {
  display: grid;
  gap: 1px;
  background: rgba(56, 232, 255, 0.22);
  border: 1px solid rgba(56, 232, 255, 0.22);
}

.hx-sync__link {
  display: block;
  padding: 18px 20px;
  background: rgba(8, 12, 36, 0.78);
  color: var(--paper);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}

.hx-sync__link:hover,
.hx-sync__link:focus-visible {
  background: rgba(122, 59, 255, 0.24);
  padding-left: 26px;
}

.hx-sync__linktitle {
  display: block;
  font-size: 17px;
  color: var(--cyan);
  margin-bottom: 5px;
}

.hx-sync__linkdesc {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(201, 214, 228, 0.82);
}

/* ---------- 焦点态 ---------- */
.page-products a:focus-visible,
.page-products button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-products .hx-sync__link:focus-visible {
  outline-offset: -2px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  .hx-genres {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hx-paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-items__side {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 900px) {
  .hx-section {
    padding: 88px 40px;
  }

  .hx-hero__inner {
    grid-template-columns: 42% 58%;
    align-items: center;
    gap: 0;
    padding-top: 56px;
    padding-bottom: 96px;
  }

  .hx-hero__panel {
    padding-left: 44px;
    border-left: 1px solid rgba(56, 232, 255, 0.28);
  }

  .hx-hero__panel::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    width: 2px;
    height: 96px;
    background: linear-gradient(180deg, var(--violet), transparent);
  }

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

  .hx-grid--read {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: start;
  }

  .hx-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-catalog {
    padding: 40px 0;
  }

  .hx-genres {
    gap: 26px;
  }

  .hx-items__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hx-sync__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 52px;
    align-items: start;
  }

  .hx-matrix__row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 84px 76px 112px;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
  }

  .hx-matrix__name {
    flex: none;
  }
}

@media (min-width: 1100px) {
  .hx-genres {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hx-genre__figure--wide {
    grid-column: span 2;
  }

  .hx-items__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
  }
}

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

  .hx-gauge__tip {
    max-height: none;
    opacity: 1;
  }
}

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