/* 全局样式 */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

/* 让滚动更加流畅 */
html {
    scroll-snap-type: y mandatory;
}

/* 页面容器，每个 section 高度占满整个视口 */
section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 导航栏 */
.navbar {
    position: absolute;
    top: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
}

.nav-logo {
    width: 120px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-login {
    padding: 8px 20px;
    border: 2px solid #000;
    border-radius: 5px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.language-dropdown {
    font-size: 16px;
    cursor: pointer;
}

/* 第一屏 Hero 样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #EE7C7C, #ffffff);
}

/* 容器 */
.container1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
}

/* 左侧文本内容 */
.text-content1 {
    width: 60%;
    text-align: left;
}

.text-content1 h3 {
    font-size: 1.2rem;
    color: #421919;
    margin-bottom: 10px;
}

.text-content1 h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #421919;
}

.text-content1 .highlight1 {
    font-size: 3rem;
    color: #FE6C6C;
    font-weight: bold;
}

.description1 {
    font-size: 1rem;
    color: #421919;
    line-height: 1.6;
}

/* 按钮 */
.buttons1 {
    margin-top: 20px;
}

.download-btn {
    width: 180px; /* 根据需要调整按钮的宽度 */
    height: auto;  /* 保持图片的高度自动 */
}


/* 二维码和微信 */
.qrcode-container {
    display: flex;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.qrcode {
    width: 80px;
}

.wechat-icon {
    width: 80px;
}

/* 右侧 Mockup */
.mockup {
    width: 50%;
    display: flex;
    justify-content: center;
}

.mockup img {
    width: 350px;
    height: auto;
}


/* 第二屏：剧本展示 */
.script-gallery {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 8 张胶片风格图片作为背景 */
.film-background {
    position: absolute;
    width: 95%;
    height: 100%;
    display: flex;
    animation: film-scroll 20s linear infinite;
}

.film-background img {
    width: 12.5%; /* 8 张图片等比例分布 */
    height: 100%;
    object-fit: cover;
}
/* 针对单独图片调整位置 */
.film-background img:nth-child(1) {
    transform: translateX(-20px) translateY(-5px);
}

.film-background img:nth-child(2) {
    transform: translateX(-15px) translateY(0px);
}

.film-background img:nth-child(3) {
    transform: translateX(15px) translateY(-10px);
}

.film-background img:nth-child(4) {
    transform: translateX(-10px) translateY(5px);
}

.film-background img:nth-child(5) {
    transform: translateX(5px) translateY(-15px);
}

.film-background img:nth-child(6) {
    transform: translateX(-15px) translateY(10px);
}

.film-background img:nth-child(7) {
    transform: translateX(0px) translateY(-10px);
}

.film-background img:nth-child(8) {
    transform: translateX(5px) translateY(10px);
}
/* 黑色半透明图层 */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 透明度 0.5，可调整 */
    z-index: 1;
}
/* 文字内容居中 */
.script-content2 {
    position: absolute;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    color: white;
}

/* 标题样式 */
.script-content2 h1 {
    font-size: 5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.script-content2 .highlight2 {
    font-size: 5rem;
    color: #FFB1B1;
}

.subtitle2 {
    font-size: 1.5rem;
    margin-top: 10px;
}

.description2 {
    font-size: 2rem;
    margin-top: 5px;
    color: white;
}


/* 第三屏：聊天体验 */
.chat-experience {
    height: 100vh;
    width: 100%;
    background: linear-gradient(to bottom, #fce4ec, #ffffff); /* 浅粉渐变 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 文字内容 */
.chat-content3 {
    top: -120px;
    text-align: center;
    z-index: 2;
}

.chat-content3 h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: #333;
    text-align: center;

}

.chat-content3 .highlight3 {
    color: #ff6699; /* 粉色 */
}

.subtitle3 {
    font-size: 1.5rem;
    margin-top: 10px;
    color: #666;
}

/* 聊天 UI 界面图片 */
.chat-images3 {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    transform: translateY(-30%);
}

/* 聊天 UI 图片样式 */
.chat-img {
    width: 1000px; /* 调整大小 */
    height: auto;
    position: absolute;
    transition: transform 0.5s ease;
}

/* 不同图片倾斜度 */
.img1 { transform: translate(-800px, -300px); }
.img2 { transform: translate(700px, -300px); }
.img3 { transform:  translate(300px, -20px); }
.img4 { transform: translate(200px, -20px); }
.img5 { transform:  translate(100px, -300px); }
.img6 { transform:  translate(-100px, -20px); }

/* 图片悬停效果 */
/* .chat-img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
} */
/* 第四屏：文字云背景和布局 */
.word-cloud {
    height: 90;
    width: 100%;
    background-image: url('../assets/images/background4.png'); /* 背景图 */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 文字内容 */
.cloud-content4 {
    text-align: center;
    z-index: 2; /* 保证文字内容在最前面 */
    color: white;
}

.cloud-content4 h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: #421919; /* 主要颜色 */
}

.cloud-content4 .highlight4 {
    color: #FE6C6C;
}

.subtitle4 {
    font-size: 1.5rem;
    color: #421919;
    margin-top: 10px;
}
/* 第五屏：人生如戏 */
.life-as-drama5 {
    height: 100vh;
    width: 100%;
    background-color: #000000; /* 黑色背景 */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
}

/* 大标题样式 */
.life-as-drama5 h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: #FFEFEF;
    margin-bottom: 20px;
}

/* 副标题样式 */
.subtitle5 {
    font-size: 1.5rem;
    color: #FFEFEF; /* 灰色 */
    margin-bottom: 20px;
}
.highlight5 {
    color: #FF9696; /* 设置为粉色 */
}
/* 描述内容样式 */
.description5 {
    font-size: 1rem;
    color: #FFEFEF; /* 更浅灰色 */
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 40px;
    margin-left: 250px; /* 左边距 */
}

/* 底部信息 */
.footer5 {
    position: absolute;
    bottom: 20px;
    font-size: 0.9rem;
    color: #FFEFEF; /* 浅灰色 */
    text-align: center;
}

.footer5 p {
    margin: 5px 0;
}

/* 文字云样式 */
/* .words {
    position: absolute;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.word {
    position: absolute;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    text-align: center;
    transition: transform 0.3s ease;
} */

/* 鼠标悬停在文字时放大 */
/* .word:hover {
    transform: scale(1.2);
} */

/* 让背景胶片滚动 */
/* @keyframes film-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
} */

/* 添加移动端适配样式 */
@media (max-width: 768px) {
    /* 调整导航栏 */
    .navbar {
      padding: 10px 20px;
    }

    .nav-logo {
      width: 80px;
    }

    .btn-login {
      padding: 5px 12px;
      font-size: 14px;
    }

    .language-dropdown {
      font-size: 14px;
    }

    /* 第一屏调整 */
    .container1 {
      flex-direction: column;
      padding: 0 20px;
      text-align: center;
    }

    .text-content1 {
      width: 100%;
      margin: 200px 0 30px 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .text-content1 h3 {
      font-size: 1rem;
    }

    .text-content1 h1 {
      font-size: 2rem;
    }

    .text-content1 .highlight1 {
      font-size: 1.8rem;
    }

    .description1 {
      font-size: 0.9rem;
      text-align: center;
    }

    .download-btn {
      width: 150px;
    }

    .mockup {
      width: 100%;
    }

    .mockup img {
      width: 280px;
    }

    .qrcode-container {
      justify-content: center;
    }

    /* 第二屏调整 */
    .script-content2 h1,
    .script-content2 .highlight2 {
      font-size: 3rem;
    }

    .subtitle2 {
      font-size: 1.2rem;
    }

    .description2 {
      font-size: 1.5rem;
    }

    /* 第三屏调整 */
    .chat-content3 h1 {
      font-size: 2.5rem;
    }

    .chat-img {
      width: 80% !important;
      position: relative !important;
      transform: none !important;
      margin-bottom: 10px;
    }

    .chat-images3 {
      position: relative;
      top: 0;
      transform: none;
      padding: 20px;
      flex-direction: column;
    }

    /* 第四屏调整 */
    .cloud-content4 h1 {
      font-size: 2.5rem;
    }

    .subtitle4 {
      font-size: 1.2rem;
    }

    /* 第五屏调整 */
    .life-as-drama5 h1 {
      font-size: 2.5rem;
    }

    .subtitle5 {
      font-size: 1.2rem;
    }

    .description5 {
      font-size: 0.9rem;
      margin-left: 0;
      padding: 0 20px;
    }

    /* 调整footer位置 */
    .global-footer {
      font-size: 12px;
      padding: 8px 10px;
    }
  }

  /* 针对小于400px的超小屏幕 */
  @media (max-width: 400px) {
    .text-content1 h1 {
      font-size: 1.8rem;
    }

    .text-content1 .highlight1 {
      font-size: 1.6rem;
    }

    .script-content2 h1,
    .script-content2 .highlight2 {
      font-size: 2.2rem;
    }

    .chat-content3 h1 {
      font-size: 2rem;
    }

    .cloud-content4 h1 {
      font-size: 2rem;
    }

    .life-as-drama5 h1 {
      font-size: 2rem;
    }

    .mockup img {
      width: 240px;
    }

    .global-footer {
      font-size: 10px;
    }
  }
