/* 全局样式 */
html, body {
  margin: 0;
  padding: 0;
  /* height: 100%; */
  background: #B4FDA4;
  font-family: 'Smiley Sans', sans-serif;
  font-size: 10px; /* 将 1rem 设置为 10px */
  overflow-x: hidden; /* 禁用横向滚动 */
}

@font-face {
  font-family: 'Smiley Sans';
  src: url('./fonts/SmileySans-Oblique.woff2') format('woff');
}

/* 背景容器 */
.background-container {
  width: 100%;
  height: 100%;
  background-color: #B4FDA4;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 导航栏 */
.navbar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 0 1rem 0;
}

.logo img {
  width: 10rem;
  height: 4rem;
}

/* 主体内容 */
.main-container-fa {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-content {
  width: 100%;
  padding: 0rem 0 0rem 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1.6rem;
}

.content-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.app-icon {
  width: 0;
  height: 0;
}

.description {
  color: rgba(0, 0, 0, 0.4);
  font-size: 1.4rem;
  font-weight: 400;
}

.main-text {
  color: black;
  font-size: 4.8rem;
  font-weight: 400;
  text-align: center;
}

/* 下载按钮 */
.download-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.buttons {
  display: flex;
  gap: 2rem;
}

.button {
  width: 16rem;
  height: 5.6rem;
  background: #fff;
  border: 1px solid #F0F0E9;
  border-radius: 99rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  max-width: 200px;
}

.mobile-appStore {
  width: 10rem;
  height: 10rem;
}

.mobile-Android {
  width: 100%;
  max-width: 180px; /* 你可以根据实际需要调整 */
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* 手机 */
.phone-1 {
  width: 22rem;
  position: relative;
  right: -7rem;
  top: 4rem;
  z-index: 1;
}

.phone-2 {
  width: 24rem;
  position: relative;
  left: -7rem;
  bottom: 43rem;
}

/* 添加上下浮动动画 */
@keyframes float-1 {
  0%, 100% {
    transform: translateY(8rem);
  }
  50% {
    transform: translateY(6rem);
  }
}

@keyframes float-2 {
  0%, 100% {
    transform: translateY(8rem);
  }
  50% {
    transform: translateY(6rem);
  }
}

/* 为手机图片添加浮动动画 */
.phone-container-1 img {
  animation: float-1 6s ease-in-out infinite;
}

.phone-container-2 img {
  animation: float-2 6s ease-in-out infinite;
  animation-delay: -1s;
}

/* 提示 */
.tip {
  width: 15rem;
  height: 4rem;
  border-radius: 2rem;
  background-color: rgba(0, 100, 50, .2);
  font-size: 1.4rem;
  font-weight: 400;
  color: white;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  position: absolute;
  bottom: 3rem;
  z-index: 2;
}

.bounce-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(1rem);
  }
  50% {
    transform: translateY(-1rem);
  }
}

/* 特点容器 */
.feature-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: -16rem;
}

.feature {
  width: 90%;
  display: flex;
  flex-direction: column;
}

.feature-title {
  color: black;
  font-size: 2rem;
  font-weight: 400;
  line-height: 2.8rem;
}

.left-section {
  width: 100%;
}

.card-column {
  height: 16rem;
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  flex: 1;
  background: white;
  border-radius: 1.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 1rem;
  overflow: hidden;
}

.card-image {
  width: 10rem;
  border-radius: 0.8rem;
  border: 1px solid #F0F0E9;
  position: absolute;
  top: 2rem;
  right: 2rem;
}

.right-section {
  width: 100%;
}

.card-row {
  height: 16rem;
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  flex: 1;
  background: white;
  border-radius: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-description {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.focus-button {
  display: flex;
  align-items: center;
  padding: 1.6rem;
  background: white;
  border: 1px solid #F0F0E9;
  border-radius: 2rem;
  gap: 1rem;
}

.icon-focus {
  width: 2rem;
  height: 2rem;
}

.focus-text {
  color: #0A0000;
  font-size: 1.4rem;
  font-weight: 600;
}

.action-card {
  height: 20rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #FFBB28 0%, #FFD470 100%);
  border-radius: 3.2rem;
}

.action {
  color: black;
  font-size: 2rem;
  font-weight: 400;
}

/* 动态文字 */
.textmotion-container {
  height: 25rem;
  background-image: url('images/bg_grd.jpg');
  background-size: 100% 100%;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.text-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-container span {
  font-size: 3rem;
  opacity: 0;
  display: inline-block;
  animation: none;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(3rem);
    filter: blur(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* emoji 容器 */
.emoji-container {
  width: 0rem;
  height: 0rem;
  position: relative;
  top: -0rem;
  left: 0%;
}

/* 图片样式 */
.emoji-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(var(--offsetX, 0), var(--offsetY, 0)) scale(1);
  transition: transform 0.2s ease, filter 0.5s ease;
  filter: blur(8rem);
}

/* 页脚 */
.footer {
  width: 100%;
  background-image: url('images/bg_line.jpg');
  background-size: 100% 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding-bottom: 4rem;
}

.contact-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-row {
  display: flex;
  gap: 2rem;
}

.label {
  font-size: 1.2rem;
  font-family: 'Smiley Sans', sans-serif;
  font-weight: 400;
  color: #575656;
}

.contact-link {
  font-size: 1.2rem;
  font-family: 'Smiley Sans', sans-serif;
  font-weight: 400;
  text-decoration: none;
  color: #FFBB28;
}

.policy-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 1rem;
  color: #575656;
}

.policy {
  text-decoration: none; 
  color: #575656;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  right: 2rem;
  bottom: 8rem;
  width: 4rem;
  height: 4rem;
  background: rgba(255, 187, 40, 0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: rotate(180deg);
}

.back-to-top img {
  width: 1.6rem;
  height: 1.6rem;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}