/* 页面顶部 */
.page-hero {
  height: 50vh;
  min-height: 400px;
  background: linear-gradient(rgba(96, 127, 86, 0.7), rgba(96, 127, 86, 0.7)), 
              url(/newweb/image/banner.png) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 80px;
}

.page-hero-content {
  max-width: 800px;
  padding: 0 20px;
  color: white;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-hero p {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 30px;
  opacity: 0.9;
}

/* 面包屑导航 */
.breadcrumb {
  background-color: #f9fafb;
  padding: 20px 0;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #6b7280;
}

.breadcrumb-nav a {
  color: #567b5c;
  text-decoration: none;
}

.breadcrumb-nav span {
  color: #9ca3af;
}

/* 新闻列表 */
.news-section {
  background-color: white;
}

.news-filter {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: #567b5c;
  color: white;
  border-color: #567b5c;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.news-content {
  padding: 24px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #6b7280;
}

.news-category {
  background: rgba(86, 123, 92, 0.1);
  color: #567b5c;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.news-date {
  color: #6b7280;
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 15px;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  display: inline-flex;
  align-items: center;
  color: #567b5c;
  font-weight: 500;
  text-decoration: none;
  gap: 8px;
  transition: color 0.3s;
  font-size: 14px;
}

.news-link:hover {
  color: #456349;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 60px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  text-decoration: none;
  color: #374151;
  font-size: 14px;
  transition: all 0.3s;
}

.pagination a:hover {
  background: #567b5c;
  color: white;
  border-color: #567b5c;
}

.pagination .current {
  background: #567b5c;
  color: white;
  border-color: #567b5c;
}

.pagination .disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .page-hero {
    height: 40vh;
    min-height: 300px;
    padding-top: 70px;
    align-items: center;
  }
  
  .news-filter {
    padding: 30px 0;
  }
  
  .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .filter-tab {
    flex-shrink: 0;
  }
  
  .news-section {
    padding: 40px 0;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .pagination {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .article-section {
    padding: 40px 0;
  }
  
  .article-header {
    margin-bottom: 30px;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .article-image img {
    height: 250px;
  }
  
  .article-body h2 {
    margin: 30px 0 15px;
  }
  
  .article-body h3 {
    margin: 25px 0 12px;
  }
  
  .share-buttons {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 480px) {
  .page-hero {
    height: 35vh;
    min-height: 250px;
    align-items: center;
  }
  
  .news-filter {
    padding: 20px 0;
  }
  
  .news-section {
    padding: 30px 0;
  }
  
  .news-image {
    height: 180px;
  }
  
  .news-content {
    padding: 20px;
  }
  
  .pagination {
    margin-top: 40px;
  }
  
  .article-image img {
    height: 200px;
  }
  
  .article-body {
    font-size: 15px;
  }
  
  .sidebar-section {
    padding: 15px;
  }
}

/* 新闻页面样式 */
.news-page {
  padding-top: 80px;
}

/* 面包屑导航 */
.breadcrumb {
  background-color: #f9fafb;
  padding: 20px 0;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #6b7280;
}

.breadcrumb-nav a {
  color: #567b5c;
  text-decoration: none;
}

.breadcrumb-nav span {
  color: #9ca3af;
}

/* 新闻过滤器 */
.news-filter {
  background-color: white;
  padding: 40px 0;
  border-bottom: 1px solid #e5e7eb;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 24px;
  border: 1px solid #d1d5db;
  background: white;
  color: #4b5563;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
}

.filter-tab:hover,
.filter-tab.active {
  background: #567b5c;
  color: white;
  border-color: #567b5c;
}

/* 新闻列表 */
.news-section {
  padding: 60px 0;
  background-color: #f9fafb;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.news-content {
  padding: 25px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #6b7280;
}

.news-category {
  background: #567b5c;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.news-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 15px;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  display: inline-flex;
  align-items: center;
  color: #567b5c;
  font-weight: 500;
  text-decoration: none;
  gap: 8px;
  transition: color 0.3s;
}

.news-link:hover {
  color: #456349;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 60px;
}

.pagination-btn {
  padding: 10px 15px;
  border: 1px solid #d1d5db;
  background: white;
  color: #4b5563;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
}

.pagination-btn:hover:not(:disabled) {
  background: #567b5c;
  color: white;
  border-color: #567b5c;
}

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

.pagination-numbers {
  display: flex;
  gap: 5px;
  align-items: center;
}

.pagination-number {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  background: white;
  color: #4b5563;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
}

.pagination-number:hover,
.pagination-number.active {
  background: #567b5c;
  color: white;
  border-color: #567b5c;
}

.pagination-dots {
  color: #9ca3af;
  padding: 0 5px;
}

/* ==================== 新闻详情页样式 ==================== */

.news-detail-page {
  padding-top: 80px;
}

/* 文章主体 */
.article-section {
  padding: 60px 0;
  background-color: white;
}

.article-content {
  display: grid;
  /* grid-template-columns: 1fr 300px; */
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 文章头部 */
.article-header {
  margin-bottom: 40px;
  text-align: center;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-category {
  background: #567b5c;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.article-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-summary {
  font-size: 18px;
  line-height: 1.6;
  color: #4b5563;
  max-width: 800px;
  margin: 0 auto;
}

/* 文章主图 */
.article-image {
  width: 100%;
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* 文章正文 */
.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  margin: 40px 0 20px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 30px 0 15px;
}

.article-body h4 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 25px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
  text-align: justify;
}

.article-body ul,
.article-body ol {
  margin: 20px 0;
  padding-left: 30px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body strong {
  font-weight: 600;
  color: #111827;
}

.article-highlight {
  background: #f0f9ff;
  border-left: 4px solid #567b5c;
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
}

.article-highlight h4 {
  color: #567b5c;
  margin-bottom: 10px;
}

/* 文章标签 */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 30px;
  padding-top: 30px;
  border-top: 1px solid #e5e7eb;
}

.tag {
  background: #f3f4f6;
  color: #4b5563;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
}

.tag:hover {
  background: #567b5c;
  color: white;
}

/* 分享按钮 */
.article-share {
  margin-top: 30px;
}

.article-share h4 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 15px;
}

.share-buttons {
  display: flex;
  gap: 15px;
}

.share-btn {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  background: white;
  color: #4b5563;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
}

.share-btn.wechat:hover {
  background: #1aad19;
  color: white;
  border-color: #1aad19;
}

.share-btn.weibo:hover {
  background: #e6162d;
  color: white;
  border-color: #e6162d;
}

.share-btn.qq:hover {
  background: #1296db;
  color: white;
  border-color: #1296db;
}

.share-btn.copy:hover {
  background: #567b5c;
  color: white;
  border-color: #567b5c;
}

/* 侧边栏 */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #567b5c;
}

/* 相关文章 */
.related-articles {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-article {
  display: flex;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f3f4f6;
}

.related-article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-image {
  width: 80px;
  height: 60px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  flex-shrink: 0;
}

.related-content {
  flex: 1;
}

.related-content h4 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
}

.related-content h4 a {
  color: #111827;
  text-decoration: none;
  transition: color 0.3s;
}

.related-content h4 a:hover {
  color: #567b5c;
}

.related-date {
  font-size: 12px;
  color: #6b7280;
}

/* 热门文章 */
.popular-articles {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.popular-article {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f3f4f6;
}

.popular-article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #567b5c;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.popular-content {
  flex: 1;
}

.popular-content h4 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 5px;
}

.popular-content h4 a {
  color: #111827;
  text-decoration: none;
  transition: color 0.3s;
}

.popular-content h4 a:hover {
  color: #567b5c;
}

.popular-views {
  font-size: 12px;
  color: #6b7280;
}

/* 联系卡片 */
.contact-card {
  background: linear-gradient(135deg, #567b5c, #456349);
  color: white;
}

.contact-card h3 {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.contact-btn {
  display: inline-block;
  background: white;
  color: #567b5c;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 15px;
  transition: all 0.3s;
}

.contact-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
  .article-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .article-sidebar {
    order: -1;
  }
  
  .sidebar-section {
    padding: 20px;
  }
} 