/* ============================================================
   services.html — 技术服务页专属样式（内容丰富版 · 样式精修）
   设计语言：延续全站 token（#0071e3 苹果蓝 / #f5f5f7 浅灰底 /
   980px 胶囊按钮 / 22px 圆角 / 克制留白），干净编辑化浅色版面 +
   深色 hero/CTA 形成节奏对比。
   ============================================================ */

.services-page {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --border: #e5e5ea;
  --border-strong: #d2d2d7;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-dim: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --accent-tint: rgba(0, 113, 227, 0.055);
  --deep: #0a121e;
}

/* ===== Hero（深色大图，按 hero 元素居中，图垂直中心落在 hero 中心） ===== */
.svc-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--deep);
  background-image: url('/images/service_background.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
}
.svc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 12, 22, 0.78) 0%, rgba(6, 12, 22, 0.62) 45%, rgba(6, 12, 22, 0.74) 100%);
  z-index: 0;
}
.svc-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  z-index: 1;
}
.svc-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 8.5rem 1.25rem 5.5rem;
}
.svc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cfe2ff;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 1.75rem;
}
.svc-hero__badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ea1ff;
  box-shadow: 0 0 0 4px rgba(78, 161, 255, 0.22);
}
.svc-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}
.svc-hero__desc {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}
.svc-hero__fit {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 auto 2.25rem;
}
.svc-hero__fit b {
  color: #cfe2ff;
  font-weight: 600;
}
.svc-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== 服务对象条（浅色，轻量芯片） ===== */
.svc-fit {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}
.svc-fit__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.svc-fit__label {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-right: 0.25rem;
}
.svc-fit__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== 四大服务 · 厚卡片（单色蓝，标题行合并呈现） ===== */
.svc-services { background: var(--bg); }
.svc-services .section-header { margin-bottom: 1rem; }
.svc-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.75rem;
}
.svc-block {
  scroll-margin-top: 88px;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.5rem 3.25rem 2rem 3.5rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.svc-block:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 38px -22px rgba(0, 113, 227, 0.42);
}
.svc-block::before {
  content: '';
  position: absolute;
  left: 0; top: 3rem; bottom: 3rem;
  width: 5px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  transition: width 0.3s ease;
}
.svc-block:hover::before { width: 8px; }
.svc-block__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: start;
}
/* 标题区：编号 + 名称同一行；标题改为渐变字体；描述独立一行 */
.svc-block__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.svc-block__num {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  flex: none;
  background: linear-gradient(135deg, var(--accent) 0%, #5ac8fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.svc-block__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.svc-block__outcome {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.15rem;
  background: #f0f6ff;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}
/* 左侧内容双栏：大幅拉开间距，避免拥挤 */
.svc-block__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}
.svc-block__sub {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.svc-block__sub::before {
  content: '';
  width: 16px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
/* 挑战 / 服务 双栏标题分色：暖色表痛点，青色表我方交付 */
.svc-block__cols > div:first-child .svc-block__sub { color: #b45309; }
.svc-block__cols > div:first-child .svc-block__sub::before { background: #b45309; }
.svc-block__cols > div:last-child .svc-block__sub { color: #0f766e; }
.svc-block__cols > div:last-child .svc-block__sub::before { background: #0f766e; }
.svc-block__list { list-style: none; margin: 0; padding: 0; }
.svc-block__list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 0.65rem;
}
.svc-block__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* 右侧服务流程面板（轻量蓝调） */
.svc-block__panel {
  background: var(--accent-tint);
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 18px;
  padding: 1.75rem 1.75rem 1.5rem;
  position: sticky;
  top: 100px;
  box-shadow: 0 10px 26px -18px rgba(0, 113, 227, 0.28);
}
.svc-block__panel-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.svc-block__panel-title::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.svc-steps { list-style: none; margin: 0 0 1.25rem; padding: 0; counter-reset: svcstep; }
.svc-steps li {
  position: relative;
  padding-left: 2.25rem;
  padding-bottom: 0.85rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
.svc-steps li:last-child { padding-bottom: 0; }
.svc-steps li::before {
  counter-increment: svcstep;
  content: counter(svcstep);
  position: absolute;
  left: 0; top: 0;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid rgba(0, 113, 227, 0.22);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.svc-steps li::after {
  content: '';
  position: absolute;
  left: 0.74rem; top: 1.6rem;
  width: 1px; height: calc(100% - 1.6rem);
  background: rgba(0, 113, 227, 0.18);
}
.svc-steps li:last-child::after { display: none; }
.svc-steps b { display: block; font-weight: 600; margin-bottom: 0.1rem; }

.svc-block__industries {
  border-top: 1px solid rgba(0, 113, 227, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.svc-block__industry {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: border-color 0.25s, color 0.25s;
}
.svc-block__industry:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== 合作模式 ===== */
.svc-models { background: var(--surface); }
.svc-model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.svc-model-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.25rem 2rem;
  background: var(--bg);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.svc-model-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #4ea1ff);
}
.svc-model-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.18);
}
.svc-model-card__icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.svc-model-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.svc-model-card__sub {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 1rem;
}
.svc-model-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 1.25rem;
}
.svc-model-card__list { list-style: none; margin: 0; padding: 0; }
.svc-model-card__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.85;
}
.svc-model-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== FAQ（原生 details 折叠） ===== */
.svc-faq { background: var(--bg); }
.svc-faq-list {
  max-width: 820px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.svc-faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.svc-faq-item[open] {
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: 0 12px 28px -22px rgba(0, 113, 227, 0.4);
}
.svc-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}
.svc-faq-item summary::-webkit-details-marker { display: none; }
.svc-faq-item summary::after {
  content: '';
  flex: none;
  width: 18px; height: 18px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s;
}
.svc-faq-item[open] summary::after { transform: rotate(45deg); }
.svc-faq-item__body {
  padding: 0 1.5rem 1.35rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

/* ===== CTA ===== */
.svc-cta {
  background: var(--deep);
  color: #fff;
  text-align: center;
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
}
.svc-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(0, 113, 227, 0.25) 0%, rgba(0, 113, 227, 0) 55%);
  pointer-events: none;
}
.svc-cta__inner { position: relative; z-index: 1; }
.svc-cta__title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin: 0 0 1rem; }
.svc-cta__desc { font-size: 1.0625rem; color: rgba(255, 255, 255, 0.78); max-width: 560px; margin: 0 auto 2rem; line-height: 1.7; }

/* ===== 响应式 ===== */
/* 中等屏：服务块转单列、面板取消 sticky，标题与描述仍分层 */
@media (max-width: 1024px) {
  .svc-block { padding: 2rem 0 2rem 1.75rem; }
  .svc-block::before { top: 1.25rem; bottom: 1.25rem; }
  .svc-block__grid { grid-template-columns: 1fr; gap: 2rem; }
  .svc-block__panel { position: static; }
  .svc-block__cols { grid-template-columns: 1fr; gap: 1.25rem; }
  .svc-block__head { flex-wrap: wrap; gap: 0.5rem; }
  .svc-block__title { font-size: 1.35rem; }
  .svc-hero { background-attachment: scroll; }
}
@media (max-width: 900px) {
  .svc-model-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .svc-hero__inner { padding: 7rem 1.25rem 4rem; }
  .svc-hero__actions { flex-direction: column; align-items: stretch; }
  .svc-hero__actions .btn-primary,
  .svc-hero__actions .btn-secondary { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-block, .svc-block::before, .svc-model-card, .svc-faq-item, .svc-faq-item summary::after { transition: none; }
}
