.page-products {
  --page-bg-soft: rgba(10, 14, 39, 0.6);
  --page-line-angle: rgba(155, 48, 255, 0.28);
  --page-line-orange: rgba(255, 107, 0, 0.35);
  --page-deep-panel: #0A0E27;
  --page-panel: #1A1A2E;
  --page-ink: #05060F;
  --page-cyan: #00B4D8;
  --page-gold: #FFD700;
  --page-font-mono: "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page-radius: 0;
  background: var(--bg-deep);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.page-products::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(155, 48, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 48, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  z-index: 0;
}

.page-products .container {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.page-products .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.page-products .breadcrumb a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-products .breadcrumb a:hover {
  color: var(--orange);
}

.page-products .breadcrumb-sep {
  color: var(--purple);
  font-family: var(--page-font-mono);
}

.page-products .breadcrumb-current {
  color: var(--orange);
}

.page-products .document-head {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  position: relative;
}

.page-products .document-head::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--purple), transparent);
}

.page-products .head-row {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.page-products .section-label {
  display: inline-block;
  font-family: var(--page-font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(155, 48, 255, 0.14);
  border-left: 3px solid var(--purple);
  margin-bottom: 14px;
}

.page-products .section-label.is-orange {
  background: rgba(255, 107, 0, 0.14);
  border-left-color: var(--orange);
}

.page-products .section-label.is-purple {
  background: rgba(155, 48, 255, 0.14);
  border-left-color: var(--purple);
}

.page-products .display-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 900px;
  position: relative;
}

.page-products .display-title::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--orange);
  transform: skewX(-12deg);
  margin-left: 10px;
}

.page-products .head-lede {
  font-size: 16px;
  color: var(--gray);
  max-width: 760px;
  margin: 0;
  letter-spacing: 0.02em;
}

.page-products .parallel-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--page-font-mono);
  font-size: 12px;
  color: var(--muted);
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  border-left: 1px solid var(--page-line-angle);
  padding-left: 8px;
}

.page-products .doc-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.page-products .doc-index a {
  font-family: var(--page-font-mono);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-products .doc-index a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.page-products section {
  margin-bottom: 72px;
  scroll-margin-top: 80px;
}

.page-products .section-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.page-products .heading-mark {
  font-family: var(--page-font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
  padding-top: 4px;
  transform: skewX(-12deg);
  display: inline-block;
}

.page-products .section-heading h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin: 0 0 4px;
  line-height: 1.2;
}

.page-products .section-intro {
  color: var(--gray);
  font-size: 15px;
  max-width: 760px;
  margin: 0 0 0 56px;
}

/* 01 功能矩阵 */
.page-products .matrix-section {
  padding: 48px 0 0;
  position: relative;
}

.page-products .matrix-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: -20px;
  width: 46%;
  height: 230px;
  background: linear-gradient(115deg, transparent, rgba(155, 48, 255, 0.08));
  pointer-events: none;
}

.page-products .matrix-visual {
  margin: 28px 0 36px;
  max-width: 640px;
}

.page-products .matrix-visual img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.55));
}

.page-products .skill-tree {
  position: relative;
  margin-top: 20px;
}

.page-products .tree-root {
  display: flex;
  justify-content: flex-start;
  padding-left: 0;
}

.page-products .tree-node {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--page-panel);
  border-left: 3px solid var(--purple);
  position: relative;
  transition: background 0.2s ease, transform 0.2s ease;
  max-width: 640px;
}

.page-products .tree-node:hover {
  background: #22223A;
  transform: translateX(4px);
}

.page-products .tree-node.is-root {
  background: rgba(10, 14, 39, 0.9);
  border-left-color: var(--orange);
  transform: skewX(-2deg);
  width: 100%;
}

.page-products .tree-node.is-root:hover {
  transform: skewX(-2deg) translateX(4px);
}

.page-products .node-code {
  font-family: var(--page-font-mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  height: 100%;
  flex-shrink: 0;
}

.page-products .node-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%);
  flex-shrink: 0;
}

.page-products .tree-node.is-root .node-icon {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
}

.page-products .node-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.25;
}

.page-products .node-info p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.page-products .sub-tags {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.page-products .badge {
  display: inline-block;
  font-family: var(--page-font-mono);
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(0, 180, 216, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 180, 216, 0.3);
  letter-spacing: 0.06em;
}

.page-products .tree-branches {
  list-style: none;
  margin: 24px 0 0;
  padding: 0 0 0 40px;
  border-left: 1px dashed var(--page-line-angle);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-products .branch-item {
  position: relative;
  padding-left: 32px;
}

.page-products .branch-line {
  position: absolute;
  left: -41px;
  top: 0;
  width: 42px;
  height: 24px;
  border-left: 1px dashed var(--page-line-orange);
  border-bottom: 1px dashed var(--page-line-orange);
  pointer-events: none;
}

.page-products .tree-node.is-branch {
  border-left-color: var(--cyan);
}

/* 02 版本与适配 */
.page-products .version-section {
  padding: 48px 0 0;
}

.page-products .version-wrap {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.page-products .version-info {
  flex: 1;
}

.page-products .version-info .section-intro {
  margin-left: 0;
}

.page-products .version-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-products .version-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 16px 18px;
  background: rgba(26, 26, 46, 0.7);
  border-left: 2px solid var(--line);
  position: relative;
}

.page-products .version-item.is-current {
  background: rgba(155, 48, 255, 0.08);
  border-left-color: var(--purple);
}

.page-products .ver-code {
  font-family: var(--page-font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
  padding: 4px 10px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 215, 0, 0.25);
}

.page-products .version-item p {
  font-size: 14px;
  margin: 0;
  color: var(--gray);
}

.page-products .state-label {
  display: inline-block;
  font-family: var(--page-font-mono);
  font-size: 12px;
  margin-top: 6px;
  padding: 2px 8px;
}

.page-products .state-label.is-green {
  background: rgba(57, 255, 20, 0.1);
  color: var(--green);
  border: 1px solid rgba(57, 255, 20, 0.3);
}

.page-products .version-visual {
  flex: 1;
  margin: 0;
}

.page-products .version-visual img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

/* 03 快速修复 */
.page-products .fix-section {
  padding: 48px 0 0;
}

.page-products .fix-layout {
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-top: 20px;
}

.page-products .fix-visual {
  margin: 0;
  flex-shrink: 0;
}

.page-products .fix-visual img {
  width: 100%;
  height: auto;
  max-width: 500px;
  border: 1px solid var(--line);
}

.page-products .fix-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-products .step-item {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.page-products .step-item::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 60px;
  bottom: -18px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--page-line-orange) 0 4px, transparent 4px 8px);
  display: none;
}

.page-products .step-index {
  font-family: var(--page-font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--orange);
  padding-right: 14px;
  border-right: 2px solid var(--page-line-orange);
  flex-shrink: 0;
  line-height: 1;
  transform: skewX(-12deg);
}

.page-products .step-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}

.page-products .step-content p {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
}

.page-products .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 26px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.page-products .btn-primary {
  background: var(--orange);
  color: #000;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
}

.page-products .btn-primary:hover {
  background: #FF8A2A;
}

.page-products .btn-outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.page-products .btn-outline:hover {
  background: rgba(255, 107, 0, 0.12);
}

.page-products .btn-ghost {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}

.page-products .btn-ghost:hover {
  background: rgba(155, 48, 255, 0.14);
}

/* 04 数据服务能力 */
.page-products .data-section {
  padding: 48px 0 0;
  position: relative;
}

.page-products .data-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan));
}

.page-products .data-visual {
  margin: 24px 0 30px;
}

.page-products .data-visual img {
  width: 100%;
  height: auto;
  max-width: 700px;
  border: 1px solid var(--line);
  background: rgba(5, 6, 15, 0.6);
}

.page-products .data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.page-products .data-panel {
  background: var(--page-deep-panel);
  border: 1px solid var(--line);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.page-products .data-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 40%;
  height: 2px;
  background: var(--orange);
  transition: width 0.2s ease;
}

.page-products .data-panel:hover::before {
  width: 100%;
}

.page-products .panel-title {
  font-family: var(--page-font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-products .stat-num {
  font-family: var(--page-font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.page-products .data-panel p {
  font-size: 13px;
  color: var(--gray);
  margin: 4px 0 0;
}

/* 05 接入与下载 */
.page-products .access-section {
  padding: 48px 0 60px;
}

.page-products .access-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.page-products .access-visual {
  margin: 0;
  flex-shrink: 0;
}

.page-products .access-visual img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.page-products .access-info .section-intro {
  margin-left: 0;
}

.page-products .access-list {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-products .access-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

.page-products .access-code {
  font-family: var(--page-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0, 180, 216, 0.1);
  border: 1px solid rgba(0, 180, 216, 0.25);
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transform: skewX(-12deg);
}

.page-products .access-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* 桌面样式 */
@media (min-width: 768px) {
  .page-products .container {
    padding: 0 40px;
  }

  .page-products .head-lede {
    font-size: 17px;
  }

  .page-products section {
    margin-bottom: 96px;
  }

  .page-products .tree-branches {
    padding-left: 60px;
  }

  .page-products .tree-node {
    max-width: 720px;
  }

  .page-products .version-wrap {
    flex-direction: row;
    align-items: flex-start;
  }

  .page-products .version-info {
    flex: 1.2;
  }

  .page-products .version-visual {
    flex: 1;
    padding-top: 40px;
  }

  .page-products .fix-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .page-products .fix-visual {
    flex: 1;
    position: sticky;
    top: 96px;
    align-self: flex-start;
  }

  .page-products .fix-steps {
    flex: 1.3;
  }

  .page-products .step-item::before {
    display: block;
  }

  .page-products .data-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }

  .page-products .stat-num {
    font-size: 22px;
  }

  .page-products .access-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .page-products .access-visual {
    padding-left: 20px;
  }

  .page-products .access-info {
    flex: 1.4;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .page-products [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .page-products [data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
