/* 顶部banner */
.article-banner-container {
  color: #fff;
  padding: 78px 100px 20px;
  margin: var(--nav-height) auto 0;
  background-position: center;
  background-size: cover;
}
/* 应用案例背景 */
.article-banner-container-case {
  background-image: url('../../images/static-page-img/article-bg2.svg');
}
/* 新闻资讯背景 */
.article-banner-container-news {
  background-image: url('../../images/static-page-img/article-bg3.svg');
}
.article-title-container {
  position: relative;
  width: 100%;
  max-width: 514px;
  margin: 0 auto;
}
.article-title-container h1 {
  font-weight: 700;
  font-size: 36px;
  line-height: 44px;
  margin-bottom: 18px;
  text-align: center;
}
.article-title-container input {
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  width: 100%;
  padding:9px 35px 9px 20px;
  border-radius: 5px;
  border: none;
  position: relative;
}
.article-title-container .search-icon {
  position: absolute;
  right: 0px;
  bottom: 0px;
  padding: 8px 15px;
  background-color: var(--text-light2);
  border-radius: 0px 5px 5px 0px;
  cursor: pointer;
}
.article-title-container .search-icon svg {
  fill: var(--text-light1);
}

.article-container {
  padding: 80px;
  background-color: var(--bg-color-light);
}
.article-content-container {
  max-width: 1400px;
  margin: 0 auto;
}

.article-page-title {
  font-weight: 600;
  font-size: 48px;
  line-height: 52px;
  margin-bottom: 42px;
  color: var(--text-color3);
}

/* 案例网格布局 */
.article-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 21px;
  margin-bottom: 65px;
  width: 100%;
  max-width: 1400px;
}

/* 案例卡片样式 */
.article-case-card {
  /* border-radius: 8px; */
  overflow: hidden;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
  transition: transform 0.2s ease;
  background-color: var(--bg-color);
}

.article-case-card:hover {
  transform: translateY(-4px);
}

.article-case-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid #f0f0f0;
}

.article-case-date {
  font-weight: 400;
  font-size: 8px;
  line-height: 11px;
  color: #165DFF;
  background-color: #E8F3FF;
  padding: 3px 12px;
  border: 1px solid #BEDAFF;
  border-radius: 3px;
  margin: 0 20px;
}

.article-case-title {
  font-weight: 500;
  font-size: 12px;
  line-height: 17px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 15px 20px 0px;
  margin-bottom: 20px;
}

@media (max-width: 1200px) {
  .article-case-grid {
    grid-template-columns: 1fr;
  }
  .article-case-image {
    height: 172px;
  }
}

/* 分页器样式 */
.article-pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.article-page-btn {
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.article-page-btn:not(:disabled):hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.article-page-numbers {
  display: flex;
  gap: 10px;
}

.article-page-number {
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-page-number.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.article-page-number:not(.active):hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* 响应式页码数量控制 */
/* 大屏：显示10个页码 */
.article-page-numbers {
  --visible-pages: 10;
}

/* 省略号样式 */
.article-page-ellipsis {
  padding: 8px 16px;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  cursor: default;
}

/* 大屏：显示10个（包含首页、最后一页、省略号），实际中间可展示8个 */
.article-page-numbers {
  --visible-pages: 10;
}

/* 中屏（平板）：显示7个，实际中间可展示5个 */
@media (max-width: 768px) {
  .article-page-numbers {
    --visible-pages: 5;
  }
}

/* 小屏（手机）：显示5个，实际中间可展示3个 */
@media (max-width: 500px) {
  .article-page-numbers {
    --visible-pages: 3;
  }
}