/* 全局重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "微软雅黑", "PingFang SC", sans-serif;
}

/* 基础变量（每套官网会覆盖主色） */
:root {
  --primary: #4361EE;
  --primary-dark: #3A0CA3;
  --bg-light: #F8F9FA;
  --bg-dark: #0F172A;
  --text-main: #212529;
  --text-light: #FFFFFF;
  --text-secondary: #6C757D;
  --shadow: 0 4px 15px rgba(0,0,0,0.08);
}

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* 容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 通用标题 */
.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: 6px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* 导航栏 */
.header {
  background-color: var(--text-light);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.nav-list {
  display: flex;
  gap: 35px;
}

.nav-list a {
  font-weight: 500;
  color: var(--text-main);
}

.nav-list a.active, .nav-list a:hover {
  color: var(--primary);
}

/* 首页轮播区 */
.banner {
  height: 500px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-light);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.banner-content {
  max-width: 650px;
  z-index: 2;
}

.banner h1 {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.banner p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* 卡片布局 */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.card {
  background-color: var(--text-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 25px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 15px;
}

/* 联系信息 */
.contact-info {
  font-size: 16px;
  line-height: 2.2;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info span {
  font-weight: 600;
  color: var(--primary);
  display: inline-block;
  width: 100px;
}

/* 地图容器 */
.map-box {
  width: 100%;
  height: 450px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 800px;
}

/* 通用区块间距 */
.section {
  padding: 70px 0;
}

/* 页脚 */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  margin-top: 30px;
}

.footer a {
  color: var(--primary);
}

/* 响应式适配 */
@media (max-width: 768px) {
  .nav-list {
    display: none; /* 移动端可自行扩展汉堡菜单 */
  }
  .banner {
    height: 400px;
    text-align: center;
  }
  .banner h1 {
    font-size: 32px;
  }
  .section-title {
    font-size: 26px;
  }
  .card-container {
    grid-template-columns: 1fr;
  }
}