/* ============================================
   首页样式 - 漫画为主，资讯减弱
   ============================================ */

/* 顶部工具栏 */
.topNavC {
    margin: 0;
    padding: 0;
    height: 41px;
    line-height: 41px;
    background: #fafafa;
    font-size: 13px;
    color: #676767;
}

.topNavC-inner {
    display: block;
    width: 1200px;
    margin: 0 auto;
}

.topNavC a {
    color: #676767;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.2s ease;
}

.topNavC a:hover {
    color: #7C6FE6;
}

.topNavC i {
    color: #ccc;
    font-style: normal;
    margin: 0 5px;
}

/* Hero轮播+排行区 */
.hero-section {
    width: 1200px;
    margin: 15px auto 0;
    overflow: hidden;
}

.hero-banner {
    position: relative;
    float: left;
    width: 800px;
    height: 390px;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    text-decoration: none;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-mask {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 50px 25px 18px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: #fff;
}

.hero-title {
    display: block;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.hero-dots {
    position: absolute;
    bottom: 12px;
    right: 15px;
    z-index: 10;
}

.hero-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 3px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-dot.active {
    background: #7C6FE6;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease;
    user-select: none;
}

.hero-banner:hover .hero-arrow {
    opacity: 1;
}

.hero-arrow:hover {
    background: rgba(124,111,230,0.8);
}

.hero-prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.hero-next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

/* Hero侧边排行 */
.hero-side {
    float: right;
    width: 380px;
    height: 390px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-side-hd {
    height: 45px;
    line-height: 45px;
    padding: 0 18px;
    border-bottom: 2px solid #7C6FE6;
}

.hero-side-hd h2 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.hero-side-list {
    margin: 0;
    padding: 8px 18px;
    list-style: none;
}

.hero-side-list li {
    height: 31px;
    line-height: 31px;
    overflow: hidden;
    border-bottom: 1px dashed #f0f0f0;
}

.hero-side-list li:last-child {
    border-bottom: none;
}

.rank-num {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: #f0f0f0;
    color: #999;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
}

.rank-num.rank-top {
    background: #7C6FE6;
    color: #fff;
}

.hero-side-list li a {
    display: inline-block;
    max-width: 200px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    transition: color 0.2s ease;
}

.hero-side-list li a:hover {
    color: #7C6FE6;
}

.rank-author {
    float: right;
    font-size: 11px;
    color: #bbb;
    font-style: normal;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 主内容区 */
#main.shoy {
    width: 1200px;
    margin: 15px auto 0;
}

/* 分类内容区 */
.flshow {
    width: 1200px;
    background: #fff;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
}

.flshow .mfl {
    float: left;
    width: 180px;
    padding: 15px;
    box-sizing: border-box;
}

.catabox {
    width: 100%;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e2e2e2;
}

.catabox div.clearfix {
    margin: 0;
    padding: 0;
}

.catabox div.clearfix h2 {
    display: block;
    font-size: 16px;
    color: #333;
    margin: 0 0 10px 0;
    padding-left: 8px;
    border-left: 3px solid #7C6FE6;
}

.catabox div.clearfix a {
    float: left;
    padding: 4px 10px;
    margin: 3px 4px 3px 0;
    background: #f5f5f5;
    color: #666;
    font-size: 12px;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.catabox p a:hover {
    background: #7C6FE6;
    color: #fff;
}

.imgslide {
    margin-top: 15px;
}

.slide-title {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #333;
    font-weight: bold;
}

.slide-list a {
    display: inline-block;
    padding: 3px 10px;
    margin: 3px 5px 3px 0;
    background: #F5F3FF;
    color: #7C6FE6;
    font-size: 12px;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.slide-list a:hover {
    background: #7C6FE6;
    color: #fff;
}

.flshow .bbox {
    margin-left: 180px;
    padding: 15px;
    min-height: 200px;
}

.flshow .bbox.on {
    display: block;
}

.bbox-more {
    text-align: right;
    margin-bottom: 8px;
}

.bbox-more a {
    font-size: 13px;
    color: #7C6FE6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bbox-more a:hover {
    color: #5E60CE;
}

.app-grid {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
}

.app-grid li {
    float: left;
    width: 12.5%;
    padding: 10px 8px;
    box-sizing: border-box;
    text-align: center;
}

/* 封面图底部遮罩 */
.app-grid li a.cover-mask {
    display: block;
    position: relative;
    width: 109px;
    height: 145px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
}

.app-grid li a.cover-mask img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.app-grid li a.cover-mask:hover img {
    transform: scale(1.08);
}

.app-grid li a.cover-mask .cover-title {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 20px 8px 6px;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.4;
    color: #fff;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 资讯紧凑列表 */
.news-strip {
    width: 1200px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px 20px;
    box-sizing: border-box;
}

.news-strip-hd {
    height: 35px;
    line-height: 35px;
    margin-bottom: 10px;
    border-bottom: 2px solid #7C6FE6;
    overflow: hidden;
}

.news-strip-hd h2 {
    float: left;
    margin: 0;
    font-size: 16px;
    color: #333;
}

.news-strip-hd .more {
    float: right;
    font-size: 12px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-strip-hd .more:hover {
    color: #7C6FE6;
}

.news-strip-list {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
}

.news-strip-list li {
    float: left;
    width: 33.33%;
    height: 32px;
    line-height: 32px;
    padding-right: 15px;
    box-sizing: border-box;
    overflow: hidden;
}

.news-strip-list li::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #7C6FE6;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.news-strip-list li a {
    display: inline-block;
    max-width: 320px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    transition: color 0.2s ease;
}

.news-strip-list li a:hover {
    color: #7C6FE6;
}

/* 专题合集区 */
.hjbox {
    width: 1200px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    box-sizing: border-box;
    overflow: hidden;
}

.hjbox-hd {
    height: 35px;
    line-height: 35px;
    margin-bottom: 15px;
    border-bottom: 2px solid #7C6FE6;
    overflow: hidden;
}

.hjbox-hd h2 {
    float: left;
    margin: 0;
    font-size: 16px;
    color: #333;
}

.hjbox-hd .more {
    float: right;
    font-size: 12px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hjbox-hd .more:hover {
    color: #7C6FE6;
}

.hjbox-bd {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* 专题图片底部遮罩 */
.hj-item {
    position: relative;
    flex: 0 0 calc((100% - 80px) / 6);
    height: 110px;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hj-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hj-item:hover img {
    transform: scale(1.06);
}

.hj-mask {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 18px 10px 8px;
    box-sizing: border-box;
    font-size: 13px;
    color: #fff;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 底部链接区 */
.links {
    width: 1200px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    box-sizing: border-box;
}

.links-inner {
    line-height: 28px;
    font-size: 12px;
}

.links-inner strong {
    color: #333;
    font-weight: bold;
    margin-right: 8px;
}

.links-inner a {
    color: #666;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.2s ease;
}

.links-inner a:hover {
    color: #7C6FE6;
}

.friend-links {
    margin-bottom: 0;
}

/* 回到顶部 */
#go_top {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    color: #999;
    display: none;
    z-index: 999;
    transition: all 0.2s ease;
}

#go_top:hover {
    background: #7C6FE6;
    color: #fff;
    border-color: #7C6FE6;
}

/* 响应式 */
@media (max-width: 1200px) {
    .hero-section,
    #main.shoy,
    .flshow,
    .hjbox,
    .links,
    .news-strip {
        width: 98%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-banner {
        width: 66%;
    }

    .hero-side {
        width: 33%;
    }

    .hero-slide img {
        width: 100%;
    }

    .hero-title {
        font-size: 18px;
    }

    .flshow .mfl {
        float: none;
        width: 100%;
        border-bottom: 1px dashed #e2e2e2;
    }

    .flshow .bbox {
        margin-left: 0;
    }

    .news-strip-list li {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        float: none;
        width: 100%;
        height: 200px;
    }

    .hero-side {
        float: none;
        width: 100%;
        height: auto;
        margin-top: 10px;
    }

    .hero-slide {
        flex-direction: column;
    }

    .hero-slide img {
        width: 100%;
        height: 100%;
    }

    .hero-mask {
        padding: 30px 15px 12px;
    }

    .hero-title {
        font-size: 14px;
    }

    .app-grid li {
        width: 33.33%;
        padding: 8px 5px;
    }

    .app-grid li a.cover-mask {
        width: 100%;
        height: 130px;
    }

    .news-strip-list li {
        width: 100%;
    }

    .hj-item {
        width: 48%;
        margin-right: 4%;
        margin-bottom: 10px;
        height: 90px;
    }

    .hj-item:nth-child(6n) {
        margin-right: 4%;
    }

    .hj-item:nth-child(2n) {
        margin-right: 0;
    }
}
