﻿/* 添加在文件开头 */
html,
body {
  min-width: 1600px;
  /* width: 100vw; */
  width: 100%;
  overflow-x: auto;
}

.container {
  min-width: 1600px;
}

/* 手机端覆盖最小宽度设置 */
@media (max-width: 991px) {
  html,
  body {
    min-width: 100%;
    width: 100%;
    overflow-x: hidden;
  }

  .container {
    min-width: 100%;
  }

  /* 调整导航栏 logo 和菜单按钮位置，向右移动 */
  .navbar > .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .navbar-brand {
    margin-left: 10px;
  }

  .nav-actions {
    margin-right: 10px;
  }

  /* 手机端让全宽度图片向下移动46px */
  .image-container {
    margin-top: 46px !important;
  }

  /* .full-width-image {
    margin-top: 0;
  } */

  /* 手机端隐藏图片和数据，只保留简介 */
  .profile-image {
    display: none;
  }

  .profile-data {
    display: none !important; 
  }

  /* 调整简介样式，使其在手机端占满宽度 */
  .profile {
    flex-direction: column;
    align-items: center;
    padding: 10px 20px !important;
  }

  .profile-title {
    width: 90% !important;
    padding-top: 0 !important; 
  }

  .container-6 {
    display: none !important;
  }

  .vision-section {
    display: none !important;
  }

  /* 手机端：物流建筑板块和农产品&物业板块左右滑动 */
  #logistics,
  #agriculture {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  #logistics .logistics-construction,
  #agriculture .logistics-construction {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  #logistics .section-container,
  #agriculture .section-container {
    flex-direction: column;
    gap: 16px;
    padding: 20px 16px 30px;
    transform: translateX(0px) !important;
  }

  #logistics .section-text,
  #agriculture .section-text,
  #logistics .section-image,
  #agriculture .section-image {
    flex: 0 0 auto;
    width: 100%;
  }

  #logistics .section-image,
  #agriculture .section-image {
    height: 220px;
  }

  .transportation-section {
    width: 160% !important;
  }

  .transportation-content {
    left: 5% !important;
  }

  .transportation-content h2 {
    font-size: 24px !important;
    margin: 0 !important;
  }

  .transportation-content p {
    font-size: 16px !important;
    margin: 0 !important;
  }

  .carousel-subtitle {
    gap: 10px !important;
  }

  .carousel-content {
    margin-top: 250px !important;
  }

  .carousel-text {
    margin-left: 10% !important;
  }

  .carousel-text h2 {
    font-size: 24px !important;
  }

  .carousel-text p {
    font-size: 16px !important;
  }

  /* 手机端餐饮集团板块样式调整 */
  .company-item {
    display: none !important;
  }

  .catering-container {
    flex-direction: column !important;
    padding-left: 0 !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: translateX(0) !important;
  }

  .catering-text {
    flex: 0 0 auto !important;
    width: 100% !important;
    order: 1;
  }

  .catering-text-inner {
    width: 100% !important;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .catering-image {
    flex: 0 0 auto !important;
    /* width: 100% !important; */
    height: auto !important;
    /* min-height: 234px !important; */
    order: 2;
    position: relative !important;
    padding: 12px !important;
    margin: 12px !important;
  }

  .catering-text-inner {
    margin-bottom: 0 !important;
  }

  .catering-image img {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
  }

  .catering-image img:not(.active) {
    display: none;
  }

  .catering-section {
    padding: 20px 0 0 0 !important;
  }
  
}

.full-width-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
}

.image-container {
  width: 100%;
  overflow: hidden;
}

/* 公司简介样式 */
.profile {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 60px 0;
  max-width: 1200px;
  margin: 50px auto 0;
  position: relative;
}

.profile-title {
  width: 560px;
  padding-top: 40px;
}

.profile-title h1 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #333;
  border-left: 3px solid #03933b;
  padding-left: 10px;
  font-weight: bold; /* 添加这一行以加粗字体 */
}

.profile-title h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #666;
  text-transform: uppercase;
}

.profile-title p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  text-align: justify;
}

.profile-image {
  width: 500px;
  height: 510px;
  overflow: hidden;
  /* border-radius: 8px; */
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.profile-image img {
  width: 94%;
  height: 94%;
  object-fit: cover;
  margin: 3% 3% 3% 3%;
}

/* 数据部分样式 */
.profile-data {
  position: absolute;
  bottom: 120px;
  left: 130px;
  width: 700px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  background-color: white;
  /* border-radius: 8px; */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  z-index: 1;
}

.profile-data span {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  text-align: center;
}

.profile-data span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background-color: #eee;
}

.profile-data span p:first-child {
  font-size: 24px;
  font-weight: bold;
  color: #03933b;
  margin-bottom: 8px;
  width: 100%;
}

.profile-data span p:last-child {
  font-size: 16px;
  color: #666;
  margin: 0;
  width: 100%;
}

/* 产业版图样式 */
.container-6 {
  padding: 28px 15px 60px 15px;
  position: relative;
  background-image: url("../images/introduction/bg-2.jpg");
  background-size: cover;
  background-position: center;
}

.title {
  text-align: center;
  color: #000000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto;
  width: fit-content;
  padding: 40px 0 20px 0;
}

.subtitle {
  text-align: center;
  color: #666;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.subtitle h5 {
  margin-bottom: 0;
}

.title::before,
.title::after {
  content: "";
  height: 2px;
  width: 80px;
  background-color: #9b9b9b;
  display: block;
  margin-top: 0;
}

.title h1 {
  font-size: 36px;
  color: #03933b;
  white-space: nowrap;
  margin: 0;
  line-height: 1;
}

.title p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
}

.industry-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  position: relative;
  transform: translateX(-20px); /* 向左移动20px */
  /* padding-top: 10px; */
}

.industry-item {
  position: relative;
  width: 210px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.industry-image {
  width: 240px;
  height: 440px;
  overflow: hidden;
  /* border-radius: 8px; */
  cursor: pointer;
  transition: transform 0.3s ease;
  background-color: #ffffff;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.3);
}

.industry-item:nth-child(odd) .industry-image:hover {
  transform: translateY(-10px);
}

.industry-item:nth-child(even) .industry-image:hover {
  transform: translateY(-10px);
}

.industry-image img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.industry-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 10px;
}

/* 奇数项文字在下方 */
.industry-item:nth-child(odd) {
  padding-top: 75px;
}

/* 偶数项文字在上方 */
.industry-item:nth-child(even) {
  padding-top: 70px;
}

.industry-item:nth-child(even) .industry-content {
  order: -1; /* 将文字移到图片上方 */
  margin-bottom: 15px;
}

.industry-number {
  font-size: 24px;
  font-weight: bold;
  opacity: 0.8;
}

.industry-title {
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.industry-title::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid #03933b;
  border-right: 2px solid #03933b;
  transform: rotate(45deg);
  display: inline-block;
}

/* 物流建筑板块样式 */
.logistics-construction {
  padding: 100px 0 0 0;
  /* background-color: #fff; */
  /* background-image: url('../images/introduction/bg-1.jpg'); */
  /* background-size: cover; */
  /* background-position: center; */
}

.bgimage {
  background-image: url("../images/introduction/bg-1.jpg");
  background-size: cover;
  background-position: center;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 90px;
}

.section-text {
  flex: 0 0 510px;
}

.section-text h2 {
  font-size: 30px;
  color: #03933b;
  margin-bottom: 24px;
  font-weight: bold; /* 添加这一行以加粗字体 */
}

.section-text p {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  padding-left: 16px;
  border-left: 2px solid #03933b;
  text-align: justify;
  text-indent: 2em;
}

.section-image {
  flex: 0 0 660px;
  height: 400px;
  /* border-radius: 8px; */
  overflow: hidden;
  background-color: #6ecf8b;
}

.section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 建筑板块反向布局 */
.construction-section {
  /* margin-top: -1px; */
  padding-top: 0;
  padding-bottom: 100px;
}

.construction-section .section-container {
  flex-direction: row-reverse;
}

/* 运输服务板块样式 */
.transportation-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* margin-top: 60px; */
}

.transportation-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.transportation-content {
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translateY(-50%);
  color: #fff;
  z-index: 1;
}

.transportation-content h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
}

.transportation-content p {
  font-size: 20px;
  opacity: 0.9;
}

.transportation-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* 全宽度轮播图样式 */
.fullwidth-carousel {
  width: 100%;
  /* margin-top: 60px; */
}

.fullwidth-carousel .carousel-inner {
  height: 95vh;
}

.fullwidth-carousel .carousel-item {
  height: 95vh;
}

.fullwidth-carousel .carousel-item img {
  width: 100%;
  height: 95vh;
  object-fit: cover;
}

/* 轮播图标题样式 */
.carousel-header {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  width: 100%;
}

.carousel-title {
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 20px;
}

.carousel-subtitle {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.subtitle-item {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px 15px;
  position: relative;
}

.subtitle-item:hover {
  color: #fff;
}

.subtitle-item.active {
  color: #fff;
}

.subtitle-item.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: #fff;
}

/* 餐饮集团板块样式 */
.catering-section {
  padding: 40px 0 80px 0;
  /* background-color: #fff; */
  background-image: url("../images/introduction/bg-1.jpg");
  background-size: cover;
  background-position: center;
}

.catering-container {
  max-width: 1280px;
  margin: 40px auto 0;
  display: flex;
  padding-left: 80px;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.catering-text {
  flex: 0 0 350px;
}

.catering-text-inner {
  font-size: 16px;
  color: #666;
  width: 480px;
  margin-bottom: 16px;
  line-height: 1.8;
  text-align: justify;
  /* border-left: 2px solid #03933B;
    padding-left: 16px; */
}

.catering-text-title {
  font-size: 28px;
  color: #03933b;
  /* font-weight: bold; */
  margin-right: 10px;
}

.company-item {
  font-size: 18px;
  color: #666;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.company-item:hover {
  color: #03933b;
}

.company-item.active {
  color: #03933b;
  border-left-color: #03933b;
  background-color: rgba(3, 147, 59, 0.05);
}

.catering-image {
  flex: 0 0 650px;
  height: 450px;
  position: relative;
  background-color: #ffffff;
  /* padding: 20px; */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.catering-image img {
  position: absolute;
  width: 96%;
  height: 94%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.catering-image img.active {
  opacity: 1;
}

.carousel-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  margin-top: 200px;
}

.carousel-text {
  margin-left: 15%;
  color: #fff;
  max-width: 500px;
  opacity: 0;
}

.carousel-text h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
}

.carousel-text p {
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.9;
}

.carousel-item.active .carousel-text {
  animation: fadeIn 0.3s ease-in-out forwards;
  animation-delay: 0.1s;
}

.decorate {
  width: 100px;
  height: 100px;
  border-top: 3px solid #03933b;
  border-left: 3px solid #03933b;
  float: left;
  margin-left: 15%;
  position: absolute;
}

.decorate-2 {
  width: 100px;
  height: 100px;
  border-top: 3px solid #03933b;
  border-left: 3px solid #03933b;
  float: left;
  margin-left: 15%;
  position: absolute;
  margin-top: 100px;
}

/* .decorate-3 {
    width: 100px;
    height: 260px;
    border: 3px solid #03933B;
    float: left;
    position: absolute;
    z-index: -1;
} */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 愿景图片区域样式 */
.vision-section {
  background-image: url("../images/introduction/bg-introduction.jpg");
  /*background-color: rgba(2, 192, 28, 0.8);  修改为rgba格式，透明度设为0.8 */
  background-size: cover;
  position: relative;
  width: 100%;
  height: 200px;
  margin: 40px 0;
  /* overflow: hidden; */
}

/* .vision-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.1);
} */

/* .vision-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 1;
  width: 100%;
} */

.vision-text h2 {
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* .vision-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
} */

.vision-text-1 {
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 8px;
  margin: 0;
  position: relative;
  left: -3%;
}
.vision-text-2 {
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 8px;
  margin: 0;
  position: relative;
  left: 3%;
}

/* 导航栏缩放适配 */
@media screen and (min-resolution: 120dpi) {
  /* 隐藏横向滚动条 */
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* .navbar .container {
    transform: translateX(-50px);
  } */

  /* 物流建筑板块和农产品物业板块缩放适配 */
  #logistics .section-container,
  #agriculture .section-container {
    transform: translateX(-40px);
  }

  /* 装饰元素缩放适配 */
  .decorate,
  .decorate-2 {
    margin-left: 7%;
  }

  /* 餐饮板块缩放适配 */
  #catering .catering-container {
    transform: translateX(-50px);
  }
}
