
        :root {
            --primary-dark: #2d3748;
            --primary: #4a5568;
            --secondary: #718096;
            --accent: #4299e1;
            --accent-dark: #3182ce;
            --light: #f7fafc;
            --gray: #e2e8f0;
            --white: #ffffff;
            --text-dark: #1a202c;
            --text-light: #f7fafc;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: var(--white);
            color: var(--text-dark);
            display: flex;
            min-height: 100vh;
        }

        /* 侧边导航栏 */
        .sidebar {
            width: 280px;
            background-color: var(--primary-dark);
            padding: 25px 0;
            position: fixed;
            height: 100vh;
            box-shadow: 3px 0 15px rgba(0, 0, 0, 0.1);
            overflow-y: auto;
            color: var(--text-light);
        }

        .logo {
            display: flex;
            align-items: center;
            padding: 0 25px 30px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .logo h1 {
            margin-left: 15px;
            font-weight: 700;
            font-size: 1.8rem;
            color: var(--white);
            letter-spacing: 1px;
        }

        .logo-icon {
            color: var(--accent);
            font-size: 2.2rem;
        }

        .nav-section {
            padding: 20px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .nav-title {
            padding: 5px 25px;
            font-size: 0.9rem;
            text-transform: uppercase;
            color: var(--gray);
            letter-spacing: 1px;
        }

        .nav-link {
            display: flex;
            align-items: center;
            padding: 13px 25px;
            text-decoration: none;
            color: var(--gray);
            font-size: 1.05rem;
            transition: all 0.3s;
            position: relative;
        }

        .nav-link i {
            margin-right: 15px;
            width: 20px;
            text-align: center;
        }

        .nav-link:hover {
            background-color: rgba(66, 153, 225, 0.1);
            color: var(--white);
        }

        .nav-link.active {
            background-color: rgba(66, 153, 225, 0.2);
            color: var(--accent);
        }

        .nav-link.active:after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            height: 100%;
            width: 4px;
            background-color: var(--accent);
        }

        /* 主内容区 */
        .main-content {
            flex: 1;
            margin-left: 280px;
            padding: 30px 40px;
            background-color: var(--white);
        }

        .page-header {
            margin-bottom: 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .page-header h2 {
            font-size: 2rem;
            font-weight: 700;
            color: var(--text-dark);
        }

        /* 统计信息 */
        .stats-container {
            display: flex;
            margin-bottom: 25px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .stat-card {
            flex: 1;
            min-width: 180px;
            background-color: var(--light);
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .stat-title {
            font-size: 0.9rem;
            color: var(--secondary);
            margin-bottom: 10px;
        }

        .stat-value {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--accent-dark);
        }

        /* 搜索组件 */
        .search-container {
            position: relative;
            flex: 1;
            max-width: 500px;
            margin-left: 25px;
        }

        .search-input {
            width: 100%;
            padding: 13px 20px;
            padding-left: 50px;
            background-color: var(--white);
            border: 2px solid var(--gray);
            border-radius: 8px;
            color: var(--text-dark);
            font-size: 1rem;
            transition: all 0.3s;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }

        .search-input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.3);
        }

        .search-icon {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--secondary);
            font-size: 1.2rem;
        }

        /* 高级搜索 */
        .advanced-search {
            background-color: var(--light);
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 25px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .advanced-search-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 15px;
            color: var(--primary);
            display: flex;
            align-items: center;
        }

        .advanced-search-title i {
            margin-right: 10px;
        }

        .filter-row {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 15px;
        }

        .filter-group {
            flex: 1;
            min-width: 200px;
        }

        .filter-label {
            display: block;
            font-size: 0.85rem;
            color: var(--secondary);
            margin-bottom: 5px;
        }

        .filter-select {
            width: 100%;
            padding: 10px 15px;
            background-color: var(--white);
            border: 1px solid var(--gray);
            border-radius: 6px;
            color: var(--text-dark);
            font-size: 0.9rem;
        }

        .filter-select:focus {
            outline: none;
            border-color: var(--accent);
        }

        .search-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        .btn {
            padding: 10px 20px;
            border-radius: 6px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
        }

        .btn-primary {
            background-color: var(--accent);
            color: var(--white);
        }

        .btn-primary:hover {
            background-color: var(--accent-dark);
        }

        .btn-outline {
            background-color: transparent;
            border: 1px solid var(--secondary);
            color: var(--secondary);
        }

        .btn-outline:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        /* 标签过滤器 */
        .filters {
            display: flex;
            margin: 20px 0;
            flex-wrap: wrap;
            gap: 8px;
        }

        .filter-tag {
            background-color: var(--light);
            border: 1px solid var(--gray);
            color: var(--secondary);
            padding: 6px 15px;
            border-radius: 50px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .filter-tag:hover {
            background-color: rgba(66, 153, 225, 0.1);
            border-color: var(--accent);
            color: var(--accent);
        }

        .filter-tag.active {
            background-color: var(--accent);
            color: var(--white);
            border-color: var(--accent);
            font-weight: 600;
        }

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

        .resource-card {
            background-color: var(--white);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s, box-shadow 0.3s;
            border: 1px solid var(--gray);
        }

        .resource-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
        }

        .card-header {
            height: 160px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--light);
            position: relative;
            overflow: hidden;
        }

        .card-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background-color: var(--accent);
            color: var(--white);
            font-size: 0.75rem;
            padding: 4px 10px;
            border-radius: 20px;
            font-weight: 700;
            z-index: 2;
        }

        .card-body {
            padding: 20px;
        }

        .card-title {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text-dark);
        }

        .card-desc {
            font-size: 0.9rem;
            color: var(--secondary);
            line-height: 1.5;
            margin-bottom: 15px;
        }

        .card-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--secondary);
            margin-bottom: 15px;
        }

        .card-rating {
            color: #f6ad55;
        }

        .card-footer {
            display: flex;
            justify-content: space-between;
            padding: 15px 20px;
            background-color: var(--light);
            border-top: 1px solid var(--gray);
        }

        .card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }

        .card-tag {
            background-color: rgba(66, 153, 225, 0.1);
            color: var(--accent-dark);
            font-size: 0.75rem;
            padding: 3px 8px;
            border-radius: 4px;
        }

        .card-actions {
            display: flex;
            gap: 10px;
        }

        .card-action {
            color: var(--accent);
            font-weight: 600;
            font-size: 0.9rem;
            text-decoration: none;
            display: flex;
            align-items: center;
        }

        .card-action i {
            margin-left: 5px;
        }

        .card-preview {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgba(0, 0, 0, 0.7);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .card-header:hover .card-preview {
            opacity: 1;
        }

        .preview-btn {
            background-color: var(--accent);
            color: var(--white);
            padding: 8px 15px;
            border-radius: 4px;
            font-size: 0.8rem;
            cursor: pointer;
        }

        /* 图标预览样式 */
        .icon-preview {
            font-size: 48px;
            color: var(--accent);
        }

        .background-preview {
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
        }

        .code-preview {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f8f8f8;
            font-family: 'Courier New', Courier, monospace;
            font-size: 14px;
            color: #333;
            padding: 15px;
            overflow: auto;
        }

        /* 搜索页面样式 */
        .search-results-header {
            display: flex;
            align-items: center;
            margin: 20px 0 30px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .results-count {
            font-size: 1.2rem;
            color: var(--text-dark);
        }

        .results-sorting {
            background-color: var(--white);
            color: var(--secondary);
            padding: 8px 15px;
            border-radius: 6px;
            border: 1px solid var(--gray);
            font-size: 0.9rem;
        }

        /* 分页 */
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 40px;
        }

        .page-item {
            margin: 0 5px;
        }

        .page-link {
            display: block;
            padding: 8px 15px;
            background-color: var(--white);
            border: 1px solid var(--gray);
            border-radius: 6px;
            color: var(--secondary);
            text-decoration: none;
            transition: all 0.2s;
        }

        .page-link:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .page-link.active {
            background-color: var(--accent);
            border-color: var(--accent);
            color: var(--white);
        }

        /* 响应式设计 */
        @media (max-width: 1200px) {
            .resource-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
        }

        @media (max-width: 992px) {
            .sidebar {
                width: 240px;
            }
            
            .main-content {
                margin-left: 240px;
            }
        }

        @media (max-width: 768px) {
            body {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
                height: auto;
                position: relative;
                padding: 15px 0;
            }
            
            .main-content {
                margin-left: 0;
                padding: 25px;
            }
            
            .page-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .search-container {
                margin-left: 0;
                margin-top: 20px;
                width: 100%;
            }
            
            .stat-card {
                min-width: 150px;
            }
        }

        @media (max-width: 576px) {
            .resource-grid {
                grid-template-columns: 1fr;
            }
            
            .main-content {
                padding: 20px 15px;
            }
            
            .filter-row {
                flex-direction: column;
                gap: 10px;
            }
            
            .filter-group {
                width: 100%;
            }
        }
    