span:lang(en) {
  display: none;
}

body {
  width: 100%;
  scale: 1.0;
  overflow: hidden;
  /* 防止页面滑动 */
}

.text-center {
  text-align: center;
}

.text-bold {
  font-weight: bold;
}

.logo {
  width: 180px;
  height: 75px;
  margin-top: 10px;
}

/* 定义一个名为.col 的类，使用 flex 布局，子元素纵向排列，水平和垂直方向上都居中对齐 */
.col {
  display: flex;
  flex-direction: column;

}
.colc{
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 定义一个名为.overlay 的类，初始状态下不显示，定位为固定定位，覆盖整个视口，有阴影效果，具有较高的 z-index 保证在其他元素之上 */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: 2px 2px 4px #000;
  z-index: 10;
}

/* 定义一个名为.popup 的类，用于弹出窗口，固定定位，初始位置稍偏离中心，有透明背景，有圆角，使用背景图片，背景图片的显示方式和位置也有相应设置，具有更高的 z-index 保证在遮罩层之上，有过渡效果 */
.popup {
  display: none;
  position: fixed;
  top: -18%;
  left: 82%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 1);
  padding: 20px;
  width: 300px;
  height: 180px;
  border-radius: 10px;
  /* background-image: url("https://gz-plant.oss-cn-hangzhou.aliyuncs.com/photonchess/images/logo-mini.png"); */
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 20;
  transition: top 0.3s ease;
}

/* 定义一个名为.popup-content-title 的类，使用公共类实现文本居中对齐和加粗，设置了字体大小、颜色和文本的排列方向 */
.popup-content-title {
  font-size: 20px;
  color: rgb(32, 32, 32);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  /* 使用公共类 */
  text-align: center;
  font-weight: bold;
}

/* 定义一个名为.popup-close-btn 的类，用于关闭弹出窗口的按钮，绝对定位在弹出窗口的右上角，设置了字体大小、加粗和光标样式 */
.popup-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 25px;
  font-weight: bold;
  color: #3a3a3a;
  cursor: pointer;
}

/* 定义一个名为.popup-content-email-title 的类，使用公共类实现文本加粗，设置了颜色和字体大小 */
.popup-content-email-title {
  color: #444444;
  font-size: 20px;
  /* 使用公共类 */
  font-weight: bold;
}

/* 定义一个名为.popup-content-email 的类，用于弹出窗口中的邮件内容，设置了上外边距、字体大小、字体和颜色 */
.popup-content-email {
  margin-top: 20px;
  font-size: 18px;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  color: #6d6d6d;
}

/* 全局样式，设置所有元素的外边距、内边距为 0，并使用 border-box 盒模型 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* overflow: hidden; */
  /* 暂时隐藏，如果会出现滚动再考虑打开 */
}


/* 定义一个名为.navbar 的类，用于导航栏，设置宽度为 100%，半透明背景，模糊效果，隐藏溢出，绝对定位，有一定高度，使用 flex 布局并在水平和垂直方向上均匀分布子元素 */
.navbar {
  width: 100%;
  background-color: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: absolute;
  z-index: 1;
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

/* 定义一个名为.left-nav 的类，使用 flex 布局，将子元素向左对齐并居中对齐 */
.left-nav {
  flex-grow: 5;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  overflow: hidden;

}


/* 定义一个用于导航栏中 a 元素的样式，设置显示为块级元素，设置颜色、内边距、文本对齐方式和字体大小 */
.navbar>a {
  display: block;
  color: rgb(233, 233, 233);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 24px;
  text-decoration: none;
  /* 去除下划线 */
  color: inherit;
  /* 继承父元素的颜色 */
}

/* 定义一个用于导航栏中 a 元素的鼠标悬停样式，添加浅白色背景和圆角，改变文本颜色 */
.navbar a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  color: black;
}

a:hover,
a:active,
a:visited {
  text-decoration: none;
  /* 去除鼠标悬停、点击和访问后的下划线 */
  color: inherit;
  /* 继承父元素的颜色 */
}



/* 中间导航栏 */
.center-nav {
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-grow: 1;
}

/* 预约按钮 */
.reserva {
  position: relative;
  padding: 0 10px;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  transition: all 0.1s;
  text-align: center;
  /* background-color: #E71C19; */
  font-weight: bold;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reserva:hover {
  background-color: rgba(255, 255, 255, 0.1);

}

.reserva::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: #0D3054;
  transition: all 0.3s ease;
}

.reserva::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #E71A1A;
  transition: all 0.3s ease;
}

/* 当鼠标悬停在.title 元素上时，展开下划线 */
.reserva:hover::after {
  left: 0;
  width: 100%;
}

.reserva>span {
  min-width: 120px;
  text-align: center;

}


.dropdown-content {
  margin-top: 20px;
  color: #000000;
  position: absolute;
  top: 80%;
  left: 20px;
  width: 460px;
  height: 320px;

}

.dropdown-box,
.dropdown-box-en {
  background-color: rgba(255, 255, 255, 1);
  padding: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  flex-direction: flex-start;
  align-items: flex-start;
  z-index: 10;
  font-size: 16px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  display: none;

}



.dropdown-box .btn,
.dropdown-box-en .btn {
  color: #fff;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  background-color: #0F305B;
  border-radius: 10px;
}



.dropdown-content p {
  padding: 10px;
}

.dropdown-bigTitle {

  font-weight: 900;
  color: #0F305B;
  font-size: 22px;
  margin: 20px;
  width: auto;
}

.dropdown-title {
  color: #0F305B;
  font-size: 20px;
  display: inline-block;
  font-weight: 900;
  padding: 10px;
}

.dropdown-text {
  padding-left: 20px;
  color: #6d6d6d;
}


.dropdown-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* transform: ; */
}

.card {
  height: 100%;
  width: 100%;
  position: absolute;
  display: flex;
  place-content: center;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  left: 0;
  top: 0;
  z-index: -1;
}

.card::before {
  content: '';
  position: absolute;
  width: 400px;
  /* background-image: linear-gradient(180deg, #0F305B, #E71C19); */
  background-color: #E71C19;
  height: 180px;
  animation: rotBGimg 5s linear infinite;
  transition: all 1s linear;
  /* 设置旋转中心点为元素的左边中心 */
  transform-origin: left;
  transform: translate(0%, -50%);
  margin-left: 320px;
}


@keyframes rotBGimg {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.card::after {
  content: '';
  position: absolute;
  background: #fff;
  inset: 5px;
  border-radius: 10px;
}

.doubt-btn1 {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-weight: 900;
  border-radius: 100px;
  border: 2px solid #fff;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.doubt1 {
  margin: 10px 0;
  font-size: 15px;
  color: #6d6d6d;
  opacity: 0
}
.doubt3 {
  margin: 10px 0;
  font-size: 15px;
  color: #6d6d6d;
  opacity: 1
}









/* 右侧导航栏 */
.right-nav {
  /* flex-grow: 1; */
  /* padding: 20px; */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  /* margin-right: 20px; */
  height: 100%;
  position: relative;
}

.right-nav .btn {
  display: flex;
  /* flex-direction: row; */
  justify-content: center;
  align-items: center;
  position: relative;
  min-width: 120px;
  height: 100%;
  cursor: pointer;
  font-size: 20px;
  color: rgb(255, 255, 255);
  text-align: center;
  margin: 0 5px;
}

.right-nav .btn:hover {
  background-color: rgba(255, 255, 255, 0.1);

}


.right-nav .btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: #0D3054;
  transition: all 0.3s ease;
}

/* 当鼠标悬停在.title 元素上时，展开下划线 */
.right-nav .btn:hover::after {
  left: 0;
  width: 100%;
}


.right-nav .btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #E71A1A;
  transition: all 0.3s ease;
}

.right-nav .language-switcher {
  color: #fff;
  /* padding: 10px; */
  cursor: pointer;
  width: 60px;
  text-align: center;
}

.language-switcher>div {
  padding: 10px;
}

.language-switcher #zh {

  display: none;
}

.language-switcher #en {
  display: block;
}

.right-nav .language-switcher:hover {
  background-color: rgba(255, 255, 255, 0.1);
}







/* 定义一个用于.logo 的鼠标悬停样式，放大图片，有过渡效果 */
.logo:hover {
  transform: scale(1.1);
  transition: all 0.5s;
}

/* 定义一个名为.main-content 的类，用于主体内容，设置最小高度和高度为视口高度，使用 box-sizing 避免内边距撑大元素，允许垂直滚动，设置背景颜色和相对定位 */
.main-content {
  min-height: calc(100vh);
  height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
  background-color: #3A4649;
  position: relative;
}

/* 定义一个名为.main-bg-img 的类，用于主体内容中的背景图片，宽度占满主体区域，高度自适应，绝对定位，设置最大高度， */
.main-bg-img {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  max-height: 100vh;
  object-fit: cover;
  /* 使用 object-fit 使图片按比例缩放并裁剪多余部分 */
  overflow-y: hidden;
  background-attachment: fixed;
}

#loading,
#loadingbg,
#imagebg {
  transition: opacity 0.3s ease - in - out;
}

/* 定义一个名为.main-loading-img 的类，用于主体内容中的加载图片，设置宽度、高度、位置和 z-index 保证在其他元素之上，居中显示 */
.main-loading-img {
  width: 94px;
  height: 94px;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* 定义一个名为.main-loading-bg 的类，用于主体内容中的另一个加载元素，设置宽度、高度、位置和 z-index 保证在其他元素之上，居中显示 */
.main-loading-bg {
  width: 94px;
  height: 94px;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}


/* 内容中的图片，绝对定位，设置宽度和位置，z-index 保证在其他元素之上，使用 translate 居中显示 */
.main-img-name {
  /* position: fixed; */
  position: absolute;
  top: 21%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* z-index: 1; */
  width: 90vw;
}

.main-img-logo {
  /* position: fixed; */
  position: absolute;
  top: 31%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* z-index: 1; */
  width: 10vw;
}

/* .main-img-chinese {
  width: 250px;
  position: absolute;
  top: 85%;
  transform: translate(-50%, -50%);
}

.main-img-english {
  width: 650px;
  position: absolute;
  top: 93%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
} */

/* 定义一个名为.platform-content 的类，用于主体内容中的平台元素，绝对定位在右下角，z-index 保证在其他元素之上 */
.platform-content {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 3;
}

/* 定义一个用于.platform-content 中的图片的样式，设置宽度 */
.platform-content.main-img-platform {
  width: 150px;
}

/* 隐藏.main-content 元素的滚动条 */
.main-content::-webkit-scrollbar {
  display: none;
}

/* 定义.main-content 元素的滚动条轨道的样式，设置背景颜色 */
.main-content::-webkit-scrollbar-track {
  background-color: #283032;
}

/* 定义.main-content 元素的滚动条滑块的样式，设置颜色和圆角 */
.main-content::-webkit-scrollbar-thumb {
  background-color: #556366;
  border-radius: 4px;
}

/* 定义一个名为.subtitle 的类，用于主体内容中的副标题，绝对定位，设置位置、文本对齐方式、颜色、字体大小、加粗和文本阴影 */
.subtitle {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translate(-50%, -30%);
  z-index: 3;
  text-align: left;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px #000;
  text-align: center;
}










@media (min-width: 1440px) and (max-width: 2560px) {
  .main-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    min-height: 100vh;
  }

  .main-img-name {
    width: 80vw;
    top: 30%;
  }

  .main-img-platform {
    width: 200px;
  }

  .subtitle {
    width: 80%;
    flex-wrap: nowrap;
    font-size: 28px;
  }


}

@media (min-width: 1024px) and (max-width: 1440px) and (max-height: 1200px) {

  .main-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    min-height: 100vh;
  }

  .main-img-name {
    width: 80vw;
    top: 25%;
  }

  .subtitle {
    width: 80%;
    flex-wrap: nowrap;
    font-size: 24px;
  }

  .main-img-platform {
    width: 200px;
  }
}

/* 媒体查询：平板电脑及以下设备（最大宽度为 1024px） */
@media screen and (max-width: 1024px) {
  .main-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    min-height: 100vh;
  }


  .navbar a {
    font-size: 20px;
    padding: 10px 12px;
  }

  .join-button {
    width: 120px;
    height: 40px;
    font-size: 16px;
  }

  .join-button:hover {
    font-size: 18px;
  }

  .main-img-name {
    width: 80vw;
    top: 30%;
  }

  .main-img-platform {
    width: 150px;
  }

  .subtitle {
    width: 80%;
    flex-wrap: nowrap;
    font-size: 18px;
  }

  .logo {
    width: 120px;
    height: 50px;
    margin-top: 0;
  }
}

@media screen and (max-width: 1024px) and (max-height: 600px) {
  .main-bg-img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    max-height: 100vh;
    object-fit: cover;
    background-size: cover;
    background-position: center center;
    /* background-attachment: fixed; */
    /* overflow-y: hidden; */
  }

  .main-img-name {
    width: 80vw;

    top: 40%;
  }

  .main-img-platform {
    width: 120px;
  }

}



/* 媒体查询：手机设备（最大宽度为 768px） */
@media screen and (max-width: 768px) {


  .main-bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 将图片居中 */
    /* width: auto;
    height: auto; */
    max-height: 100vh;
    /* object-fit: contain; */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    /* overflow-y: hidden; */
  }

  .navbar {
    padding: 0 10px;
    height: 60px;
    flex-direction: row;
    justify-content: space-between;
  }

  .left-nav {
    justify-content: center;
  }

  .navbar a {
    font-size: 18px;
    padding: 8px 10px;
  }

  .logo {
    width: 120px;
    height: 50px;
    margin-top: 0;
  }

  .join-button {
    width: 100px;
    height: 36px;
    font-size: 14px;
  }

  .join-button:hover {
    font-size: 16px;
  }

  .main-img-name {
    width: 80vw;

  }

  .main-img-platform {
    width: 100px;
  }

  .subtitle {
    width: 80%;
    flex-wrap: nowrap;
    font-size: 16px;
    bottom: 80px;
    left: 50%;
    transform: translate(-50%, 0);
  }

  .popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 1);
    padding: 20px;
    width: 250px;
    height: 150px;
    border-radius: 10px;
    /* background-image: url("./images/logo-mini.png"); */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 20;
    transition: top 0.3s ease;
  }
}

@media screen and (max-width: 768px) and (max-height: 400px) {
  .main-bg-img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 将图片居中 */
    max-height: 100vh;
    object-fit: cover;
    background-size: cover;
    background-position: center center;
    /* background-attachment: fixed; */
    /* overflow-y: hidden; */
  }

  .main-img-name {
    width: 500px;
    top: 40%;
  }
}

@media screen and (max-width: 320px) {
  .main-img-name {
    width: 300px;
    top: 40%;
  }

  .reserva>span {
    min-width: 80px;
    text-align: center;
  }

  .right-nav .btn {
    min-width: 80px;
  }




}

@media screen and (max-width: 450px) and (max-height: 1000px) {
  .main-bg-img {
    width: auto;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 将图片居中 */
    max-height: 100vh;
    object-fit: cover;
    background-size: cover;
    background-position: center center;
    /* background-attachment: fixed; */
    /* overflow-y: hidden; */
  }

  .main-img-name {
    width: 90vw;
    top: 40%;
  }

  .left-nav {
    display: none;
  }

  .reserva>span {
    min-width: 80px;
    text-align: center;
  }

  .right-nav .btn {
    min-width: 80px;
  }



}

@keyframes borderAnimation {
  0% {
    width: 0;
  }

  25% {
    width: 100%;
  }

  50% {
    width: 100%;
    height: 2px;
    top: 0;
    left: 100%;
    transform: rotate(90deg);
  }

  75% {
    width: 100%;
    height: 2px;
    top: 100%;
    left: 100%;
    transform: rotate(180deg);
  }

  100% {
    width: 0;
    height: 2px;
    top: 100%;
    left: 0;
    transform: rotate(270deg);
  }
}