/* 客户热点 */
.customer-hotspots {
  text-align: center;
  padding: 40px 80px;
  width: 100%;
  margin: 0 auto;
  background: url('../../images/customer-hotspots/bg.svg') no-repeat center center;
  background-position: 50% 50%;
  background-size: cover;
}
.customer-hotspots .section-title {
  margin-bottom: 60px;
}
.customer-hotspots-subtitle {
  font-weight: 600;
  font-size: 24px;
  max-width: var(--container-max-width);
  margin: 0 auto 20px;
  text-align: left;
}

/* 成功案例 */
.customer-hotspots-case-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 分三份，固定宽度 */
  gap: 16px;
  max-width: var(--container-max-width);
  margin: 0 auto 80px;
}
.customer-hotspots-case-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  height: 232px;
  cursor: pointer;
  transition: transform 0.4s linear; /* 匀速过渡 */
}
.customer-hotspots-case-card:hover {
  transform: scale(1.03); /* 放大倍数 */
}
.customer-hotspots-case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持比例填充容器 */
  z-index: 0;
}
.customer-hotspots-case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.customer-hotspots-case-text {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  padding: 24px 30px 15px;
  text-align: left;
  z-index: 10;
}
.customer-hotspots-case-title {
  /* font-weight: 600;
  font-size: 24px;
  line-height: 28px; 动态 */
  color: var(--text-white);
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  word-wrap: break-word; /* 强制换行（适配长单词/特殊符号） */
  word-break: break-all; /* 任意字符处换行（兼容特殊符号） */
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  position: relative;
}


/* 最新资讯 */
.customer-hotspots-info-container {
  display: grid;
  /* grid-template-columns: repeat(2, 1fr); 分两份，自适应宽度 */
  gap: 16px;
  max-width: var(--container-max-width);
  margin: 0 auto 80px;
}
.customer-hotspots-info-card {
  display: flex;
  overflow: hidden;
  border-radius: 20px;
  height: 200px;
  cursor: pointer;
  box-shadow: 0 0 8px 3px rgba(0, 0, 0, 0.1);
}
.customer-hotspots-info-card:hover {
  color: var(--primary-color);
}
.customer-hotspots-info-card:hover .customer-hotspots-info-time {
  color: var(--primary-color);
}
.customer-hotspots-info-card img {
  /* width: 40%; 动态 */
  height: 100%;
  object-fit: cover; /* 保持比例填充容器 */
}
.customer-hotspots-info-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* width: 60%; 动态 */
  height: 100%;
  padding: var(--customer-hotspots-padding-top) var(--customer-hotspots-padding-left);
  text-align: left;
  background-color: var(--bg-color);
}
.customer-hotspots-info-title {
  font-weight: 600;
  /* font-size: 24px;
  line-height: 40px; 动态 */
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  /* -webkit-line-clamp: 1; 行数，动态 */
  /* 强制撑满空间 */
  min-height: 1px;
}
.customer-hotspots-info-time {
  font-weight: 400;
  /* font-size: 18px;
  line-height: 32px; 动态 */
  color: var(--text-light1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0; /* 禁止压缩 */
}


/* -------------------------- 媒体查询：断点切换 -------------------------- */
@media (min-width: 1441px) {
  .customer-hotspots-case-container {
    grid-template-columns: repeat(3, 1fr); /* 分三份，自适应宽度 */
  }
  .customer-hotspots-case-card {
    height: 232px;
  }
  .customer-hotspots-case-title {
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    -webkit-line-clamp: 3;
  }
  .customer-hotspots-case-card button {
    font-size: 16px;
  }
  .customer-hotspots-info-container {
    grid-template-columns: repeat(2, 1fr); /* 分两份，自适应宽度 */
  }
  .customer-hotspots-info-card {
    height: 200px;
  }
  .customer-hotspots-info-title {
    font-size: 24px;
    line-height: 40px;
    -webkit-line-clamp: 2;
    margin-bottom: 38px;
  }
  :root {
    --customer-hotspots-padding-top: 24px; /* 客户热点卡片上边距 */
    --customer-hotspots-padding-left: 28px; /* 客户热点卡片左边距 */
  }
  .customer-hotspots-info-time {
    font-size: 18px;
  }
  .customer-hotspots-info-card img {
    width: 40%;
  }
  .customer-hotspots-info-text {
    width: 60%;
  }
}

@media (max-width: 1440px) and (min-width: 1201px) {
  .customer-hotspots-case-container {
    grid-template-columns: repeat(3, 1fr); /* 分三份，自适应宽度 */
  }
  .customer-hotspots-case-card {
    height: 202px;
  }
  .customer-hotspots-case-title {
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    -webkit-line-clamp: 3;
  }
  .customer-hotspots-case-card button {
    font-size: 16px;
  }
  .customer-hotspots-info-container {
    grid-template-columns: repeat(2, 1fr); /* 分两份，自适应宽度 */
  }
  .customer-hotspots-info-card {
    height: 200px;
  }
  .customer-hotspots-info-title {
    font-size: 24px;
    line-height: 40px;
    -webkit-line-clamp: 2;
    margin-bottom: 38px;
  }
  :root {
    --customer-hotspots-padding-top: 24px; /* 客户热点卡片上边距 */
    --customer-hotspots-padding-left: 24px; /* 客户热点卡片左边距 */
  }
  .customer-hotspots-info-time {
    font-size: 18px;
  }
  .customer-hotspots-info-card img {
    width: 40%;
  }
}

@media (max-width: 1200px) and (min-width: 801px) {
  .customer-hotspots-case-container {
    grid-template-columns: repeat(1, 1fr); /* 分一份，自适应宽度 */
  }
  .customer-hotspots-case-card {
    height: 116px;
  }
  .customer-hotspots-case-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 40px;
    white-space: nowrap;
    -webkit-line-clamp: 1;
  }
  .customer-hotspots-case-card button {
    font-size: 14px;
  }
  .customer-hotspots-info-container {
    grid-template-columns: repeat(2, 1fr); /* 分两份，自适应宽度 */
  }
  .customer-hotspots-info-card {
    height: 150px;
  }
  .customer-hotspots-info-title {
    font-size: 18px;
    line-height: 35px;
    -webkit-line-clamp: 2;
  }
  :root {
    --customer-hotspots-padding-top: 24px; /* 客户热点卡片上边距 */
    --customer-hotspots-padding-left: 24px; /* 客户热点卡片左边距 */
  }
  .customer-hotspots-info-time {
    font-size: 18px;
  }
  .customer-hotspots-info-card img {
    width: 60%;
  }
  .customer-hotspots-info-text {
    width: 40%;
  }
}

@media (max-width: 800px) and (min-width: 501px) {
  .customer-hotspots-case-container {
    grid-template-columns: repeat(1, 1fr); /* 分一份，自适应宽度 */
  }
  .customer-hotspots-case-card {
    height: 95.6px;
  }
  .customer-hotspots-case-title {
    font-weight: 600;
    font-size: 18px;
    line-height: 40px;
    white-space: nowrap;
    -webkit-line-clamp: 1;
  }
  .customer-hotspots-case-card button {
    font-size: 14px;
  }
  .customer-hotspots-info-container {
    grid-template-columns: repeat(1, 1fr); /* 分一份，自适应宽度 */
  }
  .customer-hotspots-info-card {
    height: 95.6px;
  }
  .customer-hotspots-info-title {
    font-size: 14px;
    line-height: 28px;
    white-space: nowrap;
    -webkit-line-clamp: 1;
  }
  .customer-hotspots-info-time {
    font-size: 14px;
  }
  :root {
    --customer-hotspots-padding-top: 12px; /* 客户热点卡片上边距 */
    --customer-hotspots-padding-left: 12px; /* 客户热点卡片左边距 */
  }
  .customer-hotspots-info-card img {
    width: 50%;
  }
  .customer-hotspots-info-text {
    width: 50%;
  }
}
@media (max-width: 500px) {
  .customer-hotspots-case-container {
    grid-template-columns: repeat(1, 1fr); /* 分一份，自适应宽度 */
  }
  .customer-hotspots-case-card {
    height: 95.6px;
  }
  .customer-hotspots-case-title {
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    -webkit-line-clamp: 2;
  }
  .customer-hotspots-case-card button {
    font-size: 14px;
  }
  .customer-hotspots-info-container {
    grid-template-columns: repeat(1, 1fr); /* 分一份，自适应宽度 */
  }
  .customer-hotspots-info-card {
    height: 95.6px;
  }
  .customer-hotspots-info-title {
    font-size: 14px;
    line-height: 28px;
    white-space: nowrap;
    -webkit-line-clamp: 1;
  }
  .customer-hotspots-info-time {
    font-size: 14px;
  }
  :root {
    --customer-hotspots-padding-top: 12px; /* 客户热点卡片上边距 */
    --customer-hotspots-padding-left: 12px; /* 客户热点卡片左边距 */
  }
  .customer-hotspots-info-card img {
    width: 35%;
  }
  .customer-hotspots-info-text {
    width: 65%;
  }
}