/* ====================== 康斯尔曼官网 自定义样式 ====================== */
/* Logo 样式 */
.navbar-brand img {
  height: 60px;
}

/* 导航栏样式 */
.navbar-dark .navbar-nav .nav-link {
  transition: all 0.3s ease;
}
.navbar-dark .navbar-nav .nav-link:hover {
  color: #ffffff !important;
  background-color: #0d6efd !important;
  border-radius: 4px;
}
.navbar-dark .navbar-nav .nav-link.active {
  background-color: #0d6efd !important;
  color: #ffffff !important;
  border-radius: 4px;
}

/* 轮播图统一样式（响应式 + 不变形） */
.carousel-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
}
.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  bottom: 1rem;
}
/* 响应式高度 */
@media (max-width: 575.98px) {
  .carousel-img {
    height: 240px;
  }
  .carousel-caption h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  .carousel-caption p {
    font-size: 0.8rem;
    line-height: 1.3;
  }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .carousel-img {
    height: 300px;
  }
}

/* 产品图片统一尺寸 */
.product-img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  padding: 10px;
}

/* 产品卡片样式 */
.album-section {
  padding-left: 12px;
  padding-right: 12px;
}
.album-card {
  height: 100%;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}
.album-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.album-card .card-title a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}
.album-card .card-title a:hover {
  color: #0d6efd;
}

/* 面包屑导航 */
.breadcrumb-custom {
  --bs-breadcrumb-divider: ">";
  background: #f8f9fa;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 0 !important;
}
.breadcrumb-custom a {
  text-decoration: none;
  color: #6c757d;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.breadcrumb-custom a:hover {
  color: #0d6efd;
}

/* 通用悬停效果 */
.hover-white:hover {
  color: #ffffff !important;
  transition: color 0.3s ease;
}
.hover-text {
  transition: all 0.3s ease;
}
.hover-text:hover {
  color: #0d6efd !important;
  transform: translateY(-2px);
}

/* 页脚 */
footer a {
  transition: color 0.3s ease;
}
footer a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

/* 轮播图修复 - 电脑端正常显示 */
.carousel-fix {
    overflow: hidden;
}
.carousel-img {
    object-fit: cover; /* 图片不变形，自动裁剪居中 */
    height: 550px;      /* 电脑端固定高度（可自己修改） */
    max-height: 70vh;   /* 防止过高 */
}

/* 手机端自动适配高度 */
@media (max-width: 768px) {
    .carousel-img {
        height: auto;
    }
}