:root {
  --primary-color: #007bff;
  --text-dark: #333;
  --text-medium: #666;
  --text-light: #999;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e9ecef;
  --transition-base: 0.3s ease;
  --navbar-height: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

body {
  font-family: "Microsoft YaHei", "Microsoft YaHei-Regular", sans-serif;
  background-color: var(--bg-light);
  scroll-behavior: smooth;
}

/* 增大容器最大宽度 */
.container {
  max-width: 1445px !important;
}

/* 导航栏样式 */
.navbar {
  z-index: 1000;
  background-color: transparent !important;
  background-image: none !important;
  border-bottom: none;
  border-radius: 0;
  position: fixed;
  top: 0;
  width: 100%;
  transition: all var(--transition-base);
  height: var(--navbar-height);
  box-shadow: none !important;
}

.navbar.scrolled {
  background-color: var(--bg-white) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.navbar .dropdown-menu {
    background: #fff;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px #0000000d, 0 6px 12px #0000000a;
    border: none;
    margin-top: 0;
}

/* 手机端导航展开时的背景 */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--bg-white);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-top: 10px;
  }
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: var(--navbar-height);
}

.navbar-brand img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-link {
  font-size: 20px;
  font-weight: 400;
  transition: color var(--transition-base);
  color: var(--text-medium);
  position: relative;
  margin: 0 10px;
  line-height: var(--navbar-height);
  height: var(--navbar-height);
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* 活动链接下的横线 */
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* 轮播图样式 */
.hero-section {
  position: relative;
  /*height: 872px;*/
  overflow: hidden;
  margin-top: 0;
}

.carousel-inner {
  /*height: 100%;*/
  height: auto;
}

.carousel-item {
  /*height: 100%;*/
  height: auto;
  position: relative;
}

.carousel-image {
  width: 100%;
  /*height: 100%;*/
  height: auto;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* 底部样式 */
#footer {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 0;
    border-top: 1px solid #000;
}

#footer .container {
    max-width: 1200px;
}

#footer .logo-footer {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#footer .list-unstyled {
    margin: 0;
    padding-left: 0;
}

#footer .list-unstyled li {
    margin-bottom: 12px;
}

#footer .list-unstyled a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

#footer .list-unstyled a:hover {
    color: #007bff !important;
}

#footer .text-muted {
    color: #ffffff !important;
    font-size: 14px;
}

#footer .qrcode-container {
    margin-top: 30px;
    justify-content: center;
}

#footer .qrcode-footer {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

#footer p.text-muted {
    color: #ffffff !important;
    font-size: 12px;
    margin-bottom: 0;
}

#footer .copyright a {
    color: #ffffff;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #282828;
  margin-bottom: 30px;
}

.section-subtitle {
  text-align: center;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-medium);
  margin-bottom: 65px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  word-wrap: break-word;
  line-height: 1.3;
}

/* 分页样式 */
.pagination {
    margin: 58px 0;
    display:flex;
    justify-content: center;
    gap: 12px;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    color: #969696;
    border: 1px solid #e2e2e2;
}

.pagination span.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination span.current {
    background-color: #0c7bff;
    color: #ffffff;
}