@charset "UTF-8";

/* header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  z-index: 999;
  transition: all 0.3s ease;
}

.header-wrap {
  flex: 1;
  padding: 9px 30px;
  justify-content: space-between;
  align-items: flex-start;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 25px;
  color: rgba(255, 255, 255, 0.45);
  transition: height 0.3s ease;
  overflow: hidden;
}

.header .cp-left,
.header .cp-right {
  align-items: center;
}

.header-logo {
  width: 140px;
  height: 30px;
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: left center;
  background-image: url("../images/logo-white.svg");
}

.header-nav > ul > li {
  position: relative;
  z-index: 1;
  margin-right: 50px;
}

.header-nav > ul > li > a {
  line-height: 30px;
  font-size: 14px;
  color: #fff;
}

.header-nav > ul > li > i {
  display: inline-block;
  font-size: 12px;
  margin-left: 4px;
  transform: translateY(-3px);
  color: #fff;
}

.header-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transform: rotateX(-100deg);
  transform-origin: left top;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.header-nav .sub-menu li {
  padding-top: 15px;
}
.header-nav .sub-menu li a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 20px;
  font-size: 14px;
  color: #c7c7c7;
  white-space: nowrap;
}

.header-nav li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: rotateX(0);
}

.header-nav .sub-menu li a:hover {
  background: linear-gradient(to left, #1260f9, #2fdaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: underline;
}

.header-nav .sub-menu li a:hover::after {
  height: 100%;
}

.header-nav .sub-menu li a:hover i {
  transform: translateX(0);
}

.header-lang,
.header-search {
  margin-left: 15px;
  display: flex;
  line-height: 30px;
  color: #fff;
  transition: all 0.3s ease;
}

.header-lang i,
.header-search i {
  margin-right: 4px;
}

.header-lang:hover,
.header-search:hover {
  color: #fff;
}

/* header-navbar */
.header-navbar {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  padding: 6px 2px;
  cursor: pointer;
  display: none;
}

.header-navbar span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.header-navbar span:nth-child(2) {
  position: relative;
  margin: 5px 0;
}

.header-navbar.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header-navbar.active span:nth-child(2) {
  opacity: 0;
}
.header-navbar.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-meeting {
  padding-left: 10px;
}

.header-nav-meeting {
  display: none;
}

.header-space {
  height: 80px;
}

@media (max-width: 1600px) {
  .header {
    padding: 15px 50px;
  }
  .header-nav > ul > li {
    margin-right: 30px;
  }
}

@media (max-width: 1440px) {
  .header {
    padding: 15px;
  }
}

@media (max-width: 1366px) {
  .header-nav > ul > li {
    margin-right: 15px;
  }
}

@media (max-width: 1200px) {
  .header-search {
    line-height: 28px;
    font-size: 12px;
  }

  .header-search i {
    font-size: 12px;
  }

  .header-logo {
    width: 150px;
    height: 30px;
  }

  .header-wrap {
    height: auto !important;
  }
  .header-nav {
    position: static;
    top: auto;
    left: auto;
    z-index: 1;
    display: block;
    width: 100%;
    flex-basis: 100%;
    order: 3;
    padding-top: 0;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition:
      max-height 0.4s ease,
      opacity 0.35s ease,
      visibility 0.4s ease,
      padding-top 0.4s ease;
  }

  .header-nav.header-nav-active {
    padding-top: 15px;
    max-height: 600px;
    opacity: 1;
    visibility: visible;
  }

  .header-nav > ul {
    flex-direction: column;
  }

  .header-nav > ul > li {
    margin-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .header-nav > ul > li > a {
    display: inline-block;
    line-height: 44px;
    font-size: 15px;
  }

  .header-nav .sub-menu {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-bottom: 0;
    max-height: none;
    overflow: hidden;
  }

  .header-nav li.sub-open .sub-menu {
    max-height: none;
    opacity: 1;
    visibility: visible;
    padding-bottom: 10px;
  }

  .header-nav .sub-menu li {
    padding-top: 0;
  }

  .header-nav .sub-menu li a {
    display: block;
    line-height: 34px;
    font-size: 14px;
    padding-left: 10px;
  }

  .header-nav-meeting {
    display: block;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .header-navbar {
    margin-left: 10px;
    display: block;
  }

  .header-spacer {
    height: 60px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 10px 0;
  }
  .header-wrap {
    padding: 8px 15px;
    border-radius: 18px;
  }
  .header-logo {
    margin-top: 4px;
    width: 120px;
    height: 24px;
  }
  .header-meeting {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-wrap {
    padding: 6px 12px;
  }

  .header-search {
    font-size: 11px;
  }
  .header-search i {
    font-size: 11px;
  }
}

/* alert-search */
.alert-search {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3399;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(21.5px);
  -webkit-backdrop-filter: blur(21.5px);
  box-shadow: rgba(142, 142, 142, 0.19) 0px 6px 15px 0px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.75);
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
}
.alert-search-box {
  width: 100%;
  height: auto;
  padding: 180px 0;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(21.5px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  transform: translateY(-100px);
  visibility: hidden;
  transition: 0.3s;
}
.alert-search-active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.alert-search-wrap {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 30px;
}

.alert-search-form h3 {
  text-align: center;
}

.alert-search-form form {
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.alert-search-form form input {
  display: block;
  width: 100%;
  line-height: 30px;
  padding: 10px;
  outline: none;
  border: none;
  flex: 1;
  background-color: rgba(255, 255, 255, 0);
  backdrop-filter: blur(21.5px);
  -webkit-backdrop-filter: blur(21.5px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 25px;
  color: rgba(255, 255, 255, 0.75);
}

/* ================================================================
   公共弹窗（cp-alert）
   用法: <div class="cp-alert 自定义类">...</div>
   ================================================================ */

.cp-alert {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.3s ease,
    opacity 0.3s ease;
}

.cp-alert.active {
  visibility: visible;
  opacity: 1;
}

.cp-alert-mask {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.cp-alert-container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  width: 100%;
  cursor: default;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.cp-alert.active .cp-alert-container {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 关闭按钮 */
.cp-alert-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cp-alert-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.cp-alert-close span {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 1px;
  background-color: #fff;
  transform: rotate(45deg);
}

.cp-alert-close span::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 16px;
  height: 1px;
  background-color: #fff;
  transform: rotate(90deg);
}

/* 移动端遮罩和关闭按钮 */
@media (max-width: 768px) {
  .cp-alert-mask {
    padding: 15px;
    align-items: flex-end;
  }

  .cp-alert-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }

  .cp-alert-close span,
  .cp-alert-close span::before {
    width: 14px;
  }
}

@media (max-width: 480px) {
  .cp-alert-mask {
    padding: 0;
  }
}
