.page-products,
.page-products * {
  box-sizing: border-box;
}

.page-products {
  --card-tilt: -1.2deg;
  --tree-glow: rgba(212, 175, 55, 0.18);
  overflow-x: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
}

/* ===== Hero ===== */
.page-products .solution-hero {
  position: relative;
  padding: 48px 20px 56px;
  background: var(--bg-deep);
  overflow: hidden;
}

.page-products .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-products .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-products .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(212, 175, 55, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(8, 20, 38, 0.62) 0%, rgba(11, 30, 58, 0.92) 72%, var(--bg-primary) 100%);
}

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

.page-products .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  font-family: var(--font-data);
  font-size: 14px;
  color: var(--text-secondary);
}

.page-products .breadcrumbs a {
  color: var(--gold-light);
  text-decoration: none;
}

.page-products .breadcrumbs a:hover,
.page-products .breadcrumbs a:focus-visible {
  text-decoration: underline;
}

.page-products .hero-kicker {
  margin: 0 0 14px;
  font-family: var(--font-data);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-products h1 {
  max-width: 980px;
  margin: 0 0 22px;
  font-family: var(--font-head);
  font-size: 36px;
  line-height: 1.18;
  color: var(--text-primary);
}

.page-products .hero-lead {
  max-width: 720px;
  margin: 0 0 40px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.page-products .hero-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 680px;
}

.page-products .hero-stat {
  padding: 20px 18px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(120deg, rgba(18, 42, 74, 0.65), rgba(8, 20, 38, 0.35));
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.page-products .stat-num {
  display: block;
  font-family: var(--font-data);
  font-size: 30px;
  line-height: 1.2;
  color: var(--gold-light);
}

.page-products .stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== 通用区块头 ===== */
.page-products .solution-section {
  padding: 64px 20px;
}

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

.page-products .section-kicker {
  margin: 0 0 10px;
  font-family: var(--font-data);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-products .section-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 28px;
  line-height: 1.24;
  color: var(--text-primary);
}

.page-products .section-sub {
  margin: 14px 0 0;
  max-width: 680px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.page-products .divider-gold {
  width: 56px;
  height: 3px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

/* ===== 服务总览 / 技能树 ===== */
.page-products .service-overview {
  position: relative;
  background: var(--bg-primary);
}

.page-products .service-overview::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 79, 124, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 79, 124, 0.2) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.page-products .service-overview .container {
  position: relative;
  z-index: 1;
}

.page-products .tree-root {
  text-align: center;
  margin-bottom: 48px;
}

.page-products .tree-root-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: radial-gradient(circle at 32% 32%, var(--bg-secondary), var(--bg-deep));
  box-shadow: 0 0 44px var(--tree-glow), inset 0 0 28px rgba(212, 175, 55, 0.05);
}

.page-products .tree-root-ring::before,
.page-products .tree-root-ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.34);
  inset: -12px;
}

.page-products .tree-root-ring::after {
  inset: -24px;
  border-style: dotted;
  opacity: 0.5;
}

.page-products .ring-inner {
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.45;
  text-align: center;
  color: var(--text-primary);
}

.page-products .tree-root-note {
  margin: 0;
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--text-secondary);
}

.page-products .tree-branches {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-products .tree-node {
  position: relative;
  padding: 30px 24px 26px;
  background: linear-gradient(160deg, rgba(18, 42, 74, 0.75), rgba(8, 20, 38, 0.4));
  border: 1px solid rgba(45, 79, 124, 0.58);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-products .tree-node::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.page-products .tn-1,
.page-products .tn-3 {
  transform: rotate(-0.6deg);
}

.page-products .tn-2,
.page-products .tn-4 {
  transform: rotate(0.6deg);
}

.page-products .node-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 0 18px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.06);
  font-family: var(--font-data);
  font-size: 15px;
  color: var(--gold-light);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.1);
}

.page-products .tree-node h3 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--text-primary);
}

.page-products .tree-node h3 a {
  color: inherit;
  text-decoration: none;
}

.page-products .tree-node h3 a:hover,
.page-products .tree-node h3 a:focus-visible {
  color: var(--gold-light);
  text-decoration: underline;
}

.page-products .node-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .node-list li {
  position: relative;
  padding: 7px 0 7px 18px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.page-products .node-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* ===== 号码历史查询 ===== */
.page-products .history-query {
  background: var(--bg-deep);
}

.page-products .query-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  max-width: var(--container-width);
  margin: 0 auto;
}

.page-products .feature-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.page-products .feature-entry {
  position: relative;
  padding: 20px 22px 20px 26px;
  background: linear-gradient(135deg, rgba(18, 42, 74, 0.7), rgba(11, 30, 58, 0.2));
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-left: 3px solid var(--gold);
}

.page-products .feature-key {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--gold-light);
}

.page-products .feature-entry p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.page-products .query-note {
  margin-top: 24px;
  background: rgba(212, 175, 55, 0.05);
  border-left: 3px solid var(--gold);
  padding: 20px 22px;
}

.page-products .query-note p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.page-products .query-note p:last-child {
  margin-bottom: 0;
}

.page-products .query-note a {
  color: var(--gold-light);
}

.page-products .query-side {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.page-products .query-stat {
  padding: 26px 14px;
  text-align: center;
  background: linear-gradient(160deg, rgba(18, 42, 74, 0.85), rgba(8, 20, 38, 0.5));
  border: 1px solid rgba(45, 79, 124, 0.6);
  border-radius: var(--radius-md);
}

.page-products .query-stat:nth-child(2) {
  transform: translateY(8px);
}

.page-products .query-stat:nth-child(3) {
  transform: translateY(-4px);
}

.page-products .query-stat-num {
  display: block;
  font-family: var(--font-data);
  font-size: 26px;
  color: var(--gold-light);
}

.page-products .query-stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== 走势图分析 ===== */
.page-products .trend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  max-width: var(--container-width);
  margin: 0 auto;
}

.page-products .trend-visual {
  position: relative;
}

.page-products .solution-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
}

.page-products .solution-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .trend-figure img {
  aspect-ratio: 16 / 10;
}

.page-products .trend-visual figcaption,
.page-products .export-grid figcaption,
.page-products .device-showcase figcaption {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.page-products .chart-demo {
  margin-top: 32px;
  padding: 20px 20px 24px;
  background: linear-gradient(160deg, rgba(18, 42, 74, 0.7), rgba(8, 20, 38, 0.3));
  border: 1px solid rgba(45, 79, 124, 0.5);
  border-radius: var(--radius-md);
}

.page-products .chart-demo-title {
  margin: 0 0 16px;
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--gold);
}

.page-products .chart-bars {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  height: 150px;
  padding-top: 10px;
}

.page-products .bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
}

.page-products .bar-value {
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--text-primary);
}

.page-products .bar-fill {
  display: block;
  width: 100%;
  max-width: 34px;
  height: 40%;
  background: linear-gradient(180deg, var(--gold-light), rgba(212, 175, 55, 0.25));
  border-radius: 4px 4px 0 0;
}

.page-products .bar-num {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--text-secondary);
}

.page-products .trend-types h3 {
  margin: 20px 0 10px;
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--text-primary);
}

.page-products .trend-types h3:first-child {
  margin-top: 0;
}

.page-products .trend-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .trend-list li {
  position: relative;
  padding: 9px 0 9px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
  border-bottom: 1px solid rgba(45, 79, 124, 0.35);
}

.page-products .trend-list li:last-child {
  border-bottom: 0;
}

.page-products .trend-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.page-products .trend-description {
  margin: 14px 0 8px;
  padding: 16px 18px;
  background: rgba(45, 79, 124, 0.1);
  border-left: 2px solid var(--line-color);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

/* ===== 数据导出与集成 ===== */
.page-products .export-integration {
  background: var(--bg-deep);
}

.page-products .export-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.page-products .export-panel {
  position: relative;
  padding: 24px;
  background: linear-gradient(150deg, rgba(18, 42, 74, 0.7), rgba(8, 20, 38, 0.42));
  border: 1px solid rgba(45, 79, 124, 0.55);
  border-radius: var(--radius-md);
}

.page-products .export-panel:nth-child(odd) {
  transform: rotate(-0.5deg);
}

.page-products .export-panel:nth-child(even) {
  transform: rotate(0.8deg);
}

.page-products .export-illustration {
  margin-bottom: 22px;
}

.page-products .export-illustration .solution-figure img {
  aspect-ratio: 3 / 2;
}

.page-products .export-panel h3 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 19px;
  color: var(--gold-light);
}

.page-products .export-panel p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.page-products .export-list,
.page-products .api-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .export-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.page-products .export-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 14px;
}

.page-products .api-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
}

.page-products .api-points li {
  padding: 6px 12px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.06);
  color: var(--gold-light);
  font-size: 14px;
}

/* ===== 应用场景 ===== */
.page-products .use-cases {
  position: relative;
}

.page-products .use-cases::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: 40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 70%);
  pointer-events: none;
}

.page-products .case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.page-products .case-item {
  position: relative;
  padding: 30px 24px;
  background: linear-gradient(140deg, rgba(18, 42, 74, 0.6), rgba(8, 20, 38, 0.3));
  border: 1px solid rgba(45, 79, 124, 0.5);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease-out-back), background 0.3s ease;
}

.page-products .case-item:nth-child(odd) {
  transform: rotate(-1deg);
}

.page-products .case-item:nth-child(even) {
  transform: rotate(0.8deg);
}

.page-products .case-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-data);
  font-size: 14px;
  color: var(--line-color);
}

.page-products .case-item h3 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--text-primary);
}

.page-products .case-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.page-products .case-item a {
  color: var(--gold-light);
}

.page-products .device-showcase {
  margin: 40px auto 0;
  max-width: var(--container-width);
}

.page-products .device-showcase .solution-figure img {
  aspect-ratio: 21 / 10;
}

/* ===== 底部交叉链接 ===== */
.page-products .cross-links {
  background: var(--bg-deep);
}

.page-products .cross-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.page-products .cross-item {
  padding: 20px 22px;
  background: rgba(45, 79, 124, 0.12);
  border: 1px solid rgba(45, 79, 124, 0.3);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.page-products .cross-item p {
  margin: 0;
}

.page-products .cross-item a {
  color: var(--gold-light);
}

/* ===== 断点 ===== */
@media (min-width: 768px) {
  .page-products .solution-hero {
    padding: 64px 32px 72px;
  }

  .page-products .hero-stat-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-products .solution-section {
    padding: 76px 32px;
  }

  .page-products .tree-branches {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-products .query-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 44px;
  }

  .page-products .query-side {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .page-products .trend-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .page-products .export-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .page-products .case-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-products .cross-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .page-products .solution-hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 80px 32px;
  }

  .page-products h1 {
    font-size: 56px;
    line-height: 1.12;
  }

  .page-products .hero-lead {
    font-size: 19px;
  }

  .page-products .solution-section {
    padding: 92px 32px;
  }

  .page-products .section-title {
    font-size: 34px;
  }

  .page-products .tree-branches {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }

  .page-products .tree-branches::before {
    content: '';
    position: absolute;
    top: -28px;
    left: 50%;
    width: 2px;
    height: 28px;
    background: linear-gradient(to bottom, var(--gold), rgba(212, 175, 55, 0.1));
  }

  .page-products .tree-branches::after {
    content: '';
    position: absolute;
    top: 0;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-color), var(--line-color), transparent);
  }

  .page-products .tree-node {
    transform: none;
  }

  .page-products .tn-1 {
    transform: translateY(-4px);
  }

  .page-products .tn-3 {
    transform: translateY(6px);
  }

  .page-products .tn-4 {
    transform: translateY(-2px);
  }

  .page-products .query-grid {
    gap: 64px;
  }

  .page-products .trend-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }

  .page-products .trend-types {
    padding-top: 10px;
  }

  .page-products .case-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }

  .page-products .cross-links-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}
