/* ==========================================================================
   Table of Contents:
   
   1. Reset & Base Styles
   2. Typography
   3. Layout & Grid
   4. Header & Navigation
   5. Hero Section (Top Slider)
   6. Services Section
   7. Team Section
   8. Advantage Section
   9. Clients Section
   10. Data Section
   11. Join Us Section
   12. Footer
   13. Animations & Effects
   14. Helper Classes
   15. Media Queries
      15.1 Tablet (max-width: 991px)
      15.2 Mobile (max-width: 767px)
      15.3 Small Mobile (max-width: 479px)
   ========================================================================== */

/* ==========================================================================
   1. Web Fonts
   ========================================================================== */

@font-face {
  font-family: 'Dosis';
  font-weight: 100;
  src: url('../fonts/Dosis-ExtraLight.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Dosis';
  font-weight: 200;
  src: url('../fonts/Dosis-Light.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Dosis';
  font-weight: 300;
  src: url('../fonts/Dosis-Regular.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Dosis';
  font-weight: 400;
  src: url('../fonts/Dosis-Medium.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Dosis';
  font-weight: 500;
  src: url('../fonts/Dosis-SemiBold.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Dosis';
  font-weight: 600;
  src: url('../fonts/Dosis-Bold.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'Dosis';
  font-weight: 700;
  src: url('../fonts/Dosis-ExtraBold.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'KaiGenGothic';
  font-weight: 100;
  src: url('../fonts/KaiGenGothicSC-ExtraLight.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'KaiGenGothic';
  font-weight: 200;
  src: url('../fonts/KaiGenGothicSC-Light.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'KaiGenGothic';
  font-weight: 300;
  src: url('../fonts/KaiGenGothicSC-Normal.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'KaiGenGothic';
  font-weight: 400;
  src: url('../fonts/KaiGenGothicSC-Regular.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'KaiGenGothic';
  font-weight: 500;
  src: url('../fonts/KaiGenGothicSC-Medium.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'KaiGenGothic';
  font-weight: 600;
  src: url('../fonts/KaiGenGothicSC-Bold.ttf');
  font-display: swap;
}

@font-face {
  font-family: 'KaiGenGothic';
  font-weight: 700;
  src: url('../fonts/KaiGenGothicSC-Heavy.ttf');
  font-display: swap;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: 'Dosis', 'KaiGenGothic', sans-serif;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #181818;
  background-color: #fff;
  font-weight: 100;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

h1 {
  font-size: 4.2rem;
  font-weight: 300;
  line-height: 1.4;
}

h2 {
  font-size: 3.6rem;
  font-weight: 300;
  line-height: 1.4;
}

h3 {
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1.5;
}

h4 {
  font-size: 2.1rem;
  font-weight: 300;
  line-height: 1.5;
}

h5 {
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.5;
}

h6 {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.6;
}

p {
  font-size: 1.4rem;
  font-weight: 100;
  line-height: 1.8;
  margin: 1em 0;
  /* 这里用 em 是因为它相对于元素自身的字体大小 */
}

a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #636363;
}

/* ==========================================================================
   3. Layout & Grid
   ========================================================================== */

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

/* 为了防止内容被固定头部遮挡，给 main 添加上边距 */
main {
  /* padding-top: 120px; */
  /* 根据 header 的实际高度调整 */
}


/* ==========================================================================
   4. Header
   ========================================================================== */

#header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: #fff;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0);
}

#header .col-sm-3 {
  display: flex;
  align-items: center;
}

/* col-sm-9 也需要占满剩余宽度 */
#header .col-sm-9 {
  display: flex;
  flex: 1;
  justify-content: flex-end;
}

/* Logo 容器样式 */
#logo {
  display: flex;
  align-items: center;
  margin: 54px 0;
  transition: margin 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: margin;
}

#logo img {
  max-width: 60%;
  transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: max-width;
}

/* 滚动时的样式 */
#header.sticky {
  padding: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#header.sticky #logo {
  margin: 25px 0;
}

#header.sticky #logo img {
  max-width: 40%;
}

#header.sticky .menu {
  margin: 25px 0;
}

#header.sticky .menu a {
  display: block;
  padding: 10px 18px;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 400;
  transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#header.sticky #mobile-menu-button {
  font-size: 2.4rem;
  transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Mobile Menu Styles */
#mobile-menu-button {
  display: none;
  background: transparent;
  border: none;
  font-size: 3.6rem;
  color: #181818;
  padding: 15px;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  transition: color 0.3s ease;
}

#mobile-menu-button:hover {
  color: #636363;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: #fff;
  padding: 60px 0 20px;
  overflow-y: auto;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  right: 0;
  text-align: center;
  padding-top: 96px;
}

.mobile-menu .menu {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mobile-menu .menu li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #eee;
}

.mobile-menu .menu li a {
  display: block;
  padding: 15px 20px;
  color: #181818;
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 300;
  transition: background-color 0.3s ease;
}

.mobile-menu .menu li a:hover {
  background-color: #f5f5f5;
}

.mobile-menu .close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #181818;
  cursor: pointer;
  transition: color 0.3s ease;
}

.mobile-menu .close-button:hover {
  color: #636363;
}

/* ==========================================================================
   5. Navigation
   ========================================================================== */

.menu {
  display: flex;
  align-items: center;
  margin: 50px 0;
  transition: margin 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: auto;
  list-style-type: none;
}

.menu>li {
  float: left;
  margin-left: 20px;
}

.menu a {
  display: block;
  padding: 10px 18px;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  letter-spacing: 4px;
  font-weight: 500;
}


/* ==========================================================================
   6. Slider
   ========================================================================== */

#topslider .swiper-slide {
  position: relative;
  height: 100vh;
  /* 使用视口高度 */
  z-index: 1;
  overflow: hidden;
}

.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-content {
  position: absolute;
  top: 60%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  z-index: 10;
}

/* Slider text animations */
.swiper-slide .text-content>* {
  color: #fff;
  text-align: center;
  margin: 0 auto;
  font-weight: 100;
}

/* Initial states */
.swiper-slide .main-title {
  opacity: 0;
  transform: scale(0.9);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-slide .subtitle-top {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.8rem;
  text-transform: uppercase;
}

.swiper-slide .subtitle-bottom {
  opacity: 0;
  transform: translateY(-30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.6rem;
  margin-top: 10px;
}

.swiper-slide .slider-description {
  opacity: 0;
  transform: translateY(-20px) scale(0.98);
  transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 640px;
  margin: 3em auto 0;
  font-size: 1em;
}

/* Active states */
.swiper-slide-active .main-title {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.8s;
}

.swiper-slide-active .subtitle-top {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.6s;
}

.swiper-slide-active .subtitle-bottom {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 2.2s;
}

.swiper-slide-active .slider-description {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 3.2s;
}


/* 第二张幻灯片的特殊样式 */
.swiper-slide .text-content-second {
  top: 60%;
  left: 40%;
  right: auto;
  width: auto;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.text-content-second .main-title {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  width: auto !important;
  line-height: 1.2;
  letter-spacing: 0.05em;
  margin-bottom: 0.2em;
  opacity: 0;
  transform: translateX(-100px);
}

/* 动画 */
.swiper-slide-active .text-content-second .main-title:first-child {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.8s
}

.swiper-slide-active .text-content-second .main-title:last-child {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 1.6s
}


/* Blinds Effect 百叶窗*/

/* 基础样式 */
.slot-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: 1;
  font-size: 0; /* 消除空白间隙 */
  line-height: 0; /* 消除空白间隙 */
}

.slot {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-100%);
  margin: 0; /* 确保没有外边距 */
  padding: 0; /* 确保没有内边距 */
  font-size: 0; /* 消除空白间隙 */
  line-height: 0; /* 消除空白间隙 */
}

.slot img {
  position: absolute;
  height: 100%;
  width: calc(100vw);
  object-fit: cover;
  object-position: center center;
  left: calc(var(--slot-index) * -100%);
}

/* 动画效果 */
.swiper-slide-active .slot {
  animation: slotSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}


/* 保持前一个slide的slot显示，直到新的slide的slot动画开始 */
.swiper-slide-prev .slot {
  opacity: 1;
  transform: translateX(0);
}

@keyframes slotSlideIn {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* 重置当slide不再active时的状态 */
.swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev) .slot {
  opacity: 0;
  transform: translateX(-100%);
}

/* 为每个slot添加延迟，36个slot */
.swiper-slide-active .slot:nth-child(1) {
  animation-delay: 0s;
}

.swiper-slide-active .slot:nth-child(2) {
  animation-delay: 0.02s;
}

.swiper-slide-active .slot:nth-child(3) {
  animation-delay: 0.04s;
}

.swiper-slide-active .slot:nth-child(4) {
  animation-delay: 0.06s;
}

.swiper-slide-active .slot:nth-child(5) {
  animation-delay: 0.08s;
}

.swiper-slide-active .slot:nth-child(6) {
  animation-delay: 0.10s;
}

.swiper-slide-active .slot:nth-child(7) {
  animation-delay: 0.12s;
}

.swiper-slide-active .slot:nth-child(8) {
  animation-delay: 0.14s;
}

.swiper-slide-active .slot:nth-child(9) {
  animation-delay: 0.16s;
}

.swiper-slide-active .slot:nth-child(10) {
  animation-delay: 0.18s;
}

.swiper-slide-active .slot:nth-child(11) {
  animation-delay: 0.20s;
}

.swiper-slide-active .slot:nth-child(12) {
  animation-delay: 0.22s;
}

.swiper-slide-active .slot:nth-child(13) {
  animation-delay: 0.24s;
}

.swiper-slide-active .slot:nth-child(14) {
  animation-delay: 0.26s;
}

.swiper-slide-active .slot:nth-child(15) {
  animation-delay: 0.28s;
}

.swiper-slide-active .slot:nth-child(16) {
  animation-delay: 0.30s;
}

.swiper-slide-active .slot:nth-child(17) {
  animation-delay: 0.32s;
}

.swiper-slide-active .slot:nth-child(18) {
  animation-delay: 0.34s;
}

.swiper-slide-active .slot:nth-child(19) {
  animation-delay: 0.36s;
}

.swiper-slide-active .slot:nth-child(20) {
  animation-delay: 0.38s;
}

.swiper-slide-active .slot:nth-child(21) {
  animation-delay: 0.40s;
}

.swiper-slide-active .slot:nth-child(22) {
  animation-delay: 0.42s;
}

.swiper-slide-active .slot:nth-child(23) {
  animation-delay: 0.44s;
}

.swiper-slide-active .slot:nth-child(24) {
  animation-delay: 0.46s;
}

.swiper-slide-active .slot:nth-child(25) {
  animation-delay: 0.48s;
}

.swiper-slide-active .slot:nth-child(26) {
  animation-delay: 0.50s;
}

.swiper-slide-active .slot:nth-child(27) {
  animation-delay: 0.52s;
}

.swiper-slide-active .slot:nth-child(28) {
  animation-delay: 0.54s;
}

.swiper-slide-active .slot:nth-child(29) {
  animation-delay: 0.56s;
}

.swiper-slide-active .slot:nth-child(30) {
  animation-delay: 0.58s;
}

.swiper-slide-active .slot:nth-child(31) {
  animation-delay: 0.60s;
}

.swiper-slide-active .slot:nth-child(32) {
  animation-delay: 0.62s;
}

.swiper-slide-active .slot:nth-child(33) {
  animation-delay: 0.64s;
}

.swiper-slide-active .slot:nth-child(34) {
  animation-delay: 0.66s;
}

.swiper-slide-active .slot:nth-child(35) {
  animation-delay: 0.68s;
}

.swiper-slide-active .slot:nth-child(36) {
  animation-delay: 0.70s;
}



/* Slider overlay */
#topslider .swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}


/* Slider Controls      */

.swiper-button-prev,
.swiper-button-next {
  width: 40px;
  height: 40px;
  margin-top: -20px;
  color: #fff;
  transition: all 0.3s ease;
  z-index: 20 !important;
}

/* 移除默认背景图 */
.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 20px;
  font-weight: lighter;
}

/* 添加hover效果 */
.swiper-button-prev:hover,
.swiper-button-next:hover {
  border: 2px solid #fff;
}

/* 确保按钮始终显示 */
.swiper-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled {
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}

/* ==========================================================================
   7. Sections
   ========================================================================== */

.section {
  position: relative;
  padding: 100px 0;
  background: no-repeat center center;
}

/* 添加新的滚动显示相关样式 */
.section.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
}

.section.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.parallax {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  min-height: 400px;
}

/* 可选：添加暗色遮罩提升文字可读性 */
.parallax::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0, 0, 0, 0.3); 可以调整透明度 */
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
  color: #FFF;
  /* 假设在深色背景上使用白色文字 */
  padding: 80px 0;
}

/* Headline */

.headline {
  padding-top: 30px;
  margin-bottom: 70px;
  text-align: center;
  /*opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); */
}

.headline h3,
.headline-2 h3 {
  font-size: 2.1rem;
  font-weight: 200;
}

.headline h6,
.headline-2 h6 {
  font-size: 1.2rem;
  font-weight: 300;
}

.headline-2 {
  margin-bottom: 40px;
}

.headline-2 h6:after {
  content: "";
  border-bottom: 1px solid #AAA;
  width: 200px;
  display: block;
  margin-top: 10px;
}

/* ==========================================================================
   8. Services
   ========================================================================== */

.service-item {
  text-align: center;
  padding: 40px 15px 30px;
  margin-bottom: 30px;
  box-sizing: border-box;
  transition: all 0.3s;
}

.service-item:before,
.service-item:after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
  transition: transform 0.5s;
}

.service-item:before {
  border-right: 1px solid #d7d7d7;
  border-left: 1px solid #d7d7d7;
  transform: scaleY(0);
  transform-origin: 100% 0;
}

.service-item:after {
  border-top: 1px solid #d7d7d7;
  border-bottom: 1px solid #d7d7d7;
  transform: scaleX(0);
  transform-origin: 0 100%;
}

.service-item:hover:before {
  transform: scaleY(1);
}

.service-item:hover:after {
  transform: scaleX(1);
}

.service-item:hover>i {
  color: #181818;
}

.service-item i {
  font-size: 32px;
  text-align: center;
  margin-bottom: 30px;
  color: #181818;
}

/* Fade in Effect*/
/* 初始状态：元素默认隐藏 */
.fade-in-left,
.fade-in-right {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left {
  transform: translate3d(-100%, 0, 0);
}

.fade-in-right {
  transform: translate3d(100%, 0, 0);
}


/* 显示状态的类 */
.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 保留延迟效果 */
.fade-in-left.visible.visible,
.fade-in-right.visible.visible {
  transition-delay: 0.3s;
}


/* ==========================================================================
   9. Team
   ========================================================================== */

#section-team {
  background-image: url(../../images/backgrounds/bg-1.jpg);
  padding: 200px 0;
}

.team-description {
  max-width: 640px;
  margin: 3em auto 0;
  font-size: 1.2em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.3s;
}

.team-description.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   10. Advantage
   ========================================================================== */

.advantage-slider {
  position: relative;
  padding: 0;
  margin-top: -20px;
  overflow: hidden;
}

.advantage-slider .swiper-wrapper {
  display: flex;
  width: 100%;
  height: auto !important;
}

.advantage-slider .swiper {
  padding: 0;
  background-color: transparent;
  overflow: visible;
}

.advantage-slider .swiper-slide {
  height: auto;
  flex-shrink: 0;
  width: calc(50% - 15px);
  background-color: transparent;
}

.advantage-slider .advantage-item {
  position: relative; /* 添加定位上下文 */
  display: flex;
  align-items: flex-start;
  padding: 20px;
  background: transparent;
}

.advantage-slider .advantage-item i {
  font-size: 32px;
  margin-right: 25px;
  margin-top: 5px;
  color: #181818;
  flex-shrink: 0;
}

.advantage-item .advantage-content {
  margin-left: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.advantage-item h4 {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.advantage-item p {
  font-weight: 100;
  line-height: 1.8;
}

/* 分页器样式 */
.advantage-slider .swiper-pagination {
  position: relative;
  bottom: -30px;
  width: 100%;
  text-align: center;
  display: block;
  margin-top: 20px;
}

.advantage-slider .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #181818;
  opacity: 0.3;
  margin: 0 5px;
  display: inline-block;
  /* 确保显示为行内块级元素 */
}

.advantage-slider .swiper-pagination-bullet-active {
  opacity: 1;
  background: #181818;
  /* 确保激活状态的颜色 */
}


.lead {
  margin-left: 0;
}

/* ==========================================================================
   11. Clients
   ========================================================================== */

#section-clients {
  background-image: url(../../images/backgrounds/bg-2.jpg);
  padding: 200px 0;
}

/* CLient LOGOS */


.client-logos {
  list-style: none;
  margin: 0 auto 20px;
  padding: 0 60px;
  /* 减小两侧留白，但保持一定间距 */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.client-logos li {
  width: calc(25% - 40px);
  /* PC端一行4个logo */
  height: 0;
  padding-bottom: calc(25% - 40px);
  /* 保持宽高比 */
  margin: 20px;
  position: relative;
  transition: transform 0.3s ease;
  /* 添加hover效果 */
}

.client-logos li:hover {
  transform: scale(1.05);
  /* hover时略微放大 */
}

.client-logos li img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
  /* 添加过渡效果 */
}

/* ==========================================================================
   12. Data Section
   ========================================================================== */

#section-data {
  background-image: url(../../images/backgrounds/bg-3.jpg);
}

.data-container {
  display: flex;
  justify-content: space-around;
  padding: 60px 0;
  width: 100%;
}

.data-item {
  color: #fff;
  text-align: center;
  transition: transform 0.3s ease;
}

.data-item:hover {
  transform: translateY(-10px);
}

.data-item h3 {
  font-size: 4rem;
  margin-bottom: 15px;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  font-weight: 300;
  letter-spacing: 3px;
}

.data-item.animated h3 {
  opacity: 1;
  transform: translateY(0);
}

.data-item p {
  font-size: 1.8rem;
  opacity: 0.9;
}

.data-item i {
  font-size: 3.2rem;
  line-height: 3.2rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}


/* ==========================================================================
   13. Join Us
   ========================================================================== */

#section-joinus {
  padding: 80px 0;
  background-color: #f7f7f7;
  min-height: 400px;
  display: flex;
  align-items: center;
}

#joinus-logo {
  height: 100%;
  display: flex;
  align-items: center;
  margin: 0;
  /* 移除默认边距 */
}

#joinus-logo img {
  max-width: 85%;
  height: auto;
}

.joinus-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.joinus-content .headline-2 {
  margin-bottom: 10px;
}

.joinus-content p {
  margin-bottom: 20px;
  word-break: keep-all;
  /* PC端也防止在标点符号处换行 */
  white-space: normal;
}

.joinus-content br {
  display: none;
}

.joinus-content p:last-of-type {
  padding-bottom: 45px;
}

.btn-joinus {
  display: inline-block;
  border-color: #d7d7d7;
  background-color: #d7d7d7;
  color: #181818;
  padding: 12px 25px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 300;
  transition: all 0.3s ease;
}

.btn-joinus:hover,
.btn-joinus:focus {
  background-color: #181818;
  color: #fff;
}


/* ==========================================================================
   14. Footer
   ========================================================================== */

#footer {
  background-color: #000;
  padding: 50px 0;
}

.footer-container {
  min-height: 200px;
}

.footer-content {
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-content img {
  max-width: 60%;
  margin: 10px 0;
}

.footer-content .copyright,
.footer-content .contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-items: flex-start;
  margin: 0;
  padding-top: 0;
}

.footer-content .copyright p,
.footer-content .copyright a {
  display: block;
  font-size: 1.2rem;
  letter-spacing: 3px;
  line-height: 1.8rem;
  color: #d7d7d7;
  text-transform: uppercase;
  margin: 5px 0;
}

.footer-content .contact p {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  letter-spacing: 3px;
  line-height: 1.8rem;
  color: #d7d7d7;
  text-transform: uppercase;
  margin: 5px 0;
}


.footer-content .contact i {
  margin-right: 8px;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.footer-content .contact a {
  color: #d7d7d7;
  text-decoration: none;
}

.footer-content .contact br {
  display: none;
}

/* ==========================================================================
   15. Media Queries
   ========================================================================== */

@media only screen and (min-width: 768px) {
  .container {
    width: 73.6rem;
  }
}

@media only screen and (min-width: 1024px) {
  .container {
    width: 99.2rem;
  }
}

@media only screen and (min-width: 1200px) {
  .container {
    width: 116.8rem;
  }
}

@media (max-width: 767px) {

  .container {
    padding-left: 30px;
    padding-right: 30px;
    width: 100%;
  }


  .row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .col-sm-8,
  .col-sm-12 {
    flex: 0 0 100% !important;
    /* 防止 flex-basis 被其他规则覆盖 */
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Header */

  #header {
    padding: 0;
  }

  #logo {
    margin: 30px 0;
  }

  #logo img {
    max-width: 30%;
  }

  #header.sticky #logo img {
    max-width: 25%;
  }

  #mobile-menu-button {
    display: block;
  }

  nav .menu {
    display: none;
  }

  .mobile-menu,
  .mobile-menu-overlay {
    display: block;
  }

  #mobile-menu-button {
    font-size: 3rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  }

  /* Top Slider */
  #topslider .swiper-slide {
    height: 450px;
  }

  /* 禁用百叶窗效果，改用淡入效果 */
  .slot-wrapper {
    display: none !important;
  }

  .slide-bg {
    display: block !important;
    /* 确保背景图片显示 */
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    /* 确保正确的层级 */
  }

  .swiper-slide-active .slide-bg {
    opacity: 1;
  }

  .swiper-slide::before {
    z-index: 2;
    /* 确保遮罩在图片上方 */
  }

  /* Slider Controls */

  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }

  .main-title {
    font-size: 2.8rem;
    letter-spacing: 0.2em;
  }

  .subtitle-top,
  .subtitle-bottom {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }

  .slider-description {
    font-size: 1.2rem;
    max-width: 100%;
    padding: 0 40px;
  }

  .slider-description br {
    display: none;
  }

  .text-content {
    width: 100%;
    z-index: 3;
  }

  /* 第二张幻灯片的特殊样式优化 */

  .text-content-second {
    left: 60px !important;
    width: calc(100% - 40px) !important;
  }

  .text-content-second .main-title {
    font-size: 2.4rem !important;
    letter-spacing: 0.2em;
  }

  /* Common Styles */

  .section {
    padding: 60px 0;
  }

  .headline,
  .headline-2 {
    margin-bottom: 20px;
  }

  .headline-2 {
    /* text-align: center; */
  }


  .headline h3,
  .headline-2 h3 {
    font-size: 2rem;
    font-weight: 300;
  }

  .headline h6,
  .headline-2 h6 {
    font-weight: 400;
  }

  .service-item {
    padding: 20px 40px 20px;
  }

  #section-team,
  #section-clients {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  /* Advantage Slide */
  .advantage-slider .swiper-slide {
    width: 100%;
  }

  .advantage-slider .advantage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    min-height: 200px;
    margin-top: 30px;
  }

  .advantage-slider .advantage-item i {
    margin: 0 0 20px 0;
    font-size: 36px;
  }

  .advantage-slider .advantage-item .advantage-content {
    width: 100%;
    align-items: center;
  }

  .advantage-slider .advantage-item h4 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    text-align: center;
  }

  .advantage-slider .advantage-item p {
    font-size: 1.4rem;
    line-height: 1.6;
    padding: 0 10px;
    text-align: center;
  }

  /* 恢复分页器显示并优化其样式 */
  .advantage-slider .swiper-pagination {
    display: block;
    position: relative;
    bottom: -20px;
    margin-top: 15px;
  }

  .advantage-slider .swiper-pagination-bullet {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 4px;
    background: #181818;
    opacity: 0.3;
  }

  .advantage-slider .swiper-pagination-bullet-active {
    opacity: 1;
  }

  .client-logos {
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .client-logos li {
    width: calc(50% - 20px);
    /* 每行两个，减小间距 */
    padding-bottom: calc(50% - 20px);
    /* 保持宽高比 */
    margin: 10px;
    /* 减小边距 */
    float: none;
    /* 移除浮动 */
    display: block;
    position: relative;
    /* 为图片定位做准备 */
  }

  .client-logos li img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .client-logos::after {
    content: "";
    flex-basis: 100%;
    height: 0;
  }

  .data-container {
    flex-direction: column;
    padding: 80px 0;
    /* 增加整体上下间距 */
  }

  .data-item {
    margin-bottom: 60px;
    padding: 20px 0;
  }

  .data-item:last-child {
    margin-bottom: 0;
  }

  .data-item i {
    font-size: 4rem;
    margin-bottom: 2rem;
  }

  .data-item h3 {
    font-size: 4.5rem;
    margin: 1.5rem 0;
  }

  .data-item p {
    font-size: 1.6rem;
    margin-top: 1.5rem;
  }

  #section-joinus {
    padding: 40px 0;
  }

  #joinus-logo img {
    max-width: 70%;
    /* 将图片缩小到容器宽度的 70% */
    height: auto;
    margin: 0 auto;
  }

  .joinus-content {
    text-align: center;
    margin-top: 20px;
    padding: 0 20px;
  }

  .joinus-content .headline-2 {
    margin-bottom: 25px;
  }

  .joinus-content p {
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    line-height: 1.8;
  }

  .joinus-content br {
    display: inline;
  }

  /* Footer */

  #footer .col-sm-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
  }

  .footer-content img {
    max-width: 60%;
    margin: 0 auto 20px;
  }

  /* 移除 contact 和 copyright 的 flex 布局 */
  .footer-content .copyright,
  .footer-content .contact {
    width: 100%;
    text-align: center;
    margin: 0;
    display: block;
    /* 改为块级元素 */
  }

  /* 统一处理所有段落和链接 */
  .footer-content .copyright p,
  .footer-content .copyright a,
  .footer-content .contact p,
  .footer-content .contact a {
    display: block;
    /* 改为块级元素 */
    text-align: center;
    margin: 5px auto;
    /* 使用 auto 水平居中 */
    width: 100%;
    padding: 0 20px;
  }

  /* 特别处理带图标的段落 */
  .footer-content .contact p i {
    display: inline-block;
    margin-right: 8px;
    width: auto;
    vertical-align: middle;
    /* 调整图标垂直对齐 */
  }

  .footer-content .contact br {
    display: inline-block;
  }

  /* 调整邮箱链接 */
  .footer-content .contact p a {
    display: inline;
    padding: 0;
  }
}



/* 平板电脑特殊处理 */
@media (min-width: 768px) and (max-width: 1024px) {
  .slot-wrapper.tablet-slots {
      font-size: 0;
      line-height: 0;
      display: flex;
      justify-content: space-between;
      overflow: hidden;
  }

  .slot-wrapper.tablet-slots .slot {
      margin: 0;
      padding: 0;
      border: none;
      outline: none;
      overflow: hidden;
      font-size: 0;
      line-height: 0;
  }

  .slot-wrapper.tablet-slots .slot:not(:last-child) {
      margin-right: -1px; /* 消除缝隙 */
  }

  .slot-wrapper.tablet-slots .slot img {
      transform: translateZ(0); /* 启用硬件加速 */
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      image-rendering: -webkit-optimize-contrast; /* 优化图片渲染 */
      image-rendering: crisp-edges;
  }
}