.page-products {
  --apps-gap: clamp(20px, 3.4vw, 38px);
  --apps-card-bg: rgba(7, 11, 33, .86);
  --apps-card-bg-hover: rgba(13, 21, 64, .94);
  --apps-hair: rgba(118, 158, 224, .16);
  padding-bottom: clamp(56px, 9vw, 110px);
}

.page-products .apps-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(20px, 4vw, 44px) 0 clamp(30px, 5vw, 60px);
}

.page-products .apps-hero::before {
  content: "";
  position: absolute;
  inset: -14% -18% 24% -18%;
  z-index: 0;
  background:
    radial-gradient(58% 58% at 16% 8%, rgba(62, 224, 255, .16), transparent 70%),
    radial-gradient(46% 46% at 92% 0%, rgba(255, 106, 43, .12), transparent 72%);
  pointer-events: none;
}

.page-products .apps-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(26px, 4.6vw, 52px);
}

.page-products .apps-hero-copy h1 {
  margin: 14px 0 0;
  font-size: clamp(30px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 900;
  color: #ffffff;
}

.page-products .apps-hero-lede {
  margin: 20px 0 0;
  max-width: 54ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.9;
  color: var(--text-dim);
}

.page-products .apps-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 26px;
}

.page-products .apps-hero-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

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

.page-products .apps-hero-media {
  margin: 0;
}

.page-products .apps-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--apps-hair);
  border: 1px solid var(--apps-hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .hero-meta-item {
  display: grid;
  gap: 4px;
  padding: 13px 12px;
  background: rgba(7, 11, 33, .78);
}

.page-products .hero-meta-num {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.3vw, 22px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--cyan);
  line-height: 1.1;
}

.page-products .hero-meta-label {
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--text-mute);
  line-height: 1.5;
}

/* ---------- 主体分栏 ---------- */

.page-products .apps-body {
  display: grid;
  gap: clamp(26px, 4vw, 40px);
}

.page-products .apps-toc {
  border-top: 1px solid var(--line-strong);
  padding-top: 12px;
  min-width: 0;
}

.page-products .apps-toc-title {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.page-products .apps-toc-list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-products .apps-toc-list::-webkit-scrollbar {
  display: none;
}

.page-products .apps-toc-item {
  flex: 0 0 auto;
}

.page-products .apps-toc-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--apps-hair);
  border-radius: var(--radius);
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--text-mute);
  text-decoration: none;
  background: rgba(7, 11, 33, .6);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.page-products .apps-toc-link:hover,
.page-products .apps-toc-link.is-active {
  color: var(--cyan);
  border-color: rgba(62, 224, 255, .5);
  background: rgba(13, 21, 64, .9);
}

.page-products .toc-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--orange);
}

.page-products .apps-main {
  display: grid;
  gap: var(--apps-gap);
  min-width: 0;
}

/* ---------- 章节面板 ---------- */

.page-products .apps-section {
  position: relative;
  padding: clamp(22px, 3.8vw, 42px);
  background: linear-gradient(180deg, rgba(13, 21, 64, .74), rgba(7, 11, 33, .56));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  scroll-margin-top: 104px;
}

.page-products .apps-section::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed var(--apps-hair);
  border-radius: 2px;
  pointer-events: none;
}

.page-products .apps-section-head {
  position: relative;
  display: grid;
  gap: 6px;
}

.page-products .apps-num {
  font-family: var(--font-mono);
  font-size: clamp(36px, 6.4vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.06em;
  color: rgba(62, 224, 255, .24);
}

.page-products .apps-section-title {
  margin: 0;
  font-size: clamp(19px, 2.9vw, 29px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: #ffffff;
}

.page-products .apps-section-lede {
  margin: 8px 0 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-dim);
}

.page-products .apps-inline-media {
  margin: clamp(24px, 4vw, 38px) 0 0;
}

/* ---------- 场景堆叠 ---------- */

.page-products .scene-stack {
  display: grid;
  gap: 1px;
  margin: clamp(22px, 3.6vw, 34px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--apps-hair);
  border: 1px solid var(--apps-hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .scene-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 16px;
  padding: clamp(15px, 2.4vw, 22px);
  background: var(--apps-card-bg);
  transition: background .25s ease;
}

.page-products .scene-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(62, 224, 255, 0));
  opacity: 0;
  transition: opacity .25s ease;
}

.page-products .scene-item:hover {
  background: var(--apps-card-bg-hover);
}

.page-products .scene-item:hover::after {
  opacity: 1;
}

.page-products .scene-index {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--orange);
  padding-top: 4px;
}

.page-products .scene-body {
  min-width: 0;
}

.page-products .scene-title {
  margin: 0;
  font-size: clamp(15.5px, 2vw, 17px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.page-products .scene-text {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.88;
  color: var(--text-dim);
}

/* ---------- 路径卡片 ---------- */

.page-products .path-grid {
  display: grid;
  gap: 14px;
  margin-top: clamp(22px, 3.6vw, 34px);
}

.page-products .path-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(18px, 2.6vw, 26px);
  background: rgba(5, 8, 26, .7);
  border: 1px solid var(--apps-hair);
  border-radius: var(--radius);
  transition: border-color .25s ease, transform .25s ease;
}

.page-products .path-card:hover {
  border-color: rgba(62, 224, 255, .44);
  transform: translateY(-2px);
}

.page-products .path-title {
  margin: 2px 0 0;
  font-size: clamp(16px, 2.1vw, 18px);
  font-weight: 750;
  line-height: 1.45;
  color: #ffffff;
}

.page-products .path-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.88;
  color: var(--text-dim);
}

.page-products .path-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--gold);
}

/* ---------- 移动端分栏 ---------- */

.page-products .mobile-split {
  display: grid;
  gap: clamp(20px, 3.4vw, 32px);
  margin-top: clamp(22px, 3.6vw, 34px);
}

.page-products .apps-mobile-media {
  margin: 0;
  max-width: 340px;
}

.page-products .mobile-points {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--apps-hair);
  border: 1px solid var(--apps-hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-products .mobile-point {
  padding: clamp(15px, 2.4vw, 20px);
  background: var(--apps-card-bg);
}

.page-products .mobile-point-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--cyan);
}

.page-products .mobile-point-text {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.88;
  color: var(--text-dim);
}

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

.page-products .start-split {
  display: grid;
  gap: clamp(22px, 3.6vw, 34px);
  margin-top: clamp(22px, 3.6vw, 34px);
}

.page-products .step-track {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: appstep;
}

.page-products .step-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 0 0 clamp(18px, 3vw, 26px);
}

.page-products .step-item:last-child {
  padding-bottom: 0;
}

.page-products .step-item::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(62, 224, 255, .5), rgba(62, 224, 255, 0));
}

.page-products .step-item:last-child::before {
  display: none;
}

.page-products .step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(62, 224, 255, .5);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(5, 8, 26, .9);
}

.page-products .step-title {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #ffffff;
  grid-column: 2;
}

.page-products .step-text {
  grid-column: 2;
  margin: 0;
  font-size: 14px;
  line-height: 1.88;
  color: var(--text-dim);
}

.page-products .apps-step-media {
  margin: 0;
}

/* ---------- 更新与支持 ---------- */

.page-products .update-grid {
  display: grid;
  gap: 14px;
  margin-top: clamp(22px, 3.6vw, 34px);
}

.page-products .update-card {
  position: relative;
  padding: clamp(18px, 2.6vw, 26px);
  background: rgba(5, 8, 26, .7);
  border: 1px solid var(--apps-hair);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}

.page-products .update-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold);
}

.page-products .update-title {
  margin: 8px 0 0;
  font-size: clamp(16px, 2.1vw, 18px);
  font-weight: 750;
  line-height: 1.45;
  color: #ffffff;
}

.page-products .update-text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.88;
  color: var(--text-dim);
}

/* ---------- 行动区 ---------- */

.page-products .apps-cta {
  position: relative;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(255, 106, 43, .38);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(255, 106, 43, .2), transparent 68%),
    linear-gradient(180deg, rgba(13, 21, 64, .86), rgba(5, 8, 26, .92));
  overflow: hidden;
}

.page-products .apps-cta-inner {
  position: relative;
  max-width: 62ch;
}

.page-products .apps-cta-title {
  margin: 0;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 850;
  line-height: 1.28;
  letter-spacing: -.015em;
  color: #ffffff;
}

.page-products .apps-cta-text {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-dim);
}

.page-products .apps-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 24px;
}

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

@media (min-width: 640px) {
  .page-products .path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 768px) {
  .page-products .apps-section-head {
    grid-template-columns: minmax(74px, auto) minmax(0, 1fr);
    column-gap: 22px;
    align-items: start;
  }

  .page-products .apps-num {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .page-products .apps-section-title {
    grid-column: 2;
    grid-row: 1;
  }

  .page-products .apps-section-lede {
    grid-column: 2;
    grid-row: 2;
  }

  .page-products .mobile-split {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    align-items: start;
  }

  .page-products .start-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

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

@media (min-width: 1024px) {
  .page-products .apps-body {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: clamp(34px, 4vw, 62px);
    align-items: start;
  }

  .page-products .apps-toc {
    position: sticky;
    top: 100px;
  }

  .page-products .apps-toc-list {
    display: grid;
    gap: 0;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-products .apps-toc-item {
    flex: none;
  }

  .page-products .apps-toc-link {
    display: flex;
    width: 100%;
    padding: 9px 0;
    border: 0;
    border-bottom: 1px dashed var(--apps-hair);
    border-radius: 0;
    background: none;
    font-size: 13px;
    white-space: normal;
  }

  .page-products .apps-toc-link:hover,
  .page-products .apps-toc-link.is-active {
    background: none;
    border-bottom-color: rgba(62, 224, 255, .55);
  }

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

@media (min-width: 1200px) {
  .page-products .apps-hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .page-products .hero-meta-num {
    font-size: 15px;
  }

  .page-products .apps-hero-actions .btn,
  .page-products .apps-cta-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .path-card:hover {
    transform: none;
  }
}
