.page-products {
  background: var(--void);
  color: var(--hi);
  overflow-wrap: break-word;
}

/* ---------- 首屏 ---------- */
.page-products .p-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(48px, 8vw, 92px);
  isolation: isolate;
}

.page-products .p-hero::before {
  content: "";
  position: absolute;
  top: -16%;
  right: -22%;
  bottom: 18%;
  left: -32%;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(56, 232, 208, .16) 0%, rgba(56, 232, 208, 0) 54%),
    linear-gradient(302deg, rgba(255, 122, 47, .14) 0%, rgba(255, 122, 47, 0) 48%);
}

.page-products .p-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 52px);
  align-items: center;
  padding-top: clamp(24px, 4vw, 44px);
}

.page-products .p-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(34px, 7.6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 15ch;
}

.page-products .p-hero__lede {
  margin: 20px 0 0;
  max-width: 60ch;
  color: var(--mid);
  font-size: clamp(15.5px, 1.6vw, 18px);
  line-height: 1.78;
}

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

.page-products .p-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
}

.page-products .p-hero__facts > div {
  padding: 16px 10px 0 0;
  border-right: 1px solid var(--line);
}

.page-products .p-hero__facts > div:last-child {
  border-right: 0;
}

.page-products .p-hero__facts dt {
  margin: 0;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--dim);
}

.page-products .p-hero__facts dd {
  margin: 8px 0 0;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1;
  letter-spacing: .01em;
  color: var(--cyan);
}

.page-products .p-hero__visual {
  display: flex;
  justify-content: center;
}

.page-products .p-phone {
  width: min(100%, 340px);
  height: auto;
  display: block;
  filter: drop-shadow(0 34px 68px rgba(0, 0, 0, .7));
}

/* ---------- 通用区块 ---------- */
.page-products .p-block {
  padding-block: clamp(56px, 9vw, 112px);
}

.page-products .p-block + .p-block {
  border-top: 1px solid var(--line);
}

.page-products .p-head {
  max-width: 64ch;
}

.page-products .p-head h2,
.page-products .p-caps__body h2,
.page-products .p-rank__body h2,
.page-products .p-local__body h2,
.page-products .p-switch__inner h2 {
  margin: 12px 0 0;
  font-size: clamp(25px, 4.2vw, 42px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.page-products .p-head p {
  margin: 16px 0 0;
  color: var(--mid);
  font-size: 16.5px;
  line-height: 1.78;
}

/* ---------- 图片容器 ---------- */
.page-products .p-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: var(--shade);
}

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

.page-products .p-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0) 42%, rgba(5, 8, 15, .62) 100%);
}

.page-products .p-figure figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--dim);
}

/* ---------- 能力总览 ---------- */
.page-products .p-caps {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.page-products .p-caps__lede {
  margin: 16px 0 0;
  max-width: 58ch;
  color: var(--mid);
  font-size: 16.5px;
  line-height: 1.78;
}

.page-products .p-caps__list {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.page-products .p-caps__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.page-products .p-caps__item:last-child {
  border-bottom: 1px solid var(--line);
}

.page-products .p-caps__no {
  font-family: var(--font-cond);
  font-size: 26px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--cyan);
}

.page-products .p-caps__item h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.page-products .p-caps__item p {
  margin: 9px 0 0;
  color: var(--mid);
  font-size: 15.5px;
  line-height: 1.72;
}

.page-products .p-caps__when {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-cond);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--orange);
}

.page-products .p-caps__figure {
  aspect-ratio: 4 / 3;
}

.page-products .p-caps__figure img {
  height: 100%;
}

/* ---------- 数据面板与排名 ---------- */
.page-products .p-rank {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 5vw, 56px);
  align-items: start;
}

.page-products .p-rank__figure {
  aspect-ratio: 3 / 4;
  max-width: 420px;
}

.page-products .p-rank__figure img {
  height: 100%;
}

.page-products .p-rank__body > p {
  margin: 16px 0 0;
  color: var(--mid);
  font-size: 16.5px;
  line-height: 1.8;
  max-width: 62ch;
}

.page-products .p-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-products .p-stats > div {
  background: var(--panel);
  padding: 18px 16px;
}

.page-products .p-stats dt {
  margin: 0;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--dim);
}

.page-products .p-stats dd {
  margin: 10px 0 0;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: .95;
  color: var(--hi);
}

.page-products .p-stats dd small {
  margin-left: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--dim);
}

.page-products .p-quota__title {
  margin: 40px 0 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.page-products .p-quota__lede {
  margin: 10px 0 0;
  color: var(--mid);
  font-size: 15.5px;
  line-height: 1.72;
  max-width: 60ch;
}

.page-products .p-quota {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.page-products .p-quota__row {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--rail);
}

.page-products .p-quota__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.page-products .p-quota__label {
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--mid);
}

.page-products .p-quota__n {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  color: var(--cyan);
}

.page-products .p-quota__n small {
  margin-left: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--dim);
}

.page-products .p-quota__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.page-products .p-quota__dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--rail-glow);
  opacity: .85;
}

.page-products .p-quota__row:nth-child(2) .p-quota__dots i {
  background: var(--violet);
  box-shadow: 0 0 12px rgba(139, 107, 255, .55);
}

.page-products .p-quota__dots--many {
  gap: 6px;
}

.page-products .p-quota__dots--many i {
  width: 10px;
  height: 10px;
}

.page-products .p-quota__note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--dim);
  max-width: 60ch;
}

/* ---------- 本地重点场次与费用 ---------- */
.page-products .p-local__figure {
  aspect-ratio: 16 / 7;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.page-products .p-local__figure img {
  height: 100%;
}

.page-products .p-local__body > p {
  margin: 16px 0 0;
  color: var(--mid);
  font-size: 16.5px;
  line-height: 1.8;
  max-width: 64ch;
}

.page-products .p-fee {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}

.page-products .p-fee__row {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.page-products .p-fee__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-products .p-fee__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.page-products .p-fee__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.page-products .p-fee__price {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  color: var(--orange);
}

.page-products .p-fee__track {
  position: relative;
  height: 6px;
  margin-top: 14px;
  border-radius: 3px;
  background: var(--panel);
  overflow: hidden;
}

.page-products .p-fee__bar {
  display: block;
  height: 100%;
  border-radius: 3px;
  animation: pp-grow .9s var(--ease) both;
}

.page-products .p-fee__bar--single {
  width: 26%;
  background: linear-gradient(90deg, var(--cyan), rgba(56, 232, 208, .35));
}

.page-products .p-fee__bar--season {
  width: 100%;
  background: linear-gradient(90deg, var(--orange), rgba(255, 122, 47, .3));
}

@keyframes pp-grow {
  from { width: 0; }
}

.page-products .p-fee__hint {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--mid);
  max-width: 62ch;
}

.page-products .p-local__pay {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--dim);
  max-width: 64ch;
}

/* ---------- 换设备登录 ---------- */
.page-products .p-switch {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--rail);
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 52px);
}

.page-products .p-switch__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
  pointer-events: none;
}

.page-products .p-switch::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(11, 18, 32, .92) 0%, rgba(11, 18, 32, .72) 55%, rgba(11, 18, 32, .95) 100%);
}

.page-products .p-switch__inner {
  position: relative;
  z-index: 1;
}

.page-products .p-switch__inner > p {
  margin: 16px 0 0;
  color: var(--mid);
  font-size: 16.5px;
  line-height: 1.8;
  max-width: 64ch;
}

.page-products .p-switch__steps {
  list-style: none;
  counter-reset: pp-step;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-products .p-switch__steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: rgba(19, 28, 46, .82);
  padding: 16px 18px;
}

.page-products .p-switch__sn {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  color: var(--cyan);
}

.page-products .p-switch__steps p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--hi);
}

.page-products .p-switch__rules {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.page-products .p-switch__rules p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--mid);
  max-width: 68ch;
}

.page-products .p-switch__rules .tag {
  margin-right: 8px;
}

.page-products .p-switch__more {
  margin-top: 24px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--dim);
}

/* ---------- 安装路径 ---------- */
.page-products .p-path {
  list-style: none;
  margin: clamp(34px, 5vw, 52px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
}

.page-products .p-path__node {
  position: relative;
  padding: 0 0 30px 40px;
}

.page-products .p-path__node::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: var(--rail-glow);
}

.page-products .p-path__node::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 26px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.page-products .p-path__node:last-child {
  padding-bottom: 0;
}

.page-products .p-path__node:last-child::after {
  display: none;
}

.page-products .p-path__idx {
  display: block;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--dim);
}

.page-products .p-path__node h3 {
  margin: 8px 0 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.page-products .p-path__node p {
  margin: 10px 0 0;
  color: var(--mid);
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 52ch;
}

.page-products .p-path__time {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--cyan);
}

.page-products .p-path__tip {
  margin: 32px 0 0;
  padding: 16px 18px;
  border-left: 2px solid var(--orange);
  background: rgba(19, 28, 46, .6);
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--mid);
  max-width: 68ch;
}

/* ---------- 版本卡片 ---------- */
.page-products .p-vers__figure {
  aspect-ratio: 8 / 3;
  margin-bottom: clamp(30px, 5vw, 48px);
}

.page-products .p-vers__figure img {
  height: 100%;
}

.page-products .p-vers {
  list-style: none;
  margin: clamp(32px, 5vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-products .p-vers__card {
  position: relative;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

.page-products .p-vers__card--now {
  border-color: rgba(255, 122, 47, .55);
  box-shadow: 0 0 0 1px rgba(255, 122, 47, .18), var(--shade);
}

.page-products .p-vers__no {
  display: block;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 40px;
  line-height: .9;
  letter-spacing: .01em;
  color: var(--hi);
}

.page-products .p-vers__card--now .p-vers__no {
  color: var(--orange);
}

.page-products .p-vers__year {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--dim);
}

.page-products .p-vers__card h3 {
  margin: 16px 0 0;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.page-products .p-vers__card p {
  margin: 10px 0 0;
  color: var(--mid);
  font-size: 14.5px;
  line-height: 1.75;
}

.page-products .p-vers__foot {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.page-products .p-vers__foot p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--mid);
  max-width: 56ch;
}

.page-products .p-vers__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 媒体查询 ---------- */
@media (min-width: 700px) {
  .page-products .p-vers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 900px) {
  .page-products .p-hero__inner {
    grid-template-columns: 1.06fr .94fr;
    gap: clamp(44px, 6vw, 84px);
  }

  .page-products .p-caps {
    grid-template-columns: 1.15fr .85fr;
  }

  .page-products .p-rank {
    grid-template-columns: .78fr 1.22fr;
    gap: clamp(40px, 5vw, 72px);
  }

  .page-products .p-rank__figure {
    grid-column: 1;
    grid-row: 1;
  }

  .page-products .p-rank__body {
    grid-column: 2;
    grid-row: 1;
  }

  .page-products .p-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .page-products .p-path__node {
    padding: 46px 28px 0 0;
  }

  .page-products .p-path__node::before {
    top: -7px;
    left: 0;
    width: 13px;
    height: 13px;
  }

  .page-products .p-path__node::after {
    display: none;
  }

  .page-products .p-path__node:last-child {
    padding-right: 0;
  }

  .page-products .p-caps__figure {
    position: sticky;
    top: 32px;
  }
}

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

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

@media (max-width: 520px) {
  .page-products .p-hero__facts > div {
    padding-right: 8px;
  }

  .page-products .p-hero__facts dt {
    font-size: 10px;
    letter-spacing: .1em;
  }

  .page-products .p-caps__item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .page-products .p-switch__steps li {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 14px 14px;
  }

  .page-products .p-fee__price {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .p-fee__bar {
    animation: none;
  }
}
