/* ===================================================
   Main CSS - 电脑/手机全端自适应 & 完美防变形修复版
   =================================================== */
html, body { 
    padding: 0; 
    margin: 0; 
    width: 100%; 
    min-height: 100%; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif; 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale; 
    font-size: 14px; 
    background: #f5f5f5; 
    overflow-x: hidden; /* 全局禁止横向滚动条 */
} 

html { scroll-padding-top: 160px; } 

a { text-decoration: none; color: inherit; } 

* {
    box-sizing: border-box; /* 全局重置盒子模型，彻底防溢出变形 */
}

/* 主容器：电脑端最大 720px 居中，手机端 100% 满屏 */
.container { 
    width: 100%; 
    max-width: 720px; 
    margin: 0 auto; 
    box-sizing: border-box; 
    overflow: hidden; 
} 

/* BFC 隔离，清空内部浮动影响 */
.box { 
    box-sizing: border-box; 
    background: #fff; 
    width: 100% !important;
    clear: both;
    overflow: hidden;
    margin-bottom: 5px;
} 

.box.ad p { margin: 0; padding: 0; } 

/* 强制图片自适应防撑破 */
.box img, img { 
    max-width: 100% !important; 
    height: auto !important;
    display: block;
} 

/* 頂圖區 */
.menuicon { 
    background: rgba(255, 39, 0, 0.1); 
    width: 100%; 
    display: block;      
    margin: 0;
    padding: 0;          
    box-sizing: border-box; 
    border-bottom: 1px solid #ff2700;
} 

.menuicon img { 
    width: 100%;          
    height: auto; 
    display: block;
} 

/* 🎬 展開/收起直播按鈕 */
.zb-toggle-wrapper {
    width: 100%;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 99;
    display: flex;
    justify-content: center;
    background: #fff;
    clear: both;
}

.zb-toggle-btn {
    display: inline-block;
    background-color: #00be64;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    padding: 6px 15px;
    cursor: pointer;
    user-select: none;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
    width: 130px;
    max-width: 90%;
    text-align: center;
    line-height: 24px;
}

/* 🎥 直播播放容器：电脑/手机自适应 16:9 黄金比例 */
.zb-container-box {
    display: none; /* 默认收起 */
    width: 100%;
    background: #000;
    clear: both;
    margin-bottom: 8px;
}

.zb-video-aspect {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例固定高度 */
    background: #000;
}

.zb-video-aspect video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain; /* 保证画面不缩放变形 */
    background: #000;
}

/* 未到时间/已结束提示层 */
.video-notice-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.video-notice-mask p {
    font-size: 16px;
    font-weight: bold;
    color: #ffcc00;
    margin: 0;
    line-height: 1.5;
}

/* 日期背景區 */
.riqi { 
    min-height: 28px;    
    line-height: 28px; 
    text-align: center; 
    font-weight: 700; 
    background: #ff2700; 
    color: #ffffff; 
    border-radius: 5px; 
    margin: 8px 6px;     
    font-size: 14px; /* 改用 px 替换 pt，防止移动端点数放缩变形 */
    box-sizing: border-box;
    clear: both;
} 

/* 跑馬燈修復（增强 Flexbox 防撑破） */
.msg_scroll05 {
    width: 100%;
    max-width: 100%;
    height: 36px;
    line-height: 36px;
    background: #fff9ea;
    border-top: 1px solid #ffeeba;
    border-bottom: 1px solid #ffeeba;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    clear: both;
}

.msg_scroll05 .boxnew {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.msg_scroll05 .news-tit {
    padding: 0 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.msg_scroll05 .news-tit img {
    width: 20px;
    height: auto;
    display: block;
}

.msg_scroll05 .news-con {
    flex: 1;
    width: 0; /* 防止长文本在 Flex 容器中撑开布局 */
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.msg_scroll05 .marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee-anim 15s linear infinite;
}

.msg_scroll05 .marquee p {
    margin: 0;
    padding: 0;
    display: inline-block;
    white-space: nowrap;
    color: rgb(255, 154, 67);
    font-weight: bold;
    font-size: 14px;
}

@keyframes marquee-anim {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.rememberdomain { 
    margin: 10px 5px;                       
    display: block; 
    border: .5em solid transparent; 
    background: linear-gradient(#fff, #fff) padding-box, 
                repeating-linear-gradient(-45deg, #ff2700, #ff2700 12.5%, transparent 0, transparent 25%, #333 0, #000 37.5%, transparent 0, transparent 50%) 0 / 1.5em 1.5em; 
    -webkit-animation: ants 12s linear infinite; 
    animation: ants 12s linear infinite; 
    box-shadow: 0 0 5px #999; 
    border-radius: 5px; 
    clear: both;
    box-sizing: border-box;
    max-width: calc(100% - 10px);
} 

@keyframes ants {
    from { background-position: 0 0; }
    to { background-position: 1.5em 1.5em; }
}

.rememberdomain td { border: 1px solid #ededed; padding: 6px; } 
.rememberdomain table { width: 100%; } 

/* 全局表格防撑破变形（优化版） */
.box table, table { 
    border-collapse: collapse; 
    width: 100% !important; 
    max-width: 100% !important;
    box-sizing: border-box; 
} 

.box table td, table td { 
    border-collapse: collapse; 
    word-break: break-word !important;
    overflow-wrap: break-word !important;
} 

.swiper-nav { text-align: center; color: #fff; font-weight: bold; } 
.swiper-nav .swiper-slide { 
    width: 110px!important; 
    padding: 5px 0; 
    color: #303133; 
    font-size: 13px; 
    font-weight: bold; 
    border-radius: 2px; 
    border-right: 1px solid #ededed; 
} 
.swiper-nav .active-nav { background: #3d7eff; color: #fff; } 

.tit { 
    font-size: 18px !important; 
    color: #fff !important; 
    line-height: 42px !important; 
    box-shadow: 0 10px 14px -7px rgba(255, 39, 0, 0.4); 
    text-shadow: 0 1px 0 #900; 
    background: linear-gradient(#ff5e40, #ff2700) !important; 
    font-weight: bold; 
    text-align: center; 
    clear: both;
} 

.border1 td { border: 1px solid rgb(0, 112, 192); padding: 7px 2px; } 
.border2 td { border: 1px solid #ddd7d7; padding: 7px 2px; } 
.border3 td { border: 1px solid rgb(112, 48, 160); padding: 7px 2px; } 
.border4 td { border: 1px solid #ff2700; padding: 7px 2px; } 
.border1 td p, .border2 td p, .border3 td p, .border4 td p { margin: 0; } 

.titsle { font-size: 15px; font-weight: bold; } 

.tab-nav {
    display: flex;
    width: 100%;
    border-top: 2px solid #109121;
    border-bottom: 1px solid #ddd;
    background: #fff;
    margin-top: 10px;
    margin-bottom: 10px;
    clear: both;
    box-sizing: border-box;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 10px 2px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    border-right: 1px solid #eee;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-item:last-child {
    border-right: none;
}

.tab-item.active {
    color: #109121;
    background-color: #fff;
    position: relative;
}

.zhzl { 
    display: flex; 
    justify-content: flex-start; 
    flex-wrap: wrap; 
    box-sizing: border-box; 
    margin-top: 10px; 
    margin-bottom: 20px; 
    clear: both;
} 

.zhzl .item { 
    width: 25%; 
    box-sizing: border-box; 
    padding: 3px; 
} 

.zhzl a { 
    line-height: 38px; 
    text-align: center; 
    border: 1px solid #ccc; 
    background: #fff; 
    border-radius: 5px; 
    display: block; 
    color: #333; 
    cursor: pointer; 
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
} 

/* 针对后台 diy 富文本资料的隔离与清除浮动 */
.custom-diy-item {
    width: 100% !important;
    clear: both;
    overflow: hidden;
    box-sizing: border-box;
}

.custom-diy-item table {
    width: 100% !important;
}

.custom-diy-item img {
    max-width: 100% !important;
    height: auto !important;
}

/* 📱 移动端针对性优化媒体查询 */
@media screen and (max-width: 710px) { 
    .menuicon { padding: 0; } 
    .swiper-nav .swiper-slide { width: 90px!important; } 
} 

@media screen and (max-width: 480px) { 
    .swiper-nav .swiper-slide { width: 80px!important; font-size: 12px; } 
    .tab-item { font-size: 13px; padding: 8px 1px; }
    .tit { font-size: 16px !important; line-height: 38px !important; }
    /* 超小屏下综合资料支持 3 列或自动微调防止文字溢出 */
    .zhzl .item { width: 25%; }
    .zhzl a { font-size: 12px; line-height: 34px; }
}