/* 分类页面公共样式 */

/* 分类页面横幅 */
.category-banner {
    height: 300px;
}

.flowers-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/flowers-banner.jpg');
}

.animals-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/animals-banner.jpg');
}

.database-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://pub-debae0c106784b6c9bb10aeba98dfabd.r2.dev/images/bg.png');
}

/* 分类页面容器 */
.category-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 筛选导航 */
.filter-nav {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.filter-tabs {
    display: flex;
    list-style: none;
    border-bottom: 1px solid #eee;
}

.filter-tabs li {
    flex: 1;
    text-align: center;
}

.filter-tabs a {
    display: block;
    padding: 15px 10px;
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-tabs a:hover {
    background-color: #f9f5f0;
    color: #8c1c13;
}

.filter-tabs a.active {
    background-color: #8c1c13;
    color: #fff;
}

/* 作品卡片增强样式 */
.work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.work-tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f0e6d8;
    color: #8c1c13;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.page-num, .page-next {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-num {
    background-color: #f0e6d8;
    color: #555;
}

.page-num.active {
    background-color: #8c1c13;
    color: #fff;
}

.page-next {
    background-color: #8c1c13;
    color: #fff;
    padding: 8px 15px;
}

.page-num:hover, .page-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .filter-tabs {
        flex-wrap: wrap;
    }
    
    .filter-tabs li {
        flex: 0 0 33.333%;
    }
    
    .filter-tabs a {
        padding: 10px 5px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .filter-tabs li {
        flex: 0 0 50%;
    }
}

/* 页面通用样式 */
.category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.intro-text {
    margin-bottom: 50px;
    text-align: center;
}

.intro-text h2 {
    font-size: 32px;
    color: #8e3e3c;
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 28px;
    color: #8e3e3c;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #8e3e3c;
    margin: 10px auto 0;
}

/* 分类横幅 */
.category-banner {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.category-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.original-banner {
    background-image: url('images/0a451d3c54eb0fbc2c7a4de0d051be1.jpg');
}

.threed-banner {
    background-image: url('images/1.png');
}

.products-banner {
    background-image: url('images/2.png');
}

.fashion-banner {
    background-image: url('images/0a451d3c54eb0fbc2c7a4de0d051be1.jpg');
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 20px;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* 子分类卡片 */
.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.subcategory-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subcategory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.subcategory-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.subcategory-image {
    height: 220px;
    overflow: hidden;
}

.subcategory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.subcategory-card:hover .subcategory-image img {
    transform: scale(1.05);
}

.subcategory-info {
    padding: 20px;
    background-color: #fff;
}

.subcategory-info h4 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #8e3e3c;
}

.subcategory-info p {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px;
}

.view-more {
    font-size: 16px;
    color: #8e3e3c;
    font-weight: 500;
    display: inline-block;
    transition: transform 0.3s ease;
}

.subcategory-card:hover .view-more {
    transform: translateX(5px);
}

/* 作品网格 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.work-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: #fff;
}

.work-card:hover {
    transform: translateY(-5px);
}

.work-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .image-overlay {
    opacity: 1;
}

.view-details {
    background-color: #8e3e3c;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-details:hover {
    background-color: #723331;
}

.work-info {
    padding: 20px;
}

.work-info h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #8e3e3c;
}

.work-artist, .work-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.work-tag {
    background-color: #f0e6e6;
    color: #8e3e3c;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    display: inline-block;
}

.work-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin-top: 10px;
}

/* 工艺特点部分 */
.techniques-grid,
.product-types-grid,
.fashion-styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.technique-card,
.product-type-card,
.fashion-style-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.technique-card:hover,
.product-type-card:hover,
.fashion-style-card:hover {
    transform: translateY(-5px);
}

.technique-icon,
.product-type-icon,
.fashion-style-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.technique-icon img,
.product-type-icon img,
.fashion-style-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.technique-info h4,
.product-type-info h4,
.fashion-style-info h4 {
    font-size: 20px;
    color: #8e3e3c;
    margin-bottom: 12px;
}

.technique-info p,
.product-type-info p,
.fashion-style-info p {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

/* 设计师聚焦 */
.designer-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
}

.designer-photo {
    height: 300px;
}

.designer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.designer-info {
    padding: 25px;
}

.designer-info h4 {
    font-size: 24px;
    color: #8e3e3c;
    margin-bottom: 15px;
}

.designer-bio {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.designer-quote {
    font-style: italic;
    font-size: 17px;
    line-height: 1.6;
    color: #666;
    border-left: 3px solid #8e3e3c;
    padding-left: 15px;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .designer-card {
        flex-direction: row;
    }
    
    .designer-photo {
        width: 40%;
        height: auto;
    }
    
    .designer-info {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 36px;
    }
    
    .banner-content p {
        font-size: 18px;
    }
    
    .intro-text h2 {
        font-size: 28px;
    }
    
    .intro-text p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .works-grid,
    .subcategory-grid,
    .techniques-grid,
    .product-types-grid,
    .fashion-styles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .category-banner {
        height: 300px;
    }
    
    .works-grid,
    .subcategory-grid,
    .techniques-grid,
    .product-types-grid,
    .fashion-styles-grid {
        grid-template-columns: 1fr;
    }
} 