.page-products {
  --p-pad: clamp(18px, 4vw, 36px);
  --p-gap: clamp(16px, 3vw, 28px);
}

.page-products a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-products .product-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(26px, 5vw, 64px) 0 clamp(22px, 4vw, 36px);
}

.page-products .product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 104px 104px;
  opacity: 0.16;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

.page-products .hero-ghost {
  position: absolute;
  right: -0.06em;
  bottom: -0.18em;
  z-index: -1;
  font-family: var(--font-mono);
  font-size: clamp(130px, 24vw, 330px);
  line-height: 0.7;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.page-products .hero-grid {
  display: grid;
  gap: var(--p-gap);
  align-items: end;
}

.page-products .hero-copy {
  min-width: 0;
}

.page-products .hero-copy .crumbs {
  margin-bottom: 20px;
}

.page-products .product-title {
  max-width: 12ch;
  margin: 8px 0 20px;
  font-size: clamp(38px, 8.2vw, 92px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.page-products .hero-lead {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.85;
}

.page-products .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.page-products .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 440px;
  margin: 32px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.page-products .hero-stats div {
  min-width: 0;
}

.page-products .hero-stats dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.page-products .hero-stats dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(20px, 3vw, 28px);
  color: var(--text);
}

.page-products .hero-visual {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.page-products .hero-code {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.page-products .hero-media {
  border: 1px solid var(--line);
  background: var(--ink-deep);
}

.page-products .hero-media img,
.page-products .adapt-media img,
.page-products .search-media img,
.page-products .version-media img,
.page-products .scene-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .hero-note {
  margin: 0;
  padding-left: 10px;
  border-left: 2px solid var(--orange);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.page-products .workspace {
  display: grid;
  gap: var(--p-gap);
  padding-top: 10px;
  padding-bottom: clamp(40px, 7vw, 88px);
}

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

.page-products .tool-list {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.page-products .tool-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0 9px 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
  border-left: 2px solid transparent;
  margin-left: -1px;
}

.page-products .tool-list a:hover {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

.page-products .tool-list span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
}

.page-products .rail-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

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

.page-products .tool-section {
  padding: clamp(30px, 5vw, 62px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.page-products .tool-content > .tool-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.page-products .section-head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.page-products .tool-title {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(27px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.page-products .tool-intro {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.page-products .tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-products .tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 196px;
  padding: 20px;
  border-top: 2px solid var(--line);
  background: linear-gradient(150deg, var(--ink-deep), var(--ink));
}

.page-products .tool-card:nth-child(1) {
  border-top-color: var(--cyan);
}

.page-products .tool-card:nth-child(2) {
  border-top-color: var(--orange);
}

.page-products .tool-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.page-products .tool-card__code {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.page-products .tool-card__arrow {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 15px;
}

.page-products .tool-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.page-products .tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.page-products .tool-card__link {
  margin-top: auto;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  text-decoration: none;
}

.page-products .tool-card__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-products .adapt-layout {
  display: grid;
  gap: var(--p-gap);
}

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

.page-products .adapt-list {
  counter-reset: adapt;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-products .adapt-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "no copy"
    "state state";
  gap: 6px 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.page-products .adapt-item:hover {
  border-bottom-color: var(--cyan);
}

.page-products .adapt-item:has(.adapt-check:focus-visible) {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.page-products .adapt-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.page-products .adapt-no {
  grid-area: no;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.page-products .adapt-no::before {
  counter-increment: adapt;
  content: counter(adapt, decimal-leading-zero);
}

.page-products .adapt-copy {
  grid-area: copy;
  min-width: 0;
}

.page-products .adapt-copy strong {
  display: block;
  font-size: 16px;
  line-height: 1.45;
}

.page-products .adapt-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.page-products .adapt-state {
  grid-area: state;
  justify-self: start;
  margin-left: 46px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
  white-space: nowrap;
}

.page-products .adapt-state::before {
  content: "未勾选";
}

.page-products .adapt-check:checked ~ .adapt-no {
  color: var(--sage);
}

.page-products .adapt-check:checked ~ .adapt-state {
  color: var(--sage);
  border-color: var(--sage);
}

.page-products .adapt-check:checked ~ .adapt-state::before {
  content: "已勾选";
}

.page-products .adapt-guide {
  margin-top: 18px;
}

.page-products .adapt-guide .expand__panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.page-products .adapt-aside {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.page-products .progress-ring {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 4px auto;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.page-products .progress-ring::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px dashed var(--line);
  border-radius: 50%;
}

.page-products .ring-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink-deep);
  transform: rotate(var(--a)) translateY(-68px) rotate(calc(-1 * var(--a)));
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease);
}

.page-products .ring-dot:nth-child(1) { --a: 0deg; }
.page-products .ring-dot:nth-child(2) { --a: 60deg; }
.page-products .ring-dot:nth-child(3) { --a: 120deg; }
.page-products .ring-dot:nth-child(4) { --a: 180deg; }
.page-products .ring-dot:nth-child(5) { --a: 240deg; }
.page-products .ring-dot:nth-child(6) { --a: 300deg; }

.page-products .adapt-layout:has(#chk-1:checked) .ring-dot:nth-child(1),
.page-products .adapt-layout:has(#chk-2:checked) .ring-dot:nth-child(2),
.page-products .adapt-layout:has(#chk-3:checked) .ring-dot:nth-child(3),
.page-products .adapt-layout:has(#chk-4:checked) .ring-dot:nth-child(4),
.page-products .adapt-layout:has(#chk-5:checked) .ring-dot:nth-child(5),
.page-products .adapt-layout:has(#chk-6:checked) .ring-dot:nth-child(6) {
  background: var(--sage);
  border-color: var(--sage);
}

.page-products .ring-core {
  position: absolute;
  inset: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-align: center;
}

.page-products .ring-core strong {
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1;
}

.page-products .ring-core small {
  color: var(--muted);
  font-size: 9px;
}

.page-products .progress-caption {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
  text-align: center;
}

.page-products .adapt-media {
  border: 1px solid var(--line);
}

.page-products .search-board {
  padding: var(--p-pad);
  border: 1px solid var(--line);
  background: var(--ink-deep);
}

.page-products .filter-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

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

.page-products .filter-label {
  margin-right: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.page-products .filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.page-products .filter-pill:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.page-products #filter-all:checked ~ .filter-row label[for="filter-all"],
.page-products #filter-index:checked ~ .filter-row label[for="filter-index"],
.page-products #filter-version:checked ~ .filter-row label[for="filter-version"],
.page-products #filter-adapt:checked ~ .filter-row label[for="filter-adapt"] {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--ink);
}

.page-products #filter-all:focus-visible ~ .filter-row label[for="filter-all"],
.page-products #filter-index:focus-visible ~ .filter-row label[for="filter-index"],
.page-products #filter-version:focus-visible ~ .filter-row label[for="filter-version"],
.page-products #filter-adapt:focus-visible ~ .filter-row label[for="filter-adapt"] {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

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

.page-products .result-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.page-products .result-code {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.page-products .result-name {
  flex: 1 1 180px;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.page-products .result-name:hover {
  color: var(--cyan);
}

.page-products .search-board:has(#filter-index:checked) .result-item:not(.is-index),
.page-products .search-board:has(#filter-version:checked) .result-item:not(.is-version),
.page-products .search-board:has(#filter-adapt:checked) .result-item:not(.is-adapt) {
  display: none;
}

.page-products .search-media {
  margin-top: 20px;
  border: 1px solid var(--line);
}

.page-products .version-current {
  display: grid;
  gap: 20px;
  padding: var(--p-pad);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--ink-deep), var(--ink));
}

.page-products .version-code {
  display: inline-block;
  max-width: 100%;
  margin: 8px 0 10px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: clamp(42px, 9vw, 84px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
  user-select: all;
}

.page-products .version-copy {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.page-products .version-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  justify-content: end;
}

.page-products .version-label {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.page-products .version-total {
  font-family: var(--font-mono);
  font-size: 58px;
  line-height: 0.9;
  color: var(--text);
}

.page-products .version-side .btn {
  margin-top: 8px;
}

.page-products .version-archive {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  border: 1px solid var(--line);
  background: var(--line);
}

.page-products .version-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px 12px;
  background: var(--ink-deep);
  color: var(--text);
  text-decoration: none;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}

.page-products .version-card:hover {
  background: var(--ink);
  color: var(--cyan);
}

.page-products .version-card code {
  font-family: var(--font-mono);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.page-products .version-card span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.page-products .version-media {
  margin-top: 20px;
  border: 1px solid var(--line);
}

.page-products .scene-layout {
  display: grid;
  gap: var(--p-gap);
}

.page-products .scene-grid {
  display: grid;
  gap: 10px;
}

.page-products .scene-card {
  min-width: 0;
  padding: 18px;
  border-left: 2px solid var(--line);
  background: var(--ink-deep);
}

.page-products .scene-card:hover {
  border-left-color: var(--cyan);
}

.page-products .scene-no {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.page-products .scene-card h3 {
  margin: 7px 0 7px;
  font-size: 20px;
  line-height: 1.3;
}

.page-products .scene-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.page-products .scene-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  text-decoration: none;
}

.page-products .scene-card a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-products .scene-media {
  border: 1px solid var(--line);
}

.page-products .next-section {
  padding-bottom: clamp(44px, 8vw, 92px);
}

.page-products .next-grid {
  display: grid;
  gap: 10px;
}

.page-products .next-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 176px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--ink-deep);
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.page-products .next-card:hover {
  border-color: var(--cyan);
  background: var(--ink);
}

.page-products .next-card--primary {
  border-color: var(--orange);
}

.page-products .next-card h3 {
  margin: 6px 0 0;
  font-size: 22px;
  line-height: 1.25;
}

.page-products .next-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.page-products .next-card__arrow {
  margin-top: auto;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 17px;
}

.page-products .next-note {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

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

  .page-products .adapt-item {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-areas: "no copy state";
    gap: 12px;
  }

  .page-products .adapt-state {
    margin-left: 0;
    justify-self: end;
  }

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

@media (min-width: 760px) {
  .page-products .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    gap: 40px;
  }

  .page-products .version-current {
    grid-template-columns: minmax(0, 1.25fr) minmax(190px, 0.75fr);
    align-items: end;
  }

  .page-products .scene-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
    align-items: start;
  }

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

@media (min-width: 900px) {
  .page-products .adapt-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
    align-items: start;
  }

  .page-products .adapt-aside {
    position: sticky;
    top: 24px;
  }
}

@media (min-width: 1024px) {
  .page-products .workspace {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 46px;
    align-items: start;
  }

  .page-products .tool-rail {
    position: sticky;
    top: 28px;
  }
}
<<<END>>>
