/* 全局重置 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    /*font-family: "Microsoft YaHei", sans-serif;*/
}

.download-main {
    width: 100%;
    /* 移除 min-width: 1200px */
    min-height: 600px; /* 使用最小高度，允许内容撑开 */
    margin: 100px 0; /* 移除固定 margin，让背景铺满或根据需求调整 */
    background-image: url('../images/download/banner.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center; /* 垂直居中内容 */
    justify-content: center; /* 水平居中内容 */
    padding: 100px 20px; /* 上下内边距保持空间，两侧留白防止贴边 */
}

.download_content {
    width: 100%;
    max-width: 1200px; /* 最大宽度限制 */
    /* 移除 margin: 0 auto，因为 main 已经 flex 居中了，或者保留作为 fallback */
    text-align: left; /* 默认左对齐，移动端可改居中 */
}

.download_content h1 {
    font-weight: 600;
    font-size: 60px;
    color: #4671FE;
    margin-bottom: 20px;
    line-height: 1.2;
}

.download_content h3 {
    font-weight: 600;
    font-size: 28px;
    color: #333333;
    line-height: 1.5;
    margin: 0; /* 重置默认 margin */
}

/* 如果两个 h3 需要间距，可以用 nth-child 或给第二个加 class，这里简单处理 */
.download_content h3:nth-of-type(2) {
    margin-top: 10px;
}

.download_content p {
    font-size: 14px;
    color: #666666;
    line-height: 24px;
    margin-bottom: 60px;
    margin-top: 15px;
}

.download_content .download_c {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* 允许换行 */
    gap: 40px; /* 使用 gap 控制间距 */
}

.download_content .download_c .qr_code {
    width: 179px;
    height: 179px;
    /* 移除 margin-right，使用 gap */
    flex-shrink: 0; /* 防止二维码被压缩 */
    background: #fff; /* 增加白色背景防止透明图片看不清 */
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.download_content .download_c .download_btn {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download_content .download_c .download_btn .btn {
    width: 220px;
    height: 60px;
    background: #46DFC6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.download_content .download_c .download_btn .btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.download_content .download_c .download_btn .btn img {
    width: 32px;
    height: 32px;
    margin-right: 12px; /* 稍微增加间距 */
}

.download_content .download_c .download_btn .btn span {
    font-size: 20px;
    color: #FFFFFF;
    font-weight: 500;
}

.download_content .download_c .download_btn .btn_ios {
    background: #333333;
}


/* =========================================
   响应式媒体查询
   ========================================= */

/* 平板及中等屏幕 (<= 992px) */
@media screen and (max-width: 992px) {
    .download_content h1 {
        font-size: 48px;
    }
    
    .download_content h3 {
        font-size: 24px;
    }
}

/* 手机屏幕 (<= 768px) */
@media screen and (max-width: 768px) {
    .download-main {
        padding: 60px 20px;
        background-position: center bottom; /* 手机端可能希望背景图底部对齐 */
    }

    .download_content {
        text-align: center; /* 移动端居中对齐更美观 */
    }

    .download_content h1 {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .download_content h3 {
        font-size: 18px;
    }
    
    .download_content h3:nth-of-type(2) {
        margin-top: 5px;
    }

    .download_content p {
        font-size: 12px;
        margin-bottom: 40px;
        margin-top: 10px;
    }

    .download_content .download_c {
        flex-direction: column; /* 垂直堆叠 */
        align-items: center;
        gap: 30px;
    }

    .download_content .download_c .qr_code {
        width: 150px;
        height: 150px;
        margin-right: 0;
    }

    .download_content .download_c .download_btn {
        width: 100%;
        max-width: 300px; /* 限制按钮最大宽度 */
    }

    .download_content .download_c .download_btn .btn {
        width: 100%; /* 按钮全宽 */
        height: 50px;
    }
    
    .download_content .download_c .download_btn .btn span {
        font-size: 18px;
    }
}