/* Shows页面自定义样式 */

/* 分类导航样式优化 */
.sort {
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border-radius: 12px;
}

.sort_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
}

.chengpi-search-form {
    position: relative;
    width: 240px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.chengpi-search-input {
    width: 100%;
    padding: 8px 40px 8px 15px;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
    height: 40px;
}

.chengpi-search-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.chengpi-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #667eea;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-right: -4px;
}

.chengpi-search-btn:hover {
    color: #764ba2;
    background-color: rgba(102, 126, 234, 0.1);
}

.sort_loop {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    flex: 1;
    overflow-x: auto;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.sort_loop::-webkit-scrollbar {
    display: none;
}

.sort_loop h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 15px 0 0;
    min-width: 70px;
}

.sort_a {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    flex: 1;
}

.sort_a a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.sort_a a:hover,
.sort_a a.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

/* 确保featured-content-section在shows页面正常显示 */
.featured-content-section {
    padding: 0 0 30px;
}

.featured-grid {
    margin-top: 20px;
    gap: 25px;
}

@media (max-width: 1200px) {
    .featured-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .featured-grid {
        gap: 15px;
    }
}

/* 分页样式优化 - 简洁横向设计 */
.chengpi-pagination {
    margin-top: 40px;
    text-align: center;
}

.chengpi-pagination {
    display: flex;
    flex-wrap: wrap; /* 允许在小屏幕上换行 */
    justify-content: center;
    gap: 5px;
    padding: 10px 0;
}

.chengpi-pagination a,
.chengpi-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #666;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0 2px;
}

.chengpi-pagination a:hover {
    background-color: #e9ecef;
    color: #333;
}

.chengpi-pagination .current {
    background-color: #667eea;
    color: #fff;
    font-weight: 600;
}

.chengpi-pagination .dots {
    background: none;
    cursor: default;
}

.chengpi-pagination .prev,
.chengpi-pagination .next {
    background-color: #e9ecef;
}

@media (max-width: 576px) {
    .chengpi-pagination {
        gap: 3px;
    }
    
    .chengpi-pagination a,
    .chengpi-pagination span {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
        margin: 0 1px;
    }
}

@media (max-width: 768px) {
    .sort {
        padding: 15px;
    }

    .sort_box {
        flex-direction: column;
        gap: 15px;
    }

    .chengpi-search-form {
        width: 100%;
    }

    .sort_a {
        gap: 8px;
    }

    .sort_a a {
        padding: 6px 14px;
        font-size: 13px;
    }

    .featured-content-section {
        padding: 15px 0 25px;
    }

    .chengpi-pagination ul {
        padding: 4px;
        gap: 4px;
    }

    .chengpi-pagination a,
    .chengpi-pagination span {
        min-width: 30px;
        height: 30px;
        padding: 0 6px;
        font-size: 13px;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sort_loop {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort_loop h3 {
        margin-bottom: 10px;
    }
    
    .sort_a {
        width: 100%;
    }
}