.red{
    width: 100%;
    background-color: #911005;
}
.footer{
    padding-top: 50px;
    padding-left: 25px;
    padding-right: 25px;
}

.footerlogo img{
  width: 10%;
}

.freeinsbtn{
  width: 70%;
}

.afterour{
  padding-top: 100px;
  padding-bottom: 100px;
  padding-left: 25px;
  padding-right: 25px;
}

.bestwork{
  padding-top: 100px;
  padding-bottom: 100px;
  padding-left: 25px;
  padding-right: 25px;
}

@media (max-width: 768px){
  .footer{
    padding-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .footerlogo img{
    width: 30%;
  }
  .freeinsbtn{
    width: 90%;
  }
  .afterour{
    padding-top: 100px;
    padding-bottom: 100px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .bestwork{
  padding-top: 100px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 5px;
  }
}

.ins{
    padding-top: 100px;
    padding-bottom: 100px;
    padding-left: 25px;
    padding-right: 25px;
}

.whyfree{
  padding-top: 100px;
  padding-bottom: 100px;
  padding-left: 25px;
  padding-right: 25px;
}

.whyfreecard{
  background-color: white;
  border-radius: 25%;
}

.mid{
  padding-top: 100px;
  padding-bottom: 100px;
  padding-left: 100px;
  padding-right: 100px;
}

.grey{
  padding-top: 100px;
  padding-bottom: 100px;
  padding-left: 100px;
  padding-right: 100px;
  background-color: #aaa;
}


.why{
  padding-top: 100px;
  padding-bottom: 100px;
  padding-left: 100px;
  padding-right: 100px;
}

.video-background{
  padding-top: 100px;
  padding-bottom: 100px;
  padding-left: 100px;
  padding-right: 100px;
}

@media (max-width: 768px){
  .why{
    padding-top: 100px;
    padding-bottom: 100px;
    padding-left: 25px;
    padding-right: 25px;
  }
  .mid{
    padding-top: 100px;
    padding-bottom: 100px;
    padding-left: 25px;
    padding-right: 25px;
  }
  .video-background{
    padding-top: 100px;
    padding-bottom: 100px;
    padding-left: 25px;
    padding-right: 25px;
  }
  
.grey{
  padding-top: 100px;
  padding-bottom: 100px;
  padding-left: 10px;
  padding-right: 10px;
  background-color: #aaa;
}
}

.with-border {
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fff;
  padding: 20px;
  height: 100%;
  transition: box-shadow 0.3s ease;
}

.with-border:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;     /* 水平居中 */
  height: 100%;
  text-align: top;
  line-height: 20px;
}

.sickimg {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sickimg:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hover-shadow {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border-radius: 15%;
}

.hover-shadow:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}



.ourwork {
  position: relative;
  padding: 100px 25px;
  background-image: url('img/bg01.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  width: 100%;
  color: white;
  overflow: hidden;
  z-index: 1;
}

.ourwork::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6); /* 亮度，0.4 = 稍暗，越高越暗 */
  z-index: 0;
}

.whyfree{
  position: relative;
  padding: 100px 25px;
  background-image: url('img/bg05.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  width: 100%;
  color: white;
  overflow: hidden;
  z-index: 1;
}

.whyfree::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6); /* 亮度，0.4 = 稍暗，越高越暗 */
  z-index: 0;
}

.ourwork > * {
  position: relative;
  z-index: 1; /* 确保内容在遮罩上面 */
}


.workhuman img{
  width:80%;
  align-items: center;
}

.bebas-neue-regular {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
.outfit{
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
  }

.sedan-regular {
font-family: "Sedan", serif;
font-weight: 400;
font-style: normal;
}
  
.whatsapp-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
  }

  .animated-container {
    display: flex;
    align-items: center;
    animation: bounce 2s infinite;
  }

  .whatsapp-tooltip {
    background-color: #fff;
    color: #333;
    padding: 6px 10px;
    border-radius: 8px;
    margin-right: 10px;
    box-shadow: 1px 1px 6px rgba(0,0,0,0.2);
    font-size: 20px;
    white-space: nowrap;
  }

  .whatsapp-float {
    background-color: #25D366;
    border-radius: 50%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  }

  .whatsapp-float:hover {
    background-color: #128C7E;
  }

  @keyframes bounce {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }

.wrapper{
  padding: 20px;
  border-radius: 20px;
  background-color: rgb(255, 255, 255);
  transition: box-shadow 0.3s ease-in-out, transform 0.2s ease-in-out; /* 添加平滑过渡 */
}
.wrapper:hover {
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2); /* 添加阴影 */
  transform: translateY(-5px); /* 轻微上移 */
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.float-button {
  animation: floatUpDown 2s ease-in-out infinite;
}

.cross{
  background-color: rgb(72,102, 122);
  width: 100%;
  height: 5%;
}

.fixed-top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.85); /* 半透明黑色背景，可改颜色 */
  color: white;
  padding: 15px 25px;
  z-index: 999; /* 保证在最上层 */
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.special-gothic-condensed-one-regular {
  font-family: "Special Gothic Condensed One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.outfit {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.quicksand {
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.video-background {
  position: relative;
  width: 100%;
  height: 100%; /* 或你想要的高度 */
  overflow: hidden;
}

.video-background video {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -1;
  object-fit: cover;
  filter: brightness(50%); /* 影片变暗 */
}

.video-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 100px 20px;
}

.poetsen-one-regular {
  font-family: "Poetsen One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.to15{
  font-size: 20px;
}

.to10{
  font-size: 20px;
}

.right{
  align-items: right;
}

.left{
  align-items: left;
}

.workpadding{
  padding: 50px;
}

@media (max-width: 768px) {
  .to15{
    font-size: 15px;
  }
  .to10{
    font-size: 10px;
  }
  .right{
    align-items: center;
  }
  
  .left{
    align-items: center;
  }
  .workpadding{
  padding: 20px;
  }
}

.controlh{
  height: 90px;
}



.image-background {
  position: relative;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: background-image 1s ease-in-out;
}

@media (max-width: 768px) {
  .image-background {
    height: 100vh;
  }
}

.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;

}

#content-text.fade {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#content-text.fade.show {
  opacity: 1;
}

.content hr {
  border-color: white;
  width: 60%;
  margin: 10px auto;
}


  

.nav-top{
  justify-items: start;
  justify-content: start;
}

.nav-bottom{
  justify-items: bottom;
  justify-content: bottom;
}

/* 可选：确保父容器是相对定位 */
#carouselExampleCaptions {
  position: relative;
}



@media (max-width: 768px) {
  .carousel-button-wrapper .btn {
    padding: 12px 24px;
    font-size: 15px;
  }
  .carousel-button-wrapper {
    width: 70%;
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
  }

}
.scroll-container {
  width: 100%;              /* 限制容器宽度 */
  overflow: hidden;         /* 防止溢出 */
}

/* 按钮组设置为横向滚动 */
.button-group {
  display: flex;
  overflow-x: auto;         /* 允许横向滚动 */
  white-space: nowrap;      /* 按钮不换行 */
  gap: 10px;                /* 按钮间距 */
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch; /* iOS 弹性滚动 */
  scrollbar-width: none;    /* 隐藏 Firefox 的滚动条 */
}

/* 隐藏滚动条 */
.button-group::-webkit-scrollbar {
  display: none;
}

/* 按钮样式 */
.button-group button {
  flex: 0 0 auto;           /* 按钮宽度固定，不拉伸 */
  padding: 10px 20px;
  background-color: #ddd;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  white-space: nowrap;      /* 确保按钮文字不换行 */
}

/* 激活按钮样式 */
.button-group button.active {
  background-color: #555;
  color: #fff;
}

.content-wrapper {
  margin-top: 20px;
  padding-left: 100px;
  padding-right: 100px;
  width: 100%;
}

@media (max-width: 768px) {
  .content-wrapper {
    margin-top: 20px;
    padding-left: 25px;
    padding-right: 25px;
    width: 100%;
  }
}

.content-div {
  padding: 0px;
  align-items: center;
  justify-self: center;
  display: none;
  width: 100%;
  background-color: white;

}

.content-div.active {
  display: block;
}

.nav-mid a {
  text-decoration: none;
  color: black;
  transition: color 0.3s ease;
}

.nav-mid a:hover {
  color: red;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 400px; /* 控制最大寬度 */
  aspect-ratio: 9 / 16; /* 垂直影片的比例 */
  margin: auto;
}
.video-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.modal {
  display: none; 
  position: fixed; 
  z-index: 1; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0, 0, 0, 0.4);
}

/* 弹窗内容 */
.modal-content {
  background-color: #fff;
  margin: 15% auto; 
  padding: 20px;
  border: 1px solid #888;
  width: 300px; 
  border-radius: 10px;
  text-align: center;
}

/* 关闭按钮 */
.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

.bigtitlechange{
  font-size: 80px;
}

.titlechange{
  font-size: 70px;
}

.titlechange90{
  font-size: 90px;
}

.img01{
  width: 100%;
}

@media (max-width: 768px) {
  .bigtitlechange{
    font-size: 60px;
  }

  .titlechange{
    font-size: 60px;
  }

  .titlechange90{
    font-size: 60px;
  }

  .img01{
    width: 70%;
  }
}

.top-background {
      background-color: #911005;
      height: 200px;
      width: 100%;
    }

    .steps-container {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-top: -100px;
      position: relative;
      padding: 0 20px;
      flex-wrap: wrap; /* 允许换行 */
    }

    .step {
      background-color: #ffffff;
      width: 22%;
      border-left: 4px solid gold;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      border-radius: 8px;
      overflow: hidden;
      text-align: center;
      padding: 20px;
    }

    .step h2 {
      font-size: 3rem;
      margin: 0;
      color: #911005;
    }

    .step p {
      color: #555;
      font-size: 1.5rem;
      margin-top: 10px;
    }

    .bold {
      font-weight: bold;
      color: #000;
    }

    /* ✅ 手机尺寸：垂直堆叠每一个卡片 */
    @media (max-width: 768px) {
      .steps-container {
        flex-direction: column;
        align-items: center;
      }

      .step {
        width: 90%; /* 卡片宽度拉宽一些以适应手机 */
      }
    }