/* =========================================
   全局基础样式
   ========================================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* 全局颜色变量覆盖 */
  :root {
    /* 主色 primary - 深蓝色 #145AA0 */
    --bs-primary: #145AA0;
    --bs-primary-rgb: 20, 90, 160;
    
    /* 辅助色 secondary - 绿色 #4cae4c */
    --bs-secondary: #4cae4c;
    --bs-secondary-rgb: 76, 174, 76;
  }

  /* 文本颜色 */
  .text-primary {
    color: #145AA0 !important;
  }
  .text-secondary {
    color: #4cae4c !important;
  }

  /* 背景颜色 */
  .bg-primary {
    background-color: #145AA0 !important;
  }
  .bg-secondary {
    background-color: #4cae4c !important;
  }

  /* 边框颜色 */
  .border-primary {
    border-color: #145AA0 !important;
  }
  .border-secondary {
    border-color: #4cae4c !important;
  }

  /* 主按钮样式 */
  .btn-primary {
    --bs-btn-bg: #145AA0;
    --bs-btn-border-color: #145AA0;
    --bs-btn-hover-bg: #104A80; /* 主色的更深色，用于hover */
    --bs-btn-hover-border-color: #104A80;
    --bs-btn-active-bg: #104A80;
    --bs-btn-active-border-color: #104A80;
  }

  /* 描边主按钮 */
  .btn-outline-primary {
    --bs-btn-color: #145AA0;
    --bs-btn-border-color: #145AA0;
    --bs-btn-hover-bg: #145AA0;
    --bs-btn-hover-border-color: #145AA0;
  }

  /* 辅助按钮样式 */
  .btn-secondary {
    --bs-btn-bg: #4cae4c;
    --bs-btn-border-color: #4cae4c;
    --bs-btn-hover-bg: #3d913d; /* 辅助色的更深色，用于hover */
    --bs-btn-hover-border-color: #3d913d;
    --bs-btn-active-bg: #3d913d;
    --bs-btn-active-border-color: #3d913d;
  }

  /* 描边辅助按钮 */
  .btn-outline-secondary {
    --bs-btn-color: #4cae4c;
    --bs-btn-border-color: #4cae4c;
    --bs-btn-hover-bg: #4cae4c;
    --bs-btn-hover-border-color: #4cae4c;
  }
  

/* =========================================
   导航栏样式
   ========================================= */
.navbar {
    background-color: #fff !important; /* 白色背景 */
    border-bottom: 1px solid #e7e7e7; /* 底部边框 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    min-height: 80px;
    padding: 0.25rem 0; /* 减小上下padding */
}

.navbar .container {
    max-width: 1400px;
    align-items: center;
}

.navbar-brand {
    color: #333 !important; /* 深色字体 */
    font-weight: bold;
    font-size: 1.25rem;
}

.nav-link {
    color: #666 !important; /* 深灰色字体 */
    font-size: 1rem;
    padding: 0.5rem 1.5rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #0A2463 !important; /* 深蓝色悬停效果 */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* 中英文切换按钮 */
#langSwitch {
    border-color: #ddd !important;
    color: #666 !important;
    transition: all 0.3s ease;
}

#langSwitch:hover {
    background-color: #0A2463 !important;
    color: white !important;
    border-color: #0A2463 !important;
}

/* 中英文切换按钮 */
#langSwitch {
    border-color: #ddd !important;
    color: #666 !important;
    transition: all 0.3s ease;
}

#langSwitch:hover {
    background-color: #0A2463 !important;
    color: white !important;
    border-color: #0A2463 !important;
}

/* =========================================
   页脚样式
   ========================================= */
footer.bg-primary {
    background-color: #051941 !important;
    padding: 1.5rem 0 !important;
}

footer .container {
    max-width: 1400px;
}

footer p, footer a, footer li {
    font-size: 0.85rem;
}

footer h5, footer h6 {
    font-size: 1rem !important;
    color: white !important;
    margin-bottom: 1rem !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

footer a.text-muted {
    text-decoration: none !important;
    transition: color 0.3s ease;
}

footer a.text-muted:hover {
    color: white !important;
    text-decoration: underline !important;
}

footer .border-top {
    border-color: rgba(255, 255, 255, 0.08) !important;
    margin: 1rem 0 !important;
}

footer .d-flex a {
    font-size: 1rem;
}

/* =========================================
   内容区样式
   ========================================= */
main.container.my-10 {
  margin-top: 8rem !important;
  margin-bottom: 3rem !important;
}

/* 二级标题样式（Bootstrap 类优先级强化） */
.text-subtitle {
  font-size: 1rem !important; /* 强制缩小二级标题 */
}


/* =========================================
   响应式调整
   ========================================= */
@media (max-width: 768px) {
    footer .row > div {
        margin-bottom: 1.5rem !important;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
    }

    /* 调整手机端导航栏高度和内边距 */
    .navbar {
        min-height: auto;
        padding: 0.1rem 0;
    }

    /* 调整手机端 logo 图片大小 */
    .navbar-brand img {
        height: 30px;
    }
}