.shot-card-link {
    text-decoration: none;
    color: inherit;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;

}

.filter-bar {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto; /* For smaller screens */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.filter-bar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.filter-btn {
    background-color: transparent;
    border: none;
    padding: 0.5rem 0;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    transition: color 0.3s;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.filter-btn.active,
.filter-btn:hover {
    color: #0d0c22;
    border-bottom: 2px solid #0d0c22;
}

.content-filter-container {
    margin-bottom: 30px;
}



.shots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--grid-gap);
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

.filter-bar {
    display: flex;
    gap: var(--filter-btn-gap);
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.shot-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--card-border-radius);
}

/* Lazy Loading Styles */
.lazy-image {
    transition: opacity 0.3s ease, filter 0.3s ease;
    background-color: #f3f4f6;
    background-image: linear-gradient(45deg, #f3f4f6 25%, transparent 25%), 
                      linear-gradient(-45deg, #f3f4f6 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #f3f4f6 75%), 
                      linear-gradient(-45deg, transparent 75%, #f3f4f6 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.lazy-image.lazy-loading {
    opacity: 0.7;
    filter: blur(2px);
    animation: pulse 1.5s ease-in-out infinite;
}

.lazy-image.lazy-loaded {
    opacity: 1;
    filter: none;
    background: none;
}

.lazy-image.lazy-error {
    opacity: 0.8;
    filter: grayscale(0.3);
    background: #f8f9fa;
}

/* Loading animation */
@keyframes pulse {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 0.7;
    }
}

/* Skeleton loading effect for image placeholder */
.image-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--pagination-padding);
}

.shot-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow-2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.shot-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.shot-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
    border-top-left-radius: var(--card-radius);
    border-top-right-radius: var(--card-radius);
}

.no-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.875rem;
    font-weight: 500;
    border-top-left-radius: var(--card-radius);
    border-top-right-radius: var(--card-radius);
}

.shot-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}

.shot-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    flex: 1;
    min-width: 0;
}

.shot-author span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.shot-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #888;
    flex-shrink: 0;
}

/* Article categories and tags styles */
.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0.5rem 0;
}

.article-category {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background-color: #e5e7eb;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.article-category:hover {
    background-color: #d1d5db;
    color: #1f2937;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0.5rem 0;
}

.article-tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background-color: #007cba;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.article-tag:hover {
    opacity: 0.8;
}

.article-tag-more {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background-color: #9ca3af;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    cursor: default;
}



.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 3rem 0;
    margin-top: 2rem;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: #6b7280;
    background-color: transparent;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.page-link:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.page-link.page-active {
    background-color: #F6B313;
    color: white;
    font-weight: 600;
}

.page-link.page-active:hover {
    background-color: #F6B313;
}

.page-prev,
.page-next {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    background-color: white;
}

.page-prev:hover,
.page-next:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.page-dots {
    color: #9ca3af;
    font-weight: 500;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
}

/* 模态框容器样式 */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .content-filter-container {
        margin-top: 3rem;
        margin-bottom: 30px;
    }
    
    .shots-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .shot-info {
        padding: 0.75rem;
    }
    
    .shot-author {
        font-size: 0.8rem;
    }
    
    .shot-stats {
        font-size: 0.7rem;
    }
    
    .no-image {
        height: 150px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .shots-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .shot-card {
        max-width: 100%;
    }
    
    .shot-info {
        padding: 0.75rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .shot-author {
        flex: 1;
        min-width: 0;
    }
    
    .shot-stats {
        flex-shrink: 0;
    }
}

/* 通用隐藏类 */
.hidden {
    display: none !important;
}