.page-products {
  background: var(--c-deep);
  color: var(--c-text-light);
  --p-tree-line: rgba(57, 255, 136, 0.32);
  --p-tree-dot: rgba(57, 255, 136, 0.9);
  --p-feature-border: rgba(57, 255, 136, 0.14);
  overflow-x: hidden;
}

.page-products .p-hero {
  position: relative;
  padding: 64px 0 56px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 107, 53, 0.18), transparent 280px),
    linear-gradient(118deg, var(--c-deep) 0%, var(--c-blue) 58%, rgba(26, 58, 107, 0.65) 58%, rgba(57, 255, 136, 0.08) 100%);
  border-bottom: 1px solid var(--c-glow);
}

.page-products .p-hero__grid {
  display: grid;
  gap: 40px;
  margin-top: 40px;
  align-items: end;
}

.page-products .p-hero__index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.page-products .p-hero h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--c-text-light);
}

.page-products .p-hero__lead {
  max-width: 540px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(229, 232, 240, 0.82);
  margin: 0 0 36px;
}

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

.page-products .p-hero__anchor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-light);
  border: 1px solid rgba(57, 255, 136, 0.35);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.page-products .p-hero__anchor:hover {
  background: var(--c-green);
  color: var(--c-deep);
  border-color: var(--c-green);
  transform: translateY(-2px);
}

.page-products .p-hero__anchor-num {
  color: var(--c-orange);
  font-size: 12px;
}

.page-products .p-hero__anchors a:hover .p-hero__anchor-num {
  color: var(--c-deep);
}

.page-products .p-hero__stats {
  display: grid;
  gap: 14px;
}

.page-products .p-hero__stats .panel-data {
  background: rgba(26, 58, 107, 0.72);
  border: 1px solid rgba(57, 255, 136, 0.2);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  backdrop-filter: blur(6px);
}

.page-products .p-hero__stats .panel-data__value {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--c-green);
  display: block;
  margin: 4px 0 2px;
}

.page-products .p-hero__stats .panel-data:nth-child(2) .panel-data__value {
  color: var(--c-orange);
}

/* ---- 技能树 ---- */
.page-products .p-tree {
  position: relative;
  margin: 48px 0 56px;
  padding: 30px 22px;
  background: linear-gradient(180deg, rgba(26, 58, 107, 0.52), rgba(11, 27, 61, 0.72));
  border: 1px solid rgba(57, 255, 136, 0.18);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.page-products .p-tree__svg {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.page-products .p-tree__core {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
}

.page-products .p-tree__core-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--c-deep);
  border: 2px solid var(--c-green);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 0 32px rgba(57, 255, 136, 0.22);
  max-width: 320px;
  width: 100%;
}

.page-products .p-tree__core-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--c-text-light);
}

.page-products .p-tree__core-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-text-muted);
}

.page-products .p-tree__branch {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--c-blue);
  border: 1px solid rgba(57, 255, 136, 0.18);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  text-decoration: none;
  color: var(--c-text-light);
  position: relative;
  z-index: 3;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-products .p-tree__branch:hover {
  background: rgba(57, 255, 136, 0.16);
  border-color: var(--c-green);
  box-shadow: 0 0 28px rgba(57, 255, 136, 0.18);
}

.page-products .p-tree__branch-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-orange);
}

.page-products .p-tree__branch-name {
  font-weight: 700;
  font-size: 16px;
}

.page-products .p-tree__branch-sub {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-muted);
  white-space: nowrap;
}

/* ---- 概览图片 ---- */
.page-products .p-overview__media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 40px;
}

.page-products .p-overview__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(57, 255, 136, 0.22);
  box-shadow: var(--shadow-lg);
}

.page-products .p-overview__caption {
  padding: 0 4px;
}

.page-products .p-overview__caption p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(229, 232, 240, 0.78);
}

/* ---- 核心功能 ---- */
.page-products .p-features {
  padding-top: 16px;
}

.page-products .p-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 44px 0;
  border-top: 1px solid var(--p-feature-border);
}

.page-products .p-feature__index {
  font-family: var(--font-mono);
  font-size: 64px;
  line-height: 0.9;
  font-weight: 800;
  color: rgba(57, 255, 136, 0.14);
  letter-spacing: -0.04em;
  -webkit-user-select: none;
  user-select: none;
}

.page-products .p-feature__content h3 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--c-text-light);
  letter-spacing: -0.01em;
}

.page-products .p-feature__lead {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(229, 232, 240, 0.82);
  margin: 0 0 20px;
}

.page-products .p-feature__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .p-feature__list li {
  padding-left: 26px;
  position: relative;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(229, 232, 240, 0.88);
}

.page-products .p-feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 2px;
  background: var(--c-green);
  border-radius: 2px;
}

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

.page-products .p-feature__metrics .stat__value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: var(--c-green);
}

.page-products .p-feature__metrics .stat--orange .stat__value {
  color: var(--c-orange);
}

.page-products .p-feature__metrics .stat__label {
  font-size: 13px;
  color: var(--c-text-muted);
  display: block;
  margin-top: 2px;
}

.page-products .p-feature__aside {
  background: rgba(26, 58, 107, 0.55);
  border: 1px solid rgba(57, 255, 136, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  align-self: start;
}

.page-products .p-feature__aside-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-orange);
  display: inline-block;
  margin-bottom: 10px;
}

.page-products .p-feature__aside p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(229, 232, 240, 0.8);
  margin: 0 0 18px;
}

.page-products .p-feature__panel {
  align-self: center;
  justify-self: stretch;
}

.page-products .p-feature__panel .panel-data {
  background: rgba(26, 58, 107, 0.6);
  border: 1px solid rgba(255, 107, 53, 0.32);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.page-products .p-feature__panel .panel-data__value {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  color: var(--c-orange);
  display: block;
  margin: 6px 0 4px;
}

.page-products .p-feature__chipbox {
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-products .p-feature__media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(57, 255, 136, 0.18);
  box-shadow: var(--shadow-lg);
}

/* ---- 应用场景 ---- */
.page-products .p-scenes {
  padding-top: 24px;
}

.page-products .p-scenes .section-head__title {
  color: var(--c-text-dark);
}

.page-products .p-scenes .section-head__note {
  color: rgba(11, 27, 61, 0.64);
}

.page-products .p-scenes__media {
  margin-top: 36px;
}

.page-products .p-scenes__media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(11, 27, 61, 0.14);
  display: block;
}

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

.page-products .p-scene-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: 0 8px 32px rgba(11, 27, 61, 0.08);
  color: var(--c-text-dark);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.page-products .p-scene-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(11, 27, 61, 0.14);
}

.page-products .p-scene-card__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-orange);
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 999px;
}

.page-products .p-scene-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--c-text-dark);
}

.page-products .p-scene-card p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(11, 27, 61, 0.72);
  margin: 0 0 18px;
}

.page-products .p-scene-card__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-products .p-scene-card__steps span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(11, 27, 61, 0.66);
  background: rgba(57, 255, 136, 0.14);
  border: 1px solid rgba(57, 255, 136, 0.28);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ---- 版本演进 ---- */
.page-products .p-evolution__track {
  display: grid;
  gap: 20px;
  margin: 40px 0 44px;
}

.page-products .p-evo-item {
  background: var(--c-blue);
  border: 1px solid rgba(57, 255, 136, 0.16);
  border-left: 3px solid var(--c-green);
  border-radius: var(--radius-md);
  padding: 26px 28px;
}

.page-products .p-evo-item__ver {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-green);
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--c-glow);
  border-radius: 999px;
  margin-bottom: 14px;
}

.page-products .p-evo-item h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--c-text-light);
}

.page-products .p-evo-item p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(229, 232, 240, 0.76);
  margin: 0;
}

.page-products .p-evo-item--current {
  background: linear-gradient(135deg, rgba(57, 255, 136, 0.14), rgba(26, 58, 107, 0.92));
  border-left-color: var(--c-orange);
  box-shadow: 0 0 36px rgba(57, 255, 136, 0.14);
}

.page-products .p-evo-item--current .p-evo-item__ver {
  color: var(--c-orange);
  border-color: rgba(255, 107, 53, 0.4);
}

.page-products .p-evo-item--current ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-products .p-evo-item--current li {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(229, 232, 240, 0.84);
  padding-left: 20px;
  position: relative;
}

.page-products .p-evo-item--current li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 2px;
  background: var(--c-orange);
  border-radius: 2px;
}

.page-products .p-evolution__media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(57, 255, 136, 0.2);
  box-shadow: var(--shadow-lg);
}

/* ---- CTA ---- */
.page-products .p-cta {
  padding-top: 8px;
  padding-bottom: 72px;
}

.page-products .p-cta__inner {
  border-radius: var(--radius-lg);
  padding: 52px 32px;
  background: linear-gradient(135deg, rgba(26, 58, 107, 0.85), rgba(11, 27, 61, 0.95));
  border: 1px solid var(--c-glow);
  text-align: center;
}

.page-products .p-cta__inner h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--c-text-light);
}

.page-products .p-cta__inner p {
  font-size: 16px;
  color: rgba(229, 232, 240, 0.78);
  margin: 0 0 28px;
}

.page-products .p-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---- 技能树桌面版 ---- */
@media (min-width: 768px) {
  .page-products .p-hero__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 56px;
    margin-top: 56px;
  }

  .page-products .p-overview__media {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 40px;
  }

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

  .page-products .p-feature__index {
    font-size: 88px;
    grid-row: 1 / span 2;
  }

  .page-products .p-scenes__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .page-products .p-evolution__track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .page-products .p-evo-item--current {
    transform: translateY(-8px);
  }
}

@media (min-width: 1024px) {
  .page-products .p-tree {
    display: block;
    min-height: 460px;
    padding: 0;
    background: radial-gradient(circle at 50% 50%, rgba(57, 255, 136, 0.08), transparent 380px);
    border-color: rgba(57, 255, 136, 0.14);
  }

  .page-products .p-tree__svg {
    display: block;
  }

  .page-products .p-tree__line {
    fill: none;
    stroke: var(--p-tree-line);
    stroke-width: 2;
    stroke-dasharray: 4 8;
    animation: p-tree-dash 1.8s linear infinite;
  }

  .page-products .p-tree__dot {
    fill: var(--p-tree-dot);
  }

  .page-products .p-tree__core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: block;
  }

  .page-products .p-tree__core-node {
    margin: 0;
    min-width: 230px;
  }

  .page-products .p-tree__branch {
    position: absolute;
    width: 250px;
    padding: 17px 20px;
    z-index: 3;
  }

  .page-products .p-tree__branch--1 {
    left: 3%;
    top: calc(50% - 38px);
  }

  .page-products .p-tree__branch--1:hover {
    transform: translateX(5px);
  }

  .page-products .p-tree__branch--2 {
    right: 3%;
    top: 4%;
  }

  .page-products .p-tree__branch--2:hover {
    transform: translate(-5px, 4px);
  }

  .page-products .p-tree__branch--3 {
    right: 3%;
    top: calc(50% - 38px);
  }

  .page-products .p-tree__branch--3:hover {
    transform: translateX(-5px);
  }

  .page-products .p-tree__branch--4 {
    right: 3%;
    bottom: 4%;
  }

  .page-products .p-tree__branch--4:hover {
    transform: translate(-5px, -4px);
  }

  .page-products .p-feature {
    grid-template-columns: 96px minmax(0, 1fr) 320px;
    grid-template-areas: "num content aside";
    gap: 48px;
    padding: 64px 0;
  }

  .page-products .p-feature__index {
    grid-area: num;
    font-size: 128px;
  }

  .page-products .p-feature__content {
    grid-area: content;
  }

  .page-products .p-feature__aside,
  .page-products .p-feature__panel,
  .page-products .p-feature__chipbox,
  .page-products .p-feature__media {
    grid-area: aside;
  }

  .page-products .p-feature--report {
    grid-template-areas: "num aside content";
    grid-template-columns: 96px 300px minmax(0, 1fr);
  }

  .page-products .p-feature--local {
    grid-template-areas: "num content aside";
    grid-template-columns: 96px minmax(0, 1fr) 300px;
  }

  .page-products .p-feature--history {
    grid-template-areas: "num content aside";
    grid-template-columns: 96px minmax(0, 1fr) 340px;
  }

  .page-products .p-feature--member {
    grid-template-areas: "num aside content";
    grid-template-columns: 96px 340px minmax(0, 1fr);
  }

  .page-products .p-feature__media img {
    height: auto;
  }

  .page-products .p-evolution__media {
    margin-top: 44px;
  }

  .page-products .p-evolution__media img {
    display: block;
    margin-left: auto;
    margin-right: 0;
    max-width: 86%;
  }
}

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

  .page-products .p-tree__branch,
  .page-products .p-scene-card,
  .page-products .p-hero__anchor {
    transition: none;
  }
}

@keyframes p-tree-dash {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -24;
  }
}
