/* === 全局基础 === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 12px;
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  color: #212121;

  /* 🎨 渐变 + 背景图叠加 */
  background:
    linear-gradient(180deg, #d0f5e2 0%, #f5f5f5 70%);

  overflow-x: hidden;
}

.banner {
  width: 95rem;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  /* 让整个块左右居中 */
}

.page {
  display: flex;
  flex-direction: column;
  /* height: 100vh; */
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1rem;
}

/* 顶部布局 */
header {
  display: flex;
  justify-content: space-between;
  /* 左右分布 */
  align-items: center;
  /* 垂直居中 */
  width: 100%;
  padding: 1rem 2rem;
  box-sizing: border-box;
  background: transparent;
}

/* 左边：logo + 标题 */
.header-left {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  /* logo 与标题间距 */
}

.logo {
  width: 2rem;
  height: 2rem;
}

.title {
  font-size: 2rem;
  font-weight: 1000;
  color: #212121;
  font-family: "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

/* === 语言切换容器 === */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* === 通用按钮样式 === */
.lang-btn {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  color: #999;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

/* === 主体部分 === */
.main {
  width: 100%;
  height: 100%;
  text-align: center;
  margin-top: 7rem;
  background: url("./img/background.png") no-repeat center center / cover;
  background-size: 65rem;
  /* background-size: 99.17rem; */
}

.subtitle {
  /* font-size: 5rem;
  font-weight: 700;
  margin-bottom: 5rem; */

  height: 5rem;
  font-family: Source Han Sans SC, Source Han Sans SC;
  font-weight: bold;
  font-size: 5rem;
  color: #212121;
  line-height: 5rem;
  text-align: center;
  font-style: normal;
  text-transform: none;
}

.download-buttons {
  margin-top: 5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

/* 弹窗背景 */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
}

/* 弹窗内容 */
.modal-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.qr-img {
  width: 180px;
  height: 180px;
  margin-top: 10px;
}

.close {
  position: absolute;
  right: 10px;
  top: 5px;
  font-size: 20px;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.btn {
  text-decoration: none;
  background-color: #0cc160;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(12, 193, 96, 0.5);
  width: 18.5rem;
}

.btn-font {
  font-size: 1.3rem;
}

.btn:hover {
  background-color: #0bb157;
}

.icon {
  width: 24px;
  height: 24px;
}

.preview img {
  margin-top: 2rem;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* === 底部 Footer === */
.footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  font-weight: 600;
}

.lang-cn,
.lang-en {
  cursor: pointer;
  color: #333;
}

.lang-en:hover {
  text-decoration: underline;
}

/* === 响应式布局 === */
@media (max-width: 768px) {
  .title {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .logo {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 1rem 0.5rem;
  }

  .title {
    font-size: 1.25rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
}