@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* 响应式适配 */
@media (max-width: 1200px) {
  .server-price-cards {
    gap: 20px;
  }

  .server-card1 {
    width: 320px;
  }
}

@media (max-width: 900px) {
  .server-price-cards {
    flex-wrap: wrap;
    gap: 16px;
  }

  .server-card1 {
    width: 100vw;

  }

  .server-card1-btn {
    height: 40px;
    cursor: pointer;
    line-height: 40px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    background-color: #2981ff;
  }
}

@media (max-width: 600px) {
  .server-price-cards {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .server-card1 {
    width: 100%;
    height: 254px;

  }

  .server-card1-title {
    font-size: 17px;
  }

  .server-card1-subtitle {
    font-size: 13px;
  }

  .server-card1-btn {
    position: absolute;
    bottom: -1px;
    left: -1px;
    right: -1px;
    width: auto;
  }

  .server-card1-prices {
    padding: 20px;
    height: 120px;
    margin-top: 10px;
  }

  .server-card1-header {
    padding: 15px;
  }

  .price-main {
    font-size: 19px;
  }

  .price-month,
  .price-year {
    height: 38px;
    line-height: 36px;
  }
}


@media (min-width: 768px) {
  .slide-image {
    /* height: 100%;
    width: 100%; */
    padding-top: 56px;
  }

  .banner-slide {
    height: 500px;
  }

  .banner-wrapper {
    height: 26.25vw;
    position: relative;
  }

  .slide-info {
    left: 12%;
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    will-change: transform;
    z-index: 1;
  }


  .tab-item.active {
    background-color: white;
    /* border-bottom: 1 solid #68a6ff; */
    color: #68a6ff;
  }

  .tab-item.active h3 {
    color: #68a6ff;
    border-bottom: 1px solid #68a6ff;
  }

  .tab-header1,
  .container,
  .product-showcase {
    background: #f3f3f3;
  }

  .header-top,
  .header-top .container {
    background: white;
  }



}

/* 分页控件 */
.pagination {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  gap: 10px;
}

.page-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.page-btn:hover {
  background: #f0f0f0;
}

.page-btn.active {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 加载状态 */
.loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 底部提示 */
.end-message {
  text-align: center;
  padding: 20px;
  color: #999;
  font-style: italic;
  border-top: 1px solid #eee;
  margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .pagination {
    flex-wrap: wrap;
  }
}


/* 重置默认样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

/* 卡片容器：Flex 布局实现多行排列 */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  /* 超出换行 */
  gap: 20px;
  /* 卡片间距 */
  max-width: 100%;
  /* 限制最大宽度，居中时更美观 */
  margin: 0 auto;
  /* 水平居中 */
}

/* 卡片基础样式 */
.card {
  flex: 1;
  min-width: 320px;
  /* 最小宽度，防止过窄 */
  max-width: 320px;
  background: #fff;
  border-radius: 8px;
  /* 卡片圆角 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  /* 阴影增强立体感 */
  padding: 16px;
  /* 卡片内边距 */
  display: flex;
  flex-direction: column;
  /* 垂直排列内容 */
}

/* 卡片头部：图标 + 标题 */
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  /* 图标与标题间距 */
  margin-bottom: 8px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  /* 图标圆角 */
  overflow: hidden;
  /* 防止图标溢出 */
  flex-shrink: 0;
  /* 固定图标尺寸 */
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 保持图标比例 */
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2d3d;
}

/* 卡片描述文本 */
.card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 12px;
}

/* 标签区域 */
.card-tags {
  display: flex;
  gap: 6px;
  /* 标签间距 */
  flex-wrap: wrap;
  /* 标签过多时换行 */
  margin-bottom: 12px;
}

.tag {
  padding: 2px 8px;
  background: #f5f7fa;
  border-radius: 4px;
  color: #999;
  font-size: 12px;
}

/* 统计信息与操作 */
.card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 两端对齐 */
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  /* 顶到容器底部 */
}

.stats-left {
  display: flex;
  gap: 65px;
  color: #999;
  font-size: 13px;
}

.stats-right {
  color: #999;
  font-size: 13px;
}

.stats-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 响应式适配：小屏幕下卡片宽度自适应 */
@media (max-width: 768px) {
  .card {
    min-width: auto;
    /* 取消最小宽度限制 */
    max-width: 100%;
    /* 全屏宽度 */
  }
}