/* 专栏列表页面样式 */

/* 防止滚动条抖动 */
html {
    overflow-y: scroll; /* 始终显示垂直滚动条 */
}

/* 防止页面闪动的平滑过渡 */
body {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* 专栏列表区域最小高度，防止布局跳动 */
#columnsList {
    min-height: 500px;
    transition: opacity 0.3s ease-in-out;
}

.filter-section {
    margin-bottom: 40px;
    text-align: center;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    color: #495057;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    color: white;
    border-color: #3b82f6;
}

.search-section {
    margin-bottom: 30px;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #dee2e6;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}

.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.search-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

/* 专栏作者和分类样式 */
.column-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.column-category {
    background: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        gap: 15px;
    }

    .search-input {
        width: 100%;
    }

    .search-btn {
        width: 100%;
        padding: 14px 24px;
    }

    .filter-buttons {
        justify-content: center;
    }

    .filter-btn {
        font-size: 14px;
        padding: 6px 12px;
    }
}