body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #333;
  text-align: center;
  max-width: 100%;
  overflow-x: hidden;
}

.lang-switch {
  text-align: right;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.lang-switch button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

.hero {
  background: #3938CD;
  color: #fff;
  padding: 20px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.hero h1 {
  font-size: 3rem;
  margin: 0;
}

.subtitle {
  font-size: 1.2rem;
  margin-top: 10px;
  font-weight: 300;
}

.cta-btn {
  background: #fff;
  color: #3938CD;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  margin-top: 20px;
}

.cta-btn:hover {
  transform: scale(1.05);
}

.hero-image {
  margin: 20px auto 10px;
  width: 90%;
  max-width: 800px;
  height: 250px;
  background: rgba(255,255,255,0.2);
  border-radius: 15px;
}

.hero-caption {
  font-size: 1.5rem;
  margin: 10px 0 5px;
}

.hero-description {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 10px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
}

.feature-card {
  background: #f7f7f7;
  border-radius: 20px;
  padding: 20px;
  max-width: 280px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 30px 20px;
}

.gallery-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 10px;
}

.gallery-img {
  height: 150px;
  background: #ddd;
  border-radius: 10px;
  margin-bottom: 10px;
}

.footer {
  background: #3938CD;
  color: #fff;
  padding: 20px;
  font-size: 0.9rem;
  margin-top: 30px;
}

.floating-download {
  position: fixed;
  bottom: 20px;
  right: 20px;
  text-align: center;
  background: rgba(255,255,255,0.95);
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.floating-download img {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto 10px;
}

.download-btn {
  display: inline-block;
  background: #3938CD;
  color: #fff;
  padding: 8px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background: #2d2ca3;
}

.hero-download-btn {
  display: inline-block;
  margin-top: 15px;
  background: #fff;
  color: #3938CD;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.hero-download-btn:hover {
  transform: scale(1.05);
}


.hero-caption {
  text-align: center;
  margin: 30px auto;
  max-width: 800px;
  color: #fff;
}
.hero-caption h2 {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.hero-caption p {
  font-size: 1.2rem;
  opacity: 0.95;
}
.gallery-img {
  background: #3938CD;
}


/* 强制图片自适应容器 */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}
.gallery-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}
.gallery-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 20px;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  border-radius: 15px;
  background: #3938CD;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Hero 区最终优化 */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: #3938CD;
  border-radius: 15px;
  overflow: hidden;
  padding: 20px;
}
.hero-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}


/* 网站头部 */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #3938CD;
  color: #fff;
  padding: 10px 20px;
}
.site-header .logo {
  font-size: 1.5rem;
  font-weight: bold;
}
.site-header .nav-links a, .site-header .nav-links button {
  color: #fff;
  margin-left: 15px;
  text-decoration: none;
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero 样式优化：完全自适应显示 */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: #3938CD;
  border-radius: 15px;
  overflow: hidden;
}
.hero-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}


/* Hero 自适应优化 */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: #3938CD;
  border-radius: 15px;
  overflow: hidden;
  padding: 0;
}
.hero-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
/* 让头部固定 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}
body {
  margin: 0;
  }


/* Hero 流式布局最终修正 */
.hero-image {
  display: block; /* 取消 flex，让图片自然撑开 */
  background-color: #3938CD;
  border-radius: 15px;
  overflow: hidden;
  padding: 0;
  margin: 0 auto 20px;
}
.hero-image img {
  display: block;
  width: 100%;
  height: auto; /* 高度由宽度比例决定 */
}


/* Hero 最终修正：完整显示，彻底自适应 */
.hero-image {
  display: block;
  background-color: #3938CD;
  border-radius: 15px;
  margin: 0 auto 20px;
  overflow: visible; /* 不裁切任何内容 */
  width: 100%;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain; /* 保证完整显示 */
}

/* 给 hero 区预留最小高度，避免加载时跳动 */
.hero-image {
  min-height: 300px;
}


/* Hero 透明背景 & 居中布局 */
.hero-image {
  display: block;
  background-color: #3938CD;
  border-radius: 15px;
  padding: 20px 0;
  text-align: center;
  margin: 0 auto 20px;
}
.hero-image img {
  display: inline-block;
  max-width: 90%;
  height: auto;
}


/* Hero 终极版：限制最大高度，防止放大覆盖 */
.hero-image img {
  max-width: 90%;
  max-height: 80vh; /* 限制图片高度不超过视口高度的80% */
  height: auto;
  display: inline-block;
  object-fit: contain;
}


/* Hero v18: 完全自适应浏览器，不超出范围 */
.hero-image {
  background-color: #3938CD;
  border-radius: 15px;
  padding: 20px 0;
  text-align: center;
  margin: 0 auto 20px;
}

.hero-image img {
  display: inline-block;
  max-width: 90%;
  max-height: 80vh;
  height: auto;
  object-fit: contain;
}


/* Hero 最终优化：自适应 & 不超出范围 */
.hero-image {
  background-color: #3938CD;
  border-radius: 15px;
  padding: 20px 0;
  text-align: center;
  margin: 0 auto 20px;
}

.hero-image img {
  display: inline-block;
  max-width: 95%;
  max-height: 80vh; /* 限制最大高度不超出可视区域 */
  height: auto;
  object-fit: contain; /* 保证完整显示 */
}


/* Hero v21: 图片不覆盖文字，容器自适应 */
.hero-image {
  background-color: #3938CD;
  border-radius: 15px;
  text-align: center;
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.hero-image img {
  max-width: 95%;
  max-height: 70vh; /* 留出空间给文字 */
  height: auto;
  object-fit: contain;
}

.hero-text {
  color: white;
  margin-top: 15px;
}


/* Hero v22: 容器高度自适应，图片不超出 */
.hero-image {
  background-color: #3938CD;
  border-radius: 15px;
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden; /* 防止图片超出容器 */
  max-height: 80vh; /* 容器最大高度为浏览器视口80% */
}

.hero-image img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}


/* Hero v23: 添加平滑过渡动画 */
.hero-image img {
  transition: max-width 0.3s ease, max-height 0.3s ease, transform 0.3s ease;
}


/* Hero v24: 容器高度随浏览器变化，图片铺满容器且不变形 */
.hero-image {
  background-color: #3938CD;
  border-radius: 15px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 95%;
  height: 60vh; /* 高度跟随浏览器变化 */
  max-height: 80vh;
  min-height: 300px;
  overflow: hidden;
}

.hero-image img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  transition: max-width 0.3s ease, max-height 0.3s ease, transform 0.3s ease;
}


/* Hero v25: 使用黄金比例调整容器高度 */
.hero-image {
  background-color: #3938CD;
  border-radius: 15px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 95%;
  height: calc(95vw * 0.618); /* 宽度的黄金比例高度 */
  max-height: 80vh;
  min-height: 300px;
  overflow: hidden;
}

.hero-image img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  transition: max-width 0.3s ease, max-height 0.3s ease, transform 0.3s ease;
}


/* 自适应 logo 图片样式 */
.logo-img {
  height: 60px;       /* 增大高度 */
  max-height: 100%;   /* 不超过 header 高度 */
  object-fit: contain;
}
@media (max-width: 768px) {
  .logo-img { height: 50px; }
}
@media (max-width: 480px) {
  .logo-img { height: 40px; }
}
@media (max-width: 768px) {
  /* 手机端布局调整，如导航栏堆叠、内容列数减少等 */
  .nav-links {
    flex-direction: column;
  }
  .features {
    flex-direction: column;
  }
}

/* Header with white background and theme color text */
.site-header {
  background-color: #fff;
  color: #fff;
  margin: 0;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-header .nav-links a {
  color: #3938CD;
  text-decoration: none;
  margin-left: 20px;
}

.site-header .nav-links a:hover {
  text-decoration: underline;
}
.contact-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 30px 0;
}

.contact-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.contact-link img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}
