/* News Page Styles */

.page-banner {
  width: 100%;
  height: 550px;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
              url('../images/topBanner.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.banner-content h1 {
  font-size: 42px;
  margin: 0 0 10px;
  font-weight: 700;
}

.banner-content p {
  font-size: 16px;
  opacity: 0.9;
  letter-spacing: 2px;
}

.news-nav {
  background: linear-gradient(to right, #1fa464, #0ea5e9);
  padding: 0;
  position: relative;
}

.news-nav .nav-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  gap: 0;
}

.news-nav a {
  flex: 1;
  padding: 15px 3px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.news-nav a:last-child {
  border-right: none;
}

.news-nav a:hover,
.news-nav a.active {
  background: rgba(255, 255, 255, 0.2);
}

.breadcrumb {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 13px;
  opacity: 0.9;
}

.news-list-section {
  padding: 60px 0;
  background: #f5f5f5;
}

.news-grid {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-item {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f5f5;
  transition: transform 0.3s ease;
}

.news-item:hover .news-thumb img {
  transform: scale(1.1);
}

.news-info {
  padding: 20px;
  text-align: center;
}

.news-info time {
  display: block;
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
  text-align: right;
}

.news-info h3 {
  font-size: 16px;
  color: #333;
  margin: 0 0 10px;
  line-height: 1.4;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-info p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pagination {
  width: min(1200px, calc(100% - 40px));
  margin: 40px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.pagination .current {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.pagination .page-info {
  margin-left: 15px;
  font-size: 14px;
  color: #666;
}

.pagination input[type="number"] {
  width: 50px;
  height: 28px;
  margin: 0 5px;
  padding: 0 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .page-main {
    margin-top: 60px;
  }

  .page-banner {
    height: 200px;
  }

  .banner-content h1 {
    font-size: 28px;
  }

  .banner-content p {
    font-size: 14px;
  }

  .news-nav .nav-inner {
    flex-wrap: wrap;
  }

  .news-nav a {
    flex: 0 0 calc(50% - 1px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .breadcrumb {
    position: static;
    transform: none;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  .news-list-section {
    padding: 40px 0;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 5px;
  }
}

@media (max-width: 420px) {
  .page-banner {
    height: 160px;
  }

  .banner-content h1 {
    font-size: 24px;
  }

  .news-nav a {
    flex: 0 0 100%;
  }

  .news-thumb {
    height: 180px;
  }

  .news-info {
    padding: 15px;
  }

  .news-info h3 {
    font-size: 15px;
  }
}
