/* ===== 八大业务：无限横向滚动 ===== */
.yewu {
  border: none;
  padding: 48px 0;
  overflow: hidden;
  background: #fdfbf7;
}
.yewu-title {
    text-align: center;
    color: #333;
    font-size: 45px;
    margin-bottom: 10px;
    font-weight: bolder;
    font-family: Source Han Sans CN;
}
.yewu-red {
    color: #b8363a;
}
.yewu-desc {
  text-align: center;
  color: #666;
  font-size: 18px;
  margin-bottom: 32px;
}

/* ---- 滚动外层（遮住超出的部分 + 左右渐隐）---- */
.yewu-scroll-wrap {
  overflow: hidden;
  width: 90%;
    margin-left: 5%;
  position: relative;
}

/* 左右渐隐遮罩 */
.yewu-scroll-wrap::before,
.yewu-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 3;
  pointer-events: none;
}
.yewu-scroll-wrap::before {
  left: 0;
  background: linear-gradient(to right, #fdfbf7 0%, transparent 100%);
}
.yewu-scroll-wrap::after {
  right: 0;
  background: linear-gradient(to left, #fdfbf7 0%, transparent 100%);
}

/* ---- 滚动轨道 ---- */
.yewu-scroll-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: yewuScroll 16s linear infinite;
}
.yewu-scroll-track:hover {
  animation-play-state: paused;
}

@keyframes yewuScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- 单张卡片（红底 + 图标 + 大标题）---- */
.yewu-card {
  flex: 0 0 calc(10% - 15px);
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: inherit;
  background: #b8363a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}
.yewu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.18);
}

/* 透明图标：右下角 */
.yewu-card-icon {
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  object-fit: contain;
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
}

/* 大标题：中上部位 */
.yewu-card-name {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  padding-top: 50px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  letter-spacing: 4px;
}

/* 副标题：白色小字 */
.yewu-card-sub {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  text-align: center;
  margin-top: 6px;
  letter-spacing: 2px;
}
/* ===== 折叠屏展开态（600~1023px）===== */
@media (min-width: 600px) and (max-width: 1023px) {
  .yewu {
    padding: 36px 0;
  }
  .yewu-title {
    font-size: 38px;
  }
  .yewu-desc {
    font-size: 17px;
  }
  .yewu-card {
    flex: 0 0 160px;
    height: 150px;
  }
  .yewu-card-name {
    font-size: 28px;
    padding-top: 30px;
    letter-spacing: 2px;
  }
  .yewu-card-sub {
    font-size: 13px;
    margin-top: 4px;
  }
  .yewu-card-icon {
    width: 160px;
    height: 160px;
    right: -30px;
    bottom: -30px;
  }
  .yewu-scroll-track {
    gap: 14px;
  }
}

/* ===== 手机端 ===== */
@media (max-width: 599px) {
  .yewu { padding: 32px 0; }
  .yewu-title { font-size: 28px; }
  .yewu-desc { font-size: 16px; margin-bottom: 20px;
      width: 80%;
      margin-left: 10%;
  }

  .yewu-scroll-wrap::before,
  .yewu-scroll-wrap::after { display: none; }
  .yewu-scroll-wrap{
      width: 100%;
      margin-left: 0;
  }
  .yewu-scroll-track {
    gap: 12px;
    animation-duration: 24s;
  }
  .yewu-card {
    flex: 0 0 200px;
    height: 150px;
  }
  .yewu-card-name {
    font-size: 20px;
    padding-top: 50px;
    letter-spacing: 2px;
  }
  .yewu-card-icon {
    width: 170px;
    height: 170px;
    right: -30px;
    bottom: -30px;
  }
  .yewu-card-sub {
    font-size: 12px;
    margin-top: 4px;
  }
}
