body {
  display: none;
}

/* 当页面翻译完成并准备好显示时，应用这个类 */
body.translated {
  display: block; /* 或者 inline-block, 根据你的布局需要 */
}

/* 覆盖原有紫色主题 */
.text-primary {
  color: #f76e0d !important;
}
.bg-primary {
  background-color: #f76e0d !important;
}

/* 主按钮样式 */
.btn-primary {
  background-color: #f76e0d !important;
  border-color: #d45d0b !important;
}

/* 悬停效果 */
.btn-primary:hover {
  background-color: #e6640c !important;
  border-color: #bd530a !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* 基础样式 */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 导航栏 */
.navbar {
  background-color: white !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0;
  display: flex; /* 使用Flexbox布局 */
  align-items: center; /* 垂直居中对齐 */
  position: relative;
  z-index: 10;
  height: 90px; /* 设置导航栏高度为90px */
}

.navbar .container {
  height: 100%;
}

/* 导航栏菜单容器 */
.navbar-nav {
  align-items: stretch;
  height: 100%;
  display: flex; /* 使用Flexbox布局 */
  align-items: center; /* 垂直居中对齐 */
}

/* 导航栏菜单项 */
.navbar-nav .nav-item {
  margin: 0 0.5rem;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

/* 导航栏链接 */
.navbar-nav .nav-link {
  font-size: 1.2rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  border-radius: 6px;
  transition: all 0.3s ease;
  color: #333 !important;
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

.navbar-nav .nav-link:hover {
  color: #f76e0d !important;
  background-color: rgba(247, 110, 13, 0.1);
  transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
  background-color: transparent;
  color: #f76e0d !important;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background-color: #f76e0d;
  border-radius: 3px;
}

/* 去除navbar-toggler按钮点击后的粗边框 */
.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler-icon:focus {
  outline: none !important;
}

/* 导航栏logo样式 */
.navbar-brand .logo-image {
  /* max-width: 240px; */
  padding: 12px 0;
  height: 100%;
}

.navbar-toggler {
  margin: 0.5rem 0;
}

/* 轮播图样式 */
.carousel-inner {
  height: auto;
  min-height: 400px;
  max-height: 600px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  min-height: 320px;
}

.container {
  align-items: normal !important;
  width: 94% !important;
  max-width: 1600px !important;
}

/* 横向通栏布局样式 */
.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.px-4 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.mx-0 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (min-width: 1400px) {
  .px-4 {
    padding-left: 4rem !important;
    padding-right: 4rem !important;
  }
}

/* 移动端优化 */
@media (max-width: 768px) {
  .carousel-inner {
    min-height: 300px;
    max-height: 75vh;
  }
  .carousel-item {
    height: 100%;
  }
  .carousel {
    margin-bottom: 0 !important;
  }
  main.container.my-5 {
    margin: 1rem auto !important;
  }

  .card {
    margin-bottom: 1rem;
  }
}

.about-us .height-1 {
  height: 2px;
}

.about-us .card.col-6 {
  flex: 0 0 24%;
  max-width: 24%;
  margin: 0 0.5% 1rem;
  box-sizing: border-box;
  width: 100%;
}

.about-us .card:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-us h2.display-5 {
  font-size: 2.5rem;
}

/* 移动端关于我们模块优化 */
@media (max-width: 768px) {
  .navbar-nav {
    align-items: baseline !important;
  }
  /* 导航栏菜单项 */
  .navbar-nav .nav-item {
    width: 50%;
    height: auto !important;
  }

  .about-us.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .about-us h2.display-5 {
    font-size: 1.8rem;
  }

  .about-us .lead {
    font-size: 1.25rem;
    line-height: 1.5;
  }

  .about-us .text-primary.display-3 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .about-us .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  .about-us .col-6 {
    flex: 0 0 48% !important;
    max-width: 48% !important;
    margin: 0 1% 1rem !important;
    box-sizing: border-box !important;
    width: 100%;
  }

  .about-us .card {
    padding: 0.8rem 0.5rem;
    margin: 0 0 0.8rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    width: 100% !important;
    transition: all 0.3s ease;
  }
  .about-us .card:hover {
    border-color: #6f42c1;
    box-shadow: 0 5px 15px rgba(111, 66, 193, 0.15);
    transform: translateY(-3px);
  }

  .about-us .card-title {
    font-size: 0.95rem;
    margin-top: 0.8rem;
    color: #333;
  }
  .about-us .card .fas {
    font-size: 2rem;
    color: #6f42c1;
  }

  .about-us .w-25 {
    width: 60% !important;
    margin-top: 0.5rem;
  }
}

/* 页脚样式 */
footer {
  background: #2c3e50;
  margin-top: 3rem;
}

.social-links a {
  font-size: 1.5rem;
  transition: opacity 0.3s;
}

.social-links a:hover {
  opacity: 0.8;
}

.breadcrumb-bg {
  background-image: url('../images/breadcrumb_bg.png');
  background-size: cover;
  background-position: center;
}

.breadcrumb-bg .container {
  padding: 5rem 0;
}

.breadcrumb-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 1rem;
}

.breadcrumb-item a {
  color: #ddd !important;
}

.breadcrumb-item.active {
  color: #ddd !important;
}

.breadcrumb-item::before {
  color: #ccc !important;
}

/* 核心优势区块 */
/* .our-advantages {
  background-color: #f8f9fa;
} */

.advantage-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.advantage-item h5 {
  font-weight: 600;
  font-size: 1rem;
  color: #343a40;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .advantage-item img {
    height: 220px;
  }
}

/* 服务流程区块样式 */
.service-flow {
  /* background-color: #f8f9fa; */
  position: relative;
}

.service-steps {
  position: relative;
}

.steps-connector {
  position: absolute;
  top: 60px; /* 调整连接线位置以适应放大的数字 */
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: #f76e0d;
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
}

.step-number {
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 100%;
  width: 50px;
  height: 50px;
  line-height: 50px;
  font-size: 28px;
  font-weight: bold;
}

.step-item:hover .step-number {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.img-fluid .img {
  /* 垂直水平居中 */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  object-fit: cover; /* 保持图片比例 */
}

/* // 添加到文件末尾 */
/* 企业优势数字突出样式 */
.card-title .text-primary {
  font-weight: 700;
  line-height: 1.2;
}

/* 卡片悬停效果增强 */
.card.hover\:shadow-lg:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 服务卡片特效 */
.services-section .card {
  border: 1px solid rgba(13, 110, 253, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.1);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: rgba(13, 110, 253, 0.1);
  border-radius: 8px;
}

.loading-overlay {
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .steps-connector {
    display: none;
  }
  .breadcrumb-bg {
    display: none !important;
  }
  .step-item {
    margin-bottom: 2rem;
  }

  .img-fluid {
    display: none;
  }
}

@media (max-width: 768px) {
  .service-steps {
    display: block !important;
  }
  .breadcrumb-bg {
    display: none !important;
  }
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .img-fluid {
    display: none;
  }
}

.services-project {
  background-color: #fff;
  background: url('../images/banner2.png') no-repeat;
  background-size: cover;
  padding: 5rem 0 8rem !important;
}

.service-item {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 60px 1.5rem !important;
}

.service-item:hover {
  transform: translateY(-10px);
}

.service-item i,
.service-item h5 {
  color: #f76e0d;
  transition: color 0.3s ease;
}

.service-item:hover i,
.service-item:hover h5 {
  color: #fff;
}

/* 添加新的样式以实现上翻动画效果 */
.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f76e0d;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.service-item:hover::before {
  transform: translateY(0);
}

/* 确保文字和图标在上滑时可见 */
.service-item:hover i,
.service-item:hover h5 {
  position: relative;
  z-index: 1;
}

/* 为5个项目等宽排列添加自定义列宽 */
.col-lg-2-4 {
  flex: 0 0 20%;
  max-width: 20%;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .col-lg-2-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* 搜索模块样式 */
.search-module {
  background-image: url('../images/banner1.png');
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.search-container {
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.search-container .form-control {
  height: 70px;
  border: none;
  outline: none;
  padding: 18px;
  font-size: 18px;
}

.search-container .btn {
  height: 70px;
  width: 70px;
  background-color: #f76e0d;
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 18px;
  cursor: pointer;
}

.hot-keywords {
  margin-top: 20px;
  text-align: center;
  color: white;
  font-size: 18px;
  z-index: 10;
  position: relative;
}

.hot-keywords span {
  margin-right: 15px;
}

#searchResults {
  position: absolute;
  top: calc(50% + 15px);
  left: 50%;
  transform: translate(-50%, 0);
  width: 80%;
  max-width: 800px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 20;
  display: none;
  overflow: hidden;
}

/* 搜索结果项悬停效果 */
.hover-effect {
  transition: all 0.3s ease;
}

.hover-effect:hover {
  background-color: #f8f9fa;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-left: 3px solid #f76e0d !important;
}

/* 关闭按钮样式 */
#closeSearchResults {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

#closeSearchResults:hover {
  background-color: #f76e0d;
  color: white;
}

/* 添加服务页面列表分列样式 */
.inventory-section .table-responsive {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.inventory-section table {
  margin-bottom: 0;
}

.inventory-section thead th {
  background-color: #f76e0d;
  color: white;
  font-weight: 600;
  border: none;
}

.inventory-section .page-link {
  color: #f76e0d;
  border-color: #f76e0d;
  cursor: pointer; /* 可点击按钮鼠标状态 */
}

.inventory-section .page-item.active .page-link {
  background-color: #f76e0d;
  border-color: #f76e0d;
  color: white; /* 激活状态字体为白色 */
}

.inventory-section .page-item.disabled .page-link {
  color: #6c757d;
  cursor: not-allowed; /* 不可点击按钮鼠标状态 */
}

.inventory-section .page-link:hover {
  background-color: #f76e0d;
  color: white;
}

/* 确保按钮使用主色橙色 */
.btn-primary {
  background-color: #f76e0d !important;
  border-color: #f76e0d !important;
  color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #e6640c !important;
  border-color: #e6640c !important;
  box-shadow: 0 0 0 0.25rem rgba(247, 110, 13, 0.25) !important;
}

/* 热卖项目列表分列显示 */
@media (min-width: 768px) {
  .inventory-section .table-responsive {
    max-height: 500px;
    overflow-y: auto;
  }
  
  .inventory-section table thead {
    position: sticky;
    top: 0;
    z-index: 10;
  }
}

/* 添加表格行悬停效果 */
.inventory-section table tbody tr:hover {
  background-color: rgba(247, 110, 13, 0.05);
}
