.page-products {
  --tp-crumb-space: clamp(18px, 3vw, 32px);
  --tp-panel-pad: clamp(18px, 3vw, 32px);
}

/* ---------- 面包屑 ---------- */
.page-products .tp-crumbs {
  padding-top: var(--tp-crumb-space);
}

/* ---------- 首屏 ---------- */
.page-products .tp-intro {
  padding: clamp(20px, 4vw, 44px) 0 clamp(30px, 4.5vw, 60px);
}

.page-products .tp-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}

@media (min-width: 980px) {
  .page-products .tp-intro-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

.page-products .tp-intro-copy h1 {
  margin: 14px 0 0;
  max-width: 20ch;
}

.page-products .tp-intro-copy .lede {
  margin: 18px 0 0;
  max-width: 54ch;
}

.page-products .tp-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* 首屏数据栏 */
.page-products .tp-fact-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
}

.page-products .tp-fact {
  margin: 0;
  padding: 16px 18px;
  background: var(--panel);
}

.page-products .tp-fact dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.page-products .tp-fact dd {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--cyan);
}

/* ---------- 工作台 ---------- */
.page-products .tp-workbench {
  padding-top: clamp(12px, 2vw, 24px);
}

.page-products .tp-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

@media (min-width: 1000px) {
  .page-products .tp-shell {
    grid-template-columns: 264px minmax(0, 1fr);
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
  }
}

.page-products .tp-rail {
  display: grid;
  gap: 16px;
  min-width: 0;
}

@media (min-width: 1000px) {
  .page-products .tp-rail {
    position: sticky;
    top: 84px;
  }
}

.page-products .tp-rail > .eyebrow {
  display: none;
}

@media (min-width: 1000px) {
  .page-products .tp-rail > .eyebrow {
    display: block;
    margin: 0;
  }
}

/* 工具切换 */
.page-products .tp-tabs {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin: 0;
  padding: 4px 0 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.page-products .tp-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}

.page-products .tp-tab:hover {
  color: var(--text);
  border-color: var(--rule-2);
}

.page-products .tp-tab[aria-selected="true"] {
  color: var(--ink);
  font-weight: 700;
  background: var(--cyan);
  border-color: var(--cyan);
}

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

.page-products .tp-tab-note {
  display: none;
}

@media (min-width: 1000px) {
  .page-products .tp-tabs {
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: visible;
  }

  .page-products .tp-tab {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 12px 12px 12px 16px;
    white-space: normal;
    text-align: left;
    font-size: 15px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-left: 2px solid var(--rule);
    border-radius: 0;
  }

  .page-products .tp-tab[aria-selected="true"] {
    color: var(--text);
    font-weight: 700;
    background: linear-gradient(90deg, rgba(63, 224, 198, 0.12), transparent 72%);
    border-left-color: var(--cyan);
  }

  .page-products .tp-tab-name {
    display: block;
  }

  .page-products .tp-tab-note {
    display: block;
    margin-top: 3px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--muted);
  }

  .page-products .tp-tab[aria-selected="true"] .tp-tab-note {
    color: rgba(63, 224, 198, 0.78);
  }
}

/* 侧栏版本卡 */
.page-products .tp-rail-meta {
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--panel);
}

.page-products .tp-rail-meta .eyebrow {
  margin: 0;
}

.page-products .tp-rail-version {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.page-products .tp-rail-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 面板通用 ---------- */
.page-products .tp-panels {
  min-width: 0;
}

.page-products .tp-panel {
  position: relative;
  padding: var(--tp-panel-pad);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.page-products .tp-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(225deg, var(--ink) 50%, transparent 50%);
  pointer-events: none;
}

.page-products .tp-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: clamp(18px, 2.5vw, 26px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.page-products .tp-panel-head h2 {
  margin: 0;
}

.page-products .tp-panel-tag {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(63, 224, 198, 0.07);
  border: 1px solid rgba(63, 224, 198, 0.34);
  border-radius: 999px;
  white-space: nowrap;
}

.page-products .tp-banner {
  margin: 0 0 clamp(18px, 2.5vw, 24px);
}

.page-products .tp-banner img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
  object-fit: cover;
}

.page-products .tp-banner--wide img {
  aspect-ratio: 16 / 9;
}

.page-products .tp-banner--tall img {
  aspect-ratio: 4 / 3;
}

.page-products .tp-panel-lede {
  margin: 0 0 clamp(18px, 2.5vw, 24px);
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

/* ---------- 词典 ---------- */
.page-products .tp-gloss {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
}

@media (min-width: 760px) {
  .page-products .tp-gloss {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(24px, 3vw, 48px);
  }
}

.page-products .tp-gloss-line {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}

.page-products .tp-gloss-line dt {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.page-products .tp-gloss-abbr {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.page-products .tp-gloss-line dd {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

@media (min-width: 620px) {
  .page-products .tp-gloss-line {
    display: grid;
    grid-template-columns: 152px minmax(0, 1fr);
    align-items: baseline;
    gap: 0 16px;
  }

  .page-products .tp-gloss-line dd {
    margin: 0;
  }
}

/* 版本差异 */
.page-products .tp-version {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: clamp(20px, 3vw, 28px);
  padding: clamp(16px, 2.5vw, 22px);
  background: var(--panel-2);
  border: 1px solid var(--rule);
  border-radius: var(--r);
}

@media (min-width: 700px) {
  .page-products .tp-version {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
  }
}

.page-products .tp-version-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin: 0;
  padding: 0 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 6px;
}

.page-products .tp-version-body > p:first-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.page-products .tp-diff {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .tp-diff li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .tp-diff-tag {
  flex: 0 0 auto;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
}

.page-products .tp-diff-tag--add {
  color: var(--ink);
  background: var(--cyan);
}

.page-products .tp-diff-tag--edit {
  color: var(--ink);
  background: var(--gold-soft);
}

.page-products .tp-diff-tag--merge {
  color: var(--text);
  background: rgba(124, 92, 255, 0.22);
  border: 1px solid rgba(124, 92, 255, 0.5);
}

.page-products .tp-diff .mono {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* ---------- 签表 ---------- */
.page-products .tp-bracket {
  padding: clamp(12px, 2vw, 20px);
  background: var(--ink);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  overflow-x: auto;
}

.page-products .tp-bracket svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .tp-link {
  fill: none;
  stroke: var(--rule-2);
  stroke-width: 1;
}

.page-products .tp-node-a {
  fill: var(--panel-2);
  stroke: var(--hair);
  stroke-width: 1;
}

.page-products .tp-node-b {
  fill: rgba(63, 224, 198, 0.08);
  stroke: rgba(63, 224, 198, 0.32);
  stroke-width: 1;
}

.page-products .tp-node-c {
  fill: rgba(124, 92, 255, 0.12);
  stroke: rgba(124, 92, 255, 0.42);
  stroke-width: 1;
}

.page-products .tp-node-final {
  fill: rgba(255, 122, 47, 0.14);
  stroke: rgba(255, 122, 47, 0.5);
  stroke-width: 1;
}

.page-products .tp-node-labels text {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.page-products .tp-timeline {
  display: grid;
  gap: 0;
  margin: clamp(18px, 2.5vw, 24px) 0 0;
  padding: 0;
  list-style: none;
}

.page-products .tp-timeline li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0 14px;
  padding: 12px 0;
  border-top: 1px solid var(--hair);
}

.page-products .tp-tl-time {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.page-products .tp-tl-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 裁判 ---------- */
.page-products .tp-ref-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
}

@media (min-width: 800px) {
  .page-products .tp-ref-grid {
    grid-template-columns: 216px minmax(0, 1fr);
    align-items: start;
  }
}

.page-products .tp-ref-figure {
  margin: 0;
}

.page-products .tp-ref-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: var(--r);
}

.page-products .tp-ref-body {
  min-width: 0;
}

/* ---------- 表格 ---------- */
.page-products .tp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--panel);
}

.page-products .tp-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-products .tp-table-caption {
  padding: 12px 14px 0;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-products .tp-table th,
.page-products .tp-table td {
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--hair);
}

.page-products .tp-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(201, 168, 106, 0.07);
  border-bottom: 1px solid var(--rule);
}

.page-products .tp-table tbody tr:nth-child(odd) {
  background: rgba(18, 48, 40, 0.5);
}

.page-products .tp-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-products .tp-table td.mono {
  font-size: 14px;
  color: var(--text);
}

.page-products .tp-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-products .tp-trend::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.page-products .tp-trend--up {
  color: var(--orange);
}

.page-products .tp-trend--down {
  color: var(--cyan);
}

.page-products .tp-trend--flat {
  color: var(--muted);
}

/* ---------- 场景卡 ---------- */
.page-products .tp-scenes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: clamp(18px, 2.5vw, 24px);
}

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

.page-products .tp-scene {
  padding: 14px 16px;
  background: rgba(18, 48, 40, 0.45);
  border: 1px solid var(--hair);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
}

.page-products .tp-scene h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

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

/* ---------- 评测对比条 ---------- */
.page-products .tp-dims {
  display: grid;
  gap: clamp(16px, 2.5vw, 22px);
  margin-top: clamp(18px, 2.5vw, 24px);
}

.page-products .tp-dim-name {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.page-products .tp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.page-products .tp-track {
  flex: 1 1 auto;
  height: 8px;
  background: var(--hair);
  border-radius: 999px;
  overflow: hidden;
}

.page-products .tp-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width var(--t-base) var(--ease);
}

.page-products .tp-bar--a .tp-fill {
  background: var(--cyan);
}

.page-products .tp-bar--b .tp-fill {
  background: var(--violet);
}

.page-products .tp-score {
  flex: 0 0 auto;
  width: 34px;
  text-align: right;
  font-size: 13px;
  color: var(--text);
}

.page-products .tp-dim:nth-child(1) .tp-bar--a .tp-fill { width: 86%; }
.page-products .tp-dim:nth-child(1) .tp-bar--b .tp-fill { width: 74%; }
.page-products .tp-dim:nth-child(2) .tp-bar--a .tp-fill { width: 78%; }
.page-products .tp-dim:nth-child(2) .tp-bar--b .tp-fill { width: 82%; }
.page-products .tp-dim:nth-child(3) .tp-bar--a .tp-fill { width: 92%; }
.page-products .tp-dim:nth-child(3) .tp-bar--b .tp-fill { width: 68%; }
.page-products .tp-dim:nth-child(4) .tp-bar--a .tp-fill { width: 70%; }
.page-products .tp-dim:nth-child(4) .tp-bar--b .tp-fill { width: 85%; }
.page-products .tp-dim:nth-child(5) .tp-bar--a .tp-fill { width: 88%; }
.page-products .tp-dim:nth-child(5) .tp-bar--b .tp-fill { width: 79%; }

.page-products .tp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  color: var(--muted);
}

.page-products .tp-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-products .tp-legend-swatch {
  width: 18px;
  height: 6px;
  border-radius: 999px;
}

.page-products .tp-legend-swatch--a {
  background: var(--cyan);
}

.page-products .tp-legend-swatch--b {
  background: var(--violet);
}

.page-products .tp-legend-note {
  margin: 14px 0 0;
  max-width: 64ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 更新节奏 ---------- */
.page-products .tp-cadence .tp-cadence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: clamp(20px, 3vw, 32px);
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
}

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

@media (min-width: 1080px) {
  .page-products .tp-cadence .tp-cadence-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-products .tp-cadence-card {
  padding: clamp(18px, 2.5vw, 24px);
  background: var(--panel);
}

.page-products .tp-cadence-time {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.page-products .tp-cadence-card h3 {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
}

.page-products .tp-cadence-card p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-products .tp-cadence-foot {
  margin: clamp(18px, 2.5vw, 26px) 0 0;
  max-width: 70ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 上手顺序 ---------- */
.page-products .tp-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  margin: clamp(20px, 3vw, 32px) 0 0;
  padding: 0;
  list-style: none;
}

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

.page-products .tp-step {
  padding: 22px 20px 20px;
  background: linear-gradient(160deg, rgba(63, 224, 198, 0.07), transparent 55%), var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r);
}

.page-products .tp-step-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  opacity: 0.85;
}

.page-products .tp-step h3 {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
}

.page-products .tp-step p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 兜底入口 ---------- */
.page-products .tp-help-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  padding: clamp(20px, 3vw, 32px);
  background: var(--panel-2);
  border: 1px solid var(--rule);
  border-radius: var(--r);
}

@media (min-width: 860px) {
  .page-products .tp-help-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
  }
}

.page-products .tp-help-inner .eyebrow {
  margin: 0;
}

.page-products .tp-help-inner h2 {
  margin: 12px 0 0;
}

.page-products .tp-help-inner p {
  margin: 12px 0 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.page-products .tp-help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 860px) {
  .page-products .tp-help-links {
    justify-content: flex-end;
  }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-products .tp-fill,
  .page-products .tp-tab {
    transition: none;
  }
}
