/* ===== 服务专区页面专属样式 ===== */
.page-products {
  --page-soft-red: rgba(123, 12, 27, 0.42);
  --page-gold-line: rgba(212, 175, 55, 0.4);
  --page-ink: #181822;
  background-color: var(--color-night);
  color: var(--color-rice);
}

/* ---------- 英雄区域 ---------- */
.products-hero {
  position: relative;
  padding: 3rem 0 2.5rem;
  background: linear-gradient(135deg, var(--color-deep-red) 0%, var(--color-night) 55%, var(--color-night-soft) 100%);
  border-bottom: 1px solid var(--page-gold-line);
  overflow: hidden;
}
.products-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 320px;
  height: 320px;
  border: 1px dashed rgba(212, 175, 55, 0.18);
  border-radius: 50%;
  pointer-events: none;
}
.products-hero::after {
  content: "";
  position: absolute;
  left: 8%;
  bottom: -90px;
  width: 260px;
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(230, 0, 18, 0.25), transparent 70%);
  pointer-events: none;
}
.products-hero-bg {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0, transparent 24px, rgba(245, 240, 225, 0.025) 24px, rgba(245, 240, 225, 0.025) 26px);
  pointer-events: none;
}
.products-hero .breadcrumb {
  margin-bottom: 2rem;
}
.products-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.products-hero-copy .section-number {
  font-family: var(--font-num);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  color: var(--color-gold-light);
  margin-bottom: 0.5rem;
  display: inline-block;
}
.products-hero h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--color-rice);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}
.products-hero-lead {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 680px;
  color: rgba(245, 240, 225, 0.82);
  margin: 0;
}
.products-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}
.products-stat {
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid var(--page-gold-line);
  border-radius: var(--radius-md);
  padding: 0.9rem 0.75rem;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.products-stat:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold);
}
.products-stat-num {
  display: block;
  font-family: var(--font-num);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.02em;
}
.products-stat-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: rgba(245, 240, 225, 0.7);
}

/* ---------- 主体栅格 ---------- */
.products-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem var(--container-pad) 4rem;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
}

/* ---------- 技能树菜单 ---------- */
.products-skill-tree {
  position: static;
  background: var(--color-night-soft);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-lg);
  padding: 1rem;
}
.path-tree {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.path-node {
  position: relative;
  border-radius: var(--radius-md);
  background: transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.path-node.is-active {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.45);
}
.path-node-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  color: var(--color-rice);
  text-decoration: none;
  border-radius: var(--radius-md);
}
.path-node-link:hover {
  color: var(--color-gold-light);
}
.path-node-marker {
  font-family: var(--font-num);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(212, 175, 55, 0.7);
  min-width: 1.8rem;
  text-align: center;
}
.path-node.is-active .path-node-marker {
  color: var(--color-gold);
}
.path-node-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.path-node-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-rice);
}
.path-node-desc {
  font-size: 0.78rem;
  color: rgba(245, 240, 225, 0.6);
}
.path-node.is-active .path-node-desc {
  color: rgba(212, 175, 55, 0.8);
}

/* ---------- 详情区块 ---------- */
.products-detail {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.products-card-block {
  background: var(--color-night-soft);
  border: 1px solid rgba(245, 240, 225, 0.08);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-card);
}
.products-card-block .section-head {
  margin-bottom: 1.5rem;
}
.products-card-block .section-number {
  font-family: var(--font-num);
  font-size: 0.85rem;
  color: var(--color-china-red);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.products-card-block .section-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  color: var(--color-rice);
  margin: 0.3rem 0 0.4rem;
}
.products-card-block .section-sub {
  font-size: 0.95rem;
  color: rgba(245, 240, 225, 0.7);
  margin: 0;
  line-height: 1.7;
}

/* ---------- 内部双列（文本+图） ---------- */
.products-inner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
.products-inner-reverse .products-text-side {
  order: 2;
}
.products-inner-reverse .figure {
  order: 1;
}
.products-text-side p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(245, 240, 225, 0.78);
  margin: 0 0 1rem;
}
.products-feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.products-feature-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(245, 240, 225, 0.85);
}
.products-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  background: var(--color-china-red);
  transform: rotate(45deg);
}
.products-feature-list strong {
  color: var(--color-gold-light);
  font-weight: 600;
}
.products-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

/* ---------- 数据查询工具区域 ---------- */
.products-query-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.products-query-tool {
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}
.products-query-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-gold-light);
  margin: 0 0 0.5rem;
}
.products-query-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(245, 240, 225, 0.72);
  margin: 0 0 1rem;
}
.products-query-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.products-query-badge {
  background: rgba(123, 12, 27, 0.55);
  border: 1px solid rgba(230, 0, 18, 0.4);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: var(--color-rice);
  padding: 0.28rem 0.7rem;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}
.products-step-list {
  margin: 0;
  padding: 0 0 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.products-step-list li {
  font-size: 0.88rem;
  color: rgba(245, 240, 225, 0.8);
  line-height: 1.6;
}
.products-step-list li::marker {
  color: var(--color-gold);
  font-weight: 700;
}
.products-query-chart {
  margin: 1rem 0 0.75rem;
}
.products-chart-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(245, 240, 225, 0.65);
  margin-bottom: 0.3rem;
}
.products-chart-track {
  height: 12px;
  background: rgba(245, 240, 225, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.products-chart-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-deep-red), var(--color-gold));
  font-size: 0;
  min-width: 2%;
  position: relative;
}
.products-chart-fill::after {
  content: attr(style);
  font-size: 0;
}
.products-chart-note {
  font-size: 0.75rem;
  color: rgba(245, 240, 225, 0.5);
  margin: 0;
}
.products-query-figure {
  margin: 0;
}

/* ---------- 导出区 ---------- */
.products-export-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
.products-export-copy p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(245, 240, 225, 0.78);
  margin: 0 0 1rem;
}
.products-export-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.products-export-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(245, 240, 225, 0.85);
}
.products-export-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  background: var(--color-gold);
  border-radius: 50%;
}
.products-export-list strong {
  color: var(--color-gold-light);
  font-weight: 600;
}
.products-export-figure {
  margin: 0;
}

/* ---------- 生态图与对比表 ---------- */
.products-ecosystem-figure {
  margin: 0 0 1.5rem;
}
.products-compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.products-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 540px;
}
.products-compare-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.products-compare-table th,
.products-compare-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(245, 240, 225, 0.08);
  text-align: left;
  color: rgba(245, 240, 225, 0.85);
  line-height: 1.5;
}
.products-compare-table thead th {
  background: rgba(123, 12, 27, 0.65);
  color: var(--color-rice);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--color-gold);
}
.products-compare-table tbody th {
  background: rgba(18, 18, 26, 0.6);
  color: var(--color-gold-light);
  font-weight: 600;
  white-space: nowrap;
}
.products-compare-table tbody tr:nth-child(even) td {
  background: rgba(212, 175, 55, 0.04);
}
.products-compare-table tbody tr:hover td {
  background: rgba(212, 175, 55, 0.1);
}
.products-compare-table tbody tr:last-child td {
  border-bottom: none;
}
.products-compare-tip {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: rgba(245, 240, 225, 0.6);
  line-height: 1.7;
  padding: 0.9rem 1rem;
  background: rgba(92, 122, 92, 0.12);
  border-left: 3px solid var(--color-moss);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- 底部引导 ---------- */
.products-guide-bar {
  background: linear-gradient(120deg, var(--color-deep-red) 0%, var(--color-night) 100%);
  border-top: 1px solid var(--page-gold-line);
  padding: 2.5rem var(--container-pad);
}
.products-guide-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.products-guide-copy h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-rice);
  margin: 0 0 0.4rem;
}
.products-guide-copy p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(245, 240, 225, 0.7);
}
.products-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- 通用辅助 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 图片占位协议统一行为 */
.page-products img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}
.page-products .figure {
  display: block;
  margin: 0;
  position: relative;
}
.page-products .figure img {
  width: 100%;
}
.page-products .figure-figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(245, 240, 225, 0.55);
  line-height: 1.5;
}

/* ---------- 桌面端（≥960px） ---------- */
@media (min-width: 960px) {
  .products-hero {
    padding: 4.5rem 0 3.5rem;
  }
  .products-hero-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .products-hero-stats {
    min-width: 320px;
    gap: 1rem;
  }
  .products-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
  .products-skill-tree {
    position: sticky;
    top: calc(var(--container-pad) + 60px);
  }
  .products-card-block {
    padding: 2.2rem;
  }
  .products-inner-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .products-inner-reverse .products-text-side {
    order: 1;
  }
  .products-inner-reverse .figure {
    order: 2;
  }
  .products-query-grid {
    grid-template-columns: 1fr 1fr;
  }
  .products-query-figure {
    grid-column: 1 / -1;
  }
  .products-export-wrap {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
  }
  .products-export-list {
    gap: 0.9rem;
  }
  .products-guide-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
