/* =========================================================
   顶部开奖紧凑版
   裁掉底部期号/日期/原刷新行
   自定义刷新按钮覆盖原 + 号位置
   ========================================================= */

/* 原开奖模块整体缩短，底部内容会被裁掉 */
.site-top-nav .front-open-strip-v20260702.gp4900-kj-tabs-strip-v20260703{
    height:132px!important;
    min-height:132px!important;
    overflow:hidden!important;
}

/* 作为自定义刷新按钮的定位基准 */
.site-top-nav .gp4900-kj-tabs-wrap-v20260703{
    position:relative!important;
    height:132px!important;
    overflow:hidden!important;
}

/*
  外部模块本身保持完整高度，
  由外层裁掉底部“下期时间 / 原刷新按钮”那一行。
*/
.site-top-nav .gp4900-kj-tabs-wrap-v20260703 .KJ-TabBox{
    height:166px!important;
    overflow:hidden!important;
}

/* 保持顶部澳彩/港彩标签紧凑 */
.site-top-nav .gp4900-kj-tabs-wrap-v20260703 .KJ-TabBox ul{
    height:30px!important;
    padding:4px 0 0 6px!important;
}

.site-top-nav .gp4900-kj-tabs-wrap-v20260703 .KJ-TabBox li{
    height:24px!important;
    line-height:24px!important;
    margin-right:6px!important;
    font-size:16px!important;
}

/*
  覆盖原来的 + 位置：
  右侧大约 15%，位于开奖号码中间高度。
*/
.gp4900-kj-refresh-plus-v20260703{
    position:absolute!important;
    top:72px!important;
    right:14.5%!important;
    z-index:99999!important;

    width:40px!important;
    height:30px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;

    margin:0!important;
    padding:0!important;

    color:#ffffff!important;
    background:#ff9600!important;
    border:2px solid #ffffff!important;
    border-radius:7px!important;
    box-shadow:0 1px 3px rgba(80,45,0,.28)!important;

    font-family:"Microsoft YaHei",Arial,sans-serif!important;
    font-size:13px!important;
    font-weight:900!important;
    line-height:1!important;
    text-decoration:none!important;

    cursor:pointer!important;
    -webkit-tap-highlight-color:transparent!important;
}

/* 点击后的短暂状态 */
.gp4900-kj-refresh-plus-v20260703.is-refreshing{
    opacity:.72!important;
    pointer-events:none!important;
}

/*
  顶部总高：
  品牌栏 68px + 开奖模块 132px = 200px
*/
.shell{
    padding-top:200px!important;
}

/* 窄屏：品牌栏 63px + 开奖模块 132px = 195px */
@media(max-width:390px){
    .shell{
        padding-top:195px!important;
    }

    .site-top-nav .gp4900-kj-tabs-wrap-v20260703 .KJ-TabBox li{
        font-size:15px!important;
    }

    .gp4900-kj-refresh-plus-v20260703{
        top:70px!important;
        right:14%!important;
        width:37px!important;
        height:28px!important;
        font-size:12px!important;
        border-radius:6px!important;
    }
}

/* 主屏幕独立模式补 iPhone 状态栏安全区 */
@media all and (display-mode:standalone){
    .shell{
        padding-top:calc(200px + env(safe-area-inset-top))!important;
    }
}

@media all and (display-mode:standalone) and (max-width:390px){
    .shell{
        padding-top:calc(195px + env(safe-area-inset-top))!important;
    }
}

html.gp4900-ios-standalone-v20260703 .shell{
    padding-top:calc(200px + env(safe-area-inset-top))!important;
}

@media(max-width:390px){
    html.gp4900-ios-standalone-v20260703 .shell{
        padding-top:calc(195px + env(safe-area-inset-top))!important;
    }
}
