/* 全局样式 */
:root {
  --primary-color: #0056b3;
  --secondary-color: #6c757d;
  --accent-color: #ffc107;
  --text-color: #333;
  --light-bg: #f8f9fa;
}

body {
  font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 固定导航栏样式 */
.navbar.fixed-top {
  z-index: 1030; /* 确保导航栏在其他元素之上 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.navbar-brand {
  font-weight: bold;
}

/* 为固定导航栏添加页面内容顶部边距 */
body {
  padding-top: 76px; /* 导航栏高度 + 一些额外空间 */
}

/* 轮播图样式 */
.carousel-item {
  height: 500px;
}

/* 轮播图容器样式 - 为固定导航栏调整 */
#mainCarousel {
  margin-top: -20px; /* 适度的负边距，避免图片被遮挡 */
  position: relative;
  z-index: 1;
  width: 100%;
  transition: margin-top 0.3s ease;
  overflow: hidden; /* 确保轮播图内容不会溢出 */
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  display: block;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 5px;
}

/* 标题样式 */
.section-title {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* 卡片样式 */
.card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  border-radius: 8px;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #004494;
  border-color: #004494;
}

/* 页脚样式 */
footer {
  background-color: #343a40;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .carousel-item {
    height: 300px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
} 


.responsive-div {
  width: 80vw;  /* 宽度为视口宽度的50% */
  height: 90vh; /* 高度为视口高度的50% */
}

/* 页面标题部分样式调整 */
.bg-primary.text-white.py-5 {
  margin-top: -20px; /* 减少负边距，避免内容被遮挡 */
  position: relative;
  z-index: 1;
  width: 100%;
  transition: margin-top 0.3s ease;
}

/* 其他页面第一个section的样式调整 */
body > section:first-of-type {
  margin-top: -20px; /* 减少负边距，避免内容被遮挡 */
  position: relative;
  z-index: 1;
  transition: margin-top 0.3s ease;
}

/* 移动端调整 */
@media (max-width: 768px) {
  body {
    padding-top: 70px; /* 移动端导航栏稍矮一些 */
  }
  
  #mainCarousel {
    margin-top: -15px; /* 移动端适度的负边距 */
  }
  
  .bg-primary.text-white.py-5 {
    margin-top: -15px; /* 移动端减少负边距 */
    padding-top: 2rem !important; /* 移动端减少顶部内边距 */
    padding-bottom: 2rem !important;
  }
  
  body > section:first-of-type {
    margin-top: -15px; /* 移动端减少负边距 */
  }
}

/* 产品规格说明样式 */
.product-specs {
  background: #f8f9fa;
  padding: 4rem 0;
}

.specs-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  border: 1px solid #e9ecef;
}

.specs-header {
  text-align: center;
  margin-bottom: 2rem;
}

.specs-title {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.specs-divider {
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  margin: 0 auto;
  border-radius: 2px;
}

.specs-content {
  text-align: center;
}

.specs-description {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .specs-card {
    padding: 2rem 1.5rem;
  }
  
  .specs-title {
    font-size: 1.6rem;
  }
  
  .specs-description {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .specs-card {
    padding: 1.5rem 1rem;
  }
  
  .specs-title {
    font-size: 1.4rem;
  }
  
  .specs-description {
    font-size: 0.95rem;
  }
}

/* 合作伙伴滚动样式 */
.partners-scroll-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.partners-scroll {
  display: flex;
  animation: scroll 20s linear infinite;
  width: calc(200% + 20px); /* 确保有足够空间进行滚动 */
}

.partner-item {
  flex: 0 0 auto;
  width: 150px;
  height: 80px;
  margin-right: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.partner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.partner-item img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-item:hover img {
  transform: scale(1.05);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 暂停滚动效果 */
.partners-scroll-container:hover .partners-scroll {
  animation-play-state: paused;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .partner-item {
    width: 120px;
    height: 60px;
    margin-right: 20px;
  }
  
  .partner-item img {
    max-width: 100px;
    max-height: 50px;
  }
}

@media (max-width: 576px) {
  .partner-item {
    width: 100px;
    height: 50px;
    margin-right: 15px;
  }
  
  .partner-item img {
    max-width: 80px;
    max-height: 40px;
  }
}

/* 面包屑导航样式 */
.custom-breadcrumb {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #dee2e6;
}

.custom-breadcrumb .breadcrumb {
  margin-bottom: 0;
  background: transparent;
  padding: 0;
}

.custom-breadcrumb .breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0 0.75rem;
}

.custom-breadcrumb .breadcrumb-link {
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.custom-breadcrumb .breadcrumb-link:hover {
  background: rgba(0, 86, 179, 0.1);
  color: #003d82;
  transform: translateY(-1px);
}

.custom-breadcrumb .breadcrumb-item.active {
  color: #6c757d;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.custom-breadcrumb .breadcrumb-item.active i {
  color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .custom-breadcrumb {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .custom-breadcrumb .breadcrumb-item {
    font-size: 0.9rem;
  }
  
  .custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    margin: 0 0.5rem;
  }
  
  .custom-breadcrumb .breadcrumb-link {
    padding: 0.2rem 0.4rem;
    gap: 0.3rem;
  }
}

@media (max-width: 576px) {
  .custom-breadcrumb {
    padding: 0.5rem 0.75rem;
  }
  
  .custom-breadcrumb .breadcrumb-item {
    font-size: 0.85rem;
  }
  
  .custom-breadcrumb .breadcrumb-item.active {
    display: none; /* 在小屏幕上隐藏当前页面标题以节省空间 */
  }
}