
.news-header {
    padding: 20px;
    text-align: center;
    position: relative;
    font-size: 36px;
}
.news-header::after {
    content: '';
    display: block;
    width: 6%;
    height: 2px;
    background-color: #003366;
    position: absolute;
    left: 47%;
}
.news-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px;
}
.news-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    width: 30%;
}
.news-item img {
    width: 100%;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.news-item h3 {
    margin: 10px;
}
.news-item p {
    margin: 10px;
}
.news-item .date {
    color: #666;
    font-size: 0.9em;
}
.card {
  text-align: center;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 600px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* 图片样式 */
.card-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* 内容区域 */
.card-container {
  margin-top:50px;
  margin-bottom:30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 创建两列 */
  place-items: center;
  gap: 20px;              /* 设置两个元素之间的间距 */
}

.card-title {
  margin: 0 0 10px;
  font-size: 18px;
  color: #333;
}

.card-description {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* 底部区域 */
.card-footer {
  padding: 15px;
  text-align: center;
}

.card-button {
  padding: 10px 20px;
  font-size: 14px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.card-button:hover {
  background-color: #0056b3;
}
