.page-products {
  --pp-gap: clamp(1.15rem, 3vw, 2.25rem);
  --pp-pad: clamp(1.1rem, 3vw, 1.85rem);
  --pp-cut: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

/* ---------- 首屏 ---------- */
.page-products .tools-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(2rem, 6vw, 3.75rem);
}

.page-products .tools-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -14%;
  top: -34%;
  width: min(62vw, 620px);
  height: 168%;
  background:
    linear-gradient(158deg, rgba(46, 242, 208, 0.16), rgba(255, 106, 43, 0.09) 54%, transparent 78%);
  clip-path: polygon(40% 0, 100% 0, 64% 100%, 0 100%);
  pointer-events: none;
}

.page-products .tools-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-cyan) 45%, transparent);
}

.page-products .tools-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 60rem;
}

.page-products .tools-hero h1 {
  margin: 0.7rem 0 1.1rem;
  font-size: clamp(2rem, 5.4vw, 4rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-products .tools-hero .lede {
  max-width: 46rem;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--steel);
}

.page-products .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- 区块头 ---------- */
.page-products .tool-shell .section-head {
  max-width: 46rem;
}

.page-products .section-title {
  color: var(--paper);
  font-weight: 800;
}

.page-products .section-lede {
  color: var(--steel);
}

/* ---------- 频道切换 ---------- */
.page-products .tool-switch {
  margin-top: var(--pp-gap);
}

.page-products .tablist {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.2rem 0.2rem 0.85rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-products .tablist::-webkit-scrollbar {
  height: 4px;
}

.page-products .tablist::-webkit-scrollbar-thumb {
  background: rgba(46, 242, 208, 0.35);
  border-radius: 4px;
}

.page-products .tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num label"
    "num meta";
  align-items: center;
  gap: 0.1rem 0.7rem;
  min-width: 11.5rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--ink-800), rgba(15, 26, 46, 0.55));
  color: var(--steel);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              background var(--dur) var(--ease);
}

.page-products .tab-num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--silver);
  letter-spacing: 0.04em;
}

.page-products .tab-label {
  grid-area: label;
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
}

.page-products .tab-meta {
  grid-area: meta;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--steel);
}

.page-products .tab:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.page-products .tab[aria-selected="true"] {
  border-color: var(--line-cyan);
  background: linear-gradient(150deg, rgba(46, 242, 208, 0.15), rgba(15, 26, 46, 0.94) 64%);
}

.page-products .tab[aria-selected="true"] .tab-num {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(46, 242, 208, 0.6);
}

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

/* ---------- 面板 ---------- */
.page-products .tab-panel {
  margin-top: var(--pp-gap);
  padding: var(--pp-pad);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(22, 36, 61, 0.9), transparent 62%),
    var(--ink-800);
}

.page-products .tab-panel[hidden] {
  display: none;
}

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

.page-products .panel-title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.22rem, 2.3vw, 1.6rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--paper);
}

.page-products .panel-lede {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.78;
  color: var(--steel);
}

/* ---------- 图片容器 ---------- */
.page-products .shot-wrap {
  margin: 0;
}

.page-products .shot {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: var(--ink-700);
}

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

.page-products .media-caption {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--steel);
}

.page-products .shot-wrap--band {
  margin-top: 1.6rem;
}

/* ---------- 回看面板 ---------- */
.page-products .replay-grid {
  display: grid;
  gap: var(--pp-gap);
  grid-template-columns: 1fr;
}

.page-products .flow {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.page-products .flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(22, 36, 61, 0.8), rgba(15, 26, 46, 0.4));
  clip-path: var(--pp-cut);
}

.page-products .flow-index {
  grid-row: span 2;
  align-self: start;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--orange);
}

.page-products .flow-step h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
}

.page-products .flow-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--steel);
}

.page-products .metrics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2rem;
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(7, 13, 24, 0.5);
}

.page-products .metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.page-products .metric .data-num {
  font-size: 1.55rem;
  line-height: 1.1;
}

.page-products .metric-label {
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--steel);
}

/* ---------- 交锋面板 ---------- */
.page-products .filters {
  display: grid;
  gap: 0.75rem;
  margin: 1.6rem 0 1.5rem;
  padding: 1.05rem 1.15rem;
  border-left: 2px solid var(--line-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(7, 13, 24, 0.5);
}

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

.page-products .filter-label {
  min-width: 5.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--steel);
  text-transform: uppercase;
}

.page-products .filter-row .chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: default;
}

.page-products .coverage {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.page-products .coverage-row {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-left: 2px solid rgba(46, 242, 208, 0.3);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(7, 13, 24, 0.45);
}

.page-products .coverage-k {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.page-products .coverage-v {
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--steel);
}

/* ---------- 预约面板 ---------- */
.page-products .booking-grid {
  display: grid;
  gap: var(--pp-gap);
  grid-template-columns: 1fr;
}

.page-products .booking-flow {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.page-products .booking-step {
  position: relative;
  padding: 0 0 1.4rem 2.7rem;
}

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

.page-products .booking-step::before {
  content: "";
  position: absolute;
  left: 1.04rem;
  top: 2rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(46, 242, 208, 0.55), rgba(46, 242, 208, 0.04));
}

.page-products .booking-step:last-child::before {
  display: none;
}

.page-products .booking-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-cyan);
  border-radius: 50%;
  background: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
}

.page-products .booking-step h4 {
  margin: 0.32rem 0 0.3rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--paper);
}

.page-products .booking-step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--steel);
}

/* ---------- 版本对照面板 ---------- */
.page-products .compare {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
  grid-template-columns: 1fr;
}

.page-products .compare-col {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(7, 13, 24, 0.55);
}

.page-products .compare-col--new {
  border-color: var(--line-cyan);
  background: linear-gradient(160deg, rgba(46, 242, 208, 0.1), rgba(7, 13, 24, 0.72));
}

.page-products .compare-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.page-products .compare-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--paper);
}

.page-products .compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.page-products .compare-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--steel);
}

.page-products .compare-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--silver);
}

.page-products .compare-col--new .compare-list li::before {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(46, 242, 208, 0.7);
}

.page-products .version-note {
  margin: 1.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--steel);
}

.page-products .version-note a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products .version-note a:hover {
  color: var(--focus);
}

/* ---------- 设备与场景 ---------- */
.page-products .device-section .section-head {
  max-width: 46rem;
}

.page-products .device-layout {
  display: grid;
  gap: var(--pp-gap);
  grid-template-columns: 1fr;
  margin-top: 1.8rem;
}

.page-products .device-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.page-products .device-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(22, 36, 61, 0.72), rgba(15, 26, 46, 0.35));
  text-align: center;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-products .device-item:hover {
  border-color: var(--line-cyan);
  transform: translateY(-3px);
}

.page-products .device-shape {
  position: relative;
  width: 44px;
  height: 70px;
  margin-bottom: 0.65rem;
  border: 1.5px solid var(--silver);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(46, 242, 208, 0.18), transparent 66%);
}

.page-products .device-shape::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--silver);
  opacity: 0.6;
  transform: translateX(-50%);
}

.page-products .device-shape--wide {
  width: 58px;
  height: 66px;
}

.page-products .device-shape--pad {
  width: 72px;
  height: 54px;
  border-radius: 8px;
}

.page-products .device-shape--fold {
  width: 60px;
  height: 66px;
  background: linear-gradient(90deg, rgba(46, 242, 208, 0.2) 50%, rgba(255, 106, 43, 0.16) 50%);
}

.page-products .device-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--paper);
}

.page-products .device-note {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--steel);
}

.page-products .scenes {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
  grid-template-columns: 1fr;
}

.page-products .scene {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(22, 36, 61, 0.85), rgba(7, 13, 24, 0.6));
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.page-products .scene-num {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.page-products .scene h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--paper);
}

.page-products .scene p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--steel);
}

/* ---------- 后续入口 ---------- */
.page-products .next-section {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.page-products .next-band {
  padding: clamp(1.35rem, 3.5vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(22, 36, 61, 0.9), rgba(7, 13, 24, 0.7));
}

.page-products .next-band .section-title {
  margin: 0 0 1.3rem;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

.page-products .next-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
}

.page-products .next-item a {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(7, 13, 24, 0.45);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.page-products .next-item a:hover {
  border-color: var(--line-cyan);
  background: rgba(46, 242, 208, 0.07);
  transform: translateX(4px);
}

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

.page-products .next-k {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-products .next-v {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--steel);
}

/* ---------- 媒体查询 ---------- */
@media (min-width: 620px) {
  .page-products .coverage-row {
    grid-template-columns: 8.5rem 1fr;
    gap: 1rem;
    align-items: center;
  }

  .page-products .next-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .page-products .replay-grid,
  .page-products .booking-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-products .booking-grid .panel-body {
    order: 2;
  }

  .page-products .booking-grid .shot-wrap {
    order: 1;
  }

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

  .page-products .device-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-items: start;
  }

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

  .page-products .next-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1120px) {
  .page-products .tab {
    min-width: 13.5rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-products .tab,
  .page-products .device-item,
  .page-products .next-item a {
    transition: none;
  }

  .page-products .tab:hover,
  .page-products .device-item:hover,
  .page-products .next-item a:hover {
    transform: none;
  }
}
