/* ============================================================
   common.css - 龙凯机械 全局自定义样式
   原则：优先使用 Bootstrap 内置类，仅在此文件编写
   Bootstrap 无法覆盖的个性化/公共样式需求
   ============================================================ */
@media (max-width: 768px) {
  html{
    font-size: 12px;
  }
}
/* ============================================================
   一、基础重置与全局
   ============================================================ */
body {
  font-size: 1rem;
  line-height: 1.7;
  background: #fff;
  color: #2b2b2b;
  font-family: "Noto Sans SC", "Microsoft YaHei", "noto sans", sans-serif;
  max-width: 1920px;
  margin: 0 auto;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: #2b2b2b;
  -webkit-tap-highlight-color: transparent;
}
p {
  margin-bottom: 0;
}

/* ============================================================
   一-B、标题元素响应式字号
   桌面端保持 Bootstrap 默认，移动端单独缩小
   ============================================================ */
@media (max-width: 767.98px) {
  h2, .h2 {
    font-size: 1.5rem !important;
  }
  h3, .h3 {
    font-size: 1.25rem !important;
  }
  h5, .h5 {
    font-size: 1.15rem !important;
  }
}

/* ============================================================
   二、品牌色与背景色
   ============================================================ */
.text-blue-cc { color: #000e95; }
.text-blue-800 { color: #1e40af; }
.bg-blue-cc { background-color: #000e95; }
.bg-dark-bg { background-color: #0c192b; }
.bg-blue-800 { background-color: #1e40af; }
.bg-amber-400 { background-color: #fbbf24; }
.bg-amber-500 { background-color: #f59e0b; }
.hover-bg-003d99:hover { background-color: #003d99; }
.hover-text-blue-cc:hover { color: #000e95; }

.text-white-90 { color: rgba(255,255,255,0.9); }
.text-white-80 { color: rgba(255,255,255,0.8); }

.service-bg1 { background: #000e95; }
.service-bg2 { background: #0161c8; }
.service-bg3 { background: #01b3fb; }

/* ============================================================
   三、布局容器
   ============================================================ */
.max-w-screen-2xl {
  max-width: 1650px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   四、显示/隐藏
   ============================================================ */
.hidden { display: none !important; }

/* ============================================================
   五、导航栏
   ============================================================ */
.header .logo img {
  height: 53px;
  width: auto;
}
.nav ul li a,
.lang {
  color: #2b2b2b;
  line-height: 53px;
  font-size: 1.125rem;
}
.nav ul li a:hover,
.nav ul li a.active {
  outline: none;
  font-weight: bold;
  color: #000e95;
}
/* PC 下拉子菜单 */
.nav ul li .sub-menu {
  width: 100%;
  min-width: 120px;
  border-top: 2px solid #000e95;
}
.nav ul li .sub-menu li a,
.lang ul li a {
  font-size: 14px;
  line-height: 1.8;
  border-bottom: 1px solid #efefef;
}
.nav ul li .sub-menu li a:hover,
.lang ul li a:hover {
  background-color: #000e95;
  color: #fff;
  border-bottom-color: #efefef;
}

/* 移动端导航子菜单 */
.mobile-parent-nav .mobile-sub-toggle {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.mobile-parent-nav .mobile-submenu.hidden {
  display: none !important;
}

/* 搜索面板动画 */
.search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  z-index: 60;
}
.search-panel.open {
  max-height: 80px;
  opacity: 1;
}

/* ============================================================
   六、Banner 横幅
   ============================================================ */
/* 首页Banner轮播：aspect-ratio 控制比例，防止图片变形和内容溢出 */
.bannerSwiper {
  overflow: hidden;
}
.bannerSwiper .swiper-slide {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 7;
}
.bannerSwiper .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 确保 Swiper wrapper 不破坏比例 */
.bannerSwiper .swiper-wrapper {
  align-items: stretch;
}
/* Banner 文字遮罩层 */
.bannerSwiper .position-absolute {  
  padding: 1.5rem 0;
}
/* 内页Banner */
.banner-inner .banner-img {
  position: relative;
}
.banner-inner .banner-img img {
  width: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}
.banner-inner .banner-txt {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}
.banner-title {
  font-size: clamp(1.5rem, 4vw, 3.125rem);
  line-height: 1.3;
}
.f125 {
  font-size: 1.125rem;
}
/* --- 移动端 Banner --- */
@media (max-width: 767.98px) {
  .bannerSwiper .swiper-slide {
    aspect-ratio: 4 / 3;
  }
  .f125 {
    font-size: 0.95rem;
  }
  .banner-inner .banner-img img {
    min-height: 140px;
  }
}
@media (min-width: 768px) {
  .product-card h4 {
    font-size: 1.25rem !important;
  }
}
@media (max-width: 374.98px) {
  .bannerSwiper .swiper-slide {
    aspect-ratio: 1 / 1;
  }
  .f125 {
    font-size: 0.85rem;
  }
  .banner-inner .banner-img img {
    min-height: 120px;
  }
  .banner-title {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  }
}
.breadcrumbs a {
  color: #fff;
}

/* ============================================================
   七、分割线
   ============================================================ */
.heng {
  width: 100%;
  height: 5px;
  background: #fff;
  border-top: 3px solid #c8c8c8;
  border-bottom: 1px solid #c8c8c8;
}

/* ============================================================
   八、表单控件
   ============================================================ */
.form-control {
  padding: .75rem .75rem;
}
.msg-btn {
  font-size: 1.125rem;
}
@media (max-width: 767.98px) {
  .form-control {
    padding: .85rem .85rem;
    font-size: 16px; /* 防止iOS缩放 */
  }
  .msg-form .form-control::placeholder {
    font-size: 0.875rem;
  }
  .msg-btn {
    font-size: 1rem;
    min-height: 48px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

/* ============================================================
   九、Swiper 产品轮播
   ============================================================ */
.swiperBox {
  position: relative;
}
.swiperBox .product-next {
  right: -50px;
}
.swiperBox .product-prev {
  left: -50px;
}
@media (max-width: 1199.98px) {
  .swiperBox .product-next {
    right: 0;
  }
  .swiperBox .product-prev {
    left: 0;
  }
}

/* ============================================================
   十、产品卡片信息
   ============================================================ */
.nav-info hr {
  margin: 0.35rem 0;
  border-bottom: 1px solid #e4e7ed;
}
.product-card .nav-info .btn {
  font-size: 0.875rem;
  white-space: nowrap;
}
.product-content{
  font-size: 1.25rem;
}
.product-content img{
  padding: 1.5rem;
  border-radius: var(--bs-border-radius)!important;
  box-shadow: var(--bs-box-shadow) !important;
}

/* ============================================================
   十一、工厂实拍 / 资质荣誉 网格轮播
   ============================================================ */

.factorySwiper .swiper-slide img,
.honorSwiper .swiper-slide img {
  width: 100%;
  margin-bottom: 10px;
}

/* ============================================================
   十二、自定义分页控件
   ============================================================ */
.swiper-custom-controls,
.page-box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}
.swiper-btn-prev,
.swiper-btn-next,
.swiper-page-number,
.page-box .page-link,
.page-box .page-num {
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  transition: all 0.25s ease;
  outline: none;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.swiper-btn-prev:hover,
.swiper-btn-next:hover,
.swiper-page-number:hover:not(.active),
.page-box .page-link:hover,
.page-box .page-num:hover:not(.page-num-current) {
  border-color: #000e95;
  color: #000e95;
}
.swiper-page-number.active,
.page-box .page-num-current {
  background: #000e95;
  color: #fff;
  border-color: #000e95;
}
.swiper-btn-prev:disabled,
.swiper-btn-next:disabled,
.swiper-btn-prev.swiper-button-disabled,
.swiper-btn-next.swiper-button-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: #999;
  border-color: #ddd;
}
.swiper-pagination-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* ============================================================
   十三、底部信息
   ============================================================ */
.foot-tel p.map,
.foot-tel p.phone,
.foot-tel p.email {
  position: relative;
  padding-left: 1.95rem;
}
.foot-tel span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 5px;
  left: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  width: 1.35rem;
  height: 1.35rem;
}
.foot-tel span i {
  font-size: 0.65rem;
}

/* ============================================================
   十四、返回顶部按钮
   ============================================================ */
#backTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0052cc;
  z-index: 1030;
  border-radius: 50%;
  opacity: 0.75;
  border: 0;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
#backTop.hidden {
  display: none !important;
}
#backTop:hover {
  opacity: 1;
}
@media (max-width: 767.98px) {
  #backTop {
    width: 3rem;
    height: 3rem;
    bottom: 1rem;
    right: 1rem;
  }
}

/* ============================================================
   十五、内页子导航
   ============================================================ */
.ny-nav a {
  display: inline-block;
  font-size: 1.25rem;
  margin-right: 1rem;
  padding-right: 1rem;
  border-right: 1px solid #7f7f7f;   
  text-decoration: none;
  transition: color 0.25s ease, font-weight 0.25s ease;
}
.ny-nav a:last-child {
  border-right: none;
}
.ny-nav a:hover,
.ny-nav a.active {
  color: #000e95;
  font-weight: 600;
}
@media (max-width: 767.98px) {
  .ny-nav a {
    font-size: 1.125rem;
    margin-right: 0.5rem;
    padding-right: 0.5rem;
  }
}
@media (max-width: 374.98px) {
  .ny-nav a {
    font-size: 0.8rem;
    margin-right: 0.35rem;
    padding-right: 0.35rem;
    line-height: 40px;
    min-height: 40px;
  }
}

/* ============================================================
   十六、联系我们页
   ============================================================ */
.contact-info strong {
  font-size: 1.875rem;
}
@media (max-width: 767.98px) {
  .contact-info strong {
    font-size: 1.375rem;
  }
}

/* ============================================================
   十七、表单描述文字 响应式字号
   ============================================================ */
.form-desc {
  font-size: 0.95rem;
}
@media (min-width: 768px) {
  .form-desc {
    font-size: 1.0rem;
  }
}
@media (min-width: 992px) {
  .form-desc {
    font-size: 1.25rem;
  }
}

/* ============================================================
   十八、关于我们 - 简介文本
   ============================================================ */
.profile-txt p {
  margin-bottom: 0.5rem;
}

/* ============================================================
   十九、FAQ 手风琴
   ============================================================ */
#faqAccordion .accordion-button {
  padding: 1.3rem 1.25rem;
  transition: all 0.25s ease;
}
.accordion-button:not(.collapsed) {
  background-color: #fff;
  box-shadow: none;
}
@media (max-width: 767.98px) {
  #faqAccordion .accordion-button {
    padding: 1rem 1rem;
    font-size: 0.95rem;
  }
}

/* ============================================================
   二十、行业应用 - 查看更多按钮
   ============================================================ */
.application .app-more {
  width: 3.5rem;
  height: 3.5rem;
  line-height: 3.25rem;
  display: inline-block;
}

/* ============================================================
   二十一、来料加工背景
   ============================================================ */
.process {
  background: url(../img/process.jpg) no-repeat center center / cover;
}

/* ============================================================
   二十二、CSS Grid 布局
   ============================================================ */
.grid {
  display: grid;
}
.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 576px) {
  .sm-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 768px) {
  .md-grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ============================================================
   二十三、工具类
   ============================================================ */
.group:hover .group-hover-block {
  display: block !important;
}
.transition {
  transition: all 0.3s ease;
}
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }
.cursor-pointer { cursor: pointer; }

.z-60  { z-index: 60; }
.z-999 { z-index: 999; }
.z-1000 { z-index: 1200; }
.z-9999 { z-index: 9999; }

.top-full { top: 100%; }
.border-b-2 { border-bottom-width: 2px; }

/* 文本截断多行 */
.text-clamp {
  font-size: clamp(1.5rem, 3vw, 3.45rem);
}
.text-subtitle {
  font-size: 1.625rem;
}
.text-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-ellipsis-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-ellipsis-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rotate-180 {
  transform: rotate(180deg);
}

/* ============================================================
   二十四、首页 Banner 文字区域宽度
   ============================================================ */
.w-40 {
  width: 40%;
}
@media (max-width: 767.98px) {
  .w-40 {
    width: 100%;
  }
  .text-subtitle {
    font-size: 1rem;
  }
}
@media (max-width: 374.98px) {
  .text-clamp {
    font-size: clamp(1.15rem, 5vw, 1.4rem);
  }
  .text-subtitle {
    font-size: 0.85rem;
  }
}

/* ============================================================
   二十五、h65 固定高度（案例卡片描述）
   ============================================================ */
.h65 {
  height: 65px;
}
@media (max-width: 767.98px) {
  .h65 {
    height: auto;
  }
}

/* ============================================================
   二十六、内容正文区域（case/news/product 详情页）
   ============================================================ */
.content-body {
  word-break: break-word;
  overflow-wrap: break-word;
}
.content-body img {
  max-width: 100%;
  height: auto;
}
.content-body table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
}

/* ============================================================
   二十七、移动端导航响应式
   ============================================================ */
@media (max-width: 767.98px) {
  .header .logo img {
    height: 30px;
  }
}
@media (max-width: 374.98px) {
  .header .logo img {
    height: 30px;
  }
}

/* ============================================================
   二十八、大屏内边距增强
   ============================================================ */
@media (min-width: 1200px) {
  .py-5 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
  }
}

/* ============================================================
   二十九、Bootstrap Modal 弹窗增强
   ============================================================ */
.modal-content {
  border: none;
}

/* ============================================================
   三十、Swiper 轮播导航按钮通用样式
   ============================================================ */
.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.5rem !important;
}
@media (max-width: 767.98px) {
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 1rem !important;
  }
}

/* ============================================================
   三十一、移动端汉堡菜单按钮
   ============================================================ */
#menuBtn {
  background: transparent;
  border: 0;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   三十二、微信二维码下拉容器
   ============================================================ */
.wx-qrcode-drop {
  width: 130px;
}

/* ============================================================
   三十三、语言切换下拉
   ============================================================ */
.lang-drop {
  z-index: 999;
  min-width: 85px;
}

/* ============================================================
   三十四、搜索输入框去默认轮廓
   ============================================================ */
.search-input-focus:focus {
  outline: none;
  box-shadow: none;
}

/* ============================================================
   三十五、移动端菜单面板
   ============================================================ */
.mobile-menu-panel {
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu-panel .mobile-parent-nav > .d-flex > a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* ============================================================
   三十六、底部二维码容器
   ============================================================ */
.footer-qrcode {
  width: 7rem;
}
@media (max-width: 767.98px) {
  .footer-qrcode {
    width: 6rem;
  }
}

/* ============================================================
   三十七、联系我们页二维码图片
   ============================================================ */
.contact-qrcode-img {
  width: 128px;
  height: 128px;
  object-fit: contain;
}
@media (min-width: 768px) {
  .contact-qrcode-img {
    width: 160px;
    height: 160px;
  }
}

/* ============================================================
   三十八、产品卡片
   ============================================================ */
.product-card {
  margin-left: 0;
  margin-top: 0;
}
@media (min-width: 576px) {
  .product-card {
    margin-left: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }
}

/* ============================================================
   三十九、表格响应式横滚
   ============================================================ */
.table-responsive-wrap {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   四十、图片自适应（非Bootstrap img-fluid 补充）
   ============================================================ */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   四十一、移动端底部对齐
   ============================================================ */
@media (max-width: 767.98px) {
  .footer-qrcode-wrap {
    align-items: center !important;
  }
}

/* ============================================================
   四十二、首页长标题移动端换行处理
   ============================================================ */
@media (max-width: 767.98px) {
  .section-title-long {
    font-size: 1.15rem;
    line-height: 1.4;
  }
}
@media (max-width: 374.98px) {
  .section-title-long {
    font-size: 1rem;
  }
}

/* ============================================================
   四十三、按钮最小触摸区域（移动端）
   ============================================================ */
@media (max-width: 767.98px) {
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn.rounded-pill {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

/* ============================================================
   四十四、footer 文字适配
   ============================================================ */
@media (max-width: 767.98px) {
  .foot-tel p.fs-4 {
    font-size: 1.1rem !important;
  }
  footer .fs-3.lh-sm {
    font-size: 1rem !important;
  }
  /* 版权备案信息防止溢出换行 */
  footer .border-top.border-secondary .small {
    font-size: 0.75rem !important;
  }
  footer .border-top.border-secondary > div {
    word-break: break-all;
    overflow-wrap: anywhere;
    line-height: 1.7;
  }
}

/* ============================================================
   四十五、产品卡片内按钮极小屏兼容
   ============================================================ */
@media (max-width: 374.98px) {
  .nav-info .btn {
    font-size: 0.7rem;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }
}

/* ============================================================
   四十六、工厂数据统计极小屏
   ============================================================ */
@media (max-width: 374.98px) {
  .stats-col h2 {
    font-size: 1.2rem !important;
  }
  .stats-col p.h5 {
    font-size: 0.8rem !important;
  }
  .stats-col p.text-muted {
    font-size: 0.65rem !important;
  }
}

/* ============================================================
   四十七、移动端顶部通栏文字溢出
   ============================================================ */
@media (max-width: 374.98px) {
  .header-top-text {
    font-size: 0.7rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ============================================================
   四十八、移动端 section 内边距收紧
   ============================================================ */
@media (max-width: 767.98px) {
  section.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

/* ============================================================
   四十九、内页子导航与主区域间距
   ============================================================ */
@media (max-width: 767.98px) {
  .ny-nav + section.py-5 {
    padding-top: 2rem !important;
  }
}

/* ============================================================
   五十、w-sm-auto 工具类（Bootstrap 未内置）
   ============================================================ */
@media (min-width: 576px) {
  .w-sm-auto {
    width: auto !important;
  }
}

/* ============================================================
   五十一、Footer Logo 响应式尺寸
   ============================================================ */
.footer-site-logo {
  height: 48px;
  width: auto;
}
@media (max-width: 767.98px) {
  .footer-site-logo {
    height: 30px;
  }
}

/* ============================================================
   五十二、移动端按钮单行：统一缩小字号和间距
   针对 flex-nowrap 按钮组的移动端优化
   ============================================================ */
@media (max-width: 767.98px) {
  .btn-row-mobile .btn,
  .d-flex.flex-nowrap.gap-2 .btn {
    font-size: 0.82rem;
    white-space: nowrap;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    min-height: 40px;
  }
}
/* 新闻详情 */
.content-body p{ margin-bottom: 10px;}