/* 清理版补充样式：保留原首页视觉，同时修复手机访问 */
.br-menu-text{
    display:flex;
    align-items:center;
    justify-content:center;
    width:133px;
    height:159px;
    background:linear-gradient(135deg,#e63a4a,#ff9f1a);
    color:#fff;
    border-radius:22px;
    font-size:20px;
    font-weight:bold;
    text-align:center;
    box-shadow:0 16px 30px rgba(0,0,0,.25);
}
.br-kefu{
    position:fixed;
    right:18px;
    width:136px;
    background:rgba(255,255,255,.96);
    border:1px dashed #69a7ff;
    border-radius:8px;
    text-align:center;
    z-index:9999;
    padding:10px 8px 12px;
    box-shadow:0 8px 25px rgba(0,0,0,.25);
}
.br-kefu-close{
    position:absolute;
    right:-8px;
    top:-10px;
    width:22px;
    height:22px;
    line-height:20px;
    border:0;
    border-radius:50%;
    background:#eee;
    color:#777;
    cursor:pointer;
}
.br-kefu-title{
    display:block;
    color:#1684e8;
    font-size:16px;
    border-bottom:1px solid #1684e8;
    padding-bottom:8px;
}
.br-kefu-title span{
    display:block;
    font-size:14px;
    margin-top:4px;
}
.br-kefu-list a{
    display:block;
    color:red;
    font-weight:bold;
    font-size:13px;
    line-height:26px;
    word-break:break-all;
}
.homepage .logo img{
    max-width:288px;
}
.index-menu img{
    transition:transform .25s ease, filter .25s ease;
}
.index-menu a:hover img{
    transform:translateY(-6px);
    filter:brightness(1.08);
}

/* 中等屏幕：整体缩放，避免右侧被裁切 */
@media (max-width: 1300px) and (min-width: 769px){
    .index-menu{
        transform:scale(.86);
        transform-origin:top center;
        margin-top:70px!important;
        margin-bottom:-40px!important;
    }
}

/* 手机端：改为网格布局，取消绝对定位和强制隐藏滚动 */
@media (max-width: 768px){
    html,body{
        width:100%;
        min-width:0!important;
        min-height:100%;
        overflow-x:hidden!important;
        overflow-y:auto!important;
    }
    body.homepage{
        height:auto!important;
        min-height:100vh!important;
        background-position:center top!important;
        background-size:auto 100%!important;
        overflow:auto!important;
        padding-bottom:28px;
    }
    .logo{
        width:100%!important;
        height:auto!important;
        margin:0 auto!important;
        padding:36px 20px 18px!important;
        text-align:center;
    }
    .logo img{
        max-width:220px!important;
        width:68%;
        height:auto;
    }
    .index-menu{
        width:100%!important;
        max-width:560px;
        margin:18px auto 22px!important;
        padding:0 14px;
        box-sizing:border-box;
    }
    .index-menu ul{
        position:static!important;
        height:auto!important;
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:14px;
    }
    .index-menu ul li{
        position:relative!important;
        left:auto!important;
        right:auto!important;
        top:auto!important;
        width:100%!important;
        height:auto!important;
        text-align:center;
    }
    .index-menu ul li a{
        display:flex;
        align-items:center;
        justify-content:center;
        min-height:128px;
        border-radius:18px;
        background:rgba(255,255,255,.06);
        box-shadow:0 12px 28px rgba(0,0,0,.2);
    }
    .index-menu ul li img{
        max-width:133px!important;
        width:88%!important;
        height:auto!important;
    }
    .br-menu-text{
        width:100%;
        max-width:150px;
        height:120px;
        font-size:18px;
    }
    .ftxt{
        width:100%;
        max-width:560px;
        padding:0 18px;
        margin:10px auto 0;
        line-height:24px;
        font-size:13px;
        box-sizing:border-box;
    }
    .br-kefu{
        display:none!important;
    }
}

@media (max-width: 380px){
    .index-menu ul{
        grid-template-columns:1fr;
        gap:12px;
    }
    .index-menu ul li a{
        min-height:112px;
    }
    .index-menu ul li img{
        width:145px!important;
        max-width:80%!important;
    }
}
