/* 新闻动态 */
.news {
  padding: 20px 0;
  background-color: #f8f9fa;
}

.news h2 {
  font-size: 2.5rem;
  color: #1a5a8a;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.news h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #1a5a8a, #2c7fb8);
  margin: 15px auto 0;
  border-radius: 2px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.news-grid_2 {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.news-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #1a5a8a;
  height: 100%;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  border-left-color: #2c7fb8;
}

.news-item a {
  display: block;
  text-decoration: none;
  padding: 20px;
  height: 100%;
}

.news-item h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.news-item:hover h3 {
  color: #1a5a8a;
}

.news-item p {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 10px 0 0 0;
}

/* 骨架屏样式 */
.skeleton-news {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-left: 4px solid #e0e0e0;
  padding: 20px;
  min-height: 100px;
}

.skeleton-title {
  height: 20px;
  width: 80%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 15px;
}

.skeleton-time {
  height: 14px;
  width: 40%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 错误状态 */
.news-error {
  padding: 40px;
  background-color: #fff5f5;
  border-radius: 8px;
  color: #dc3545;
  text-align: center;
  margin-top: 30px;
}

/* 更多按钮 */
.news .more-container {
  text-align: center;
  margin-top: 40px;
}

.news .more-btn {
  display: inline-block;
  background: transparent;
  color: #1a5a8a;
  padding: 10px 30px;
  border-radius: 30px;
  font-weight: 600;
  border: 2px solid #1a5a8a;
  cursor: pointer;
  transition: all 0.3s ease;
}

.news .more-btn:hover {
  background: #1a5a8a;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(44, 127, 184, 0.3);
}

.news .more-btn i {
  margin-left: 8px;
  transition: all 0.3s ease;
}

.news .more-btn:hover i {
  transform: translateX(5px);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .news {
    padding: 10px 0;
  }

  .news h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}
