/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 关键步骤：设置纵向拼接的多背景图 */
html {
    min-height: 400vh; /* 高度设为视口的4倍，确保能容纳4张全屏图并支持滚动 */
    background-color: #f5f5f5; /* 备用背景色，用于填充contain模式可能产生的空白 */
    
    /* 设置4张背景图纵向排列 */
    background-image: 
        url('image/background/Background1.png'), /* 第一张 */
        url('image/background/Background2.png'), /* 新增第二张 */
        url('image/background/Background3.png'), /* 新增第三张 */
        url('image/background/Background4.png'); /* 新增第四张 */
    
    /* 每张背景图大小 */
    background-size: 100% 100vh;
    background-repeat: no-repeat;
    
    /* 精确定位，确保四张图紧密连接 */
    background-position: 
        0 0,
        0 100vh,
        0 200vh,
        0 300vh;
}

/* 清除body的所有布局样式，使其透明且不占布局空间 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: transparent; /* 设置为透明，让html的背景完全透出 */
    border-radius: 0;
    position: relative;
}

/* 第一张背景图上的内容容器 */
.first-page-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* 刚好覆盖第一张背景图 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* 左对齐 */
    padding: 0 5%; /* 使用百分比实现响应式内边距 */
    z-index: 10;
}

/* 第二张背景图上的内容容器（右侧） */
.second-page-content {
    position: absolute;
    top: 100vh; /* 第二张背景图的位置 */
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: flex-end; /* 右侧对齐 */
    align-items: center;
    padding: 0 5%;
    z-index: 10;
}

/* 第三张背景图上的内容容器（左侧） */
.third-page-content {
    position: absolute;
    top: 200vh; /* 第三张背景图的位置 */
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: flex-start; /* 左侧对齐 */
    align-items: center;
    padding: 0 5%;
    z-index: 10;
}

/* 第四张背景图上的内容容器（右侧） */
.fourth-page-content {
    position: absolute;
    top: 300vh; /* 第四张背景图的位置 */
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: flex-end; /* 右侧对齐 */
    align-items: center;
    padding: 0 5%;
    z-index: 10;
}

/* 功能卡片样式 */
.feature-card {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    max-width: 450px;
    animation: fadeInUp 0.8s ease-out;
}

.right-card {
    margin-right: 5%;
}

.left-card {
    margin-left: 5%;
}

.feature-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.feature-icon {
    font-size: 1.8rem;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-radius: 10px;
}

.feature-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}

.feature-text p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* 应用图标和标题区域 */
.app-header {
    display: flex;
    align-items: center;
    margin-bottom: 3rem; /* 使用rem单位，相对根元素字体大小 */
    background-color: rgba(255, 255, 255, 0.85); /* 半透明白色背景 */
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    max-width: 600px;
}

.app-icon {
    width: 80px;
    height: 80px;
    margin-right: 1.5rem;
    border-radius: 20px;
    object-fit: cover;
}

.app-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.app-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
    line-height: 1.4;
}

/* 下载区域 */
.download-section {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    max-width: 500px;
}

.download-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.download-desc {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* 下载按钮容器 */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

/* 下载按钮通用样式 */
.download-btn {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center;     /* 垂直居中 */
    /* padding: 1.2rem 1.8rem; 已移除内边距 */
    background-color: #fff;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent; /* 外边框保留 */
    min-height: 60px; /* 设置最小高度，确保按钮大小一致 */
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #4a6cf7;
}

/* 让图片完全匹配按钮大小 */
.download-btn img {
    width: 100%; /* 使图片宽度填满按钮容器 */
    height: auto; /* 高度保持自动，以维持原始宽高比 */
    object-fit: contain; /* 保持图片比例，完整显示，避免拉伸 */
}

/* 各平台按钮的特殊样式 */
.harmonyos-btn {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8eeff 100%);
}

.ios-btn {
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f4ff 100%);
}

.android-btn {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
}

.download-note {
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    font-style: italic;
}

/* 淡入向上动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端适配 - 重新设计 */
@media (max-width: 768px) {
    /* 关键修复1：背景图使用contain模式，确保完整显示且不被压缩 */
    html {
        background-size: contain; /* 确保背景图完整显示，不裁剪不压缩 */
        background-color: #f5f5f5; /* 添加背景色填充空白区域 */
        background-position: 
            center 0,
            center 100vh,
            center 200vh,
            center 300vh;
    }
    
    /* 关键修复2：为每个内容区域添加半透明背景，提高文字可读性 */
    .first-page-content,
    .second-page-content,
    .third-page-content,
    .fourth-page-content {
        background-color: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(5px);
    }
    
    /* 关键修复3：按比例缩小所有内容容器，避免占据页面大部分 */
    .first-page-content {
        justify-content: flex-start;
        align-items: center;
        padding-top: 10%;
    }
    
    .second-page-content,
    .third-page-content,
    .fourth-page-content {
        justify-content: center;
        align-items: center;
    }
    
    /* 关键修复4：大幅缩小功能卡片，使其不占据屏幕大部分 */
    .right-card,
    .left-card {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
        background-color: rgba(255, 255, 255, 0.95);
    }
    
    .feature-card {
        padding: 1.2rem;
        max-width: 100%;
    }
    
    /* 关键修复5：按比例缩小所有文字大小，但保持清晰可读 */
    .feature-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .feature-item {
        gap: 0.7rem;
    }
    
    .feature-icon {
        font-size: 1.1rem;
        min-width: 28px;
        height: 28px;
    }
    
    .feature-text h3 {
        font-size: 0.95rem;
    }
    
    .feature-text p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    /* 关键修复6：按比例缩小应用标题区域 */
    .app-header {
        flex-direction: row;
        text-align: center;
        padding: 0.8rem 1rem;
        margin-bottom: 1.2rem;
        width: 80%;
        max-width: 320px;
        background-color: rgba(255, 255, 255, 0.95);
    }
    
    .app-icon {
        width: 45px;
        height: 45px;
        margin-right: 0.8rem;
    }
    
    .app-title h1 {
        font-size: 1.5rem;
    }
    
    .app-subtitle {
        font-size: 0.9rem;
    }
    
    /* 关键修复7：按比例缩小下载区域 */
    .download-section {
        padding: 1.2rem;
        width: 80%;
        max-width: 320px;
        background-color: rgba(255, 255, 255, 0.95);
    }
    
    .download-title {
        font-size: 1.3rem;
    }
    
    .download-desc {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }
    
    .download-btn {
        min-height: 45px;
    }
    
    .download-btn img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .download-note {
        font-size: 0.75rem;
    }
    
    /* 确保移动端滚动正常 */
    body {
        overflow-x: hidden;
    }
}

/* 平板设备适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .first-page-content {
        padding: 0 8%;
    }
    
    .app-header, .download-section, .feature-card {
        max-width: 450px;
    }
    
    .right-card {
        margin-right: 8%;
    }
    
    .left-card {
        margin-left: 8%;
    }
}

/* 底部版权信息样式 */
.site-footer {
    position: absolute;
    top: 400vh; /* 位于四张背景图之后 */
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* 深色半透明背景，专业且不喧宾夺主 */
    color: #eee;
    text-align: center;
    padding: 2.5rem 1rem;
    z-index: 20;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    backdrop-filter: blur(8px); /* 毛玻璃效果，与页面整体设计语言统一 */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.footer-content p {
    margin: 0.7rem 0;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.footer-content p:first-child {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.footer-content p:not(:first-child) {
    color: #ccc;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* 移动端适配 - 底部样式 */
@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 1rem;
        top: 400vh; /* 保持位置不变 */
    }
    
    .footer-content p {
        font-size: 0.8rem;
        line-height: 1.7;
        margin: 0.5rem 0;
    }
    
    .footer-content p:first-child {
        font-size: 0.85rem;
    }
    
    .footer-content p:not(:first-child) {
        font-size: 0.75rem;
    }
}