/* ========== 基础样式 ========== */
* {
  box-sizing: border-box;
}

/* ========== 全局字体缩放 ========== */
body {
  font-size: 16px;
}

.text-5xl { font-size: 34px !important; line-height: 1.2 !important; }
.text-4xl { font-size: 28px !important; line-height: 1.3 !important; }
.text-3xl { font-size: 24px !important; line-height: 1.3 !important; }
.text-2xl { font-size: 20px !important; line-height: 1.4 !important; }
.text-xl  { font-size: 18px !important; line-height: 1.5 !important; }
.text-lg  { font-size: 17px !important; line-height: 1.5 !important; }
.text-base { font-size: 16px !important; line-height: 1.75 !important; }
.text-sm  { font-size: 14px !important; line-height: 1.65 !important; }
.text-xs  { font-size: 13px !important; line-height: 1.5 !important; }

.leading-8 { line-height: 1.8 !important; }
.leading-7 { line-height: 1.7 !important; }
.leading-relaxed { line-height: 1.7 !important; }

.text-\[50px\] { font-size: 36px !important; }
.text-\[44px\] { font-size: 30px !important; }
.text-\[39px\] { font-size: 28px !important; }
.text-\[36px\] { font-size: 24px !important; }
.text-\[32px\] { font-size: 22px !important; }
.text-\[26px\] { font-size: 18px !important; }
.text-\[24px\] { font-size: 18px !important; }
.text-\[20px\] { font-size: 16px !important; }

.wrap {
  width: 1280px;
  margin: 0 auto;
  clear: both;
}

@media screen and (max-width: 1366px) {
  .wrap {
    width: 1100px;
  }
}

@media screen and (max-width: 1100px) {
  .wrap {
    width: 100%;
    padding: 0 20px;
  }
}

/* ========== 导航栏样式 ========== */
.nav-item {
  position: relative;
}

/* 导航项hover背景 - 从底部向上展开 */
.nav-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: #E25241;
  transition: all 0.5s;
  opacity: 0;
  z-index: 0;
}

.nav-item:hover::before {
  height: 100%;
  opacity: 1;
}

/* menuon激活状态 - 绿色背景 */
.menuon {
  position: relative;
}

.menuon::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #E25241;
  z-index: 0;
}

.menuon a {
  color: #fff !important;
  position: relative;
  z-index: 1;
  font-size: 14px !important;
}

.nav-item > a {
  position: relative;
  z-index: 1;
  font-size: 14px !important;
  color: #333 !important;
}

.nav-item:hover > a {
  color: #fff !important;
}

/* 二级下拉菜单 - 精确匹配原站 */
.nav-dropdown {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  background: linear-gradient(to right, rgba(226, 82, 65, 0.92), rgba(196, 58, 43, 0.92));
  width: 200px;
  overflow: hidden;
  display: none;
  z-index: 10;
  padding: 10px 0;
}

.nav-item:hover .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  text-align: center;
  height: 48px;
  line-height: 48px;
  color: #fff;
  font-size: 13px;
  transition: all 0.3s;
  width: 100%;
}

.nav-dropdown a:hover {
  background: #fff;
  color: #E25241;
}

/* ========== Banner分页器（顶部居中，避免被下方 datagc 遮挡） ========== */
.banner-pagination {
  top: 16px !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translateX(-50%);
  width: auto !important;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.banner-pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
  border: 0;
  margin: 0 4px;
  transition: all 0.3s;
}

.banner-pagination .swiper-pagination-bullet-active {
  width: 14px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  border-radius: 50%;
}

/* ========== 荣誉Swiper ========== */
.honor-swiper .swiper-pagination-bullet {
  width: 11px;
  height: 11px;
  background: transparent;
  border: 1px solid #E25241;
  opacity: 1;
}

.honor-swiper .swiper-pagination-bullet-active {
  width: 36px;
  height: 36px;
  background: #E25241;
  border: 0;
}

/* ========== 弹窗样式 ========== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  width: 96%;
  max-width: 980px;
  max-height: 90vh;
  background: #fff;
  border-radius: 20px;
  padding: 4% 6%;
  font-size: 18px;
  line-height: 32px;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.3s;
  z-index: 10;
}

.modal-close:hover {
  background: #E25241;
  color: #fff;
}

/* ========== 业务范围卡片边框动画 ========== */
.service-card::before,
.service-card::after {
  content: '';
  position: absolute;
  transition: all 0.4s ease-out;
  z-index: 20;
}

.service-card::before {
  top: 0;
  left: 0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  width: 0;
  height: 0;
  visibility: hidden;
}

.service-card::after {
  bottom: 0;
  right: 0;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  width: 0;
  height: 0;
  visibility: hidden;
}

.service-card:hover::before {
  width: 100%;
  height: 100%;
  visibility: visible;
}

.service-card:hover::after {
  width: 100%;
  height: 100%;
  visibility: visible;
}

/* ========== 产品卡片hover效果 ========== */
.product-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: #E25241;
  border-radius: 0 0 8px 8px;
  transition: all 0.5s;
  opacity: 0;
  z-index: 20;
}

.product-card:hover::before {
  width: 100%;
  opacity: 1;
}

/* ========== 视频缩略图 ========== */
.video-thumb {
  border-left-color: transparent;
  transition: all 0.3s;
}

.video-thumb.active {
  border-left-color: #E25241;
  background: #FFF5F2;
}

/* ========== 移动端汉堡菜单动画 ========== */
.mobile-btn.on .line1 {
  transform: rotate(45deg);
  transform-origin: 3% 50%;
}

.mobile-btn.on .line2 {
  width: 0;
}

.mobile-btn.on .line3 {
  transform: rotate(-45deg);
  transform-origin: 2% 50%;
}

/* ========== 回到顶部 ========== */
#backToTop:hover svg {
  color: #fff;
  background: #E25241;
  border-radius: 50%;
}

/* ========== 滚动条自定义 ========== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1efed;
}

::-webkit-scrollbar-thumb {
  background: #E25241;
  border-radius: 30px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C43A2B;
}

/* ========== 团队Swiper ========== */
.team-swiper .swiper-slide {
  transition: all 0.3s;
}

/* ========== 荣誉Swiper ========== */
.honor-swiper .swiper-slide {
  transition: all 0.3s;
}

/* ========== line-clamp ========== */
.line-clamp-7 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  overflow: hidden;
}

/* ========== 响应式：1366px以下 ========== */
@media screen and (max-width: 1366px) {
  #header {
    height: 77px;
  }

  #header .wrap {
    height: 77px;
  }

  /* 菜单高度适配 77px 头部，避免溢出 */
  #header .navpc ul {
    height: 77px;
  }

  #header .navpc li {
    height: 77px;
  }

  /* 电话在窄屏下隐藏，为菜单让出空间 */
  .header-tel {
    display: none !important;
  }

  .nav-item::before {
    height: 0;
  }

  .nav-item:hover::before {
    height: 77px;
  }

  .banner-pagination .swiper-pagination-bullet-active {
    width: 14px;
    height: 6px;
  }

  .datagc {
    margin-top: -48px;
  }
}

/* ========== 响应式：1150px以下（导航紧凑化，隐藏slogan释放空间） ========== */
@media screen and (max-width: 1150px) {
  #header .slogan-box {
    display: none !important;
  }

  #header .navpc li {
    padding-left: 9px;
    padding-right: 9px;
  }
}

/* ========== 响应式：移动端 ========== */
@media screen and (max-width: 1024px) {
  /* 移动端菜单对齐 77px 头部 */
  #mobileMenu {
    top: 77px !important;
  }

  .navpc {
    display: none !important;
  }

  .mobile-btn {
    display: block !important;
  }

  #bannerSwiper {
    margin-top: 77px;
  }

  #header {
    height: 77px;
  }

  #header .wrap {
    height: 77px;
  }

  .datagc {
    margin-top: -40px;
  }

  .datagc .flex {
    flex-direction: column;
    gap: 20px;
    padding: 20px 30px;
  }

  .datagc .flex > div {
    width: 100%;
    display: flex;
    align-items: center;
  }

  .titlebg,
  .text-center {
    padding-left: 20px;
    padding-right: 20px;
  }

  .text-\[44px\] {
    font-size: 26px !important;
  }

  .text-\[32px\] {
    font-size: 20px !important;
  }

  .text-\[39px\] {
    font-size: 24px !important;
  }

  .syfuwu .flex-col > div:first-child {
    width: 100%;
  }

  .syfuwu .flex-col > div:last-child {
    width: 100%;
    height: 300px;
  }

  .gcywbg .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tabs_dy .grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    height: 400px !important;
  }

  .teambg .bg-\[\\#f0fffe\] {
    padding: 20px;
  }

  .text-\[36px\] {
    font-size: 20px !important;
  }

  .fixright,
  #fixtel {
    display: none;
  }

  .footer .flex-col {
    gap: 30px;
  }

  .honor-swiper .swiper-slide {
    width: 80% !important;
  }
}

@media screen and (max-width: 768px) {
  .gcywbg .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    height: 120px;
  }

  .service-card .text-xl {
    font-size: 14px;
  }

  .service-card .text-sm {
    font-size: 11px;
  }

  .product-card {
    height: 350px !important;
  }

  .product-card h4 {
    margin-top: 40px !important;
    font-size: 15px;
  }

  .team-swiper-prev,
  .team-swiper-next {
    width: 40px;
    height: 40px;
  }

  .modal-content {
    padding: 20px;
    font-size: 14px;
    border-radius: 12px;
  }

  .modal-content h3 {
    font-size: 24px !important;
  }

  .wrap {
    padding: 0 15px;
  }
}

@media screen and (max-width: 480px) {
  .gcywbg .grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    height: 100px;
  }

  .text-\[44px\] {
    font-size: 26px !important;
  }

  .text-\[39px\] {
    font-size: 24px !important;
  }

  .datagc .flex {
    padding: 15px 20px;
  }
}

/* ========== Banner区域 ========== */
#bannerSwiper .swiper-slide {
  overflow: hidden;
}

#bannerSwiper .swiper-slide > div {
  transition: transform 0.3s;
}

/* ========== 服务卡片点击反馈 ========== */
.service-card:active {
  transform: scale(0.98);
}

.product-card:active {
  transform: scale(0.98);
}

/* ========== 平滑滚动 ========== */
html {
  scroll-behavior: smooth;
}

/* ========== 团队区域箭头 ========== */
.team-swiper-prev:hover,
.team-swiper-next:hover {
  background: #e7d296 !important;
}

.team-swiper-prev:hover svg,
.team-swiper-next:hover svg {
  color: #fff;
}

/* ========== Footer波浪顶部 ========== */
.footer-wave {
  position: relative;
}
.footer-wave::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 60px;
  background: inherit;
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* ========== Footer字号增大 ========== */
footer .text-xs { font-size: 13px !important; line-height: 1.6 !important; }
footer .text-sm { font-size: 14px !important; line-height: 1.6 !important; }
footer .text-base { font-size: 16px !important; line-height: 1.6 !important; }
footer .text-lg { font-size: 18px !important; line-height: 1.6 !important; }

/* ========== Footer对齐优化 ========== */
footer .wrap > .flex {
  align-items: flex-start;
}
footer h2 {
  margin-bottom: 12px;
}
footer .space-y-1 > p {
  margin-bottom: 6px;
}

/* ========== 局部字号恢复（"6大核心特点"、"核心产品"） ========== */
.compact-section h4 { font-size: 15px !important; line-height: 1.5 !important; }
.compact-section .text-lg { font-size: 15px !important; line-height: 1.5 !important; }
.compact-section .text-base,
.compact-section .grid > div > span,
.compact-section h5,
.compact-section .space-y-4 > div > div > p { font-size: 14px !important; line-height: 1.6 !important; }
.compact-section .text-sm { font-size: 12px !important; line-height: 1.5 !important; }
.compact-section .text-xs { font-size: 11px !important; line-height: 1.4 !important; }
