/* 资讯中心页面样式 */

/* 页面容器 */
.news-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 60px;
  min-height: calc(100vh - 300px);
}

/* 页面头部 */
.news-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-title {
  font-size: 36px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 16px;
  color: #666;
}

/* 分类Tab */
.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.category-tabs .tab {
  padding: 10px 24px;
  border-radius: 24px;
  color: #666;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #f5f5f5;
  border: 1px solid transparent;
}

.category-tabs .tab:hover {
  color: #f86a3a;
  background: #fff5f2;
  border-color: #f86a3a;
}

.category-tabs .tab.active {
  background: linear-gradient(135deg, #f86a3a 0%, #ff8c5a 100%);
  color: white;
  border-color: #f86a3a;
}

/* 文章列表 */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
}

.article-list .loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: #999;
}

/* 文章卡片 */
.article-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  background: white;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card .cover {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #f5f5f5;
  background-image: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.article-card .content {
  padding: 20px;
}

.article-card .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.article-card .category {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #fff5f2 0%, #ffebe5 100%);
  border-radius: 4px;
  font-size: 12px;
  color: #f86a3a;
  font-weight: 500;
}

.article-card .date {
  color: #999;
  font-size: 13px;
}

.article-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .summary {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
  padding-bottom: 20px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination a:hover {
  color: #f86a3a;
  border-color: #f86a3a;
  background: #fff5f2;
}

.pagination a.active {
  background: linear-gradient(135deg, #f86a3a 0%, #ff8c5a 100%);
  color: white;
  border-color: #f86a3a;
}

.pagination a.disabled {
  color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

/* 空状态 */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #999;
}

.empty-state .icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 16px;
}

/* 响应式 */
@media screen and (max-width: 768px) {
  .news-container {
    padding: 80px 16px 40px;
  }

  .page-title {
    font-size: 28px;
  }

  .category-tabs {
    gap: 10px;
  }

  .category-tabs .tab {
    padding: 8px 16px;
    font-size: 14px;
  }

  .article-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-card .cover {
    height: 180px;
  }

  .article-card .content {
    padding: 16px;
  }

  .article-card h2 {
    font-size: 16px;
  }
}

/* 页脚样式补充 */
.footer {
  background: #2a2a2a;
  color: #fff;
  padding: 50px 0 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-cols {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid #444;
}

.footer-cols .col h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.footer-cols .col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-cols .col ul li {
  margin-bottom: 12px;
}

.footer-cols .col ul li a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-cols .col ul li a:hover {
  color: #f86a3a;
}

.qrcode-col .qrcode-wrap {
  text-align: center;
}

.qrcode-col .qrcode-wrap img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
}

.qrcode-col .qrcode-wrap p {
  margin-top: 8px;
  font-size: 12px;
  color: #aaa;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #888;
}

.footer-bottom a {
  color: #888;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #f86a3a;
}
