/* ========================================
   CMS 官网 - 现代设计系统
   GEO-optimized Design System
   ======================================== */

:root {
  /* === 配色体系：墨绿高端风格 + 翠绿点缀 === */
  /* 翠绿 - 点缀色：按钮、链接、标签 */
  --cms-accent: #16a34a;
  --cms-accent-dark: #15803d;
  --cms-accent-light: #22c55e;
  /* 墨绿 - 主基调，深色区 */
  --cms-dark: #052e16;
  --cms-gray-900: #064e3b;
  --cms-gray-800: #065f46;
  --cms-gray-700: #047857;
  --cms-gray-500: #059669;
  --cms-gray-400: #10b981;
  --cms-gray-300: #6ee7b7;
  --cms-gray-200: #a7f3d0;
  --cms-gray-100: #d1fae5;
  --cms-gray-50: #f0fdf4;
  --cms-white: #ffffff;
  --cms-bg: #f0fdf4;
  /* 渐变 - 墨绿系，高端稳重 */
  --cms-gradient: linear-gradient(135deg, #065f46 0%, #064e3b 50%, #052e16 100%);
  --cms-gradient-warm: linear-gradient(135deg, #047857 0%, #065f46 50%, #064e3b 100%);
  --cms-gradient-dark: #064e3b;
  --cms-gradient-hero: linear-gradient(135deg, #047857 0%, #065f46 30%, #064e3b 60%, #052e16 100%);
  --cms-gradient-footer: linear-gradient(180deg, #064e3b 0%, #052e16 100%);
  /* 浅绿 - 点缀背景 */
  --cms-accent-50: #f0fdf4;
  --cms-accent-100: #dcfce7;
  /* 阴影 */
  --cms-shadow-sm: 0 1px 2px rgba(5, 46, 22, 0.05);
  --cms-shadow: 0 1px 3px rgba(5, 46, 22, 0.1), 0 1px 2px rgba(5, 46, 22, 0.06);
  --cms-shadow-md: 0 4px 6px -1px rgba(5, 46, 22, 0.12), 0 2px 4px -1px rgba(5, 46, 22, 0.08);
  --cms-shadow-lg: 0 10px 15px -3px rgba(5, 46, 22, 0.14), 0 4px 6px -2px rgba(5, 46, 22, 0.06);
  --cms-shadow-xl: 0 20px 25px -5px rgba(5, 46, 22, 0.18), 0 10px 10px -5px rgba(5, 46, 22, 0.05);
  --cms-shadow-glow: 0 0 40px rgba(22, 163, 74, 0.15);
  /* 圆角 */
  --cms-radius-sm: 8px;
  --cms-radius: 12px;
  --cms-radius-lg: 16px;
  --cms-radius-xl: 20px;
  --cms-radius-full: 9999px;
  --cms-max-w: 1352px;
  --cms-header-h: 80px;
  --cms-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 基础重置 ===== */
.cms-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  color: var(--cms-gray-900);
  background: var(--cms-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.cms-page a {
  color: var(--cms-accent);
  transition: color var(--cms-transition);
}

.cms-page a:hover {
  color: var(--cms-accent-dark);
}

/* ===== Container ===== */
.cms-container {
  max-width: var(--cms-max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Top Notice Bar (Header Bar) ===== */
.cms-top-notice {
  background: var(--cms-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
  font-size: 15px;
  color: #ffffff;
  position: relative;
  z-index: 101;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.cms-top-notice a {
  color: #ffffff;
  text-decoration: none;
}

.cms-top-notice a:hover {
  color: #ffffff;
  opacity: 0.85;
  text-decoration: underline;
}

.cms-top-notice.is-closed {
  max-height: 0 !important;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.cms-top-notice__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}

.cms-top-notice__text {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
  font-size: 15px;
}

.cms-top-notice__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 100px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.cms-top-notice__phone {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.cms-top-notice__phone:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.cms-top-notice__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  line-height: 1;
  transition: all 0.2s;
}

.cms-top-notice__close:hover {
  color: var(--cms-accent);
  background: #ffffff;
  border-color: var(--cms-gray-500);
}

/* ===== 顶部信息条 - 移动端优化（≤768px） =====
   问题：原样式仅桌面版优化，手机端会出现 flex 换行无行间距、字号太大、按钮偏大 */
@media (max-width: 768px) {
  /* 容器：缩小内边距、减小字号 */
  .cms-top-notice {
    padding: 8px 0;
    font-size: 13px;
  }

  /* 内部布局：缩小 gap，显式行间距避免换行后挤在一起 */
  .cms-top-notice__inner {
    gap: 6px 10px;   /* 6px 行间距 / 10px 列间距 */
    row-gap: 6px;    /* 兼容不支持 gap 双值的老 Safari */
    align-items: center;
  }

  /* 理念文字：仍单行省略，但缩小字号适配窄屏 */
  .cms-top-notice__text {
    font-size: 13px;
    /* 手机端理念文字仍保持单行省略，保持整齐；若希望换行，取消下两行注释 */
    /* white-space: normal; */
    /* -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; */
  }

  /* 资质标签（如医保定点）：缩小内边距和字号 */
  .cms-top-notice__tag {
    padding: 3px 9px;
    font-size: 11px;
    order: 2;  /* 换到第二行？不，保持顺序，让flex自然排布 */
  }

  /* 联系电话：缩小字号，保持易点击 */
  .cms-top-notice__phone {
    font-size: 13px;
  }

  /* 关闭按钮：28px → 24px，手机小屏更协调 */
  .cms-top-notice__close {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}

/* 小屏额外优化（≤480px，如 iPhone SE） */
@media (max-width: 480px) {
  .cms-top-notice__inner {
    /* 超窄屏：按「文字一行 / 标签+电话一行 / 关闭按钮独立」自然换行，
       同时保证理念文字 flex:1 占满剩余空间，关闭按钮永不遮挡内容 */
    align-items: center;
  }
  .cms-top-notice__text {
    font-size: 12.5px;
    min-width: 0;  /* 允许 flex 子项在超窄屏上真正收缩，不撑破容器 */
  }
  .cms-top-notice__tag,
  .cms-top-notice__phone {
    font-size: 11px;
  }
}

/* ===== Header ===== */
.cms-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cms-gray-200);
  transition: box-shadow var(--cms-transition);
}

.cms-header.is-scrolled {
  box-shadow: var(--cms-shadow-md);
}

.cms-header-inner {
  max-width: var(--cms-max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--cms-header-h);
}

.cms-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cms-dark);
  font-weight: 700;
  font-size: 20px;
  transition: transform var(--cms-transition);
  flex-shrink: 0;
}

.cms-logo:hover {
  transform: scale(1.02);
}

.cms-logo-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.cms-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--cms-radius);
  background: var(--cms-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.cms-logo-text {
  color: var(--cms-dark);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.cms-logo-sub {
  display: block;
  font-size: 11px;
  color: var(--cms-gray-500);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.cms-logo-divider {
  width: 1px;
  height: 36px;
  background: var(--cms-gray-200);
  margin-left: 4px;
  flex-shrink: 0;
}

.cms-logo-img {
  flex-shrink: 0;
}

.cms-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cms-nav-link {
  position: relative;
  padding: 12px 20px;
  color: var(--cms-gray-700);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--cms-radius-sm);
  transition: all var(--cms-transition);
}

.cms-nav-link:hover {
  color: var(--cms-accent);
  background: var(--cms-gray-100);
}

.cms-nav-link.is-active {
  color: var(--cms-accent);
  background: var(--cms-accent-50);
}

.cms-nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--cms-gradient);
  border-radius: 2px;
}

.cms-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--cms-accent);
  color: #ffffff !important;
  border-radius: var(--cms-radius-full);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all var(--cms-transition);
  box-shadow: var(--cms-shadow-md);
  white-space: nowrap;
}

.cms-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--cms-shadow-lg);
  background: var(--cms-accent-dark);
  color: #ffffff !important;
}

.cms-nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: var(--cms-radius-sm);
  color: var(--cms-gray-700);
  align-items: center;
  justify-content: center;
}

.cms-nav-toggle:hover {
  background: var(--cms-gray-100);
}

/* ===== 专题集群下拉菜单（CSS 折叠，HTML 完整渲染，对 SEO 零损失） ===== */
.cms-nav-dropdown {
  position: relative;
  /* 关键修复：向下扩展 hover 触发区域 10px，消除按钮与菜单间的间隙导致鼠标失去焦点 */
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.cms-nav-dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}

.cms-nav-dropdown-toggle svg {
  transition: transform var(--cms-transition);
}

.cms-nav-dropdown.is-open .cms-nav-dropdown-toggle svg,
.cms-nav-dropdown:hover .cms-nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

/* 父菜单激活态（在专题页时高亮"专题集群"） */
.cms-nav-dropdown.is-parent-active .cms-nav-dropdown-toggle {
  color: var(--cms-accent);
  background: var(--cms-accent-50);
}

.cms-nav-dropdown-menu {
  position: absolute;
  /* 从 100% + 4px 改为紧贴按钮顶部，配合外层 padding-bottom 做无缝 hover 桥接 */
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  max-height: 0;
  overflow: hidden;
  background: var(--cms-white);
  border-radius: var(--cms-radius-md);
  box-shadow: var(--cms-shadow-md);
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 100;
  /* CSS 折叠：默认隐藏，hover/click 时展开 */
  transition: max-height 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
  opacity: 0;
  visibility: hidden;
}

/* 桌面端：hover 触发 + 点击锁定 */
@media (min-width: 769px) {
  .cms-nav-dropdown:hover .cms-nav-dropdown-menu,
  .cms-nav-dropdown.is-open .cms-nav-dropdown-menu {
    max-height: 600px;
    padding: 6px;
    opacity: 1;
    visibility: visible;
    box-shadow: var(--cms-shadow-lg);
    /* 展开时略微上移，视觉更自然，同时进一步缩小间隙 */
    top: calc(100% + 2px);
  }
}

/* 移动端 / 键盘聚焦：click + .is-open 切换 */
.cms-nav-dropdown.is-open .cms-nav-dropdown-menu,
.cms-nav-dropdown:focus-within .cms-nav-dropdown-menu {
  max-height: 600px;
  padding: 6px;
  opacity: 1;
  visibility: visible;
  box-shadow: var(--cms-shadow-lg);
}

.cms-nav-dropdown-link {
  display: block;
  padding: 10px 14px;
  color: var(--cms-gray-700);
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--cms-radius-sm);
  transition: all var(--cms-transition);
  white-space: nowrap;
}

.cms-nav-dropdown-link:hover {
  background: var(--cms-gray-100);
  color: var(--cms-accent);
}

.cms-nav-dropdown-link.is-active {
  color: var(--cms-accent);
  background: var(--cms-accent-50);
  font-weight: 600;
}

/* ===== Main Content ===== */
.cms-main {
  min-height: calc(100vh - var(--cms-header-h) - 320px);
}

/* ===== Hero Section ===== */
.cms-hero {
  position: relative;
  background: var(--cms-gradient-hero);
  min-height: calc(100vh - var(--cms-header-h));
  padding: 0;
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.cms-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}

/* 首页 Hero 长方形 */
.cms-hero::after {
  display: none;
}

/* Hero 与后面 section 间距 */
.cms-hero + .cms-section {
  margin-top: 0;
}

/* 子页面 Hero（面包屑页头）仍保持紧凑 */
.cms-subpage-hero.cms-hero {
  min-height: auto;
  padding: 80px 0;
}

.cms-subpage-hero.cms-hero::after {
  display: none;
}

/* 主题页 Hero：同色背景 + 紧凑高度（SEO 友好，内容快速露出） */
.cms-hero--topic.cms-hero {
  min-height: auto;
  padding: 40px 0 60px;
}

.cms-hero--topic.cms-hero::after {
  display: none;
}

.cms-hero--topic .cms-hero-content {
  padding: 32px 24px;
  text-align: left;
  max-width: none;
  margin: 0;
}

.cms-hero--topic .cms-breadcrumb {
  padding: 8px 0 20px;
}

.cms-hero--topic .cms-breadcrumb ol {
  justify-content: flex-start;
}

/* 主题页 Hero：带封面图模式（后台编辑主题上传的 cover_image 字段触发） */
.cms-hero--topic.cms-hero--has-cover {
  position: relative;
  /* 内联 style 会传入 background-image，这里只设默认 fallback */
  background-color: #1f2937;
  background-repeat: no-repeat;
  min-height: 320px;
  padding: 48px 0 68px;
}
.cms-hero--topic.cms-hero--has-cover::after {
  /* 开启遮罩层保证文字可读（纯主题模式因为无图所以 display:none，这里覆盖回来） */
  display: block;
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,24,39,0.65) 0%, rgba(17,24,39,0.35) 100%);
  pointer-events: none;
  z-index: 0;
}
/* 同时保留额外的显式遮罩层（兼容渲染模板中插入的 overlay div） */
.cms-hero--has-cover__overlay {
  display: none;
}
.cms-hero--has-cover .cms-hero--has-cover__overlay {
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(17,24,39,0.08);
  pointer-events: none;
  z-index: 0;
}
/* 确保内容位于遮罩层之上 */
.cms-hero--has-cover > .cms-container {
  position: relative;
  z-index: 1;
}
.cms-hero--has-cover .cms-hero-title,
.cms-hero--has-cover .cms-hero-subtitle {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.cms-hero--has-cover .cms-breadcrumb a,
.cms-hero--has-cover .cms-breadcrumb span,
.cms-hero--has-cover .cms-breadcrumb li::after {
  color: rgba(255,255,255,0.9);
}
.cms-hero--has-cover .cms-tag {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
}

/* 首页 Banner 模块：长方形广告位（后端管控显示） */
.cms-hero--banner.cms-hero {
  min-height: 440px;
  padding: 72px 0;
  cursor: default;
  /* 注意：此处禁止写 background 简写!important，否则会覆盖 block_renderer.php 的内联原图 */
}

/* 彻底移除所有遮罩层 - 前后伪类全关 */
.cms-hero--banner.cms-hero::before,
.cms-hero--banner.cms-hero::after {
  display: none !important;
  content: none !important;
  background: none !important;
  opacity: 0 !important;
}

.cms-hero--banner .cms-hero-content {
  padding: 40px 24px;
  max-width: 1000px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* 悬停：仅淡入文字（不带任何蒙层） */
.cms-hero--banner:hover .cms-hero-content {
  opacity: 1;
  transform: translateY(0);
}

.cms-hero--banner .cms-hero-title {
  font-size: 36px;
  margin-bottom: 14px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.65), 0 0 32px rgba(0, 0, 0, 0.35);
}

.cms-hero--banner .cms-hero-subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.cms-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0;
  pointer-events: none;
}

/* <img> 背景图层方案：绕过所有 CSS background 简写的优先级坑 */
.cms-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
/* 保证文字内容在 img 背景层之上 */
.cms-hero-content {
  position: relative;
  z-index: 2;
}

.cms-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--cms-radius-full);
  font-size: 14px;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
  color: white;
}

.cms-hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  color: white;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.65), 0 0 32px rgba(0, 0, 0, 0.35);
}

.cms-hero-subtitle {
  font-size: 19px;
  line-height: 1.6;
  color: #ffffff;
  margin: 0 0 36px;
  font-weight: 300;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.3);
}

.cms-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cms-hero .cms-btn-primary {
  background: var(--cms-accent);
  color: #ffffff;
  border: none;
}

.cms-hero .cms-btn-primary:hover {
  background: var(--cms-accent-dark);
  color: #ffffff;
}

.cms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--cms-radius-full);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all var(--cms-transition);
  cursor: pointer;
  border: none;
}

.cms-btn-primary {
  background: var(--cms-accent);
  color: #ffffff;
  box-shadow: var(--cms-shadow-lg);
}

.cms-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--cms-shadow-xl);
  background: var(--cms-accent-dark);
  color: #ffffff;
}

.cms-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cms-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.cms-btn-outline {
  background: white;
  color: var(--cms-accent);
  border: 2px solid var(--cms-accent);
}

.cms-btn-outline:hover {
  background: var(--cms-accent);
  color: white;
}

/* ===== Section ===== */
/* ===== Sections =====
   方案 A：消除相邻 block 的 padding 叠加，避免出现"双倍空白"
   - 单个 block 只留一份统一的上下间距：56px
   - 相邻 block 自动取消上一个的底部 + 下一个的顶部叠加 → 只保留一份间距
   - section-header 与内容区距离收敛为 36px（原 48px） */
.cms-section {
  padding: 56px 0;
}

/* 相邻 blocks：取消下一个区块的顶部 padding，消除叠加
   原来：72px(下) + 72px(上) = 144px 巨大空白
   现在：56px(仅一份) = 紧凑且视觉统一 */
.cms-section + .cms-section {
  padding-top: 0;
}

/* CTA 模块：保持与其他 section 一致的垂直节奏，但略紧凑 */
.cms-section.cms-cta {
  padding: 40px 0;
  margin: 0;
}

/* CTA 紧跟其他 section 时，保持顶部间距，避免视觉贴紧 */
.cms-section + .cms-section.cms-cta {
  padding-top: 40px;
}

/* cms-section-alt（浅灰背景块）：
   与 stats 同理——padding-bottom 带浅灰背景色，不是视觉间隙。
   后面跟其他 block 时必须用 margin-bottom 做页面底色的真实间隙。 */
.cms-section-alt {
  background: var(--cms-gray-50);
  margin-bottom: 56px;
}
/* 如果 section-alt 就是紧邻 footer 的最后一个块，去掉底部多余间隙 */
.cms-section-alt:last-child {
  margin-bottom: 0;
}

.cms-section-dark {
  background: var(--cms-gradient-dark);
  color: white;
  padding: 80px 0;
}

.cms-section-dark .cms-container {
  width: 100%;
}

/* Stats section: 深色背景块，全屏铺底 */
.cms-stats-section {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 56px !important;
  padding-bottom: 56px !important;
  margin-bottom: 56px;
}

.cms-section + .cms-stats-section,
.cms-section-alt + .cms-stats-section {
  padding-top: 0 !important;
}

.cms-stats-section:last-child {
  margin-bottom: 0;
}

.cms-stats-section .cms-container {
  padding: 0 24px;
}

.cms-section-header {
  text-align: center;
  margin-bottom: 36px;  /* 原 48px，收敛为 36px，标题与内容距离更协调 */
}

.cms-section-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: var(--cms-accent-50);
  color: var(--cms-accent);
  border-radius: var(--cms-radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cms-section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--cms-dark);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.cms-section-subtitle {
  font-size: 17px;
  color: var(--cms-gray-500);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cms-section-dark .cms-section-title {
  color: white;
}

.cms-section-dark .cms-section-subtitle {
  color: var(--cms-gray-300);
}

/* ===== Feature Cards ===== */
.cms-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.cms-feature {
  background: var(--cms-white);
  padding: 32px 28px;
  border-radius: var(--cms-radius-lg);
  box-shadow: var(--cms-shadow);
  transition: all var(--cms-transition);
  border: 1px solid var(--cms-gray-100);
}

.cms-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--cms-shadow-xl);
  border-color: var(--cms-accent-light);
}

.cms-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--cms-radius);
  background: var(--cms-accent-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--cms-accent);
}

.cms-feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--cms-dark);
  margin: 0 0 10px;
}

.cms-feature-desc {
  font-size: 15px;
  color: var(--cms-gray-500);
  line-height: 1.7;
  margin: 0;
}

/* ===== Service Cards (左右布局：图左文右) ===== */
.cms-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cms-service-card {
  display: flex;
  background: #fff;
  border-radius: var(--cms-radius-lg);
  overflow: hidden;
  box-shadow: var(--cms-shadow-sm);
  transition: transform .3s, box-shadow .3s;
  border: 1px solid #e2e8f0;
  min-height: 180px;
}

.cms-service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cms-shadow-lg);
}

.cms-service-card__image {
  flex: 0 0 40%;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 180px;
}

.cms-service-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.08) 0%, transparent 60%);
}

.cms-service-card__body {
  flex: 1;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.cms-service-card__icon {
  font-size: 28px;
  margin-bottom: 8px;
  line-height: 1;
}

.cms-service-card__tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--cms-accent-50);
  color: var(--cms-accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
  width: fit-content;
}

.cms-service-card__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1e293b;
  line-height: 1.4;
}

.cms-service-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cms-service-card__btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 8px 18px;
  background: var(--cms-accent);
  color: #fff !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .2s;
  margin-top: auto;
  white-space: nowrap;
}

.cms-service-card__btn:hover {
  background: var(--cms-accent-dark);
  color: #fff !important;
  transform: translateX(3px);
}

/* 移动端适配：单列 + 图上文下 */
@media (max-width: 768px) {
  .cms-service-grid {
    grid-template-columns: 1fr;
  }
  .cms-service-card {
    flex-direction: column;
  }
  .cms-service-card__image {
    flex: none;
    width: 100%;
    min-height: 160px;
  }
  .cms-service-card__desc {
    -webkit-line-clamp: 2;
  }
}

/* ===== Stats ===== */
.cms-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

/* 每个统计卡片：内容自然流动 */
.cms-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 8px;
  width: 100%;
}

.cms-stat-value {
  font-size: 42px;
  font-weight: 800;
  color: var(--cms-accent);
  line-height: 1.2;
  margin: 0;
}

.cms-stat-label {
  font-size: 15px;
  color: var(--cms-gray-500);
  font-weight: 500;
  line-height: 1.4;
  margin-top: 12px;
}

.cms-section-dark .cms-stat-value {
  color: white;
}

.cms-section-dark .cms-stat-label {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Card Grid ===== */
.cms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.cms-card {
  background: var(--cms-white);
  border-radius: var(--cms-radius-lg);
  overflow: hidden;
  box-shadow: var(--cms-shadow);
  transition: all var(--cms-transition);
  border: 1px solid var(--cms-gray-100);
  text-decoration: none;
  color: inherit;
  display: block;
}

.cms-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cms-shadow-xl);
  color: inherit;
}

.cms-card-img {
  height: 200px;
  background: var(--cms-gradient);
  position: relative;
  overflow: hidden;
}

.cms-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cms-card:hover .cms-card-img img {
  transform: scale(1.05);
}

.cms-card-body {
  padding: 24px;
}

.cms-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--cms-accent-50);
  color: var(--cms-accent);
  border-radius: var(--cms-radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.cms-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--cms-dark);
  margin: 0 0 10px;
  line-height: 1.4;
}

.cms-card-desc {
  font-size: 14px;
  color: var(--cms-gray-500);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cms-card-meta {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--cms-gray-400);
}

/* ===== Breadcrumbs ===== */
.cms-breadcrumbs,
.cms-breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--cms-gray-500);
}

.cms-breadcrumbs a,
.cms-breadcrumb a {
  color: var(--cms-gray-500);
  text-decoration: none;
}

.cms-breadcrumbs a:hover,
.cms-breadcrumb a:hover {
  color: var(--cms-accent);
}

.cms-breadcrumbs-sep {
  margin: 0 8px;
  color: var(--cms-gray-300);
}

/* 主题页面面包屑样式 */
.cms-hero .cms-breadcrumb {
  color: rgba(255, 255, 255, 0.9);
  padding: 16px 0;
}

.cms-hero .cms-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.cms-hero .cms-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.cms-hero .cms-breadcrumb li:not(:last-child)::after {
  content: '/';
  color: rgba(255, 255, 255, 0.5);
  margin-left: 8px;
}

.cms-hero .cms-breadcrumb li a {
  color: #ffffff;
  text-decoration: none;
}

.cms-hero .cms-breadcrumb li a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

.cms-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cms-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cms-gray-600);
  font-size: 14px;
}

.cms-breadcrumb li:not(:last-child)::after {
  content: '/';
  color: var(--cms-gray-300);
  margin-left: 8px;
}

.cms-breadcrumb li a {
  color: var(--cms-accent);
  text-decoration: none;
}

.cms-breadcrumb li a:hover {
  text-decoration: underline;
}

/* ===== Page Banner ===== */
.cms-banner {
  background: var(--cms-gradient);
  padding: 72px 0 64px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Banner 内面包屑样式（白色文字，居中） */
.cms-banner .cms-container {
  position: relative;
  z-index: 1;
}

.cms-banner .cms-breadcrumbs {
  color: rgba(255, 255, 255, 0.9);
  padding: 0 0 24px;
}

.cms-banner .cms-breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.cms-banner .cms-breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.cms-banner .cms-breadcrumbs-sep {
  color: rgba(255, 255, 255, 0.5);
}

.cms-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), transparent 60%);
}

.cms-banner-content {
  position: relative;
  z-index: 1;
}

/* 页面主体：Banner 下方统一容器，保持与 Banner 内的 .cms-container 对齐 */
.cms-page-body {
  padding: 32px 24px 64px;
}

.cms-page-body > .cms-section:first-child,
.cms-page-body > section:first-child {
  margin-top: 8px;
}

/* 面包屑与 Banner 的间距已由 banner 内部处理，不再需要 */

.cms-banner h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.cms-banner p {
  font-size: 17px;
  opacity: 0.9;
  margin: 0;
}

/* Banner 摘要：视觉层面只保留两行（GEO靠meta和JSON-LD保证） */
.cms-banner-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto !important;
  line-height: 1.5;
  opacity: 0.92;
}

/* ===== Topic/Local Banner 扩展样式（与 cms-banner 结构统一后新增） ===== */
/* 主题页Banner：稍增大内边距，容纳标签区 */
.cms-banner--topic,
.cms-banner--local {
  padding: 56px 0 60px;
}

/* 带封面图的Banner：深色遮罩 + 白色文字 + text-shadow */
.cms-banner--has-cover {
  position: relative;
  background-color: #1f2937;
}
.cms-banner--has-cover::before {
  /* 覆盖原 cms-banner::before 的径向渐变，改用不透明的线性遮罩保证可读性 */
  background: linear-gradient(135deg, rgba(17,24,39,0.72) 0%, rgba(17,24,39,0.42) 100%);
}
.cms-banner--has-cover__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,24,39,0.12);
  pointer-events: none;
  z-index: 0;
}
.cms-banner--has-cover h1,
.cms-banner--has-cover p,
.cms-banner--has-cover .cms-banner-summary,
.cms-banner--has-cover .cms-breadcrumbs,
.cms-banner--has-cover .cms-breadcrumbs a,
.cms-banner--has-cover .cms-breadcrumbs-sep {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* 本地化页面的城市徽章 */
.cms-banner-city-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-weight: 500;
}

/* Banner 内标签（关键词/本地化标签） */
.cms-banner-tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.cms-banner-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

/* 移动端：Banner 标签紧凑化 */
@media (max-width: 768px) {
  .cms-banner--topic,
  .cms-banner--local {
    padding: 40px 0 44px;
  }
  .cms-banner-city-badge {
    font-size: 13px;
    padding: 6px 14px;
    margin-bottom: 14px;
  }
  .cms-banner-tags {
    margin-top: 16px;
    gap: 8px;
  }
  .cms-banner-tag {
    font-size: 12px;
    padding: 5px 12px;
  }
}

/* ===== Article List ===== */
.cms-article-list {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.cms-article {
  background: var(--cms-white);
  padding: 28px;
  border-radius: var(--cms-radius);
  box-shadow: var(--cms-shadow-sm);
  border: 1px solid var(--cms-gray-100);
  margin-bottom: 20px;
  transition: all var(--cms-transition);
}

.cms-article:hover {
  box-shadow: var(--cms-shadow-md);
  border-color: var(--cms-accent-light);
}

.cms-article h2 {
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--cms-dark);
}

.cms-article h2 a {
  color: var(--cms-dark);
  text-decoration: none;
}

.cms-article h2 a:hover {
  color: var(--cms-accent);
}

.cms-article-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--cms-gray-400);
  margin-bottom: 12px;
}

.cms-article-excerpt {
  font-size: 15px;
  color: var(--cms-gray-500);
  line-height: 1.7;
  margin: 0;
}

/* ===== Sidebar ===== */
.cms-sidebar {
  position: sticky;
  top: calc(var(--cms-header-h) + 24px);
  align-self: start;
}

.cms-widget {
  background: var(--cms-white);
  padding: 24px;
  border-radius: var(--cms-radius);
  box-shadow: var(--cms-shadow-sm);
  border: 1px solid var(--cms-gray-100);
  margin-bottom: 20px;
}

.cms-widget-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--cms-dark);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cms-gray-100);
}

.cms-widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cms-widget-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--cms-gray-200);
}

.cms-widget-list li:last-child {
  border-bottom: none;
}

.cms-widget-list a {
  color: var(--cms-gray-700);
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cms-widget-list a:hover {
  color: var(--cms-accent);
}

.cms-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--cms-radius-sm);
  background: var(--cms-gray-200);
  color: var(--cms-gray-500);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.cms-rank-badge.top-1 { background: #ef4444; color: white; }
.cms-rank-badge.top-2 { background: #f97316; color: white; }
.cms-rank-badge.top-3 { background: #eab308; color: white; }

/* ===== FAQ ===== */
.cms-faq-item {
  background: var(--cms-white);
  border: 1px solid var(--cms-gray-200);
  border-radius: var(--cms-radius);
  margin-bottom: 16px;
  overflow: visible;
  transition: all var(--cms-transition);
}

.cms-faq-item[open] {
  border-color: var(--cms-accent);
  box-shadow: var(--cms-shadow-sm);
}

.cms-faq-item:hover {
  border-color: var(--cms-accent-light);
}

.cms-faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: block;
  background: var(--cms-white);
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--cms-dark);
  border: none;
  width: 100%;
  text-align: left;
}

.cms-faq-question::-webkit-details-marker {
  display: none;
}

.cms-faq-question-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  pointer-events: none;
}

.cms-faq-icon,
.cms-faq-arrow {
  pointer-events: none;
}

.cms-faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--cms-accent-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.cms-faq-arrow {
  margin-left: auto;
  color: var(--cms-gray-400);
  font-size: 20px;
  transition: transform var(--cms-transition);
  flex-shrink: 0;
}

.cms-faq-item[open] .cms-faq-arrow {
  transform: rotate(90deg);
}

.cms-faq-answer {
  padding: 0 24px 20px 70px;
  color: var(--cms-gray-700);
  line-height: 1.8;
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cms-faq-answer-icon {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.7;
}

.cms-faq-answer-text {
  text-indent: 2em;
  flex: 1;
}

/* ===== CTA Banner ===== */
.cms-cta {
  color: white;
  text-align: center;
  position: relative;
}

/* CTA 深色：背景在 container 上，视觉上与上方图片组对齐 */
.cms-cta--dark .cms-container {
  background: var(--cms-dark);
  border-radius: var(--cms-radius-xl);
  overflow: hidden;
  max-width: calc(var(--cms-max-w) - 48px);
}

/* CTA 浅色：背景在 container 上 */
.cms-cta--light .cms-container {
  background: #f8f9fa;
  color: #1f2937;
  border-radius: var(--cms-radius-xl);
  overflow: hidden;
  max-width: calc(var(--cms-max-w) - 48px);
}

.cms-cta--light .cms-cta-title {
  color: #1f2937;
}

.cms-cta--light .cms-cta-subtitle {
  color: #6b7280;
}

.cms-cta-content {
  position: relative;
  z-index: 1;
  padding: 48px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.cms-cta-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
  position: relative;
}

.cms-cta-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin: 0 0 20px;
  position: relative;
}

.cms-cta--light .cms-cta-subtitle {
  opacity: 1;
}

.cms-cta .cms-btn {
  position: relative;
}

.cms-cta .cms-btn-primary {
  color: #ffffff;
  border: none;
}

.cms-cta .cms-btn-primary:hover {
  color: #ffffff;
}

/* ===== Footer ===== */
.cms-footer {
  background: var(--cms-dark);
  color: var(--cms-gray-300);
  padding: 64px 0 0;
  margin-top: 0;
}

.cms-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.cms-footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cms-footer-brand .cms-logo-text {
  color: white;
  font-size: 18px;
}

.cms-footer-brand .cms-logo-sub {
  color: var(--cms-gray-300);
}

.cms-footer-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--cms-gray-300);
  margin: 16px 0 20px;
}

.cms-footer-contact {
  font-size: 14px;
  color: var(--cms-gray-300);
}

.cms-footer-contact p {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cms-footer h4 {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin: 0 0 20px;
}

.cms-footer a {
  color: var(--cms-gray-200);
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 6px 0;
  transition: color var(--cms-transition);
}

.cms-footer a:hover {
  color: var(--cms-accent-light);
}

.cms-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--cms-gray-400);
  line-height: 1.8;
}

.cms-footer-bottom a {
  display: inline !important;
  padding: 0 !important;
  font-size: 13px !important;
  color: var(--cms-gray-400);
  margin: 0 2px;
}

.cms-footer-qualifications {
  margin-top: 8px;
  text-align: center;
}

/* ===== Pagination ===== */
.cms-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.cms-pagination a,
.cms-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--cms-gray-200);
  border-radius: var(--cms-radius-sm);
  color: var(--cms-gray-700);
  font-size: 14px;
  text-decoration: none;
  transition: all var(--cms-transition);
  background: var(--cms-white);
}

.cms-pagination a:hover {
  border-color: var(--cms-accent);
  color: var(--cms-accent);
}

.cms-pagination .current {
  background: var(--cms-accent);
  border-color: var(--cms-accent);
  color: white;
}

/* ===== Article Detail ===== */
/* ===== Article Detail - 宽度与 blocks 内容对齐 =====
   基准参照：.cms-container = max-width 1352px + padding 0 24px → 内容宽度 1304px
   目标：.cms-article-detail 卡片外边缘与 blocks 内容左/右边线完全对齐 */
.cms-article-detail {
  background: var(--cms-white);
  padding: 40px;
  border-radius: var(--cms-radius-lg);
  box-shadow: var(--cms-shadow);
  max-width: 1304px;
  margin: 0 auto 40px;
  box-sizing: border-box;
}

.cms-article-detail h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--cms-dark);
  margin: 0 0 20px;
  line-height: 1.3;
}

.cms-article-detail .meta {
  display: flex;
  gap: 20px;
  color: var(--cms-gray-400);
  font-size: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cms-gray-100);
  margin-bottom: 28px;
}

.cms-article-detail .content {
  font-size: 17px;
  line-height: 1.9;
  color: var(--cms-gray-700);
  /* 关键：约束内容区内所有子元素的宽度，防止图片/视频溢出 */
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ===== 核心修复：约束所有文章内容里的图片 =====
   使用 .cms-article-detail .content img 比单独 .cms-article-img 更可靠：
   1. 选择器优先级更高，不易被全局样式覆盖
   2. 覆盖所有 <img>（包括漏加 class 的情况）
   3. 直接限制在内容区域宽度内（减去 cms-article-detail padding 48px * 2） */
.cms-article-detail .content img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  box-sizing: border-box;
  display: block;
  margin: 16px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cms-article-detail .content img.align-left {
  float: left;
  margin: 10px 20px 10px 0;
}

.cms-article-detail .content img.align-right {
  float: right;
  margin: 10px 0 10px 20px;
}

.cms-article-detail .content img.align-center {
  margin-left: auto;
  margin-right: auto;
}

/* 兼容之前手动添加的 cms-article-img class 样式 */
.cms-article-img {
  max-width: 100% !important;
  height: auto;
  margin: 16px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
}

.cms-article-img.align-center {
  margin-left: auto;
  margin-right: auto;
}

.cms-article-img.align-left {
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
}

.cms-article-img.align-right {
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
}

.cms-article-img-caption {
  display: block;
  text-align: center;
  color: #64748b;
  font-size: 14px;
  margin-top: 8px;
  font-style: italic;
}

.cms-article-detail .content p {
  margin-bottom: 20px;
}

.cms-article-detail .content h2,
.cms-article-detail .content h3 {
  margin: 32px 0 16px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cms-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cms-article-list {
    grid-template-columns: 1fr;
  }
  .cms-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .cms-nav {
    display: none;
    position: fixed;
    top: var(--cms-header-h);
    left: 0;
    right: 0;
    background: var(--cms-white);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    gap: 4px;
    max-height: calc(100vh - var(--cms-header-h));
    overflow-y: auto;
    border-top: 3px solid var(--cms-accent);
  }
  .cms-nav.is-open {
    display: flex;
  }
  .cms-nav-link {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
  }
  .cms-nav-link.is-active {
    background: var(--cms-accent-50);
    color: var(--cms-accent);
    font-weight: 600;
  }
  .cms-nav-link.is-active::after {
    display: none;
  }
  .cms-nav-toggle {
    display: flex;
  }

  /* 移动端：CTA 按钮全宽 */
  .cms-nav-cta {
    width: 100%;
    margin-top: 8px;
    text-align: center;
  }

  /* 移动端：专题集群下拉菜单改为内联展开 */
  .cms-nav-dropdown {
    width: 100%;
  }
  .cms-nav-dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 16px;
    border-radius: 10px;
  }
  .cms-nav-dropdown-menu {
    position: static;
    max-height: 0;
    overflow: hidden;
    box-shadow: none;
    background: var(--cms-gray-50);
    border-radius: 10px;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.25s ease;
    margin-top: 4px;
  }
  .cms-nav-dropdown.is-open .cms-nav-dropdown-menu {
    max-height: 800px;
    padding: 4px 12px;
    margin-top: 4px;
  }
  .cms-nav-dropdown-link {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 8px;
  }
  .cms-hero {
    min-height: calc(100vh - var(--cms-header-h));
    padding: 0;
  }
  .cms-hero-content {
    padding: 48px 20px;
  }
  .cms-hero-title {
    font-size: 30px;
  }
  .cms-hero-subtitle {
    font-size: 16px;
  }
  .cms-section {
    padding: 36px 0;  /* 原 48px，同步收敛 */
  }
  /* 手机端同样消除相邻 block 叠加 */
  .cms-section + .cms-section {
    padding-top: 0;
  }
  /* CTA 模块：手机端略紧凑但保持间距 */
  .cms-section.cms-cta {
    padding: 36px 20px 28px;
  }

  /* 移动端 CTA 紧跟其他 section 时保持顶部间距 */
  .cms-section + .cms-section.cms-cta {
    padding-top: 36px;
  }
  .cms-section-header {
    margin-bottom: 24px;  /* 手机端进一步紧凑 */
  }
  .cms-section-title {
    font-size: 24px;
  }
  .cms-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 32px;
  }
  .cms-cta {
    padding: 28px 20px;
    margin: 24px auto;
  }
  .cms-cta h2,
  .cms-cta-title {
    font-size: 20px;
  }
  .cms-cta-subtitle {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .cms-article-detail {
    padding: 20px;     /* 原 28px，再紧凑一点，与手机端 blocks 的视觉一致 */
    max-width: none;   /* 手机端不限制上限，完全跟随 cms-container 的内容宽度 */
    margin-bottom: 24px;
  }
  .cms-article-detail h1 {
    font-size: 22px;
  }
  .cms-article-detail .content {
    font-size: 16px;
  }
  .cms-banner h1 {
    font-size: 26px;
  }

  /* 移动端：主题页 Hero 紧凑适配 */
  .cms-hero--topic.cms-hero {
    padding: 20px 0 36px;
  }
  .cms-hero--topic .cms-hero-content {
    padding: 20px 20px 28px;
    text-align: left;
  }
  .cms-hero--topic .cms-hero-title {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .cms-hero--topic .cms-hero-subtitle {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .cms-hero--topic .cms-breadcrumb {
    padding: 8px 0 16px;
  }
  .cms-hero--topic .cms-breadcrumb ol {
    justify-content: flex-start;
  }

  /* 移动端：首页 Banner 紧凑适配（无遮罩、默认显示文字、加高） */
  .cms-hero--banner.cms-hero {
    min-height: 340px;
    padding: 56px 0;
  }
  .cms-hero--banner.cms-hero::after {
    display: none !important;
    content: none !important;
  }
  .cms-hero--banner .cms-hero-content {
    padding: 24px 20px;
    opacity: 1;
    transform: translateY(0);
    max-width: 100%;
  }
  .cms-hero--banner .cms-hero-title {
    font-size: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 0, 0, 0.3);
  }
  .cms-hero--banner .cms-hero-subtitle {
    font-size: 15px;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 0, 0, 0.3);
  }
}

/* ===== Utility ===== */
.cms-text-center { text-align: center; }
.cms-mt-4 { margin-top: 16px; }
.cms-mt-6 { margin-top: 24px; }
.cms-mt-8 { margin-top: 32px; }
.cms-mb-4 { margin-bottom: 16px; }
.cms-mb-6 { margin-bottom: 24px; }
.cms-mb-8 { margin-bottom: 32px; }
.cms-flex-center { display: flex; align-items: center; justify-content: center; }
.cms-flex-wrap { flex-wrap: wrap; }
.cms-hidden { display: none !important; }

/* ========================================
   Theme System - 8 套内置配色方案
   通过 body[data-theme="xxx"] 自动切换
   ======================================== */

/* Theme 1: emerald (默认-墨绿自然) */
body[data-theme="emerald"] {
  --cms-accent: #16a34a;
  --cms-accent-dark: #15803d;
  --cms-accent-light: #22c55e;
  --cms-dark: #052e16;
  --cms-gray-900: #064e3b;
  --cms-gray-800: #065f46;
  --cms-gray-700: #047857;
  --cms-gray-500: #059669;
  --cms-gray-400: #10b981;
  --cms-gray-300: #6ee7b7;
  --cms-gray-200: #a7f3d0;
  --cms-gray-100: #d1fae5;
  --cms-gray-50: #f0fdf4;
  --cms-bg: #f0fdf4;
  --cms-gradient: linear-gradient(135deg, #065f46 0%, #064e3b 50%, #052e16 100%);
  --cms-gradient-warm: linear-gradient(135deg, #047857 0%, #065f46 50%, #064e3b 100%);
  --cms-gradient-dark: #064e3b;
  --cms-gradient-hero: linear-gradient(135deg, #047857 0%, #065f46 30%, #064e3b 60%, #052e16 100%);
  --cms-gradient-footer: linear-gradient(180deg, #064e3b 0%, #052e16 100%);
  --cms-accent-50: #f0fdf4;
  --cms-accent-100: #dcfce7;
  --cms-shadow-glow: 0 0 40px rgba(22, 163, 74, 0.15);
}

/* Theme 2: teal (青蓝医学 - 牙科/口腔医疗) */
body[data-theme="teal"] {
  --cms-accent: #0d9488;
  --cms-accent-dark: #0f766e;
  --cms-accent-light: #14b8a6;
  --cms-dark: #042f2e;
  --cms-gray-900: #134e4a;
  --cms-gray-800: #115e59;
  --cms-gray-700: #0f766e;
  --cms-gray-500: #14b8a6;
  --cms-gray-400: #2dd4bf;
  --cms-gray-300: #5eead4;
  --cms-gray-200: #99f6e4;
  --cms-gray-100: #ccfbf1;
  --cms-gray-50: #f0fdfa;
  --cms-bg: #f0fdfa;
  --cms-gradient: linear-gradient(135deg, #0f766e 0%, #134e4a 50%, #042f2e 100%);
  --cms-gradient-warm: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #134e4a 100%);
  --cms-gradient-dark: #134e4a;
  --cms-gradient-hero: linear-gradient(135deg, #0f766e 0%, #134e4a 30%, #042f2e 60%, #042f2e 100%);
  --cms-gradient-footer: linear-gradient(180deg, #134e4a 0%, #042f2e 100%);
  --cms-accent-50: #f0fdfa;
  --cms-accent-100: #ccfbf1;
  --cms-shadow-glow: 0 0 40px rgba(13, 148, 136, 0.15);
}

/* Theme 3: ocean-blue (深蓝科技 - 商务/设备) */
body[data-theme="ocean-blue"] {
  --cms-accent: #2563eb;
  --cms-accent-dark: #1d4ed8;
  --cms-accent-light: #3b82f6;
  --cms-dark: #1e3a8a;
  --cms-gray-900: #1e40af;
  --cms-gray-800: #1d4ed8;
  --cms-gray-700: #2563eb;
  --cms-gray-500: #3b82f6;
  --cms-gray-400: #60a5fa;
  --cms-gray-300: #93c5fd;
  --cms-gray-200: #bfdbfe;
  --cms-gray-100: #dbeafe;
  --cms-gray-50: #eff6ff;
  --cms-bg: #eff6ff;
  --cms-gradient: linear-gradient(135deg, #1d4ed8 0%, #1e40af 50%, #1e3a8a 100%);
  --cms-gradient-warm: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  --cms-gradient-dark: #1e40af;
  --cms-gradient-hero: linear-gradient(135deg, #2563eb 0%, #1e40af 30%, #1e3a8a 60%, #172554 100%);
  --cms-gradient-footer: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
  --cms-accent-50: #eff6ff;
  --cms-accent-100: #dbeafe;
  --cms-shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);
}

/* Theme 4: sky-blue (浅蓝清新 - 儿童齿科/医美) */
body[data-theme="sky-blue"] {
  --cms-accent: #0ea5e9;
  --cms-accent-dark: #0284c7;
  --cms-accent-light: #38bdf8;
  --cms-dark: #0c4a6e;
  --cms-gray-900: #0369a1;
  --cms-gray-800: #0284c7;
  --cms-gray-700: #0ea5e9;
  --cms-gray-500: #0ea5e9;
  --cms-gray-400: #38bdf8;
  --cms-gray-300: #7dd3fc;
  --cms-gray-200: #bae6fd;
  --cms-gray-100: #e0f2fe;
  --cms-gray-50: #f0f9ff;
  --cms-bg: #f0f9ff;
  --cms-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0c4a6e 100%);
  --cms-gradient-warm: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
  --cms-gradient-dark: #0369a1;
  --cms-gradient-hero: linear-gradient(135deg, #0ea5e9 0%, #0369a1 30%, #0c4a6e 60%, #082f49 100%);
  --cms-gradient-footer: linear-gradient(180deg, #0369a1 0%, #0c4a6e 100%);
  --cms-accent-50: #f0f9ff;
  --cms-accent-100: #e0f2fe;
  --cms-shadow-glow: 0 0 40px rgba(14, 165, 233, 0.15);
}

/* Theme 5: burgundy (酒红高端 - 种植/正畸VIP) */
body[data-theme="burgundy"] {
  --cms-accent: #dc2626;
  --cms-accent-dark: #b91c1c;
  --cms-accent-light: #ef4444;
  --cms-dark: #450a0a;
  --cms-gray-900: #7f1d1d;
  --cms-gray-800: #991b1b;
  --cms-gray-700: #b91c1c;
  --cms-gray-500: #dc2626;
  --cms-gray-400: #f87171;
  --cms-gray-300: #fca5a5;
  --cms-gray-200: #fecaca;
  --cms-gray-100: #fee2e2;
  --cms-gray-50: #fef2f2;
  --cms-bg: #fef2f2;
  --cms-gradient: linear-gradient(135deg, #991b1b 0%, #7f1d1d 50%, #450a0a 100%);
  --cms-gradient-warm: linear-gradient(135deg, #b91c1c 0%, #991b1b 50%, #7f1d1d 100%);
  --cms-gradient-dark: #7f1d1d;
  --cms-gradient-hero: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 30%, #450a0a 60%, #450a0a 100%);
  --cms-gradient-footer: linear-gradient(180deg, #7f1d1d 0%, #450a0a 100%);
  --cms-accent-50: #fef2f2;
  --cms-accent-100: #fee2e2;
  --cms-shadow-glow: 0 0 40px rgba(220, 38, 38, 0.15);
}

/* Theme 6: gold (金色尊贵 - 会所型/高端VIP) */
body[data-theme="gold"] {
  --cms-accent: #ca8a04;
  --cms-accent-dark: #a16207;
  --cms-accent-light: #eab308;
  --cms-dark: #422006;
  --cms-gray-900: #713f12;
  --cms-gray-800: #854d0e;
  --cms-gray-700: #a16207;
  --cms-gray-500: #ca8a04;
  --cms-gray-400: #facc15;
  --cms-gray-300: #fde047;
  --cms-gray-200: #fef08a;
  --cms-gray-100: #fef9c3;
  --cms-gray-50: #fefce8;
  --cms-bg: #fefce8;
  --cms-gradient: linear-gradient(135deg, #7c2d12 0%, #422006 50%, #422006 100%);
  --cms-gradient-warm: linear-gradient(135deg, #a16207 0%, #713f12 50%, #422006 100%);
  --cms-gradient-dark: #713f12;
  --cms-gradient-hero: linear-gradient(135deg, #92400e 0%, #713f12 30%, #422006 60%, #422006 100%);
  --cms-gradient-footer: linear-gradient(180deg, #713f12 0%, #422006 100%);
  --cms-accent-50: #fefce8;
  --cms-accent-100: #fef9c3;
  --cms-shadow-glow: 0 0 40px rgba(202, 138, 4, 0.18);
}

/* Gold theme footer - white text on dark background */
body[data-theme="gold"] .cms-footer-brand .cms-logo-text {
  color: #ffffff;
}
body[data-theme="gold"] .cms-footer-brand .cms-logo-sub {
  color: rgba(255, 255, 255, 0.75);
}
body[data-theme="gold"] .cms-footer-desc {
  color: rgba(255, 255, 255, 0.7);
}
body[data-theme="gold"] .cms-footer-contact {
  color: rgba(255, 255, 255, 0.75);
}
body[data-theme="gold"] .cms-footer a {
  color: rgba(255, 255, 255, 0.85);
}
body[data-theme="gold"] .cms-footer a:hover {
  color: #ffffff;
}
body[data-theme="gold"] .cms-footer-bottom {
  color: rgba(255, 255, 255, 0.6);
}
body[data-theme="gold"] .cms-footer h4 {
  color: #ffffff;
}

/* Theme 7: slate (深蓝商务 - 企业/连锁品牌) */
body[data-theme="slate"] {
  --cms-accent: #475569;
  --cms-accent-dark: #334155;
  --cms-accent-light: #64748b;
  --cms-dark: #0f172a;
  --cms-gray-900: #1e293b;
  --cms-gray-800: #1e293b;
  --cms-gray-700: #334155;
  --cms-gray-500: #475569;
  --cms-gray-400: #94a3b8;
  --cms-gray-300: #cbd5e1;
  --cms-gray-200: #e2e8f0;
  --cms-gray-100: #f1f5f9;
  --cms-gray-50: #f8fafc;
  --cms-bg: #f8fafc;
  --cms-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
  --cms-gradient-warm: linear-gradient(135deg, #334155 0%, #1e293b 50%, #0f172a 100%);
  --cms-gradient-dark: #0f172a;
  --cms-gradient-hero: linear-gradient(135deg, #334155 0%, #1e293b 30%, #0f172a 60%, #020617 100%);
  --cms-gradient-footer: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  --cms-accent-50: #f8fafc;
  --cms-accent-100: #f1f5f9;
  --cms-shadow-glow: 0 0 40px rgba(71, 85, 105, 0.12);
}

/* Theme 8: violet (紫调优雅 - 美容/女性向) */
body[data-theme="violet"] {
  --cms-accent: #7c3aed;
  --cms-accent-dark: #6d28d9;
  --cms-accent-light: #8b5cf6;
  --cms-dark: #2e1065;
  --cms-gray-900: #4c1d95;
  --cms-gray-800: #5b21b6;
  --cms-gray-700: #6d28d9;
  --cms-gray-500: #7c3aed;
  --cms-gray-400: #8b5cf6;
  --cms-gray-300: #c4b5fd;
  --cms-gray-200: #ddd6fe;
  --cms-gray-100: #ede9fe;
  --cms-gray-50: #f5f3ff;
  --cms-bg: #f5f3ff;
  --cms-gradient: linear-gradient(135deg, #5b21b6 0%, #4c1d95 50%, #2e1065 100%);
  --cms-gradient-warm: linear-gradient(135deg, #6d28d9 0%, #5b21b6 50%, #4c1d95 100%);
  --cms-gradient-dark: #4c1d95;
  --cms-gradient-hero: linear-gradient(135deg, #6d28d9 0%, #4c1d95 30%, #2e1065 60%, #2e1065 100%);
  --cms-gradient-footer: linear-gradient(180deg, #4c1d95 0%, #2e1065 100%);
  --cms-accent-50: #f5f3ff;
  --cms-accent-100: #ede9fe;
  --cms-shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);
}

/* 暖灰质感主题 - 参照拜博/泰康口腔官网配色（暖黄背景+暖灰文字） */
body[data-theme="warm-gray"] {
  --cms-accent: #b8860b;
  --cms-accent-dark: #8b6508;
  --cms-accent-light: #d4a947;
  --cms-dark: #1c1917;
  --cms-gray-900: #1c1917;
  --cms-gray-800: #292524;
  --cms-gray-700: #44403c;
  --cms-gray-500: #78716c;
  --cms-gray-400: #a8a29e;
  --cms-gray-300: #d6d3d1;
  --cms-gray-200: #e7e5e4;
  --cms-gray-100: #f5f5f4;
  --cms-gray-50: #fdfaf3;
  --cms-bg: #fdfaf3;
  --cms-gradient: linear-gradient(135deg, #d4a947 0%, #b8860b 50%, #8b6508 100%);
  --cms-gradient-warm: linear-gradient(135deg, #e5c06d 0%, #c99b3e 50%, #a3791a 100%);
  --cms-gradient-dark: #8b6508;
  --cms-gradient-hero: linear-gradient(135deg, #e5c06d 0%, #c99b3e 30%, #a3791a 60%, #8b6508 100%);
  --cms-gradient-footer: linear-gradient(180deg, #8b6508 0%, #5c4405 100%);
  --cms-accent-50: #fdfaf3;
  --cms-accent-100: #f8f0db;
  --cms-shadow-glow: 0 0 40px rgba(184, 134, 11, 0.18);
}

/* Theme 10: red-gray - 红灰商务 (口腔/医疗/商务) */
body[data-theme="red-gray"] {
  --cms-accent: #c0392b;
  --cms-accent-dark: #a93226;
  --cms-accent-light: #e74c3c;
  --cms-dark: #1c2833;
  --cms-gray-900: #212f3d;
  --cms-gray-800: #2c3e50;
  --cms-gray-700: #34495e;
  --cms-gray-500: #566573;
  --cms-gray-400: #7f8c8d;
  --cms-gray-300: #b2babb;
  --cms-gray-200: #d5dbdb;
  --cms-gray-100: #eaeaee;
  --cms-gray-50: #f4f6f7;
  --cms-bg: #f4f6f7;
  /* 统一所有 banner/hero 使用红色渐变基调，与 cms-banner 保持一致 */
  --cms-gradient: linear-gradient(135deg, #c0392b 0%, #a93226 50%, #922b21 100%);
  --cms-gradient-warm: linear-gradient(135deg, #e74c3c 0%, #cb4335 50%, #b03a2e 100%);
  --cms-gradient-dark: #a93226;
  --cms-gradient-hero: linear-gradient(135deg, #c0392b 0%, #a93226 30%, #922b21 60%, #7b241c 100%);
  --cms-gradient-footer: linear-gradient(180deg, #212f3d 0%, #1c2833 100%);
  --cms-accent-50: #fdecea;
  --cms-accent-100: #fadbd8;
  --cms-shadow-glow: 0 0 40px rgba(192, 57, 43, 0.18);
}

/* Theme 11: traditional-ink - 古色古装 (传统文化/国学/非遗) */
body[data-theme="traditional-ink"] {
  --cms-accent: #b22222;
  --cms-accent-dark: #8b1a1a;
  --cms-accent-light: #d4443a;
  --cms-dark: #1a1612;
  --cms-gray-900: #2c2416;
  --cms-gray-800: #3d3222;
  --cms-gray-700: #5a4a32;
  --cms-gray-500: #7d6b4a;
  --cms-gray-400: #a89672;
  --cms-gray-300: #c4b694;
  --cms-gray-200: #dcd0b8;
  --cms-gray-100: #ebe3d0;
  --cms-gray-50: #f5f1e8;
  --cms-bg: #f5f1e8;
  --cms-gradient: linear-gradient(135deg, #b22222 0%, #8b1a1a 50%, #6d1414 100%);
  --cms-gradient-warm: linear-gradient(135deg, #d4443a 0%, #b22222 50%, #8b1a1a 100%);
  --cms-gradient-dark: #8b1a1a;
  --cms-gradient-hero: linear-gradient(135deg, #2c2416 0%, #3d3222 30%, #5a4a32 60%, #7d6b4a 100%);
  --cms-gradient-footer: linear-gradient(180deg, #2c2416 0%, #1a1612 100%);
  --cms-accent-50: #fdf2f1;
  --cms-accent-100: #f8ddd9;
  --cms-shadow-glow: 0 0 40px rgba(178, 34, 34, 0.18);
}

/* Theme 12: navy-crimson - 深蓝政务 (政务/公共/权威) */
body[data-theme="navy-crimson"] {
  --cms-accent: #1e40af;
  --cms-accent-dark: #1e3a8a;
  --cms-accent-light: #2563eb;
  --cms-dark: #0c1a3c;
  --cms-gray-900: #0f2557;
  --cms-gray-800: #1e3a5f;
  --cms-gray-700: #2c5282;
  --cms-gray-500: #4a7ab5;
  --cms-gray-400: #6b95c4;
  --cms-gray-300: #93b5d6;
  --cms-gray-200: #c5dbed;
  --cms-gray-100: #e1edf7;
  --cms-gray-50: #f0f6fb;
  --cms-bg: #f0f6fb;
  --cms-gradient: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #1e3a5f 100%);
  --cms-gradient-warm: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #1e3a8a 100%);
  --cms-gradient-dark: #1e3a8a;
  --cms-gradient-hero: linear-gradient(135deg, #0f2557 0%, #1e3a5f 30%, #2c5282 60%, #4a7ab5 100%);
  --cms-gradient-footer: linear-gradient(180deg, #0f2557 0%, #0c1a3c 100%);
  --cms-accent-50: #e1edf7;
  --cms-accent-100: #c5dbed;
  --cms-shadow-glow: 0 0 40px rgba(30, 58, 138, 0.18);
}

/* 主题预览卡片（商户后台用） */
.theme-preview-card {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background: #fff;
}
.theme-preview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.theme-preview-card.active {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
}
.theme-preview-card .check-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #16a34a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}
.theme-preview-colors {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
}
.theme-preview-colors span {
  flex: 1;
}
.theme-preview-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-align: center;
  margin: 0;
}

/* ===== Article Content Images ===== */
.cms-article-img {
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
}

.cms-article-img.align-center {
  margin-left: auto;
  margin-right: auto;
}

.cms-article-img.align-left {
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
}

.cms-article-img.align-right {
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
}

.cms-article-img-caption {
  display: block;
  text-align: center;
  color: #64748b;
  font-size: 14px;
  margin-top: 8px;
  font-style: italic;
}

/* ===== Consult Info (咨询配置) ===== */
.cms-section-consult {
  background: var(--cms-gray-50);
  /* 恢复被 .cms-section + .cms-section 清零规则移除的顶部间距 */
  padding-top: 56px !important;
}

.cms-consult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.cms-consult-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cms-consult-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--cms-white);
  padding: 20px 24px;
  border-radius: var(--cms-radius);
  box-shadow: var(--cms-shadow-sm);
  border: 1px solid var(--cms-gray-100);
  transition: all var(--cms-transition);
}

.cms-consult-item:hover {
  box-shadow: var(--cms-shadow);
  transform: translateY(-2px);
}

.cms-consult-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cms-primary-light);
  border-radius: 12px;
  flex-shrink: 0;
}

.cms-consult-info {
  flex: 1;
  min-width: 0;
}

.cms-consult-label {
  font-size: 13px;
  color: var(--cms-gray-500);
  margin-bottom: 4px;
  font-weight: 500;
}

.cms-consult-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--cms-dark);
  letter-spacing: 0.5px;
}

.cms-consult-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--cms-primary);
  text-decoration: none;
  margin-top: 2px;
  transition: color var(--cms-transition);
}

.cms-consult-link:hover {
  color: var(--cms-primary-dark);
  text-decoration: underline;
}

.cms-consult-qr {
  flex-direction: column;
  text-align: center;
  gap: 12px;
  padding: 24px;
}

.cms-consult-qr-img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--cms-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.cms-consult-qr-img img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cms-consult-qr .cms-consult-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--cms-dark);
}

.cms-consult-form {
  background: var(--cms-white);
  padding: 32px;
  border-radius: var(--cms-radius-lg);
  box-shadow: var(--cms-shadow);
  border: 1px solid var(--cms-gray-100);
}

.cms-consult-form-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--cms-dark);
  margin-bottom: 20px;
  text-align: center;
}

.cms-quick-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cms-quick-form input,
.cms-quick-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--cms-gray-200);
  border-radius: var(--cms-radius);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--cms-transition);
  box-sizing: border-box;
}

.cms-quick-form input:focus,
.cms-quick-form textarea:focus {
  outline: none;
  border-color: var(--cms-primary);
  box-shadow: 0 0 0 3px var(--cms-primary-light);
}

.cms-quick-form textarea {
  resize: vertical;
  min-height: 80px;
}

.cms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: var(--cms-radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--cms-transition);
  text-decoration: none;
}

.cms-btn-primary {
  background: var(--cms-accent);
  color: #ffffff;
  box-shadow: var(--cms-shadow-md);
}

.cms-btn-primary:hover {
  background: var(--cms-accent-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--cms-shadow-lg);
}

.cms-btn-outline {
  background: #ffffff !important;
  color: var(--cms-accent) !important;
  border: 2px solid var(--cms-accent) !important;
  border-radius: var(--cms-radius-full) !important;
}

.cms-btn-outline:hover {
  background: var(--cms-accent) !important;
  color: #ffffff !important;
  border-color: var(--cms-accent) !important;
}

/* Consult Responsive */
@media (max-width: 768px) {
  .cms-consult-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cms-consult-item {
    padding: 16px 20px;
  }
  .cms-consult-value {
    font-size: 18px;
  }
  .cms-consult-qr-img {
    width: 120px;
    height: 120px;
  }
}
