/* ===== 数据服务页专属样式 · 作用域 .page-products ===== */

.page-products {
  background: var(--c-bg);
  color: var(--c-paper);
}

.page-products .breadcrumb {
  margin: 0 0 28px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-paper-dim);
}

.page-products .breadcrumb a {
  color: var(--c-accent-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.page-products .breadcrumb a:hover,
.page-products .breadcrumb a:focus-visible {
  border-color: var(--c-accent-2);
}

/* ===== 首屏 ===== */
.page-products .hero-services {
  position: relative;
  display: grid;
  gap: 32px;
  padding-top: 24px;
  padding-bottom: 64px;
}

.page-products .hero-services::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--c-accent) 0 1.5px, transparent 2.5px) 0 0 / 18px 18px;
  opacity: 0.12;
  pointer-events: none;
}

.page-products .hero-copy {
  padding: 8px 0;
}

.page-products .hero-copy h1 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.25;
  color: var(--c-paper);
  margin: 16px 0 20px;
  letter-spacing: 0.02em;
}

.page-products .hero-copy .lead {
  font-size: 16px;
  color: var(--c-paper-dim);
  line-height: 1.8;
  max-width: 640px;
}

.page-products .hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.page-products .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}

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

.page-products .hero-frame {
  background: var(--c-surface);
}

.page-products .hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
}

.page-products .frame-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--c-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-paper-dim);
  background: var(--c-layer);
}

.page-products .frame-no {
  color: var(--c-accent);
  font-weight: 700;
}

/* ===== 指标带 ===== */
.page-products .metric-strip {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 32px 20px;
  margin-bottom: 64px;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface);
}

.page-products .metric-strip::before {
  content: attr(aria-label);
  position: absolute;
  top: -14px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-paper-dim);
  background: var(--c-bg);
  padding: 0 8px;
}

.page-products .metric {
  padding: 12px 4px;
}

.page-products .metric-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-paper);
  white-space: nowrap;
}

.page-products .metric-value span {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--c-paper-dim);
  margin-left: 4px;
}

.page-products .metric-value.accent {
  color: var(--c-accent);
}

.page-products .metric-label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-paper-dim);
  margin-top: 6px;
}

/* ===== 服务布局 ===== */
.page-products .service-layout {
  padding-bottom: 80px;
}

.page-products .service-index {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  padding: 20px;
  margin-bottom: 40px;
}

.page-products .service-index .section-label {
  margin-bottom: 12px;
}

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

.page-products .service-index-list li {
  border-bottom: 1px solid var(--c-line);
}

.page-products .service-index-list li:last-child {
  border-bottom: none;
}

.page-products .service-index-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 4px;
  color: var(--c-paper-dim);
  text-decoration: none;
  font-size: 14px;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.page-products .service-index-link span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-accent);
}

.page-products .service-index-link:hover,
.page-products .service-index-link:focus-visible {
  color: var(--c-paper);
}

.page-products .index-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-paper-dim);
}

.page-products .index-note p {
  margin: 0;
}

/* ===== 服务章节公共样式 ===== */
.page-products .service-content {
  min-width: 0;
}

.page-products .service-section {
  position: relative;
  padding: 56px 0 48px;
  border-top: 1px solid var(--c-line);
}

.page-products .service-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.page-products .service-section::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  border-top: 2px solid var(--c-accent);
  border-right: 2px solid var(--c-accent);
}

.page-products .chapter {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.page-products .chapter-id {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 900;
  line-height: 0.85;
  color: var(--c-accent);
  opacity: 0.85;
  min-width: 64px;
  text-align: right;
}

.page-products .chapter-body h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 8px;
  color: var(--c-paper);
  letter-spacing: -0.01em;
}

.page-products .chapter-lead {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-paper-dim);
  margin: 0;
}

.page-products .service-body {
  padding-left: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-paper-dim);
}

.page-products .service-body > p {
  max-width: 640px;
}

/* ===== 01 筛选专区 ===== */
.page-products .filter-dims {
  margin: 28px 0 24px;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}

.page-products .dim-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-line);
}

.page-products .dim-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-paper-dim);
}

.page-products .dim-grid {
  display: grid;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .dim-grid li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--c-line);
  border-left: 2px solid transparent;
  color: var(--c-paper);
  font-size: 14px;
  font-weight: 500;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.page-products .dim-grid li:hover,
.page-products .dim-grid li:focus-within {
  border-left-color: var(--c-accent);
  background: var(--c-layer);
}

.page-products .dim-grid li:nth-last-child(-n+2) {
  border-bottom: none;
}

.page-products .dim-icon {
  color: var(--c-accent);
  font-size: 14px;
  margin-right: 8px;
}

.page-products .dim-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-paper-dim);
}

.page-products .filter-detail {
  border: 1px solid var(--c-line);
  margin-top: 20px;
  background: var(--c-surface);
}

.page-products .filter-detail summary {
  cursor: pointer;
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-paper);
  list-style: none;
  position: relative;
  transition: background var(--transition-fast);
}

.page-products .filter-detail summary::-webkit-details-marker {
  display: none;
}

.page-products .filter-detail summary:hover {
  background: var(--c-layer);
}

.page-products .filter-detail summary::after {
  content: "＋";
  position: absolute;
  right: 16px;
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 16px;
}

.page-products .filter-detail[open] summary::after {
  content: "－";
}

.page-products .filter-detail .detail-body {
  padding: 16px;
  border-top: 1px solid var(--c-line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-paper-dim);
}

.page-products .filter-detail .detail-body p {
  margin: 0;
}

/* ===== 02 桌面端切联赛 ===== */
.page-products .switch-copy {
  max-width: 640px;
}

.page-products .switch-points {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.page-products .switch-point {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--c-paper);
}

.page-products .point-mark {
  width: 8px;
  height: 8px;
  background: var(--c-accent-2);
  border-radius: 50%;
  flex: none;
}

.page-products .switch-visual {
  margin-top: 20px;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}

.page-products .switch-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== 03 数据更新机制 ===== */
.page-products .pipeline-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0;
}

.page-products .pipeline-step {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  padding: 20px;
  position: relative;
  transition: border-color var(--transition-fast);
}

.page-products .pipeline-step:hover {
  border-color: var(--c-accent);
}

.page-products .pipeline-step .step-no {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-accent);
  margin-bottom: 8px;
}

.page-products .pipeline-step strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--c-paper);
  margin-bottom: 6px;
}

.page-products .pipeline-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.page-products .pipeline-arrow {
  text-align: center;
  color: var(--c-line);
  font-size: 22px;
  line-height: 1;
}

.page-products .pipeline-arrow::before {
  content: "↓";
}

.page-products .update-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--c-line);
  box-sizing: border-box;
}

/* ===== 04 会员赛事案例合集 ===== */
.page-products .case-layout {
  display: grid;
  gap: 20px;
}

.page-products .case-copy > p {
  max-width: 560px;
}

.page-products .case-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.page-products .case-points div {
  border-top: 2px solid var(--c-accent);
  padding-top: 10px;
}

.page-products .case-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--c-paper);
  line-height: 1.2;
}

.page-products .case-points span:last-child {
  font-size: 12px;
  color: var(--c-paper-dim);
}

.page-products .case-visual {
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}

.page-products .case-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== 05 服务模式 ===== */
.page-products .model-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
}

.page-products .model-table {
  min-width: 480px;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}

.page-products .model-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-line);
  font-size: 13px;
  line-height: 1.5;
  align-items: center;
}

.page-products .model-row:last-child {
  border-bottom: none;
}

.page-products .model-row span:nth-child(1) {
  color: var(--c-paper);
}

.page-products .model-row span:nth-child(2) {
  color: var(--c-accent-2);
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-products .model-row span:nth-child(3) {
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-products .model-head {
  background: var(--c-layer);
  font-family: var(--font-heading);
  font-weight: 700;
}

.page-products .model-head span:nth-child(1),
.page-products .model-head span:nth-child(2),
.page-products .model-head span:nth-child(3) {
  color: var(--c-paper);
  font-family: var(--font-heading);
  font-size: 13px;
}

.page-products .model-note {
  font-size: 13px;
  color: var(--c-paper-dim);
  border-left: 3px solid var(--c-accent-2);
  padding-left: 12px;
  max-width: 520px;
}

/* ===== 06 适配设备说明 ===== */
.page-products .device-grid {
  display: grid;
  gap: 20px;
}

.page-products .device-copy p {
  margin: 0 0 16px;
  max-width: 560px;
}

.page-products .device-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.page-products .device-note {
  font-size: 13px;
  color: var(--c-alert);
  border-left: 3px solid var(--c-alert);
  padding-left: 12px;
  background: color-mix(in srgb, var(--c-alert) 12%, transparent);
}

.page-products .device-visual {
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}

.page-products .device-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== 底部服务链接区 ===== */
.page-products .service-cta {
  background: var(--c-surface);
  border-top: 3px solid var(--c-accent);
  border-bottom: 1px solid var(--c-line);
  padding: 28px 20px;
  margin-top: 56px;
}

.page-products .service-cta p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-paper-dim);
  max-width: 480px;
  margin: 0 0 16px;
}

.page-products .service-cta .cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== 中屏断点 ===== */
@media (min-width: 640px) {
  .page-products .hero-copy h1 {
    font-size: 40px;
  }

  .page-products .metric-strip {
    grid-template-columns: repeat(4, 1fr);
    padding: 40px 24px;
  }

  .page-products .metric-value {
    font-size: 30px;
  }

  .page-products .dim-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-products .pipeline-flow {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
  }

  .page-products .pipeline-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-products .pipeline-arrow::before {
    content: "→";
  }

  .page-products .case-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 32px;
  }

  .page-products .device-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 32px;
  }
}

/* ===== 桌面断点：sticky 双栏 ===== */
@media (min-width: 961px) {
  .page-products .hero-services {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
    align-items: center;
    padding-top: 40px;
  }

  .page-products .hero-services::before {
    width: 320px;
    height: 320px;
  }

  .page-products .service-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

  .page-products .service-index {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    margin-bottom: 0;
  }

  .page-products .service-section {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .page-products .chapter {
    margin-bottom: 32px;
  }

  .page-products .chapter-id {
    font-size: 72px;
    min-width: 88px;
  }

  .page-products .chapter-body h2 {
    font-size: 28px;
  }

  .page-products .service-body {
    padding-left: 108px;
  }

  .page-products .service-cta {
    padding: 36px 36px;
  }
}
