@charset "utf-8";

/* 首页主容器 */
.mainbox0 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 6px;
    background: #FFFFFF;
    box-shadow: 2px 2px 10px #909090;
    border-radius: 9px;
    overflow: hidden;
}

.pbox {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    background: #fff;
}

/* 分类容器 PC4列 */
.cate-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cate-col {
    width: calc((100% - 42px) / 4);
    padding: 0 8px;
    border-right: 1px solid #F5F5F5;
}

.cate-col:nth-child(4n) {
    border-right: none;
}

/* 大类卡片 */
.cate-main {
    background: #F8F8F8;
    border-radius: 30px;
    margin: 15px 0 8px;
    min-height: 60px;
    background-image: url(../images/sort_bg_tmf8b.gif);
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
}

.cate-main:hover {
    background-image: url(../images/sort_bg_tmf8h.gif);
}

.cate-main a {
    display: flex;
    align-items: center;
    height: 60px;
    width: 100%;
}

.cate-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.cate-icon img {
    border-radius: 30px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cate-title {
    flex: 1;
    padding-left: 10px;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cate-main a:hover .cate-title {
    color: #FF6600;
}

/* 子分类两栏 */
.cate-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cate-sub-item {
    width: calc(50% - 2px);
    height: 34px;
    line-height: 34px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 顶部导航bar */
.bar {
    width: 100%;
    height: 36px;
    background: #f9f9f9;
    border-bottom: 2px solid #ff6600;
}

.barin {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.barin_l {
    display: flex;
    gap: 10px;
    height: 36px;
    overflow-x: auto;
    scrollbar-width: none;
}

.barin_l::-webkit-scrollbar {
    height: 0;
}

.barin_r {
    width: 300px;
    text-align: right;
    flex-shrink: 0;
}

.bar_hover {
    background: #ff6600;
    color: #fff;
    padding: 0 10px;
    line-height: 36px;
    border-radius: 9px 9px 0 0;
    flex-shrink: 0;
}

.bar_link {
    line-height: 36px;
    padding: 0 10px;
    color: #666;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.bar_link_r {
    line-height: 36px;
    color: #ff6600;
    padding: 0 15px;
}

/* 推荐模块【修复手机过高、限制最多6条、防止页面抖动】 */
.tuijian {
    width: 100%;
    max-width: 1200px;
    height: 146px;
    margin: 15px auto;
    padding: 12px 10px;
    background: #fff;
    border-radius: 9px;
    /* 固定容器高度，加载时不会撑高页面产生抖动 */
    overflow: hidden;
}

/* 列表容器限制最大高度，一行30px，6行合计180px，超出直接隐藏 */
.tuijian ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 180px;
    overflow: hidden;
}

.tuijian li {
    float: none;
    min-width: 240px;
    max-width: 370px;
    flex: 1;
    height: 30px;
    line-height: 30px;
    text-indent: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: url(../images/ti.gif) no-repeat 0 12px;
}

.tuijian li span a {
    font-size: 12px;
    color: #999;
}

/* 辅助按钮样式 */
.gaga {
    display: none;
}

.postout {
    width: 100%;
    max-width: 316px;
    margin-left: auto;
}

.post a,
.delete a {
    width: 114px;
    height: 36px;
    line-height: 36px;
    border-radius: 9px;
    display: inline-block;
    text-align: center;
}

.post a {
    background: #FF6600;
    color: #fff;
    margin: 15px 10px 0 60px;
}

.post a:hover {
    background: #FF8800;
}

.delete a {
    background: #F6F6F6;
    color: #333;
}

.delete a:hover {
    background: #F9F9F9;
}

.toplist {
    border-top: 1px dotted #eee;
    line-height: 32px;
}

.ding {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 20px;
    background: #FF6600;
    color: #fff;
    border-radius: 9px;
    font-size: 12px;
    text-align: center;
}

.huiyuan {
    font-size: 12px;
    border: 1px solid #FF6600;
    color: #FF6600;
    background: #fff;
    border-radius: 0.25em;
    padding: 0 3px;
    white-space: nowrap;
}

/* ========== 媒体查询 顺序从大到小，手机最后最高优先级 ========== */
/* 宽折叠屏 993~1199 4列 */
@media screen and (min-width:993px) and (max-width:1199px) {
    .cate-col {
        width: calc((100% - 42px)/4) !important;
    }
}

/* 平板 577~992 2列 */
@media screen and (max-width:992px) {
    .cate-col {
        width: calc((100% - 14px)/2) !important;
    }

    .cate-col:nth-child(4n) {
        border-right: 1px solid #F5F5F5;
    }

    .cate-col:nth-child(2n) {
        border-right: none;
    }

    .cate-title {
        font-size: 16px;
    }

    .tuijian li {
        width: calc(50% - 10px) !important;
        max-width: unset;
    }
}

/* 手机 ≤576px 单列 */
@media screen and (max-width:576px) {
    .cate-col {
        width: 100% !important;
        border-right: none !important;
        padding: 0 2px;
    }

    .cate-title {
        font-size: 16px;
    }

    /* 导航右侧隐藏 */
    .barin_r {
        display: none !important;
    }

    .barin {
        justify-content: flex-start;
    }

    /* 手机推荐模块缩小内边距、条目高度，区块不占大面积 */
    .tuijian {
        padding: 8px 6px;
        margin: 10px auto;
        height: 208px;
    }

    .tuijian ul {
        max-height: 180px;
    }

    .tuijian li {
        width: 100% !important;
        height: 28px;
        line-height: 28px;
    }

    /* 主容器缩小内边距，不贴屏幕 */
    .mainbox0 {
        padding: 8px 3px;
    }

    .cate-main {
        margin: 10px 0 6px;
    }

    /* 发布按钮自适应 */
    .post a {
        margin: 15px 5px 0 0;
        width: 100px;
    }

    .postout {
        max-width: 100%;
        text-align: right;
    }
}