@charset "utf-8";
body {
    background-color: transparent; /*  总体背景默认透明色，白色#fff黑色#000  */
}

article,
aside,
blockquote,
body,
button,
code,
dd,
details,
dl,
dt,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hr,
html,
input,
legend,
li,
menu,
nav,
ol,
p,
pre,
section,
td,
textarea,
th,
ul {
    margin: 0;
    padding: 0;
}

fieldset,
img {
    border: 0
}

li,
ul {
    list-style: none
}

.art-content li,
.art-content ul {
    list-style: inherit
}

a {
    text-decoration: none
}


/*-----------------------以下三种广告可细调---------------------------*/


/*大横幅*/
.index-top-ad {
    overflow: hidden;
    margin: 1px auto 1px;
    width: 100%;
}

.index-top-ad a img,
.index-shane-ad a img {
    border-radius: 5px;
    z-index: 1;
    height: 70px !important;   /*大横幅电脑端高宽 */
}

 @media screen and (max-width:767px) {

        .index-top-ad  a,
        .index-top-ad a img {
            height: 60px !important; /* 大横幅手机端高度 */
        }
 }

/*广告环形滚动容器样式 - 响应式适配*/
.ggcontainer {
    position: relative;
    width: 100%;
    margin: auto;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

/*防止详情页边框遮挡广告的样式调整*/
.ggcontainer iframe {
    border: none !important;
    box-shadow: none !important;
    position: relative;
    z-index: 1;
}

/*小横幅 - 调整大小和布局，限制显示数量为2个*/
.index-shane-ad {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/*限制小横幅数量为2个，上下显示*/
.index-shane-ad {
    max-height: 150px; /* 两个小横幅的最大高度 */
}

.index-shane-ad a {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/*如果小横幅数量超过2个，隐藏多余的*/
.index-shane-ad a:nth-child(n+3) {
    display: none;
}

.index-shane-ad a img {
    z-index: 1;
    border-radius: 5px;
    width: 100%;
    height: 65px !important;
    object-fit: cover; /*确保图片保持比例并覆盖整个容器*/
    transition: transform 0.3s ease; /*添加过渡效果*/
}

.index-shane-ad a:hover img {
    transform: scale(1.05); /*鼠标悬停时轻微放大*/
}

/*移除不需要的样式规则*/
.index-shane-ad a:last-child {
    margin-right: 0;
}

.smallAd {
    height: 50px!important;
    margin-bottom: 3px !important;
}

@media screen and (max-width:800px) {

    .index-shane-ad span a,
    .index-shane-ad span a img {
        width: 49.5%;
        height: 65px !important;   /*手机端小横幅高 - 增加高度*/
    }
    
    .bigAd {
        height: 60px!important;
        margin-bottom: 5px !important;
    }
    
    .smallAd {
        height: 55px!important;
        margin-bottom: 3px !important;
    }
}

@media screen and (max-width:767px) {

    .index-shane-ad span a,
    .index-shane-ad span a img {
        width: 100%;
        height: 60px !important;   /*手机端小横幅高 - 增加高度*/
    }
    
    .bigAd {
        height: 60px!important;
        margin-bottom: 5px !important;
    }
    
    .smallAd {
        height: 55px!important;
        margin-bottom: 3px !important;
    }
}

/*备用小横幅样式，兼容现有广告文件*/
.index-kuake-ad {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.index-kuake-ad a {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.index-kuake-ad a img {
    z-index: 1;
    width: 100%;
    height: 60px !important; /*小横幅高度*/
    border-radius: 5px;
    object-fit: cover; /*确保图片保持比例并覆盖整个容器*/
    transition: transform 0.3s ease; /*添加过渡效果*/
}

.index-kuake-ad a:hover img {
    transform: scale(1.05); /*鼠标悬停时轻微放大*/
}

@media screen and (max-width: 800px) {
    .index-kuake-ad a {
        width: calc(50% - 4px); /*小屏幕平板上一行两个*/
    }
}

@media screen and (max-width: 767px) {
    .index-kuake-ad a {
        width: 100%; /*手机端单列显示*/
    }
}

/*文字广告电脑端 - 调整按钮大小*/
.index-card {
    margin-bottom: 0px;
    border-radius: 0px;
    border: 0px solid #eaeaea;
}

.index-site-list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
}

.index-site-list li {
    float: left;
    line-height: 2.0;
    height: 26px;
    border-radius: 4px;
    text-align: center;
    border: 1px #efefef solid;
    width: 19.7%;
    margin-right: 0.4%;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.index-site-list li a {
    font-size: 12px;
    overflow: hidden;
    display: block;
    height: 22px;
    transition: all 0.3s ease;
}

/*修复最后一行元素的右边距*/
.index-site-list li:nth-child(5n) {
    margin-right: 0;
}

/*修复最后一个元素的右边距，无论在哪一行*/
.index-site-list li:last-child {
    margin-right: 0 !important;
}

/*优化响应式布局 - 确保各种设备上的最佳显示效果*/
/*笔记本/平板 (768px-991px) - 一行显示4个广告*/
@media screen and (max-width: 991px) {
    .index-site-list li {
        width: 24.5%;
        margin-right: 0.5%;
    }
    
    .index-site-list li:nth-child(4n) {
        margin-right: 0;
    }
}

/*小平板/大屏手机 (500px-767px) - 一行显示3个广告*/
@media screen and (max-width: 767px) {
    .index-site-list li {
        width: 32.8%;
        margin-right: 0.8%;
    }
    
    .index-site-list li:nth-child(3n) {
        margin-right: 0;
    }
}

/*手机端 (<500px) - 一行显示2个广告，确保响应式自动调整大小*/
@media screen and (max-width: 500px) {
    .index-site-list li {
        width: 49.5%;
        margin-right: 1%;
        height: 24px;
        line-height: 1.9;
    }
    
    .index-site-list li:nth-child(2n) {
        margin-right: 0;
    }
    
    .index-site-list li a {
        font-size: 11px;
        height: 20px;
    }
}

/*广告标识样式*/
.index-top-ad a:before,
.index-shane-ad a:before {
    position: absolute;
    right: 0;
    bottom: 4px;
    width: 30px;
    height: 20px;
    border-radius: 5px 0 5px;
    background: rgba(0,122,245,.2);
    color: #fff;
    content: "广告";
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    z-index: 2;
}

@media screen and (max-width: 500px) {
    .index-shane-ad a:before {
        right: 0px!important;
        bottom: 0px!important;
    }
}