.page-products {
  --prod-pad: clamp(2.6rem, 6.5vw, 5rem);
  --prod-fit: clamp(1rem, 2.2vw, 1.6rem);
  background: var(--ink);
  color: var(--paper);
  overflow-x: hidden;
}

.page-products h1 {
  margin: 0.7rem 0 0;
  font-size: clamp(2rem, 6.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.page-products h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.45rem, 3.6vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-weight: 800;
}

.page-products .section-block {
  padding-block: var(--prod-pad);
  border-top: 1px solid var(--line);
}

.page-products .section-lede {
  max-width: 56ch;
  margin: 0.9rem 0 0;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--mist);
}

/* ---------- 首屏 ---------- */
.page-products .apps-hero {
  position: relative;
  padding-block: clamp(1.4rem, 4vw, 2.6rem) clamp(2rem, 5vw, 3.4rem);
}

.page-products .apps-hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -14%;
  top: -22%;
  width: 44vw;
  height: 44vw;
  max-width: 480px;
  max-height: 480px;
  background: radial-gradient(circle at 32% 32%, rgba(30, 91, 255, 0.4), transparent 68%);
  opacity: 0.85;
  pointer-events: none;
}

.page-products .apps-hero-grid {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.8rem);
}

.page-products .apps-lede {
  max-width: 44ch;
  margin: 1.1rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.88;
  color: var(--mist);
}

.page-products .apps-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.page-products .apps-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.9rem;
  margin: 1.7rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.page-products .apps-hero-facts div {
  display: grid;
  gap: 0.2rem;
}

.page-products .apps-hero-facts dt {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.page-products .apps-hero-facts dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--yellow);
}

.page-products .apps-hero-media {
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-products .apps-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 版本状态栏 + 四点说明 ---------- */
.page-products .console-grid {
  display: grid;
  gap: 2rem;
}

.page-products .console-rail {
  align-self: start;
  padding: 0.2rem 0 0.4rem 1.1rem;
  border-left: 3px solid var(--yellow);
}

.page-products .rail-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.page-products .rail-version {
  margin: 0.35rem 0 0;
  font-family: var(--mono);
  font-size: clamp(2.5rem, 8vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--yellow);
}

.page-products .rail-versions {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--mist);
}

.page-products .rail-versions li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--line);
}

.page-products .rail-versions li:last-child {
  color: var(--paper);
  border-bottom-color: transparent;
}

.page-products .rail-versions li:last-child span:last-child {
  color: var(--yellow);
}

.page-products .rail-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--mist);
}

.page-products .console-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.page-products .console-card {
  --card-face: var(--blue);
  padding: 1.3rem 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--card-face);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--glass) 0%, var(--glass-2) 62%), var(--ink-2);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-products .console-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.page-products .console-cards > :nth-child(1) { --card-face: var(--blue); }
.page-products .console-cards > :nth-child(2) { --card-face: var(--coral); }
.page-products .console-cards > :nth-child(3) { --card-face: var(--mint); }
.page-products .console-cards > :nth-child(4) { --card-face: var(--violet); }

.page-products .card-num {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--card-face);
}

.page-products .console-card h3 {
  margin: 0.5rem 0 0.45rem;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.35;
}

.page-products .console-card p:last-child {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 步骤条 ---------- */
.page-products .flow {
  list-style: none;
  counter-reset: flowStep;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.page-products .flow li {
  position: relative;
  padding-left: 2.75rem;
}

.page-products .flow li::before {
  content: counter(flowStep, decimal-leading-zero);
  counter-increment: flowStep;
  position: absolute;
  left: 0;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
}

.page-products .flow li::after {
  content: "";
  position: absolute;
  left: 0.94rem;
  top: 2.15rem;
  bottom: -1.25rem;
  width: 1px;
  background: var(--line-strong);
}

.page-products .flow li:last-child::after {
  display: none;
}

.page-products .flow li strong {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--paper);
}

.page-products .flow li p {
  margin: 0.3rem 0 0;
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--mist);
}

/* ---------- 版本核对 ---------- */
.page-products .check-grid {
  display: grid;
  gap: 2.2rem;
}

.page-products .check-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.page-products .phone-frame {
  margin: 0 auto;
  max-width: 300px;
  padding: 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.9rem;
  background: linear-gradient(160deg, var(--glass), transparent 62%), var(--ink-2);
  box-shadow: var(--shadow);
}

.page-products .phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.45rem;
}

/* ---------- 功能矩阵 ---------- */
.page-products .entry-visual {
  margin: 1.6rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}

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

.page-products .entry-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.page-products .entry-card {
  --face: var(--blue);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--face);
  border-radius: var(--radius);
  background: var(--ink-2);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.page-products .entry-card:hover,
.page-products .entry-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--face);
}

.page-products .entry-grid > :nth-child(1) { --face: var(--blue); }
.page-products .entry-grid > :nth-child(2) { --face: var(--coral); }
.page-products .entry-grid > :nth-child(3) { --face: var(--mint); }
.page-products .entry-grid > :nth-child(4) { --face: var(--violet); }
.page-products .entry-grid > :nth-child(5) { --face: var(--yellow); }
.page-products .entry-grid > :nth-child(6) { --face: var(--blue); }

.page-products .entry-head {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.page-products .entry-num {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--face);
}

.page-products .entry-name {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 700;
}

.page-products .entry-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--mist);
}

.page-products .entry-go {
  margin: 0.3rem 0 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--face);
}

/* ---------- 更新提醒 ---------- */
.page-products .sub-grid {
  display: grid;
  gap: 2rem;
}

.page-products .sub-note {
  margin: 1.5rem 0 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--mint);
  font-size: 0.9rem;
  line-height: 1.78;
  color: var(--mist);
}

.page-products .sub-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}

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

/* ---------- 设备与访问 ---------- */
.page-products .device-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin: 1.8rem 0 0;
  padding: 0;
}

.page-products .device-list li {
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-2);
}

.page-products .device-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

.page-products .device-list p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.74;
  color: var(--mist);
}

/* ---------- 客服范围 ---------- */
.page-products .support-board {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.7rem;
}

.page-products .support-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.page-products .support-list li {
  padding: 0.95rem 0 0.95rem 1rem;
  border-left: 3px solid var(--coral);
  background: linear-gradient(90deg, var(--glass-2), transparent 82%);
}

.page-products .support-list li:nth-child(2) { border-left-color: var(--yellow); }
.page-products .support-list li:nth-child(3) { border-left-color: var(--mint); }

.page-products .support-list h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
}

.page-products .support-list p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.74;
  color: var(--mist);
}

.page-products .support-figure {
  margin: 1.1rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}

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

.page-products .support-contact {
  padding: 1.3rem 1.2rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--glass) 0%, transparent 55%), var(--ink-2);
}

.page-products .contact-title {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--yellow);
}

.page-products .contact-list {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.page-products .contact-list dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.page-products .contact-list dd {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--paper);
  word-break: break-word;
}

.page-products .contact-tip {
  margin: 1.1rem 0 1.2rem;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--mist);
}

.page-products .apps-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.page-products .apps-links a {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--paper);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.page-products .apps-links a:hover,
.page-products .apps-links a:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ---------- 断点 ---------- */
@media (min-width: 620px) {
  .page-products .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 900px) {
  .page-products .apps-hero-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: end;
  }

  .page-products .console-grid {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    gap: 2.8rem;
  }

  .page-products .console-rail {
    position: sticky;
    top: calc(var(--header-h) + 1.6rem);
  }

  .page-products .check-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.6fr);
    align-items: center;
    gap: 3rem;
  }

  .page-products .sub-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: 2.8rem;
  }

  .page-products .support-board {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2rem;
  }

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

@media (min-width: 1180px) {
  .page-products .apps-hero-grid {
    gap: 3.4rem;
  }

  .page-products .sub-grid {
    gap: 3.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .console-card,
  .page-products .entry-card,
  .page-products .apps-links a {
    transition: none;
  }

  .page-products .console-card:hover,
  .page-products .entry-card:hover {
    transform: none;
  }
}
