/* ===== 移动应用中心 / page-products ===== */

.page-products {
  --pd-line: rgba(20, 67, 58, .52);
  --pd-cell: rgba(11, 36, 32, .82);
  --pd-gap: clamp(14px, 2.4vw, 28px);
  position: relative;
  background-color: var(--night);
  background-image:
    linear-gradient(rgba(20, 67, 58, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 67, 58, .2) 1px, transparent 1px);
  background-size: 120px 120px;
  background-position: center top;
  color: var(--text-soft);
  font-family: var(--font-body);
  overflow-x: clip;
}

.page-products .wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.page-products .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist);
  margin-bottom: clamp(14px, 2vw, 22px);
}

.page-products .breadcrumb__item {
  color: var(--mist);
  text-decoration: none;
}

.page-products a.breadcrumb__item:hover {
  color: var(--cyan);
}

.page-products .breadcrumb__item[aria-current="page"] {
  color: var(--paper);
}

.page-products .pd-crumb-sep {
  color: var(--grass);
}

/* ---------- 首屏框景 ---------- */

.page-products .pd-hero {
  padding-top: calc(var(--header-offset) + clamp(6px, 2vw, 22px));
  padding-bottom: clamp(34px, 5vw, 64px);
}

.page-products .pd-frame {
  position: relative;
  border: 1px solid var(--pd-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(6, 26, 22, .94), rgba(6, 26, 22, .99));
  overflow: hidden;
}

.page-products .pd-frame::before,
.page-products .pd-frame::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--cyan);
  opacity: .72;
  pointer-events: none;
  z-index: 4;
}

.page-products .pd-frame::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.page-products .pd-frame::after {
  right: 10px;
  bottom: 10px;
  border-left: 0;
  border-top: 0;
}

.page-products .pd-frame__band {
  position: relative;
  height: clamp(92px, 15vw, 168px);
  overflow: hidden;
  border-bottom: 1px solid var(--pd-line);
}

.page-products .pd-frame__band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  filter: saturate(.65) contrast(1.08);
}

.page-products .pd-frame__tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--pd-line);
  background: rgba(6, 26, 22, .78);
  color: var(--amber);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-products .pd-frame__grid {
  display: grid;
  gap: clamp(22px, 3.4vw, 44px);
  padding: clamp(20px, 3.4vw, 44px);
}

.page-products .pd-frame__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 7vw, 58px);
  line-height: 1.02;
  letter-spacing: -.015em;
  color: var(--paper);
  margin: 10px 0 14px;
}

.page-products .pd-frame__desc {
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-soft);
  max-width: 56ch;
  margin-bottom: 20px;
}

.page-products .paper__eyebrow {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-products .pd-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--pd-line);
  border: 1px solid var(--pd-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0 0 22px;
}

.page-products .pd-facts__item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 10px;
  background: var(--pd-cell);
}

.page-products .pd-facts__num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(19px, 4.4vw, 26px);
  line-height: 1;
  color: var(--cyan);
}

.page-products .pd-facts__num small {
  font-size: .46em;
  font-weight: 400;
  color: var(--mist);
  margin-left: 3px;
  letter-spacing: .04em;
}

.page-products .pd-facts__label {
  font-size: 12px;
  line-height: 1.4;
  color: var(--mist);
}

.page-products .pd-frame__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 伪设备框 ---------- */

.page-products .pd-frame__device {
  display: flex;
  justify-content: center;
}

.page-products .device {
  position: relative;
  width: min(300px, 100%);
  padding: 10px 10px 0;
  border-radius: 26px;
  border: 1px solid rgba(53, 230, 208, .34);
  background: rgba(6, 26, 22, .92);
  box-shadow: inset 0 0 0 1px rgba(6, 26, 22, .9), 0 22px 44px -24px rgba(0, 0, 0, .95);
}

.page-products .device__bar {
  display: flex;
  gap: 5px;
  padding: 3px 5px 10px;
}

.page-products .device__bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grass);
}

.page-products .device__bar span:first-child {
  background: var(--flare);
}

.page-products .device__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.page-products .device__hud {
  margin: 10px 0 12px;
  text-align: center;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--amber);
}

/* ---------- 通用章节头 ---------- */

.page-products .pd-section {
  padding-block: clamp(34px, 5.5vw, 68px);
}

.page-products .pd-section--last {
  padding-bottom: clamp(48px, 7vw, 88px);
}

.page-products .pd-head {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: clamp(18px, 3vw, 30px);
  border-bottom: 2px solid var(--grass);
}

.page-products .pd-head__no {
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--flare);
}

.page-products .pd-head__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 4.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--paper);
}

.page-products .pd-head__desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
  max-width: 68ch;
}

/* ---------- 分段切换 ---------- */

.page-products .pd-tabs {
  display: grid;
  gap: 0;
}

.page-products .pd-tabs__bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pd-line);
  scrollbar-width: thin;
}

.page-products .pd-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--pd-line);
  background: rgba(11, 36, 32, .62);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.page-products .pd-tab:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

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

.page-products .pd-tab__no {
  font-family: var(--font-data);
  font-size: 11px;
  opacity: .75;
}

.page-products .pd-panel {
  padding-top: clamp(18px, 3vw, 28px);
}

.page-products .pd-panel:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
}

.page-products .pd-panel__grid {
  display: grid;
  gap: 1px;
  background: var(--pd-line);
  border: 1px solid var(--pd-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .pd-panel__cell {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--pd-cell);
}

.page-products .pd-panel__key {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-products .pd-panel__val {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
}

.page-products .pd-panel__foot {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 2px solid var(--amber);
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 设备轨道 ---------- */

.page-products .pd-railsection {
  padding-block: clamp(34px, 5.5vw, 68px);
}

.page-products .pd-rail {
  list-style: none;
  display: grid;
  gap: clamp(22px, 3.2vw, 36px);
  position: relative;
}

.page-products .pd-rail__item {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 26px;
}

.page-products .pd-rail__item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: calc(-1 * clamp(22px, 3.2vw, 36px));
  width: 1px;
  background: linear-gradient(180deg, var(--grass), rgba(20, 67, 58, .1));
}

.page-products .pd-rail__item:last-child::before {
  bottom: auto;
  height: 26px;
}

.page-products .pd-rail__dot {
  position: absolute;
  left: 0;
  top: 9px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--night);
  box-shadow: 0 0 0 4px rgba(53, 230, 208, .08);
}

.page-products .pd-rail__card {
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--pd-line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  background: var(--pd-cell);
}

.page-products .pd-rail__no {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--flare);
  margin-bottom: 8px;
}

.page-products .pd-rail__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 3vw, 25px);
  line-height: 1.14;
  color: var(--paper);
  margin-bottom: 10px;
}

.page-products .pd-rail__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.page-products .pd-rail__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-products .pd-rail__field {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(53, 230, 208, .3);
  background: rgba(53, 230, 208, .07);
  color: var(--cyan);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .03em;
}

.page-products .pd-rail__field--flare {
  border-color: rgba(255, 90, 43, .42);
  background: rgba(255, 90, 43, .12);
  color: var(--flare);
}

.page-products .pd-rail__media {
  margin: 0;
}

.page-products .pd-rail__media .media-frame__img {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .pd-pitch {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--pd-line);
}

/* ---------- 登录与收藏 ---------- */

.page-products .pd-access {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

.page-products .pd-access__col {
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--pd-line);
  border-radius: var(--radius);
  background: var(--pd-cell);
}

.page-products .pd-access__sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .01em;
  color: var(--paper);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--pd-line);
}

.page-products .pd-ol {
  list-style: none;
  counter-reset: pdstep;
  display: grid;
  gap: 10px;
}

.page-products .pd-ol li {
  counter-increment: pdstep;
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-soft);
}

.page-products .pd-ol li::before {
  content: counter(pdstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--amber);
}

.page-products .note {
  margin-top: clamp(18px, 3vw, 26px);
  padding: 14px 16px;
  border-left: 2px solid var(--cyan);
  background: rgba(53, 230, 208, .06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
}

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

/* ---------- 能力清单表 ---------- */

.page-products .table-scroll {
  overflow-x: auto;
  border: 1px solid var(--pd-line);
  border-radius: var(--radius);
  background: rgba(11, 36, 32, .7);
  scrollbar-width: thin;
}

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

.page-products .pd-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--night-2);
  color: var(--cyan);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--pd-line);
}

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

.page-products .pd-table tbody th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--paper);
  white-space: nowrap;
}

.page-products .pd-table tbody td {
  color: var(--text-soft);
}

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

.page-products .pd-table tbody tr:hover th,
.page-products .pd-table tbody tr:hover td {
  background: rgba(53, 230, 208, .05);
}

.page-products .pd-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.page-products .pd-tag--yes {
  border: 1px solid rgba(53, 230, 208, .35);
  background: rgba(53, 230, 208, .1);
  color: var(--cyan);
}

.page-products .pd-tag--no {
  border: 1px solid rgba(143, 166, 160, .35);
  background: rgba(143, 166, 160, .1);
  color: var(--mist);
}

.page-products .pd-note-line {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 版本阶梯 ---------- */

.page-products .pd-steps-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.page-products .pd-steps {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(212px, 1fr);
  gap: 1px;
  min-width: max-content;
}

.page-products .pd-step {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 16px 20px;
  border: 1px solid var(--pd-line);
  border-top: 6px solid var(--step-c, var(--grass));
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--pd-cell);
}

.page-products .pd-step:nth-child(1) {
  --step-c: #16483D;
}

.page-products .pd-step:nth-child(2) {
  --step-c: #1E6E5E;
}

.page-products .pd-step:nth-child(3) {
  --step-c: #35E6D0;
}

.page-products .pd-step:nth-child(4) {
  --step-c: #FF9A3D;
}

.page-products .pd-step:nth-child(5) {
  --step-c: #FF5A2B;
}

.page-products .pd-step:hover {
  transform: translateY(-2px);
  transition: transform var(--dur-fast) var(--ease);
}

.page-products .pd-step__v {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--step-c, var(--grass));
}

.page-products .pd-step:nth-child(3) .pd-step__v,
.page-products .pd-step:nth-child(4) .pd-step__v {
  color: var(--step-c);
}

.page-products .pd-step__t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  color: var(--paper);
}

.page-products .pd-step__d {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
}

.page-products .pd-step__tag {
  justify-self: start;
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--pd-line);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}

/* ---------- 使用场景 ---------- */

.page-products .pd-scenes {
  display: grid;
  gap: 1px;
  background: var(--pd-line);
  border: 1px solid var(--pd-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .pd-scene {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(18px, 2.6vw, 26px);
  background: var(--paper);
  color: var(--ink);
}

.page-products .pd-scene__time {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--flare-ink);
}

.page-products .pd-scene__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(19px, 2.8vw, 23px);
  line-height: 1.15;
  color: var(--ink);
}

.page-products .pd-scene__text {
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink);
}

/* ---------- 桌面端栅格 ---------- */

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

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

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

@media (min-width: 900px) {
  .page-products .pd-frame__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    align-items: center;
  }

  .page-products .pd-hero {
    padding-bottom: clamp(46px, 5vw, 76px);
  }
}

@media (min-width: 960px) {
  .page-products .pd-rail {
    gap: clamp(40px, 4vw, 58px);
  }

  .page-products .pd-rail::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: linear-gradient(180deg, rgba(20, 67, 58, .1), var(--grass) 10%, var(--grass) 90%, rgba(20, 67, 58, .1));
  }

  .page-products .pd-rail__item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 3.4vw, 48px);
    padding-left: 0;
  }

  .page-products .pd-rail__item::before {
    display: none;
  }

  .page-products .pd-rail__dot {
    left: calc(50% - 6.5px);
    top: 26px;
  }

  .page-products .pd-rail__item:nth-child(even) .pd-rail__card {
    order: 2;
  }

  .page-products .pd-rail__item:nth-child(even) .pd-rail__media {
    order: 1;
  }

  .page-products .pd-steps {
    grid-auto-columns: minmax(240px, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pd-tab,
  .page-products .pd-step {
    transition: none;
  }

  .page-products .pd-step:hover {
    transform: none;
  }
}
