.page-products {
  --cat-purple: #6A4C93;
  --cat-blue: #1982C4;
  --cat-coral: #FF924C;
  --cat-pink: #FF006E;
  --line-soft: #E9E4D8;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

.page-products .breadcrumb {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  font-size: .85rem;
  font-family: var(--font-mono);
  color: #555;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.page-products .breadcrumb a {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 700;
}

.page-products .breadcrumb a:hover {
  text-decoration: underline;
}

/** 首屏头部 **/
.page-products .catalog-head {
  position: relative;
  background: var(--night);
  color: var(--paper);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 2rem 1.25rem 2.5rem;
  max-width: 1440px;
  margin: 0 auto 1rem;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--zone-orange);
}

.page-products .catalog-head__inner {
  max-width: 900px;
}

.page-products .catalog-head__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  background: var(--accent-neon);
  color: var(--ink);
  padding: .3rem .8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.page-products .catalog-head h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.5vw, 3rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.page-products .catalog-head__lead {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 760px;
  margin: 0;
}

.page-products .catalog-head__lead strong {
  color: var(--accent-neon);
  font-weight: 700;
}

/** 筛选器 **/
.page-products .filter-panel {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--accent-neon);
  padding: 1.25rem;
  margin-top: 2rem;
  max-width: 920px;
}

.page-products .filter-panel__search {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--zone-yellow);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: .4rem 1rem;
  margin-bottom: 1rem;
}

.page-products .filter-panel__search-icon {
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 900;
  color: var(--ink);
}

.page-products .filter-panel__search input {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  font-size: .95rem;
  padding: .55rem 0;
  outline: none;
  color: var(--ink);
}

.page-products .filter-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.page-products .filter-chip {
  font: 700 .82rem/1 var(--font-heading);
  font-family: var(--font-body);
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: .55rem .9rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.page-products .filter-chip span {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: .75rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-pill);
  padding: .15rem .5rem;
  margin-left: .2rem;
}

.page-products .filter-chip--active {
  background: var(--accent-orange);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.page-products .filter-chip:hover {
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.page-products .filter-panel__note {
  margin: 1rem 0 0;
  font-size: .85rem;
  line-height: 1.7;
  color: #333;
  background: var(--zone-lake);
  border-radius: var(--radius-md);
  padding: .7rem 1rem;
}

/** 筛选信息图 **/
.page-products .filter-diagram {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 920px;
}

.page-products .filter-diagram img {
  max-width: 120px;
  width: 120px;
  height: auto;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent-neon);
}

.page-products .filter-diagram__caption {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent-neon);
  letter-spacing: .05em;
}

/** 快速索引条 **/
.page-products .quick-index {
  max-width: 1440px;
  margin: 1.5rem auto;
  padding: 0 1.25rem;
  display: grid;
  gap: .8rem;
}

.page-products .quick-index__letters,
.page-products .quick-index__years {
  display: flex;
  align-items: center;
  gap: .35rem;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: .65rem .9rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.page-products .quick-index__label {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent-neon);
  background: var(--night);
  border-radius: var(--radius-pill);
  padding: .35rem .7rem;
  flex: 0 0 auto;
  letter-spacing: .1em;
}

.page-products .quick-index .index-bar__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 .5rem;
  font: 700 .8rem/1 var(--font-mono);
  color: var(--paper);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  text-decoration: none;
  scroll-snap-align: center;
  transition: background .15s, color .15s;
}

.page-products .quick-index .index-bar__link:hover {
  background: var(--accent-neon);
  color: var(--ink);
}

.page-products .quick-index .index-bar__link--current {
  background: var(--accent-orange);
  color: var(--ink);
  border-color: var(--accent-orange);
}

.page-products .quick-index__deco {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: .4rem;
  flex: 0 0 auto;
  border: 2px solid var(--accent-neon);
}

/** 主体两栏 **/
.page-products .catalog-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 1.5rem;
}

/** 标签云侧栏 **/
.page-products .tag-pane {
  background: var(--zone-yellow);
  border-radius: var(--radius-lg);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.5rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.page-products .tag-pane .section-title {
  position: relative;
  z-index: 1;
}

.page-products .section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0 0 .75rem;
  padding-left: .8rem;
  border-left: 8px solid var(--accent-orange);
  line-height: 1.2;
}

.page-products .section-title--yellow {
  border-left-color: var(--status-feedback);
}

.page-products .section-title--neon {
  border-left-color: var(--accent-neon);
}

.page-products .section-title--green {
  border-left-color: var(--zone-green);
}

.page-products .tag-pane__desc {
  font-size: .85rem;
  line-height: 1.7;
  margin: 0 0 1.2rem;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: .75rem .9rem;
  border: 2px solid var(--ink);
}

.page-products .tag-cloud {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .7rem;
  align-items: center;
  margin-bottom: 1rem;
}

.page-products .tag-item {
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: .35rem .8rem;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--paper);
  transition: transform .12s ease, box-shadow .12s ease;
}

.page-products .tag-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.page-products .tag-item--1 { background: var(--tag-red); }
.page-products .tag-item--2 { background: var(--tag-yellow); }
.page-products .tag-item--3 { background: var(--tag-green); }
.page-products .tag-item--4 { background: var(--tag-blue); }
.page-products .tag-item--5 { background: var(--tag-purple); color: var(--paper); }
.page-products .tag-item--6 { background: var(--tag-coral); }

.page-products .tag-size--xl { font-size: 1.05rem; }
.page-products .tag-size--lg { font-size: .93rem; }
.page-products .tag-size--md { font-size: .82rem; }
.page-products .tag-size--sm { font-size: .73rem; }

.page-products .tag-item__count {
  font-family: var(--font-mono);
  font-size: .7em;
  font-weight: 400;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-pill);
  padding: .15rem .45rem;
  line-height: 1.2;
}

.page-products .tag-item--5 .tag-item__count {
  background: var(--paper);
  color: var(--ink);
}

.page-products .tag-pane__texture {
  position: relative;
  z-index: 0;
  margin-top: .5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--ink);
}

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

/** 索引总表侧 **/
.page-products .table-pane {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 2px solid var(--ink);
  padding: 1.25rem;
  box-shadow: 6px 6px 0 var(--zone-lake);
  min-width: 0;
}

.page-products .table-pane__desc {
  font-size: .88rem;
  line-height: 1.7;
  margin: 0 0 1rem;
  background: var(--zone-lake);
  border-radius: var(--radius-md);
  padding: .7rem .9rem;
}

.page-products .table-pane__diagram {
  margin-bottom: 1.2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--ink);
}

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

.page-products .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 2px solid var(--ink);
  max-width: 100%;
}

.page-products .catalog-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: .85rem;
}

.page-products .catalog-table thead th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .83rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .8rem .7rem;
  border-bottom: 3px solid var(--accent-neon);
  position: sticky;
  top: 0;
  white-space: nowrap;
}

.page-products .catalog-table tbody td {
  padding: .65rem .7rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.page-products .catalog-table tbody tr:nth-child(even) {
  background: #F4F1EA;
}

.page-products .catalog-table tbody tr:hover {
  background: #E2F7EE;
}

.page-products .catalog-table tbody td:first-child {
  font-weight: 500;
  color: var(--ink);
  min-width: 220px;
}

.page-products .zone-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink);
  white-space: nowrap;
}

.page-products .zone-tag--reason { background: var(--zone-yellow); }
.page-products .zone-tag--treat { background: var(--zone-orange); }
.page-products .zone-tag--daily { background: var(--zone-lake); }
.page-products .zone-tag--qa { background: var(--zone-green); }
.page-products .zone-tag--case { background: var(--cat-purple); color: var(--paper); }
.page-products .zone-tag--myth { background: var(--tag-blue); color: var(--paper); }

.page-products .batch-code {
  font-family: var(--font-mono);
  font-size: .78rem;
  white-space: nowrap;
  color: #333;
}

.page-products .badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .55rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink);
  white-space: nowrap;
}

.page-products .badge--stable { background: var(--status-stable); color: var(--paper); }
.page-products .badge--new { background: var(--status-new); color: var(--paper); }
.page-products .badge--feedback { background: var(--status-feedback); color: var(--paper); }

.page-products .table-pane__footer {
  margin: 1rem 0 0;
  font-size: .82rem;
  font-family: var(--font-mono);
  background: var(--zone-yellow);
  border-radius: var(--radius-md);
  padding: .6rem .9rem;
  border: 1.5px solid var(--ink);
}

/** 最新更新 **/
.page-products .latest-pane {
  max-width: 1440px;
  margin: 2rem auto 0;
  padding: 1.75rem 1.25rem 2.5rem;
  background: var(--zone-green);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 3px solid var(--ink);
  border-bottom: none;
  box-shadow: 6px 6px 0 var(--ink);
}

.page-products .latest-pane__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.page-products .latest-pane__head .section-title {
  flex: 1 1 auto;
}

.page-products .latest-pane__desc {
  flex: 1 1 100%;
  font-size: .88rem;
  line-height: 1.7;
  margin: 0;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: .75rem .95rem;
  border: 2px solid var(--ink);
}

.page-products .latest-pane .btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 .88rem/1 var(--font-body);
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: .7rem 1.2rem;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}

.page-products .latest-pane .btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.page-products .latest-pane .btn--ghost {
  background: var(--paper);
  color: var(--ink);
}

.page-products .latest-pane .btn--secondary {
  background: var(--accent-neon);
  color: var(--ink);
}

.page-products .latest-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.page-products .mini-card {
  flex: 0 0 260px;
  max-width: 280px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform .15s ease;
}

.page-products .mini-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--ink);
}

.page-products .mini-card__media {
  position: relative;
  border-bottom: 2px solid var(--ink);
}

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

.page-products .mini-card__media .badge {
  position: absolute;
  top: .6rem;
  right: .6rem;
  background: var(--status-new);
  color: var(--paper);
  border: 2px solid var(--ink);
}

.page-products .mini-card__body {
  padding: .9rem 1rem 1rem;
}

.page-products .mini-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.35;
  margin: 0 0 .45rem;
}

.page-products .mini-card__meta {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: #333;
  background: var(--zone-yellow);
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: .2rem .6rem;
  border: 1.5px solid var(--ink);
}

.page-products .latest-pane__foot {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.2rem;
}

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

/** 桌面端适配 **/
@media (min-width: 1024px) {
  .page-products .catalog-head {
    padding: 3rem 2.5rem 3.5rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }

  .page-products .catalog-head__inner {
    max-width: none;
  }

  .page-products .filter-panel {
    margin-top: 0;
    max-width: none;
  }

  .page-products .filter-diagram {
    grid-column: 1 / -1;
    max-width: 920px;
  }

  .page-products .catalog-layout {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }

  .page-products .tag-pane {
    position: sticky;
    top: 1.5rem;
  }

  .page-products .table-pane {
    padding: 1.5rem;
  }

  .page-products .tag-cloud {
    gap: .65rem .8rem;
  }

  .page-products .latest-pane {
    padding: 2.25rem 2.5rem 3rem;
  }

  .page-products .latest-pane__head {
    flex-wrap: nowrap;
  }

  .page-products .latest-pane__desc {
    flex: 1 1 auto;
    max-width: 520px;
  }

  .page-products .mini-card {
    flex-basis: 280px;
  }
}

@media (min-width: 1440px) {
  .page-products .catalog-layout {
    grid-template-columns: 360px 1fr;
  }

  .page-products .table-pane__desc {
    font-size: 1rem;
  }
}
