/* ============================================================
   恒展智诚 · 通用组件库
   区块 / 按钮 / 卡片 / 徽章 / 数据墙 / Tab / 表单 / Toast 等
   供全部内页复用，类名保持语义化
   ============================================================ */

/* ============================================================
   一、图片占位 .img-ph（所有真实图片的占位）
   ============================================================ */
.img-ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A3D62, #2f6ea5);
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  text-align: center;
  overflow: hidden;
}

/* 占位装饰：右下角光伏板风格斜纹 */
.img-ph::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  opacity: 0.15;
  background:
    repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 14px);
  pointer-events: none;
}

.img-ph-label {
  position: relative;
  z-index: 1;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}

/* 场景变体 */
.img-ph--sky {    /* 天空蓝：屋顶/户外场景 */
  background: linear-gradient(180deg, #5aa9d6, #a8d4ee);
}

.img-ph--orange { /* 橙色：CTA / 活动场景 */
  background: var(--grad-banner);
}

/* 尺寸修饰类 */
.img-ph--banner { height: 520px; }
.img-ph--card   { aspect-ratio: 16 / 10; width: 100%; }
.img-ph--square { aspect-ratio: 1 / 1; width: 100%; }
.img-ph--wide   { aspect-ratio: 21 / 9; width: 100%; }

/* 可选：占位图内的小太阳装饰 */
.img-ph-sun {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFD58A, var(--brand-orange));
  box-shadow: 0 0 18px rgba(255, 171, 64, 0.8);
  z-index: 1;
}

/* ============================================================
   二、区块 .section
   ============================================================ */
.section {
  padding: var(--section-gap) 0;
}

.section--gray {
  background: var(--bg-gray);
}

.section--blue {
  background: var(--grad-blue);
  color: #fff;
}

/* ---- 浅灰页面 + 纯白内容板块 ----
   body 为浅灰底；除彩色通栏（.section--blue / 数据墙 .stats-section /
   CTA .cta-section）外，每个 .section 为左右贴近边界的纯白通栏，
   上下堆叠的板块之间露出浅灰间隙（首页 Banner 轮播不受影响） */
.section:not(.section--blue):not(.stats-section):not(.cta-section) {
  background: var(--bg-white);
  padding: 56px 0;
  margin: 24px 0;
}

@media (max-width: 768px) {
  .section:not(.section--blue):not(.stats-section):not(.cta-section) {
    padding: 32px 0;
    margin: 14px 0;
  }
}

/* 区块头 */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  background: var(--brand-orange);
  color: #fff;
  font-size: 13px;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1.3;
}

.section--blue .section-title {
  color: #fff;
}

.section-sub {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 15px;
}

.section--blue .section-sub {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   三、按钮 .btn
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--brand-orange);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 104, 220, 0.35);
}

.btn--outline {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  background: transparent;
}

.btn--outline:hover {
  background: var(--brand-orange);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--brand-blue);
}

.btn--white:hover {
  background: var(--brand-orange-light);
  color: var(--brand-orange);
}

.btn--lg {
  padding: 15px 40px;
  font-size: 17px;
}

/* ============================================================
   四、通用卡片 .card
   ============================================================ */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ============================================================
   五、徽章 .badge
   ============================================================ */
.badge {
  display: inline-block;
  background: var(--eco-green);
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 4px;
  line-height: 1.6;
}

.badge--orange { background: var(--brand-orange); }
.badge--blue   { background: var(--brand-blue); }

/* ============================================================
   六、数据墙 .stats
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
}

.stat-item {
  text-align: center;
  padding: 28px 12px;
}

.counter-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--brand-orange);
  line-height: 1.1;
}

.stat-suffix {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-orange);
  margin-left: 2px;
}

.stat-label {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 15px;
}

.section--blue .stat-label {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   七、Tab .tabs + .tab-panel
   ============================================================ */
.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.tabs button {
  padding: 9px 22px;
  border-radius: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--bg-gray);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.tabs button:hover {
  color: var(--brand-orange);
  border-color: var(--brand-orange);
}

.tabs button.active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: tabFadeIn 0.35s ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   八、案例卡 .case-card
   ============================================================ */
.case-card {
  display: flex;
  flex-direction: column;
}

.case-card .img-ph {
  flex-shrink: 0;
}

.case-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.case-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-blue);
}

.case-card-num {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-orange);
}

.case-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  flex: 1;
}

.case-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

/* ============================================================
   九、产品卡 .product-card
   ============================================================ */
.product-card {
  display: flex;
  flex-direction: column;
}

.product-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-cat {
  font-size: 12px;
  color: var(--brand-orange);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.product-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-blue);
}

.product-spec {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-en);
}

.product-link {
  margin-top: auto;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-link:hover {
  gap: 8px;
}

/* ============================================================
   十、logo 墙 .logo-wall
   ============================================================ */
.logo-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.logo-wall-item {
  width: 160px;
  height: 72px;
  background: #EDF0F3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 0 10px;
  transition: var(--transition);
}

.logo-wall-item:hover {
  background: #fff;
  box-shadow: var(--shadow-card);
  color: var(--brand-blue);
}

/* ============================================================
   十一、面包屑 + 内页头 .page-hero
   ============================================================ */
.page-hero {
  background: var(--grad-blue);
  color: #fff;
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

/* 装饰光斑 */
.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 104, 220, 0.25), transparent 70%);
}

.page-hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-hero-en {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a:hover {
  color: var(--brand-orange);
}

.breadcrumb .sep {
  opacity: 0.5;
}

.breadcrumb .current {
  color: var(--brand-orange);
}

/* ============================================================
   十二、表单
   ============================================================ */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* 必填星号 */
.form-label .required {
  color: #E53935;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 14px;
  background: #fff;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(22, 104, 220, 0.12);
}

.form-control.is-invalid {
  border-color: #E53935;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* 校验错误提示（默认隐藏，由 form.js 控制） */
.form-error {
  display: none;
  color: #E53935;
  font-size: 12px;
  margin-top: 4px;
}

.form-error.is-visible {
  display: block;
}

/* ============================================================
   十三、Toast 提示
   ============================================================ */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -80px);
  background: var(--eco-green);
  color: #fff;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 2000;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ============================================================
   十四、时间轴 .timeline
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 28px;
}

/* 竖线 */
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--brand-blue-light);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* 圆点节点 */
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--brand-orange);
}

.timeline-year {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-orange);
}

.timeline-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-blue);
  margin: 4px 0;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================================
   十五、地图占位 .map-ph
   ============================================================ */
.map-ph {
  position: relative;
  background: linear-gradient(135deg, #dfe9f2, #b9cfdc);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 420px;
}

/* 简化的地图轮廓装饰（可替换为真实地图） */
.map-ph::before {
  content: "";
  position: absolute;
  inset: 8%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  box-shadow: inset 0 0 0 2px rgba(10, 61, 98, 0.12);
}

/* 基地亮点：橙色脉冲圆点 */
.map-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-orange);
  cursor: pointer;
  z-index: 2;
}

/* 脉冲光圈 */
.map-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--brand-orange);
  animation: mapPulse 1.8s ease-out infinite;
}

@keyframes mapPulse {
  0%   { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* 地址气泡 */
.map-dot .map-bubble {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 220px;
  background: #fff;
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
  z-index: 3;
}

/* 小屏收窄气泡，避免顶出页面边界 */
@media (max-width: 768px) {
  .map-dot .map-bubble {
    max-width: 140px;
    font-size: 11px;
    white-space: normal;
  }
}

.map-dot:hover .map-bubble,
.map-dot.is-active .map-bubble {
  opacity: 1;
  visibility: visible;
}

.map-bubble strong {
  color: var(--brand-orange);
}

/* 世界地图变体：蓝色点阵示意 */
.map-ph--world {
  background: linear-gradient(135deg, #0A3D62, #14568a);
}

.map-ph--world::before {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  border-radius: 0;
  box-shadow: none;
  inset: 6% 4%;
  opacity: 0.6;
}

.map-ph-note {
  position: absolute;
  left: 20px;
  bottom: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  z-index: 2;
}

.map-ph--world .map-ph-note {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   高德真实地图 .amap-box（js/amap.js 初始化成功后显示，
   并自动隐藏下方的占位地图；未配置 key 时保持隐藏）
   ============================================================ */
.amap-box {
  display: none;
  height: 460px;
  border: 1px solid var(--border);
}

.amap-box.is-ready {
  display: block;
}

.amap-box.is-ready ~ .map-ph {
  display: none;
}

/* 首页等整节显隐：地图初始化成功后整个区块才显示 */
[data-amap-section] {
  display: none;
}

[data-amap-section].is-ready {
  display: block;
}

/* 标注点名称标签（覆盖高德默认白框样式） */
.amap-marker-label {
  border: none;
  background: transparent;
}

.amap-label {
  background: var(--brand-blue);
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  white-space: nowrap;
}

/* 自定义信息窗卡片（高德 isCustom: true，自带投影与底部小三角，
   命名避开高德自带的 .amap-info 类） */
.map-card {
  position: relative;
  background: #fff;
  box-shadow: var(--shadow-hover);
  padding: 12px 16px;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.6;
}

.map-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #fff;
}

.map-card strong {
  color: var(--brand-blue);
}

.map-card p {
  margin-top: 4px;
  color: var(--text-secondary);
}

/* 百度信息窗内容（百度默认窗框已含边框/关闭钮，这里只排文字） */
.map-info strong {
  color: var(--brand-blue);
}

.map-info p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============================================================
   十七、在线咨询聊天窗 .consult-*（js/consult.js 自动生成）
   非模态悬浮窗：桌面端可拖动，移动端底部弹层
   ============================================================ */
.consult-win {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1300;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 48px);
  background: var(--bg-white);
  box-shadow: 0 12px 40px rgba(10, 61, 98, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease, visibility 0.3s;
}

.consult-win.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
}

/* 头部（拖动把手） */
.consult-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--brand-blue);
  color: #fff;
  padding: 13px 16px;
  cursor: move;
  user-select: none;
  flex-shrink: 0;
}

.consult-head-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}

.consult-head-title em {
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  opacity: 0.6;
  margin-left: 8px;
  letter-spacing: 0;
}

.consult-close {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.consult-close:hover {
  color: #fff;
}

/* 消息区 */
.consult-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-gray);
}

.consult-msg {
  max-width: 82%;
  padding: 9px 13px;
  font-size: 13px;
  line-height: 1.7;
  word-break: break-word;
}

.consult-msg--bot {
  align-self: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.consult-msg--user {
  align-self: flex-end;
  background: var(--brand-orange);
  color: #fff;
}

.consult-typing {
  opacity: 0.6;
}

/* 快捷问题 */
.consult-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.consult-chips a {
  font-size: 12px;
  color: var(--brand-orange);
  background: var(--brand-orange-light);
  padding: 5px 12px;
  cursor: pointer;
  transition: var(--transition);
}

.consult-chips a:hover {
  background: var(--brand-orange);
  color: #fff;
}

/* 输入栏 */
.consult-inputbar {
  display: flex;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.consult-inputbar input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 13px;
  outline: none;
}

.consult-inputbar button {
  background: var(--brand-orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 0 20px;
  transition: background 0.2s;
}

.consult-inputbar button:hover {
  background: var(--brand-orange-dark);
}

/* 频控 */
.consult-notoday {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 10px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
}

/* 移动端：底部弹层，不拖动 */
@media (max-width: 768px) {
  .consult-win {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 72vh;
    max-height: none;
    transform: translateY(100%);
  }

  .consult-win.is-open {
    transform: none;
  }

  .consult-head {
    cursor: default;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consult-win {
    transition: none;
  }
}
/* ============================================================
   十六、流程步骤 .steps
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
  counter-reset: step;
}

.step-item {
  position: relative;
  text-align: center;
  padding: 0 12px;
}

/* 箭头连接（最后一步不显示） */
.step-item:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -18px;
  top: 26px;
  font-size: 22px;
  color: var(--brand-orange);
}

.step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--brand-orange-light);
  border: 2px solid var(--brand-orange);
  color: var(--brand-orange);
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================================
   十七、认证墙 .cert-wall
   ============================================================ */
.cert-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.cert-item {
  width: 120px;
  height: 60px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  transition: var(--transition);
}

.cert-item:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* 浅底页面使用的变体 */
.cert-wall--light .cert-item {
  background: #EDF0F3;
  border-color: var(--border);
  color: var(--text-secondary);
}

/* ============================================================
   十八、分页 .pagination
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 0 10px;
  transition: var(--transition);
}

.pagination a:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.pagination .active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .section {
    padding: 60px 0;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-head {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 26px;
  }

  .counter-number {
    font-size: 36px;
  }

  .page-hero-title {
    font-size: 30px;
  }

  /* 流程步骤变竖排 */
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .step-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    text-align: left;
    column-gap: 16px;
    align-items: start;
  }

  .step-num {
    margin: 0;
    grid-row: span 2;
  }

  .step-item:not(:last-child)::after {
    content: "↓";
    right: auto;
    left: 26px;
    top: auto;
    bottom: -26px;
  }

  .map-ph {
    min-height: 320px;
  }
}

/* ============================================================
   二十一、视觉润色（端庄稳重、克制点缀）
   滚动入场 / 标题渐变装饰线 / 卡片悬停橙色顶线 / 品牌选区色
   ============================================================ */

/* 品牌色选区 */
::selection {
  background: rgba(22, 104, 220, 0.18);
}

/* 平滑滚动 + 锚点跳转避开吸顶导航 */
html {
  scroll-behavior: smooth;
}
section[id],
div[id] {
  scroll-margin-top: 90px;
}

/* 版块标题下的渐变装饰线（居中） */
.section-title {
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-orange), #4E9BFF);
}

/* 卡片悬停：顶部橙色渐变线展开（克制的高级感） */
.card {
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-orange), #4E9BFF);
  transition: width 0.35s ease;
}
.card:hover::before {
  width: 100%;
}

/* 主按钮：微渐变，比纯色更温润 */
.btn--primary {
  background: linear-gradient(135deg, var(--brand-orange), #3B8BF0);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--brand-orange-dark), var(--brand-orange));
}

/* page-hero 第二道装饰光带（与现有 ::after 光斑呼应） */
.page-hero::before {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -60%;
  width: 60%;
  height: 160%;
  transform: rotate(12deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

/* ============================================================
   滚动入场动效（main.js 自动为常见模块添加 .js-reveal）
   默认上移淡入；方向变体 --left / --right / --zoom 由 JS 按
   模块类型分配，同一父容器内错开 transition-delay 形成阶梯入场
   ============================================================ */
.js-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal--left {
  transform: translateX(-56px);
}

.js-reveal--right {
  transform: translateX(56px);
}

.js-reveal--zoom {
  transform: scale(0.88);
}

.js-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* 内页头 .page-hero 载入级联：纯 CSS，打开页面即播放，无需 JS 标记 */
.page-hero .breadcrumb,
.page-hero .page-hero-title,
.page-hero .page-hero-en {
  animation: heroTextUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-hero .page-hero-title {
  animation-delay: 0.12s;
}

.page-hero .page-hero-en {
  animation-delay: 0.24s;
}

@keyframes heroTextUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 尊重系统减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .page-hero .breadcrumb,
  .page-hero .page-hero-title,
  .page-hero .page-hero-en {
    animation: none;
  }
}

/* ============================================================
   二十二、数据墙磨砂玻璃设计（首页 .stats-section）
   深蓝渐变底 + 双层光斑 + 磨砂玻璃卡片（backdrop-filter）
   ============================================================ */
.stats-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #082c47 0%, var(--brand-blue) 55%, #14568a 100%);
}

/* 装饰光斑：左橙右蓝，磨砂质感的「底」 */
.stats-section::before,
.stats-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.stats-section::before {
  left: -120px;
  top: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(22, 104, 220, 0.32), transparent 65%);
}

.stats-section::after {
  right: -140px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(90, 169, 214, 0.35), transparent 65%);
}

/* 磨砂玻璃卡片 */
.stats-section .stats {
  position: relative;
  z-index: 1;
}

.stats-section .stat-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  padding: 38px 16px 32px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

/* 不支持 backdrop-filter 时加深底色兜底 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .stats-section .stat-item {
    background: rgba(8, 44, 71, 0.55);
  }
}

.stats-section .stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 179, 71, 0.5);
}

/* 数字：白色主体 + 橙色单位，与深蓝底形成对比 */
.stats-section .counter-number {
  font-size: 46px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.stats-section .stat-suffix {
  font-size: 20px;
  font-weight: 700;
  color: #4E9BFF; /* 深色数据墙上用浅蓝保证对比度 */
  margin-left: 4px;
}

/* 标签：橙色小饰条 + 半透明白字 */
.stats-section .stat-label {
  margin-top: 12px;
  font-size: 15px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.78);
}

.stats-section .stat-label::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin: 0 auto 10px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--brand-orange), #4E9BFF);
}

@media (max-width: 768px) {
  .stats-section .counter-number {
    font-size: 34px;
  }
}

/* ============================================================
   二十三、图片图标 .ic（assets/icons/ 白色 SVG，按 data-icon 命名）
   默认 1em 跟随上下文字号，个别场景按下方规则微调
   ============================================================ */
.ic {
  width: 1em;
  height: 1em;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

/* 各场景图标尺寸 */
.floatbar-item .ic {
  width: 22px;
  height: 22px;
}

.header-search .ic {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

.adv-icon .ic {
  width: 26px;
  height: 26px;
}

/* 真实图片模式（img-loader.js 替换占位后添加 .has-img） */
.img-ph.has-img {
  padding: 0;
  background: none;
}

.img-ph.has-img::after {
  display: none; /* 隐藏占位装饰斜纹 */
}

.img-ph.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
