body {
  background-color: #f2f2f2;
}

.white-bg {
  background-color: white;
}

.sub-button-nav {
  margin: 30px;
  text-align: center; /* 标题居中对齐 */
}

.sub-button-nav button {
  font-size: 30px;
  font-weight: bold;
  background-color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 2px;
  cursor: pointer;
}
.sub-button-nav button:hover,
.sub-button-nav .selected-news {
  background-color: #0080ff;
  color: white;
}

.news-info h3 {
  font-size: 24px;
}
.news-info p {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.6em;
  color: #4c4c4c;
}

.news-info time {
  font-size: 14px;
}

.news-info p a {
  text-decoration: none;
  color: inherit;
}

.news {
  margin: 0 auto;
  max-width: 1260px;
  overflow: hidden;
}
.news-item {
  display: grid;
  grid-template-columns: 250px 1fr 120px;
  column-gap: 14px;
  background-color: white;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.news-item a {
  text-decoration: none;
  color: #1a1a1a;
}

.news-item a:hover {
  text-decoration: underline;
}

.news-item .news-picture {
  margin: auto 0;
}

.news-item .news-picture img {
  width: 240px;
  border-radius: 6px;
  aspect-ratio: 16 / 9;
}

.news-more {
  text-align: center;
  align-self: end;
}
.news-more button {
  background-color: white;
  border: 1px solid rgb(217, 217, 217);
  padding: 10px;
  border-radius: 2px;
  cursor: pointer;
}
.news-more button:hover {
  background-color: #0080ff;
  color: white;
}

article {
  width: 800px;
  margin: 20px auto;
  padding: 10px;
  background-color: white;
}

article h1 {
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 14px;
}

article .meta-info {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  column-gap: 30px;
  font-size: 16px;
  color: #bfbfbf;
}

article .meta-info img {
  margin-right: -25px;
}

article section {
  margin-top: 20px;
}

article section p a{
  text-decoration: none;
  color: inherit;
}

article section img {
  text-align: center;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
}

.container {
  display: flex; /* 使用 Flexbox 布局 */
  align-items: center; /* 垂直居中对齐 */
  justify-content: space-between; /* 水平分布 */
  column-gap: 20px;
}
.text {
  flex: 1; /* 文字部分占据剩余空间 */
}
article p {
  text-indent: 2.3em;
  line-height: 1.6;
  letter-spacing: 2px;
  text-align: justify;
}
.image {
  width: 40%; /* 图片宽度占据 40% */
  max-width: 100%; /* 确保图片不超出容器 */
}

.strong-font {
  color: #0080ff;
  font-weight: bold;
}

/* 自适应统一调整 */
@media (max-width: 768px) {
  .banner-slide img {
    transform: scale(1.1); /* 轻微放大 */
  }
  .sub-button-nav button {
    font-size: 22px;
  }
  .items-container {
    display: block;
  }
  .news-item {
    display: block;
    text-align: left;
  }
  .news-item .news-picture img {
    display: block;
    margin: 0 auto;
  }
  .news-info h3 {
    margin-top: 4px;
    font-size: 18px;
  }
  .news-info p {
    font-size: 16px;
  }
  .news-more {
    margin-top: 6px;
  }
  section .title h2 {
    width: 100%;
    font-size: 26px; /* 标题字体大小 */
  }
  article{
    width: 100%;
    padding: 0;
  }
  article section {
    padding: 10px;
  }
  article h1 {
    font-size: 22px;
  }
  article .meta-info {
    column-gap: 10px;
    font-size: 14px;
  }
  article .meta-info img {
    margin-right: -5px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .banner-slide img {
    transform: scale(1.1); /* 轻微放大 */
  }
  .sub-button-nav button {
    font-size: 22px;
  }
  .items-container {
    grid-template-columns: 1fr;
    column-gap: 10px;
  }
  .news-item {
    display: block;
    padding: 10px;
    text-align: left;
  }
}
