/* 页面背景样式 */
.database-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://pub-debae0c106784b6c9bb10aeba98dfabd.r2.dev/images/bg.png');
    background-size: cover;
    background-position: center;
    height: 18.75rem; /* 300px -> 18.75rem */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 0.9375rem; /* 15px -> 0.9375rem */
    text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5); /* 2px 4px -> 0.125rem 0.25rem */
}

.banner-content p {
    font-size: 1.2rem;
    max-width: 37.5rem; /* 600px -> 37.5rem */
    margin: 0 auto;
}

/* 数据库容器 */
.database-container {
    max-width: 75rem; /* 1200px -> 75rem */
    margin: 0 auto;
    padding: 0 1.25rem; /* 20px -> 1.25rem */
}

/* 介绍文本 */
.intro-text {
    margin-bottom: 2.5rem; /* 40px -> 2.5rem */
    text-align: center;
}

.intro-text h2 {
    font-size: 1.75rem; /* 28px -> 1.75rem */
    color: #333;
    margin-bottom: 0.9375rem; /* 15px -> 0.9375rem */
}

.intro-text p {
    max-width: 50rem; /* 800px -> 50rem */
    margin: 0 auto;
    color: #666;
    line-height: 1.7;
}

/* 分类部分 */
.category-section {
    margin-bottom: 3.125rem; /* 50px -> 3.125rem */
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(21.875rem, 1fr)); /* 350px -> 21.875rem */
    gap: 1.875rem; /* 30px -> 1.875rem */
    margin-top: 1.5625rem; /* 25px -> 1.5625rem */
}

.category-card {
    border-radius: 0.625rem; /* 10px -> 0.625rem */
    overflow: hidden;
    background-color: white;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.1); /* 5px 15px -> 0.3125rem 0.9375rem */
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-0.3125rem); /* -5px -> -0.3125rem */
    box-shadow: 0 0.5rem 1.5625rem rgba(0, 0, 0, 0.15); /* 8px 25px -> 0.5rem 1.5625rem */
}

.category-card a {
    display: block;
    color: inherit;
}

.category-image {
    height: 12.5rem; /* 200px -> 12.5rem */
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-info {
    padding: 1.25rem; /* 20px -> 1.25rem */
}

.category-info h4 {
    color: #333;
    font-size: 1.25rem; /* 20px -> 1.25rem */
    margin-bottom: 0.625rem; /* 10px -> 0.625rem */
}

.category-info p {
    color: #666;
    margin-bottom: 0.9375rem; /* 15px -> 0.9375rem */
    line-height: 1.5;
}

.view-more {
    color: #8e2de2;
    font-weight: 500;
}

/* 筛选部分 */
.search-form {
    background-color: #f9f7f4;
    padding: 1.25rem; /* 20px -> 1.25rem */
    border-radius: 0.625rem; /* 10px -> 0.625rem */
    margin-bottom: 1.875rem; /* 30px -> 1.875rem */
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.05); /* 2px 6px -> 0.125rem 0.375rem */
    text-align: center;
}

.filter-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem; /* 10px -> 0.625rem */
}

.filter-group label {
    font-size: 1rem; /* 16px -> 1rem */
    color: #333;
    font-weight: 500;
}

#search-category {
    padding: 0.75rem 1.25rem; /* 12px 20px -> 0.75rem 1.25rem */
    border: 0.0625rem solid #ddd; /* 1px -> 0.0625rem */
    border-radius: 0.3125rem; /* 5px -> 0.3125rem */
    font-size: 1rem; /* 16px -> 1rem */
    background-color: white;
    min-width: 12.5rem; /* 200px -> 12.5rem */
}

/* 作品列表 - 简化版 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15.625rem, 1fr)); /* 250px -> 15.625rem */
    gap: 1.25rem; /* 20px -> 1.25rem */
    margin-top: 1.25rem; /* 20px -> 1.25rem */
}

.work-card {
    background-color: white;
    border-radius: 0.625rem; /* 10px -> 0.625rem */
    overflow: hidden;
    box-shadow: 0 0.1875rem 0.625rem rgba(0, 0, 0, 0.1); /* 3px 10px -> 0.1875rem 0.625rem */
    transition: transform 0.3s, box-shadow 0.3s;
}

.work-card:hover {
    transform: translateY(-0.3125rem); /* -5px -> -0.3125rem */
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.15); /* 5px 15px -> 0.3125rem 0.9375rem */
}

.work-image {
    position: relative;
    height: 12.5rem; /* 200px -> 12.5rem */
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.work-card:hover .image-overlay {
    opacity: 1;
}

.view-details {
    color: white;
    background-color: rgba(142, 45, 226, 0.8);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.view-details:hover {
    background-color: rgba(142, 45, 226, 1);
}

.work-info {
    padding: 12px;
    text-align: center;
}

.work-meta {
    display: flex;
    justify-content: center;
    margin: 0;
}

.work-tag {
    display: inline-block;
    padding: 4px 12px;
    margin: 4px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #333;
}

/* 原创分类标签特殊样式 */
.work-tag.original {
    background-color: #8c1c13;
    color: #fff;
}

/* 图片查看器 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-viewer {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-viewer:hover {
    color: #8e2de2;
}

#viewerImage {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 40px 0;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .work-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .work-image {
        height: 140px;
    }
    
    .work-tag {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* 原创作品特殊样式 */
.work-card[data-category="3d"],
.work-card[data-category="products"],
.work-card[data-category="fashion"] {
    position: relative;
    border: 2px solid #8c1c13;
    box-shadow: 0 4px 15px rgba(140, 28, 19, 0.1);
}

.work-card[data-category="3d"]::before,
.work-card[data-category="products"]::before,
.work-card[data-category="fashion"]::before {
    content: "原创";
    position: absolute;
    top: -4px;
    right: 20px;
    background-color: #8c1c13;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1;
}

/* 原创分类相关样式 */
.category-card.original {
    border: 1px solid #8c1c13;
    position: relative;
    margin-top: 15px;
    background: #fff;
    padding: 20px;
}

.category-card.original::before {
    content: "原创";
    position: absolute;
    top: -4px;
    right: -5px;
    background-color: #8c1c13;
    color: #fff;
    padding: 2px 15px;
    font-size: 14px;
    z-index: 1;
    transform: rotate(0deg);
}

.category-card.original .category-image {
    height: 180px;
    margin-bottom: 15px;
}

.category-card.original .category-info {
    padding: 0;
    text-align: left;
}

.category-card.original .category-info h4 {
    color: #8c1c13;
    margin: 0 0 10px 0;
    font-size: 24px;
}

.category-card.original .category-info p {
    color: #666;
    line-height: 1.8;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.category-card.original .view-more {
    color: #8c1c13;
    display: inline-block;
    font-size: 14px;
    text-decoration: none;
    position: relative;
    padding-right: 20px;
}

.category-card.original .view-more::after {
    content: "→";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.category-card.original .view-more:hover::after {
    transform: translate(5px, -50%);
}

/* 原创分类组标题 */
.original-section {
    margin-top: 60px;
    padding-top: 30px;
    position: relative;
}

.original-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #8c1c13;
}

.original-section .section-title {
    color: #8c1c13;
    font-size: 28px;
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 4px solid #8c1c13;
    line-height: 1;
}

.original-section .category-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 991px) {
    .original-section .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .original-section .category-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 调整卡片阴影和悬停效果 */
.category-card.original {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card.original:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(140, 28, 19, 0.1);
}

/* 筛选部分原创分类样式 */
#search-category option[value="3d"],
#search-category option[value="products"],
#search-category option[value="fashion"] {
    color: #8c1c13;
    font-weight: bold;
}


/* 移除响应式设计媒体查询，使用整体缩放代替 */ 