/* ========== 公共CSS ========== */
        * {
            padding: 0;
            box-sizing: border-box;
        }
        
        /* 全局iconfont类定义 */
        .iconfont {
            font-family: 'iconfont';
            font-style: normal;
            font-size: 16px;
        }

        body {
            font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
            background: #f5f7fa;
            height: 100vh;
            margin: 90px 0 10px 0;
            overflow-x: hidden;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            height: 850px;
            display: flex;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
            overflow: hidden;
        }

        .main-content {
            flex: 1;
            padding: 0;
            overflow: hidden;
            background: #f9fafb;
        }

        .content-area {
            padding: 0;
            background: transparent;
            height: 100%;
            overflow-y: auto;
        }

        .content-section {
            display: none;
        }

        .content-section.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

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

        /* ========== 主内容区域 ========== */
        .content-section {
            padding: 10px;
        }
        
        /* 排序按钮组 */
        .sort-options {
            display: flex;
            gap: 8px;
            background: #f8f9fa;
            border-radius: 8px;
            flex-shrink: 0;
            justify-content: space-between;
            align-items: center;
            flex-wrap: nowrap;
        }

        /* 左侧下拉菜单容器 */
        .sort-options-left {
            display: flex;
            gap: 8px;
        }

        /* 右侧排序按钮容器 */
        .sort-options-right {
            display: flex;
            gap: 8px;
        }
        
        /* 搜索框容器 */
        .sort-options-search {
            display: none;
        }

        .sort-btn {
            padding: 8px 16px;
            border: 1px solid #e9ecef;
            background: white;
            color: #7f8c8d;
            border-radius: 20px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .sort-btn:hover {
            border-color: #3498db;
            color: #3498db;
            background: rgba(52, 152, 219, 0.05);
        }

        .sort-btn.active {
            background: #3498db;
            color: white;
            border-color: #3498db;
        }

        /* 隐藏"最新"按钮 */
        #subcategoryTabs .sort-options-right .sort-btn[data-sort="newest"] {
            display: none !important;
        }

        /* 二级分类下拉菜单 */
        .subcategory-dropdown {
            position: relative;
            width: auto;
            text-align: left;
        }
        
        /* 电脑端下拉菜单默认显示 */
        .desktop-dropdown {
            display: inline-block;
        }
        
        /* 电脑端下拉菜单按钮样式 */
        .desktop-dropdown .sort-btn {
            min-width: 150px;
            font-weight: 500;
            font-size: 14px;
        }
        
        /* 手机端下拉菜单默认隐藏 */
        .mobile-dropdown {
            display: none;
        }

        /* 为下拉按钮添加箭头 */
        .subcategory-dropdown .sort-btn {
            padding-right: 30px;
            position: relative;
        }
        
        /* 使用iconfont图标作为下拉箭头 */
        .subcategory-dropdown .sort-btn::after {
            content: '\e602';
            font-family: 'iconfont';
            position: absolute;
            top: 50%;
            right: 12px;
            transform: translateY(-50%);
            color: #7f8c8d;
            font-size: 16px;
            transition: all 0.3s ease;
        }
        
        /* 下拉菜单显示时，箭头旋转 */
        .subcategory-dropdown .sort-btn.active::after {
            transform: translateY(-50%) rotate(180deg);
            color: #7f8c8d;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: auto;
            background-color: white;
            min-width: 280px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #e5e7eb;
            margin-top: 4px;
            max-height: 350px;
            overflow-y: auto;
        }

        /* 滚动条样式优化 */
        .dropdown-content::-webkit-scrollbar {
            width: 6px;
        }

        .dropdown-content::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        .dropdown-content::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 3px;
        }

        .dropdown-content::-webkit-scrollbar-thumb:hover {
            background: #a1a1a1;
        }

        .dropdown-content.show {
            display: block;
            animation: slideDown 0.2s ease;
        }

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

        .dropdown-content button {
            display: block;
            width: 100%;
            padding: 10px 20px;
            text-align: left;
            border: none;
            background: none;
            cursor: pointer;
            font-size: 14px;
            color: #333;
            transition: all 0.2s ease;
            border-bottom: 1px solid #f0f0f0;
        }

        /* 移除最后一个菜单项的底部边框 */
        .dropdown-content button:last-child {
            border-bottom: none;
        }

        .dropdown-content button:hover {
            background-color: #f8fafc;
            color: #3498db;
            padding-left: 24px;
        }

        .dropdown-content button.active {
            background-color: #3b82f6;
            color: white;
        }

        /* 选中状态的悬停效果 */
        .dropdown-content button.active:hover {
            background-color: #2563eb;
            padding-left: 24px;
        }

        /* ========== 卡片样式 ========== */
        /* 卡片容器 */
        .cards-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 3px;
            padding: 7px 0;
        }

        /* 单个卡片 */
        .download-card {
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 80px;
            gap: 16px;
            flex-direction: row;
            text-align: left;
        }

        /* 卡片悬停效果 */
        .download-card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        /* 卡片左侧（图标和标题） */
        .card-left {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }

        /* 卡片图标 */
        .card-icon {
            width: 40px;
            height: 40px;
            background: #3b82f6;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            flex-shrink: 0;
        }

        /* 卡片标题 */
        .card-title {
            font-size: 14px;
            font-weight: 500;
            color: #333;
            margin: 0;
            white-space: normal;
            word-wrap: break-word;
            word-break: break-word;
            flex: 1;
            line-height: 1.4;
            text-align: left;
            min-width: 0;
        }

        /* 下载按钮 */
        .download-btn {
            padding: 6px 12px;
            background: #3b82f6;
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .download-btn:hover {
            background: #2563eb;
        }

        /* ========== 分页样式 ========== */
        /* 分页容器 */
        .pagination-container {
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            width: 100%;
            padding: 10px 20px;
            z-index: 1;
        }
        
        /* 分页控件 */
        .pagination {
            display: flex;
            align-items: center;
        }
        
        /* 分页按钮 */
        .pagination-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 30px;
            background: #f8fafc;
            border: 1px solid #e5e7eb;
            border-radius: 4px;
            color: #334155;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 0;
        }
        
        /* 分页信息 */
        .pagination-info {
            font-size: 16px;
            font-weight: 500;
            color: #334155;
            min-width: 60px;
            text-align: center;
            line-height: 30px;
        }
        
        /* 分页控件 */
        .pagination {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        /* 分页按钮悬停效果 */
        .pagination-btn:hover:not(:disabled) {
            background: #3b82f6;
            color: white;
            border-color: #3b82f6;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
        }
        
        /* 分页按钮禁用状态 */
        .pagination-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background: #f1f5f9;
            color: #94a3b8;
            border-color: #cbd5e1;
        }
        
        /* 分页信息 */
        .pagination-info {
            font-size: 14px;
            font-weight: 500;
            color: #334155;
            min-width: 60px;
            text-align: center;
        }

        /* ========== 详情页样式 ========== */
        /* 详情页头部 */
        .detail-header {
            padding: 3px 0;
        }
        
        /* 返回按钮 */
        .back-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 6px;
            color: #333;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .back-btn:hover {
            background: #f8fafc;
            color: #3b82f6;
            border-color: #3b82f6;
        }
        
        /* 详情页内容 */
        #detailDisplay {
            background: white;
            border-radius: 8px;
            padding: 24px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        
        /* 详情页标题 */
        .detail-title {
            font-size: 24px;
            font-weight: 600;
            color: #333;
            margin-bottom: 20px;
        }
        
        /* 详情页基本信息 */
        .detail-info {
            display: flex;
            gap: 24px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        /* 详情页信息项 */
        .detail-info-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: #666;
        }
        
        /* 详情页图标 */
        .detail-info-icon {
            color: #3b82f6;
        }
        
        /* 详情页描述 */
        .detail-description {
            font-size: 14px;
            line-height: 1.6;
            color: #333;
            margin-bottom: 24px;
        }
        
        /* 详情页图片 */
        .detail-image {
            width: 100%;
            max-height: 300px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 24px;
        }
        
        /* 详情页下载按钮 */
        .detail-download-btn {
            padding: 12px 32px;
            background: #3b82f6;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .detail-download-btn:hover {
            background: #2563eb;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }
        
        /* 详情页标签 */
        .detail-tags {
            display: flex;
            gap: 8px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        /* 详情页标签项 */
        .detail-tag {
            padding: 4px 12px;
            background: #f0f9ff;
            color: #0ea5e9;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        /* ========== 响应式样式 ========== */
        @media (min-width: 769px) {
            .desktop-dropdown {
                display: inline-block !important;
            }
            .mobile-dropdown {
                display: none !important;
            }
        }
        
        @media (max-width: 768px) {
            .desktop-dropdown {
                display: none !important;
            }
            .mobile-dropdown {
                display: inline-block !important;
            }
            
            .sort-options-search {
                display: flex;
                align-items: center;
            }
            
            .mobile-search-box {
                width: 200px;
                margin: 0;
                display: flex;
                align-items: center;
                background: white;
                border: 2px solid #e9ecef;
                border-radius: 25px;
                padding: 8px 15px;
                transition: all 0.3s ease;
                overflow: hidden;
            }
            
            .mobile-search-box:focus-within {
                border-color: #3498db;
                box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
            }
            
            .mobile-search-box .search-input {
                flex: 1;
                border: none;
                outline: none;
                background: transparent;
                color: #2c3e50;
                font-size: 14px;
                padding: 5px 0;
            }
            
            .mobile-search-box .search-btn {
                background: none;
                border: none;
                color: #7f8c8d;
                cursor: pointer;
                padding: 5px;
                border-radius: 50%;
                transition: all 0.3s ease;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 14px;
                margin-left: 5px;
            }
            
            .mobile-search-box .search-btn:hover {
                background: rgba(52, 152, 219, 0.1);
                color: #3498db;
            }
            
            .sort-options {
                flex-direction: column;
                align-items: stretch;
                padding: 10px;
                background: #f8f9fa;
                border-radius: 8px;
            }
            
            .sort-options-row-1 {
                display: flex;
                align-items: center;
                width: 100%;
                margin-bottom: 10px;
                gap: 8px;
            }
            
            .sort-options-left {
                display: flex;
                align-items: center;
            }
            
            .mobile-dropdown .sort-btn {
                background: white;
                border: 1px solid #e9ecef;
                color: #2c3e50;
                border-radius: 25px;
                padding: 8px 30px;
                font-size: 14px;
                cursor: pointer;
                transition: all 0.3s ease;
                text-align: center;
                position: relative;
                border-right: 2px solid #e9ecef;
                box-shadow: none;
                min-width: 200px;
            }
            
            .mobile-search-box {
                width: 120px;
                margin: 0;
                display: flex;
                align-items: center;
                background: white;
                border: 1px solid #e9ecef;
                border-radius: 25px;
                padding: 8px 15px;
                transition: all 0.3s ease;
                box-shadow: none;
            }
            
            .mobile-search-box .search-input {
                flex: 1;
                border: none;
                outline: none;
                background: transparent;
                color: #2c3e50;
                font-size: 14px;
                padding: 5px 0;
            }
            
            .mobile-search-box .search-btn {
                background: none;
                border: none;
                color: #7f8c8d;
                cursor: pointer;
                padding: 5px;
                border-radius: 50%;
                transition: all 0.3s ease;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 14px;
            }
            
            .cards-container {
                grid-template-columns: 1fr !important;
            }
        }