.page-products {
  --glow-gold: rgba(255, 215, 0, 0.14);
  --glow-purple: rgba(138, 43, 226, 0.22);
  --glow-cyan: rgba(0, 229, 255, 0.12);
}

/* ==================== HERO ==================== */
.page-products .product-hero {
  position: relative;
  overflow: hidden;
  padding-top: 28px;
  padding-bottom: 64px;
  background:
    linear-gradient(130deg, rgba(138, 43, 226, 0.28) 0%, transparent 46%),
    radial-gradient(circle at 88% 22%, rgba(255, 215, 0, 0.12), transparent 38%),
    var(--night);
  border-bottom: 1px solid var(--mid);
}
.page-products .product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 42, 84, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 42, 84, 0.5) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 60%, transparent);
  pointer-events: none;
}
.page-products .product-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  background: linear-gradient(135deg, transparent 50%, var(--night) 50%);
  z-index: 1;
}
.page-products .product-hero__inner {
  position: relative;
  z-index: 2;
}
.page-products .product-hero__grid {
  display: grid;
  gap: 28px;
  margin-top: 26px;
}
.page-products .product-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.35);
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(255, 215, 0, 0.05);
  margin-bottom: 18px;
}
.page-products .product-hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1.05;
  margin: 0 0 10px;
  color: var(--light);
  text-shadow: 0 0 28px rgba(255, 215, 0, 0.16), 0 0 56px rgba(138, 43, 226, 0.24);
}
.page-products .product-hero__lead {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 14px;
}
.page-products .product-hero__desc {
  max-width: 620px;
  color: var(--pale);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 22px;
}
.page-products .product-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-products .product-hero__panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: linear-gradient(180deg, var(--deep), rgba(18, 26, 58, 0.94));
  border: 1px solid var(--mid);
  border-radius: 6px 18px 6px 18px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  position: relative;
}
.page-products .product-hero__panel::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 26px;
  height: 26px;
  background: var(--purple);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}
.page-products .product-hero__stat {
  padding: 18px 14px;
  border-right: 1px solid rgba(31, 42, 84, 0.8);
  border-bottom: 1px solid rgba(31, 42, 84, 0.8);
  text-align: center;
}
.page-products .product-hero__stat:nth-child(2n) {
  border-right: 0;
}
.page-products .product-hero__stat:nth-child(n+3) {
  border-bottom: 0;
}
.page-products .product-hero__stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--gold);
}
.page-products .product-hero__stat-label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--pale);
}

/* ==================== 服务全景 ==================== */
.page-products .service-panorama {
  background:
    linear-gradient(115deg, rgba(138, 43, 226, 0.09), transparent 46%),
    var(--night);
  border-bottom: 1px solid var(--mid);
}
.page-products .service-panorama__layout {
  display: grid;
  gap: 30px;
}
.page-products .service-panorama__tree {
  min-width: 0;
}
.page-products .service-panorama__side {
  display: grid;
  gap: 20px;
  align-content: start;
}
.page-products .service-panorama__rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  background: var(--deep);
  border: 1px solid var(--mid);
  border-radius: 6px 16px 6px 16px;
}
.page-products .service-panorama__rail-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: var(--pale);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.page-products .service-panorama__rail-link::before {
  content: "◈";
  color: var(--purple);
  font-size: 12px;
}
.page-products .service-panorama__rail-link:hover,
.page-products .service-panorama__rail-link:focus-visible {
  color: var(--gold);
  border-color: rgba(255, 215, 0, 0.35);
  background: rgba(255, 215, 0, 0.05);
}
.page-products .service-panorama__preview {
  margin: 0;
  border: 1px solid var(--mid);
  border-radius: 6px 16px 6px 16px;
  overflow: hidden;
  background: var(--deep);
}
.page-products .service-panorama__preview img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.page-products .service-panorama__preview figcaption {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--pale);
  border-top: 1px solid var(--mid);
}

/* 桌面端技能树 */
.page-products .service-tree {
  display: none;
}

/* 移动端步骤路径 */
.page-products .service-tree__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.page-products .service-tree__step {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--deep);
  border: 1px solid var(--mid);
  border-radius: 6px 14px 6px 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}
.page-products .service-tree__step-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--night);
  font-weight: 700;
  border-radius: 6px;
  font-size: 14px;
}
.page-products .service-tree__step-body {
  min-width: 0;
}
.page-products .service-tree__step-title {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--light);
}
.page-products .service-tree__step-text {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--pale);
}
.page-products .service-tree__step-link {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.2s, color 0.2s;
}
.page-products .service-tree__step-link:hover {
  border-bottom-color: var(--cyan);
  color: var(--gold);
}

/* ==================== 服务详情 ==================== */
.page-products .service-detail {
  padding-block: 48px 56px;
  overflow: hidden;
}
.page-products .service-detail--alt {
  background: linear-gradient(100deg, rgba(138, 43, 226, 0.06), transparent 38%), var(--night);
  border-top: 1px solid var(--mid);
  border-bottom: 1px solid var(--mid);
}
.page-products .service-detail__inner {
  display: grid;
  gap: 28px;
  align-items: center;
}
.page-products .service-detail__copy {
  min-width: 0;
}
.page-products .service-detail__text {
  margin: 0 0 18px;
  line-height: 1.75;
  color: var(--pale);
}
.page-products .service-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.page-products .feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 4px 10px 4px 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
}
.page-products .feature-tag--gold {
  color: var(--gold);
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.07);
}
.page-products .feature-tag--purple {
  color: #c58fff;
  border-color: rgba(138, 43, 226, 0.45);
  background: rgba(138, 43, 226, 0.12);
}
.page-products .feature-tag--cyan {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.07);
}
.page-products .column-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
  background: var(--deep);
  border: 1px solid var(--mid);
  border-radius: 6px 16px 6px 16px;
}
.page-products .column-list__item {
  position: relative;
  padding-left: 18px;
  color: var(--light);
  font-size: 14px;
  line-height: 1.5;
}
.page-products .column-list__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: var(--purple);
  transform: rotate(45deg);
}
.page-products .service-detail__link {
  display: inline-block;
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.2s, color 0.2s;
}
.page-products .service-detail__link:hover {
  color: var(--gold);
  border-bottom-color: currentColor;
}
.page-products .service-detail__media {
  min-width: 0;
}
.page-products .service-detail__figure {
  margin: 0;
  border: 1px solid var(--mid);
  border-radius: 6px 18px 6px 18px;
  overflow: hidden;
  background: var(--deep);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
.page-products .service-detail__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.page-products .service-detail__figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--pale);
  border-top: 1px solid var(--mid);
}

/* ==================== 功能列表 ==================== */
.page-products .feature-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.page-products .feature-list__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(18, 26, 58, 0.65);
  border: 1px solid var(--mid);
  border-radius: 4px 12px 4px 12px;
}
.page-products .feature-list__icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: var(--light);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}
.page-products .feature-list__body {
  min-width: 0;
}
.page-products .feature-list__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  font-family: var(--font-head);
}
.page-products .feature-list__text {
  margin: 0;
  font-size: 14px;
  color: var(--pale);
  line-height: 1.6;
}

/* ==================== 案例合集标签行 ==================== */
.page-products .tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.page-products .tool-row__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.05);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 500;
}

/* ==================== 实用工具区 ==================== */
.page-products .service-tools {
  padding-block: 48px 56px;
  background:
    radial-gradient(circle at 12% 80%, rgba(138, 43, 226, 0.12), transparent 26%),
    radial-gradient(circle at 88% 10%, rgba(255, 215, 0, 0.08), transparent 22%),
    var(--night);
  border-top: 1px solid var(--mid);
}
.page-products .service-tools__grid {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}
.page-products .tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--deep);
  border: 1px solid var(--mid);
  border-radius: 6px 18px 6px 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.page-products .tool-card:hover {
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.16), 0 16px 36px rgba(0, 0, 0, 0.3);
}
.page-products .tool-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.page-products .tool-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--purple), #5b13b9);
  color: var(--light);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
}
.page-products .tool-card__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--light);
}
.page-products .tool-card__text {
  margin: 0;
  color: var(--pale);
  line-height: 1.7;
  font-size: 15px;
  flex: 1;
}
.page-products .tool-card__bar {
  height: 10px;
  border-radius: 999px;
  background: var(--mid);
  overflow: hidden;
  margin-top: 18px;
}
.page-products .tool-card__bar-fill {
  display: block;
  height: 100%;
  width: 73%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--purple), var(--cyan));
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}
.page-products .tool-card__bar-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--pale);
}
.page-products .tool-card__badge {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 14px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.05);
  border-radius: 4px;
}
.page-products .version-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 4px 12px 4px 12px;
}
.page-products .version-badge__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 40px;
  font-size: 22px;
  font-weight: 700;
  color: var(--night);
  background: var(--gold);
  border-radius: 4px;
}
.page-products .version-badge__label {
  font-size: 14px;
  color: var(--light);
}
.page-products .service-tools__preview {
  margin: 22px 0 0;
  border: 1px solid var(--mid);
  border-radius: 6px 18px 6px 18px;
  overflow: hidden;
  background: var(--deep);
}
.page-products .service-tools__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.page-products .service-tools__figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--pale);
  border-top: 1px solid var(--mid);
}

/* ==================== 下一步 ==================== */
.page-products .service-next {
  padding-block: 40px 64px;
  border-top: 1px solid var(--mid);
}
.page-products .service-next__grid {
  display: grid;
  gap: 16px;
}
.page-products .service-next__card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--deep);
  border: 1px solid var(--mid);
  border-radius: 6px 16px 6px 16px;
}
.page-products .service-next__title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--light);
}
.page-products .service-next__text {
  margin: 0 0 16px;
  color: var(--pale);
  line-height: 1.6;
}
.page-products .service-next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.page-products .service-next__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.page-products .service-next__link {
  color: var(--pale);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  transition: color 0.2s, border-bottom-color 0.2s;
}
.page-products .service-next__link::before {
  content: "→";
  color: var(--gold);
}
.page-products .service-next__link:hover {
  color: var(--gold);
  border-bottom-color: currentColor;
}

/* ==================== 桌面增强 ==================== */
@media (min-width: 560px) {
  .page-products .column-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 720px) {
  .page-products .service-next__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .page-products .product-hero__grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
  }
  .page-products .product-hero {
    padding-bottom: 72px;
  }
  .page-products .service-panorama__layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
    align-items: start;
  }
  .page-products .service-panorama__rail {
    flex-direction: column;
  }
  .page-products .service-detail__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 40px;
  }
  .page-products .service-detail--alt .service-detail__inner {
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  }
  .page-products .service-detail--alt .service-detail__media {
    order: -1;
  }
  .page-products .service-tools__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-products .tool-card--wide {
    grid-column: 1 / -1;
  }

  /* 桌面端技能树 */
  .page-products .service-tree__steps {
    display: none;
  }
  .page-products .service-tree {
    display: block;
    position: relative;
    max-width: 720px;
    margin-inline: auto;
  }
  .page-products .service-tree__svg {
    display: block;
    width: 100%;
    height: auto;
  }
  .page-products .service-tree__line {
    fill: none;
    stroke: var(--purple);
    stroke-width: 2;
    stroke-dasharray: 5 6;
    opacity: 0.65;
  }
  .page-products .service-tree__node {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 140px;
    height: 60px;
    padding: 0 10px;
    background: var(--deep);
    border: 1px solid var(--mid);
    border-radius: 4px 12px 4px 12px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  }
  .page-products .service-tree__node:hover,
  .page-products .service-tree__node:focus-visible {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), 0 14px 28px rgba(0, 0, 0, 0.35);
  }
  .page-products .service-tree__node--root,
  .page-products .service-tree__node--join {
    width: 170px;
    left: 50%;
    transform: translateX(-50%);
  }
  .page-products .service-tree__node--root {
    top: 2.8%;
  }
  .page-products .service-tree__node--branch1 {
    left: 8.75%;
    top: 41.2%;
  }
  .page-products .service-tree__node--branch2 {
    left: 50%;
    top: 41.2%;
    transform: translateX(-50%);
  }
  .page-products .service-tree__node--branch3 {
    left: 73.75%;
    top: 41.2%;
  }
  .page-products .service-tree__node--join {
    top: 79.4%;
  }
  .page-products .service-tree__node-name {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    color: var(--light);
    line-height: 1.25;
  }
  .page-products .service-tree__node-role {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pale);
  }
}
