@charset "utf-8";

/* 基础重置：统一适配基准 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  /* 基准字体，方便 rem 换算 */
  font-size: 16px;
}

/* 引导页容器：全屏背景 */
.splash-page {
  width: 100vw;
  height: 100vh;
  background: url("../images/ydy-bj.jpg") center center / cover no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

/* Logo 区域 */
.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(40px, 8vw, 70px);
  flex-wrap: wrap;
  justify-content: center;
}

.logo-icon {
  /* 自适应图标大小 */
  height: clamp(80px, 18vw, 150px);
}

.logo-text {
  text-align: left;
}

.logo-text .en {
  font-size: clamp(18px, 4vw, 28px);
  font-weight: bold;
  line-height: 1.2;
}

.logo-text .cn {
  font-size: clamp(28px, 8vw, 48px);
  font-weight: bold;
  line-height: 1;
}

/* 标语 */
.tagline {
  font-size: clamp(20px, 6vw, 40px);
  opacity: 0.95;
  margin-top: 1rem;
}

/* 按钮基础样式 */
.chengli {
  border-radius: 10px;
  font-size: 2rem;
  line-height: 1;
  margin-top: clamp(4rem, 10vw, 6rem);
  /* 循环缩放动画 */
  animation: scaleLoop 0.7s infinite alternate ease-in-out;
}
.chengli img {
  height: clamp(40px, 12vw, 70px);
}

/* 动画定义：放大 ↔ 缩小 */
@keyframes scaleLoop {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* 语言按钮容器 */
.lang-buttons {
  display: flex;
  gap: clamp(30px, 10vw, 80px);
  margin-top: clamp(8rem, 18vw, 13rem);
  flex-wrap: wrap;
  justify-content: center;
}

/* 语言按钮样式 */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: clamp(8px, 2vw, 12px) clamp(16px, 4vw, 24px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: clamp(14px, 3vw, 20px);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.lang-btn a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}
.lang-btn::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15));
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.flag {
  width: clamp(28px, 8vw, 40px);
  height: clamp(28px, 8vw, 40px);
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.arrow {
  margin-left: 8px;
  color: #ff3333;
}

/* 小屏手机额外优化（375px 以下） */
@media (max-width: 375px) {
  .logo-area {
    flex-direction: column;
    text-align: center;
  }
  .logo-text {
    text-align: center;
  }
  .lang-buttons {
    flex-direction: column;
    gap: 20px;
  }
}