/* HEADER 置顶抬头 */
body {
  position: relative; /* 确保可以使用 left 属性 */
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    font-family: "CustomFont", Arial, sans-serif;
    background-color: #03063e;
  }

  a {
    color: inherit; /* 继承父元素的文字颜色 */
    text-decoration: none; /* 去除下划线 */
}

  .saudi {
    position: relative;
    text-align: center; /* 默认文字居中 */
    width:auto;
    height: 90%; /* 使图片自适应宽度，保持比例 */
  }

  body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    background-color: #03063e;
    background-size: cover;
    background-position: center;
    z-index: -1; /* 放置在内容后面 */
  }

  .saudi-top-logo {
    margin-top: 10px ;
    height: clamp(32px, 4vw, 48px);
    width: auto;
    object-fit: contain;
  }
  
/* 菜单按钮定位在右上，适当向左缩 */
.menu-btn {
    position: absolute;
    right: 2%;
    top: 30px;
    transform: translateY(-50%);
    font-size: clamp(24px, 3vw, 36px);
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
}
  
    .saudi-button:hover {
      background-color: rgba(157, 157, 157, 0.425);
    }

.form_header {
    position: fixed;
    width: 100%;
    height: 80px;
    z-index: 2000;
    transition: background 0.4s ease;
    display: flex;
    justify-content: center; /* 让 Logo 置中 */
    align-items: center;
    background: #fff;
    color: #fff;
}

.header.scrolled {
    background: rgba(0,0,0,0.85); /* 滚动后完全变黑 */
}

/* LOGO 居中 */
.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-img {
    height: 48px;
    object-fit: contain;
}



.form-menu-btn {
    position: absolute;
    right: 50px;   /* 从贴边变为 18px，更舒适 */
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    border: none;
    background: none;
    color: #1e218c;
    cursor: pointer;
}

  .saudi-back {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95%;
    margin: 30px auto;
  }

  .saudi-back img {
    width: 100%;
    aspect-ratio: 1 / 1; /* 确保1:1比例 */
    object-fit: cover;
  }

    .saudi-back-text {
      text-align: center;
      padding: 0 20px;
      margin: 10px auto;
    }
    .saudi-back-text h1 {
      color: #fff;
      font-size: 36px;
      margin: 0;
    }
    .saudi-back-text p {
      color: #fff;
      font-size: 18px;
      margin: 10px 0 0;
    }

        /* 横屏（landscape）时图片比例为 2.5:1 */
        @media (orientation: landscape) {
          .saudi-back img {
            aspect-ratio: 2.85 / 1;
          }
        }

/* 全局样式 */

/* 渐显动画 */
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* 初始状态 */
.saudi-show-img, .show-window, .textbox {
  opacity: 0;
  transition: opacity 1s ease-out;
}

/* 左滑动画 */
@keyframes slide-right {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 右滑动画 */
@keyframes slide-left {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 触发动画的类 */
.animate-slide-left {
  animation: slide-left 1s ease-out forwards;
}

.animate-slide-right {
  animation: slide-right 1s ease-out forwards;
}

/* 渐显动画类 */
.animate-fade-in {
  animation: fade-in 1s ease-out 0.4s forwards; /* 延迟 0.8s */
}

/* 动画结束 */

.saudi-show {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 94%;
  margin: 50px auto;
}

.saudi-show-img {
  position: relative;
  width: 100%;
  height: 85vh;
  margin: 0 auto;
  overflow: hidden;
}

.saudi-show-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.textbox {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px); /* 保持背景模糊 */
  color: #fff;
  padding: 20px;
}

.textbox .designtext {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.textbox .designtext2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.saudi-show-more {
  font-size: 18px;
  color: #000000;
  background-color: gold;
  width: 180px;
  padding: 6px 12px;
  cursor: pointer;
  text-align: center;
}

.saudi-show-more:hover {
  background-color: rgb(255, 238, 141);
}

.show-window {
  display: none; /* 默认隐藏 */
  background-color: #f1f1f1;
  padding: 20px;
}

.show-window-text {
  max-width: 95%;
  margin: auto;
  text-align: left;
}

.show-window-text h1 {
  font-size: 1.5rem;

}

.show-window-text h2 {
  font-size: 1.25rem;
  margin-bottom: -15px;
}

.show-window-text p {
  font-size: 1rem;
}

.show-window-text-more {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
}

/* 横屏布局 */
@media (orientation: landscape) {
  .saudi-show {
    flex-direction: row;
  }

  .textbox {
    display: none;
  }

  .show-window {
    display: block;
    flex: 1;
  }

  .saudi-show-img {
    flex: 1.5;
    height: auto;
  }
}

/* 竖屏布局 */
@media (orientation: portrait ) {
  .textbox {
    display: block;
  }

  .show-window {
    display: none;
  }
}



/* 展示图片结束 */




.saudi-menu {
  display: none;
  justify-content: center; /* 水平居中菜单 */
  align-items: center; /* 垂直居中菜单项 */
}

.saudi-menu-list {
  display: flex;
  gap: 5px; /* 菜单项间距 */
  padding: 10px;
  margin: 10px auto;
}

.saudi-menu-list-text {
  padding: 10px 15px;
  text-align: center;
  white-space: nowrap; /* 防止文本换行 */
  cursor: pointer; /* 鼠标悬停时显示为手型 */
  transition: background-color 0.3s;
}

.saudi-menu-list-text:hover {
  background-color: #e0e0e0; /* 悬停时背景色变化 */
}

/* designa弹出窗口 */
/* 弹出框初始隐藏 */
/* 弹出框初始隐藏 */
.textbox2, .textbox3, .textbox4, .textbox5, .textbox6, .textbox7 {
  position: fixed;
  bottom: -100%; /* 初始位置在视口下方 */
  width: 94%;
  height: 100vh;
  margin: 0px auto;
  padding: 20px;
  background-color: rgba(255, 255, 255); /* 半透明背景 */
  color: rgb(0, 0, 0);
  transition: bottom 1.2s ease-out, opacity 0.3s ease-out; /* 底部位置和平滑透明度过渡 */
  display: none; /* 初始状态不显示 */
  opacity: 0; /* 初始透明度 */
  overflow-y: auto; /* 纵向滚动条 */
  overflow-x: hidden; /* 禁止横向滚动 */
  z-index: 9999999;
}

/* 弹出框内部样式 */

.show-window-text-pop {
  margin-top: 100px;
  height: 90%;
  width: 94%;
}

.show-window-text-pop h1 {
  margin-top: 10px;
  font-size: 24px;
}

.show-window-text-pop h2 {
  margin-top: 10px;
  font-size: 18px;
}

.show-window-text-pop p {
  margin-top: -8px;
}

/* 关闭按钮样式 */
.close {
  position:absolute;
  right: 5%;
  font-size: 30px;
  color: rgb(255, 255, 255);
  cursor: pointer;
  padding: 0 10px;
  background-color: #be2929;
}

.close:hover {
  padding: 0 10px;
  background-color: #490e0e;
}

/* 按钮样式 */
.more2, .show-window-text-more {
  width: 200px;
  font-size: 20px;
  background-color: #007bff;
  color: white;
  padding: 6px 12px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 0px;
  margin-bottom: 20px;
}

.more2:hover, .show-window-text-more:hover {
  background-color: #54708d;
}

/* 弹出框图片容器样式 */
.textboximg {
  top: 80px;
  width: 100%; /* 容器宽度占满父容器 */
  aspect-ratio: 1.85 / 1; /* 设置宽高比为 4:3 */
  overflow: hidden; /* 确保溢出部分隐藏 */
  position: relative; /* 保持图片居中裁剪 */
}

.textboximg img {
  width: 100%; /* 图片宽度占满容器 */
  height: 100%; /* 图片高度占满容器 */
  object-fit: cover; /* 确保图片按比例填充，不会拉伸 */
}

/* 禁用视口滚动的样式 */
body.no-scroll {
  overflow: hidden; /* 禁用滚动条 */
}