:root {
  --primary-light: #1a73e8; /* 主题蓝色 */
  --sub-light:#0056b3; /* 深蓝色 */
}

/* 基础样式 */
.sub-light{
  color: var(--sub-light);
}
.navbar{
  box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
}
.navbar .navbar-nav .nav-link {
  position: relative;
  font-weight: 500;
  color: #333;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

/* hover / active 文字 */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary-light) !important;
}

/* 下划线统一用 ::before，避免和箭头冲突 */
.navbar .navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 16px;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: width 0.3s ease;
}
.navbar .navbar-nav .nav-link:hover::before,
.navbar .navbar-nav .nav-link.active::before {
  width: 66px;
}

/* 去掉 bootstrap 自带箭头 */
.navbar .dropdown-toggle::after {
  content: none !important;
}

/* 自定义箭头（HTML 里加 <span class="arrow">） */
.navbar .navbar-nav .dropdown-toggle .arrow {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}
/* 默认是 > */
.navbar .navbar-nav .dropdown-toggle .arrow::before {
  content: "›";
}
/* hover 时旋转 90° = ∨ */
.navbar .navbar-nav .dropdown-toggle:hover .arrow {
  transform: rotate(90deg);
}

/* 子菜单样式 */
.navbar .dropdown-menu {
  /* background: #000; 
  border: none;
  border-radius: 0;
  padding: 0;*/
  background: rgba(17,24,39,0.95);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  min-width: 12rem;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: var(--transition);
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  min-width: 200px;
}
.navbar .dropdown-menu .dropdown-item {
  color: #fff;
  font-size: 0.95rem;
  padding: 0.7rem 1.2rem;
  /* border-bottom: 1px solid rgba(255,255,255,0.15); */
  transition: all 0.2s ease;
}
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  background: var(--primary-light);
  color: #fff;
}

/* 默认所有子项加下划线 */
.navbar .dropdown-menu li {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* 最后一项 li 去掉下划线 */
.navbar .dropdown-menu li:last-child {
  border-bottom: none;
}

/* 链接样式 */
.navbar .dropdown-menu .dropdown-item {
  color: #fff;
  font-size: 0.95rem;
  padding: 0.7rem 1.2rem;
  transition: all 0.2s ease;
}

/* hover 高亮 */
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  background: var(--primary-light);
  color: #fff;
}

/* PC端：hover 展开 */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* 移动端 */
@media (max-width: 991.98px) {
  .navbar .dropdown-menu {
    background: #111;
  }
  .navbar .dropdown-menu .dropdown-item {
    padding-left: 2rem;
  }
}


/* 轮播图 */
.carousel-item {
  height: 600px;
}
.carousel-caption {
  bottom: 20%;
}
.carousel-caption h1 {
  font-size: 2.5rem;
  font-weight: bold;
}
.carousel-caption p {
  font-size: 1.1rem;
}

/* 产品中心板块 */
.products {
  width: 100%;
  padding: 100px 40px;
  background: #f9fafb;
  box-sizing: border-box;
}

/* 标题样式（可按需微调） */
.products .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: #111827;
}
.products .section-subtitle {
  color: #6b7280;
  margin-bottom: 2.5rem;
}

/* 卡片容器（使用自定义而非 bootstrap .card） */
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06); /* 原站阴影风格 */
}

/* hover 提升 + 阴影加强 */
.product-page .card:hover,
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* 图片容器：保持比例一致 */
.img-box {
  position: relative;
  width: 100%;
  background: #f3f4f6;
  overflow: hidden;
}
.img-box::before {
  content: "";
  display: block;
  padding-top: 75%; /* 4:3 ratio */
}
.img-box img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

/* 图片 hover 微放大 */
.product-page .card:hover img,
.product-card:hover .img-box img {
  transform: scale(1.05);
}

/* 产品标题 */
.product-title {
  padding: 12px 10px 10px;
  font-size: 0.95rem;
  color: #374151;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* 标题 hover 效果（变色 + 轻微上移） */
.product-page .card:hover .card-title,
.product-card:hover .product-title {
  color: var(--primary-light);
  transform: translateY(-3px);
}

/* 调整 grid 间距（可选） */
.product-grid {
  /* gap: 25px; */
}


/* 为什么选择精德 */
section.bg-dark,
section[style*="bg-workshop"] {
  background-attachment: fixed;
}
section.bg-dark .col p,
section[style*="bg-workshop"] .col p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* 关于我们 */
/* #about img,
section img.img-fluid {
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
#about h2,
section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
} */
/* ===== 关于我们模块 ===== */
.about {
  background: #fff;
  overflow: hidden;
  position: relative;
  /* padding: 100px 20px !important;  */
  background-color: #fff;
  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 8px 8px;
  background-repeat: repeat;
  background-position: top left;

}

/* 背景网格效果 */


/* 标题样式 */
.news .section-title,
.about .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  /* border-left: 5px solid var(--primary-light); */
  /* padding-left: 12px; */
  position: relative;
  z-index: 1;
}
.news .section-title::after, .about .section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}
.news .section-title::after{
  left: 45%;
}
.news p, .about-desc{
  font-size: 1rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 16px;
}
.about-slogan {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-light);
    margin: 20px 0 25px;
}



/* 图片 hover 动效 */
.about-img img {
  border-radius: 16px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  z-index: 1;
  position: relative;
}
.about-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* 按钮 hover */
.about .btn {
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
.about .btn:hover {
  background: #0c56d0;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(26,115,232,0.3);
}

/* 移动端优化 */
@media (max-width: 991.98px) {
  .about .section-title {
    text-align: center;
    border-left: none;
    padding-left: 0;
  }
  .about-text {
    text-align: center;
    padding-left: 0 !important;
  }
  .about .btn {
    margin-top: 1rem;
  }
}

/* 新闻资讯板块 */
.card-text {
  font-size: 0.9rem;
  color: #666;
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* ===== 新闻资讯卡片 ===== */
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* 图片裁剪 + hover 放大 */
.news-img {
  position: relative;
  overflow: hidden;
  height: 200px; /* 控制高度，避免图片太大 */
}
.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* 自动裁剪填充 */
  transition: transform 0.5s ease;
}
.news-card:hover .news-img img {
  transform: scale(1.08);
}

/* 内容部分 */
.news-body {
  padding: 1rem;
}
.news-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}
.news-card:hover .news-title {
  color: var(--primary-light);
  transform: translateY(-3px);
}
.news .news-body .news-date {
  font-size: 0.85rem !important;
  color: #6b7280!important;
  line-height: normal;
  margin-bottom: 0.0rem;
}

/* ================================
   产品中心页面专用样式
   ================================ */
.page-banner {
  background: url('../img/product-list-banner.jpg') center/cover;
  height: 280px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  position:relative;
  /* margin-bottom: 30px; */
}
.product-banner::after {
  content: '';
  position:absolute; inset:0;
  background: rgba(0,0,0,0.30);
}
.product-banner .banner-text { position:relative; z-index:1; text-align:center; }
.product-banner h1 { font-size:2rem; margin:0; }

/* 左侧导航 */
/* Sidebar 样式（桌面端固定在视口内） */
.sidebar {
  position: sticky;
  top: 90px;              /* 距离页面顶部的间距，可根据导航栏高度微调 */
  align-self: flex-start; /* 保证 sticky 在 flex 容器里正常生效 */
}
.sidebar .card {
  border-radius: 8px;
  overflow: hidden;
}
.sidebar .card-header {
  font-size: 18px;
}
.sidebar .list-group-item {
  border: none;
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.sidebar .list-group-item a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}
.sidebar .list-group-item:hover {
  background-color: #0d6efd;
}

.sidebar .list-group-item.active {
  background-color: #0d6efd;
  border: none;
}
.sidebar .list-group-item:hover a,
.sidebar .list-group-item.active a {
  color: #fff !important;
}
.sidebar .list-group-item:last-child {
  border-bottom: none; /* 最后一个 li 去掉分隔线 */
}


/* 热线卡片美化 */
.hotline-card svg {
  vertical-align: middle;
}
.hotline-card p {
  font-weight: 600;
}

/* 移动端横向导航 */
.mobile-nav-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* iOS 惯性滑动 */
  white-space: nowrap;
  border-bottom: 1px solid #eee;
}

.mobile-nav {
  padding: 8px 0;
}

.mobile-nav .nav-item {
  flex: 0 0 auto;
  margin-right: 12px;
}

.mobile-nav .nav-item a {
  display: inline-block;
  padding: 6px 14px;
  background: #f8f9fa;
  border-radius: 20px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.mobile-nav .nav-item.active a,
.mobile-nav .nav-item a:hover {
  background: #0d6efd;
  color: #fff !important;
}



/* 产品卡片 */
.news-page .news-article,
.news-page .card,
.product-detail-page .card,
.product-page .card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-page .card:hover {
  transform: translateY(-4px);
  /* box-shadow: 0 6px 15px rgba(0,0,0,0.1); */
   /* box-shadow: 0 10px 25px rgba(0,0,0,0.15)!important; */
   box-shadow: 0 6px 15px rgba(0,0,0,0.1)!important;
}
.product-page .card.no-transform:hover {
  transform: none;
  box-shadow:none;
}
.product-page .card img {
  object-fit: cover;
  height: 200px;
  transition: transform 0.35s ease;
}
.product-page .card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.product-page .card-text {
  font-size: 14px;
  color: #666;
}

/* 产品卡片小标签（可选） */
.product-page .card .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0d6efd;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 6px;
}
.pagination a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
}
.pagination a.active,
.pagination a:hover {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

/* 产品导航整体 */
/* 产品导航优化 */
.product-nav .accordion-button {
  font-weight: 600;
  font-size: 16px;
  background-color: #f8f9fa;
}

.product-nav ul li {
  line-height: 1.8;
}

.product-nav ul li strong {
  color: #333;
}

.product-nav a {
  color: #0d6efd;
  text-decoration: none;
}
.product-nav a:hover {
  text-decoration: underline;
}

/* 移除 accordion 点击时的丑蓝边框 */
.product-nav .accordion-button:focus {
  box-shadow: none !important;
  border-color: #dee2e6 !important; 
  /* outline: none !important;
  border-color: #dee2e6 !important;
  box-shadow: 0 0 6px 2px rgba(108, 117, 125, 0.35) !important; */
}

/* 美化展开状态 */
/* .product-nav .accordion-button:not(.collapsed) {
  background-color: #0d6efd;
  color: #fff;
} */
 .product-nav .accordion-button:not(.collapsed) {
  background-color: #f8f9fa; /* 浅灰背景 */
  color: #333;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}




/* 移动端去掉 sticky */
@media (max-width: 991px) {
  .sidebar {
    position: static !important;
    top: auto !important;
  }
}



/* 响应式优化 */
@media (max-width: 991px) {
  .sidebar {
    margin-bottom: 2rem;
  }
  .product-page .card img {
    height: 160px;
  }
}
@media (max-width: 575px) {
  .product-page .card img {
    height: 140px;
  }
  .product-page .card-title {
    font-size: 15px;
  }
}

/* 移动端优化：缩小图片 */
@media (max-width: 576px) {
  .news-img {
    height: 160px; /* 手机端图片更小 */
  }
}

/* ===============================
   产品详情页样式
   =============================== */

.product-detail-page .carousel-item {
  height: auto;
}

.product-detail h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #333;
}

.product-detail .sub {
  font-size: 1rem;
  color: #666;
}

.product-detail .info-list li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #444;
}

.product-detail .action-btns .btn {
  min-width: 140px;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
}

/* 轮播主图 */
.product-detail .main-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 缩略图 */
.product-detail .thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.product-detail .thumbs img:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
#productCarousel .carousel-indicators [data-bs-target] {
  border-top: 2px;
  border-bottom: 2px; 
  /* border-top: 0px solid transparent;
  border-bottom: 0px solid transparent; */
  margin: 0 4px; /* 缩略图/小点之间的水平间距 */
  background-clip: unset !important; /* 避免缩略图变形 */
}
/* 描述区块 */
.product-detail .detail-section {
  /* border: 1px solid #eee;
  border-radius: 8px;
  background: #fff; */
}
.product-detail .detail-section h3::after {
    content: "";
    display: block;
    background: var(--primary-light);
    width: 75px;
    height: 4px;
    position: absolute;
    bottom: -2px;
    left: 0;
    z-index: 1;
}

/* 图文展示区 */
.product-detail .detail-gallery img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* 产品详情整体卡片样式 */
.product-detail {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 移除悬停上移效果 */
.product-detail:hover {
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* 产品轮播图片固定为正方形 */
.product-img {
  aspect-ratio: 1 / 1;   /* 保持正方形比例 */
  object-fit: contain;   /* 保证产品完整显示 */
  background: #f8f9fa;   /* 背景浅灰色，避免留白 */
  border-radius: 6px;
  /* border:1px solid #777; */
}

/* 产品右侧信息优化 */
.detail-info h1 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.detail-info h4 {
    font-size: 1rem;
    font-weight: bold;
    color: orange;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}
.detail-info p {
  margin-bottom: 0.35rem;
  /* font-size: 14px; */
}
.detail-info .sub {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 15px;
}

.detail-info .info-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.detail-info .info-list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.action-btns .btn {
  margin-right: 10px;
}


/* 移动端优化 */
@media (max-width: 767.98px) {
  .product-detail .detail-top {
    flex-direction: column;
  }
  .product-detail .gallery,
  .product-detail .detail-info {
    max-width: 100%;
  }
  .product-detail .thumbs img {
    width: 60px;
    height: 60px;
  }
  .product-detail .action-btns {
    flex-direction: column;
  }
  .product-detail .action-btns .btn {
    width: 100%;
    margin-bottom: 0.75rem;
  }
}

/* ===============================
   产品详情页 - Carousel 样式优化
   =============================== */

/* 缩略图导航 */
#productCarousel .carousel-indicators img {
  cursor: pointer;
  border-radius: 4px;
  object-fit: cover;
  transition: all 0.3s ease;
}
#productCarousel .carousel-indicators img.active {
  /* border: 2px solid var(--primary-light); */
  /* transform: scale(1.05); */
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
#productCarousel .carousel-indicators img:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* 控制按钮位置 */
#productCarousel .carousel-control-prev,
#productCarousel .carousel-control-next {
  width: 10%;
}

/* 移动端缩略图优化 */
@media (max-width: 767.98px) {
  #productCarousel .carousel-indicators img {
    width: 55px;
    height: 55px;
  }
  .product-detail .detail-info h2 {
    text-align: center;
  }
}



/* ===============================
   关于我们页面 
   =============================== */

.contact-info-box h2,
.contact-intro h2, 
.about-intro h2 {
    font-size: 22px;
    margin: 20px 0;
    /* margin-bottom: 20px; */
    border-left: 5px solid #1e90ff;
    padding-left: 10px;
    color: #333;
    line-height: 1.6;
}


.contact-cards, .about-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
    flex-shrink: 0;
    /* position: sticky; */
    top: 100px;
    align-self: flex-start;
}

/* .about-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;

  align-self: flex-start;
  max-width: 360px;          
  margin: 0; 
  box-sizing: border-box;
} */

/* 单张卡片样式 */

.contact-card, .about-card {
    background: #f9fafc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
      /* transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  cursor: default;
  overflow: hidden; */
}

/* 标题左侧竖条（渐变） */

.contact-card h3, .about-card h3 {
    font-weight: bold;
    line-height: 1.6;
    font-size: 18px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 12px;
}
.contact-card h3::before, .about-card h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(to bottom, #1e90ff, #6cb8ff);
}

/* .about-card h3 {
  font-size: 18px;
  margin: 0 0 10px 12px;
  padding-left: 6px; 
  position: relative;
  color: #111827;
  line-height: 1.2;
}
.about-card h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #1e90ff 0%, #6cb8ff 100%);
} */

/* 正文 */
.about-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.7;
  font-size: 14px;
}
/* .contact-card:hover, .about-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-3px);
} */

/* Hover / Focus 效果（鼠标移入时抬起 + 阴影加强） */
.contact-card:hover,
.about-card:hover,
.about-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(15,23,42,0.12);
  /* border-color: rgba(26,115,232,0.14); */
}

/* 可选：为键盘用户提供可聚焦状态（无 JS 时也能看到效果） */
.about-card a,
.about-card button {
  outline: none;
}
.about-card:focus-within {
  box-shadow: 0 18px 36px rgba(26,115,232,0.10);
}

/* --- sticky 行为：仅在桌面（宽屏）启用 --- */
@media (min-width: 992px) {
  .about-cards {
    position: sticky;
    top: 100px; /* 根据你的头部高度调整（90-120px 之间常用） */
  }
}

/* 移动端降级（禁用 sticky，卡片间距与内边距微调） */
@media (max-width: 991.98px) {
  .about-cards {
    position: static;
    max-width: 100%;
    margin-bottom: 1.25rem;
  }
  .about-card {
    border-radius: 10px;
    padding: 14px;
  }
  .about-card h3 {
    margin-left: 0;
  }
  .about-card h3::before {
    left: 6px; /* 避免遮挡标题 */
  }
}


/* ===============================
   联系我们页面 contact-page
   =============================== */


/* --- 右侧信息区 --- */
.contact-info-box h3 {
  font-size: 20px;
  color: #1e73be;
}
.contact-info-box p {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 18px;
}
.contact-info-box .form-control {
  border-radius: 6px;
  box-shadow: none;
  border-color: #ddd;
  transition: all 0.3s ease;
}
.contact-info-box .form-control:focus {
  border-color: var(--primary-light, #1e90ff);
  box-shadow: 0 0 0 0.15rem rgba(30,144,255,0.25);
}
.contact-info-box .btn {
  border-radius: 8px;
  transition: all 0.3s ease;
}
.contact-info-box .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(30,144,255,0.3);
}

/* ============ 页面通用样式 ============ */


/* 侧边栏 */
.sidebar-card ul li {
  margin-bottom: 0.75rem;
}
.sidebar-card ul li a {
  display: block;
  padding: 6px 0;
  color: #333;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.3s;
}
.sidebar-card ul li a.active,
.sidebar-card ul li a:hover {
  color: #0d6efd;
  border-left-color: #0d6efd;
  padding-left: 6px;
}

/* ===== 新闻卡片 ===== */
.news-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s ease,transform 0.35s ease;;
}
.news-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* 保证裁剪但不变形 */
  object-position: center;/* 始终居中显示 */
  transition: transform .4s ease;
}
.news-card:hover img {
  transform: scale(1.05);
}
.news-card .card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f8f8f8;
}

/* ===== 卡片文字部分 ===== */
.news-card .card-title a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease;
}
.news-card .card-title a:hover {
  color: #1a4e8a;
}
.news-card .card-text {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== 按钮样式（保持原页面蓝色风格） ===== */
.btn-more {
  display: inline-block;
  padding: 5px 12px;
  background: #1a4e8a;
  color: #fff;
  font-size: 13px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn-more:hover {
  background: #0d2a52;
  color: #fff;
}

/* ===== 分页 ===== */
.pagination .page-link {
  color: #1a4e8a;
}
.pagination .page-item.active .page-link {
  background-color: #1a4e8a;
  border-color: #1a4e8a;
  color: #fff;
}

/* 响应式优化 */
@media (max-width: 992px) {
  .sidebar-card {
    position: static !important;
    margin-bottom: 1.5rem;
  }
}
@media (max-width: 576px) {
  .page-banner {
    height: 180px;
  }
  .news-card .card-media,
  .news-card img {
    height: 160px;
  }
  .news-card .card-body {
    padding: 0.75rem 1rem;
  }
}

/* 面包屑导航 */
.news-breadcrumb {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 10px 15px;
  font-size: 14px;
  color: #555;
  border-radius: 6px;
}
.news-breadcrumb .text-primary {
  font-size: 14px;
}
/* 新闻正文 */
.news-article .article-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #222;
    position: relative;
}

.news-article .article-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #ddd;
    margin-top: 10px;
}
.news-article .article-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}
.news-article p {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}
.news-article img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* 上下篇导航 */
.news-prevnext a {
  color: #1a4e8a;
  transition: color 0.3s;
}
.news-prevnext a:hover {
  color: #0d2a52;
}

/* ===== 推荐阅读板块 ===== */
.news-recommend h4 {
  color: #333;
}

.news-recommend .news-card {
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.news-recommend .news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.news-recommend .card-media {
  height: 180px;
  overflow: hidden;
  background: #f0f0f0;
}

.news-recommend .card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-recommend .news-card:hover .card-media img {
  transform: scale(1.06);
}

.news-recommend .card-title a {
  font-size: 15px;
  color: #333;
  transition: color 0.3s;
}

.news-recommend .card-title a:hover {
  color: #1a4e8a;
}




/* 响应式优化 */
@media (max-width: 575.98px) {
  .news-recommend .card-media {
    height: 140px;}
  .news-recommend .card-media img {
    height: 140px;
  }
}

.jgdz-page {
  /* padding: 40px 0; */
  background: #f9f9f9;
}
.jgdz-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  /* padding: 0 15px; */
}
.jgdz-container picture {
  display: block;
  /* margin-bottom: 30px; */
}
.jgdz-container img {
  width: 100%;
  height: auto;
  /* border-radius: 6px; */
  display: block;
}



/* 页脚 */
.footer {
  font-size: 0.95rem;
  color: #bbb;
  /* color: #d1d5db; */
}
.footer a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: var(--primary-light);
}



/* 响应式优化 */
@media (max-width: 991.98px) {
  .carousel-item {
    height: 400px;
  }
  .carousel-caption h1 {
    font-size: 1.8rem;
  }
  .carousel-caption p {
    font-size: 0.95rem;
  }
  .products { padding: 60px 24px; }
  .product-title { font-size: 0.95rem; }
/* 联系我们 */
  .contact-cards {
    position: static;
    margin-bottom: 2rem;
  }
  .contact-card {
    padding: 16px;
  }
  .page-banner {
    height: 220px;
  }
  .page-banner h1 {
    font-size: 26px;
  }
  .contact-info-box {
    padding: 1.25rem;
  }
}

@media (max-width: 575.98px) {

  .carousel-item {
    height: 280px;
  }
  .carousel-caption {
    bottom: 10%;
    padding: 0.5rem;
  }
  .carousel-caption h1 {
    font-size: 1.3rem;
  }
  .carousel-caption p {
    font-size: 0.85rem;
  }
  .navbar .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
  }
  .products { padding: 40px 0px; }
  .product-title { font-size: 0.9rem; }
  .img-box::before { padding-top: 78%; } /* 微调手机比例 */

  .contact-info-box h2,.contact-intro h2, .about-intro h2 {
    font-size: 22px;
    margin: 20px 0;
    background-color: #21252908;
    /* margin-bottom: 20px; */
    /* border-left: 5px solid #1e90ff;
    border-right: 5px solid #1e90ff;
    border-bottom: 1px solid #1e90ff; */
    text-align: center;
  }

}

/* =========================
   PC 导航自定义样式
   ========================= */
@media (min-width: 992px) {
  /* 下划线特效 */
  .navbar .navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
  }
  .navbar .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 16px;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
  }
  .navbar .navbar-nav .nav-link:hover::after,
  .navbar .navbar-nav .nav-link.active::after {
    width: calc(100% - 32px);
  }

  /* 下拉菜单（PC） */
  .navbar .dropdown-menu {
    background: #000;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: 180px;
  }
  .navbar .dropdown-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .navbar .dropdown-menu li:last-child {
    border-bottom: none;
  }
  .navbar .dropdown-menu .dropdown-item {
    color: #fff;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }
  .navbar .dropdown-menu .dropdown-item:hover {
    background: rgba(26,115,232,0.1);
    color: var(--primary-light);
  }
}

/* =========================
   手机端恢复默认样式
   ========================= */
@media (max-width: 991.98px) {
  /* 禁用 nav-link 下划线 */
  .navbar .navbar-nav .nav-link::after {
    display: none !important;
  }

  /* 子菜单：使用 Bootstrap 默认样式 */
  .navbar .dropdown-menu {
    background: #fff;
    border: 1px solid rgba(0,0,0,.15);
  }
  .navbar .dropdown-menu .dropdown-item {
    color: #212529;
  }
  .navbar .dropdown-menu .dropdown-item:hover {
    background: #f8f9fa;
    color: #000;
  }
  .navbar .navbar-nav .nav-link:hover::before, .navbar .navbar-nav .nav-link.active::before {
    width: 6px; 
    height: 18px;
  }
  .navbar .navbar-nav .nav-link::before {
      content: "";
      position: absolute;
      bottom: 10px;
      left: 0px;
      width: 6px;
      height: 0;
      background: var(--primary-light);
      transition: all 0.3s ease;
  }
  .navbar .navbar-nav li {
    border-bottom: 1px solid #eee;
  }
  .navbar .navbar-nav li:last-child{
    border: none;
  }
  .about .section-title,
  .products .section-title {
    font-size: calc(1.325rem + .9vw);
  }
  .news .section-title::after, .about .section-title::after {
      content: "";
      position: absolute;
      left: 25%;
      bottom: -10px;
      width: 50%;
  }
  .about-slogan{
    text-align: center;
  }
}
