//* 首页通用样式 */
.v8-home-ad-1 {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
/* 轮播图优化 */
.v8-home-swiper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 0px 0;
    position: relative;
}
/* 修正颜色冲突 */
.v8-home-forum-list-content, 
.v8-home-kd-content,
.v8-home-news-content {
    color: #333 !important; /* 强制文字颜色 */
}

/* 修正版块内容选择器 */
.v8-home-forum-list-content .forum { /* 添加空格表示层级关系 */
    padding: 15px;
    transition: all 0.3s ease;
}

/* 确保链接可见 */
.v8-home-forum-list-content a,
.v8-home-kd-content a,
.v8-home-news-content a {
    color: #333 !important;
}

/* 修正不正确的透明度 */
.swiper-pagination-bullet {
    background: rgba(255,255,255,0.8) !important; /* 提高可见度 */
}

/* 添加全局文字保险 */
.v8-container {
    color: #333; /* 全局文字颜色 */
    font-family: system-ui, -apple-system, sans-serif; /* 确保字体存在 */
}

/* 修正移动端显示 */
@media (max-width: 768px) {
    .v8-home-forum-list-title span {
        font-size: 16px !important;
    }
    
    .v8-home-info span {
        font-size: 13px !important;
    }
}
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.2);
}

/* 站点信息区块 */
.v8-home-info {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.v8-home-info .pk-w-sm-3 {
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease;
}

.v8-home-info .pk-w-sm-3:hover {
    transform: translateY(-5px);
}

.v8-home-info img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.v8-home-info span {
    display: block;
    font-size: 14px;
    color: #666;
}

.v8-home-info span:last-child {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-top: 5px;
}

/* 列表公共样式 */
.v8-home-forum-list {
    background: #fff;
    border-radius: 12px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.v8-home-forum-list-title {
    background: linear-gradient(135deg, #6B8DD6 0%, #8E37D7 100%);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v8-home-forum-list-title span {
    font-size: 18px;
    font-weight: 600;
}

.v8-home-forum-list-title a {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    transition: all 0.3s ease;
}

.v8-home-forum-list-title a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 文章列表样式 */
.v8-home-kd-content ul {
    padding: 15px 20px;
}

.v8-home-kd-content li {
    padding: 0px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.v8-home-kd-content li:last-child {
    border-bottom: none;
}

.v8-home-kd-content li:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.v8-home-kd-content a {
    color: #333;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v8-home-kd-content a:hover {
    color: #6B8DD6;
    text-decoration: none;
}

/* 推荐版块样式 */
.v8-home-forum-list-content.forum {
    padding: 15px;
}

.v8-home-forum-list-content .forum {
    padding: 15px;
    transition: all 0.3s ease;
}

.v8-home-forum-list-content .forum:hover {
    background: #f8f9fa;
}

.v8-home-forum-list-content img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    float: left;
    margin-right: 15px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.v8-home-forum-list-content span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 17px;
}

.v8-home-forum-list-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 10px 0 0;
    clear: both;
}

/* 右侧公告样式 */
.v8-home-news {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.v8-home-news-title {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v8-home-news-content li {
    padding: 0px 20px;
    border-bottom: 1px solid #eee;
}

.v8-home-news-content li:last-child {
    border-bottom: none;
}

.v8-home-news-content a {
    color: #333;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.v8-home-news-content a:hover {
    color: #6B8DD6;
    transform: translateX(5px);
}

/* 友情链接优化 */
.v8-home-friendlinks {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.v8-home-friendlinks-content a {
    display: inline-block;
    margin: 5px 10px;
    color: #666;
    font-size: 13px;
    transition: all 0.3s ease;
    margin-top: 39px;
}

.v8-home-friendlinks-content a:hover {
    color: #6B8DD6;
    transform: translateY(-2px);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .v8-container {
        padding: 0 10px;
    }
    
    .v8-home-info .pk-w-sm-3 {
        padding: 10px;
    }
    
    .v8-home-info img {
        width: 40px;
        height: 40px;
    }
    
    .v8-home-forum-list-content img {
        width: 50px;
        height: 50px;
    }
    
    .v8-home-forum-list-title span {
        font-size: 16px;
    }
}
 /* 推荐文章*/
.v8-list-right-readlist {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

/* 标题样式 */
.v8-list-right-readlist-title {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.v8-list-right-readlist-title span {
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
    position: relative;
    padding-left: 12px;
}

.v8-list-right-readlist-title span:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: #4a90e2;
    border-radius: 2px;
}

.v8-list-right-readlist-content {
    padding: 15px 20px;
}

.v8-list-right-readlist-content li {
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border-radius: 6px;
    overflow: hidden;
}

.v8-list-right-readlist-content li:hover {
    background: #f8f9fa;
    transform: translateX(8px);
}

.v8-list-right-readlist-content .hasImage {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-top: 2px;
    background: #fff;
    border: 1px solid #f1f3f5;
}

.v8-list-right-readlist-content .hasImage img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* 文字样式 */
.v8-list-right-readlist-content li a span {
    color: #495057;
    font-size: 14px;
    line-height: 3.5;
    margin-left: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v8-list-right-readlist-content li a:hover span {
    color: #1864ab;
    text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .v8-list-right-readlist {
        border-radius: 6px;
        margin-bottom: 15px;
    }
    
    .v8-list-right-readlist-title {
        padding: 12px 15px;
    }
    
    .v8-list-right-readlist-title span {
        font-size: 16px;
        padding-left: 10px;
    }
    
    .v8-list-right-readlist-content {
        padding: 10px 15px;
    }
    
    .v8-list-right-readlist-content .hasImage img {
        width: 60px;
        height: 45px;
        margin-right: 10px;
    }
}

/* 图片加载动画 */
@keyframes img-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.v8-list-right-readlist-content img[src=""] {
    background: linear-gradient(
        90deg,
        #f6f7f8 25%,
        #edeef1 37%,
        #f6f7f8 63%
    );
    background-size: 400% 100%;
    animation: img-loading 1.6s ease infinite;
}
/* 版块名称美化 */
.v8-home-forum-list-content .forum a span {
    display: inline-block; /* 修改为inline-block */
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 12px 0 8px; /* 修正margin */
    position: relative;
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    line-height: 1.5; /* 添加行高 */
    padding: 22px 28px 4px 69px; /* 调整padding */
    height: 46px;
}

/* 渐变色特效修正 */
.v8-home-forum-list-content .forum:nth-child(odd) a span,
.v8-home-forum-list-content .forum:nth-child(even) a span {
    background: linear-gradient(135deg, #6B8DD6 0%, #8E37D7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* 单独设置偶数项 */
.v8-home-forum-list-content .forum:nth-child(even) a span {
    background-image: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .v8-home-forum-list-content .forum a span {
        font-size: 16px;
        line-height: 1.4; /* 移动端适当减小行高 */
    }
}