/* 公告和新闻模块样式 */
.news-announcement-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 40px 0;
  border-top: 1px solid #e2e8f0;
  position: relative;
}

.news-announcement-section .container {
  max-width: 1400px;
}

/* 左右分栏卡片样式 */
.news-announcement-section .card {
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.news-announcement-section .card-header h5 {
    font-weight: 600;
    color: #2c3e50;
}

.news-announcement-section .card-body {
    padding: 1.25rem;
}

.news-announcement-section .news-list,
.news-announcement-section .announcement-list {
    overflow: visible;
}






/* 标题样式 */
.news-announcement-section .section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

.news-announcement-section .section-description {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* 分类导航样式 */
.nav-tabs-wrapper {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 1.5rem;
  border: 1px solid #e9ecef;
}

.nav-tabs {
  border: none;
}

.nav-tabs .nav-item {
  margin: 0 2px;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  color: #6c757d;
  background: transparent;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-tabs .nav-link:hover {
  color: #495057;
  background: #e9ecef;
}

.nav-tabs .nav-link.active {
  color: #007bff;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-tabs .nav-link i {
  margin-right: 8px;
  font-size: 14px;
}



/* 内容列表样式 */
.announcement-list,
.news-list {
  min-height: 400px;
}

.content-item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  padding: 12px;
  border: 1px solid rgba(0, 123, 255, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 8px;
  backdrop-filter: blur(10px);
}

.content-item:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 123, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 123, 255, 0.15);
}

.content-item h6 {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.content-item .content-item-summary {
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.content-item .text-muted {
  font-size: 11px;
}

.content-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.content-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.content-item-date {
  color: #6c757d;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.content-item-date i {
  color: #007bff;
  font-size: 0.75rem;
}

.content-item-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.content-item-summary {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.loading-state .spinner-border {
    width: 1.8rem;
    height: 1.8rem;
    color: #0050d8;
    margin-bottom: 1rem;
}

.loading-state p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.empty-state i {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    display: block;
}

.empty-state p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* 错误状态 */
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #dc2626;
    background: rgba(254, 242, 242, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(248, 113, 113, 0.3);
    backdrop-filter: blur(10px);
}

.error-state i {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: block;
}

.error-state p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-announcement-section {
        padding: 30px 0;
    }
    
    .news-announcement-section .container {
        padding: 0 15px;
    }
    
    .news-announcement-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .news-announcement-section .section-description {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .news-announcement-section .card {
        margin-bottom: 20px;
    }
    
    .news-announcement-section .card-header {
        padding: 15px;
    }
    
    .news-announcement-section .card-header h5 {
        font-size: 1.1rem;
        margin-bottom: 0;
    }
    
    .news-announcement-section .card-body {
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .nav-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .content-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .content-item h6 {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 8px;
    }
    
    .content-item .content-item-summary {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .content-item .text-muted {
        font-size: 0.8rem;
    }
    
    .content-item-title {
        font-size: 0.95rem;
    }
    
    .content-item-image {
        width: 45px;
        height: 45px;
    }
    
    .category-link {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .content-item-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .content-item-image {
        align-self: flex-start;
    }
}

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

.content-item {
  animation: fadeInUp 0.6s ease forwards;
}

.content-item:nth-child(1) { animation-delay: 0.1s; }
.content-item:nth-child(2) { animation-delay: 0.2s; }
.content-item:nth-child(3) { animation-delay: 0.3s; }
.content-item:nth-child(4) { animation-delay: 0.4s; }
.content-item:nth-child(5) { animation-delay: 0.5s; }

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .content-item,
  .category-link,
  .nav-link {
    animation: none;
    transition: none;
  }
  
  .content-item:hover {
    transform: none;
  }
  
  .category-link:hover {
    transform: none;
  }
  
  .nav-link:hover,
  .nav-link.active {
    transform: none;
  }
}