/* styles.css */

/* 全局设置，消除默认的内边距和外边距，并设置盒子模型 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: #000000;
    text-decoration: none;
}

/* 设置html和body标签的高度和字体 */

/* 容器类，设置背景图和布局方式 */
.container {
    position: relative;
    background: url('https://banyu-live.oss-cn-hangzhou.aliyuncs.com/other/%E8%83%8C%E6%99%AF%402x.png') no-repeat center 0;
    background-color: #0B121E;
    background-size: 100% 900px; /* 背景图自适应拉伸 */
    height: 100%;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    align-items: center;
    color: white;
    padding: 20px;
}

/* 页眉样式，包含Logo，左对齐 */
header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.list {
    display: flex; 
}

.message {
    margin-bottom: 15px;
    font-size: 16px;
    color: #9FA2A6;
}

.list .item {
    color: black;
    position: relative;
    margin-right: 50px;
}

.list .active:before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -5px;
    width: 18px;
    height: 4px; /* 下横线的粗细 */
    background-color: black; /* 下横线的颜色 */
}

.logo {
    width: 139.78px; /* 调整Logo宽度 */
    margin-left: 155px; /* 调整Logo左边距 */
}

h1, h2, .additional-info {
    text-align: left; /* 确保PC端字体左对齐 */
    margin-left: 170px; /* 调整文字左边距 */
}

h1 {
    font-size: 4.5em; /* 调整字体大小 */
    margin-top: 50px; /* 调整PC端标题的上间距 */
    margin-bottom: 10px; /* 调整PC端标题的下间距 */
}

h2 {
    font-size: 2.6em; /* 调整字体大小 */
    margin-top: 10px; /* 调整PC端副标题的上间距 */
    margin-bottom: 10px; /* 调整PC端副标题的下间距 */
}

.additional-info {
    font-size: 1.2em; /* 调整字体大小 */
    line-height: 1.5;
    margin-top: 20px; /* 调整PC端标题的上间距 */
    margin-bottom: 20px; /* 调整PC端附加信息的下间距 */
}

.additional-info .officialWebsite_tooltip {
    display: inline-block;
    width: 356px;
    height: 58px;
}

/* 动态图片样式，设置动画效果 */
.dynamic-image {
    width: 800px; /* 调整动态图片宽度 */
    position: absolute;
    right: 150px; /* 调整水平位置 */
    top: 50%; /* 调整垂直位置，使其居中 */
    transform: translateY(-50%); /* 使图片垂直居中 */
    animation: sway 6s infinite ease-in-out;
}

/* 动画关键帧，设置较大的左右晃动效果 */
@keyframes sway {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-50%) rotate(3deg); }
}

.download-button img {
    width: 230px; /* 调整下载按钮宽度 */
    margin-right: 10px; /* 调整下载按钮之间的间距 */
}

/* 版权信息样式 */
.copyright {
    text-align: center;
    font-size: 0.8em;
    margin-top: 10px;
    width: 100%; /* 确保版权信息占据整个页脚的宽度 */
}

/* 电脑端样式，针对宽度大于等于769px的设备 */
@media (min-width: 769px) {
    body, html {
        height: 1635px;
        font-family: Arial, sans-serif;
    }

    .Android_erweima {
        position: absolute;
        left: 50%;
        top: -190px;
        transform: translateX(-200px);
        margin-bottom: 15px;
        width: 145px;
        height: 145px;
        background: url('https://banyu-live.oss-cn-hangzhou.aliyuncs.com/other/5c1ca457-a46b-454c-9c1f-5fe2d109a898.png');
        background-size: 100% 100%;
    }

    .officialWebsite_main_top{
        margin: 15px 0;
        width: 630px;
        height: 163px;
        background: url('https://anxiang-live.oss-cn-beijing.aliyuncs.com/app-images/icon/officialWebsite_main_top.png');
        background-size: 100% 100%;
        
    }
    
    .officialWebsite_main_bottom {
        margin-bottom: 15px;
        width: 1416px;
        height: 688px;
        background: url('https://banyu-live.oss-cn-hangzhou.aliyuncs.com/other/%E5%9B%BE%402x.png');
        background-size: 100% 100%;
    }

    main {
        width: 100%;
        text-align: left; /* 调整字体左对齐 */
    }

    footer {
        position: absolute;
        bottom: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* 页脚内容左对齐 */
        padding: 20px;
        padding-left: 0px; /* 调整下载按钮左边距 */
    }

    .download-buttons {
        position: absolute;
        left: 50%;
        top: -190px;
        margin-left: 0; /* 调整PC端下载按钮的左边距 */
        margin-top: 0; /* 调整PC端下载按钮的上间距 */
    }

    .pcapple_download_button {
        margin-bottom: 10px;
    }

    .copyright {
        text-align: center; /* 页脚版权信息居中 */
        margin-left: 0; /* 确保版权信息在PC端居中 */
        width: 100%; /* 确保版权信息占据整个页脚的宽度 */
    }
}

/* 移动端样式，针对宽度小于768px的设备 */
@media (max-width: 768px) {
    .message {
        display: none !important;
    }
    body, html {
        box-sizing: border-box;
        height: 100%;
        font-family: Arial, sans-serif;
    }
    main {
        display: none !important;
    }
    .container {
        box-sizing: border-box;
        justify-content: space-between;
        align-items: center; /* 确保所有内容居中对齐 */
        background: url('https://anxiang-live.oss-cn-beijing.aliyuncs.com/officialWebsite/officialWebsite_Mbg1.png') 0 0 / 100% calc(100% - 233px)  no-repeat;
        background-color: #020202 !important;
    }

    .logo {
        display: none;
        width: 140px; /* 调整移动端Logo宽度 */
        margin-top: -20px;
        margin-left: 0; /* 移动端Logo居中 */
    }

    h1 {
        font-size: 1.9em; /* 调整移动端字体大小 */
        text-align: center; /* 移动端字体居中 */
        margin-left: 0; /* 移动端字体居中 */
        margin-top: 0px; /* 调整移动端标题的上间距 */
        margin-bottom: 30px; /* 调整移动端标题的下间距 */
    }

    h2 {
        font-size: 1.1em; /* 调整移动端字体大小 */
        text-align: center; /* 移动端字体居中 */
        margin-left: 0; /* 移动端字体居中 */
        margin-top: 10px; /* 调整移动端副标题的上间距 */
        margin-bottom: 10px; /* 调整移动端副标题的下间距 */
    }

    .additional-info {
        font-size: 0.96em; /* 调整移动端附加信息字体大小 */
        text-align: center; /* 移动端附加信息居中 */
        margin-left: 0; /* 移动端附加信息居中 */
        margin-bottom: 15px; /* 调整移动端附加信息的下间距 */
    }

    .dynamic-image {
        width: 200px; /* 调整移动端动态图片宽度 */
        top: 38%; /* 调整移动端动态图片的垂直位置 */
        left: 25%; /* 调整水平位置，使其居中 */
        transform: translate(-50%, -50%); /* 使图片居中 */
    }

    .additional-info .officialWebsite_tooltip {
        display: inline-block;
        width: 178px;
        height: 29px;
    }

    .list {
        display: none;
    }

    .download-buttons {
        display: flex;
        justify-content: center;
        /* margin-bottom: 10px; */
    }

    .download-button img {
        width: 150px; /* 调整移动端下载按钮宽度 */
        margin-right: 5px; /* 调整移动端下载按钮之间的间距 */
    }

    .download-button img:last-child {
        margin-right: 0; /* 去掉最后一个按钮的右边距 */
    }

    footer {
        box-sizing: border-box;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* 页脚内容居中 */
        position: fixed;
        bottom: 150px;
    }

    .copyright {
        display: none;
        text-align: center; /* 页脚版权信息居中 */
        margin-left: 0; /* 确保版权信息在移动端居中 */
        width: 100%; /* 确保版权信息占据整个页脚的宽度 */
    }
}
