/* ===== 解决方案页专属样式 ===== */
.page-products {
  --p-tree-width: 248px;
  color: var(--color-gray-deep);
  background: var(--color-white);
}

.page-products section[id],
.page-products article[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

/* ===== 页头 ===== */
.page-products .p-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-gray-deep) 0%, #2b2b2b 52%, var(--color-deep-red) 130%);
  color: var(--color-white);
  padding: calc(var(--header-height) + 40px) 0 56px;
}

.page-products .p-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.page-products .p-hero::after {
  content: '';
  position: absolute;
  right: -90px;
  top: -90px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(228, 0, 43, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.page-products .p-hero .breadcrumbs {
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

.page-products .p-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.65);
}

.page-products .p-hero .breadcrumbs .sep {
  color: rgba(255, 255, 255, 0.35);
}

.page-products .p-hero .breadcrumbs [aria-current="page"] {
  color: var(--color-neon);
}

.page-products .p-hero-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
}

.page-products .p-hero .kicker {
  color: var(--color-neon);
}

.page-products .p-hero-copy .display-title {
  margin: 14px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.page-products .p-hero-lead {
  max-width: 34em;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.page-products .p-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.page-products .p-hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

.page-products .p-hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
}

.page-products .p-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0;
}

.page-products .p-hero-stat {
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 3px solid var(--color-race-red);
}

.page-products .p-hero-stat .data-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.page-products .p-hero-stat .data-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--color-white);
}

.page-products .p-unit {
  font-size: 1rem;
  color: var(--color-neon);
}

/* ===== 核心功能矩阵 ===== */
.page-products .p-features {
  background: var(--color-white);
  padding: 64px 0 72px;
}

.page-products .p-features .section-head {
  margin-bottom: 36px;
}

.page-products .p-features-layout {
  display: grid;
  gap: 24px;
}

/* 技能树面板 */
.page-products .p-tree {
  position: relative;
  background: var(--color-light-gray);
  border: 1px solid #e8e8e8;
  padding: 20px 0;
}

.page-products .p-tree::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-race-red) 0%, var(--color-deep-red) 72%, transparent 100%);
}

.page-products .p-tree-source {
  position: relative;
  padding: 14px 20px 18px 60px;
  border-bottom: 1px dashed #d8d8d8;
}

.page-products .p-tree-source::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 50%;
  width: 22px;
  height: 22px;
  background: var(--color-race-red);
  box-shadow: 0 0 0 6px rgba(228, 0, 43, 0.16);
  transform: translateY(-50%);
}

.page-products .p-tree-source .data-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--color-gray-deep);
}

.page-products .p-tree-nav {
  position: relative;
  padding: 6px 0;
}

.page-products .p-tree-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px 15px 60px;
  color: var(--color-gray-deep);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-products .p-tree-node::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-race-red);
  transform: translateY(-50%);
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-products .p-tree-node::after {
  content: '';
  position: absolute;
  left: 24px;
  top: 50%;
  width: 28px;
  height: 2px;
  background: linear-gradient(to right, var(--color-race-red), rgba(228, 0, 43, 0.35));
  transform: translateY(-50%);
}

.page-products .p-tree-node:hover,
.page-products .p-tree-node:focus-visible {
  background: rgba(228, 0, 43, 0.06);
  color: var(--color-deep-red);
}

.page-products .p-tree-node:hover::before,
.page-products .p-tree-node:focus-visible::before {
  background: var(--color-neon);
  border-color: var(--color-gray-deep);
  box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.3);
}

.page-products .p-tree-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-race-red);
}

.page-products .p-tree-name {
  font-weight: 700;
  font-size: 1rem;
}

/* 功能详情卡片 */
.page-products .p-details {
  display: grid;
  gap: 26px;
}

.page-products .p-detail-card {
  display: grid;
  gap: 0;
  background: var(--color-white);
  border: 1px solid #e8e8e8;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-products .p-detail-card:target {
  border-color: var(--color-race-red);
  box-shadow: 5px 5px 0 0 rgba(228, 0, 43, 0.14);
}

.page-products .p-detail-media {
  overflow: hidden;
  background: var(--color-light-gray);
  min-height: 180px;
}

.page-products .p-detail-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-products .p-detail-card--lineup .p-detail-media,
.page-products .p-detail-card--subscribe .p-detail-media {
  aspect-ratio: 3 / 4;
}

.page-products .p-detail-card--calendar .p-detail-media,
.page-products .p-detail-card--catalog .p-detail-media {
  aspect-ratio: 4 / 3;
}

.page-products .p-detail-card--lineup .p-detail-media img {
  object-position: top;
}

.page-products .p-detail-body {
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-products .p-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-products .p-detail-index {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 0.9;
  color: var(--color-race-red);
}

.page-products .p-detail-body h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-products .p-detail-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

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

.page-products .p-detail-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-gray-deep);
}

.page-products .p-detail-list li::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--color-neon);
  border: 1px solid var(--color-gray-deep);
}

.page-products .p-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 14px;
  background: var(--color-light-gray);
  border-left: 3px solid var(--color-race-red);
}

.page-products .p-flow-step {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-gray-deep);
}

.page-products .p-flow-step:not(:last-of-type)::after {
  content: '→';
  margin-left: 8px;
  color: var(--color-race-red);
  font-weight: 700;
}

/* ===== 使用场景 ===== */
.page-products .p-scenarios {
  background: var(--color-light-gray);
  padding: 64px 0 72px;
}

.page-products .p-scenarios .section-head {
  margin-bottom: 36px;
}

.page-products .p-scenarios-grid {
  display: grid;
  gap: 20px;
}

.page-products .p-scenario {
  background: var(--color-white);
  border: 1px solid #e3e3e3;
  padding: 28px 24px 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.page-products .p-scenario:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 0 rgba(228, 0, 43, 0.12);
}

.page-products .p-scenario-num {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-race-red);
  border: 1px solid var(--color-race-red);
  margin-bottom: 16px;
}

.page-products .p-scenario h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.25;
}

.page-products .p-scenario p {
  margin: 0 0 16px;
  font-size: 0.93rem;
  line-height: 1.65;
  color: #555;
}

.page-products .p-scenario-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-products .p-scenarios-foot {
  margin-top: 36px;
  text-align: center;
}

/* ===== 技术架构 ===== */
.page-products .p-arch {
  position: relative;
  overflow: hidden;
  background: var(--color-gray-deep);
  color: var(--color-white);
  padding: 64px 0 72px;
}

.page-products .p-arch::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(228, 0, 43, 0.2) 0%, transparent 65%);
  pointer-events: none;
}

.page-products .p-arch .section-head {
  margin-bottom: 40px;
  position: relative;
}

.page-products .p-arch .section-title {
  color: var(--color-white);
}

.page-products .p-arch .section-lead {
  color: rgba(255, 255, 255, 0.7);
}

.page-products .p-arch-grid {
  display: grid;
  gap: 16px;
}

.page-products .p-arch-cell {
  position: relative;
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-products .p-arch-cell:hover {
  border-color: var(--color-neon);
  transform: translateY(-2px);
}

.page-products .p-arch-index {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-race-red);
}

.page-products .p-arch-cell h3 {
  margin: 16px 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
}

.page-products .p-arch-cell p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.page-products .p-arch-data {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-neon);
  border: 1px solid rgba(57, 255, 20, 0.4);
}

/* ===== 下载与订阅 ===== */
.page-products .p-download {
  background: var(--color-white);
  padding: 64px 0 72px;
}

.page-products .p-download-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-products .p-download-qr {
  text-align: center;
  background: var(--color-light-gray);
  border: 1px solid #e8e8e8;
  padding: 32px 24px;
}

.page-products .p-download-qr img {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto 18px;
  border: 1px solid #ddd;
  object-fit: cover;
}

.page-products .p-download-qr .data-label {
  font-size: 0.78rem;
  color: var(--color-medium-gray);
  letter-spacing: 0.1em;
}

.page-products .p-download-body {
  display: grid;
  gap: 16px;
}

.page-products .p-download-body .section-title {
  margin: 0;
}

.page-products .p-download-body p:not(.kicker):not(.section-title) {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

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

.page-products .p-download-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-gray-deep);
}

.page-products .p-download-list li::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--color-race-red);
  transform: rotate(45deg);
}

.page-products .p-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.page-products .p-download-note {
  font-size: 0.88rem;
  color: var(--color-medium-gray);
}

.page-products .p-download-note a {
  color: var(--color-race-red);
  text-decoration: none;
  border-bottom: 1px solid rgba(228, 0, 43, 0.4);
}

.page-products .p-download-note a:hover {
  border-bottom-color: var(--color-race-red);
}

/* ===== 桌面端适配 ===== */
@media (min-width: 960px) {
  .page-products .p-hero {
    padding-top: calc(var(--header-height) + 64px);
    padding-bottom: 80px;
  }

  .page-products .p-hero-wrap {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: end;
  }

  .page-products .p-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .page-products .p-features {
    padding-top: 80px;
    padding-bottom: 88px;
  }

  .page-products .p-features-layout {
    grid-template-columns: var(--p-tree-width) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .page-products .p-tree {
    position: sticky;
    top: calc(var(--header-height) + 24px);
  }

  .page-products .p-detail-card--lineup {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .page-products .p-detail-card--calendar {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .page-products .p-detail-card--calendar .p-detail-media {
    order: 2;
  }

  .page-products .p-detail-card--catalog {
    grid-template-columns: 1fr;
  }

  .page-products .p-detail-card--catalog .p-detail-media {
    aspect-ratio: 16 / 9;
    min-height: 320px;
  }

  .page-products .p-detail-card--subscribe {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .page-products .p-detail-card--subscribe .p-detail-media {
    order: 2;
  }

  .page-products .p-detail-body {
    padding: 32px 34px;
  }

  .page-products .p-detail-card--lineup .p-detail-media,
  .page-products .p-detail-card--subscribe .p-detail-media {
    min-height: 420px;
  }

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

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

  .page-products .p-download-grid {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 56px;
  }

  .page-products .p-download-qr img {
    width: 240px;
    height: 240px;
  }

  .page-products .p-download-body {
    padding-right: 40px;
  }
}
