/* 新闻更多页面专用样式 - 两列列表布局 */

.center-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px;
  padding-top: 120px; /* 为导航栏留出空间 */
}

.content {
  background-color: rgba(0, 0, 0, 0.65);
  border-radius: 10px;
  padding: 40px;
  max-width: 1200px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

/* 页面头部 */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #B6282C;
}

.page-header h1 {
  color: #f6f7f7;
  font-size: 32px;
  font-weight: bold;
  margin: 0;
}

.page-header .back-link {
  color: #B6282C;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.page-header .back-link:hover {
  color: #f6f7f7;
  text-decoration: underline;
}

.page-header .back-link i {
  margin-right: 8px;
}

/* 筛选和搜索区域 */
.filter-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.filter-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.search-box {
  position: relative;
}

.search-box input {
  padding: 10px 15px;
  padding-left: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  width: 250px;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #f6f7f7;
}

.search-box input::placeholder {
  color: #999;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #f6f7f7;
}

.sort-select {
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  cursor: pointer;
  color: #f6f7f7;
}

.sort-select option {
  background-color: rgba(0, 0, 0, 0.8);
  color: #f6f7f7;
  border: none;
}

/* 两列列表布局 */
.news-list-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

/* 新闻列表项 */
.news-list-item {
  display: flex;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 200px;
}

.news-list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.news-list-image {
  width: 200px;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

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

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

.news-list-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-list-title {
  color: #333;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-summary {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #777;
  font-size: 12px;
}

.news-list-author {
  display: flex;
  align-items: center;
}

.news-list-author i {
  margin-right: 5px;
  color: #B6282C;
}

.news-list-date {
  color: #777;
}

/* 分类标签 */
.news-list-category {
  color: #777;
  font-size: 12px;
  display: flex;
  align-items: center;
}

.news-list-category i {
  margin-right: 5px;
  color: #B6282C;
}

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

.pagination-button {
  padding: 10px 15px;
  border: 1px solid #ddd;
  background-color: white;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pagination-button:hover {
  background-color: #B6282C;
  color: white;
  border-color: #B6282C;
}

.pagination-button.active {
  background-color: #B6282C;
  color: white;
  border-color: #B6282C;
}

.pagination-button:disabled {
  background-color: #f8f9fa;
  color: #999;
  cursor: not-allowed;
  border-color: #e9ecef;
}

.pagination-info {
  color: #f6f7f7;
  font-size: 14px;
  margin: 0 20px;
}

/* 加载状态 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #f6f7f7;
  grid-column: 1 / -1;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #B6282C;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 空状态 */
.empty-container {
  text-align: center;
  padding: 60px 20px;
  color: #f6f7f7;
  grid-column: 1 / -1;
}

.empty-container i {
  font-size: 48px;
  color: #B6282C;
  margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .news-list-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .news-list-item {
    height: auto;
  }
  
  .news-list-image {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .center-wrapper {
    padding: 10px;
    padding-top: 100px;
  }
  
  .content {
    padding: 20px;
    width: 95%;
    margin: 0 auto;
  }
  
  /* 手机端导航样式 */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 30px;
    cursor: pointer;
    padding: 0px;
  }

  .menu-toggle span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: #B6282C;
    border-radius: 0px;
    margin: 2px 0;
    justify-content: center;
  }

  .navbar {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    display: none;
    width: 100%;
  }

  .navbar.active {
    display: flex;
  }

  .navbar > li {
    width: 100%;
    text-align: center;
  }

  .navbar a {
    padding: 12px 15px;
  }

  .navbar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    position: relative;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    width: 100%;
  }

  .dropdown a {
    padding: 12px 15px;
    text-align: center;
  }
  
  .page-header h1 {
    font-size: 24px;
  }
  
  .filter-section {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .filter-left,
  .filter-right {
    justify-content: center;
  }
  
  .search-box input {
    width: 100%;
    max-width: 300px;
  }
  
  .news-list-item {
    flex-direction: column;
    height: auto;
  }
  
  .news-list-image {
    width: 100%;
    height: 200px;
  }
  
  .news-list-content {
    padding: 15px;
  }
  
  .news-list-title {
    font-size: 16px;
  }
  
  .news-list-summary {
    font-size: 13px;
  }
  
  .news-list-meta {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .news-list-category,
  .news-list-author,
  .news-list-date {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .center-wrapper {
    padding: 5px;
    padding-top: 90px;
  }
  
  .content {
    padding: 15px;
    width: 92%;
    margin: 0 auto;
  }
  
  .page-header h1 {
    font-size: 20px;
  }
  
  .filter-section {
    padding: 15px;
  }
  
  .search-box input {
    font-size: 13px;
  }
  
  .sort-select {
    font-size: 13px;
  }
  
  .news-list-image {
    height: 150px;
  }
  
  .news-list-content {
    padding: 12px;
  }
  
  .news-list-title {
    font-size: 14px;
  }
  
  .news-list-summary {
    font-size: 12px;
  }
  
  .news-list-meta {
    gap: 6px;
  }
  
  .news-list-category,
  .news-list-author,
  .news-list-date {
    font-size: 10px;
  }
  
  .pagination-container {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .pagination-button {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .pagination-info {
    font-size: 12px;
    margin: 0 10px;
  }
}

@media (max-width: 320px) {
  .center-wrapper {
    padding: 3px;
    padding-top: 85px;
  }
  
  .content {
    padding: 12px;
    width: 90%;
    margin: 0 auto;
  }
  
  .page-header h1 {
    font-size: 18px;
  }
  
  .filter-section {
    padding: 12px;
  }
  
  .search-box input {
    font-size: 12px;
    padding: 8px 12px;
    padding-left: 35px;
  }
  
  .sort-select {
    font-size: 12px;
    padding: 8px 12px;
  }
  
  .news-list-image {
    height: 120px;
  }
  
  .news-list-content {
    padding: 10px;
  }
  
  .news-list-title {
    font-size: 13px;
  }
  
  .news-list-summary {
    font-size: 11px;
  }
  
  .news-list-category,
  .news-list-author,
  .news-list-date {
    font-size: 9px;
  }
  
  .pagination-button {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .pagination-info {
    font-size: 11px;
    margin: 0 8px;
  }
} 