/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}

body {
  color: #333;
  line-height: 1.6;
  background: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 标题样式 */
.section-title {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 30px;
}

.section-title h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
}

.section-title p {
  color: #666;
  font-size: 14px;
}

/* 卡片容器：横向排列+响应式换行 */
.service-cards-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 35px;
}

/* 单个服务卡片通用样式 */
.service-card {
  flex: 1 1 240px; /* 自适应宽度，最小240px */
  /* padding: 20px 18px; */
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.5s;
}
.service-card:hover {
  box-shadow: 10px 10px 15px #ebf3f9;
}
.service-card > div {
  padding: 0 18px;
}
/* 卡片头部：图标+标题 */
.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.65);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 18px !important;
}
/* 头部图标容器（圆形背景） */
.card-header .icon-wrapper {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card-header .icon-wrapper img {
  width: 100%;
}
/* 卡片标题 */
.card-header .card-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
.card-header .card-title span {
  color: #3a5ff7;
}

/* 卡片列表：带项目符号 */
.card-list {
  margin-bottom: 20px;
  padding: 18px !important;
}
/* 列表项 */
.card-list .list-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}
/* 列表项符号（伪元素实现） */
.card-list .list-item::before {
  content: "✓"; /* 匹配图片中的符号 */
  font-size: 14px;
  padding-top: 2px;
}
.service-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* 卡片按钮 */
.card-btn {
  width: 100%;
  margin: 12px 18px;
  margin-bottom: 20px;
  padding: 8px 0;
  border-width: 0;
  border-radius: 20px;
  background-color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.5s;
}
.card-btn:hover {
  background: #3a5ff7;
  color: #fff;
}
.card-btn img {
  width: 15px;
}

/* ------------- 每个卡片的主题色定制 ------------- */
/* 1. 出海全案策划卡片 */
.service-card:nth-child(1) {
  background-color: #f5f7fa; /* 浅灰背景 */
}
.service-card:nth-child(1) .icon-wrapper {
  background-color: #7a87aa;
  color: #4b6bfb;
}
.service-card:nth-child(1) .list-item::before {
  color: #4b6bfb;
}

/* 2. 谷歌SEO卡片 */
.service-card:nth-child(2) {
  background-color: #eef5ff; /* 浅蓝背景 */
}
.service-card:nth-child(2) .icon-wrapper {
  background-color: #0066ff;
  color: #2e8ff0;
}
.service-card:nth-child(2) .list-item::before {
  color: #2e8ff0;
}

/* 3. 海外社媒营销卡片 */
.service-card:nth-child(3) {
  background-color: #fff5e6; /* 浅黄背景 */
}
.service-card:nth-child(3) .icon-wrapper {
  background-color: #e1a83d;
  color: #ff9f43;
}
.service-card:nth-child(3) .list-item::before {
  color: #ff9f43;
}

/* 4. 外贸独立站卡片 */
.service-card:nth-child(4) {
  background-color: #f8f5f0; /* 浅褐背景 */
}
.service-card:nth-child(4) .icon-wrapper {
  background-color: #393939;
  color: #c2a661;
}
.service-card:nth-child(4) .list-item::before {
  color: #c2a661;
}

/* 为什么选择我们板块 */
.advantages {
  padding: 0px 0 60px;
  /* background-color: #fafafa; */
}

.advantage-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.advantage-card {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background-color: white;
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.5s;
}
.advantage-card:hover {
  box-shadow: 10px 10px 15px #ebf3f9;
}
.advantage-header {
  display: flex;
  align-items: center;
}
.advantage-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  margin-right: 20px;
}

.advantage-card:nth-child(1) .advantage-icon {
  background-color: #f0ffef;
  color: #00b42a;
}

.advantage-card:nth-child(2) .advantage-icon {
  background-color: #fff7e8;
  color: #ff7d00;
}

.advantage-card:nth-child(3) .advantage-icon {
  background-color: #e8f3ff;
  color: #1890ff;
}

.advantage-card h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
}

.advantage-card p {
  font-size: 14px;
  color: #666;
}

/* 客户认可板块 */
.clients {
  padding: 40px 0 80px;
  background: rgb(244, 246, 251);
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: center;
}

.client-logo {
  width: 100px;
  height: 60px;
  background-color: #f5f5f5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 页脚 */
footer {
  background-color: #1d2129;
  color: #86909c;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo h2 {
  color: white;
  font-size: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo .contact-info {
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 2;
}

.qrcode {
  width: 100px;
  height: 100px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 10px;
}

.footer-links {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.link-group h3 {
  color: white;
  font-size: 16px;
  margin-bottom: 20px;
}

.link-group ul {
  list-style: none;
}

.link-group li {
  margin-bottom: 12px;
}

.link-group a {
  color: #86909c;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.link-group a:hover {
  color: white;
}

.copyright {
  text-align: center;
  font-size: 12px;
  padding-top: 20px;
  border-top: 1px solid #2c3038;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .section-title {
    padding-top: 30px;
  }

  .service-cards,
  .advantage-cards {
    flex-direction: column;
    align-items: center;
  }

  .service-card,
  .advantage-card {
    max-width: 100%;
    width: 100%;
  }

  .client-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-links {
    gap: 20px;
  }
}
/* 轮播主容器 */
.gd-list {
  width: 100%;
  overflow: hidden;
  position: relative;
  overflow: visible !important;
}
.gd-list::before,
.gd-list::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.gd-list::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(244, 246, 251, 0.95) 0%,
    rgba(244, 246, 251, 0.5) 50%,
    transparent 100%
  );
}

.gd-list::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(244, 246, 251, 0.95) 0%,
    rgba(244, 246, 251, 0.5) 50%,
    transparent 100%
  );
}

/* 每一行轮播容器 */
.marquee-row {
  width: 100%;
  height: 140px;
  /* margin-bottom: 25px; */
  overflow: hidden;
  position: relative;
}

/* 鼠标悬停提示 */
.marquee-row::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}

.marquee-row:hover::after {
  /* opacity: 1; */
}

/* 动画轨道 - 关键容器 */
.marquee-track {
  display: flex;
  width: max-content; /* 宽度由内容撑开 */
  height: 100%;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
}

/* 图片列表容器 */
.marquee-list {
  display: flex;
  list-style: none;
  align-items: center;
  flex-shrink: 0; /* 防止被压缩 */
}

/* 单个图片项 */
.marquee-item {
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 图片样式 */
.marquee-item img {
  /* height: 90px; */
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  filter: grayscale(20%);
  transition: all 30s ease;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.marquee-item img:hover {
  transform: scale(1.08);
  filter: grayscale(0%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* 动画定义 */
/* 正向滚动：从左向右移动 */
@keyframes marquee-forward {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* 移动一半宽度（一整组图片的宽度） */
  }
}

/* 反向滚动：从右向左移动 */
@keyframes marquee-reverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* 应用正向动画 */
.marquee-forward .marquee-track {
  animation: marquee-forward 30s linear infinite;
}

/* 应用反向动画 */
.marquee-reverse .marquee-track {
  animation: marquee-reverse 30s linear infinite;
}

/* 鼠标悬停暂停 */
.marquee-row:hover .marquee-track {
  /* animation-play-state: paused; */
}

/* 控制面板样式 */
.controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.control-btn {
  background: #4a5568;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s;
}

.control-btn:hover {
  background: #2d3748;
}

.control-btn.speed-up {
  background: #3182ce;
}

.control-btn.speed-up:hover {
  background: #2c5282;
}

.control-btn.speed-down {
  background: #38a169;
}

.control-btn.speed-down:hover {
  background: #276749;
}

.control-btn.pause-all {
  background: #e53e3e;
}

.control-btn.pause-all:hover {
  background: #c53030;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .marquee-row {
    height: 110px;
    margin-bottom: 20px;
  }

  .marquee-item {
    padding: 0 15px;
  }

  .marquee-item img {
    height: 70px;
    max-width: 140px;
  }

  .controls {
    gap: 10px;
  }

  .control-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  .gd-list::before,
  .gd-list::after {
    width: 10%; /* 在小屏幕上减少模糊区域宽度 */
  }
}

@media (max-width: 480px) {
  .marquee-row {
    height: 90px;
  }

  .marquee-item {
    padding: 0 10px;
  }

  .marquee-item img {
    height: 60px;
    max-width: 120px;
  }

  .controls {
    flex-direction: column;
    align-items: center;
  }

  .control-btn {
    width: 80%;
  }
  .gd-list::before,
  .gd-list::after {
    width: 5%; /* 在手机上使用更窄的模糊边缘 */
    backdrop-filter: blur(2px); /* 减少模糊强度 */
    -webkit-backdrop-filter: blur(2px);
  }
}
