body {
    background-color: #f3f4f7;
}

@media screen and (max-width:1300px) {
    body {
        padding-bottom: unset;
    }
    .v8-footer {
        display: block;
    }
}

/* 布局修正 - 主要修改部分 */
.pk-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.v8-container-left {
    flex: 1;
    min-width: 0;
    padding: 0 15px;
}

.v8-container-right {
    width: 300px;
    padding: 0 15px;
}

/* 重点修改的移动端响应式部分 */
@media (max-width: 991px) {
    .pk-row {
        margin: 0; /* 移除负边距 */
    }
    
    .v8-container-left,
    .v8-container-right {
        width: 100%;
        padding: 0 12px !important; /* 统一左右边距 */
    }
    
    .v8-container-right {
        margin-top: 20px;
    }
    
    /* 确保所有内容卡片有统一的外边距 */
    .v8-home-forum-list,
    .v8-home-news,
    .v8-list-right-readlist,
    .v8-home-friendlinks {
        margin: 15px 0 !important;
    }
}

/* 控制显示 */
@media screen and (min-width: 768px) {
    .v8-home-forum-list.mobile-only,
    .v8-mobile-friendlinks {
        display: none !important;
    }
}
@media screen and (max-width: 767px) {
    .v8-home-forum-list.mobile-only,
    .v8-mobile-friendlinks {
        display: block !important;
    }
}

.v8-mobile-friendlinks {
    margin: 20px auto;
    max-width: calc(100% - 24px); /* 修正宽度计算 */
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 5%);
    background-color: #fff;
}

.v8-home-friendlinks-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
}

.v8-home-friendlinks-title::before {
    content: "";
    display: block;
    width: 4px;
    height: 18px;
    background: linear-gradient(to bottom, #7b68ee, #ff69b4);
    border-radius: 2px;
    margin-right: 8px;
    margin-left: -10px;
}

.v8-home-friendlinks-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 16px;
    color: #555;
    padding: 15px !important; /* 统一内边距 */
    justify-content: flex-start;
}

.v8-home-friendlinks-content a {
    text-decoration: none;
    color: inherit;
    padding: 0 0;
    transition: color .3s ease;
    border-bottom: 2px solid transparent;
}

.v8-home-friendlinks-content a:hover {
    color: #007bff;
    border-bottom-color: #007bff;
}

.forum-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 10px;
    color: #8b8989;
    justify-content: flex-end;
    font-weight: 600;
    margin-top: 0;
    word-break: break-word;
    color: #000;
    text-transform: capitalize;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.forum-badge-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    text-align: center;
    line-height: 24px;
    margin-right: 4px;
    font-size: 12px;
}

.forum-badge-text a {
    color: #333;
    text-decoration: none;
}

.forum-badge-text a:hover}

.forum-badge-text a:hover {
    text-decoration: underline;
}

.forum-badge-right {
    display: flex;
    justify-content: flex-end;
}

.v8-navbar-pc-logo,
.v8-navbar-m-logo {
    max-height: 70%;
    max-width: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all .4s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
}

.v8-read-container {
    font-weight: 666;
    color: #333;
    border-bottom: 1px solid #eee;
    margin-bottom: 12px;
}

.v8-home-ad-1 {
    margin: 15px 12px; /* 添加左右边距 */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
}

.v8-home-swiper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
    margin: 0 12px; /* 添加左右边距 */
    position: relative;
}

.v8-home-kd-content,
.v8-home-forum-list-content,
.v8-home-news-content {
    overflow: visible !important;
    padding: 20px !important;
    min-height: 100px;
}

.v8-home-kd-content li,
.v8-home-news-content li {
    padding: 12px 0 !important;
    line-height: 1.6 !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, .5);
    opacity: 1;
    transition: all .3s ease;
}

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

.v8-home-info {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    margin: 20px 12px; /* 添加左右边距 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 5%);
}

.v8-home-info .pk-w-sm-3 {
    text-align: center;
    padding: 15px;
    transition: transform .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 .3s ease;
}

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

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

/* PC端推荐版块样式 */
@media screen and (min-width: 768px) {
    .v8-home-forum-list {
        background: #f8f9fa;
        border-radius: 10px;
        margin: 20px 12px; /* 添加左右边距 */
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        border: 1px solid #e9ecef;
    }
    
    .v8-home-forum-list-title {
        padding: 15px 20px;
        border-bottom: 1px solid #e9ecef;
        background: linear-gradient(to right, #f8f9fa, #e9ecef);
    }
    
    .v8-home-forum-list-title span {
        font-size: 16px;
        color: #495057;
    }
    
    .v8-home-forum-list-title span::before {
        width: 16px;
        height: 16px;
        background: #6c757d;
    }
    
    .v8-home-forum-list-content {
        padding: 15px !important;
    }
}

/* 手机端样式 */
@media screen and (max-width: 767px) {
    .v8-home-forum-list {
        background: #fff;
        border-radius: 12px;
        margin: 15px 12px !important; /* 统一外边距 */
        box-shadow: 0 2px 8px rgba(0,0,0,5%);
    }
    
    .v8-home-forum-list-title {
        padding: 18px 20px;
        border-bottom: 2px solid #f0f2f5;
    }
    
    .v8-home-forum-list-title span {
        font-size: 18px;
        font-weight: 600;
        color: #2d3436;
    }
    
    .v8-home-forum-list-title span::before {
        background: #4a90e2;
    }
}

.v8-list-right-readlist {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 8%);
    margin: 15px 12px !important; /* 统一外边距 */
    overflow: hidden;
}

.v8-list-right-readlist-title {
    padding: 16px 20px;
    border-bottom: 1px solid #dee2e6;
}

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

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

.v8-list-right-readlist-content {
    padding: 25px 23px;
}

@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;
}