* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Microsoft YaHei', -apple-system, sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部导航样式 - 深蓝色主色调 */
header {
  background-color: #1F3D73;
  color: white;
  box-shadow: 0 2px 10px rgba(31, 61, 115, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  width: auto;
}

/* 导航链接 */
nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 25px;
}

nav a {
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
  color: rgba(255, 255, 255, 0.9);
}

nav a:hover {
  color: #7EA8FF;
}

nav a.active {
  color: #7EA8FF;
  font-weight: 600;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #7EA8FF;
}

/* 搜索框样式 */
.search-container {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.search-form {
  display: flex;
  align-items: center;
}

.search-input {
  padding: 8px 15px;
  border: none;
  border-radius: 20px 0 0 20px;
  background-color: rgba(255, 255, 255, 0.95);
  width: 180px;
  font-size: 0.9rem;
  transition: width 0.3s, box-shadow 0.3s;
  color: #333;
}

.search-input:focus {
  outline: none;
  width: 230px;
  background-color: white;
  box-shadow: 0 0 0 2px rgba(31, 61, 115, 0.2);
}

.search-button {
  background-color: #2A4D8F;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.3s;
  font-size: 0.9rem;
}

.search-button:hover {
  background-color: #1F3D73;
}

/* 移动端搜索按钮 - 默认隐藏 */
.mobile-search-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  margin-left: 10px;
}

/* 移动端菜单按钮 - 默认隐藏 */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  margin-left: 10px;
}

.mobile-search-form {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #1F3D73;
  padding: 15px;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mobile-search-input {
  width: 100%;
  padding: 10px 15px;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
}

.mobile-search-submit {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #1F3D73;
  font-size: 1.1rem;
  cursor: pointer;
}

/* 页脚样式 - 优化间隔 */
footer {
  background-color: #0F1F3D;
  color: white;
  padding: 50px 0 25px;
  margin-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px; /* 增加间隔使列更整齐 */
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #7EA8FF;
  font-weight: 600;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px; /* 增加行间距使更整齐 */
}

.footer-links a {
  transition: color 0.3s;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: #7EA8FF;
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: #7EA8FF;
  text-decoration: underline;
}

.icp {
  margin-top: 10px;
  font-size: 0.85rem;
}

/* CTA按钮样式 */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #1F3D73 0%, #3A62B5 100%);
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(31, 61, 115, 0.2);
  text-align: center;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(31, 61, 115, 0.3);
}

/* 响应式设计 */
@media (max-width: 1100px) {
  .header-container {
    flex-wrap: wrap;
  }

  .search-container {
    order: 3;
    width: 100%;
    margin-left: 0;
    margin-top: 15px;
    justify-content: center;
  }

  .search-input {
    width: 60%;
  }

  .search-input:focus {
    width: 70%;
  }

  /* 页脚响应式调整 */
  .footer-container {
    gap: 30px;
  }
}

@media (max-width: 992px) {

  .header-container {
    flex-direction: row; /* 保持行布局 */
    padding: 10px 0; /* 减少上下内边距 */
  }

  .logo {
    margin-bottom: 0;
  }

  .logo-img {
    height: 50px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0;
  }

  nav li {
    margin: 0 10px;
  }

  .search-container {
    order: 0;
    width: auto;
    margin-top: 0;
  }

  /* 页脚在中等屏幕调整为2列 */
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
}

@media (max-width: 768px) {
  /* 移动端隐藏搜索框，显示搜索按钮 */
  .search-container {
    display: none;
  }

  .mobile-search-toggle {
    display: block;
  }

  /* 移动端菜单按钮仅在移动端显示 */
  .mobile-menu-toggle {
    display: block;
  }

  /* 移动端头部布局优化 */
  .header-container {
    padding: 12px 0; /* 进一步减少头部高度 */
    flex-wrap: nowrap; /* 防止换行 */
  }

  .logo {
    flex: 1; /* 让LOGO占据剩余空间 */
  }

  .logo-img {
    height: 45px;
  }

  /* 导航菜单在移动端隐藏，通过菜单按钮切换 */
  nav {
    display: none;
  }

  /* 页脚在移动端调整为1列 */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  .logo-img {
    height: 40px;
  }

  .mobile-search-toggle, .mobile-menu-toggle {
    margin-left: 8px;
    font-size: 1.3rem;
  }

}
