/* ============ 产品与入口 / page-products ============ */

.page-products {
  display: block;
  background: var(--c-void);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

.page-products .prod-wrap {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.page-products a {
  color: inherit;
}

.page-products .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 面包屑 ---------- */

.page-products .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--c-steel);
}

.page-products .breadcrumb a {
  color: var(--c-steel);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

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

.page-products .breadcrumb__sep {
  color: var(--c-line);
}

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

.page-products .prod-hero {
  position: relative;
  overflow: hidden;
  padding: 32px 0 44px;
  border-bottom: 1px solid var(--c-line);
  background:
    radial-gradient(760px 420px at 86% -16%, rgba(122, 92, 255, .32), transparent 62%),
    radial-gradient(600px 360px at 4% 2%, rgba(34, 224, 255, .14), transparent 60%),
    linear-gradient(158deg, var(--c-deep) 0%, var(--c-void) 74%);
}

.page-products .prod-hero::before {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -58%;
  width: 66%;
  height: 320px;
  transform: rotate(-9deg);
  background: linear-gradient(120deg, rgba(255, 107, 44, .30), rgba(255, 107, 44, 0) 72%);
  pointer-events: none;
}

.page-products .prod-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 46%;
  background: linear-gradient(180deg, var(--c-cyan), transparent);
  opacity: .7;
  pointer-events: none;
}

.page-products .prod-hero .prod-wrap {
  position: relative;
  z-index: 1;
}

.page-products .prod-hero__kicker {
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.page-products .prod-hero__title {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 7.2vw, 58px);
  line-height: 1.1;
  letter-spacing: -.012em;
  color: var(--c-white);
  text-wrap: balance;
}

.page-products .prod-hero__lead {
  max-width: 64ch;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--c-steel);
}

.page-products .prod-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-products .prod-hero__facts {
  display: grid;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: var(--c-steel);
}

.page-products .prod-hero__facts li {
  position: relative;
  padding-left: 18px;
}

.page-products .prod-hero__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 8px;
  height: 1px;
  background: var(--c-orange);
}

.page-products .prod-hero__facts .mono {
  margin-right: 4px;
  color: var(--c-orange);
  font-size: 14px;
}

/* ---------- 通用分区头 ---------- */

.page-products .prod-block {
  position: relative;
  padding: 52px 0;
  border-bottom: 1px solid var(--c-line);
}

.page-products .prod-block:last-of-type {
  border-bottom: 0;
}

.page-products .prod-head {
  margin-bottom: 30px;
}

.page-products .prod-head__index {
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--c-cyan);
}

.page-products .prod-head__title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(23px, 4.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--c-white);
}

.page-products .prod-head__lead {
  max-width: 68ch;
  color: var(--c-steel);
  font-size: 16px;
  line-height: 1.78;
}

/* ---------- 技能树 ---------- */

.page-products .tree {
  position: relative;
}

.page-products .tree__trunk {
  display: block;
  width: 2px;
  height: 42px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(34, 224, 255, 0), var(--c-cyan));
}

.page-products .tree__branches {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .branch-card {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--c-deep) 0%, var(--c-void) 100%);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.page-products .branch-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 224, 255, .55);
  box-shadow: var(--shadow-soft);
}

.page-products .branch-card--app { border-top: 2px solid var(--c-orange); }
.page-products .branch-card--desktop { border-top: 2px solid var(--c-cyan); }
.page-products .branch-card--web { border-top: 2px solid var(--c-violet); }

.page-products .branch-card__tag {
  margin-bottom: 10px;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--c-steel);
}

.page-products .branch-card--app .branch-card__tag { color: var(--c-orange); }
.page-products .branch-card--desktop .branch-card__tag { color: var(--c-cyan); }
.page-products .branch-card--web .branch-card__tag { color: #A791FF; }

.page-products .branch-card__title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  line-height: 1.3;
  color: var(--c-white);
}

.page-products .branch-card__desc {
  font-size: 15px;
  line-height: 1.72;
  color: var(--c-steel);
}

.page-products .branch-card__list {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .branch-card__list li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--c-steel);
}

.page-products .branch-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 1px;
  background: var(--c-cyan);
  opacity: .85;
}

.page-products .branch-card__meta {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--c-line);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--c-steel);
}

/* ---------- 分栏与媒体 ---------- */

.page-products .media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-deep);
}

.page-products .media-frame__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  filter: saturate(.96);
}

.page-products .prod-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

/* ---------- APP 步骤 ---------- */

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

.page-products .app-step {
  position: relative;
  padding: 16px 18px 16px 52px;
  border-left: 2px solid var(--c-orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, var(--c-panel) 0%, rgba(16, 40, 74, 0) 100%);
}

.page-products .app-step__num {
  position: absolute;
  left: 16px;
  top: 17px;
  font-size: 13px;
  color: var(--c-orange);
}

.page-products .app-step__title {
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.4;
  color: var(--c-white);
}

.page-products .app-step__desc {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--c-steel);
}

.page-products .app-flow {
  margin-top: 28px;
}

.page-products .app-caps {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--c-line);
}

.page-products .app-caps li {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
}

.page-products .app-caps__key {
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--c-cyan);
}

.page-products .app-caps__val {
  font-size: 15px;
  line-height: 1.72;
  color: var(--c-steel);
}

/* ---------- 电脑端使用记录 ---------- */

.page-products .record-panel {
  padding: 22px 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--c-panel) 0%, var(--c-void) 100%);
}

.page-products .record-panel__label {
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--c-cyan);
}

.page-products .record-filter {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .record-filter__item {
  display: grid;
  gap: 5px;
  padding: 13px 0;
  border-top: 1px solid var(--c-line);
}

.page-products .record-filter__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-products .record-filter__key {
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--c-orange);
}

.page-products .record-filter__val {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-steel);
}

.page-products .record-panel__note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--c-line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-steel);
}

/* ---------- 兼容矩阵 ---------- */

.page-products .compat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-line);
  overflow: hidden;
}

.page-products .compat-item {
  display: grid;
  gap: 6px;
  padding: 18px 18px 18px 22px;
  background: var(--c-void);
  position: relative;
}

.page-products .compat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--c-green);
  opacity: .9;
}

.page-products .compat-item__name {
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--c-cyan);
}

.page-products .compat-item__state {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-steel);
}

.page-products .compat-note {
  margin-top: 22px;
  padding-left: 16px;
  border-left: 2px solid var(--c-violet);
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-steel);
}

/* ---------- 版本迭代 ---------- */

.page-products .version-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--c-line);
}

.page-products .version-node {
  position: relative;
  padding: 0 0 26px 22px;
}

.page-products .version-node::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(34, 224, 255, .16);
}

.page-products .version-node--now::before {
  background: var(--c-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 44, .22);
  animation: prod-pulse 2.4s var(--ease) infinite;
}

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

.page-products .version-node__ver {
  margin-bottom: 6px;
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--c-cyan);
}

.page-products .version-node--now .version-node__ver {
  color: var(--c-orange);
}

.page-products .version-node__title {
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17.5px;
  line-height: 1.4;
  color: var(--c-white);
}

.page-products .version-node__desc {
  font-size: 14.8px;
  line-height: 1.72;
  color: var(--c-steel);
}

@keyframes prod-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 107, 44, .22); }
  50% { box-shadow: 0 0 0 7px rgba(255, 107, 44, 0); }
}

/* ---------- 对比表 ---------- */

.page-products .cmp-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-void);
}

.page-products .cmp-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}

.page-products .cmp-table caption {
  text-align: left;
}

.page-products .cmp-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--c-cyan);
  background: var(--c-panel);
  border-bottom: 1px solid var(--c-line);
  white-space: nowrap;
}

.page-products .cmp-table tbody th,
.page-products .cmp-table tbody td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
  border-bottom: 1px solid var(--c-line);
}

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

.page-products .cmp-table tbody th {
  font-weight: 500;
  color: var(--c-white);
}

.page-products .cmp-table tbody td {
  color: var(--c-steel);
}

.page-products .cmp-table tbody tr:hover th,
.page-products .cmp-table tbody tr:hover td {
  background: rgba(16, 40, 74, .55);
}

.page-products .cmp-pick {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  white-space: nowrap;
}

.page-products .cmp-pick--app { color: var(--c-orange); }
.page-products .cmp-pick--desktop { color: var(--c-cyan); }
.page-products .cmp-pick--web { color: #A791FF; }

/* ---------- 快速开始 ---------- */

.page-products .start-strip {
  display: grid;
  gap: 20px;
  margin-top: 32px;
  padding: 26px 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background:
    radial-gradient(520px 220px at 96% 0%, rgba(122, 92, 255, .28), transparent 66%),
    linear-gradient(120deg, var(--c-panel) 0%, var(--c-deep) 100%);
}

.page-products .start-strip__title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  line-height: 1.35;
  color: var(--c-white);
}

.page-products .start-strip__text p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-steel);
}

.page-products .start-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 响应式 ---------- */

@media (min-width: 620px) {
  .page-products .prod-hero {
    padding: 42px 0 56px;
  }

  .page-products .prod-hero__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .page-products .prod-block {
    padding: 64px 0;
  }

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

  .page-products .app-caps li {
    grid-template-columns: 92px 1fr;
    gap: 18px;
    align-items: baseline;
  }

  .page-products .record-panel {
    padding: 26px 24px;
  }

  .page-products .start-strip {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 30px 28px;
  }
}

@media (min-width: 880px) {
  .page-products .tree__branches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-top: 26px;
  }

  .page-products .tree__branches::before {
    content: "";
    position: absolute;
    top: 0;
    left: 16.6%;
    right: 16.6%;
    height: 1px;
    background: linear-gradient(90deg, rgba(30, 58, 95, 0), var(--c-line) 18%, var(--c-line) 82%, rgba(30, 58, 95, 0));
  }

  .page-products .branch-card::before {
    content: "";
    position: absolute;
    top: -26px;
    left: 50%;
    width: 1px;
    height: 26px;
    background: var(--c-line);
  }

  .page-products .branch-card::after {
    content: "";
    position: absolute;
    top: -4px;
    left: calc(50% - 3px);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-cyan);
    box-shadow: 0 0 12px rgba(34, 224, 255, .75);
  }

  .page-products .branch-card--app::after { background: var(--c-orange); box-shadow: 0 0 12px rgba(255, 107, 44, .7); }
  .page-products .branch-card--web::after { background: var(--c-violet); box-shadow: 0 0 12px rgba(122, 92, 255, .75); }

  .page-products .prod-split {
    grid-template-columns: 1.02fr 1fr;
    gap: 34px;
  }

  .page-products .prod-split--flip > .media-frame {
    order: 2;
  }

  .page-products .prod-split--flip > .record-panel {
    order: 1;
  }

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

  .page-products .version-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    border-left: 0;
    border-top: 1px solid var(--c-line);
    padding-top: 26px;
  }

  .page-products .version-node {
    padding: 0 0 0 0;
  }

  .page-products .version-node::before {
    top: -30px;
    left: 0;
  }
}

@media (min-width: 1100px) {
  .page-products .prod-hero {
    padding: 52px 0 68px;
  }

  .page-products .prod-hero__lead {
    font-size: 17px;
  }

  .page-products .prod-head__lead {
    font-size: 16.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products *,
  .page-products *::before,
  .page-products *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .page-products .version-node--now::before {
    animation: none;
  }
}
