/* 栏目页样式 */
/* 页面标题区 */
.page-header {
    background: url('../img/category.jpg') center/cover;
    color: #ffffff;
    padding: 50px 0 30px;
    position: relative;
    overflow: hidden;
}

/* 添加半透明背景层提高文字可读性 */
.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.page-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #B8860B, #DAA520, #FFD700, #DAA520, #B8860B);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

/* 金色动画效果 */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 分类页面搜索框样式 */
.page-header .search-box.prominent {
    position: relative;
    max-width: 600px;
    margin: 20px auto 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-header .search-box.prominent:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.page-header .search-box.prominent input {
    width: calc(100% - 70px);
    height: 50px;
    padding: 0 25px;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
    color: #333;
}

.page-header .search-box.prominent input::placeholder {
    color: #666;
}

.page-header .search-box.prominent button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #B8860B, #DAA520);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-header .search-box.prominent button:hover {
    background: linear-gradient(135deg, #DAA520, #FFD700);
    transform: translateY(-50%) scale(1.05);
}

/* 响应式设计 - 搜索框 */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 25px;
    }
    
    .page-title h1 {
        font-size: 28px;
    }
    
    .page-header .search-box.prominent {
        max-width: 100%;
        margin: 15px 0 0;
    }
    
    .page-header .search-box.prominent input {
        height: 45px;
        padding: 0 20px;
        font-size: 15px;
    }
    
    .page-header .search-box.prominent button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 30px 0 20px;
    }
    
    .page-title h1 {
        font-size: 24px;
    }
    
    .page-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .page-header .search-box.prominent input {
        height: 40px;
        padding: 0 15px;
        font-size: 14px;
    }
    
    .page-header .search-box.prominent button {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}

.page-header .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #FFA500;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .current {
    color: #ffffff;
    font-weight: 500;
}

.page-title {
    margin: 0 0 15px;
}

.page-title h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-title p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.page-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.stat-item i {
    font-size: 16px;
    color: #FFD700;
}

.page-actions {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
    flex-direction: row;
}

.page-actions .page-stats {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-direction: row;
    width: auto;
}

.page-actions .stat-item {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
    margin-bottom: 0;
}

.page-actions .stat-item i {
    color: #FFD700;
}

.page-actions .view-toggle {
    align-items: center;
}

.page-actions .view-toggle button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    line-height: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: #495057;
    color: white;
}

.btn-primary:hover {
    background: #343a40;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #495057;
}

.btn-secondary:hover {
    background: white;
}

.view-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.view-toggle button {
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s;
}

.view-toggle button.active {
    background: rgba(0, 0, 0, 0.1);
    color: #212529;
}

/* 筛选和排序区 */
.filter-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.filter-content {
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.filter-group {
    margin-bottom: 0;
}

.filter-group:first-child {
    flex: 2;
}

.filter-group:last-child {
    flex: 1;
    text-align: right;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-options li {
    margin: 0;
}

.category-options li a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    font-size: 12px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.category-options li a:hover {
    background: #e9ecef;
    color: #333;
}

.category-options li.active a {
    background: #495057;
    color: white;
    border-color: #495057;
}

.filter-option {
    padding: 5px 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    font-size: 12px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-option:hover {
    background: #e9ecef;
    color: #333;
}

.filter-option.active {
    background: #495057;
    color: white;
    border-color: #495057;
}

.sort-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.sort-options a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    font-size: 12px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.sort-options a:hover {
    background: #e9ecef;
    color: #333;
}

.sort-options a.active {
    background: #495057;
    color: white;
    border-color: #495057;
}

.sort-options a i {
    font-size: 11px;
}

.filter-toggle {
    display: none;
    background: #495057;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 15px;
    width: 100%;
    justify-content: center;
}

.filter-section.collapsed {
    height: 50px;
}

.filter-section.collapsed .filter-content {
    display: none;
}

/* 主要内容区 */
.category-main {
    padding: 30px 0;
    background: #f8f9fa;
}

.category-content {
    display: flex;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.resources-container {
    flex: 1;
}

.resources-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.resources-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.resources-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.results-count {
    font-size: 13px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 16px;
}

/* 资源网格 */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.resources-grid.list-view {
    grid-template-columns: 1fr;
}

.resource-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.resource-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.resource-thumb {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.resource-thumb a {
    display: block;
    height: 100%;
    position: relative;
}

.resource-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.resource-item:hover .resource-thumb img {
    transform: scale(1.03);
}

.resource-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resource-item:hover .resource-overlay {
    opacity: 1;
}

.overlay-actions {
    display: flex;
    gap: 12px;
}

.overlay-actions button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view {
    background: rgba(255, 255, 255, 0.9);
    color: #212529;
}

.btn-view:hover {
    background: white;
}

.btn-download {
    background: #495057;
    color: white;
}

.btn-download:hover {
    background: #343a40;
}

.vip-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.resource-info {
    padding: 16px;
}

.resource-category {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 16px;
    margin-bottom: 10px;
}

.resource-title {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
}

.resource-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s;
}

.resource-title a:hover {
    color: #495057;
}

.resource-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6c757d;
}

.meta-item i {
    font-size: 11px;
}

.resource-desc {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.resource-tags .tag {
    background: #f8f9fa;
    color: #495057;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resource-tags .tag:hover {
    background: #e9ecef;
    color: #212529;
}

.resource-footer {
    display: flex;
    justify-content: center;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.resource-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.resource-author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.resource-author span {
    font-size: 12px;
    color: #495057;
}

.resource-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 12px;
}

.resource-date-row {
    justify-content: space-between;
    gap: 12px;
}

.resource-meta-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.resource-meta-inline > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.resource-date i {
    font-size: 11px;
}

.resource-date i.resource-favorites {
    margin-left: 10px;
    color: #e74c3c;
}

.detail-btn-compact {
    padding: 6px 10px;
    font-size: 12px;
    gap: 6px;
    flex-shrink: 0;
}

.detail-btn-compact i {
    font-size: 11px;
}

.btn-primary {
    display: inline-block;
    background: #495057;
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #343a40;
}

/* 列表视图样式 */
.resources-grid.list-view .resource-item {
    display: flex;
    align-items: stretch;
}

.resources-grid.list-view .resource-thumb {
    width: 220px;
    height: 100%;
    flex-shrink: 0;
}

.resources-grid.list-view .resource-thumb a {
    height: 100%;
}

.resources-grid.list-view .resource-thumb img {
    height: 100%;
    object-fit: cover;
}

.resources-grid.list-view .resource-info {
    flex: 1;
    padding: 20px 25px;
}

.resources-grid.list-view .resource-title {
    font-size: 20px;
}

.resources-grid.list-view .resource-desc {
    -webkit-line-clamp: 3;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-results-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #555;
}

.no-results p {
    color: #888;
}

/* 侧边栏样式 */
.category-sidebar {
    width: 280px;
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.widget-header h3 {
    margin: 0;
    font-size: 16px;
    color: #212529;
}

.widget-header i {
    color: #495057;
    font-size: 14px;
}

.widget-content {
    padding: 15px;
}

/* 热门标签 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .tag {
    background: #f8f9fa;
    color: #495057;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 12px;
    transition: all 0.3s;
}

.tag-cloud .tag:hover {
    background: #e9ecef;
    color: #212529;
    transform: translateY(-2px);
}

.tag-cloud .tag span {
    font-size: 11px;
    opacity: 0.7;
}

/* 热门资源 */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-item {
    display: flex;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.popular-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.popular-rank {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
}

.popular-item:nth-child(1) .popular-rank,
.popular-item:nth-child(2) .popular-rank,
.popular-item:nth-child(3) .popular-rank {
    background: #495057;
    color: white;
}

.popular-thumb {
    width: 55px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.popular-item:hover .popular-thumb img {
    transform: scale(1.05);
}

.popular-info {
    flex: 1;
    min-width: 0;
}

.popular-info h4 {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.4;
}

.popular-info h4 a {
    color: #212529;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.popular-info h4 a:hover {
    color: #495057;
}

.popular-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #6c757d;
    align-items: center;
}

.popular-meta i {
    margin-right: 3px;
}

.meta-separator {
    margin: 0 5px;
    color: #adb5bd;
}

/* 分类统计 */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stats-item a {
    color: #212529;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.3s;
}

.stats-item a:hover {
    color: #495057;
}

.stats-bar {
    position: relative;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.stats-progress {
    height: 100%;
    background: #495057;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.count {
    position: absolute;
    right: 0;
    top: -18px;
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
}

/* 分页样式 */
.pagination-section {
    padding: 30px 0;
    background: white;
}

.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #333;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.page-number:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #333;
}

.page-number.current {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.page-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #6c757d;
}

.pagination-info {
    font-size: 14px;
    color: #6c757d;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    .category-content {
        gap: 20px;
        flex-direction: column;
    }
    
    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 18px;
    }
    
    .category-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .filter-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .category-options {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 25px;
    }
    
    .page-title h1 {
        font-size: 28px;
    }
    
    .page-title p {
        font-size: 14px;
    }
    
    .page-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        min-width: 120px;
    }
    
    .page-actions {
        flex-wrap: wrap;
    }
    
    .filter-section {
        margin-bottom: 20px;
    }
    
    .filter-content {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        margin-bottom: 0;
        width: 100%;
    }
    
    .filter-options,
    .sort-options {
        gap: 6px;
        justify-content: flex-start;
    }
    
    .category-main {
        padding: 25px;
    }
    
    .resources-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .view-toggle {
        display: none;
    }

    .resources-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .resource-item {
        display: flex;
        align-items: stretch;
    }

    .resources-grid.list-view .resource-thumb {
        width: 120px;
        height: 100%;
        flex-shrink: 0;
    }

    .resources-grid.list-view .resource-thumb a {
        height: 100%;
    }

    .resources-grid.list-view .resource-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .resources-grid.list-view .resource-info {
        flex: 1;
        padding: 10px 12px;
    }

    .resource-info {
        padding: 12px 14px;
    }

    .resource-title {
        font-size: 14px;
    }

    .resources-grid.list-view .resource-title {
        font-size: 14px;
    }

    .resource-meta-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .resource-date i.resource-favorites {
        margin-left: 0;
    }
    
    .resource-info {
        padding: 14px;
    }
    
    .resource-title {
        font-size: 15px;
    }
    
    .resource-desc {
        font-size: 12px;
    }
    
    .category-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-widget {
        margin-bottom: 15px;
    }
    
    .widget-header {
        padding: 12px;
    }
    
    .widget-header h3 {
        font-size: 14px;
    }
    
    .widget-content {
        padding: 12px;
    }
    
    .tag-cloud .tag {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .popular-item {
        gap: 8px;
    }
    
    .popular-thumb {
        width: 50px;
        height: 35px;
    }
    
    .popular-info h4 {
        font-size: 12px;
    }
    
    .popular-meta {
        font-size: 10px;
    }
    
    .stats-item a {
        font-size: 12px;
    }
    
    .stats-bar {
        height: 5px;
    }
    
    .count {
        font-size: 10px;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        margin: 25px 0;
    }
    
    .page-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 30px 0 20px;
    }
    
    .page-title h1 {
        font-size: 24px;
    }
    
    .page-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .page-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .breadcrumb {
        margin-bottom: 12px;
    }
    
    .breadcrumb-item {
        font-size: 12px;
    }
    
    .page-stats {
        gap: 12px;
    }

    .resources-grid.list-view .resource-thumb {
        width: 120px;
        height: 100%;
    }

    .resources-grid.list-view .resource-thumb a {
        height: 100%;
    }

    .resources-grid.list-view .resource-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .resources-grid.list-view .resource-info {
        padding: 8px 10px;
    }

    .resource-info {
        padding: 10px 12px;
    }

    .resource-title {
        font-size: 14px;
    }

    .resources-grid.list-view .resource-title {
        font-size: 14px;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 8px 12px;
    }
    
    .stat-item i {
        font-size: 14px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .filter-section {
        margin-bottom: 15px;
        border-radius: 8px;
    }
    
    .filter-content {
        padding: 12px;
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        margin-bottom: 0;
    }
    
    .filter-group:first-child,
    .filter-group:last-child {
        flex: 1;
        text-align: left;
    }
    
    .filter-options,
    .sort-options {
        gap: 8px;
        justify-content: flex-start;
    }
    
    .category-main {
        padding: 20px 15px;
    }
    
    .resources-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .results-count {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .view-toggle {
        gap: 3px;
    }
    
    .view-toggle button {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .resource-item {
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 0;
    }

    .resource-thumb {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
        border-radius: 8px;
    }

    .resource-thumb img {
        border-radius: 8px;
    }
    
    .resource-info {
        padding: 4px 12px;
        height: 90px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .resource-category {
        font-size: 10px;
        padding: 2px 6px;
        margin-bottom: 8px;
    }
    
    .resource-title {
        font-size: 13px;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .resource-meta {
        gap: 8px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }
    
    .meta-item {
        font-size: 10px;
    }
    
    .meta-item i {
        font-size: 9px;
    }
    
    .resource-desc {
        display: none;
    }
    
    .resource-tags {
        gap: 4px;
        margin-bottom: 10px;
    }
    
    .resource-tags .tag {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .resource-footer {
        padding-top: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .resource-author {
        gap: 5px;
    }
    
    .resource-author img {
        width: 18px;
        height: 18px;
    }
    
    .resource-author span,
    .resource-date {
        font-size: 10px;
    }
    
    .btn-primary {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .overlay-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .overlay-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .sidebar-widget {
        margin-bottom: 12px;
    }
    
    .widget-header {
        padding: 10px;
    }
    
    .widget-header h3 {
        font-size: 13px;
    }
    
    .widget-header i {
        font-size: 12px;
    }
    
    .widget-content {
        padding: 10px;
    }
    
    .tag-cloud .tag {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .popular-item {
        gap: 6px;
        padding-bottom: 10px;
    }
    
    .popular-rank {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
    
    .popular-thumb {
        width: 45px;
        height: 30px;
    }
    
    .popular-info h4 {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .popular-meta {
        gap: 8px;
        font-size: 9px;
    }
    
    .stats-item {
        gap: 4px;
    }
    
    .stats-item a {
        font-size: 11px;
    }
    
    .stats-bar {
        height: 4px;
    }
    
    .count {
        font-size: 9px;
        top: -16px;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        margin: 20px 0;
    }
    
    .page-number {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    
    .page-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* 动画和过渡效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 页面加载动画 */
.page-header {
    animation: fadeIn 0.6s ease-out;
}

.filter-section {
    animation: slideDown 0.5s ease-out;
}

.resources-grid .resource-item {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.resources-grid .resource-item:nth-child(1) { animation-delay: 0.1s; }
.resources-grid .resource-item:nth-child(2) { animation-delay: 0.2s; }
.resources-grid .resource-item:nth-child(3) { animation-delay: 0.3s; }
.resources-grid .resource-item:nth-child(4) { animation-delay: 0.4s; }
.resources-grid .resource-item:nth-child(5) { animation-delay: 0.5s; }
.resources-grid .resource-item:nth-child(6) { animation-delay: 0.6s; }

.sidebar-widget {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.sidebar-widget:nth-child(1) { animation-delay: 0.2s; }
.sidebar-widget:nth-child(2) { animation-delay: 0.3s; }
.sidebar-widget:nth-child(3) { animation-delay: 0.4s; }

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 打印样式 */
@media print {
    .page-header,
    .filter-section,
    .pagination-section,
    .sidebar-widget {
        display: none;
    }
    
    .resources-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .resource-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .resource-overlay {
        display: none;
    }
}
