:root {
  --primary-color: #1e50a2; /* 丝路蓝 */
  --secondary-color: #daa520; /* 商旅金 */
  --accent-color: #5d8aa8; /* 戈壁青 */
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --white-color: #ffffff;
  --navbar-height: 56px;
  --primary-dark-color: #0d3a7c;
  --trade-gold: #daa520;
  --silk-blue: #1e50a2;
  --silk-dark-blue: #0d3a7c;
  --trade-gold: #daa520;
  --desert-gold: #f0c060;
  --gobi-blue: #5d8aa8;
  --sand-beige: #e9d7ab;
  --text-dark: #333;
  --text-light: #f8f9fa;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
a {
  text-decoration: none;
  color: #212529;
}
/* 顶部栏样式 */
.top-bar {
  background-color: white;
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
/* 顶部栏滚动时样式 */
.top-bar.hidden {
  transform: translateY(-100%);
}
.hero-section {
  height: 680px; /* 固定高度 */
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1518655048521-f130df041f66?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80")
      no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white-color);
  padding-top: var(--navbar-height); /* 为固定导航栏预留空间 */
}
.hero-section h1,
.hero-section p,
.hero-section a {
  animation: fadeIn 1s ease-out forwards;
}

.hero-section p {
  animation-delay: 0.3s;
  opacity: 0;
}

.hero-section a {
  animation-delay: 0.6s;
  opacity: 0;
}

.navbar {
  position: relative;
  top: 0 !important; /* 确保初始位置为0，由JS动态计算偏移 */
  transition: top 0.3s ease, background-color 0.3s ease;
  z-index: 1030;
  margin-top: 0 !important;
}

.navbar.fixed-top {
  position: fixed;
  top: 0;
  width: 100%;
  /* background-color: rgba(30, 80, 162, 0.9) !important; */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.navbar-nav {
  display: flex;
  width: 100%;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  justify-content: space-around;
}
.navbar-nav .active .nav-link {
  color: var(--white-color) !important;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}
.nav-divider:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  height: 20px;
  width: 1px;
  background-color: rgba(218, 165, 32, 0.5); /* 商旅金半透明 */
  //background-color: rgba(255, 255, 255, 0.6);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--secondary-color) !important;
}

.navbar-nav .nav-link {
  font-size: 1.1rem;
  margin-left: 15px;
  transition: color 0.3s;
  font-weight: bold;
  color: var(--secondary-color) !important;
}

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

.dropdown:hover .dropdown-menu {
  display: block;
  visibility: visible;
  position: absolute;
  top: 100%;
  /* 定位到父元素底部 */
  right: 0;
  /* 左对齐父元素 */
  margin-top: 0;
  /* 移除默认间距 */
  min-width: calc(100% - 0px);
  /* 子菜单宽度与父元素一致 */
  z-index: 1000;
  background-color: var(--primary-dark-color);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.navbar.fixed-top .dropdown .dropdown-menu {
  /* background-color: rgba(30, 80, 162, 0.9) !important; */
}
.dropdown-menu .sub_li .nav-link {
  font-size: 1.1rem;
  margin-left: 0;
  transition: color 0.3s;
  font-weight: normal;
  color: var(--secondary-color) !important;
}

.dropdown-menu .active .nav-link {
  color: var(--white-color) !important;
}

.dropdown-menu .sub_li .nav-link:hover {
  color: var(--white-color) !important;
}
.navbar-nav .caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-top: 4px solid var(--secondary-color); /* 使用商旅金颜色 */
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-bottom: 0 dotted;
  transition: transform 0.3s ease; /* 添加过渡效果 */
}

/* 鼠标悬停时旋转三角 */
.navbar-nav .nav-item:hover .caret {
  transform: rotate(180deg);
}
/* 通知公告区域样式 */
.notice-container {
  align-items: center;
  height: 50px;
  width: 100%;
  overflow: hidden;
}

.notice-title {
  white-space: nowrap;
  margin-right: 1rem;
  background-color: var(--primary-color);
}

.notice-list {
  flex: 1; /* 占据剩余空间 */
  overflow-x: hidden;
  position: relative;
  height: 100%;
}
.notice-items-container {
  display: flex;
  height: 100%;
  min-width: max-content;
  position: absolute; /* 允许绝对定位实现滚动 */
  will-change: transform; /* 优化动画性能 */
}
.notice-item {
  flex: 0 0 auto;
  margin-right: 2rem;
  padding: 0 5px;
  height: 100%;
}
.notice-item a {
}
.notice-type {
  color: var(--primary-color);
}
/* 会员风采区域样式 */
.member-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.member-list {
  display: flex;
  justify-content: space-between;
  min-width: max-content;
}

.member-item {
  flex: 0 0 auto;
  margin-right: 2rem;
  width: 180px;
}
/* 核心服务 */
/* 核心服务 */
.services-section {
  padding: 100px 0;
  background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
  position: relative;
  overflow: hidden;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 40px rgba(30, 80, 162, 0.2);
}

.service-icon {
  height: 200px;
  background: var(--silk-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--trade-gold);
}

.service-content {
  padding: 30px;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--silk-dark-blue);
}

.service-content p {
  color: #555;
  margin-bottom: 20px;
}
.read-more {
  color: var(--silk-blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more:hover {
  color: var(--trade-gold);
}
.section-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 60px;
  color: var(--silk-dark-blue);
  position: relative;
}

.section-title:after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: var(--trade-gold);
  margin: 15px auto;
  border-radius: 2px;
}
/* 页脚样式 */
footer {
  background-color: rgba(13, 58, 124, 1) !important; /* 半透明丝路蓝 */

  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 30px;
  position: relative;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}
.footer-column h3 {
  color: var(--trade-gold);
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--trade-gold);
}

.footer-column p,
.footer-column li {
  margin-bottom: 15px;
  line-height: 1.8;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s;
}

.footer-column a:hover {
  color: var(--trade-gold);
  padding-left: 5px;
}
.contact-info li {
  display: flex;
  gap: 15px;
}

.contact-info i {
  color: var(--trade-gold);
  width: 20px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}
/* 内容区块样式 */
section {
  padding: 50px 0;
}
/* 新闻动态 */
.news {
  padding: 50px 0;
  background: linear-gradient(rgba(30, 80, 162, 0.05)),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="%231E50A2" stroke-width="0.5" stroke-opacity="0.1"/></svg>');
  z-index: -2;
}
.news .title-block,
.member .title-block h2,
.activities .title-block h2 {
  color: var(--primary-dark-color) !important;
}
.news .title-sub-block,
.member .title-block p,
.activities .title-block p {
  color: var(--secondary-color) !important;
}
.news .carousel .carousel-caption {
  left: 0;
  right: 0;
  bottom: 0;
}
.news .list-group-item {
  padding: 1rem !important;
}
.news .list-group-item:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color) !important;
}
.news .list-group-item h5 {
  color: var(--primary-color);
}
.news .list-group-item p {
  color: var(--bs-secondary-color) !important;
}
.news .list-group-item:hover h5,
.news .list-group-item:hover .text-muted,
.news .list-group-item:hover p,
.news .news-more:hover .text {
  color: var(--secondary-color) !important;
}
.news .news-more {
  padding: 1.8rem !important;
}
.news .news-more .text {
  color: var(--primary-color);
}
/* 中部小横幅 */
.sm-banner {
  background-color: var(--primary-color);
}
.sm-banner .banner-title {
  font-size: 3.5rem;
  color: var(--secondary-color);
}
.index_center_min_banner h1 {
  font-size: 5.5rem;
}
.index_center_min_banner h2 {
  font-size: 4.5rem;
}
.index_center_min_banner h3 {
  font-size: 3.5rem;
}
/* 商会活动卡片样式 */
.activity-card {
  height: 100%; /* 确保卡片高度一致 */
  padding: 1rem !important;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.activity-card h5 {
  color: var(--primary-color); /* 使用丝路蓝作为标题颜色 */
  transition: color 0.3s ease;
}

.activity-card:hover h5 {
  color: var(--secondary-color); /* 悬停时变为商旅金 */
}
.activity-more {
  margin-top: 2rem;
}
.activity-more a {
  background-color: var(--secondary-color);
  border-radius: 50px;
  color: var(--primary-dark-color);
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  font-weight: bold;
}
/* 响应式调整 */
@media (max-width: 768px) {
  .hero-section {
    height: 350px; /* 移动端固定高度 */
  }
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .navbar-brand {
    font-size: 1.5rem;
  }
  .activity-card {
    flex-direction: column;
  }
  .activity-card img {
    width: 100%;
    height: 180px;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 分页 */
.pager .pagination {
  margin: 0;
  justify-content: center;
  items-align: center;
}
.pager .pager {
  margin: 0;
}
.pager li {
  margin: 0 0.4em;
  display: inline-block;
}
.pager li:first-child > a,
.pager li:last-child > a,
.pager li:first-child > span,
.pager li:last-child > span {
  padding: 0.5em 1.2em;
}
.pager li > a,
.pager li > span {
  background: none;
  border: 1px solid #e6e6e6;
  border-radius: 0.25em;
  padding: 0.5em 0.93em;
  font-size: 14px;
}
.pager li.active > a,
.pager li.active > span {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #FFF;
}