/**
 * LineArtStock Category Page Styles
 * 增强的分类页面样式，具有更大的缩略图和更令人印象深刻的布局
 */

/* 自定义布局容器 */
.lineart-custom-layout {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 头部区域 */
.lineart-header-section {
    width: 100%;
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 0;
}

.lineart-header-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.lineart-page-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.lineart-category-description {
    margin-bottom: 20px;
    color: #666;
}

.lineart-search-box {
    max-width: 600px;
    margin: 20px auto 0;
}

.lineart-search-form {
    display: flex;
    position: relative;
}

.lineart-search-field {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.lineart-search-submit {
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

/* 主内容区域 - 减少内边距 */
.lineart-main-section {
    width: 100%;
    background-color: #f5f7f9;
    padding: 40px 0;
}

.lineart-grid-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* 网格布局 - 改为2列，增加最小宽度 */
.lineart-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(400px, 1fr));
    gap: 40px;
    width: 100%;
    margin: 0 auto;
    max-width: 1400px;
}

/* Category Card Styling */
.lineart-category-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 450px;
    margin-bottom: 25px;
}

.lineart-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Card Link */
.lineart-category-card-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}

/* Card Image */
.lineart-category-card-image {
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.lineart-category-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.lineart-category-card:hover .lineart-category-card-image img {
    transform: scale(1.05);
}

/* Overlay Effect */
.lineart-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lineart-category-card:hover .lineart-category-overlay {
    opacity: 1;
}

.view-details {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card Info Section */
.lineart-category-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lineart-category-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.lineart-category-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lineart-category-title a:hover {
    color: #0066cc;
}

/* Meta Information */
.lineart-category-meta {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.complexity-badge, .free-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.complexity-badge.easy {
    background-color: #e6f7e6;
    color: #2e7d32;
}

.complexity-badge.medium {
    background-color: #fff8e1;
    color: #ff8f00;
}

.complexity-badge.complex {
    background-color: #ffebee;
    color: #c62828;
}

.free-badge {
    background-color: #e3f2fd;
    color: #1565c0;
}

/* Header Styling */
.archive-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.category-description {
    max-width: 800px;
    margin: 0 auto 25px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Search Box Styling */
.search-box {
    max-width: 600px;
    margin: 25px auto;
}

.search-form {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.search-field {
    flex-grow: 1;
    padding: 15px 25px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-submit {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.search-submit:hover {
    background-color: #0055aa;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
    clear: both;
    width: 100%;
}

.pagination ul {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pagination li {
    margin: 0;
    padding: 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 12px 18px;
    background-color: #ffffff;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    border-right: 1px solid #eee;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
}

.pagination li:last-child .page-numbers {
    border-right: none;
}

.pagination .page-numbers.current {
    background-color: #0066cc;
    color: white;
    font-weight: 600;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #f8f9fa;
}

.pagination .prev,
.pagination .next {
    padding: 12px 20px;
    font-weight: 600;
}

.pagination .dots {
    background-color: #ffffff;
    cursor: default;
}

.pagination .dots:hover {
    background-color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .lineart-category-grid {
        grid-template-columns: repeat(2, minmax(350px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .lineart-category-grid {
        grid-template-columns: repeat(1, minmax(300px, 1fr));
        gap: 30px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .lineart-category-card-image {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .lineart-grid-container {
        padding: 0 15px;
    }
    
    .lineart-category-card-image {
        height: 250px;
    }
    
    .lineart-category-card {
        min-height: 350px;
    }
}

@media (max-width: 576px) {
    .lineart-category-grid {
        max-width: 100%;
    }
}
