@import url("./public.css"); /* 通用样式 */

/* 全局字体样式 */
@font-face {
  font-family: "tzt";
  src: url("/static/font/title.otf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

.header-banner-box {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  /* background-color: rgba(2, 66, 240, 0.199); */
  /* 半透明背景 */
  background: rgba(255, 255, 255, 0.2);
  /* 毛玻璃效果 */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  z-index: 999;
}

/* 手机端 */
.mobile-banner {
  display: none;
}

.header-banner-box .header-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1200px;
}

.header-banner-box .header-banner-logo {
  margin: 10px 0;
  /* width: 15vw; */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 26px;
  font-weight: 600;
  /* font-family: "tzt", serif; */
}

.header-banner-logo .banner-logo-box {
  /* width: 50px; */
  height: 50px;
  /* background-color: #000; */
}

.header-banner-box .header-banner-tel {
  font-size: 24px;
  font-weight: bold;
  width: 25vw;
  text-align: center;
}

.header-banner-box .header-banner-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 40vw;
  /* flex-grow: 1; */
  /* margin-right: 5vw; */
  font-weight: 600;
  /* color: #fff; */
  /* font-size: 20px; */
}

.header-banner-nav nav {
  width: 85%;
}
nav ul {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-grow: 1;
}
nav ul li {
  list-style-type: none;
  cursor: pointer;
}

nav ul li a {
  /* color: #df0404; */
  text-decoration: none; /* 去除默认的下划线 */
}

nav ul li a p {
  text-align: center;
}
/* 触发样式 */
.nav-pitch {
  /* font-size: 18px; */
  color: #ffffff;
}
/* 默认样式 */
.nav-default {
  color: #fff;
}
/* 中文 */
.nav-txt-zh {
}
/* 英文 */
.nav-txt-en {
  font-size: 15px;
  /* color: #616d8a; */
}

/* 鼠标移入时，字体变深，加粗 */
nav ul li a:hover {
  /* color: #ff8d1a; */
  font-weight: 600;
}
/* 选择时，字体变深，加粗 */
.highlight {
  /* color: #ff8d1a; */
  font-weight: 600;
}

.header-banner-language {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 30px;
  cursor: pointer;
}

.header-banner-box .header-banner-expand {
  display: none;
  margin: 10px 20px;
  color: #000;
}

/* 大图 */
.header-picture-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* 设置宽高比为 2:1 */
  /* aspect-ratio: 2 / 0.75; */
  /* 保持图片比例并填充容器 */
  object-fit: cover;
  margin: auto;
  overflow: hidden;
  /* z-index: -1; */
}

/* 轮播控制按钮基础样式 */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3); /* 半透明黑色背景 */
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100; /* 确保按钮在图片上方 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 左按钮定位 */
.carousel-control-prev {
  left: 20px;
}

/* 右按钮定位 */
.carousel-control-next {
  right: 20px;
}

/* 按钮图标样式 */
.control-icon-left {
  width: 20px;
  height: 20px;
  background-image: url(../icon/left.svg);
  /* 只显示一张，不重复 */
  background-repeat: no-repeat;
  /* 核心：完整显示图片（按比例缩放，确保图片不被裁剪） */
  background-size: contain;
  /* 图片在容器中居中显示 */
  background-position: center;
}

.control-icon-right {
  width: 20px;
  height: 20px;
  background-image: url(../icon/right.svg);
  /* 只显示一张，不重复 */
  background-repeat: no-repeat;
  /* 核心：完整显示图片（按比例缩放，确保图片不被裁剪） */
  background-size: contain;
  /* 图片在容器中居中显示 */
  background-position: center;
}

/* 悬浮效果 */
.carousel-control:hover {
  background-color: rgba(28, 123, 255, 0.8); /*  hover时变为主题色 */
  transform: translateY(-50%) scale(1.1); /* 轻微放大 */
}

/* 禁用状态（可选，当只有一张图时隐藏） */
.carousel-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
}

/* 轮播图内部容器 */
.carousel-inner {
  position: relative;
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}

/* 单个轮播项 */
.carousel-item {
  position: relative;
  min-width: 100%;
  height: 100%;
  box-sizing: border-box;
  /* background-image: url("/static/picture/wybanner.svg"); */
}

.carousel-item img {
  width: 100%;
  display: block;
  /* z-index: -1; */
}
.carousel-item .banner-img-content {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  /* z-index: 10; */
  height: 100%;
}
.banner-img-content .banner-img-text-box {
  height: 100%;
  width: 1200px;
  /* border: 1px solid #000; */
  display: flex;
  align-items: center;
}

/* 切换按钮 */
.carousel-inner .swiper-button-prev {
  position: relative;
  width: 12px;
  height: 22px;
  left: 100px;
  background-image: url(../icon/left.svg);
  border: 1px solid #000;
}
.carousel-inner .swiper-button-next {
}

.banner-img-text-box .banner-img-text {
}

.banner-img-text .banner-img-text-title {
  color: #fff;
  font-weight: 600;
  font-size: 40px;
}
.banner-img-text .banner-img-text-desc {
  font-size: 16px;
  color: #c3dcff;
  margin-top: 20px;
  width: 50%;
  line-height: 1.5em;
}
.banner-img-text .banner-img-text-btngroup {
  position: absolute;
  margin-top: 40px;
  display: flex;
  align-items: center;
}
.banner-img-text-btngroup .banner-img-text-btn {
  /* background-color: #1c7bff; */
  border-radius: 5px;
  padding: 10px 40px;
  color: #fff;
  margin-right: 10px;
  cursor: pointer;
  border-width: 2px;
  border-style: solid;
  z-index: 10;
}

/* 根据屏幕大小进行样式更换 */

@media screen and (max-width: 768px) {
  .header-banner-box {
    display: none;
  }
  .mobile-banner {
    display: block;
    height: 12vw;
    background-color: #0c5ed1;
  }

  .real-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 12vw;
    background-color: #0c5ed1;
    z-index: 15;
  }
  .real-banner .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 30px;
  }
  .inner .inner-icon {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    /* font-family: "tzt", serif; */
  }
  .inner .inner-menu {
    width: 30px;
    height: 30px;
    color: #fff;
    z-index: 16;
    /* border: 1px solid #000; */
  }

  /* 拓展导航栏 */
  .mobile-banner-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding-top: 12vw;
    transform: translate(0, -120%);
    background-color: #fff;
    z-index: 13;
    transition: all 0.3s linear 0s;
  }

  /* 激活状态：显示导航栏 */
  .mobile-banner-nav.active {
    transform: translate(0, 0);
  }

  .mobile-banner-nav .mobile-nav-item {
    color: #121e2f;
  }

  .mobile-nav-item-a {
    display: block;
    color: #121e2f;
    font-size: 4.6vw;
    border-bottom: 1px solid #eee;
    padding: 3.2vw;
    width: 100%;
  }

  .header-picture-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3/2; /* 设置宽高比为 2:1 */
    object-fit: cover; /* 保持图片比例并填充容器 */
  }
  /* 背景图片 */
  .banner-img {
    width: 100%;
    height: 100%;
  }

  .carousel-item .banner-img-content {
    left: 0;
    transform: none;
  }
  .banner-img-content .banner-img-text-box {
    height: 100%;
    height: 100%;
  }
  .banner-img-text-box .banner-img-text {
    margin: 0 20px;
  }
  .banner-img-text .banner-img-text-title {
    font-size: 24px;
  }
  .banner-img-text .banner-img-text-desc {
    line-height: 24px;
    font-size: 12px;
    margin: 15px 0;
    width: 90vw;
    /* border: 1px solid #000; */
  }
  .banner-img-text .banner-img-text-btngroup {
    margin-top: 0;
  }
  .banner-img-text-btngroup .banner-img-text-btn {
    padding: 5px 20px;
    font-size: 12px;
  }
}
