/* 全局重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 头部导航样式 */
.header {
  background-color: #1f2937;
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-list a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-list a:hover {
  color: #38bdf8;
}

/* Banner样式 */
.banner {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}

.banner h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.banner p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* 通用板块样式 */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin: 3rem 0 2rem;
  color: #1f2937;
  position: relative;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background-color: #3b82f6;
  display: block;
  margin: 0.5rem auto 0;
}

/* 新闻列表样式 */
.news-section {
  padding: 2rem 0;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.news-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.news-item:hover {
  transform: translateY(-5px);
}

.news-date {
  color: #6b7280;
  font-size: 0.9rem;
}

.news-title {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: #1f2937;
}

.news-desc {
  color: #4b5563;
  font-size: 0.95rem;
}

/* 关于我们&联系我们样式 */
.about-section, .contact-section {
  padding: 2rem 0;
  background-color: #fff;
}

.about-content, .contact-info {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-content p, .contact-info p {
  margin-bottom: 1rem;
}

/* 底部备案样式 */
.footer {
  background-color: #1f2937;
  color: #d1d5db;
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
}

.footer p {
  margin-bottom: 0.5rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-list {
    gap: 1rem;
  }

  .banner h1 {
    font-size: 2rem;
  }

  .news-list {
    grid-template-columns: 1fr;
  }
}