/**
 * 云产品中心页面自定义样式
 * 一排4个产品，大小固定
 */

/* 服务卡片网格布局 - 一排4个 */
.services-4-wrapper {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}
/* 响应式布局 */
@media only screen and (max-width: 1399px) {
  .services-4-wrapper {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media only screen and (max-width: 991px) {
  .services-4-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media only screen and (max-width: 767px) {
  .services-4-wrapper {
    grid-template-columns: repeat(1, 1fr);
  }
}
.services-4-wrapper > a {
  display: block; /* 或 flex */
  text-decoration: none;
  color: inherit;
  height: 100%; /* 确保高度占满grid项 */
}

/* 服务卡片 - 固定大小（缩小版） */
.service-4-box {
  background-color: var(--white);
  border-radius: 12px;
  padding: 20px;
  height: 480px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-4-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* 标题样式 */
.service-4-box .title {
  font-family: var(--font_ineter);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  margin-right: 5px;
  margin-bottom: 8px;
}

.service-4-box .title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.service-4-box .title a:hover {
  color: #6421ff;
}

/* 内容区域 */
.service-4-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
  flex-shrink: 0;
}

/* 标签样式 */
.service-4-tag {
  height: 24px;
  padding: 0px 12px;
  font-weight: 400;
  font-size: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* 描述文字 */
.service-4-box .text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 22px;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

/* 图片样式 */
.service-4-box .thumb {
  margin-top: 16px;
  flex-shrink: 0;
}

.service-4-box .thumb img {
  width: 100%;
  height: 130px;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 12px;
}

/* 功能列表 - 可滚动区域 */
.service-4-box .feature-list {
  margin-top: 10px;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 缩小占位元素高度 */
.service-4-box-expand {
  flex: 0.1;
}

.service-4-box .feature-list li {
  font-weight: 400;
  font-size: 13px;
  line-height: 24px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 6px;
}

.service-4-box .feature-list li i {
  color: #28cf0c;
  margin-right: 8px;
  line-height: inherit;
  font-size: 11px;
  margin-top: 7px;
  flex-shrink: 0;
}

/* 功能列表文字限制 */
.service-4-box .feature-list li {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 按钮样式 */
.service-4-box .btn-wrapper {
  margin-top: auto;
  flex-shrink: 0;
}

.service-4-box .rr-btn {
  padding: 12px 24px;
  font-size: 14px;
}

.service-4-box .rr-btn .btn-wrap {
  display: flex;
  align-items: center;
}

.service-4-box .rr-btn i {
  margin-left: 6px;
  font-size: 12px;
}

/* 容器间距 */
.service-4-area-inner {
  padding-top: 50px;
  padding-bottom: 50px;
}

/* 响应式调整 */
@media only screen and (max-width: 1599px) {
  .service-4-box {
    height: 540px;
    padding: 24px;
  }

  .service-4-box .title {
    font-size: 18px;
  }

  .service-4-box .text {
    font-size: 13px;
  }
}

@media only screen and (max-width: 1399px) {
  .service-4-box {
    height: 520px;
    padding: 24px;
  }

  .service-4-box .thumb img {
    height: 120px;
  }
}

@media only screen and (max-width: 1199px) {
  .service-4-box {
    height: 500px;
    padding: 20px;
  }

  .service-4-box .title {
    font-size: 18px;
  }
}

@media only screen and (max-width: 767px) {
  .service-4-box {
    height: auto;
    min-height: auto;
  }

  .service-4-box .thumb img {
    height: 140px;
  }

  .service-4-box .feature-list li {
    -webkit-line-clamp: none;
    display: flex;
  }
}

/* 分页控件样式 */
.service-pagination-wrapper {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.service-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination-btn:hover:not(:disabled) {
  background-color: #1e80ff;
  border-color: #1e80ff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 128, 255, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background-color: #f5f5f5;
}

.pagination-numbers {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.pagination-number {
  min-width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #666;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination-number:hover {
  background-color: #f5f5f5;
  border-color: #1e80ff;
  color: #1e80ff;
  transform: translateY(-2px);
}

.pagination-number.active {
  background-color: #1e80ff;
  border-color: #1e80ff;
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 128, 255, 0.3);
}

.pagination-info {
  color: #888;
  font-size: 14px;
  text-align: center;
}

.pagination-info .current-range,
.pagination-info .total-items {
  color: #1e80ff;
  font-weight: 600;
}

/* 隐藏的产品卡片 */
.service-4-box.hidden {
  display: none;
}

/* 分页响应式 */
@media only screen and (max-width: 767px) {
  .service-pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .pagination-number {
    min-width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

/* 敬请期待卡片样式 */
.service-4-box.coming-soon {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  border: 2px dashed #d1d5db;
}

.service-4-box.coming-soon .title {
  color: #6c757d;
}

.service-4-box.coming-soon .service-4-tag-purple {
  background-color: #6c757d;
  color: #fff;
}

.service-4-box.coming-soon .text {
  color: #868e96;
  font-style: italic;
}

.service-4-box.coming-soon .feature-list li {
  color: #868e96;
  font-style: italic;
}

.service-4-box.coming-soon .feature-list li i {
  color: #adb5bd;
}

.service-4-box.coming-soon:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.service-4-tag-purple {
  height: 24px;
  padding: 0px 12px;
  font-weight: 400;
  font-size: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  margin-right: 6px;
  margin-bottom: 6px;
}
