.page-products {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-products__crumb {
  padding: 1rem 1.25rem 0;
  font-size: 0.78rem;
}

.page-products__hero {
  padding: 1.5rem 1.25rem 1.1rem;
  position: relative;
  border-bottom: 2px solid var(--neon);
}

.page-products__hero::after {
  content: "INDEX";
  position: absolute;
  right: -0.35rem;
  top: -0.65rem;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 5.4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
  letter-spacing: -0.05em;
}

.page-products__kicker {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  color: var(--neon);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
}

.page-products__hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.55rem;
  line-height: 1.18;
  margin: 0 0 0.6rem;
}

.page-products__hero-stats {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.page-products__hero-stats strong {
  color: var(--bright-yellow);
  font-family: var(--font-mono);
  font-weight: 700;
}

.page-products .section-heading {
  margin-bottom: 0.8rem;
}

.page-products__tile-section,
.page-products__subcat-section,
.page-products__table-section,
.page-products__tagcloud-section,
.page-products__batch-section {
  padding: 1.25rem;
}

.page-products__tile-section {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}

.page-products__tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.page-products__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 7.5rem;
  padding: 0.75rem;
  clip-path: polygon(0 0, calc(100% - 0.8rem) 0, 100% 0.8rem, 100% 100%, 0.8rem 100%, 0 calc(100% - 0.8rem));
  background: var(--tile-bg, var(--bg-panel));
  color: var(--tile-fg, var(--text-main));
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.page-products__tile:hover,
.page-products__tile:focus {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.page-products__tile:hover .page-products__tile-hint,
.page-products__tile:focus .page-products__tile-hint {
  opacity: 1;
  transform: translateY(0);
}

.page-products__tile--purple {
  --tile-bg: var(--bg-purple);
  --tile-fg: var(--yellow);
}

.page-products__tile--orange {
  --tile-bg: var(--bg-orange);
  --tile-fg: var(--coral);
}

.page-products__tile--yellow {
  --tile-bg: var(--yellow);
  --tile-fg: var(--bg-deep);
}

.page-products__tile--blue {
  --tile-bg: var(--blue);
  --tile-fg: #fff;
}

.page-products__tile--green {
  --tile-bg: var(--bg-green);
  --tile-fg: var(--neon);
}

.page-products__tile--brick {
  --tile-bg: var(--bg-orange);
  --tile-fg: var(--bright-yellow);
}

.page-products__tile--violet {
  --tile-bg: var(--bg-purple);
  --tile-fg: var(--blue);
}

.page-products__tile--coral {
  --tile-bg: var(--coral);
  --tile-fg: var(--bg-deep);
}

.page-products__tile-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-products__tile-batch {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid currentColor;
  opacity: 0.85;
}

.page-products__tile-hint {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 0.18rem 0.4rem;
  background: rgba(20, 22, 26, 0.75);
  color: var(--bright-yellow);
  border: 1px solid var(--bright-yellow);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-products__tile-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}

.page-products__tile-label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
}

.page-products__tile-count {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
}

.page-products__tile-count::after {
  content: "条";
  font-size: 0.6rem;
  margin-left: 0.15rem;
  opacity: 0.6;
}

.page-products__tile-footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.page-products__batch-mark {
  background: var(--neon);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
}

.page-products__batch-note {
  color: var(--text-secondary);
  font-size: 0.72rem;
}

.page-products__subcat-section {
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-products__subcat-deco {
  display: none;
}

.page-products__subcat-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

.page-products__subcat-group {
  border: 1px solid var(--line);
  padding: 0.7rem;
  background: rgba(30, 35, 43, 0.45);
}

.page-products__subcat-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  margin: 0 0 0.55rem;
}

.page-products__subcat-title span {
  font-family: var(--font-mono);
  color: var(--neon);
  font-size: 0.68rem;
}

.page-products__subcat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.page-products__subcat-tag {
  --chip-bg: var(--bg-panel);
  --chip-fg: var(--text-main);
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  background: var(--chip-bg);
  color: var(--chip-fg);
  border: 0;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  transition: outline 0.15s ease, filter 0.15s ease;
}

.page-products__subcat-tag:hover,
.page-products__subcat-tag:focus {
  outline: 2px solid var(--bright-yellow);
  outline-offset: 1px;
  filter: brightness(1.08);
}

.page-products__subcat-tag:nth-child(3n + 1) {
  --chip-bg: var(--yellow);
  --chip-fg: var(--bg-deep);
}

.page-products__subcat-tag:nth-child(3n + 2) {
  --chip-bg: var(--blue);
  --chip-fg: #fff;
}

.page-products__subcat-tag:nth-child(3n + 3) {
  --chip-bg: var(--coral);
  --chip-fg: var(--bg-deep);
}

.page-products__subcat-tag em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.62rem;
  opacity: 0.75;
}

.page-products__table-section {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
}

.page-products__table-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 0.6rem;
}

.page-products__sortbar,
.page-products__viewbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.page-products__sort-btn,
.page-products__view-btn {
  background: var(--bg-deep);
  color: var(--text-main);
  border: 1px solid var(--line);
  padding: 0.28rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  cursor: pointer;
}

.page-products__sort-btn:hover,
.page-products__sort-btn:focus,
.page-products__view-btn:hover,
.page-products__view-btn:focus {
  border-color: var(--bright-yellow);
  color: var(--bright-yellow);
}

.page-products__sort-btn.is-current,
.page-products__view-btn.is-current {
  background: var(--bright-yellow);
  border-color: var(--bright-yellow);
  color: var(--bg-deep);
  font-weight: 700;
}

.page-products__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.page-products__matrix-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.page-products__matrix-table th {
  position: sticky;
  top: 0;
  background: var(--bg-deep);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 2px solid var(--neon);
  white-space: nowrap;
}

.page-products__matrix-table td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.page-products__matrix-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

.page-products__matrix-table tbody tr:hover {
  background: var(--row-zone, var(--bg-panel));
}

.page-products__matrix-table tbody tr:hover td {
  color: var(--text-main);
}

.page-products__batch-chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--neon);
  color: var(--neon);
  white-space: nowrap;
}

.page-products__tagcloud-section {
  background: var(--bg-purple);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-products__tagcloud-deco {
  width: 300px;
  max-width: 100%;
  margin-bottom: 0.5rem;
}

.page-products__tagcloud-deco img {
  display: block;
  width: 100%;
  height: auto;
}

.page-products__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 1rem 0 1.2rem;
}

.page-products__cloud-tag {
  --tag-scale: 1;
  background: rgba(30, 35, 43, 0.85);
  color: var(--text-main);
  border: 1px solid var(--line);
  font-size: calc(0.72rem * var(--tag-scale));
  padding: calc(0.28rem * var(--tag-scale)) calc(0.6rem * var(--tag-scale));
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.page-products__cloud-tag:hover,
.page-products__cloud-tag:focus,
.page-products__cloud-tag:active {
  background: var(--bright-yellow);
  border-color: var(--bright-yellow);
  color: var(--bg-deep);
}

.page-products__cloud-tag em {
  font-family: var(--font-mono);
  font-style: normal;
  opacity: 0.75;
  margin-left: 0.12rem;
}

.page-products__speed-index {
  display: grid;
  gap: 0.85rem;
}

.page-products__index-block {
  background: rgba(20, 22, 26, 0.6);
  padding: 0.65rem;
  border: 1px solid var(--line);
}

.page-products__index-block-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.page-products__letter-strip,
.page-products__year-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.page-products__letter-btn,
.page-products__year-btn {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-deep);
  color: var(--text-main);
  border: 1px solid var(--line);
  cursor: pointer;
}

.page-products__letter-btn:hover,
.page-products__letter-btn:focus,
.page-products__year-btn:hover,
.page-products__year-btn:focus {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--bg-deep);
}

.page-products__year-btn {
  width: auto;
  padding: 0 0.65rem;
}

.page-products__year-btn--current {
  background: var(--bright-yellow);
  border-color: var(--bright-yellow);
  color: var(--bg-deep);
  font-weight: 700;
}

.page-products__batch-section {
  background: var(--bg-deep);
  padding-bottom: 2rem;
}

.page-products__batch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.page-products__batch-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-products__batch-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--neon);
  z-index: 2;
}

.page-products__batch-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.page-products__batch-card-body {
  padding: 1rem;
}

.page-products__batch-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.page-products__batch-badge {
  background: var(--neon);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
}

.page-products__batch-ver {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--bright-yellow);
}

.page-products__batch-card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.08rem;
  margin: 0.55rem 0 0.2rem;
}

.page-products__batch-card-desc {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin: 0 0 0.6rem;
}

.page-products__batch-card-desc strong {
  color: var(--neon);
  font-family: var(--font-mono);
}

.page-products__batch-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.85rem;
}

.page-products__batch-card-list li {
  padding: 0.25rem 0 0.25rem 0.9rem;
  border-left: 2px solid var(--neon);
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
}

.page-products__batch-link {
  font-family: var(--font-mono);
}

.page-products__batch-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

@media (prefers-reduced-motion: reduce) {
  .page-products__tile,
  .page-products__tile-hint,
  .page-products__subcat-tag,
  .page-products__cloud-tag,
  .page-products__letter-btn,
  .page-products__year-btn {
    transition: none;
    transform: none;
  }
}

@media (min-width: 768px) {
  .page-products__crumb {
    padding: 1.25rem 2rem 0;
  }

  .page-products__hero {
    padding: 2.5rem 2rem 1.5rem;
  }

  .page-products__hero h1 {
    font-size: 2.4rem;
  }

  .page-products__tile-section,
  .page-products__subcat-section,
  .page-products__table-section,
  .page-products__tagcloud-section,
  .page-products__batch-section {
    padding: 2rem;
  }

  .page-products__tile-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 0.8rem;
  }

  .page-products__tile {
    grid-column: span 3;
    min-height: 8.5rem;
    padding: 1rem;
  }

  .page-products__tile--wide {
    grid-column: span 4;
  }

  .page-products__subcat-groups {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .page-products__subcat-group:first-child {
    grid-column: span 2;
  }

  .page-products__batch-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-products__speed-index {
    grid-template-columns: 1fr 1fr;
  }

  .page-products__batch-more {
    margin-top: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .page-products__subcat-deco {
    display: block;
    position: absolute;
    right: 0;
    top: 4.5rem;
    width: 180px;
    height: 420px;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
  }

  .page-products__subcat-deco img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-products__subcat-groups {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-products__subcat-group:first-child {
    grid-column: span 2;
  }
}

.page-products {
  --row-zone: transparent;
}
