.elementor-8 .elementor-element.elementor-element-52a83e5{--display:flex;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}:root{--page-title-display:none;}/* Start custom CSS for html, class: .elementor-element-639a487 *//* --- 全局和变量定义 --- */
:root {
  --text-dark: #1e1e1e;
  --text-light: #ffffff;
  --text-gray: #6b6b6b;
  --bg-dark: #000000;
  --accent-green: #34d399; /* 这是一个近似的绿色 */
  --border-radius: 16px;
  --card-width: 380px; /* 卡片宽度 */
  --gap-space: 24px;   /* 间距 */
}

/* --- 基础样式 --- */
.success-stories-section {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  padding: 60px 20px;
  box-sizing: border-box;
}

.success-stories-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

/* --- 左侧文本内容样式 --- */
.text-content {
  flex: 1;
  min-width: 300px;
}

.sub-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 1px;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
}

.main-heading {
  font-size: 48px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 24px 0;
  line-height: 1.2;
}

.description {
  font-size: 18px;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0;
}

/* --- 右侧滑块样式 --- */
.slider-content {
  flex: 1.5; /* 让滑块区域占据更多空间 */
  min-width: 0; /* 防止flex item溢出 */
}

.card-slider {
  display: flex;
  gap: var(--gap-space);
  overflow-x: auto; /* 允许横向滚动 */
  padding-bottom: 20px; /* 为滚动条留出空间 */
  /* 实现平滑滚动和卡片吸附效果 */
  scroll-snap-type: x mandatory; 
  -webkit-overflow-scrolling: touch; /* 在移动设备上实现平滑滚动 */
}

/* --- 卡片样式 --- */
.story-card {
  flex: 0 0 var(--card-width);
  background-color: var(--bg-dark);
  border-radius: var(--border-radius);
  overflow: hidden;
  color: var(--text-light);
  scroll-snap-align: start; /* 滚动时对齐卡片左侧 */
  transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px); /* 添加一个轻微的悬浮效果 */
}

.card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.card-info {
  padding: 24px;
}

.card-info h3 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 20px 0;
  white-space: nowrap;
}

.info-grid {
  display: grid;
  gap: 16px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.info-item span:first-child {
  opacity: 0.8;
  font-weight: 400;
}

.info-item .value {
  font-weight: 600;
  text-align: right;
}

.info-item .increase {
  color: var(--accent-green);
  margin-right: 8px;
}

.info-item .cashflow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cashflow svg {
    vertical-align: middle;
}

/* --- 自定义滚动条样式 (适配 Webkit 浏览器如 Chrome, Safari) --- */
.card-slider::-webkit-scrollbar {
  height: 8px;
}

.card-slider::-webkit-scrollbar-track {
  background-color: #e0e0e0;
  border-radius: 10px;
}

.card-slider::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
  transition: background-color 0.2s;
}

.card-slider::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

/* --- 响应式设计 --- */
@media (max-width: 1024px) {
  .success-stories-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .text-content {
      width: 100%;
      max-width: 600px; /* 限制文本区域的最大宽度 */
  }
  .main-heading {
    font-size: 40px;
  }
  :root {
      --card-width: 320px;
  }
}

@media (max-width: 768px) {
  .main-heading {
    font-size: 32px;
  }
  .description {
      font-size: 16px;
  }
  :root {
      --card-width: 280px;
  }
  .card-info h3 {
      font-size: 24px;
  }
  .info-item {
      font-size: 13px;
  }
}/* End custom CSS */