/* ==================== 作品展示页样式 ==================== */
.gallery-content {
    padding: 60px 0;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
    align-items: center;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 250px;
}

.search-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab.active,
.filter-tab:hover {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: #fff;
    border-color: #c41e3a;
}

.sort-options select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
}

.gallery-section {
    margin-bottom: 60px;
}

.gallery-section h3 {
    font-size: 26px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.featured-gallery {
    display: flex;
    gap: 20px;
}

.featured-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.featured-item.main {
    flex: 2;
}

.featured-item.main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.featured-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-items .featured-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.featured-overlay h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.featured-overlay p {
    font-size: 14px;
    color: #ddd;
}

.featured-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #c41e3a;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.featured-link:hover {
    background-color: #a3162d;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
    text-decoration: none;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.category-info h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 5px;
}

.category-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 8px;
}

.category-count {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(196, 30, 58, 0.9);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    width: fit-content;
}

/* 兼容旧类名 */
.category-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-item:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.category-overlay h4 {
    color: #fff;
    font-size: 18px;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.latest-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.latest-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.latest-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.latest-info {
    padding: 20px;
}

.latest-info h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.latest-info p {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.latest-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(196, 30, 58, 0.1);
    color: #c41e3a;
    border-radius: 4px;
    font-size: 12px;
}
