/* CRM 页面独立样式 */

/* 英雄区：保持当前渐变与居中布局（不改变你现有的背景基调） */
.crm-hero {
  padding: 120px 24px;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.crm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(255,255,255,0.18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.06) 70%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* 容器与文案 */
.crm-hero .crm-container {
  max-width: 980px;
  margin: 0 auto;
}
.crm-hero h1 {
  font-size: clamp(30px, 5.6vw, 56px);
  font-weight: 800;
  color: #6360E0;
  letter-spacing: 0.6px;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 2px 10px rgba(22,93,255,0.12);
}
.crm-hero p {
  max-width: 760px;
  margin: 16px auto 0;
  color: #6360E0;
  font-size: clamp(14px, 1.7vw, 18px);
  line-height: 1.8;
}

/* 按钮区域与样式 */
.crm-cta {
  margin-top: 28px;
  display: inline-flex;
  gap: 16px;
}
.crm-btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 9999px;
  background: #ffffff;
  color: #165dff;
  border: none;
  font-weight: 600;
  /* box-shadow: 0 8px 22px rgba(22,93,255,0.18), 0 4px 10px rgba(0,0,0,0.08); */
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.crm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(22,93,255,0.22), 0 6px 12px rgba(0,0,0,0.10);
}
.crm-btn:focus-visible {
  outline: 3px solid rgba(255,255,255,0.65);
  outline-offset: 2px;
}
.crm-btn.secondary {
  background: rgba(255,255,255,0.18);
  color: #6360E0;
  border: 1px solid #6360E0;
  box-shadow: none;
}
.crm-btn.secondary:hover {
  background: #6360E0;
  border-color: #6360E0;
  color: #fff;
}
.crm-btn.secondary i { margin-right: 6px; }

/* 背景 Blob 点缀（保留现有样式的风格） */
.crm-blob {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.25;
  animation: crmFloat 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.blob1 { left: 6%; top: 18%; background: radial-gradient(60% 60% at 50% 50%, #75a7ff, transparent 70%); }
.blob2 { right: 12%; top: 12%; background: radial-gradient(60% 60% at 50% 50%, #7fb3ff, transparent 70%); animation-duration: 16s; }
.blob3 { right: 8%; bottom: 10%; background: radial-gradient(60% 60% at 50% 50%, #6aa0ff, transparent 70%); animation-duration: 18s; }

@keyframes crmFloat {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -18px, 0); }
}

/* 移动端适配 */
@media (max-width: 768px) {
  .crm-hero { padding: 90px 20px; min-height: 380px; }
  .crm-cta { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 480px) {
  .crm-btn { width: 100%; }
}
/* CRM - 核心功能模块（作用于 crm.html #L122-172） */
.crm-section {
  position: relative;
  /* 仅作用于本模块的色彩变量 */
  --crm-card-bg: rgba(255, 255, 255, 0.06);
  --crm-card-border: rgba(255, 255, 255, 0.18);
  --crm-text: #e8edf3;
  --crm-muted: #a9b2c0;
  --crm-accent-1: #6C5CE7; /* 紫色 */
  --crm-accent-2: #00D4FF; /* 青色 */
  /* CRM - 核心功能模块（优化主题色与背景） */
    background: #F9F9FF;
    padding: 30px 0;


  /* 修复：顶层定义 .crm-section，避免嵌套写法 */
  .crm-section {
    position: relative;
    background-color: #f7f7fa;
    padding: clamp(48px, 8vw, 96px) 0;
  }
  .crm-section .crm-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e7daed;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  }
  .crm-section .crm-icon {
    width: 48px;
    height: 48px;
    opacity: 0.95;
  }
  .crm-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
    text-align: center;
  }
  .crm-container .title {
    margin: 0 0 8px;
    font-size: clamp(22px, 4.2vw, 36px);
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1.15;
    /* 主站常用渐变主题色 */
    background: linear-gradient(#f76680, #57007b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .crm-container .subtitle {
    margin: 0 auto clamp(28px, 5vw, 40px);
    max-width: 720px;
    font-size: clamp(14px, 2.4vw, 18px);
    color: var(--crm-muted);
  }
  .crm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(16px, 3vw, 24px);
    align-items: stretch;
  }
  .crm-card {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr; /* 左图标 + 右内容 */
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--crm-card-bg), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--crm-card-border);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
    backdrop-filter: saturate(120%) blur(8px);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
    will-change: transform;
    overflow: hidden;
  }
  .crm-card::before {
    /* 渐变描边微光（不会侵入内容） */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.5), rgba(0, 212, 255, 0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0.35;
    pointer-events: none;
  }
  .crm-card::after {
    /* 悬浮时出现的柔光亮斑 */
    content: "";
    position: absolute;
    top: -30%;
    left: -10%;
    width: 140px;
    height: 140px;
    background: radial-gradient(60px 60px at center, rgba(108, 92, 231, 0.35), transparent 70%);
    filter: blur(18px);
    opacity: 0;
    transition: opacity 220ms ease, transform 220ms ease;
    pointer-events: none;
  }
  .crm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  }
  .crm-card:hover::after {
    opacity: 1;
    transform: translate(4px, 4px);
  }
  .crm-card:focus-within {
    outline: 2px solid transparent;
    border-color: rgba(108, 92, 231, 0.6);
  }
  .crm-icon {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 2px 6px rgba(108, 92, 231, 0.3));
    flex-shrink: 0;
  }
  .crm-card h3 {
    margin: 0 0 6px;
    font-size: clamp(16px, 2.6vw, 20px);
    font-weight: 700;
    color: #000;
    line-height: 1.35;
    position: relative;
    text-align: left;
  }
  .crm-card h3::after {
    /* 标题渐变下划线（悬浮显现） */
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--crm-accent-1), var(--crm-accent-2));
    border-radius: 2px;
    opacity: 0;
    transition: opacity 220ms ease, width 220ms ease;
  }
  .crm-card:hover h3::after {
    opacity: 1;
    width: 50%;
  }
  .crm-card p {
    margin: 0;
    font-size: clamp(13px, 2.2vw, 16px);
    color: var(--crm-muted);
    line-height: 1.6;
    text-align: left;
  }
  /* 卡片：白底 + 淡紫边框 + 柔和阴影 */
  .crm-section .crm-card {
    background: #ffffff;
    border: 1px solid #e7daed;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
  }
  .crm-section .crm-card:hover {
    border-color: #d6c5e2;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  }
  .crm-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 6px rgba(108, 92, 231, 0.3));
    flex-shrink: 0;
  }
 
  .crm-card p {
    margin: 0;
    font-size: clamp(13px, 2.2vw, 16px);
    color: var(--crm-muted);
    line-height: 1.6;
  }
  @media (max-width: 520px) {
    .crm-card {
      grid-template-columns: 44px 1fr;
      padding: 16px 16px;
      gap: 12px;
      border-radius: 14px;
    }
    .crm-icon {
      width: 32px;
      height: 32px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .crm-card,
    .crm-card::after,
    .crm-card h3::after {
      transition: none;
    }
  }
  /* 图标保持当前资源，仅增加轻微阴影 */
  .crm-section .crm-icon {
    filter: drop-shadow(0 2px 6px rgba(87, 0, 123, 0.25));
  }
  @media (max-width: 520px) {
    .crm-section {
      padding: 36px 0;
    }
    .crm-section .crm-card {
      padding: 16px 16px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .crm-card,
    .crm-card::after,
    .crm-card h3::after {
      transition: none;
    }
  }

/* ECharts 容器尺寸（必须设高度，否则看不见） */
.chart {
  position: relative;
  height: 260px;   /* 与设计一致 */
}
.chart canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.chart .echart {
  width: 100%;
  height: 260px;   /* 与设计一致 */
  display: block;
}
