/* ===== HOME PAGE STYLES ===== */

/* 页面容器调整 */
.wrap {
  margin-top: 0;
  max-width: none;
  padding: 30px 120px;
  background-color: #F4F4F8;
  flex-wrap: wrap;
}

/* 标题区域 */
.section-header {
  width: 1200px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.section-header::before {
  content: '';
  width: 4px;
  height: 20px;
  background: #5E47BB;
  display: block;
}

.section-header h2 {
  font-family: 'PingFang SC', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #22201F;
  line-height: 34px;
  margin: 0;
}

/* 新闻卡片列表 */
.news-list {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 单个新闻卡片 */
.news-card {
  width: 1200px;
  height: 200px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* 卡片图片 */
.news-card-image {
  width: 320px;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.12);
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 卡片内容区 */
.news-card-content {
  flex: 1;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 卡片标题 */
.news-card-title {
  font-family: 'PingFang SC', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #22201F;
  line-height: 28px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 498px;
}

.news-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card-title a:hover {
  color: #5E47BB;
}

/* 卡片日期 */
.news-card-date {
  font-family: 'PingFang SC', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #3D3D3D;
  line-height: 24px;
  margin-top: 20px;
}

/* 卡片描述 */
.news-card-desc {
  font-family: 'PingFang SC', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #817F7E;
  line-height: 24px;
  margin: 20px 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 查看详情按钮 */
.news-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0px;
  min-width: 80px;
  width: 80px;
  height: 28px;
  border: 1px solid #CFCECD;
  border-radius: 0;
  background: transparent;
  font-family: 'PingFang SC', sans-serif;
  font-size: 14px;
  color: #817F7E;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
}

.news-card-btn:hover {
  border-color: #5E47BB;
  color: #5E47BB;
}

.news-card-btn a {
  color: inherit;
  text-decoration: none;
}

/* 分页组件 */
.pagination-wrapper {
  width: 1248px;
  margin: 40px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

/* 分页导航 */
.pagination-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 分页按钮 */
.pagination-btn {
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #CFCECD;
  background: #FFFFFF;
  font-family: 'PingFang SC', sans-serif;
  font-size: 14px;
  color: #3E3A39;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 2px;
  padding: 0 8px;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  border-color: #5E47BB;
  color: #5E47BB;
}

.pagination-btn.active {
  background: #5E47BB;
  border-color: #5E47BB;
  color: #FFFFFF;
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 箭头图标按钮 */
.pagination-arrow {
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.pagination-arrow:hover:not(.disabled) {
  opacity: 0.7;
}

.pagination-arrow.disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.pagination-arrow svg {
  width: 6.67px;
  height: 12px;
}

/* 省略号 */
.pagination-divider {
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.pagination-divider span {
  width: 2px;
  height: 2px;
  background: #3E3A39;
  border-radius: 50%;
  display: block;
}

/* 数据总数 */
.pagination-info {
  font-family: 'PingFang SC', sans-serif;
  font-size: 14px;
  color: rgba(62, 58, 57, 0.9);
  line-height: 20px;
}

/* 每页条数选择器 */
.pagination-select-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 8px;
  height: 32px;
  border: 1px solid #CFCECD;
  background: #FFFFFF;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.pagination-select-wrapper:hover {
  border-color: #5E47BB;
}

.pagination-select-text {
  font-family: 'PingFang SC', sans-serif;
  font-size: 14px;
  color: #3E3A39;
  line-height: 20px;
}

.pagination-select-icon {
  width: 16px;
  height: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination-select-icon svg {
  width: 5px;
  height: 9px;
}

/* 跳转页码 */
.pagination-jump {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-jump-label {
  font-family: 'PingFang SC', sans-serif;
  font-size: 14px;
  color: #3E3A39;
  line-height: 20px;
}

.pagination-jump-input {
  width: 44px;
  height: 32px;
  border: 1px solid #CFCECD;
  background: #FFFFFF;
  border-radius: 2px;
  padding: 0 8px;
  font-family: 'PingFang SC', sans-serif;
  font-size: 14px;
  color: #3E3A39;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease;
}

.pagination-jump-input:focus {
  border-color: #5E47BB;
}

.pagination-jump-submit {
  padding: 4px 12px;
  height: 32px;
  border: 1px solid #CFCECD;
  background: #FFFFFF;
  border-radius: 2px;
  font-family: 'PingFang SC', sans-serif;
  font-size: 14px;
  color: #3E3A39;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-jump-submit:hover {
  border-color: #5E47BB;
  color: #5E47BB;
}

/* 响应式适配 */
@media (max-width: 1440px) {
  .wrap {
    padding: 30px 60px;
  }

  .section-header,
  .news-list,
  .pagination-wrapper {
    width: 100%;
    max-width: 1200px;
  }
}

@media (max-width: 1200px) {
  .wrap {
    padding: 20px 24px;
  }

  .news-card {
    flex-direction: column;
    height: auto;
  }

  .news-card-image {
    width: 100%;
    height: 200px;
  }

  .news-card-content {
    height: auto;
    padding: 16px 0;
  }

  .news-card-title {
    max-width: 100%;
    white-space: normal;
  }
}
