/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

/* 容器样式 */
.container {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* 页面样式 */
.page {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    transition: transform 0.5s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 设置每个页面的背景图 */
#page1 {
    background-image: url('../images/page1/bg1.png');
    z-index: 4;
}

#page2 {
    background-image: url('../images/page2/bg2.png');
    z-index: 3;
    transform: translateY(100%);
}

#page3 {
    background-image: url('../images/page3/bg3.png');
    z-index: 2;
    transform: translateY(100%);
}

#page4 {
    background-image: url('../images/page4/bg4.png');
    z-index: 1;
    transform: translateY(100%);
}

/* 页面内容样式 */
.page-content {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    position: relative;
    padding-top: 10vh;
}

/* 统一所有页面的文本描述位置 */
.main-title, .section-title {
    position: absolute;
    top: 18vh; /* 稍微下移标题位置，避免与logo重叠 */
    left: 0;
    right: 0;
    text-align: center;
}

/* AK Chat 应用名称样式 */
.app-name {
    position: absolute;
    top: 30vh; /* 位于主标题和主视觉图片之间 */
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 44px;
    font-weight: normal;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Arial', sans-serif;
    letter-spacing: 1px;
}

/* LOGO样式 */
.logo {
    position: absolute;
    top: 3vh; /* 将logo再往上移动一些 */
    left: 50%;
    transform: translateX(-50%);
    width: 90px; /* 进一步缩小logo尺寸 */
}

.logo img {
    width: 100%;
    height: auto;
}

/* 主标题样式 */
.main-title {
    color: white;
    font-size: 28px;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 展示图片样式 */
.main-visual {
    position: absolute;
    top: 55%; /* 调整图片位置，使其与AK Chat文本之间有适当间距 */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 300px;
    text-align: center;
    margin-top: 20px; /* 添加上边距 */
}

.showcase-img {
    width: 100%;
    height: auto;
    max-height: 45vh; /* 稍微减小图片高度 */
    object-fit: contain;
}

/* 下载按钮样式 */
.download-button {
    position: absolute;
    bottom: 10vh; /* 将按钮放在底部 */
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
}

.download-button:active {
    transform: scale(0.95);
}

.download-img {
    width: 100%;
    height: auto;
}

/* 平台图标样式 */
.platforms {
    position: absolute;
    bottom: 15vh;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.platform-icon {
    width: 100px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* 第2页平台图标特殊样式 */
#page2 .platform-icon {
    width: 50px; /* 尺寸为原来的一半 */
}

.platform-icon:hover {
    transform: scale(1.05);
}

/* 标题样式 */
.section-title {
    color: white;
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 第三页黑色文本样式 */
.section-title.dark {
    color: #333;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

/* 页面指示器样式 */
.page-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: white;
    transform: scale(1.3);
}

/* 滑动提示 */
.scroll-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    opacity: 0;
    z-index: 10;
    text-align: center;
    transition: all 0.5s ease;
    display: none;
}

.scroll-arrow {
    margin-top: 5px;
    font-size: 20px;
    animation: bounce 1s infinite;
    display: block;
}

.scroll-hint.visible {
    opacity: 0.7;
    display: block;
}

/* 动画类 */
.active {
    transform: translateY(0) !important;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 响应式设计 */
@media screen and (max-height: 700px) {
    .page-content {
        padding-top: 5vh;
    }
    
    .main-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .app-name {
        font-size: 28px;
        top: 28vh;
    }
    
    .logo {
        width: 100px;
        margin-bottom: 15px;
    }
    
    .download-button {
        width: 180px;
        margin-bottom: 15px;
    }
    
    .scroll-hint {
        bottom: 10px;
    }
}

@media screen and (min-height: 800px) {
    .main-visual {
        max-width: 340px;
    }
    
    .platform-icon {
        width: 140px;
    }
    
    .main-title {
        font-size: 32px;
    }
    
    .app-name {
        font-size: 36px;
        top: 32vh;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .scroll-hint {
        font-size: 16px;
        bottom: 30px;
    }
}

/* 针对横向模式的优化 */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .app-name {
        font-size: 24px;
        top: 25vh;
    }
    
    .main-visual {
        margin-top: 10px;
    }
}

/* 针对较窄屏幕的设备 */
@media screen and (max-width: 360px) {
    .main-title {
        font-size: 22px;
    }
    
    .platform-icon {
        width: 100px;
    }
    
    .download-button {
        width: 160px;
        margin-bottom: 15px;
    }
}

/* 针对大屏幕设备 */
@media screen and (min-width: 768px) {
    .main-visual {
        max-width: 400px;
    }
    
    .platform-icon {
        width: 150px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .page-indicator {
        right: 30px;
    }
}

/* 针对横向模式的优化 */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .page-content {
        padding-top: 3vh;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo {
        width: 80px;
        margin-bottom: 10px;
    }
    
    .main-title {
        font-size: 20px;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .main-visual {
        max-width: 200px;
        margin: 0 20px;
    }
    
    .download-button {
        width: 150px;
        margin: 0 auto 15px;
        order: -1; /* 确保在横屏模式下按钮显示在最前面 */
    }
    
    .platforms {
        margin-top: 10px;
    }
    
    .platform-icon {
        width: 90px;
    }
    
    .scroll-hint {
        bottom: 5px;
    }
}

/* 提高滑动提示的可见性 */
.scroll-hint.visible {
    opacity: 0.9;
    display: block;
}

/* 英文描述样式 */
.english-desc {
    display: block;
    font-size: 12px;
    color: white; /* 与中文标题颜色一致 */
    margin-top: 5px;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 针对深色背景的英文描述 */
.dark .english-desc {
    color: #333; /* 与深色背景上的中文标题颜色一致 */
}