/* ============================================================
   Services V2 共用设计系统（服务详情页五页共用）
   - 从 tech-development V2 母版页内 CSS 等价抽取（2026-09-19）
   - 全部规则以 .v2- 前缀作用域隔离，仅被 V2 服务详情页 <link> 引入，
     不影响其他任何页面（包括未升级页面与 dist 构建产物）
   - 各页专属 Hero / mockup 视觉样式仍留在各页页内 <style>，不放这里
   ============================================================ */

/* ---- 布局骨架 ---- */
.v2-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.v2-sec { margin-top: 112px; }
.v2-kicker { display: inline-block; padding: 6px 16px; border-radius: 999px; background: rgba(0, 82, 204, 0.08); color: #0052cc; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.v2-h1 { font-size: clamp(34px, 3.9vw, 54px); font-weight: 800; line-height: 1.14; color: #171c26; margin: 18px 0 10px; letter-spacing: -0.01em; }
.v2-h1 .text-primary { color: #0052cc; }
.v2-h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; color: #171c26; margin: 0 0 10px; letter-spacing: -0.01em; }
.v2-h2sub { font-size: 16px; color: #6b7686; margin: 0 0 40px; }
.v2-desc { font-size: 16px; line-height: 1.75; color: #3f4a5c; margin: 0 0 28px; }
.v2-center { text-align: center; }
.v2-center .v2-h2sub { margin-left: auto; margin-right: auto; }
.v2-btn { display: inline-block; padding: 13px 30px; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; transition: all .2s ease; }
.v2-btn-solid { background: #0052cc; color: #fff; }
.v2-btn-solid:hover { background: #003d9b; }
.v2-btn-line { border: 1px solid rgba(0, 82, 204, 0.45); color: #0052cc; }
.v2-btn-line:hover { background: rgba(0, 82, 204, 0.06); }

/* ---- Hero 双栏（52/48） ---- */
.v2-hero-grid { display: grid; grid-template-columns: 52% 1fr; gap: 48px; align-items: center; }
.v2-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.v2-tags span { padding: 7px 16px; border-radius: 8px; background: #fff; border: 1px solid #dbe3ee; color: #3f4a5c; font-size: 13px; font-weight: 600; }

/* ---- 核心价值四柱（.cols-3 供三项服务页使用） ---- */
.v2-values { display: grid; grid-template-columns: repeat(4, 1fr); }
.v2-values.cols-3 { grid-template-columns: repeat(3, 1fr); }
.v2-value { padding: 34px 26px 8px 0; border-right: 1px solid #e9edf4; }
.v2-value:last-child { border-right: none; padding-right: 0; }
.v2-value:not(:first-child) { padding-left: 26px; }
.v2-value-num { font-size: 40px; font-weight: 800; color: #c9d6ea; line-height: 1; letter-spacing: -0.02em; }
.v2-value h3 { font-size: 18px; font-weight: 700; color: #171c26; margin: 16px 0 8px; }
.v2-value p { font-size: 14px; line-height: 1.65; color: #6b7686; margin: 0; }

/* ---- 核心服务卡片骨架（mockup 视觉由各页自备，置于 .v2-svc-card 头部） ---- */
.v2-svc-grid { display: grid; grid-template-columns: 62% 1fr; gap: 28px; align-items: stretch; }
.v2-svc-grid.even { grid-template-columns: repeat(2, 1fr); }
.v2-svc-card { background: #fff; border: 1px solid #e6eaf0; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.v2-svc-card h3 { font-size: 21px; font-weight: 800; color: #171c26; margin: 0 0 6px; }
.v2-svc-card > p { font-size: 14px; color: #6b7686; margin: 0 0 20px; line-height: 1.65; }
.v2-svc-body { padding: 26px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.v2-svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.v2-svc-tags span { font-size: 12px; font-weight: 600; color: #0052cc; background: rgba(0, 82, 204, 0.07); border-radius: 999px; padding: 5px 12px; }
.v2-svc-facts { margin: 0 0 18px; padding: 0; list-style: none; }
.v2-svc-facts li { font-size: 13.5px; line-height: 1.7; color: #3f4a5c; padding-left: 20px; position: relative; margin-bottom: 6px; }
.v2-svc-facts li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #0052cc; opacity: .55; }
.v2-svc-facts b { color: #171c26; font-weight: 600; }

/* ---- 适用场景 ---- */
.v2-scenes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.v2-scene { display: flex; align-items: center; gap: 12px; background: rgba(0, 82, 204, 0.05); border: 1px solid rgba(0, 82, 204, 0.10); border-radius: 12px; padding: 16px 18px; }
.v2-scene .material-symbols-outlined { font-size: 20px; color: #0052cc; }
.v2-scene b { font-size: 14px; font-weight: 600; color: #2c3648; }

/* ---- 能力矩阵 ---- */
.v2-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.v2-mcard { background: #fff; border: 1px solid #e6eaf0; border-radius: 16px; padding: 24px 26px; }
.v2-mcard-ico { width: 42px; height: 42px; border-radius: 11px; background: rgba(0, 82, 204, 0.08); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.v2-mcard-ico .material-symbols-outlined { font-size: 21px; color: #0052cc; }
.v2-mcard h3 { font-size: 16px; font-weight: 700; color: #171c26; margin: 0 0 7px; }
.v2-mcard p { font-size: 13.5px; line-height: 1.65; color: #6b7686; margin: 0; }

/* ---- 案例 ---- */
.v2-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.v2-cases.two { grid-template-columns: repeat(2, 1fr); }
.v2-case { background: #fff; border: 1px solid #e6eaf0; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.v2-case-img { height: 176px; background-size: cover; background-position: center; position: relative; }
.v2-case-img.grad { background: linear-gradient(135deg, #1c2b4a, #3d5a8f); }
.v2-case-img span { position: absolute; left: 14px; bottom: 12px; font-size: 11px; color: #fff; background: rgba(0, 24, 72, 0.55); padding: 4px 10px; border-radius: 6px; }
.v2-case-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.v2-case-body em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: #0052cc; text-transform: uppercase; }
.v2-case-body h3 { font-size: 17px; font-weight: 800; color: #171c26; margin: 7px 0 10px; }
.v2-case-body p { font-size: 13.5px; line-height: 1.65; color: #6b7686; margin: 0 0 12px; }
.v2-case-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.v2-case-chips span { font-size: 11px; font-weight: 600; color: #3f4a5c; background: #eef2f8; border-radius: 999px; padding: 4px 10px; }
.v2-case-num { margin-top: auto; padding-top: 14px; border-top: 1px solid #edf0f5; }
.v2-case-num b { font-size: 24px; font-weight: 800; color: #003d9b; letter-spacing: -0.01em; }
.v2-case-num small { font-size: 12px; color: #6b7686; margin-left: 6px; }
.v2-case-num.v2-case-num-txt b { font-size: 15px; letter-spacing: 0; }

/* ---- FAQ ---- */
.v2-faq { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.v2-faq-item { position: relative; background: #fff; border: 1px solid #e6eaf0; border-radius: 14px; padding: 20px 56px 20px 24px; }
.v2-faq-item h3 { font-size: 15px; font-weight: 700; color: #171c26; margin: 0 0 8px; }
.v2-faq-item p { font-size: 14px; line-height: 1.7; color: #6b7686; margin: 0; }
.v2-faq-item::after { content: '+'; position: absolute; right: 22px; top: 18px; font-size: 20px; font-weight: 600; color: #0052cc; }

/* ---- 底部 CTA ---- */
.v2-cta { background: linear-gradient(160deg, #0052cc 0%, #003d9b 100%); border-radius: 24px; padding: 72px 48px; text-align: center; color: #fff; }
.v2-cta h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; margin: 0 0 12px; color: #fff; }
.v2-cta p { font-size: 16px; color: rgba(255, 255, 255, 0.78); margin: 0 0 34px; }
.v2-cta-btn { display: inline-block; padding: 14px 34px; border-radius: 12px; font-size: 15px; font-weight: 700; text-decoration: none; background: #fff; color: #003d9b; }
.v2-cta-btn.v2-cta-btn-line { background: transparent; border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; }

/* ---- 响应式（与 tech-development 母版逐条等价） ---- */
/* 20260930 宽屏基线对齐：v2 详情页版心并入全站统一 scale
   （1280~1919 1360px / ≥1920 1440px，与 marketing-responsive.css 的
   --layout-main/--layout-wide 同源；fallback 保证单独加载时可用的静态值）。 */
@media (min-width: 1280px) {
  .v2-wrap { max-width: var(--layout-main, 1360px); }
}
@media (min-width: 1920px) {
  .v2-wrap { max-width: var(--layout-wide, 1440px); }
}
@media (max-width: 1200px) {
  .v2-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .v2-values { grid-template-columns: repeat(2, 1fr); }
  .v2-values.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .v2-value { padding: 24px 18px 20px; border-right: none; }
  .v2-svc-grid { grid-template-columns: 1fr; }
  .v2-svc-grid.even { grid-template-columns: repeat(2, 1fr); }
  .v2-scenes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .v2-wrap { padding: 0 20px; }
  .v2-sec { margin-top: 72px; }
  .v2-values { grid-template-columns: 1fr; }
  .v2-values.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .v2-matrix { grid-template-columns: 1fr; }
  .v2-cases { grid-template-columns: 1fr; }
  .v2-cases.two { grid-template-columns: 1fr; }
  .v2-scenes { grid-template-columns: 1fr; }
  .v2-svc-grid.even { grid-template-columns: 1fr; }
  .v2-cta { padding: 56px 24px; }
}

/* ============================================================
   Mobile V2 母版（<=767px；自 tech-development 已验证基线 4664px 下沉为共用规则）
   - 数值与 tech 页面作用域内已验收规则逐条同值；tech 页面规则后置加载且同值，不产生视觉差异
   - 手风琴骨架基线（桌面 display:contents 透明化）供各页 <details class="v2-msvc"> 包装使用
   ============================================================ */
.v2-msvc { display: contents; }
.v2-msvc > summary { display: none; }
.v2-merge-sec { display: none; }

@media (max-width: 767px) {
  /* —— Hero：面包屑与文案间距压缩 —— */
  .v2-crumb { margin-top: 10px; margin-bottom: 10px; padding-left: 20px; padding-right: 20px; }
  .v2-sec { margin-top: 56px; }
  .v2-kicker { font-size: 12px; padding: 5px 13px; }
  .v2-h1 { margin: 12px 0 8px; }
  .v2-desc { margin: 0 0 18px; }
  .v2-hero-grid .v2-btn { padding: 11px 24px; font-size: 14px; }
  .v2-hero-grid > div > div[style] { margin-bottom: 16px !important; }
  .v2-tags { margin-top: 14px; gap: 8px; }
  .v2-tags span { padding: 6px 12px; font-size: 12px; }

  /* —— 核心价值：紧凑 2×2 —— */
  .v2-h2sub { margin: 0 0 24px; }
  .v2-values { grid-template-columns: repeat(2, 1fr) !important; column-gap: 16px; }
  .v2-value { padding: 0 0 14px !important; border-right: none !important; }
  .v2-value-num { font-size: 26px; }
  .v2-value h3 { font-size: 15px; margin: 6px 0 5px; }
  .v2-value p { font-size: 12.5px; line-height: 1.55; }

  /* —— 核心服务：手风琴（默认仅首项展开，其余由各页断点脚本收起；内容全部留在 DOM） —— */
  .v2-msvc { display: block; background: #fff; border: 1px solid #e6eaf0; border-radius: 16px; overflow: hidden; }
  .v2-msvc + .v2-msvc { margin-top: 14px; }
  .v2-msvc > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px; font-size: 15px; font-weight: 700; color: #171c26; cursor: pointer; list-style: none; }
  .v2-msvc > summary::-webkit-details-marker { display: none; }
  .v2-msvc > summary::after { content: '+'; font-size: 18px; font-weight: 600; color: #0052cc; line-height: 1; }
  .v2-msvc[open] > summary::after { content: '−'; }
  .v2-msvc[open] .v2-svc-card { border: none; border-radius: 0; }

  /* —— 适用场景：紧凑 2×2 chips —— */
  .v2-scenes { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .v2-scene { padding: 12px 14px; }
  .v2-scene b { font-size: 13px; }

  /* —— 成功案例：横向 scroll-snap carousel（一次约 88% 卡片） —— */
  .v2-cases { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 2px 20px 6px; scrollbar-width: none; -ms-overflow-style: none; }
  .v2-cases::-webkit-scrollbar { display: none; }
  .v2-case { flex: 0 0 88%; scroll-snap-align: center; }

  /* —— FAQ：details/summary 默认收起（展开态由各页断点脚本管理） —— */
  .v2-faq-item { padding: 0 46px 0 18px; }
  .v2-faq-item::after { display: none; }
  .v2-faq-item summary { position: relative; font-size: 14.5px; font-weight: 700; color: #171c26; padding: 15px 0; cursor: pointer; list-style: none; }
  .v2-faq-item summary::-webkit-details-marker { display: none; }
  .v2-faq-item summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 18px; font-weight: 600; color: #0052cc; line-height: 1; }
  .v2-faq-item[open] summary::after { content: '−'; }
  .v2-faq-item[open] p { padding: 0 0 15px; }
  .v2-faq { gap: 10px; }

  /* —— CTA：压缩过半，单主按钮（移动端已有固定底栏电话/AI/获取方案） —— */
  .v2-cta { padding: 20px 16px 22px !important; border-radius: 16px !important; }
  .v2-cta h2 { font-size: 20px !important; margin: 0 0 5px !important; }
  .v2-cta p { font-size: 12.5px !important; margin: 0 0 12px !important; }
  .v2-cta .v2-cta-btn { padding: 10px 24px !important; font-size: 13px !important; }
  .v2-cta .v2-cta-btn.v2-cta-btn-line { display: none !important; }
  .v2-sec:last-of-type { margin-top: 44px; }
  main.template-token-scope { padding-bottom: 28px !important; }
}

/* —— 桌面端 FAQ details 还原 h3 排版（summary 顶替 h3，观感不变） —— */
@media (min-width: 768px) {
  .v2-faq-item { padding: 20px 56px 20px 24px; }
  .v2-faq-item summary { font-size: 15px; font-weight: 700; color: #171c26; margin: 0 0 8px; cursor: pointer; list-style: none; }
  .v2-faq-item summary::-webkit-details-marker { display: none; }
}

/* ---- 移动端底部导航安全区（等价成品页 body 的 pb-20 md:pb-0；
        build 剥离 body 自定义 class，改由共享 CSS 承担，避免固定底栏遮挡 footer） ---- */
@media (max-width: 767px) {
  body { padding-bottom: 80px; }
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
}
