/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft Yahei", sans-serif;
  color: #333;
  line-height: 1.6;
}

/* 顶部导航 */
.navbar {
  background-color: #fff !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50 !important;
}

.nav-link {
  color: #333 !important;
  font-weight: 500;
  margin: 0 8px;
}

.nav-link:hover {
  color: #007bff !important;
}

.lang-switch a {
  margin-left: 10px;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}

.lang-switch a.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* 轮播图 */
.carousel-item {
  height: 500px;
}

@media (max-width: 768px) {
  .carousel-item {
    height: 250px;
  }
}

.carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* 通用模块样式 */
.section-title {
  text-align: center;
  margin: 50px 0 30px;
  font-size: 2rem;
  font-weight: bold;
  color: #2c3e50;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: #007bff;
  margin: 15px auto;
}

.card {
  border: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  margin-bottom: 30px;
}

.card:hover {
  transform: translateY(-5px);
}

/* 底部样式 */
footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-link {
  color: #ddd;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #444;
}

/* 联系我们页面 */
.contact-info {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.contact-info i {
  color: #007bff;
  margin-right: 10px;
  font-size: 1.2rem;
}

.qr-code {
  width: 200px;
  height: 200px;
  border: 5px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  margin: 0 auto;
}

/* 新闻详情页 */
.news-detail h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.news-meta {
  color: #999;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.news-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.news-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}
