/* ==========================================================================
   home.css —— 首页
   设计规范：.trae/rules/ui_spec.md
   原则：大留白 + 大标题 + 大视觉 + 少量克制品牌红（占比 ≤10%）
   ========================================================================== */

/* ---------- Hero（首屏 Banner：全宽 1920 × 800，背景图承载主视觉，与菜单栏顶对齐） ---------- */
.hero {
  position: relative;
  min-height: 800px;
  display: flex;
  align-items: flex-start;
  /* 负 margin 抵消 sticky header：banner 背景顶到页面最顶部（与菜单栏顶对齐） */
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + 144px);
  padding-bottom: var(--space-80);
  overflow: hidden;
  background:
    url("../images/背景/hero-banner.png") center / cover no-repeat,
    var(--bg-secondary);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-48);
  align-items: start;
  width: 100%;
}

/* 左对齐文案块：大标题 → 次级标题 → 辅助文案 → 按钮 */
.hero-copy {
  max-width: 640px;
}

.hero h1 {
  font-size: 60px;
  font-weight: var(--fw-700);
  line-height: 68px; /* 60 + 8 */
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 30px;
  font-weight: var(--fw-400);
  line-height: var(--lh-h3); /* 30 + 8 */
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.hero-desc {
  font-size: 16px;
  font-weight: var(--fw-400);
  line-height: var(--lh-body); /* 16 + 8 */
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 56px;
}

.hero-cta {
  display: flex;
  gap: var(--space-16);
  flex-wrap: wrap;
}

/* Hero 主按钮：16px 常规字重 + 右箭头 icon（脱离全局 .btn 的 14px/600） */
.hero-cta .btn {
  font-size: 16px;
  font-weight: var(--fw-400);
  gap: 8px;
}
.hero-cta .btn svg {
  width: 18px;
  height: 18px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
  margin-top: var(--space-48);
  padding-top: var(--space-32);
  border-top: 1px solid var(--border-default);
}

.hero-stat strong {
  display: block;
  font-size: var(--fs-h4);
  font-weight: var(--fw-700);
  color: var(--brand-600);
  letter-spacing: -0.02em;
  line-height: var(--lh-h4);
}

.hero-stat span {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--text-tertiary);
}

/* ---------- 解决方案 Solutions（横向 Carousel 卡片流） ---------- */
/* 卡片尺寸与右侧露出的渐隐宽度用变量控制，便于响应式收缩 */
.solutions {
  --sol-card-w: 375px;
  --sol-card-h: 428px;
  --sol-card-h-hover: 492px;
  --sol-shadow-space: 36px; /* 卡片底部投影安全空间，用于避免被右侧渐隐遮罩裁切 */
  --carousel-peek: 116px;
  position: relative;
  isolation: isolate; /* 让 ::before 背景层独立成层，不遮挡板块内容 */
  /* 板块高度锁定 726px（默认 / 悬浮态），选中态补足到 800px。
     内容自然高 = 标题区 88 + 间距 32 + 卡片区 528 = 648px，
     故上下内边距合计收缩为 78px（全部留在顶部），元素尺寸与布局均不变。
     高度过渡与 ::before 背景层同源（背景层随板块同高）：
     下方的「发展历程 / 成功案例 / 合作咨询」随板块下移 74px，接缝始终无缝 */
  height: 726px;
  padding: 78px 0 0;
  transition: height 0.6s var(--ease);
  z-index: 2;
  /* 兜底色（取自本背景图边缘像素）：仅超宽屏（>1920px）图片左右两侧露出 */
  background: #FCFDFE;
}

/* 板块背景层：与板块同尺寸（inset: 0），1920×800 原图严格 1:1 渲染、底部对齐。
   默认 / 悬浮态板块高 726px，图片顶部 74px 位于板块之上被裁掉
   （即藏于首屏 banner 之下）；选中态板块高 800px，整幅原图完整露出。
   图片底部始终与板块底部对齐 → 与下一板块背景图顶部严丝合缝 */
.solutions::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/背景/1-解决方案背景_1920.png") center bottom / 1920px 800px no-repeat;
  pointer-events: none;
}

/* 标题区：左侧红竖线 + 主标题/辅助文案，右上角左右箭头 */
.solutions-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-32);
  /* 卡片顶部距辅助文案 32px */
  margin-bottom: var(--space-32);
}

.solutions-head-copy {
  max-width: 760px;
}

.solutions-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  /* 辅助文案距大标题 12px */
  margin-bottom: var(--space-12);
}

/* 标题左侧红色竖线：宽 4px · 高 24px · 圆角 1px */
.solutions-bar {
  width: 4px;
  height: 24px;
  border-radius: 1px;
  background: var(--brand-600);
  flex-shrink: 0;
}

.solutions-title {
  font-size: 36px;
  font-weight: var(--fw-400);
  line-height: var(--lh-h2); /* 36 + 8 */
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.solutions-desc {
  font-size: var(--fs-body); /* 16 */
  font-weight: var(--fw-400);
  line-height: var(--lh-body); /* 16 + 8 */
  color: var(--text-secondary);
  padding-left: calc(4px + var(--space-16)); /* 与主标题左对齐（竖线 + 间距） */
}

/* 右上角左右箭头 */
.solutions-arrows {
  display: flex;
  gap: var(--space-12);
  flex-shrink: 0;
  margin-top: var(--space-6);
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  border-radius: 50%;
  background: var(--bg-primary);
  color: var(--text-secondary);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease), opacity 0.25s var(--ease);
}
.carousel-arrow svg {
  width: 20px;
  height: 20px;
}
.carousel-arrow:hover {
  color: var(--brand-600);
  border-color: var(--border-brand);
  background: var(--brand-50);
}
.carousel-arrow[aria-disabled="true"] {
  color: var(--text-disabled);
  border-color: var(--border-default);
  background: var(--bg-primary);
  cursor: not-allowed;
  opacity: 0.6;
}
.carousel-arrow[aria-disabled="true"]:hover {
  color: var(--text-disabled);
  border-color: var(--border-default);
  background: var(--bg-primary);
}

/* 选中态：退出按钮（×）位于右侧详情卡片右上角（距顶 24px / 距右 40px），仅在选中态显示 */
.sol-close {
  display: none;
  position: absolute;
  top: 24px;
  right: 40px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-tertiary);
  cursor: pointer;
  z-index: 3; /* 高于 Tab / 面板内容 */
  transition: color 0.2s var(--ease);
}
.sol-close__icon {
  width: 20px;
  height: 20px;
}
.sol-close:hover {
  color: var(--brand-600);
}
/* 聚焦：以品牌色圆环提示焦点，不出现默认矩形描边（仍满足 WCAG AA 可见焦点） */
.sol-close:focus-visible {
  outline: none;
  color: var(--brand-600);
  border-radius: 2px;
  box-shadow: 0 0 0 2px var(--brand-100), 0 0 0 3px var(--brand-600);
}
/* 选中态时：右上角左右箭头隐藏 */
.solutions.is-selected .solutions-arrows .carousel-arrow {
  display: none;
}
.solutions.is-selected .sol-close {
  display: inline-flex;
}

/* 卡片视口：仅横向裁切（隐藏溢出的卡片、右侧 116px 渐隐露出下一张）。
   固定 height = 悬浮卡片高 + 底部投影安全空间，保证交互时板块高度不变、
   背景图不随内容缩放；遮罩 box 覆盖含投影空间在内的整块区域，投影不被裁切。 */
.solutions-carousel {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  height: calc(var(--sol-card-h-hover) + var(--sol-shadow-space));
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--carousel-peek)), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - var(--carousel-peek)), transparent 100%);
}

.solutions-track {
  display: flex;
  gap: 0;
  align-items: flex-start;
  width: max-content;
  will-change: transform;
  transition: transform 0.4s var(--ease);
}

/* 卡片：默认态 375×428 · 无背景 · 圆角 0 */
.sol-card {
  position: relative;
  flex: 0 0 var(--sol-card-w);
  width: var(--sol-card-w);
  height: var(--sol-card-h);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  transition: height 0.4s var(--ease), background 0.4s var(--ease),
    box-shadow 0.4s var(--ease), transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

/* 悬浮态：白色背景 + 阴影 + 高度 492 + 右下流动渐变描边 */
.sol-card:hover {
  height: var(--sol-card-h-hover);
  background: var(--bg-primary);
  box-shadow: 0 2px 32px rgba(0, 25, 75, 0.12);
}

/* 沿卡片边缘流动的渐变动态描边（535px 长 · 1px 宽 · 圆角 0）。
   由 ::before 的 mask 画出 1px 内描边，需保持卡片无真实 border，
   否则 border-box 会令 icon/标题/正文整体下移 1px，悬浮时上方内容不得位移。 */
.sol-card:hover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  padding: 1px;
  /* 渐变带弧长 = 535px（占周长 1734px 约 30.9% ≈ 111°），其余透明；整带随角度旋转流动。
     颜色：亮红 #ff7879 位于流动方向的前端（head），渐隐透明位于后端（tail）。
     from 偏移 212deg：让亮红端点在旋转起点（--sol-angle=0）正好位于卡片左上角，
     随后整体顺时针绕卡片一圈（0→360deg，左上→上→右→下→左→回左上）。 */
  background: conic-gradient(
    from calc(var(--sol-angle) + 212deg),
    transparent 0deg,
    #ffd1d1 17deg,
    #ff9e9e 48deg,
    #ffb8b8 79deg,
    #ff8585 94deg,
    #ff7879 111deg,
    transparent 112deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  /* 流动速度较原方案降低一半：3s → 6s */
  animation: sol-border-flow 6s linear infinite;
}

/* 卡片内容：icon 20×20 · 标题 20 · 英文 12 · 正文 14 · 按钮 40 · 图 327×184 */
.sol-card-icon {
  width: 20px; /* 无背板：图标容器与图标同尺寸，左缘与标题对齐 */
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  /* 标题距上方 icon 8px */
  margin-bottom: var(--space-8);
}
.sol-card-icon img {
  display: block;
  width: 20px;
  height: 20px;
}

.sol-card-title {
  font-size: 20px;
  font-weight: var(--fw-400);
  line-height: 28px; /* 20 + 8 */
  color: var(--text-primary);
  /* 辅助文案(英文)距标题 0px */
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.sol-card-en {
  font-family: var(--font-latin);
  font-size: var(--fs-caption); /* 12 */
  font-weight: var(--fw-400);
  line-height: var(--lh-caption); /* 12 + 8 */
  color: var(--text-tertiary);
  /* 正文距辅助文案(英文) 8px */
  margin-bottom: var(--space-8);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.sol-card-body {
  font-size: var(--fs-body-sm); /* 14 */
  font-weight: var(--fw-400);
  line-height: var(--lh-body-sm); /* 14 + 8 */
  color: var(--text-secondary);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

/* 按钮：高 40 · 宽填满容器（327）· 品牌红；默认态隐藏，悬浮态出现 */
.sol-card-btn {
  height: 40px;
  width: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: var(--brand-600);
  color: var(--text-inverse);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-600);
  line-height: var(--lh-body-sm); /* 14 + 8 */
  /* 悬浮时按钮距上方正文、下方图片各 24px */
  margin: var(--space-24) 0;
  transition: background 0.2s var(--ease);
}
.sol-card:hover .sol-card-btn {
  display: inline-flex;
}
.sol-card-btn:hover {
  background: var(--brand-700);
}

/* 方案对应图片：327×188（卡片容器 327×184，等比裁切填充） */
.sol-card-img {
  width: 327px;
  max-width: 100%;
  height: 184px;
  border-radius: 0;
  overflow: hidden;
  /* 默认态：正文距图片 24px（悬浮时按钮占据该间距，图片下移展开） */
  margin-top: var(--space-24);
  transition: margin-top 0.4s var(--ease);
}
.sol-card:hover .sol-card-img {
  /* 悬浮时按钮已提供上/下 24px 间距，图片不额外留边距 */
  margin-top: 0;
}
.sol-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 描边流动动画 */
@property --sol-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes sol-border-flow {
  to {
    --sol-angle: 360deg;
  }
}

/* ==========================================================================
   解决方案 · 选中态（点击「了解更多」后）
   逻辑：默认 → 悬浮 → 点击选中 → 详情 Tab 切换
   结构：.sol-stage 包裹 Carousel 与选中态（绝对定位重叠，避免高度跳动）
   视觉：左侧 363px 方案简介卡片 + 右侧详情（Tab + 面板）
   背景：两态固定用 解决方案背景图1920_800.png，选中态由裁切 726px 补全为 800px
   ========================================================================== */

/* 选中态：板块高度补足到 800px（新增的 74px 落在板块底部，内容位置不变），
   背景层随板块同高 → 原图 800px 完整展示，且整体下移 74px */
.solutions.is-selected {
  height: 800px;
}

/* 包裹层：绝对定位基准，让 Carousel 与选中态重叠切换，不产生高度跳动 */
.sol-stage {
  position: relative;
  min-height: calc(var(--sol-card-h-hover) + var(--sol-shadow-space));
}

/* 选中态容器：绝对覆盖于 Carousel 之上，淡入淡出 + 轻微上移感 */
.sol-mode {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 0; /* 363px 卡片 + 1253px 背板 = 1616px（1920 内容宽），无额外间距 */
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.sol-mode.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Carousel 在选中时不整体淡出：让“分列散开”位移动画可见。
   各卡片的透明/位移由 home.js 的 fanOutCarousel 逐卡写入（非选中→opacity 0，被选中→滑向左端），
   其淡入淡出由 .sol-card 已有的 transform/opacity 过渡完成。
   选中后仅禁止捕获指针，避免遮挡右侧详情交互。 */
.solutions.is-selected .solutions-carousel {
  pointer-events: none;
}

/* 选中时卡片向外“分列散开”（过渡已在 .sol-card 定义，此处显式声明以便控制时序）。 */
.solutions.is-selected .sol-card {
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

/* ---------- 左侧：选中态方案简介卡片（363px 宽 · 白色背景 · 高度随正文） ---------- */
.sol-selected {
  position: relative;
  z-index: 2; /* 卡片的投影需渲染在右侧详情背板之上 */
  flex: 0 0 363px;
  width: 363px;
  max-width: 363px;
  height: 533px; /* 选中态卡片尺寸固定 363×533px */
  align-self: flex-start;
  padding: var(--space-24);
  background: var(--bg-primary);
  box-shadow: 0 2px 32px rgba(0, 25, 75, 0.12);
  box-sizing: border-box;
  /* 纵向弹性排布：内容自上而下排布（正文与图片间距固定，下方留白自动） */
  display: flex;
  flex-direction: column;
}

/* 左侧距顶部 24px 的红色小标 */
.sol-badge {
  position: absolute;
  left: 0;
  top: 24px;
  width: 22px;
  height: 22px;
  background: url("../images/红色小标_解决方案_卡片_选中.png") center / contain no-repeat;
  pointer-events: none;
}

.sol-selected-icon {
  width: 20px; /* 无背板：图标容器与图标同尺寸，左缘与标题对齐 */
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  margin-bottom: var(--space-8);
}
.sol-selected-icon img {
  display: block;
  width: 20px;
  height: 20px;
}

.sol-selected-title {
  font-size: 20px;
  font-weight: var(--fw-400);
  line-height: 28px;
  color: var(--text-primary); /* 选中态卡片标题使用常规标题色 */
  margin-bottom: var(--space-8); /* 正文与标题间距 8px */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.sol-selected-body {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-400);
  line-height: var(--lh-body-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-24); /* 图与正文文案间距 24px */
  /* 正文取自然高度，超出部分裁切（最多 10 行 × 22px = 220px）；图片紧随其下 24px */
  flex: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10;
  overflow: hidden;
  /* 正文首行缩进两字；pre-line 保留原文换行（方案概况中的分条说明需逐行呈现） */
  text-indent: 2em;
  white-space: pre-line;
}

/* 财务资金系统方案：正文撑满容器剩余高度，图片被顶到卡片底部（距底 24px = 卡片下内边距） */
.sol-selected--pin-img .sol-selected-body {
  flex: 1 1 auto;
  min-height: 0;
}

/* 方案对应图片：315×177（原图 327×188，等比裁切填充） */
.sol-selected-img {
  width: 315px;
  max-width: 100%;
  height: 177px;
  border-radius: 0;
  overflow: hidden;
  flex: none; /* 不参与伸缩，保持图片自身尺寸，紧随正文下方 24px */
}
.sol-selected-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 右侧：详情区（Tab + 面板） ---------- */
.sol-detail {
  position: relative; /* “×”退出按钮的定位基准 */
  flex: 1;
  min-width: 0;
  z-index: 1; /* 详情背板垫于选中卡片下方，使卡片投影可见 */
  align-self: flex-start;
  height: 533px; /* 固定背板高度与选中卡片一致 */
  box-sizing: border-box;
  /* 固定背板：1920 下为 1253×533 · 渐变填充 左 #FBFDFF → 右 #FFFFFF · 内边距 上下24/左32/右40 */
  background: linear-gradient(90deg, #fbfdff, #ffffff);
  padding: 24px 40px 24px 32px;
  /* 详情内容从选中卡片向右滑入（“从卡片下方出现并右移”） */
  transform: translateX(-32px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.sol-mode.is-active .sol-detail {
  transform: translateX(0);
  opacity: 1;
}

/* 详情区首行：Tab 栏（退出按钮已移至卡片右上角，Tab 恢复左上角原位） */
.sol-detail-head {
  margin-bottom: var(--space-32);
}

/* Tab 栏：16px · 选中品牌红+下划线 · unselected 标题颜色 · 基线对齐 */
.sol-tabs {
  display: flex;
  gap: var(--space-40);
  align-items: flex-end; /* 保证所有 tab 基线对齐 */
}
.sol-tab {
  position: relative;
  background: none;
  border: none;
  padding: 0 0 6px; /* 文字与下划线间距 6px（设计稿定值） */
  margin: 0;
  font-family: inherit;
  font-size: var(--fs-body); /* 16 */
  font-weight: var(--fw-400);
  line-height: var(--lh-body); /* 16 + 8 */
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
}
.sol-tab.is-active {
  color: var(--brand-600);
  font-weight: var(--fw-500);
}
/* 下划线：高 2px · 比文字左右各宽 4px · 与文字间距 6px */
.sol-tab.is-active::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0;
  height: 2px;
  background: var(--brand-600);
}
/* 顶部 Tab 聚焦：以底部品牌线提示焦点，不再出现全局矩形描边（仍满足 WCAG AA 可见焦点） */
.sol-tab:focus-visible {
  outline: none;
  box-shadow: 0 2px 0 0 var(--brand-600);
}
/* 左侧 Tab 聚焦：以浅品牌底色提示焦点（同样不出现矩形描边） */
.gov-item:focus-visible {
  outline: none;
  background: var(--brand-100);
}

/* 面板容器：切换时淡入 */
.sol-panel {
  display: none;
}
.sol-panel.is-active {
  display: block;
  animation: sol-panel-in 0.35s var(--ease);
}
@keyframes sol-panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 面板①：系统架构（方案 1~4）· 左文案 + 右 844×406 框架图 ---------- */
.arch-single {
  display: flex;
  gap: var(--space-24); /* 左侧文案与右侧框架图外框间距 24px */
  align-items: flex-start;
}
.arch-copy {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: var(--space-8); /* 小段落/小板块之间间距 8px */
}
.arch-block .arch-sub {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-500);
  color: var(--text-primary);
  line-height: var(--lh-body-sm);
  margin-bottom: 0; /* 小标题与对应正文间距 0px */
}
.arch-block + .arch-block .arch-sub {
  /* 板块之间由 .arch-copy 的 gap 控制 */
}
.arch-block .arch-text {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-400);
  color: var(--text-secondary);
  line-height: var(--lh-body-sm);
}
/* 无小标题的独立段落：首行缩进 2 字符 */
.arch-block .arch-text--indent {
  text-indent: 2em;
}
.arch-frame {
  flex: 1;
  min-width: 0;
  height: 406px;
  padding: 40px; /* 架构图外框内边距 40px */
  border: 1px solid var(--border-default); /* 无填充 · 描边 1px #E5E7EB */
  display: flex;
  align-items: center;
  justify-content: center;
}
.arch-frame__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* 原图等比例填充 */
}
.arch-frame__placeholder {
  width: 100%;
  height: 100%;
  border: 1px dashed var(--border-default);
  display: grid;
  place-items: center;
  color: var(--text-quaternary);
  font-size: var(--fs-body-sm);
  letter-spacing: 0.08em;
}

/* ---------- 面板①：系统架构（方案 5）· 双框架图（579+578 或等比） ---------- */
.arch-duo {
  display: flex;
  gap: var(--space-24);
  align-items: flex-start;
}
.arch-duo-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.arch-duo .arch-frame {
  flex: 1 1 auto;
  min-width: 0;
  height: 406px;
}
.arch-duo-title {
  font-size: var(--fs-body);
  font-weight: var(--fw-500);
  color: var(--text-primary);
  line-height: var(--lh-body);
  margin-bottom: var(--space-12);
}

/* ---------- 面板②：方案优势（方案 1~5）· 两列分点 · 60×60 icon + 16px 小标题 + 14px 正文 ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px; /* 小段落/小板块之间纵向、横向间距 28px（设计稿定值） */
}
.adv-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px; /* icon 与文字块间距 */
  min-width: 0;
}
.adv-icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  border: 1px solid var(--brand-100);
  display: grid;
  place-items: center;
  color: var(--brand-400);
}
.adv-icon svg {
  width: 28px;
  height: 28px;
}
/* 真实 icon 图（60×60）：图片自带底色，去掉占位渐变与描边 */
.adv-icon--img {
  background: none;
  border: 0;
  border-radius: 0;
}
.adv-icon img {
  display: block;
  width: 60px;
  height: 60px;
}
.adv-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.adv-sub {
  font-size: var(--fs-body); /* 16 */
  font-weight: var(--fw-500);
  color: var(--text-primary);
  line-height: var(--lh-body);
  margin-bottom: 4px; /* 小标题与正文间距 4px */
}
.adv-text {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-400);
  color: var(--text-secondary);
  line-height: var(--lh-body-sm);
}

/* ---------- 面板③：方案对比（方案 5）· 左红列 / 中 VS 对撞 / 右蓝列 ---------- */
.compare-stage {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* 左右分点列与中部大圆垂直居中 */
  justify-content: space-between;
  gap: var(--space-24);
  min-height: 384px; /* 详情背板可视高度内垂直居中 */
  /* 叠加背板自身内边距（左 32 / 右 40）后：最外侧 icon 距卡片左右边缘各 80px */
  padding: 0 40px 0 48px;
}
.cmp-side {
  position: relative; /* 弧线的定位基准 */
  flex: 0 0 auto;
}
.cmp-items {
  position: relative;
  z-index: 1; /* 分点浮于圆弧之上 */
  display: flex;
  flex-direction: column;
  gap: 18px; /* 分点纵向间距 18px */
}
.cmp-side--left .cmp-items {
  align-items: flex-start;
}
.cmp-side--right .cmp-items {
  align-items: flex-end; /* 右侧：文案在左 icon 在右 */
}
.cmp-item {
  display: flex;
  align-items: center;
  gap: 28px; /* icon 与文案间距 28px */
}
/* icon 沿弧线弧度摆放：4 个 icon 圆心均落在直径 280px 的弧上，
   外侧两个相对中间两个水平内收 32px（由弧的弧度换算得出） */
.cmp-side--left .cmp-item--1,
.cmp-side--left .cmp-item--4 {
  transform: translateX(32px);
}
.cmp-side--right .cmp-item--1,
.cmp-side--right .cmp-item--4 {
  transform: translateX(-32px);
}
.cmp-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.cmp-icon img {
  display: block;
  width: 44px;
  height: 44px;
}
.cmp-side--left .cmp-icon {
  box-shadow: 0 12px 16px -5px rgba(255, 31, 32, 0.35); /* 左投影 */
}
.cmp-side--right .cmp-icon {
  box-shadow: 0 12px 16px -5px rgba(31, 105, 255, 0.35); /* 右投影 */
}
.cmp-text {
  font-size: var(--fs-body-sm); /* 14 */
  font-weight: var(--fw-400);
  color: var(--text-secondary); /* 常规正文色 */
  line-height: var(--lh-body-sm);
  white-space: nowrap; /* 每行文案单行展示 */
}

/* 中部：红/蓝大圆 + VS（白色面板 + 投影） */
.cmp-center {
  display: flex;
  align-items: center;
  gap: 0; /* 由 .cmp-vs 的负外边距实现 VS 白圆与左右大圆轻微叠压 */
  flex: 0 0 auto;
}
.cmp-orb {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-inverse);
  font-size: 20px;
  font-weight: var(--fw-500);
  line-height: 28px; /* 20 + 8 */
  flex-shrink: 0;
}
.cmp-orb--red {
  background: linear-gradient(180deg, #d1191a, #ef1b22);
  box-shadow: 0 28px 32px -10px rgba(255, 31, 32, 0.35); /* 背板投影 */
}
.cmp-orb--blue {
  background: linear-gradient(180deg, #1956d1, #1b69ef);
  box-shadow: 0 28px 32px -10px rgba(31, 105, 255, 0.35); /* 背板投影 */
}
.cmp-vs {
  flex: 0 0 auto;
  position: relative;
  z-index: 1; /* 白圆叠压于左右大圆之上 */
  margin: 0 -18px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-primary);
  box-shadow: 0 8px 16px 0 rgba(71, 71, 71, 0.15); /* 背景投影 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 32px;
  font-weight: var(--fw-500);
  font-style: italic;
  transform: skew(-10deg); /* 炫酷倾斜字体 */
  line-height: 40px; /* 32 + 8 */
}
/* VS 文字：上红下红渐变 / 上蓝下蓝渐变
   斜体（字体合成斜体 + 父级 skew）会让字形上下缘越出行盒的绘制区，
   越出部分取不到渐变底色、露出白色圆底（即“V 被白色遮盖”）。
   故用 padding 撑开背景绘制区（四向均留余量），再用等量负外边距抵消，不影响排版。 */
.cmp-vs .v,
.cmp-vs .s {
  padding: 4px 12px;
  margin: -4px -12px;
}
.cmp-vs .v {
  background: linear-gradient(180deg, #d1191a, #ef1b22);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cmp-vs .s {
  background: linear-gradient(180deg, #1956d1, #1b69ef);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 半圆弧线：直径 280px（半径 140）· 左列向外鼓红弧 / 右列向外鼓蓝弧
   实现：280×280 正圆，仅描边内侧/外侧一条 border —— 该侧 border 恰好就是一条半圆弧
   颜色自上而下：#EB1C1D 0% → #FF1F20 60% → #EB1C1D 0%（两端为全透明，故用遮罩淡出实现） */
.cmp-arc {
  position: absolute;
  top: 50%;
  margin-top: -140px; /* 弧心与分点列垂直居中 */
  width: 280px;
  height: 280px;
  border: 2px solid transparent;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0; /* 弧线垫于 icon 之下 */
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 50%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 50%, rgba(0, 0, 0, 0) 100%);
}
.cmp-arc--red {
  left: 18.5px; /* 弧心 = 中间两个 icon 圆心 */
  border-left-color: rgba(255, 31, 32, 0.6); /* 中部 #FF1F20 · 60% 不透明度 */
}
.cmp-arc--blue {
  right: 18.5px;
  border-right-color: rgba(27, 105, 239, 0.6); /* 中部 #1B69EF · 60% 不透明度 */
}

/* 占位通用 */
.arch-frame__placeholder,
.adv-icon svg {
  /* 已定义 */
}

/* ==========================================================================
   第 6 个方案（“一证多用”电子印章服务专区）· 政务专区
   结构：顶部一级 Tab（4） + 左侧二级/三级 Tab + 右侧内容
   视觉：统一大标题体系（3×20 红条 + 16px 标题 + 12px 辅助文案）
   ========================================================================== */

/* ---------- 顶部一级 Tab：字号 16px · 下划线比文字左右各宽 8px ---------- */
.sol-detail.is-gov {
  display: flex;
  flex-direction: column;
}
.sol-detail.is-gov .sol-detail-head {
  margin-bottom: var(--space-16); /* 左侧 Tab 栏距顶部 Tab 16px */
}
.sol-detail.is-gov .sol-panels {
  flex: 1 1 auto;
  min-height: 0;
}
.sol-detail.is-gov .sol-tab {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.sol-detail.is-gov .sol-tab.is-active::after {
  left: -8px;
  right: -8px;
}

/* ---------- 主体：左侧导航 + 右侧内容 ---------- */
.gov-body {
  display: flex;
  align-items: flex-start;
  gap: var(--space-16); /* 左侧 Tab 栏与右侧内容板块间距 16px */
  height: 100%;
}

/* 左侧 Tab 栏：175×408px */
.gov-side {
  position: relative;
  flex: 0 0 175px;
  width: 175px;
  height: 408px;
  padding-left: var(--space-12);
  box-sizing: border-box;
}
/* 左侧渐变二级骨架基准线（0% → 5% 渐显 · 90% → 100% 渐隐） */
.gov-side::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(218, 222, 229, 0) 0%,
    #dadee5 5%,
    #dadee5 90%,
    rgba(218, 222, 229, 0) 100%
  );
}

.gov-lv2 {
  display: flex;
  flex-direction: column;
  gap: var(--space-8); /* 二级 Tab 间距 8px（含“CA证书办理指南”与三级 Tab 间距） */
}

/* 二级 / 三级选项：高 32px · 字号 14px */
.gov-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  height: 32px;
  box-sizing: border-box;
  padding: 0 var(--space-8);
  border: none;
  border-radius: 2px;
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-400);
  line-height: var(--lh-body-sm);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.gov-item:hover {
  color: var(--brand-600);
}
/* 选中：仅文字与箭头变红（无背板、无描边） */
.gov-item.is-active {
  color: var(--brand-600);
  font-weight: var(--fw-500);
}
.gov-caret {
  flex: 0 0 auto;
  transition: transform 0.25s var(--ease);
}
.gov-item.is-open .gov-caret {
  transform: rotate(180deg);
}

/* 三级：内部骨架基准线 #EBEBEB · 三级项间距 0 */
.gov-lv3 {
  position: relative;
  padding-left: var(--space-12);
}
.gov-lv3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #ebebeb;
}

/* ---------- 右侧内容板块：固定 990px（与红头表格等宽） ---------- */
.gov-content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 990px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}
/* 常见问题板块：无左侧导航，解除 990px 内容宽度限制，正文占满横向板块（约 1173px）
   右边距 40px 由 .sol-detail 自身内边距提供，与其他板块保持同一右侧留白节奏 */
.gov-body > .gov-content:only-child {
  max-width: none;
  padding-right: 0;
}
/* 政务面板入场：仅淡入，不使用位移动画
   位移动画（translateY）会临时撑大 .gov-content 的可滚动区域，
   导致点开「收费标准」等较高内容时右侧出现滚动条闪现 */
.gov-panel {
  animation: gov-panel-in 0.35s var(--ease);
}
@keyframes gov-panel-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- 通用：大标题行（3×20 红条 + 16px 标题 + 12px 辅助文案） ---------- */
.gov-head {
  display: flex;
  flex-wrap: wrap; /* 有辅助文案时换行到标题下方 */
  /* 标题与同行辅助文案（适用情形）按文本基线对齐，而非水平居中对齐 */
  align-items: baseline;
  gap: var(--space-8); /* 大标题与矩形条 8px · 大标题与辅助文案 8px */
  margin-bottom: var(--space-16); /* 正文板块与大标题间距 16px */
}
.gov-bar {
  flex: 0 0 auto;
  align-self: center; /* 装饰红条无文本基线，保持与标题垂直居中 */
  width: 3px;
  height: 20px;
  border-radius: 1px;
  background: linear-gradient(180deg, #d1191a, #ef1b22);
}
.gov-title {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: var(--fw-500);
  line-height: var(--lh-body);
  color: var(--text-primary);
  white-space: nowrap;
}
.gov-note {
  flex: 0 0 100%; /* 独占一行：位于标题下方 */
  padding-left: calc(3px + var(--space-8)); /* 与上方标题正文左对齐（红条 3px + 间距 8px） */
  font-size: var(--fs-caption); /* 12px */
  font-weight: var(--fw-400);
  line-height: var(--lh-caption);
  color: var(--text-tertiary);
}
/* 流程板块（证书申请 / 更新 / 补办 …）：适用情形辅助文案紧随大标题同行排列 */
.gov-note-inline {
  flex: 1 1 auto; /* 撑满标题右侧剩余宽度，内容过长时自然换行 */
  min-width: 0;
  padding-left: 0; /* 取消下方独占行的左对齐缩进 */
  margin-left: 4px; /* 4px + .gov-head 的 8px gap = 与标题间距 12px */
}

/* 小标题（15px / Regular / 标题色） */
.gov-sub {
  margin: 0;
  font-size: 15px;
  font-weight: var(--fw-400);
  line-height: 23px;
  color: var(--text-primary);
}
.gov-block + .gov-block {
  margin-top: var(--space-16); /* 小板块之间间距 16px */
}
.gov-sub-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-16);
  margin-bottom: var(--space-12); /* 标题与内容板块间距 12px */
}

/* 占位板块（设计稿未提供正文的内容） */
.gov-empty {
  display: grid;
  place-items: center;
  min-height: 200px;
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-quaternary);
  font-size: var(--fs-body-sm);
  letter-spacing: 0.08em;
}

/* ---------- 图1：适用范围 ---------- */
.gov-scope-list {
  padding-left: 22px; /* 正文内容整体左缩进 22px */
}
.gov-scope-item + .gov-scope-item {
  margin-top: var(--space-16); /* 小段落之间间距 16px */
}
.gov-scope-h,
.gov-scope-t {
  margin: 0;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-400);
  line-height: var(--lh-body-sm);
}
.gov-scope-h {
  color: var(--text-secondary);
}
.gov-scope-t {
  color: var(--text-tertiary);
}

/* ---------- 图2：线上申请流程 + 申请材料清单及入口 ---------- */
/* 6 步流程共用一整块大背板（非分割小背板） */
.gov-steps {
  display: flex;
  align-items: center;
  margin-top: var(--space-12); /* 标题与内容板块间距 12px */
  /* 所有线上申请流程背板统一高度 112px（内容 88px + 上下内边距各 12px） */
  height: 112px;
  padding: var(--space-12) var(--space-24); /* 上下 12px，左右 24px */
  background: #f7f8fa;
  border-radius: 4px;
}
.gov-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4); /* icon 与下方正文间距 4px */
  box-sizing: border-box;
}
.gov-step-icon {
  display: inline-flex;
  color: var(--brand-600);
}
.gov-step-icon svg {
  width: 40px;
  height: 40px;
}
.gov-step-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
/* 步骤文字：最多两行（超出裁切），两行占位保证各步骤等高、icon 对齐。
   文案无论 1 行还是 2 行，都在 44px 区域内水平 + 垂直居中（不顶对齐）；
   两行排版时由 text-wrap: balance 让上下两行字数尽量相近。 */
.gov-step-text {
  display: flex;
  align-items: center; /* 1 行文案也垂直居中，不顶对齐 */
  justify-content: center;
  margin: 0;
  min-height: calc(var(--lh-body-sm) * 2);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-400);
  line-height: var(--lh-body-sm);
  color: var(--text-secondary);
  text-align: center;
}
.gov-step-text > span {
  display: block;
  width: 100%;
  max-height: calc(var(--lh-body-sm) * 2); /* 最多两行，超出裁切 */
  overflow: hidden;
  text-wrap: balance; /* 两行时上下文案字数尽量相近 */
}
/* 流程之间的箭头：定宽，其余空间全部让给步骤。
   40px 高 + 顶部对齐，使箭头与上方 40×40 icon 处于同一水平中轴。 */
.gov-step-arrow {
  flex: 0 0 auto;
  width: var(--space-40);
  height: 40px;
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-quaternary);
}
.gov-step-line {
  flex: 0 1 10px;
  height: 1px;
  background: var(--border-strong);
}

.gov-materials {
  display: flex;
  align-items: stretch;
  gap: var(--space-24); /* 内容板块1与内容板块2横向间距 24px */
}
.gov-material {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: var(--space-12) var(--space-16); /* 内边距 上下12 · 左右16 */
  border: 1px solid var(--border-default);
  border-radius: 4px;
}
.gov-material--red {
  border-left: 4px solid #ffc7d0; /* 左侧 4px 红色强调 */
}
.gov-material--blue {
  border-left: 4px solid #c7daff; /* 左侧 4px 蓝色强调 */
}
.gov-material-sub {
  margin-bottom: var(--space-4); /* 次小标题与下方正文间距 4px */
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-500);
  line-height: var(--lh-body-sm);
  color: var(--text-primary);
}
.gov-material-body {
  margin-bottom: var(--space-8); /* 正文与下方按钮最小间距 8px */
}
.gov-material-body p {
  margin: 0;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-400);
  line-height: var(--lh-body-sm);
  color: var(--text-secondary);
}
/* 独立操作按钮（流程下方的「点击更新」等入口） */
.gov-actions {
  margin-top: var(--space-12);
}
.gov-actions + .gov-block {
  margin-top: var(--space-16); /* 按钮与后续板块间距 16px */
}
/* 按钮弹性撑底：两张材料卡的「立即申请」底部对齐 */
.gov-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 240px; /* 统一按钮宽度 */
  height: 32px; /* 统一按钮高度 */
  margin-top: auto;
  padding: 0;
  border: 0; /* 无描边 */
  border-radius: 2px;
  background: var(--brand-600); /* 填充 #D1191A */
  color: #ffffff; /* 文字 #FFFFFF */
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-500);
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s var(--ease);
}
.gov-btn:hover {
  background: var(--brand-700); /* 深一档品牌红 */
}
/* 附件文字按钮：右对齐 · 与左侧标题基线对齐 · #3471EB */
.gov-attach {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-400);
  line-height: var(--lh-body-sm);
  color: #3471eb;
  text-decoration: none;
  white-space: nowrap;
}
.gov-attach:hover {
  text-decoration: underline;
}

/* ---------- 图3 / 图4：收费标准（红头表格 + 蓝头表格 + 右侧示例） ---------- */
/* 表格圆角 4px：collapse 表格无法直接圆角，由外层容器裁切 */
.gov-table-wrap {
  border-radius: 4px;
  overflow: hidden;
}
.gov-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-400);
  line-height: var(--lh-body-sm);
  color: var(--text-secondary);
}
.gov-table th,
.gov-table td {
  box-sizing: border-box;
  height: 32px; /* 单行高固定 32px */
  padding: 0 var(--space-8);
  border: 1px solid var(--border-default);
  text-align: center;
  vertical-align: middle;
  /* 单行显示，避免单元格内换行把行高撑高 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 表头文案（红字 / 蓝字）字重常规，不加粗 */
.gov-table th {
  font-weight: var(--fw-400);
}
/* 红头表格：红头 #FFF0F2 · 红字 #B81617 */
.gov-table--red th {
  background: #fff0f2;
  color: #b81617;
}
/* 蓝头表格：蓝头 #F0F5FF · 蓝字 #13419E */
.gov-table--blue th {
  background: #f0f5ff;
  color: #13419e;
}
.gov-table--blue col:nth-child(1) {
  width: 16.5%; /* 业务类型 80px */
}
.gov-table--blue col:nth-child(2) {
  width: 62%; /* 收费项目 301px */
}
.gov-table--blue col:nth-child(3) {
  width: 21.5%; /* 收费标准 104px */
}

.gov-fee-body {
  display: flex;
  align-items: flex-start;
  gap: var(--space-16); /* 表格与右侧文字间距 16px */
  margin-top: var(--space-12); /* 红表与蓝表上下间距 12px */
}
.gov-fee-body > .gov-table-wrap {
  flex: 1 1 0;
  min-width: 0; /* 图4：两表本属同一表格，右侧承接续表 */
}
.gov-fee-body > .gov-table-wrap > .gov-table {
  width: 100%;
}
.gov-fee-note {
  flex: 1 1 0;
  min-width: 0;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--text-secondary);
}
.gov-fee-note p {
  margin: 0 0 var(--space-4);
}
.gov-note-strong {
  font-weight: var(--fw-500);
}
.gov-note-plain {
  font-weight: var(--fw-400);
}
.gov-note-dim {
  color: var(--text-tertiary);
}

/* ---------- 图5：常见问题 ---------- */
.gov-faq-list {
  padding-left: 22px; /* 问答内容整体左缩进 22px */
}
.gov-faq-item + .gov-faq-item {
  margin-top: var(--space-16); /* 小段落之间间距 16px */
}
.gov-faq-q {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-500);
  line-height: var(--lh-body-sm);
  color: var(--text-primary);
}
.gov-faq-a {
  margin: 0;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-400);
  line-height: var(--lh-body-sm);
  color: var(--text-secondary);
}

/* ---------- 政务专区响应式 ---------- */
@media (max-width: 1200px) {
  .gov-content {
    max-width: none;
  }
}
@media (max-width: 992px) {
  .sol-detail.is-gov {
    display: block;
  }
  .gov-body {
    flex-direction: column;
    height: auto;
  }
  .gov-side {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
  }
  .gov-content {
    height: auto;
    overflow: visible;
  }
  /* 线上申请流程：窄屏同样保持一排展示（不换行），仅压缩内边距与箭头宽度 */
  .gov-steps {
    padding: var(--space-12) var(--space-16); /* 高度仍统一为 112px，仅压缩左右内边距 */
  }
  .gov-step-arrow {
    width: var(--space-16);
  }
  .gov-materials {
    flex-direction: column;
    gap: var(--space-16);
  }
  .gov-fee-body {
    flex-direction: column;
  }
  .gov-sub-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 选中态响应式 ---------- */
/* 窄屏：文案允许换行，圆弧隐藏以免与分点错位 */
@media (max-width: 1280px) {
  .cmp-text { white-space: normal; max-width: 200px; }
  .cmp-arc { display: none; }
}
@media (max-width: 1200px) {
  .sol-selected { flex-basis: 320px; width: 320px; max-width: 320px; }
  .sol-selected-img { width: 272px; }
  .arch-copy { flex-basis: 260px; }
  .cmp-orb { width: 120px; height: 120px; font-size: 18px; line-height: 26px; }
  .compare-stage { justify-content: center; }
}
@media (max-width: 992px) {
  .sol-mode { flex-direction: column; position: static; gap: var(--space-32); }
  .sol-selected { max-width: 100%; width: 100%; height: auto; }
  .sol-detail { height: auto; }
  .sol-selected-img { width: 100%; }
  .adv-grid { grid-template-columns: 1fr; }
  .arch-single { flex-direction: column; }
  .arch-copy { flex-basis: auto; width: 100%; }
  .arch-duo { flex-direction: column; }
  .compare-stage { min-height: 0; flex-direction: column; align-items: center; gap: var(--space-32); }
  .cmp-text { max-width: none; }
  .cmp-center { justify-content: center; }
}

/* ---------- 企业发展历程 ---------- */
/* 板块背景层：1920×800 原图顶部对齐。
   ≥1920px 宽度时严格按原图 1920×800 渲染（宽屏不放大、不模糊）；
   更窄屏整体等比缩小并保持满宽，左右不裁切、不拉伸变形 */
.history {
  position: relative;
  isolation: isolate; /* 让 ::before 背景层独立成层，不遮挡板块内容 */
  /* 板块高度锁定 800px。内容自然高 = 标题区 88 + 间距 32 + 时间轴 498 = 618px，
     上下内边距由 96px 收缩为 91px（(800 - 618) / 2），元素尺寸与布局均不变。
     兜底色取自本背景图末行像素均值 #FAFBFD：
     图片贴顶铺底后，板块比图高出的部分只落在底部，
     因此板块顶部与图片顶部严丝合缝，不再出现空白横带 */
  height: 800px;
  padding: 91px 0;
  background: #FAFBFD;
  /* 卡片左右滑动切换时会短暂移出舞台，横向裁掉溢出，避免出现横向滚动条 */
  overflow-x: clip;
}

.history::before {
  content: "";
  position: absolute;
  inset: 0;
  /* 与「解决方案」板块无缝对接：上一板块背景层高 = 板块高（726px 默认态 / 800px 选中态），
     且图片底部与其板块底部对齐，本板块背景图顶部紧接其图片底边，
     两板块高度过渡同源，任意屏宽、任意状态均不留白带，故无需再做负 margin 补偿。 */
  z-index: -1;
  background: url("../images/背景/2-发展历程背景_1920.png") top center no-repeat;
  /* 严格按原图固有尺寸 1920×800 渲染（1:1，不缩放、不拉伸变形）。
     不用 100% 自适应：浏览器垂直滚动条会占去约 15px 视口宽度，
     若按板块宽等比缩放，1920 窗口下实际只有 1905×794，永远到不了 1920×800 */
  background-size: 1920px 800px;
  pointer-events: none;
}

/* 标题区：与解决方案板块保持一致（红竖线 + 主标题 + 辅助文案，右上角左右箭头） */
.history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-32);
  /* 标题区与下方卡片间距 32px */
  margin-bottom: var(--space-32);
}

.history-head-copy {
  max-width: 1040px;
}

.history-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  /* 辅助文案距大标题 12px */
  margin-bottom: var(--space-12);
}

/* 标题左侧红色竖线：宽 4px · 高 24px · 圆角 1px */
.history-bar {
  width: 4px;
  height: 24px;
  border-radius: 1px;
  background: var(--brand-600);
  flex-shrink: 0;
}

.history-title {
  font-size: 36px;
  font-weight: var(--fw-400);
  line-height: var(--lh-h2);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* 标题内品牌强调片段：使用品牌主色 */
.history-title-accent {
  color: var(--brand-600);
}

.history-desc {
  font-size: var(--fs-body);
  font-weight: var(--fw-400);
  line-height: var(--lh-body);
  color: var(--text-secondary);
  padding-left: calc(4px + var(--space-16));
}

/* 右上角左右箭头 */
.history-arrows {
  display: flex;
  gap: var(--space-12);
  flex-shrink: 0;
  margin-top: var(--space-6);
}

/* 卡片舞台 */
.history-stage {
  position: relative;
  /* 作为查询容器：让时间轴按「与卡片同宽」的舞台宽度计算点间距 */
  container-type: inline-size;
}

.history-card {
  position: relative;
  /* 年度切换时新旧卡片在舞台内并排左右滑动，横向裁掉已移出舞台的部分；
     纵向保持 visible，不影响其他视觉 */
  overflow-x: clip;
  /* 悬浮响应：鼠标移入卡片时浮出柔和投影（#2E3033 · 12% · x 0 · y 7 · 模糊 40）
     投影挂在本元素而非 .history-item 上：本元素带 overflow-x: clip 会裁掉子元素
     横向溢出的投影，挂在自身才不会被自己的 overflow 裁掉 */
  transition: box-shadow 0.3s var(--ease);
}

.history-card:hover {
  box-shadow: 0 7px 40px rgba(46, 48, 51, 0.12);
}

/* 内容卡片：固定 1616×410 · 1px 纯白内描边 · 圆角 2px · 年度主视觉整幅铺底 */
.history-item {
  /* 作为卡片内部元素的定位基准 */
  position: relative;
  /* 仅当前年度参与布局：其余年度不渲染，其背景图（各约 2.4MB）也就不会被下载 */
  display: none;
  align-items: stretch;
  width: 1616px;
  max-width: 100%;
  height: 410px;
  background-color: var(--bg-primary);
  /* 年度主视觉原稿为 3232×820（设计尺寸 1616×410 的 2 倍图），
     按设计尺寸 1616×410 精确落位：与卡片外框同尺寸、同比例，
     1:1 铺满整张卡片，不裁切、不拉伸变形、不留白边；
     2 倍图在 Retina/高 DPI 屏下仍保持清晰 */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1616px 410px;
  /* 以边框盒为定位与绘制基准，使原图与卡片外框严丝合缝 */
  background-origin: border-box;
  background-clip: border-box;
  border: 1px solid #ffffff;
  border-radius: 2px;
  overflow: hidden;
  /* 待命位：停在舞台右侧（「下一年」滑入的起点方向），距舞台边缘保留 40px 间距 */
  transform: translateX(calc(100% + 40px));
  /* 年度切换：整体左右位移，时长与 js/home.js 的 SLIDE_MS 保持一致 */
  transition: transform 0.4s var(--ease);
}

/* 悬浮态：沿卡片边缘流动的渐变描边 —— 外观与解决方案卡片（.sol-card:hover::before）
   完全一致：同一组渐变停点、同一 @property --sol-angle 与 @keyframes sol-border-flow。
   仅缓动不同：此处为「沿卡片周长匀速」，见下方 :hover 规则。
   挂在 .history-card 上（而非 .history-item）：.history-item 带 overflow: hidden，
   绝对定位子元素会被裁到内边距盒、描边只能落在白色描边内侧；改用外层卡片作包含块后，
   伪元素盒子与卡片边框盒完全重合（1616×410，即 conic 原点 = 卡片中心），
   mask 在 1px 内边距处画出的描边正好压在卡片最外 1px 边缘上（即沿卡片边缘运动）。
   不新增真实 border，卡片尺寸与内容位置保持不变。 */
.history-card::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 2px;
  background: conic-gradient(
    from calc(var(--sol-angle) + 212deg),
    transparent 0deg,
    #ffd1d1 17deg,
    #ff9e9e 48deg,
    #ffb8b8 79deg,
    #ff8585 94deg,
    #ff7879 111deg,
    transparent 112deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.history-card:hover::after {
  opacity: 1;
  /* 与解决方案卡片同为 6s + 无限循环，一圈总时长不变；
     linear 关键字作为兜底（--history-sol-ease 未就绪时仍为普通匀速循环）。 */
  animation: sol-border-flow 6s linear infinite;
  /* 沿卡片周长严格匀速：
     conic-gradient 旋转本身是「角度匀速」，而卡片是长条矩形，
     同一角度增量在上下长边走过的弧长小于左右短边（越靠近角点越明显），
     角速度恒定会让左右短边明显慢于上下长边。
     缓动线性化「弧长 → conic 角」的映射（停点位置 = 已走过的周长占比 p，
     停点值 = 对应 conic 角 / 360），使 --sol-angle 的推进与卡片边缘弧长成正比。
     该缓动与卡片长宽比强绑定，而 .history-item 宽度随视口缩放（1616px + max-width:100%），
     故由 js/home.js 按卡片实际渲染尺寸实时生成并写入 --history-sol-ease，
     视口/断点变化时随卡片尺寸重算，任意屏宽下均为弧长匀速。 */
  animation-timing-function: var(--history-sol-ease, linear);
}

.history-item.is-active {
  display: flex;
  transform: none;
}

/* 年度切换过渡：新旧两张卡在同一帧内并存，在舞台内整体左右位移，
   两卡之间始终保持 40px 间距 —— 前卡移出舞台、后卡移入舞台，不做原位叠加闪切
   - .is-entering：即将入场的年度，先以「入场起点」（舞台外侧 40px 处）渲染一帧
                  （js 读取 offsetWidth 强制回流），再加 is-active 触发位移过渡
   - .is-leaving ：正在退场的年度，改为绝对定位叠加，退出文档流，
                  卡片高度仍由入场卡（410px）撑开，动画结束后由 js 移除状态类
   - .is-forward ：向后切换（下一年）——旧卡向左移出、新卡自右侧移入
   - .is-backward：向前切换（上一年）——旧卡向右移出、新卡自左侧移入 */
.history-item.is-entering {
  display: flex;
}

.history-item.is-entering.is-forward {
  transform: translateX(calc(100% + 40px));
}

.history-item.is-entering.is-backward {
  transform: translateX(calc(-100% - 40px));
}

.history-item.is-leaving {
  display: flex;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.history-item.is-leaving.is-forward {
  transform: translateX(calc(-100% - 40px));
}

.history-item.is-leaving.is-backward {
  transform: translateX(calc(100% + 40px));
}

/* 各年度主视觉背景图（原始尺寸 1616×410） */
.history-item[data-year="2000"] { background-image: url("../images/发展历程年度主视觉/2000.png"); }
.history-item[data-year="2010"] { background-image: url("../images/发展历程年度主视觉/2010.png"); }
.history-item[data-year="2012"] { background-image: url("../images/发展历程年度主视觉/2012.png"); }
.history-item[data-year="2015"] { background-image: url("../images/发展历程年度主视觉/2015.png"); }
.history-item[data-year="2016"] { background-image: url("../images/发展历程年度主视觉/2016.png"); }
.history-item[data-year="2017"] { background-image: url("../images/发展历程年度主视觉/2017.png"); }
.history-item[data-year="2018"] { background-image: url("../images/发展历程年度主视觉/2018.png"); }
.history-item[data-year="2019"] { background-image: url("../images/发展历程年度主视觉/2019.png"); }
.history-item[data-year="2020"] { background-image: url("../images/发展历程年度主视觉/2020.png"); }
.history-item[data-year="2021"] { background-image: url("../images/发展历程年度主视觉/2021.png"); }
.history-item[data-year="2022"] { background-image: url("../images/发展历程年度主视觉/2022.png"); }


/* 左侧文案区 */
.history-item-copy {
  /* 40px 内边距 + 小分点 8px + 间距 8px + 正文列宽 704px */
  flex: 0 0 calc(var(--space-40) + 8px + var(--space-8) + 704px);
  max-width: 100%;
  /* 卡片左侧与上方内边距 40px */
  padding: var(--space-40) 0 0 var(--space-40);
  display: flex;
  flex-direction: column;
}

/* 年份标题：20px 加粗 · 上 #FF1D24 下 #D1191A 渐变裁字 · 与下方小分点间距 40px */
.history-year {
  font-size: 20px;
  font-weight: var(--fw-700);
  line-height: 28px;
  background: linear-gradient(180deg, #ff1d24 0%, #d1191a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: var(--space-40);
}

/* 小分点列表：8×9 分点 + 分点间 1px 虚线 · 正文间距 32px */
.history-points {
  --history-point-gap: var(--space-32);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--history-point-gap);
}

.history-points li {
  position: relative;
  /* 正文列宽 704px（不含前方 8px 小分点与 8px 间距），超出自动换行 */
  width: calc(704px + 8px + var(--space-8));
  max-width: 100%;
  /* 红色小分点 8px + 距后方文案 8px */
  padding-left: calc(8px + var(--space-8));
  font-size: var(--fs-body-sm); /* 14 */
  font-weight: var(--fw-400);
  line-height: var(--lh-body-sm);
  color: var(--text-secondary);
}

/* 红色小分点 8×9 */
.history-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 9px;
  background: url("../images/发展历程元素图/发展历程-小分点.png") center / 8px 9px
    no-repeat;
}

/* 2019 年度：正文间距 16px（分点 5 条，避免溢出卡片） */
.history-item[data-year="2019"] .history-points {
  --history-point-gap: var(--space-14); /* 16px */
}

/* 分点间的 1px 虚线：距分点 4px · 颜色-常规描边 */
.history-points li::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 20px; /* 分点顶距 7px + 分点 9px + 间距 4px */
  width: 1px;
  height: calc(100% + var(--history-point-gap) - 17px);
  background-image: linear-gradient(
    to bottom,
    var(--border-default) 0 4px,
    transparent 4px 8px
  );
  background-size: 1px 8px;
}

.history-points li:last-child::after {
  display: none;
}

/* 横向时间轴：宽度与上方卡片平齐 · 首尾点贴齐两端 · 点间 2px 线段（距分点 7px） */
.history-axis {
  /* 时间轴宽度固定 1616px，窄屏按容器宽度收缩（与上方卡片一致） */
  width: 1616px;
  max-width: 100%;
  /* 年份间距：11 个 20px 点（共 220px）+ 10 段间距刚好铺满整宽，与卡片左右平齐 */
  --history-node-gap: clamp(44px, calc((100cqw - 220px) / 10), 139.6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--history-node-gap);
  margin-top: var(--space-40);
  padding-bottom: var(--space-4);
}

.history-node {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* 选中 / 未选中状态点 20×25 */
.history-node-dot {
  width: 20px;
  height: 25px;
  background: url("../images/发展历程元素图/发展历程-时间未选中点.png") center / 20px
    25px no-repeat;
  transition: transform 0.25s var(--ease);
}

.history-node.is-active .history-node-dot {
  background-image: url("../images/发展历程元素图/发展历程-时间选中点.png");
}

/* 年份文字：未选中 16px Regular · 辅助文案色；选中 16px Medium · 上 #FF1D24 下 #D1191A */
.history-node-year {
  font-size: var(--fs-body);
  font-weight: var(--fw-400);
  line-height: var(--lh-body);
  color: var(--text-tertiary);
  white-space: nowrap;
  /* 与上方状态点间距 -5px */
  margin-top: -5px;
  transition: color 0.25s var(--ease);
}

.history-node.is-active .history-node-year {
  font-weight: var(--fw-500);
  background: linear-gradient(180deg, #ff1d24 0%, #d1191a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.history-node:not(.is-active):hover .history-node-year {
  color: var(--text-primary);
}

.history-node:not(.is-active):hover .history-node-dot {
  transform: scale(1.06);
}

.history-node:focus-visible {
  outline: 2px solid var(--border-brand);
  outline-offset: 4px;
  border-radius: 2px;
}

/* 分点之间的 2px 线段：距分点 7px · 颜色-常规描边 */
.history-node::after {
  content: "";
  position: absolute;
  top: 9px;
  left: calc(100% + 7px);
  width: calc(var(--history-node-gap) - 14px);
  height: 2px;
  background: var(--border-default);
}

/* 选中点左侧相邻节点的线段：向右（朝向选中点）渐变到 #FF1D24 */
.history-node.is-link-to-active::after {
  background: linear-gradient(90deg, var(--border-default) 0%, #ff1d24 100%);
}

/* 选中点自身的右侧线段：自 #FF1D24 向右回落为常规描边色 */
.history-node.is-link-from-active::after {
  background: linear-gradient(90deg, #ff1d24 0%, var(--border-default) 100%);
}

.history-node:last-child::after {
  display: none;
}

/* ---------- 成功案例 ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
}

.case-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-brand);
}

.case-head h3 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-600);
  line-height: var(--lh-h4);
  margin-bottom: var(--space-16);
}

.case-industry {
  display: inline-block;
  padding: var(--space-4) var(--space-12);
  margin-bottom: var(--space-16);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-md);
  color: var(--brand-600);
  font-size: var(--fs-caption);
  font-weight: var(--fw-600);
}

.case-desc {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--text-secondary);
  margin-bottom: var(--space-20);
}

.case-result {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-700);
  color: var(--brand-600);
}

/* ---------- CTA（合作咨询：1920×800 背景图 + 左对齐，板块高度锁定 1920×800） ---------- */
.cta-band {
  position: relative;
  z-index: 1;
  /* 标题距板块顶部 200px；底部留白由 800px 板块高度补足 */
  padding: 200px 0 0;
  height: 800px;
  color: var(--text-primary);
  text-align: left;
  /* 背景图严格按原图固有尺寸 1920×800 渲染（1:1，不缩放、不拉伸变形），
     底居中对齐：板块锁定 800px 高，任意屏宽下均整幅铺满、不留白带 */
  background: #FFFFFF url("../images/背景/4-合作咨询背景_1920.png") center bottom / 1920px 800px no-repeat;
}

/* 主标题：60px / Medium；「天威诚信」用品牌主色，其余用标题色 */
.cta-band h2 {
  font-size: 60px;
  font-weight: var(--fw-500);
  line-height: 1.2;
  letter-spacing: -0.01em;
  /* 次级文案距主标题 40px */
  margin-bottom: 40px;
}

.cta-title-accent {
  color: var(--brand-600);
}

/* 次级文案：20px / Regular / 次级文案色 */
.cta-band p {
  font-size: 20px;
  font-weight: var(--fw-400);
  line-height: var(--lh-body);
  color: var(--text-secondary);
  margin: 0;
}

/* 次级文案内电话号码：24px / Medium / 品牌主色 */
.cta-tel {
  font-size: 24px;
  font-weight: var(--fw-500);
  color: var(--brand-600);
}

/* 按钮规格与首屏 banner 一致（btn--primary + btn--lg + 右箭头），距次级文案 56px */
.cta-band .btn {
  margin-top: 56px;
}

/* ---------- 解决方案 · 子标题与列表（solution-sub / solution-list） ---------- */
.solution-sub + .solution-sub {
  margin-top: var(--space-24);
}

.solution-sub h4 {
  font-size: var(--fs-body);
  font-weight: var(--fw-600);
  color: var(--text-primary);
  margin-bottom: var(--space-12);
}

.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.solution-list li {
  position: relative;
  padding-left: var(--space-16);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--text-secondary);
}

.solution-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-600);
}

.solution-list li strong {
  color: var(--text-primary);
  font-weight: var(--fw-600);
}

/* ---------- 解决方案 · 传统 vs 无纸化 对比（compare-grid） ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
}

.compare-col {
  padding: var(--space-24);
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
}

.compare-col h4 {
  font-size: var(--fs-body);
  font-weight: var(--fw-600);
  color: var(--text-primary);
  margin-bottom: var(--space-16);
}

.compare-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.compare-col li {
  position: relative;
  padding-left: var(--space-16);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--text-secondary);
}

.compare-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-quaternary);
}

.compare-col.modern {
  border-color: var(--brand-200);
  background: var(--brand-50);
}

.compare-col.modern h4 {
  color: var(--brand-700);
}

.compare-col.modern li::before {
  background: var(--brand-600);
}

/* ---------- 成功案例 · 客户 Logo 墙（cases / client-wall） ---------- */
.cases {
  position: relative;
  isolation: isolate; /* 让 ::before 背景层独立成层，不遮挡板块内容 */
  /* 板块高度锁定 800px。内容自然高 = 标题区 88 + 间距 32 + Logo 墙 500 = 620px，
     上下内边距由 96px 收缩为 90px（(800 - 620) / 2），元素尺寸与布局均不变。
     兜底色取自本背景图末行像素均值 #FCFAFA（仅当板块高于 800px 时于底部露出）；
     背景图贴顶铺底后板块顶部即图片顶部 */
  height: 800px;
  padding: 90px 0;
  background: #FCFAFA;
}

/* 板块背景层：1920×800 原图顶部对齐（与「发展历程」一致）。
   ≥1920px 宽度时严格按原图 1920×800 渲染（宽屏不放大、不模糊）；
   更窄屏整体等比缩小并保持满宽，左右不裁切、不拉伸变形 */
.cases::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/背景/3-成功案例背景_1920.png") top center no-repeat;
  /* 严格按原图固有尺寸 1920×800 渲染（1:1，与「发展历程」一致） */
  background-size: 1920px 800px;
  pointer-events: none;
}

/* 视口不足 1920px 时回退为满宽等比缩放：避免在大幅窄于原图的屏幕上左右裁切 */
@media (max-width: 1919px) {
  .history::before,
  .cases::before {
    background-size: min(100%, 1920px) auto;
  }
}

/* 标题区：左侧红竖线 + 主标题/辅助文案，右上角翻页箭头 */
.cases-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-32);
  /* Logo 墙距辅助文案 32px */
  margin-bottom: var(--space-32);
}

.cases-head-copy {
  max-width: 760px;
}

.cases-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  /* 辅助文案距大标题 12px */
  margin-bottom: var(--space-12);
}

/* 标题左侧红色竖线：宽 4px · 高 24px · 圆角 1px */
.cases-bar {
  width: 4px;
  height: 24px;
  border-radius: 1px;
  background: var(--brand-600);
  flex-shrink: 0;
}

.cases-title {
  font-size: 36px;
  font-weight: var(--fw-400);
  line-height: var(--lh-h2); /* 36 + 8 */
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* 「案例」二字用品牌红 */
.cases-title-accent {
  color: var(--brand-600);
}

.cases-desc {
  font-size: var(--fs-body); /* 16 */
  font-weight: var(--fw-400);
  line-height: var(--lh-body); /* 16 + 8 */
  color: var(--text-tertiary);
  padding-left: calc(4px + var(--space-16)); /* 与主标题左对齐（竖线 + 间距） */
}

/* 右上角左右箭头：与解决方案板块一致，垂直位置对齐辅助文案 */
.cases-arrows {
  display: flex;
  gap: var(--space-12);
  flex-shrink: 0;
  margin-top: var(--space-32);
}

/* Logo 墙：桌面端 5 列紧贴铺满内容区（第 1 页 5×5、第 2 页 5×4）。
   固定 5 行高度，使两页切换时板块高度一致、背景与标题不跳动。 */
.client-wall {
  list-style: none;
  display: grid;
  /* minmax(0, 1fr)：客户 Logo 原图宽度差异极大（396–1916px），
     若用 1fr，轨道最小尺寸会被图片固有宽度撑开并导致横向溢出 */
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 100px;
  align-content: start;
  gap: 0;
  height: 500px;
}

/* 分页：第 1 页显示 1–25，第 2 页显示 26–45 */
.cases[data-page="1"] .client-item:nth-child(n + 26) {
  display: none;
}
.cases[data-page="2"] .client-item:nth-child(-n + 25) {
  display: none;
}

/* 单张 Logo 背板卡片：324×100（5 列均分内容区）。
   底色按设计稿「左右渐变」：50% 处 #F7F9FC、100% 处 #FCFDFF，透明度均为 55% */
.client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-16);
  background: linear-gradient(
    90deg,
    rgba(247, 249, 252, 0.55) 50%,
    rgba(252, 253, 255, 0.55) 100%
  );
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

/* 悬停：卡片转银蓝灰（20%）+ 极轻内阴影；原位 LOGO 不做任何变化 */
.client-item:hover {
  background: rgba(163, 177, 204, 0.2);
  box-shadow: inset -3px -3px 8px rgba(89, 102, 128, 0.08);
}

/* 客户 LOGO：高度由行内 --logo-h 指定，等比缩放不拉伸变形。
   统一灰度：全量去色 + 压缩对比度（不同原稿明度差异极大，低对比度将其收敛到同一银灰区间），
   保留原 LOGO 自身的光泽与明暗梯度，仅统一整体色调 */
.client-item img {
  display: block;
  width: auto;
  height: var(--logo-h, 24px);
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(0.45) brightness(0.95);
  opacity: 0.9;
}

/* 悬停预览卡：右上角固定位置展示真实 LOGO（默认隐藏，不占位、不接收指针事件） */
.client-float {
  position: absolute;
  top: 96px;
  right: 192px;
  width: 360px;
  height: 160px;
  padding: var(--space-12);
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 32px rgba(0, 25, 75, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
  z-index: 2;
}

/* 悬停第 5 列时，预览卡左移，避免压住当前卡片 */
.client-float--col5 {
  right: 515px;
}

.client-float.is-visible {
  opacity: 1;
  visibility: visible;
}

/* 卡片内部线框：1px 常规描边 · 圆角 4px */
.client-float-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  border-radius: 4px;
}

.client-float-img {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ---------- 页脚：LOGO + 天威诚信 + 四列导航 + 版权行（按设计稿排版） ---------- */
.site-footer {
  /* 内容实际底部约 397px（96 顶距 + 200 主体 + 40 间距 + 41 版权行 + 20 行高），
     高度收至 419px，去掉底部多余留白 */
  height: 419px;
  padding: 96px 0;
  /* 页尾背景图 1920×492，按原尺寸居中铺满宽度，底部超出部分随高度裁剪 */
  background: #0E1C32 url("../images/背景/5-页尾背景_1920.png") center top / 1920px auto no-repeat;
  color: #E5EEFF;
}

/* 左侧「天威诚信」与右侧内容间距 160px */
.footer-main {
  display: flex;
  align-items: flex-start;
  gap: 160px;
}

.footer-brand .brand {
  gap: 12px;
  margin-bottom: 0;
  font-size: 20px;
  font-weight: var(--fw-700);
  color: #FFFFFF;
}

/* 页脚 LOGO：深色背景下提升明度 */
.footer-brand .brand-mark {
  filter: brightness(1.5);
}

/* 右侧板块与板块间距 200px */
.footer-nav {
  display: flex;
  align-items: flex-start;
  gap: 200px;
}

/* 小标题 */
.footer-col h4 {
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: var(--fw-500);
  line-height: 20px;
  color: #FFFFFF;
}

/* 内容与内容间距 8px */
.footer-col li {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: var(--fw-400);
  line-height: 20px;
}
.footer-col li:last-child { margin-bottom: 0; }

.footer-col a {
  font-size: 12px;
  font-weight: var(--fw-400);
  color: #E5EEFF;
  white-space: nowrap;
}
.footer-col a:hover { color: #FFFFFF; }

/* 联系电话：20px / 加粗 / 品牌红 */
.footer-col .footer-tel {
  font-size: 20px;
  font-weight: var(--fw-700);
  line-height: 24px;
  color: #F3061E;
}
.footer-col .footer-tel:hover { color: var(--brand-500); }

/* 联系我们：电话 / 在线咨询前置图标 20×20，图标与文字间距 8px */
.footer-ico-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-ico {
  flex: none;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.footer-ico-tel { background-image: url("../images/页尾元素/电话.png"); }
.footer-ico-chat { background-image: url("../images/页尾元素/咨询.png"); }

/* 版权行：上方板块间距 40px、横线间距 40px */
.footer-bottom {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(229, 238, 255, 0.5);
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  font-weight: var(--fw-400);
  line-height: 20px;
  color: #E5EEFF;
}
.footer-bottom a { color: #E5EEFF; }
.footer-bottom a:hover { color: #FFFFFF; }

/* ---------- 锚点定位：避免被 sticky header 遮挡 ---------- */
#solutions,
#history,
#cases,
#contact {
  scroll-margin-top: calc(var(--header-h) + var(--space-16));
}

/* ---------- 响应式 ---------- */
/* 发展历程时间轴：年份间距按可用宽度自适应（上限 139.6px），保证 11 个年份铺满且不溢出 */
@media (max-width: 768px) {
  .history-axis {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .history-axis::-webkit-scrollbar { display: none; }
}

@media (max-width: 1200px) {
  .solutions {
    --sol-card-w: 320px;
    --carousel-peek: 90px;
  }
  .sol-card-icon { margin-bottom: var(--space-8); }
  .sol-card-en { margin-bottom: var(--space-8); }
  .sol-card-body { -webkit-line-clamp: 4; }
  .sol-card-img { width: 272px; height: 152px; }
}

@media (max-width: 992px) {
  /* 固定高度（解决方案 726 / 800px、发展历程 800px、成功案例 800px）仅在桌面版式下成立；
     本断点起标题区与列表改为单列堆叠、内容自然高会超出固定值，故解除高度与内边距锁定 */
  .solutions {
    height: auto;
    padding: 96px 0;
  }
  .solutions::before { background-size: cover; }
  .history,
  .cases {
    height: auto;
    padding: 96px 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-40);
  }
  .hero-copy { max-width: 100%; }

  /* 解决方案：标题区单列堆叠，箭头随标题行右置 */
  .solutions-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-24);
  }
  .solutions-arrows { align-self: flex-end; }

  /* 发展历程：标题区单列堆叠，箭头右置；卡片背景图置于文案下方 */
  .history-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-24);
  }
  .history-arrows { align-self: flex-end; }
  .history-item {
    height: auto;
    min-height: 0;
    /* 卡片高度随文案自适应（不再恒为 410px），固定 1616×410 会在上下留出白带；
       此断点恢复等比铺满，保证整幅覆盖、不拉伸变形 */
    background-size: cover;
  }
  .history-item-copy { flex: 0 0 auto; width: 100%; }

  /* 成功案例：标题区单列堆叠，箭头右置 */
  .cases-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-24);
  }
  .cases-arrows { align-self: flex-end; margin-top: 0; }

  /* 成功案例：两列 */
  .case-grid { grid-template-columns: repeat(2, 1fr); }

  /* 客户 Logo 墙：四列、高度按内容自适应；触屏无 hover，不展示预览卡 */
  .client-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: auto;
  }
  .client-float { display: none; }
}

@media (max-width: 640px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 40px); padding-bottom: var(--space-48); }
  .hero h1 { font-size: 40px; line-height: 48px; margin-bottom: 16px; }
  .hero-subtitle { font-size: 22px; line-height: 30px; margin-bottom: 24px; }
  .hero-desc { font-size: 14px; line-height: 22px; margin-bottom: 32px; }
  .hero-stats { gap: var(--space-16); }
  .hero-stat strong { font-size: var(--fs-h4); }
  .cta-band { padding: var(--space-80) 0 0; height: auto; min-height: 0; }
  .cta-band h2 { font-size: 32px; }

  /* 解决方案：标题区上下堆叠，卡片维持固定宽横向滑动 */
  .solutions { --sol-card-w: 260px; --carousel-peek: 60px; }
  .solutions-title { font-size: 28px; line-height: 36px; }
  .sol-card { padding: var(--space-20); }
  .sol-card-img { width: 220px; height: 128px; }

  /* 发展历程：标题与卡片内边距收缩 */
  .history-title { font-size: 28px; line-height: 36px; }
  .history-item-copy { padding: var(--space-24) 0 0 var(--space-24); }


  /* 传统 vs 无纸化 对比：单列 */
  .compare-grid { grid-template-columns: 1fr; }

  /* 成功案例：单列 */
  .case-grid { grid-template-columns: 1fr; }

  /* 成功案例：标题与卡片密度收缩 */
  .cases-title { font-size: 28px; line-height: 36px; }
  .cases-bar { height: 20px; }

  /* 客户 Logo 墙：两列 */
  .client-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* 页脚：解除 495px 固定高度与横向排列，改为纵向堆叠 */
  .site-footer {
    height: auto;
    padding: 64px 0;
  }
  .footer-main {
    flex-direction: column;
    gap: 48px;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 40px 64px;
  }
}
