.page-products {
  --pp-gap: clamp(18px, 2.6vw, 32px);
  --pp-line: rgba(61, 245, 208, 0.2);
  --pp-line-soft: rgba(61, 245, 208, 0.12);
  display: block;
  overflow-x: hidden;
}

.page-products > .breadcrumb,
.page-products > .dl-section,
.page-products > .dl-hero,
.page-products > .closing-band {
  width: min(100%, var(--measure));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.page-products .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: clamp(18px, 3vw, 30px);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-products .breadcrumb a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) linear;
}

.page-products .breadcrumb a:hover,
.page-products .breadcrumb a:focus-visible {
  border-bottom-color: var(--cyan);
}

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

.page-products .dl-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
  padding-block: clamp(30px, 5vw, 66px) clamp(34px, 6vw, 74px);
  align-items: center;
}

.page-products .hero-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 20px);
}

.page-products .dl-hero h1 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.1rem, 6.4vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--white);
  text-wrap: balance;
}

.page-products .hero-lead {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.78;
  color: var(--mist);
}

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

.page-products .hero-visual {
  position: relative;
  border: 2px solid var(--pp-line);
  background:
    linear-gradient(155deg, var(--grass) 0%, var(--ink-deep) 72%);
  box-shadow: var(--shadow-hard);
  padding: clamp(16px, 3vw, 24px);
  min-height: 250px;
  overflow: hidden;
}

.page-products .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(61, 245, 208, 0.055) 0px,
    rgba(61, 245, 208, 0.055) 1px,
    transparent 1px,
    transparent 8px
  );
  pointer-events: none;
}

.page-products .board-frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  border: 1px solid var(--pp-line-soft);
  background: rgba(5, 20, 15, 0.62);
  padding: clamp(14px, 2vw, 20px);
}

.page-products .frame-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.page-products .frame-dot {
  width: 9px;
  height: 9px;
  border: 1px solid var(--pp-line);
  border-radius: 50%;
}

.page-products .frame-label {
  margin-left: auto;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--mist);
}

.page-products .frame-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  justify-content: center;
}

.page-products .frame-time {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.02em;
}

.page-products .frame-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-products .bar {
  display: block;
  height: 10px;
  background: var(--pp-line);
}

.page-products .bar--a { width: 88%; }
.page-products .bar--b { width: 64%; background: var(--pp-line-soft); }
.page-products .bar--c { width: 42%; background: var(--pp-line-soft); }

.page-products .frame-add {
  margin: 0;
  align-self: flex-start;
  display: inline-block;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  padding: 5px 12px;
}

.page-products .frame-foot {
  display: flex;
  gap: 6px;
}

.page-products .frame-tick {
  flex: 1;
  height: 4px;
  background: var(--pp-line-soft);
}

.page-products .frame-tick--on {
  background: var(--cyan);
}

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

.page-products .dl-section {
  padding-block: clamp(38px, 6vw, 78px);
  border-top: 1px solid var(--pp-line-soft);
}

.page-products .dl-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(24px, 4vw, 44px);
  max-width: 74ch;
}

.page-products .dl-head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-products .dl-sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--mist);
}

.page-products .figure {
  margin: 0;
  border: 2px solid var(--pp-line);
  background: var(--grass);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

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

.page-products .figure-caption {
  border-top: 1px solid var(--pp-line-soft);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--mist);
}

/* ---------- 三端对照 ---------- */

.page-products .endpoints {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
}

.page-products .endpoint {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid var(--pp-line);
  background: var(--grass);
  box-shadow: var(--shadow-hard);
  padding: clamp(18px, 2.6vw, 28px);
  transition: transform var(--t-mid) ease, box-shadow var(--t-mid) ease, border-color var(--t-mid) ease;
}

.page-products .endpoint:hover,
.page-products .endpoint:focus-within {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.55);
  border-color: var(--cyan);
}

.page-products .endpoint-tag {
  margin: 0;
  align-self: flex-start;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  padding: 4px 10px;
}

.page-products .endpoint-tag--amber {
  border-color: var(--amber);
  color: var(--amber);
}

.page-products .endpoint-tag--violet {
  border-color: var(--violet);
  color: var(--violet);
}

.page-products .endpoint-name {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--white);
}

.page-products .endpoint-line {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.76;
  color: var(--mist);
}

.page-products .endpoint-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid var(--pp-line-soft);
  padding-top: 14px;
}

.page-products .endpoint-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--white);
}

.page-products .endpoint-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--cyan);
}

.page-products .endpoint-figure {
  margin-top: clamp(24px, 4vw, 44px);
}

/* ---------- 步骤轨 ---------- */

.page-products .steps-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
}

.page-products .steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .steps::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, var(--amber), rgba(245, 179, 60, 0.15));
}

.page-products .step {
  position: relative;
  padding-left: 60px;
  padding-bottom: clamp(24px, 3.4vw, 38px);
}

.page-products .step:last-child {
  padding-bottom: 0;
}

.page-products .step-node {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 2px solid var(--amber);
  background: var(--ink-deep);
  color: var(--amber);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.page-products .step-body h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: var(--white);
  line-height: 1.35;
}

.page-products .step-body p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--mist);
  max-width: 58ch;
}

/* ---------- 补时与裁判模块 ---------- */

.page-products .module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
}

.page-products .module-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-products .module-name {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--white);
}

.page-products .module-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--mist);
}

.page-products .field-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--pp-line-soft);
}

.page-products .field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pp-line-soft);
}

.page-products .field dt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-products .field dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--white);
}

.page-products .module-note {
  margin: 0;
  border-left: 3px solid var(--amber);
  padding-left: 12px;
  font-size: 0.88rem;
  line-height: 1.74;
  color: var(--mist);
}

.page-products .referee-figure {
  margin-top: clamp(24px, 4vw, 44px);
}

/* ---------- 三块看板 ---------- */

.page-products .boards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pp-gap);
}

.page-products .board {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid var(--pp-line);
  background: var(--grass);
  box-shadow: var(--shadow-hard);
  padding: clamp(20px, 2.8vw, 30px);
}

.page-products .board--right {
  border-color: rgba(245, 179, 60, 0.34);
}

.page-products .board--mid {
  border-color: rgba(139, 92, 246, 0.38);
}

.page-products .board-tag {
  margin: 0;
  align-self: flex-start;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  padding: 4px 10px;
}

.page-products .board-tag--amber {
  border-color: var(--amber);
  color: var(--amber);
}

.page-products .board-tag--violet {
  border-color: var(--violet);
  color: var(--violet);
}

.page-products .board-name {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--white);
}

.page-products .board-q {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--amber);
  font-weight: 700;
}

.page-products .board--mid .board-q {
  color: var(--violet);
}

.page-products .board-text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--mist);
}

.page-products .board-list {
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--pp-line-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-products .board-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  line-height: 1.68;
  color: var(--white);
}

.page-products .board-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 1px;
  background: var(--mist);
}

.page-products .boards-figure {
  margin-top: clamp(24px, 4vw, 44px);
}

.page-products .boards-link {
  margin: clamp(20px, 3vw, 30px) 0 0;
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--mist);
}

.page-products .boards-link a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan);
}

.page-products .boards-link a:hover,
.page-products .boards-link a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--white);
}

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

.page-products .dl-section--version {
  background: linear-gradient(120deg, rgba(11, 36, 27, 0.9), rgba(5, 20, 15, 0.4));
}

.page-products .version-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-products .version-num {
  margin: 0;
  font-size: clamp(4rem, 17vw, 11rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--cyan);
  text-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}

.page-products .version-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-products .version-copy h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.2;
  color: var(--white);
}

.page-products .version-copy p {
  margin: 0;
  max-width: 62ch;
  font-size: 0.96rem;
  line-height: 1.78;
  color: var(--mist);
}

.page-products .version-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-products .version-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--white);
}

.page-products .version-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 2px;
  background: var(--amber);
}

/* ---------- 设备要求 ---------- */

.page-products .specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-products .specs .expand {
  border: 1px solid var(--pp-line);
  background: var(--grass);
}

.page-products .specs .expand-panel p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.78;
  color: var(--mist);
}

.page-products .specs .expand-panel a {
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan);
  text-decoration: none;
}

/* ---------- 关注与提醒 ---------- */

.page-products .follow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.page-products .follow-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-products .follow-copy h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.16;
  color: var(--white);
}

.page-products .follow-copy p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-products .follow-list {
  margin: 6px 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--pp-line-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-products .follow-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--white);
}

.page-products .follow-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0;
  height: 0;
  border-left: 7px solid var(--cyan);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.page-products .follow-figure {
  align-self: stretch;
}

/* ---------- 收束色带 ---------- */

.page-products .closing-band {
  margin-top: clamp(30px, 5vw, 56px);
  padding-top: clamp(26px, 4vw, 42px);
  padding-bottom: clamp(34px, 5vw, 60px);
  border-top: 2px solid var(--amber);
}

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

.page-products .closing-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--pp-line);
  background: rgba(11, 36, 27, 0.7);
  padding: clamp(16px, 2.4vw, 22px);
  text-decoration: none;
  transition: border-color var(--t-mid) ease, transform var(--t-mid) ease;
}

.page-products .closing-item:hover,
.page-products .closing-item:focus-visible {
  border-color: var(--cyan);
  transform: translateX(4px);
}

.page-products .closing-index {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--amber);
  letter-spacing: 0.02em;
}

.page-products .closing-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-products .closing-text strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--white);
}

.page-products .closing-text span {
  font-size: 0.88rem;
  line-height: 1.68;
  color: var(--mist);
}

/* ---------- 断点 ---------- */

@media (min-width: 720px) {
  .page-products .field {
    grid-template-columns: 150px 1fr;
    gap: 14px;
    align-items: baseline;
  }

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

  .page-products .closing-item {
    flex-direction: column;
    gap: 12px;
  }
}

@media (min-width: 880px) {
  .page-products .endpoints {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .page-products .steps-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  }
}

@media (min-width: 980px) {
  .page-products .dl-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(32px, 4vw, 64px);
  }

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

  .page-products .board--left {
    grid-column: 1 / span 7;
  }

  .page-products .board--right {
    grid-column: 6 / span 7;
  }

  .page-products .board--mid {
    grid-column: 2 / span 8;
  }

  .page-products .follow-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  }

  .page-products .version-block {
    flex-direction: row;
    align-items: flex-end;
    gap: clamp(28px, 4vw, 56px);
  }

  .page-products .version-num {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .endpoint,
  .page-products .closing-item {
    transition: none;
  }

  .page-products .endpoint:hover,
  .page-products .endpoint:focus-within,
  .page-products .closing-item:hover,
  .page-products .closing-item:focus-visible {
    transform: none;
  }
}
