/**
 * 新闻归档页面样式 - 参考 tinus 设计
 * 
 * @package TinusGroup
 * @section news-archive
 * @reference https://www.tinus.com/news/
 */

/* ==========================================================================
   新闻页面容器
   ========================================================================== */

[data-section="news-archive"] {
  padding: 0;
  margin: 0;
  background: #fff;
}

/* ==========================================================================
   面包屑导航
   ========================================================================== */

.news-breadcrumb {
  font-size: 12px;
  padding: 20px 0;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.news-breadcrumb .container {
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb-nav {
  color: #999;
}

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

.breadcrumb-nav a:hover {
  color: #0068b6;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: #ccc;
}

.breadcrumb-current {
  color: #383838;
}

/* ==========================================================================
   页面标题区域
   ========================================================================== */

.news-header {
  background: #f8f8f8;
  padding: 30px 0;
  text-align: center;
}

.news-header .container {
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 20px;
}

.news-title {
  font-size: 32px;
  font-weight: 400;
  color: #383838;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
}

.news-title-en {
  font-size: 24px;
  color: #999;
  font-weight: 300;
  margin-left: 10px;
}

.news-description {
  font-size: 16px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   新闻内容区域
   ========================================================================== */

.news-content {
  padding: 40px 0;
  background: #fff;
}

.news-content .container {
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 新闻统计信息 */
.news-meta {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.news-count {
  font-size: 14px;
  color: #666;
  font-weight: 400;
}

/* ==========================================================================
   新闻列表
   ========================================================================== */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.news-item {
  display: flex;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.news-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* 新闻图片 */
.news-item-image {
  flex: 0 0 280px;
  position: relative;
  overflow: hidden;
}

.news-item-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item:hover .news-item-image img {
  transform: scale(1.05);
}

/* 新闻内容 */
.news-item-content {
  flex: 1;
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-item-title {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.news-item-title a {
  color: #383838;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-item-title a:hover {
  color: #0068b6;
}

.news-item-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 新闻元信息 */
.news-item-meta {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: #999;
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
}

.news-item-author,
.news-item-date {
  display: flex;
  align-items: center;
}

/* ==========================================================================
   分页导航
   ========================================================================== */

.news-pagination {
  margin-top: 40px;
  text-align: center;
}

.news-pagination .page-numbers {
  display: flex;
  padding: 8px 12px;
  margin: 0 2px;
  background: #fff;
  /* border: 1px solid #ddd; */
  color: #666;
  text-decoration: none;
  font-size: 12px;
  justify-content: center;
  transition: all 0.3s ease;
  align-items: center;
  gap: 4px;
}

.news-pagination .page-numbers li {
    list-style: none;
}

.news-pagination .page-numbers li >* {
    background: #eee;
    font-size: 15px;
    padding: 5px 14px;
}

.news-pagination span.page-numbers:hover, .news-pagination .page-numbers.current {
  background: #0068b6;
  color: #fff;
  border-color: #0068b6;
}

.news-pagination .page-numbers.prev,
.news-pagination .page-numbers.next {
  font-weight: bold;
}

/* ==========================================================================
   响应式设计
   ========================================================================== */

@media (max-width: 768px) {
  .news-title {
    font-size: 24px;
  }
  
  .news-title-en {
    font-size: 18px;
    display: block;
    margin-left: 0;
    margin-top: 5px;
  }
  
  .news-item {
    flex-direction: column;
  }
  
  .news-item-image {
    flex: none;
    width: 100%;
  }
  
  .news-item-image img {
    height: 180px;
  }
  
  .news-item-content {
    padding: 20px;
  }
  
  .news-item-title {
    font-size: 16px;
  }
  
  .news-item-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .news-content .container,
  .news-header .container,
  .news-breadcrumb .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .news-header {
    padding: 20px 0;
  }
  
  .news-content {
    padding: 20px 0;
  }
  
  .news-list {
    gap: 20px;
  }
  
  .news-item-content {
    padding: 15px;
  }
  
  .news-item-title {
    font-size: 15px;
  }
  
  .news-item-excerpt {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
}

/* ==========================================================================
   无内容状态
   ========================================================================== */

.no-news {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.no-news p {
  font-size: 16px;
  margin: 0;
}
