/* ========================================
   Bootstrap 5 自定义样式
   PbootCMS 企业网站模板
   ======================================== */

/* ----------------------------------------
   自定义主色调
   ---------------------------------------- */
:root {
  --bs-primary: #288c98;
  --bs-primary-rgb: 40, 140, 152;
  --bs-link-color: #288c98;
  --bs-link-hover-color: #1f6d76;
}

.btn-primary {
  --bs-btn-bg: #288c98;
  --bs-btn-border-color: #288c98;
  --bs-btn-hover-bg: #1f6d76;
  --bs-btn-hover-border-color: #1f6d76;
  --bs-btn-active-bg: #1a5c63;
  --bs-btn-active-border-color: #1a5c63;
}

.btn-outline-primary {
  --bs-btn-color: #288c98;
  --bs-btn-border-color: #288c98;
  --bs-btn-hover-bg: #288c98;
  --bs-btn-hover-border-color: #288c98;
  --bs-btn-active-bg: #1f6d76;
  --bs-btn-active-border-color: #1f6d76;
}

.text-primary {
  color: #288c98 !important;
}

.bg-primary {
  background-color: #288c98 !important;
}

.bg-primary.bg-opacity-10 {
  background-color: rgba(40, 140, 152, 0.1) !important;
}

a {
  color: #288c98;
}
a:hover {
  color: #1f6d76;
}

/* ----------------------------------------
   通用样式
   ---------------------------------------- */

/* 通用标题样式 */
.section-title {
  position: relative;
  padding-bottom: 1rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--bs-primary);
  border-radius: 2px;
}

/* 文本截断 - 2行 */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 文本截断 - 3行 */
.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----------------------------------------
   Banner 轮播
   ---------------------------------------- */
.hero-carousel .carousel-item img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
}
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  opacity: 1;
}
.hero-carousel .carousel-control-prev {
  left: 30px;
}
.hero-carousel .carousel-control-next {
  right: 30px;
}
.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  background: var(--bs-primary);
}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  filter: invert(1) grayscale(100);
}
.hero-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-carousel .carousel-control-next:hover .carousel-control-next-icon {
  filter: none;
}
.hero-carousel .carousel-indicators {
  margin-bottom: 1.5rem;
}
.hero-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50% !important;
  margin: 0 6px;
  opacity: 0.5;
  border: 2px solid #fff;
  background-color: transparent;
}
.hero-carousel .carousel-indicators button.active {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  opacity: 1;
}

/* 导航间距 */
.navbar-nav .nav-item {
  margin: 0 8px;
}
.navbar-nav .nav-link {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* ----------------------------------------
   产品卡片
   ---------------------------------------- */
.product-card {
  border: none;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.15) !important;
}
.product-card .card-img-wrapper {
  overflow: hidden;
  position: relative;
}
.product-card .card-img-top {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #fff;
  transition: transform 0.4s ease;
}
.product-card .card-title {
  text-align: center;
}
.product-card:hover .card-img-top {
  transform: scale(1.05);
}
.product-card .card-img-overlay-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: var(--bs-primary);
  color: #fff;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
  text-decoration: none;
}
.product-card:hover .card-img-overlay-btn {
  opacity: 1;
  transform: translateY(0);
}
.product-card .card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.product-card:hover .card-title a {
  color: var(--bs-primary);
}

/* ----------------------------------------
   分类展示
   ---------------------------------------- */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}
.category-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.6);
}
.category-card:hover img {
  transform: scale(1.1);
  filter: brightness(0.5);
}
.category-card .category-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}
.category-card .category-content h4 {
  transition: transform 0.3s ease;
}
.category-card:hover .category-content h4 {
  transform: translateY(-10px);
}
.category-card .category-content .btn {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.category-card:hover .category-content .btn {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------
   优势卡片
   ---------------------------------------- */
.advantage-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bs-light);
  border-radius: 1rem;
  transition: all 0.3s ease;
  height: 100%;
}
.advantage-card:hover {
  background: #fff;
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.1);
  transform: translateY(-5px);
}
.advantage-card .advantage-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}
.advantage-card:hover .advantage-icon {
  transform: scale(1.1);
}
.advantage-card .advantage-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #288c98 0%, #1f6d76 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.advantage-card .advantage-icon-wrapper i {
  font-size: 2rem;
  color: #fff;
}
.advantage-card:hover .advantage-icon-wrapper {
  transform: scale(1.1);
  box-shadow: 0 0.5rem 1.5rem rgba(40, 140, 152, 0.4);
}

/* ----------------------------------------
   关于我们
   ---------------------------------------- */
.about-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
}
.about-section .about-content {
  padding: 4rem 3rem;
}
.about-section .feature-list .feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.about-section .feature-list .feature-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--bs-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}
.about-section .feature-list .feature-icon i {
  font-size: 0.75rem;
}
.about-section .about-image {
  height: 100%;
  min-height: 400px;
}
.about-section .about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------------------------------------
   统计数据
   ---------------------------------------- */
.stat-card {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
}
.stat-card .stat-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: rgba(var(--bs-primary-rgb), 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}
.stat-card .stat-icon img {
  width: 28px;
  height: 28px;
}
.stat-card .stat-icon-wrapper {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: linear-gradient(135deg, #288c98 0%, #1f6d76 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}
.stat-card .stat-icon-wrapper i {
  font-size: 1.5rem;
  color: #fff;
}

/* ----------------------------------------
   新闻卡片
   ---------------------------------------- */
.news-card {
  border: none;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.12) !important;
}
.news-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
}
.news-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .card-img-top {
  transform: scale(1.05);
}
.news-card .news-date {
  position: absolute;
  top: 15px;
  left: 15px;
}
.news-card .card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.news-card:hover .card-title a {
  color: var(--bs-primary);
}
.news-card .read-more {
  text-decoration: none;
  transition: color 0.2s;
}
.news-card .read-more i {
  transition: transform 0.2s;
}
.news-card:hover .read-more {
  color: var(--bs-primary) !important;
}
.news-card:hover .read-more i {
  transform: translateX(4px);
}

/* ----------------------------------------
   内页 Banner
   ---------------------------------------- */
.page-banner {
  position: relative;
  overflow: hidden;
}
.page-banner img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.page-banner .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.page-banner .banner-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.page-banner .banner-subtitle {
  font-size: 1rem;
  opacity: 0.8;
}

/* ----------------------------------------
   面包屑导航
   ---------------------------------------- */
.breadcrumb-wrapper {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.breadcrumb-wrapper .breadcrumb {
  margin-bottom: 0;
  padding: 1rem 0;
  background: transparent;
  font-size: 0.9rem;
}
.breadcrumb-wrapper .breadcrumb-item {
  display: flex;
  align-items: center;
}
.breadcrumb-wrapper .breadcrumb-item + .breadcrumb-item::before {
  content: "\f285";
  font-family: "bootstrap-icons";
  font-size: 0.65rem;
  color: #adb5bd;
  padding: 0 0.4rem;
}
.breadcrumb-wrapper .breadcrumb-item a {
  color: #495057;
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.breadcrumb-wrapper .breadcrumb-item a:hover {
  color: var(--bs-primary);
}
.breadcrumb-wrapper .breadcrumb-item a i {
  font-size: 1rem;
}
.breadcrumb-wrapper .breadcrumb-item.active {
  color: var(--bs-primary);
  font-weight: 500;
}

/* ----------------------------------------
   侧边栏
   ---------------------------------------- */
.sidebar .sidebar-widget {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}
.sidebar .widget-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bs-primary);
}
.sidebar .category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar .category-list li {
  border-bottom: 1px solid #f0f0f0;
}
.sidebar .category-list li:last-child {
  border-bottom: none;
}
.sidebar .category-list li a {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
}
.sidebar .category-list li a:hover {
  color: var(--bs-primary);
  padding-left: 0.5rem;
}
.sidebar .category-list li a i {
  margin-right: 0.5rem;
  font-size: 0.75rem;
}
.sidebar .sub-category {
  list-style: none;
  padding-left: 1.25rem;
  margin: 0;
}
.sidebar .sub-category li a {
  font-size: 0.9rem;
  padding: 0.4rem 0;
}

/* 侧边栏产品列表 */
.sidebar .side-product-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.sidebar .side-product-item:last-child {
  border-bottom: none;
}
.sidebar .side-product-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 0.5rem;
}
.sidebar .side-product-item .product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sidebar .side-product-item .product-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar .side-product-item .product-name:hover {
  color: var(--bs-primary);
}
.sidebar .side-product-item .read-more {
  font-size: 0.8rem;
  color: var(--bs-primary);
  text-decoration: none;
}

/* ----------------------------------------
   内容详情页
   ---------------------------------------- */
.content-detail .content-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}
.content-detail .content-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.content-detail .content-meta span {
  margin-right: 1.5rem;
  color: #6c757d;
  font-size: 0.9rem;
}
.content-detail .content-meta i {
  margin-right: 0.25rem;
}
.content-detail .content-body {
  line-height: 1.8;
}
.content-detail .content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

/* 上下篇导航 */
.prev-next-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}
.prev-next-nav .nav-item {
  flex: 1;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  transition: all 0.2s;
}
.prev-next-nav .nav-item:hover {
  background: #e9ecef;
}
.prev-next-nav .nav-item.next {
  text-align: right;
}
.prev-next-nav .nav-label {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}
.prev-next-nav .nav-title a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}
.prev-next-nav .nav-title a:hover {
  color: var(--bs-primary);
}

/* ----------------------------------------
   分页组件
   ---------------------------------------- */
.pagination-wrapper {
  margin-top: 2rem;
}
.pagination-wrapper .pagination {
  justify-content: center;
}
.pagination-wrapper .page-link {
  border-radius: 0.375rem;
  margin: 0 0.15rem;
  border: none;
  color: #333;
  background: #f8f9fa;
}
.pagination-wrapper .page-link:hover {
  background: var(--bs-primary);
  color: #fff;
}
.pagination-wrapper .page-item.active .page-link {
  background: var(--bs-primary);
  color: #fff;
}

/* ----------------------------------------
   FAQ 手风琴
   ---------------------------------------- */
.faq-accordion .accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 0.5rem !important;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}
.faq-accordion .accordion-button {
  font-weight: 600;
  background: #fff;
  box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--bs-primary);
  color: #fff;
}
.faq-accordion .accordion-button:focus {
  box-shadow: none;
}
.faq-accordion .accordion-body {
  background: #f8f9fa;
}

/* ----------------------------------------
   联系表单
   ---------------------------------------- */
.contact-form .form-control {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
}
.contact-form .form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15);
}
.contact-form textarea.form-control {
  min-height: 150px;
}
.contact-form .btn-submit {
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ----------------------------------------
   产品详情页
   ---------------------------------------- */
.product-gallery {
  position: relative;
}
.product-gallery .main-image {
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
}
.product-gallery .main-image img {
  width: 100%;
  height: auto;
}
.product-gallery .thumb-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.product-gallery .thumb-item {
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.product-gallery .thumb-item:hover,
.product-gallery .thumb-item.active {
  border-color: var(--bs-primary);
}
.product-gallery .thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-box .product-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.product-info-box .product-specs {
  margin-bottom: 1.5rem;
}
.product-info-box .spec-item {
  display: flex;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.product-info-box .spec-label {
  /*width: 120px;*/
  font-weight: 500;
  color: #666;
}
.product-info-box .spec-value {
  flex: 1;
    /* 限制最大4行 */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  
  /* 左右对齐（两端对齐） */
  text-align: justify;
  text-justify: inter-ideograph; /* 针对中文优化 */
  
  /* 可选：防止长单词溢出 */
  word-break: break-word;
  line-height: 1.6;
}
.product-info-box .action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.product-info-box .action-buttons .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

/* ----------------------------------------
   响应式调整
   ---------------------------------------- */
@media (max-width: 991.98px) {
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    width: 45px;
    height: 45px;
  }
  .hero-carousel .carousel-control-prev {
    left: 15px;
  }
  .hero-carousel .carousel-control-next {
    right: 15px;
  }
  .about-section .about-content {
    padding: 3rem 2rem;
  }
  .about-section .about-image {
    min-height: 300px;
  }
}
@media (max-width: 767.98px) {
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    display: none;
  }
  .category-card img {
    height: 200px;
  }
  /* 移动端底部导航占位 */
  body {
    padding-bottom: 70px;
  }
}

.content-body h3{font-size:1.25rem;font-weight:bold;}