
/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 新闻横幅样式 */
.news-banner {
  position: relative;
  margin-top: 0;
}

.single-banner {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 400px;
  position: relative;
  z-index: 1;
}

.banner-title {
  position: absolute;
  top: 50%;
  left: 15%;
  transform: translateY(-50%);
  z-index: 2;
  color: white;
  font-size: 3em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  text-align: left;
  padding-left: 20px;
}

.news-banner h2 {
  position: absolute;
  left: 15%;
  top: 60%;
  font-size: 1.2em;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

/* 分类容器样式 */
.category-container {
  display: flex;
  justify-content: space-around;
  margin: 30px 5%;
  padding: 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 公共区域样式 */
.info-public-area {
  display: flex;
  margin: 40px 5%;
  gap: 40px;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.5s ease;
}

/* 动画效果 */
@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.info-public-area.fade-out {
  animation: fadeOut 0.3s forwards;
}

.info-public-area.fade-in {
  animation: fadeIn 0.5s forwards;
}

.left-section {
  flex: 1;
  min-width: 300px;
}

.content-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.main-title {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 15px;
  line-height: 1.3;
}

.brief-intro {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
}

.right-section {
  flex: 1;
  min-width: 300px;
}

.sub-title {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

.detail-content {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.8;
}

/* 分类框样式 */
.category-box {
  width: max-content;
  min-width: 140px;
  padding: 16px 32px;
  border-radius: 16px;
  margin: 0 12px;
  background: white;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-box h3 {
  color: #334155;
  transition: color 0.3s;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 500;
}

/* 优化分类框悬停效果 */
.category-box:hover {
  background: #074c85;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(7, 76, 133, 0.3);
}

.category-box:hover h3 {
  color: white;
}

/* 优化分类框激活状态 */
.category-box.active {
  background: #074c85;
  box-shadow: 0 8px 24px rgba(7, 76, 133, 0.3);
}

.category-box.active h3 {
  color: white;
}

/* 为分类框添加轻微的呼吸动画效果 */
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.category-box:hover {
  animation: breathe 2s ease-in-out infinite;
}

/* 响应式设计 - 大屏幕 */
@media (max-width: 1200px) {
  .category-box {
    min-width: 130px;
    padding: 14px 28px;
  }
  
  .category-box h3 {
    font-size: 1.2rem;
  }
}

/* 新闻内容区域样式 */
.news-content {
  display: flex;
  margin: 40px 5%;
  gap: 30px;
  max-width: 1400px;
  align-items: stretch;
}

.news-main {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.news-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 轮播图样式 */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  flex: 1;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 30px;
}

.carousel-date {
  font-size: 0.9rem;
  color: #ffd700;
  margin-bottom: 8px;
}

.carousel-content {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4;
}

/* 轮播控制按钮 */
.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
}

.carousel-prev,
.carousel-next {
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0,0,0,0.8);
}



/* 小新闻展示样式 */
.small-news-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.small-news-item:hover {
  transform: translateY(-5px);
}

.small-news-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.small-news-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.small-news-content h3 {
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.3;
}

.small-news-content p {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.5;
  margin-bottom: 15px;
}

.read-more {
  color: #3498db;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

/* 新闻展示区域样式 */
.news-display-section {
  margin: 60px 5%;
  max-width: 1400px;
}

.display-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* 分类标签 */
.category-tabs {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.tab-btn {
  flex: 1;
  padding: 20px;
  border: none;
  background: none;
  font-size: 1.1rem;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  background: #e9ecef;
  color: #495057;
}

.tab-btn.active {
  color: #074c85;
  border-bottom-color: #074c85;
  background: white;
}

/* 新闻内容区域 */
.news-display-content {
  display: flex;
  gap: 30px;
  padding: 30px;
}

.news-list {
  flex: 2;
}

.news-category {
  display: none;
}

.news-category.active {
  display: block;
}

.news-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 12px;
  background: #f8f9fa;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.news-image {
  flex: 0 0 200px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-details {
  flex: 1;
}

.news-details h3 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-details p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.date {
  color: #6c757d;
  font-size: 0.9rem;
}

.read-more {
  color: #074c85;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.read-more:hover {
  text-decoration: underline;
}

/* 推荐文章 */
.recommended-articles {
  flex: 1;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.recommended-articles h3 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #074c85;
}

.recommended-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.recommended-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  transition: transform 0.3s;
  cursor: pointer;
}

.recommended-item:hover {
  transform: translateX(5px);
}

.recommended-item img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
}

.recommended-content {
  flex: 1;
}

.recommended-content h4 {
  font-size: 0.9rem;
  color: #2c3e50;
  margin-bottom: 5px;
  line-height: 1.3;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommended-date {
  font-size: 0.8rem;
  color: #6c757d;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .news-display-content {
    flex-direction: column;
  }
  
  .recommended-articles {
    position: static;
    margin-top: 30px;
  }
  
  .news-item {
    flex-direction: column;
  }
  
  .news-image {
    flex: none;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .news-display-section {
    margin: 40px 3%;
  }
  
  .news-display-content {
    padding: 20px;
  }
  
  .category-tabs {
    flex-direction: column;
  }
  
  .tab-btn {
    border-bottom: none;
    border-right: 3px solid transparent;
  }
  
  .tab-btn.active {
    border-right-color: #074c85;
    border-bottom: none;
  }
}

@media (max-width: 1024px) {
  .news-content {
    flex-direction: column;
  }
  
  .carousel-container {
    height: 400px;
    min-height: auto;
  }
  
  .news-sidebar {
    flex-direction: row;
    gap: 20px;
  }
  
  .small-news-item {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .news-content {
    margin: 20px 3%;
  }
  
  .carousel-container {
    height: 300px;
  }
  
  .carousel-caption {
    padding: 20px;
  }
  
  .carousel-content {
    font-size: 1rem;
  }
  
  .news-sidebar {
    flex-direction: column;
  }
  
  .small-news-item img {
    height: 180px;
  }
}

/* 响应式设计 - 中等屏幕 */
@media (max-width: 992px) {
  .category-container {
    padding: 15px;
  }
  
  .category-box {
    min-width: 120px;
    padding: 12px 24px;
    margin: 0 8px;
  }
  
  .category-box h3 {
    font-size: 1.1rem;
  }
}

/* 响应式设计 - 小屏幕 */
@media (max-width: 768px) {
  .category-container {
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    gap: 10px;
  }
  
  .category-box {
    min-width: 100%;
    max-width: 250px;
    margin: 5px 0;
  }
  
  .banner-title {
    font-size: 2.2em;
    left: 10%;
  }
  
  .single-banner {
    height: 300px;
  }
}

/* 响应式设计 - 手机屏幕 */
@media (max-width: 480px) {
  .category-box {
    padding: 10px 20px;
  }
  
  .category-box h3 {
    font-size: 1rem;
  }
  
  .banner-title {
    font-size: 1.8em;
    left: 5%;
  }
  
  .single-banner {
    height: 250px;
  }
}
