.page-products {
  --p-cut: 14px;
}

/* ---------- 面包屑 ---------- */
.page-products .crumb {
  padding: 24px 0 0;
}

/* ---------- 首屏 ---------- */
.page-products .p-hero {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 5vw, 60px) 0 clamp(20px, 3vw, 32px);
}

.page-products .p-hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(34px, 8vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ice);
  max-width: 14em;
}

.page-products .p-hl {
  color: var(--cyan);
}

.page-products .p-lede {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--mist);
  max-width: 40em;
}

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

@media (min-width: 900px) {
  .page-products .p-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
    align-items: end;
  }
}

/* ---------- 数字条 ---------- */
.page-products .p-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(20px, 3vw, 36px);
  background: var(--grid);
  border: 1px solid var(--grid);
}

.page-products .p-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: var(--deep-sea);
}

.page-products .p-stat .num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.page-products .p-stat-k {
  font-size: 13px;
  line-height: 1.5;
  color: var(--mist);
}

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

/* ---------- 章节骨架 ---------- */
.page-products .p-section {
  padding: clamp(48px, 8vw, 96px) 0;
  border-top: 1px solid var(--grid);
}

.page-products .p-head {
  max-width: 62ch;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.page-products .p-head h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 4.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 850;
  color: var(--ice);
}

.page-products .p-sub {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 图版 ---------- */
.page-products .p-figure {
  position: relative;
  margin: 0 0 clamp(20px, 3vw, 32px);
  overflow: hidden;
  background: var(--panel-blue);
  border: 1px solid var(--grid);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

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

.page-products .p-figure--wide { aspect-ratio: 1400 / 800; }
.page-products .p-figure--mid { aspect-ratio: 1200 / 800; }
.page-products .p-figure--table { aspect-ratio: 1400 / 900; }
.page-products .p-figure--tab { aspect-ratio: 1000 / 700; }
.page-products .p-figure--weekend { aspect-ratio: 1200 / 600; }

.page-products .p-cap {
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
  padding-left: 14px;
  border-left: 2px solid var(--cyan);
}

.page-products .p-note,
.page-products .p-scrollhint {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-products .p-scrollhint {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ---------- 三档订阅 ---------- */
.page-products .p-tiers {
  display: grid;
  gap: 16px;
  padding-bottom: 8px;
}

.page-products .p-tier {
  position: relative;
  padding: 24px 22px 26px;
  background: var(--panel-blue);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--p-cut)), calc(100% - var(--p-cut)) 100%, 0 100%);
}

.page-products .p-tier--a {
  background: linear-gradient(180deg, rgba(43, 227, 210, 0.14), rgba(43, 227, 210, 0) 46%), var(--panel-blue);
}

.page-products .p-tier--b {
  background: linear-gradient(180deg, rgba(255, 107, 44, 0.14), rgba(255, 107, 44, 0) 46%), var(--panel-blue);
}

.page-products .p-tier--c {
  background: linear-gradient(180deg, rgba(87, 217, 163, 0.14), rgba(87, 217, 163, 0) 46%), var(--panel-blue);
}

.page-products .p-tier h3 {
  margin: 14px 0 0;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ice);
}

.page-products .p-tier-lead {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ice);
}

.page-products .p-tier-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .p-tier-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mist);
}

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

.page-products .p-tier-fit {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--orange);
}

@media (min-width: 860px) {
  .page-products .p-tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
    padding-bottom: 48px;
  }

  .page-products .p-tier:nth-child(2) { transform: translateY(28px); }
  .page-products .p-tier:nth-child(3) { transform: translateY(14px); }
}

/* ---------- 左右分栏 ---------- */
.page-products .p-split {
  display: grid;
  gap: 28px;
}

.page-products .p-rail {
  padding: 20px 18px;
  border-left: 3px solid var(--cyan);
  background: var(--panel-blue);
}

.page-products .p-rail-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-products .p-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-products .p-rail-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.page-products .p-flow {
  min-width: 0;
}

@media (min-width: 940px) {
  .page-products .p-split {
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 48px;
  }

  .page-products .p-rail {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
  }
}

/* ---------- 步骤 ---------- */
.page-products .p-steps {
  list-style: none;
  margin: 0 0 clamp(24px, 4vw, 36px);
  padding: 0;
  display: grid;
  gap: 22px;
}

.page-products .p-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.page-products .p-step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--deep-sea);
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.page-products .p-step h3 {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 750;
  color: var(--ice);
}

.page-products .p-step p {
  margin: 7px 0 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--mist);
}

/* ---------- 表格 ---------- */
.page-products .p-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--grid);
  background: var(--deep-sea);
  -webkit-overflow-scrolling: touch;
}

.page-products .p-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.page-products .p-table th {
  padding: 14px 16px;
  background: var(--panel-blue);
  border-bottom: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: left;
  white-space: nowrap;
  color: var(--mist);
}

.page-products .p-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(28, 58, 86, 0.7);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ice);
  white-space: nowrap;
}

.page-products .p-table tbody tr:nth-child(even) {
  background: rgba(12, 39, 64, 0.55);
}

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

.page-products .p-table .num {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--cyan);
}

/* ---------- 历史交锋 ---------- */
.page-products .p-h2h {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.page-products .p-tab-svg {
  display: block;
  width: 100%;
  height: auto;
  background: var(--panel-blue);
  border: 1px solid var(--grid);
}

.page-products .p-tab-svg .p-svg-frame {
  fill: none;
  stroke: var(--grid);
  stroke-width: 2;
}

.page-products .p-tab-svg .p-svg-div {
  stroke: var(--grid);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
}

.page-products .p-tab-svg .p-svg-row {
  fill: rgba(28, 58, 86, 0.9);
}

.page-products .p-tab-svg .p-svg-row--hot {
  fill: rgba(43, 227, 210, 0.42);
}

.page-products .p-tab-svg .p-svg-cap {
  fill: var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.page-products .p-h2h-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .p-h2h-list li {
  padding-left: 18px;
  border-left: 2px solid var(--grid);
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.page-products .p-h2h-list .num {
  font-family: var(--font-mono);
  color: var(--cyan);
  margin-right: 8px;
}

/* ---------- 设备同步 ---------- */
.page-products .p-sync {
  display: grid;
  gap: 16px;
}

.page-products .p-sync-card {
  padding: 22px 20px 24px;
  background: var(--graphite);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.page-products .p-sync-card .num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--orange);
}

.page-products .p-sync-card h3 {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 750;
  color: var(--ice);
}

.page-products .p-sync-card p {
  margin: 9px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mist);
}

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

/* ---------- 周末连看 ---------- */
.page-products .p-weekend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-products .p-weekend li {
  position: relative;
  padding: 18px 18px 18px 20px;
  border-left: 2px solid var(--grid);
  background: rgba(12, 39, 64, 0.6);
}

.page-products .p-wk-k {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--orange);
}

.page-products .p-weekend h3 {
  margin: 8px 0 0;
  font-size: 17px;
  font-weight: 750;
  color: var(--ice);
}

.page-products .p-weekend p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mist);
}

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

  .page-products .p-weekend li:nth-child(2) { transform: translateY(18px); }
}

/* ---------- 技能树步骤 ---------- */
.page-products .p-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .p-node {
  position: relative;
  padding-left: 30px;
}

.page-products .p-node::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: -2px;
  width: 1px;
  background: var(--grid);
}

.page-products .p-node::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
}

.page-products .p-node:last-child::before {
  display: none;
}

.page-products .p-node:last-child::after {
  background: var(--orange);
}

.page-products .p-node details > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.4;
  color: var(--ice);
}

.page-products .p-node details > summary::-webkit-details-marker {
  display: none;
}

.page-products .p-node details > summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--cyan);
}

.page-products .p-node details[open] > summary::after {
  content: "–";
  color: var(--orange);
}

.page-products .p-node-t {
  min-width: 0;
}

.page-products .p-node-body {
  padding: 0 0 18px;
  max-width: 46em;
}

.page-products .p-node-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 延伸入口 ---------- */
.page-products .p-nextgrid {
  display: grid;
  gap: 14px;
}

.page-products .p-nextcard {
  display: block;
  padding: 22px 20px;
  text-decoration: none;
  background: var(--panel-blue);
  border: 1px solid var(--grid);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background 240ms var(--ease), transform 240ms var(--ease);
}

.page-products .p-nextcard h3 {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
  color: var(--ice);
}

.page-products .p-nextcard:hover,
.page-products .p-nextcard:focus-visible {
  background: #10314F;
  transform: translateY(-3px);
}

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

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

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

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

  .page-products .p-nextcard:hover,
  .page-products .p-nextcard:focus-visible {
    transform: none;
  }

  .page-products .p-tier:nth-child(2),
  .page-products .p-tier:nth-child(3),
  .page-products .p-weekend li:nth-child(2) {
    transform: none;
  }
}
