/* 公共样式 - 所有页面共用 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "微软雅黑", Arial, sans-serif;
}

body {
  color: #333;
  background: #fff;
  line-height: 1.6;
}

/* 容器样式（居中、限制宽度）- 和首页统一 */
.container {
  width: 1200px;
  max-width: 95%;
  margin: 0 auto;
}

/* 头部导航核心样式 - 强制Logo左、导航右，所有页面统一 */
.header {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 30px;
  position: relative; /* 为下拉菜单提供定位参考 */
  width: 100%;
}

/* 头部容器 - 核心布局：Logo左、导航右（space-between保证和首页一致） */
.header .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 1200px !important;
  max-width: 95% !important;
  margin: 0 auto !important;
}

/* Logo样式 - 固定高度，居左 */
.header .logo {
  height: 60px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

/* 导航容器 - 居右，导航项横向排列 */
.header .nav {
  display: flex !important;
  gap: 30px !important; /* 导航项间距，和首页一致 */
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 下拉菜单容器 - 定位基准 */
.header .nav .dropdown {
  position: relative !important;
  cursor: pointer !important;
}

/* 下拉菜单内容 - 默认隐藏，悬浮显示 */
.header .nav .dropdown-content {
  display: none !important;
  position: absolute !important;
  top: 100% !important; /* 紧贴导航下方 */
  left: 0 !important;
  background: #fff !important;
  min-width: 180px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  border-radius: 4px !important;
  padding: 8px 0 !important;
  z-index: 9999 !important; /* 最高层级，不被遮挡 */
}

/* 下拉菜单链接样式 */
.header .nav .dropdown-content a {
  display: block !important;
  padding: 10px 15px !important;
  color: #333 !important;
  font-size: 15px !important;
  text-decoration: none !important;
  transition: all 0.3s !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

/* 下拉链接hover效果 */
.header .nav .dropdown-content a:hover {
  background: #f8f8f8 !important;
  color: #c00 !important;
  padding-left: 18px !important;
}

/* 悬浮显示下拉菜单 */
.header .nav .dropdown:hover .dropdown-content {
  display: block !important;
}

/* 导航链接基础样式 */
.header .nav a {
  text-decoration: none !important;
  color: #333 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  transition: color 0.3s !important;
  padding: 5px 0 !important;
  display: inline-block !important;
  margin: 0 !important;
}

/* 无跳转导航文字样式（如关于我们、服务与支持） */
.header .nav .no-link {
  display: inline-block !important;
  padding: 0 15px !important;
  color: #333 !important;
  font-size: 16px !important;
  line-height: 60px !important; /* 和Logo高度一致，垂直居中 */
  cursor: default !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

/* 导航选中态高亮（当前页面） */
.header .nav a.active {
  color: #c00 !important;
  font-weight: 600 !important;
}

/* 无跳转文字高亮（如需） */
.header .nav .no-link.active {
  color: #c00 !important;
  font-weight: 600 !important;
}

/* 导航链接hover效果 */
.header .nav a:hover {
  color: #c00 !important;
}

/* 页面标题样式 */
.page-title {
  font-size: 24px;
  color: #222;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c00;
}

/* 底部样式 */
.footer {
  background: #f5f5f5;
  padding: 30px 0;
  margin-top: 60px;
  text-align: center; /* 取消这个，因为flex会控制对齐 */
  color: #666;
}

/* 底部容器 - 核心修改：改为flex布局 */
.footer .container {
  /* 开启弹性布局 */
  display: flex;
  /* 让子元素在主轴上均匀分布 */
  justify-content: space-between;
  /* 垂直方向居中对齐 */
  align-items: center;
  /* 防止内容挤在一起 */
  gap: 20px;
  /* 允许换行（如果屏幕太窄，移动端自动换行） */
  flex-wrap: wrap;
}

/* 可选：调整底部文字大小 */
.footer p {
  margin: 0; /* 取消默认外边距 */
  padding: 5px 0;
  font-size: 14px;
  /* 保留最小宽度，防止被压缩 */
  min-width: 120px;
  text-align: center; /* 文字内部居中 */
}

.footer p {
  margin: 5px 0;
  font-size: 14px;
}

/* 响应式适配（手机/平板）- 和首页逻辑一致 */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column !important;
    gap: 15px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .header .logo {
    margin-right: 0 !important;
  }

  .header .nav {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important;
  }

  /* 移动端下拉菜单居中 */
  .header .nav .dropdown-content {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}