/* 全局链接样式 */
a {
  text-decoration: none; /* 去除链接的下划线 */
  color: inherit; /* 继承父元素的文字颜色 */
}

/* 鼠标悬停在链接上的样式 */
a:hover {
  color: #1f2a66; /* 悬停时的文字颜色 */
}

/* 已访问链接的样式 */
a:visited {
  color: #1f2a66; /* 已访问链接的文字颜色 */
}

#header {
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  background-color: #fff;
}

#top {
  width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-custom {
  height: 100%;
}

.dropdown-menu {
  display: none;
}
.navbar {
  --bs-navbar-padding-y: 0.5rem;
}
.bg-light{--bs-bg-opacity: 0;}
.nav-item {
  width: 130px;
  height: 80px;
  background-color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-item .nav-link.dropdown-toggle::after {
  display: none;
}
.navbar-nav .active,.navbar-nav .active a,.navbar-nav .active a:visited{
  background-color: #666666;
  color: #ffffff;
}

.nav-item:hover {
  background-color: #666666;
  color: #ffffff;
}

.nav-item .dropdown-menu {
  border: none;
}

.nav-item:hover .nav-link {
  color: #fff;
}

.dropdown-menu {
  background-color: #666666;
}
.navbar-nav .nav-item.dropdown {
  position: relative; /* 确保dropdown-menu相对于nav-item定位 */
}

.nav-item .dropdown-menu {
  position: absolute;
  top: 80px;
  left: 0;
  border: none;
  background-color: rgba(102, 102, 102, 0.8);
  width: 130px; /* 确保宽度为130px */
  box-shadow: 0 2px 5px rgba(0,0,0,.2);
  min-width: unset; /* 取消Bootstrap的最小宽度限制 */
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* 确保当鼠标悬停在nav-item上时，dropdown-menu显示 */
.nav-item:hover .dropdown-menu {
  display: block;
}



.nav-item .dropdown-menu .dropdown-item {
  color: white;
  height: 50px; /* 设置链接高度 */
  line-height: 50px; /* 设置行高以垂直居中文本 */
  padding: 0px; /* 水平内边距，根据需要调整 */
  text-align: center;
}

.nav-item .dropdown-menu .dropdown-item:hover {
  background-color: rgba(85, 85, 85, 0.8); /* 鼠标悬停时的背景色，同样具有透明度 */
}

/* 外部容器样式 */
.container-for-carousel {
  display: flex;
  justify-content: center; /* 使子元素居中 */
  align-items: center;
  margin-top: 90px;
}

/* 轮播图样式 */
#carouselExampleIndicators{
  width: 1200px;
}
#videoContainer{--bs-gutter-x: 0rem;}
.container-custom {
  width: 1200px;
  margin: 0 auto; /* 水平居中 */
}
.centered-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  position: relative; /* 为了使用绝对定位的子元素 */
  padding: 0 30px; /* 防止内容触碰到容器边缘 */
}

.centered-title .title-line {
  flex-grow: 1;
  position: absolute;
  top: 50%;
  border-top: 1px dotted #7E96B3; /* 应用点状虚线 */
  transform: translateY(-50%);
}

.centered-title .title-line:first-child {
  left: 0;
  right: 50%; /* 按比例分配宽度 */
  margin-right: 15px; /* 保持一些距离 */
}

.centered-title .title-line:last-child {
  right: 0;
  left: 50%; /* 按比例分配宽度 */
  margin-left: 15px; /* 保持一些距离 */
}

.centered-title .title {
  padding: 0 30px; /* 为标题提供间隙 */
  background-color: #fff; /* 覆盖线条 */
  font-size: 36px;
  font-weight: bold;
  line-height: 1.2;
  z-index: 1; /* 确保文本在线条上方 */
  position: relative;
  color: #555555;
}

.news_ad{ padding: 0 30px 0 0;}
.news_list{background-color: #f3f3f3; padding: 20px  20px 0  20px;}
.news_list ul {
  list-style-type: none;
  padding-left: 0;
}

.news_list li {
  display: flex; /* 使用Flex布局 */
  align-items: center; /* 垂直居中对齐 */
}

.news_list li a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  flex: 1; /* 让链接占据剩余空间 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
   line-height: 33px;
}

.news_list li i {
  margin-right: 10px;
  color: #1f2a66;
  font-size: 8px;
  display: inline-block; /* 将图标设置为块级元素 */
  vertical-align: middle; /* 垂直居中对齐 */
}

.custom-caption {
  background-color: rgba(0, 0, 0, 0.5); /* 黑色半透明背景 */
  width: 100%;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px; /* 添加一些内边距 */
  text-align: left; /* 标题靠左 */
}

.custom-caption p {
  margin: 0; /* 移除默认的外边距 */
  color: white; /* 设置文字颜色 */
  font-size: 16px; /* 设置文字大小 */
  white-space: nowrap; /* 不换行 */
  overflow: hidden; /* 隐藏超出部分 */
  text-overflow: ellipsis; /* 超出部分显示省略号 */
}

.carousel-control-prev {
   left: 20px; /* 控制左箭头距离左边的距离 */
 }

.carousel-control-next {
  right: 20px; /* 控制右箭头距离右边的距离 */
}


.product {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 右侧和底部阴影效果 */
}
.product img {
  width: 100%;
  height: auto;
}

.product p {
  text-align: center;
  padding: 10px;
  margin: 0;
}

.product-link {
  display: block;
  text-decoration: none;
  color: inherit; /* 保持链接颜色与父元素一致 */
}

.footer {
  background-color: #666666;
  color: white;
  padding: 20px;
  font-size: 14px;
}

.footer-links {
  text-align: center;
}

.footer-links a {
  color: white;
}

.footer-qrcode {
  text-align: center;
}

.footer-qrcode img {
  width: 100px;
}

.footer-qrcode p {
  margin-top: 10px;
  color: #ffffff;
}


.footer-friends {
  margin-top: 10px;
  text-align: center;
}


.footer-friends  a {
  color: white;
}

.footer-copyright {
  margin-top: 10px;
  text-align: center;
}
.icp-container {
  background-color: #ffffff;
  color: #666666;
  text-align: center;
  padding: 30px 0 10px 0;
}

.icp-text {
  font-size: 14px;
}
.detail_image{ margin-top: 20px;}
.detail_image img{  border-radius: 10px;}
.detail_box{margin: 20px 0 20px 0;}

.card-title{font-size: 16px;}

/* 自定义分页样式 */
.pagination-wrapper .page-item .page-link {
  color: #070616;
}
.pagination-wrapper .page-item.active .page-link {
  background-color: #070616; /* 选中项的背景颜色 */
  border-color: #070616; /* 选中项的边框颜色 */
  color: #ffffff;
}

.container-page {
  width: 1200px;
  margin: 120px auto 26px auto; /* 水平居中 */
}
.sidebar .nav{border: #666666 solid 1px;}

.sidebar .nav .nav-item {
  width: 100%;
  height: 50px;
  background-color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar .nav .nav-item .nav-link.dropdown-toggle::after {
  display: none;
}
.sidebar .nav .active{
  background-color: #666666;
  color: #fff;
}
.sidebar .nav .active  .nav-link{
  color: #fff;
}
.sidebar .nav .nav-item:hover {
  background-color: #666666;
}


.sidebar .nav .nav-item:hover .nav-link {
  color: #fff;
}

.sidebar .nav .nav-item  a{
  color: #666666;
}

.product-image {
  width: 100%;
  height: auto;
}
.active, .dot:hover {
  background-color: #717171;
}
/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}
@-webkit-keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}
@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}
.product-details {
  margin-top: 20px;
}
.product-specs {
  margin-top: 20px;
}
.spec-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}
.spec-row:nth-of-type(odd) {
  background-color: #e9ecef;
}