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

/* 
   需求2：PC端打开，手机端显示部分为当前颜色（#cdf0ff），两侧为黑色 
   手机端打开背景为现在的颜色 (#cdf0ff)
*/
body {
    background-color: #000; /* PC端两侧黑色 */
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

/* 页面容器 */
.page {
    width: 100%;
    max-width: 410px; /* 模拟手机宽度 */
    background-color: #cdf0ff; /* 内容区域背景色 */
    min-height: 100vh;
    position: relative;
    padding-bottom: 60px; /* 防止内容被底部横幅遮挡 */
}

/* 手机端适配：全屏显示背景色 */
@media screen and (max-width: 410px) {
    body {
        background-color: #cdf0ff;
    }
    .page {
        max-width: 100%;
    }
}

/* Banner 样式 */
.banner img {
    width: 100%;
    display: block;
}

/* 公告栏样式 */
.notice {
    display: flex;
    align-items: center;
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.6);
    margin: 5px 10px;
    border-radius: 4px;
    font-size: 15px;
    color: #ff0000;
}

.notice img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

/* 品牌网格布局 */
.brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 10px 0px 10px;
}

.brand-btn {
    display: block;
    width: 100%;
    cursor: pointer;
    text-decoration: none;
}

.brand-btn img {
    width: 100%;
    display: block;
    border-radius: 8px;
    transition: transform 0.2s;
}

.brand-btn:active img {
    transform: scale(0.98);
}

/* 底部固定横幅 */
.bottom-fixed-banner {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 410px;
    height: 50px;
    z-index: 9999;
    overflow: visible; /* 允许按钮溢出一点以便点击 */
}

@media screen and (max-width: 410px) {
    .bottom-fixed-banner {
        max-width: 100%;
    }
}

/* 
   需求3：底部固定横幅右侧边距5px位置新增图片按钮，且带有呼吸动画 
*/
.fixed-banner-btn {
    position: absolute;
    right: 50px;
    top: 55%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    cursor: pointer;
    z-index: 10000;
    animation: breathe 2s infinite ease-in-out;
}

.fixed-banner-btn img {
    width: 200%;
    height: 90%;
    display: block;
    border-radius: 10%; /* 圆形按钮，可根据图片形状调整 */
}

/* 呼吸动画关键帧 */
@keyframes breathe {
    0% {

        transform: translateY(-50%) scale(1);
    }
    50% {

        transform: translateY(-50%) scale(1.15);
    }
    100% {

        transform: translateY(-50%) scale(1);
    }
}
