/* 推荐专题区域样式 */
.recom-topics {
    margin: 10px 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    padding: 15px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee; /* 添加底部分割线 */
}

.title-text {
    font-size: 18px;
    font-weight: bold;
    color: #0056b3;
    position: relative;
    padding-left: 10px;
}

.title-text:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 18px;
    background-color: #0056b3;
}

.more-link {
    color: #999;
    font-size: 14px;
}

.topics-slider {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    height: 130px; /* 增加高度 */
}

.topics-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.topics-item {
    flex: 0 0 25%;
    padding: 0 10px;
    box-sizing: border-box;
    text-align: center;
}
.topics-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-align: center;
    cursor: pointer;
    
    opacity: 0.8; /* 设置默认透明度 */
    transition: opacity 0.3s ease; /* 平滑过渡效果 */
}
.topics-item img {
    max-width: 100%;
    height: 100px; /* 增加图片高度 */
    object-fit: cover;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.topics-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.topic-title {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topics-nav {
    position: absolute;
    top: 30%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 10;
    padding: 0 10px;
}

.topics-prev, .topics-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
}

.topics-prev:hover, .topics-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* 响应式样式 */
@media screen and (max-width: 992px) {
    .topics-item {
        flex: 0 0 33.33%;
    }
}

@media screen and (max-width: 768px) {
    .topics-item {
        flex: 0 0 50%;
    }
}

@media screen and (max-width: 576px) {
    .topics-item {
        flex: 0 0 100%;
    }
}