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

.page-products {
  --pr-surface: linear-gradient(168deg, rgba(18, 39, 74, .92), rgba(9, 20, 38, .95));
  --pr-panel-bg: rgba(12, 27, 51, .72);
  --pr-hair: rgba(30, 58, 102, .62);
  background: var(--ink-900);
  color: var(--text-body);
  font-family: var(--font-body);
  overflow-x: clip;
  padding-bottom: clamp(40px, 6vw, 80px);
}

.page-products a {
  color: inherit;
}

.page-products a:focus-visible,
.page-products button:focus-visible,
.page-products summary:focus-visible {
  outline: 2px solid var(--emerald-500);
  outline-offset: 2px;
}

/* ---------- 通用排版件 ---------- */

.page-products .pr-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--emerald-500);
}

.page-products .pr-h1 {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--ice-100);
  max-width: 16ch;
}

.page-products .pr-title {
  margin: 10px 0 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.18;
  color: var(--ice-100);
  max-width: 22ch;
}

.page-products .pr-lede {
  margin: 18px 0 0;
  max-width: 58ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.78;
  color: var(--text-body);
}

.page-products .pr-note {
  margin: 14px 0 0;
  max-width: 66ch;
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
}

.page-products .pr-head {
  margin-bottom: clamp(24px, 4vw, 44px);
}

.page-products .pr-link {
  color: var(--emerald-500);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 196, 139, .4);
  padding-bottom: 1px;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.page-products .pr-link:hover {
  color: var(--ice-100);
  border-bottom-color: var(--ice-100);
}

.page-products .pr-inline-note {
  margin: clamp(22px, 3vw, 32px) 0 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 66ch;
}

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

.page-products .pr-hero {
  position: relative;
  padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(rgba(233, 241, 255, .05) 1px, transparent 1px),
    radial-gradient(900px 420px at 84% -6%, rgba(18, 196, 139, .16), transparent 62%),
    radial-gradient(680px 360px at 6% 104%, rgba(255, 90, 43, .1), transparent 62%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 100%);
  background-size: 30px 30px, auto, auto, auto;
}

.page-products .pr-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald-500) 20%, rgba(18, 196, 139, 0) 58%);
  opacity: .7;
}

.page-products .breadcrumb {
  margin: 0 0 clamp(20px, 3vw, 34px);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.page-products .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--slate-500);
}

.page-products .breadcrumb [aria-current="page"] {
  color: var(--ice-100);
}

.page-products .pr-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}

.page-products .pr-hero__lead {
  order: 1;
}

.page-products .pr-hero__device {
  order: 2;
}

.page-products .pr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 30px);
}

/* 手机外框 */

.page-products .pr-device {
  position: relative;
  width: min(272px, 76%);
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--line-600);
  border-radius: 30px;
  background: linear-gradient(160deg, #0e1e37, #060d1a);
  box-shadow: var(--shadow-3);
}

.page-products .pr-device::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 7px;
  border-radius: 999px;
  background: #050c18;
  border: 1px solid rgba(30, 58, 102, .9);
  z-index: 2;
}

.page-products .pr-device__screen {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #050c18;
}

.page-products .pr-device__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
}

.page-products .pr-device__bar {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(7, 15, 30, .8);
  border: 1px solid var(--line-600);
}

.page-products .pr-device__dot {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: rgba(93, 115, 149, .7);
}

.page-products .pr-device__dot--on {
  background: var(--emerald-500);
  width: 30px;
}

/* 首屏数字条 */

.page-products .pr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--line);
}

.page-products .pr-stat {
  padding: 14px 16px;
  background: rgba(10, 22, 42, .82);
}

.page-products .pr-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--emerald-500);
  line-height: 1.1;
}

.page-products .pr-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- 速览分段 ---------- */

.page-products .pr-guide {
  padding: clamp(26px, 4vw, 44px) 0;
  background: var(--ink-800);
  border-bottom: 1px solid var(--line);
}

.page-products .pr-guide__title {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--mist-400);
}

.page-products .pr-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 18px;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.page-products .pr-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--mist-400);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.page-products .pr-tab:hover {
  color: var(--ice-100);
}

.page-products .pr-tab[aria-selected="true"],
.page-products .pr-tab.is-active {
  color: var(--ice-100);
  border-bottom-color: var(--emerald-500);
}

.page-products .pr-tabpanel {
  max-width: 72ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-body);
}

.page-products .pr-tabpanel p {
  margin: 0 0 12px;
}

.page-products .pr-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--emerald-500);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 196, 139, .38);
  padding-bottom: 2px;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.page-products .pr-jump:hover {
  color: var(--ice-100);
  border-bottom-color: var(--ice-100);
}

/* ---------- 章节骨架 ---------- */

.page-products .pr-section {
  position: relative;
  padding: clamp(44px, 7vw, 92px) 0;
  border-top: 1px solid var(--line);
}

.page-products .pr-section--tint {
  background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%);
}

/* ---------- 三步路径 ---------- */

.page-products .pr-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pr-step;
}

.page-products .pr-step {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--pr-surface);
  border: 1px solid var(--line);
}

.page-products .pr-step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald-500), rgba(18, 196, 139, 0) 74%);
}

.page-products .pr-step__idx {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--emerald-500);
}

.page-products .pr-step__title {
  margin: 12px 0 0;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  color: var(--ice-100);
}

.page-products .pr-step__text {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 筛选器 ---------- */

.page-products .pr-filter {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 36px);
  align-items: start;
}

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

.page-products .pr-dim {
  padding: 14px 16px;
  background: var(--pr-panel-bg);
}

.page-products .pr-dim b {
  display: block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ice-100);
}

.page-products .pr-dim span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.page-products .pr-chips__label {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.page-products .pr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.page-products .pr-chip {
  appearance: none;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1;
  color: var(--mist-400);
  background: rgba(18, 39, 74, .72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}

.page-products .pr-chip:hover {
  color: var(--ice-100);
  border-color: var(--emerald-700);
  transform: translateY(-2px);
}

.page-products .pr-chip[aria-pressed="true"],
.page-products .pr-chip.is-active {
  color: var(--ice-100);
  border-color: var(--emerald-500);
  box-shadow: inset 0 0 0 1px rgba(18, 196, 139, .3);
}

.page-products .pr-count {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.page-products .pr-count strong {
  color: var(--emerald-500);
  font-weight: 700;
}

.page-products .pr-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: rgba(9, 20, 38, .62);
}

.page-products .pr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--pr-hair);
  font-size: 13px;
  transition: background .16s var(--ease);
}

.page-products .pr-row:last-child {
  border-bottom: 0;
}

.page-products .pr-row:hover {
  background: rgba(18, 196, 139, .07);
}

.page-products .pr-row__lg {
  min-width: 54px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  color: var(--ice-100);
}

.page-products .pr-row__round {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist-400);
}

.page-products .pr-row__time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber-400);
}

.page-products .pr-row__state {
  margin-left: auto;
}

.page-products .pr-row__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--slate-500);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 3px 8px;
}

.page-products .pr-figure {
  margin: clamp(24px, 4vw, 44px) 0 0;
  border: 1px solid var(--line);
  background: var(--ink-800);
  overflow: hidden;
}

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

/* ---------- 战报专栏 ---------- */

.page-products .pr-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin: clamp(18px, 3vw, 26px) 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--line);
}

.page-products .pr-metric {
  padding: 18px 18px 20px;
  background: var(--pr-panel-bg);
}

.page-products .pr-metric__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--emerald-500);
}

.page-products .pr-metric__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 资源下载中心 ---------- */

.page-products .pr-resources {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 38px);
  align-items: start;
}

.page-products .pr-resources__media {
  margin: 0;
}

.page-products .pr-res-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-products .pr-res {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: baseline;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  transition: background .16s var(--ease);
}

.page-products .pr-res:hover {
  background: rgba(18, 196, 139, .06);
}

.page-products .pr-res__no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--emerald-500);
}

.page-products .pr-res__name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--ice-100);
}

.page-products .pr-res__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.page-products .pr-res-footer {
  margin-top: clamp(24px, 3vw, 34px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--line);
  max-width: 74ch;
}

.page-products .pr-res-footer p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--text-body);
}

.page-products .pr-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 16px !important;
}

/* ---------- 跨设备体验 ---------- */

.page-products .pr-consist {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
}

.page-products .pr-consist__media {
  margin: 0;
}

.page-products .pr-consist__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-products .pr-consist__list li {
  position: relative;
  padding: 14px 0 14px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-body);
}

.page-products .pr-consist__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  background: var(--emerald-500);
  transform: rotate(45deg);
}

/* ---------- 版本日志 ---------- */

.page-products .pr-logs {
  border-top: 1px solid var(--line);
}

.page-products .pr-log {
  border-bottom: 1px solid var(--line);
  background: rgba(12, 27, 51, .5);
  transition: background .16s var(--ease);
}

.page-products .pr-log:hover {
  background: rgba(18, 39, 74, .62);
}

.page-products .pr-log summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.page-products .pr-log summary::-webkit-details-marker {
  display: none;
}

.page-products .pr-log summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1;
  color: var(--emerald-500);
}

.page-products .pr-log[open] summary::after {
  content: "–";
}

.page-products .pr-log__ver {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--emerald-500);
}

.page-products .pr-log__title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ice-100);
}

.page-products .pr-log__body {
  margin: 0;
  padding: 0 18px 18px;
  max-width: 70ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

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

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

@media (min-width: 900px) {
  .page-products .pr-hero__grid {
    grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr);
  }

  .page-products .pr-hero__device {
    order: 0;
  }

  .page-products .pr-hero__lead {
    order: 1;
  }

  .page-products .pr-consist {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

@media (min-width: 960px) {
  .page-products .pr-filter {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-products .pr-resources {
    grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr);
  }
}

@media (max-width: 560px) {
  .page-products .pr-h1 {
    max-width: none;
  }

  .page-products .pr-res {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .page-products .pr-res__meta {
    grid-column: 2;
    text-align: left;
    white-space: normal;
  }

  .page-products .pr-dims {
    grid-template-columns: 1fr;
  }

  .page-products .pr-row__state {
    margin-left: 0;
  }

  .page-products .pr-device {
    width: min(240px, 82%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pr-chip,
  .page-products .pr-row,
  .page-products .pr-res,
  .page-products .pr-log,
  .page-products .pr-tab,
  .page-products .pr-link,
  .page-products .pr-jump {
    transition: none;
  }

  .page-products .pr-chip:hover {
    transform: none;
  }
}
