/* ============================================================
   服务中心 · 页面专属样式
   作用域：.page-products
   ============================================================ */

/* ---------- 页面基调 ---------- */
.page-products {
  background: var(--c-surface);
}

/* ---------- 面包屑 ---------- */
.page-products .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--c-muted);
  margin: 0 0 20px;
}
.page-products .breadcrumb a {
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.page-products .breadcrumb a:hover {
  color: var(--c-action);
}
.page-products .breadcrumb-sep {
  color: var(--c-interact);
}

/* ---------- 目录头 ---------- */
.page-products .directory-header {
  position: relative;
  padding: 28px 22px 32px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 140, 66, 0.16), transparent 46%),
    linear-gradient(135deg, var(--c-bg-soft), var(--c-surface));
  border: 1px solid rgba(67, 115, 184, 0.18);
  margin-bottom: 28px;
  overflow: hidden;
}
.page-products .directory-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--c-interact);
  margin-bottom: 12px;
}
.page-products .directory-kicker::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--c-action);
}
.page-products .directory-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  line-height: 1.22;
  color: var(--c-space);
  max-width: 14em;
}
.page-products .directory-intro {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--c-muted);
  max-width: 48em;
}
.page-products .directory-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-products .directory-index .tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--c-surface);
  border: 1px solid rgba(67, 115, 184, 0.35);
  color: var(--c-aux);
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.page-products .directory-index .tag:hover {
  border-color: var(--c-action);
  background: rgba(255, 140, 66, 0.1);
  color: var(--c-action);
}

/* ---------- 区块通用 ---------- */
.page-products .section-block {
  padding: 32px 0;
}
.page-products .section-head {
  margin-bottom: 24px;
}
.page-products .section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--c-space);
  margin: 0 0 8px;
}
.page-products .section-desc {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.page-products .section-head--light .section-title {
  color: var(--c-surface);
}
.page-products .section-head--light .section-desc {
  color: rgba(232, 240, 254, 0.78);
}

/* ---------- 服务总览：Bento 非对称网格 ---------- */
.page-products .products-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.page-products .overview-card {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.page-products .overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.page-products .overview-card--download {
  background: var(--c-surface);
  border: 1px solid rgba(67, 115, 184, 0.2);
}
.page-products .overview-card--guide {
  background: var(--c-space);
  border: none;
}
.page-products .overview-card--archive {
  background: var(--c-bg-soft);
  border: 1px solid rgba(11, 27, 61, 0.08);
}
.page-products .overview-card .exhibit-num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--c-muted);
  opacity: 0.55;
}
.page-products .overview-card--guide .exhibit-num {
  color: rgba(232, 240, 254, 0.55);
}
.page-products .overview-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 0 8px;
  color: var(--c-space);
}
.page-products .overview-card--guide .overview-card-title {
  color: var(--c-surface);
}
.page-products .overview-card-desc {
  margin: 0 0 16px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--c-muted);
}
.page-products .overview-card--guide .overview-card-desc {
  color: rgba(232, 240, 254, 0.85);
}
.page-products .overview-mini-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.875rem;
}
.page-products .overview-mini-steps span {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 140, 66, 0.16);
  color: var(--c-action);
}
.page-products .overview-mini-steps i {
  font-style: normal;
  color: rgba(232, 240, 254, 0.5);
}
.page-products .overview-card--guide .btn-primary {
  background: var(--c-action);
  color: var(--c-surface);
}
.page-products .overview-card--guide .btn-primary:hover {
  filter: brightness(0.92);
}

/* ---------- 服务承诺条 ---------- */
.page-products .service-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.page-products .service-promise {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--c-surface);
  border: 1px solid rgba(67, 115, 184, 0.16);
  color: var(--c-aux);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.page-products .service-promise i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-success);
  display: inline-block;
  flex: none;
}

/* ---------- 苹果V3使用指南（深蓝大区块） ---------- */
.page-products .guide-section {
  position: relative;
  margin: 32px 16px;
  padding: 36px 0 40px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 140, 66, 0.22), transparent 34%),
    linear-gradient(160deg, var(--c-space) 0%, #102452 100%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.page-products .guide-section .container {
  position: relative;
  z-index: 1;
}

/* 步骤列表 */
.page-products .guide-steps {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
}
.page-products .guide-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 240, 254, 0.12);
}
.page-products .guide-step-num {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-action);
  color: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: var(--shadow-orange);
}
.page-products .guide-step-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.page-products .guide-step-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 0 8px;
  color: var(--c-surface);
}
.page-products .guide-step-desc {
  margin: 0 0 12px;
  color: rgba(232, 240, 254, 0.9);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.page-products .guide-step-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.page-products .guide-step-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(232, 240, 254, 0.82);
  font-size: 0.875rem;
  line-height: 1.65;
}
.page-products .guide-step-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-action);
}

/* 可展开说明 */
.page-products .guide-details {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 240, 254, 0.14);
}
.page-products .guide-details summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--c-action);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.page-products .guide-details summary::-webkit-details-marker {
  display: none;
}
.page-products .guide-details summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--c-action);
}
.page-products .guide-details[open] summary::before {
  content: "−";
}
.page-products .guide-details p {
  margin: 10px 0 0;
  color: rgba(232, 240, 254, 0.86);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* 步骤截图 */
.page-products .guide-step-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-bg-soft);
  border: 1px solid rgba(232, 240, 254, 0.16);
  width: 100%;
  max-width: 240px;
}
.page-products .guide-step-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.page-products .guide-step-figure figcaption {
  padding: 8px 12px;
  font-size: 0.75rem;
  color: var(--c-muted);
  background: var(--c-bg-soft);
}

/* 步骤连接线（移动端竖向） */
.page-products .guide-step-connect {
  width: 2px;
  height: 28px;
  margin-left: 21px;
  align-self: flex-start;
  background: linear-gradient(to bottom, rgba(255, 140, 66, 0.8), rgba(67, 115, 184, 0.3));
  position: relative;
}
.page-products .guide-step-connect::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--c-action);
  border-bottom: 2px solid var(--c-action);
}

/* 指南底部提示 */
.page-products .guide-supplement {
  margin: 20px 16px 0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(232, 240, 254, 0.85);
  font-size: 0.875rem;
  line-height: 1.6;
}
.page-products .guide-supplement strong {
  color: var(--c-action);
}

/* ---------- 资料下载服务范围 ---------- */
.page-products .scope-section {
  padding: 28px 18px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--c-bg-soft), #DCE8FA);
  margin: 16px 0 32px;
}
.page-products .scope-figure {
  margin: 0 0 20px;
  max-width: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid rgba(67, 115, 184, 0.14);
}
.page-products .scope-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 360px;
}
.page-products .table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}
.page-products .scope-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}
.page-products .scope-table th {
  padding: 14px 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8125rem;
  color: var(--c-surface);
  background: var(--c-space);
  border-bottom: 3px solid var(--c-action);
  white-space: nowrap;
}
.page-products .scope-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--c-text);
  border-bottom: 1px solid rgba(11, 27, 61, 0.08);
}
.page-products .scope-table tbody tr:nth-child(even) {
  background: rgba(232, 240, 254, 0.45);
}
.page-products .scope-table tbody tr:hover {
  background: rgba(255, 140, 66, 0.07);
}
.page-products .scope-table .mono {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--c-aux);
  white-space: nowrap;
}
.page-products .scope-table .tag {
  white-space: nowrap;
}
.page-products .scope-note {
  margin: 18px 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--c-muted);
}
.page-products .scope-note strong {
  color: var(--c-space);
  font-weight: 700;
}

/* ---------- 中文版服务介绍 ---------- */
.page-products .chinese-service {
  background: linear-gradient(135deg, var(--c-space) 0%, var(--c-aux) 100%);
  color: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 28px 18px 36px;
}
.page-products .chinese-service-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.page-products .chinese-service-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--c-action);
  margin: 0 0 10px;
}
.page-products .chinese-service-desc {
  color: rgba(232, 240, 254, 0.85);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0 0 14px;
}
.page-products .chinese-service-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.page-products .chinese-service-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(232, 240, 254, 0.82);
  font-size: 0.875rem;
  line-height: 1.65;
}
.page-products .chinese-service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-action);
}

/* 联系卡片 */
.page-products .service-contact-card {
  background: var(--c-surface);
  color: var(--c-text);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
  margin-top: 18px;
}
.page-products .service-contact-card h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--c-space);
}
.page-products .service-contact-card .contact-line {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--c-muted);
  margin: 4px 0;
}
.page-products .service-contact-card .contact-line strong {
  color: var(--c-text);
  font-weight: 600;
}
.page-products .service-contact-card .contact-note {
  font-size: 0.8125rem;
  color: var(--c-muted);
  border-top: 1px solid rgba(11, 27, 61, 0.08);
  padding-top: 10px;
  margin-top: 10px;
}

/* 中文服务插图 */
.page-products .chinese-service-media {
  margin: 0;
  align-self: end;
  justify-self: start;
  max-width: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(232, 240, 254, 0.18);
  background: rgba(255, 255, 255, 0.06);
}
.page-products .chinese-service-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 260px;
}

/* ---------- 按钮 ---------- */
.page-products .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.page-products .btn-primary {
  background: var(--c-action);
  color: var(--c-surface);
}
.page-products .btn-primary:hover {
  filter: brightness(0.92);
}
.page-products .btn-ghost {
  border: 1px solid rgba(67, 115, 184, 0.4);
  color: var(--c-interact);
  background: transparent;
}
.page-products .btn-ghost:hover {
  border-color: var(--c-action);
  color: var(--c-action);
}
.page-products .guide-step .btn-ghost {
  border-color: rgba(232, 240, 254, 0.35);
  color: var(--c-bg-soft);
}
.page-products .guide-step .btn-ghost:hover {
  border-color: var(--c-action);
  color: var(--c-action);
}

/* ---------- 下一步 ---------- */
.page-products .next-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.page-products .next-step-card {
  position: relative;
  display: block;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  border: 1px solid rgba(67, 115, 184, 0.16);
  text-decoration: none;
  color: var(--c-text);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.page-products .next-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-action);
}
.page-products .next-step-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  margin: 0 0 8px;
  color: var(--c-space);
}
.page-products .next-step-card p {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
.page-products .next-step-card .exhibit-num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--c-muted);
  opacity: 0.5;
}
.page-products .next-step-arrow {
  position: absolute;
  bottom: 16px;
  right: 18px;
  color: var(--c-action);
  font-size: 1.25rem;
  line-height: 1;
}

/* ---------- 响应式：平板与桌面 ---------- */
@media (min-width: 768px) {
  .page-products .directory-header {
    padding: 40px 36px 44px;
  }
  .page-products .section-block {
    padding: 48px 0;
  }
  .page-products .guide-section {
    margin: 48px 24px;
    padding: 48px 0 56px;
  }
  .page-products .guide-steps {
    padding: 0 24px;
  }
  .page-products .guide-step-figure {
    justify-self: end;
  }
  .page-products .guide-supplement {
    margin-left: 24px;
    margin-right: 24px;
  }
  .page-products .scope-section,
  .page-products .chinese-service {
    padding: 36px 32px 44px;
  }
  .page-products .next-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  /* 服务总览：3 + 7 + 2 非对称网格 */
  .page-products .products-overview {
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
  }
  .page-products .overview-card {
    grid-column: auto;
    min-height: 260px;
  }
  .page-products .overview-card--download {
    grid-column: span 3;
  }
  .page-products .overview-card--guide {
    grid-column: span 7;
  }
  .page-products .overview-card--archive {
    grid-column: span 2;
  }
  .page-products .overview-card--archive .overview-card-desc {
    font-size: 0.8125rem;
  }

  /* 指南步骤：左侧编号，右侧图文并排 */
  .page-products .guide-step {
    grid-template-columns: 64px 1fr;
    gap: 20px;
    padding: 26px 24px;
  }
  .page-products .guide-step-body {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
  }
  .page-products .guide-step-figure {
    max-width: 280px;
  }
  .page-products .guide-step-connect {
    display: none;
  }
  .page-products .guide-step-num::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 6px);
    width: 32px;
    height: 2px;
    background-image: linear-gradient(to right, var(--c-action) 50%, transparent 50%);
    background-size: 8px 2px;
  }
  .page-products .chinese-service-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .page-products .chinese-service-media {
    justify-self: end;
  }
}

/* ---------- 动效降级与渐进增强 ---------- */
.page-products [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.page-products [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.page-products [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.page-products [data-reveal-stagger] > .is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .page-products [data-reveal],
  .page-products [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
