/* ========== 公共CSS ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    background: #f5f7fa;
    height: 100vh;
    margin: 80px 0 0 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;
}

.page-header {
    padding: 20px;
    text-align: center;
    background: transparent;
    position: relative;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

.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;
}

#all-section {
}

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 货源卡片网格 */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 330px) !important;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 15px;
    box-sizing: border-box;
    justify-content: start !important;
}

.source-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 2px solid #d1d5db;
    background: white;
}

.source-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: #e2e8f0;
}

.source-card-header {
    padding: 8px 5px 8px 24px;
    color: #1f2937;
    position: relative;
    overflow: hidden;
    background: white;
}

.source-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-30%, -30%) rotate(180deg); }
}

.source-card-header > * {
    position: relative;
    z-index: 2;
}

.source-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.source-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
    backdrop-filter: blur(10px);
}

.badge i {
    font-size: 15px !important;
}

.badge-top {
    background: rgba(251, 191, 36, 0.9);
    color: white;
}

.badge-recommended {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.badge-hot {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.source-type-info {
    display: flex;
    align-items: center;
}

.source-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
    background: #3b82f6;
    color: white;
}

.source-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.source-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-card-footer {
    padding: 8px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
}

.source-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    color: #495057 !important;
    flex: 1;
    justify-content: center;
    white-space: nowrap;
}

.stat-item i {
    color: #6c757d !important;
    font-size: 15px;
}

.stat-item span {
    font-weight: 500;
}

/* 添加货源弹窗 */
.add-source-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.add-source-modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #5a6268;
}

.btn-submit {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
}

/* 高级搜索面板 */
.advanced-search-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin: 20px 30px;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

.advanced-search-content {
    padding: 25px;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    padding: 10px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.rating-range input {
    flex: 1;
}

.rating-range span {
    color: #666;
    font-weight: 500;
}

.search-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.search-actions .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-actions .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.search-actions .btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e1e8ed;
}

.search-actions .btn-outline {
    background: transparent;
    color: #666;
    border: 1px solid #e1e8ed;
}

.search-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* 二级分类选择器 */
.subcategory-selector {
    position: relative;
    margin-bottom: 20px;
}

.subcategory-selector::before {
    display: none;
}

.subcategory-dropdown {
    width: 300px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #2c3e50;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subcategory-dropdown:hover {
    border-color: #3498db;
}

.subcategory-dropdown:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* 排序按钮组 */
.sort-options {
    display: flex;
    gap: 8px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.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;
}

/* 类型筛选按钮特殊样式 */
.sort-btn[data-type="website"]:hover,
.sort-btn[data-type="file"]:hover {
    border-color: #3498db;
    color: #3498db;
    background: rgba(52, 152, 219, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sort-btn[data-type="website"].active,
.sort-btn[data-type="file"].active {
    background: #3498db;
    color: white;
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    z-index: 10002;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

.notification-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.notification-error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.notification-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* 分享弹窗样式 */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.share-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.share-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.share-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.share-modal-header .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.share-modal-body {
    padding: 30px;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 10px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.share-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

.share-option i {
    font-size: 24px;
    margin-bottom: 3px;
}

.share-option.wechat i { color: #07c160; }
.share-option.qq i { color: #12b7f5; }
.share-option.link i { color: #6b7280; }
.share-option.qrcode i { color: #8b5cf6; }

/* 二维码弹窗样式 */
.qrcode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2001;
    animation: fadeIn 0.3s ease;
}

.qrcode-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qrcode-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qrcode-modal-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 20px 30px;
    text-align: center;
    position: relative;
}

.qrcode-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.qrcode-modal-body {
    padding: 30px;
    text-align: center;
}

.qrcode-container {
    margin-bottom: 20px;
}

.qrcode-image {
    width: 200px;
    height: 200px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
}

.qrcode-tips {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

.share-link {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.share-link input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #f9fafb;
}

.qrcode-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.qrcode-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qrcode-btn:not(.close) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.qrcode-btn:not(.close):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.qrcode-btn.close {
    background: #f3f4f6;
    color: #6b7280;
}

.qrcode-btn.close:hover {
    background: #e5e7eb;
}

/* 详情弹窗样式 */
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.detail-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.detail-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.detail-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.detail-modal-header .close-btn {
    background: #e74c3c;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.detail-modal-header .close-btn:hover {
    background: #c0392b;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.detail-modal-body {
    padding: 15px 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* 统计信息样式 */
.detail-stats {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    padding: 12px 15px;
    background: transparent !important;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.detail-modal .detail-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #495057 !important;
    font-weight: 500;
}

.detail-modal .detail-stats .stat-item i {
    color: #6c757d !important;
    font-size: 14px;
}

/* 详细内容整体样式 */
.detail-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.detail-content h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.detail-content p {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 功能特性区域样式 */
.features-section {
    margin-top: 15px;
}

.features-section h5 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    border: none;
    padding: 0;
}

.features-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-section li {
    padding: 8px 0;
    color: #2c3e50;
    font-size: 14px;
    border-bottom: none;
    display: flex;
    align-items: center;
}

.features-section li:last-child {
    border-bottom: none;
}

.detail-modal-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    text-align: center;
    background: transparent;
}

/* 下载选项样式 */
.detail-downloads {
    display: flex;
    gap: 8px;
    margin: 10px 15px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    color: #2c3e50;
    font-weight: 500;
}

.download-item:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
}

.download-item i {
    font-size: 12px;
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.favorite-btn, .share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.favorite-btn {
    background: #e74c3c;
    color: white;
}

.favorite-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.favorite-btn.favorited {
    background: #27ae60;
}

.share-btn {
    background: #3498db;
    color: white;
}

.share-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* 统一的翻页器组件样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 5px 10px;
    position: relative;
    border: none;
    z-index: 100;
    flex-shrink: 0;
    margin-top: auto;
}

.pagination {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 15px);
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: clamp(8px, 2vw, 10px) clamp(12px, 3vw, 16px);
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 clamp(10px, 2vw, 15px);
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 600;
    color: #333;
    min-width: 60px;
    justify-content: center;
}

.pagination-info span {
    color: #667eea;
}

/* ========== 左侧导航样式 ========== */
.sidebar {
    width: 280px;
    background: #2c3e50;
    color: white;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
}

.sidebar-header {
    padding: 10px 20px 20px;
    border-bottom: 1px solid #34495e;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 8px 15px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.search-box:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #2c3e50;
    font-size: 14px;
    padding: 5px 0;
}

.search-input::placeholder {
    color: #95a5a6;
}

.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;
}

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

/* 分类列表样式 */
.category-list {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.category-item {
    margin-bottom: 2px;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.category-link:hover {
    background: #34495e;
    border-left-color: #3498db;
}

.category-item.active .category-link {
    background: #3498db;
    border-left-color: #2980b9;
}

/* 电商平台分类特殊样式 */
.category-item.active .category-link[data-section="ecommerce"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-left-color: #667eea;
}

.category-link[data-section="ecommerce"]:hover {
    background: rgba(102, 126, 234, 0.1);
    border-left-color: #667eea;
}

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

.category-text {
    flex: 1;
    font-size: 15px;
}

/* ========== 手机端头部样式 ========== */
.mobile-header {
    display: none;
    background: white;
    padding: 10px 20px;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e5e7eb;
}

.mobile-header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-header .header-title {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    margin: 0 15px;
}

.mobile-header .search-btn {
    background: none;
    border: none;
    color: #374151;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-header .search-btn:hover {
    background: rgba(0,0,0,0.1);
}

/* 分类下拉框 */
.category-dropdown {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.05);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
}

.category-dropdown:hover {
    background: rgba(0,0,0,0.1);
}

.category-dropdown .category-text {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.category-dropdown .dropdown-arrow {
    color: #6b7280;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.category-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* 手机端搜索框 */
.mobile-search {
    display: none;
    background: white;
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-search .search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.mobile-search .search-input:focus {
    border-color: #667eea;
}

/* 手机端侧边栏遮罩 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.sidebar-overlay.active {
    display: block;
}

/* 下拉菜单样式 */
.category-menu {
    display: none;
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1001;
    min-width: 180px;
    max-height: 300px;
    overflow-y: auto;
    left: 0;
    top: 100%;
    margin-top: 8px;
    transform: translateX(0);
    border: 1px solid #e5e7eb;
}

.category-menu.active {
    display: block;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #f8fafc;
}

.menu-item.active {
    background: #eff6ff;
    color: #3b82f6;
}

.menu-item i {
    width: 16px;
    text-align: center;
    color: #6b7280;
}

.menu-item.active i {
    color: #3b82f6;
}

.menu-item span {
    font-size: 14px;
    font-weight: 500;
}

/* ========== 响应式样式 ========== */

/* ========== 电脑端CSS ========== */
@media (min-width: 769px) {
    /* 隐藏手机端头部 */
    .mobile-header {
        display: none !important;
    }

    /* 隐藏手机端搜索 */
    .mobile-search {
        display: none !important;
    }

    /* 隐藏PC端空的头部 */
    .page-header {
        display: none !important;
    }

    /* 侧边栏样式 */
    .sidebar {
        position: relative;
        width: 280px;
        background: #2c3e50;
        min-height: 100vh;
        transform: translateX(0) !important;
    }

    /* 主内容区域 */
    .main-content {
        margin-left: 0;
        padding-top: 0;
    }

    /* 桌面端卡片网格 */
    .sources-grid {
        grid-template-columns: repeat(auto-fill, 330px) !important;
        justify-content: start !important;
    }

    /* 桌面端卡片内部元素字体大小调整 */
    .source-title {
        font-size: 18px;
    }
    
    .source-description {
        font-size: 14px;
    }

    /* 排序按钮组 */
    .sort-options {
        padding: 0;
        background: transparent;
        margin-bottom: 10px;
    }

    .sort-btn {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 20px;
    }

    /* 内容区域 */
    .content-area {
        padding: 10px 20px 20px 20px;
        background: transparent;
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    /* 容器 */
    .container {
        padding: 0;
        max-width: 1400px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
}

/* ========== 手机端CSS ========== */
@media (max-width: 768px) {
    /* 显示手机端头部 */
    .mobile-header {
        display: block !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: auto !important;
        background: white !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }

    /* 隐藏PC端头部 */
    .page-header {
        display: none !important;
    }

    /* 容器布局改为单列，移除PC端flex布局 */
    .container {
        display: block !important;
        max-width: 100% !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        height: auto !important;
    }

    /* 完全隐藏PC端侧边栏和相关元素 */
    .sidebar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* 隐藏侧边栏遮罩 */
    .sidebar-overlay {
        display: none !important;
    }

    /* 主内容区域 */
    .main-content {
        width: 100% !important;
        margin-left: 0;
        padding-top: 0 !important;
        overflow: visible !important;
        height: auto !important;
    }

    /* 彻底隐藏PC端头部 */
    .page-header {
        display: none !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* 移动端卡片网格 - 修正居中问题 */
    .sources-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        justify-content: center !important;
        justify-items: center !important;
        padding: 10px !important;
        gap: 15px !important;
    }

    /* 移动端卡片宽度调整 */
    .source-card {
        width: 100%;
        max-width: 330px;
        margin: 0 auto;
    }

    /* 移动端卡片内部元素字体大小调整 */
    .source-title {
        font-size: 16px;
        line-height: 1.3;
    }
    
    .source-description {
        font-size: 13px;
        line-height: 1.4;
    }


    /* 排序按钮组 */
    .sort-options {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 15px;
        background: white;
        border-bottom: 1px solid #e5e7eb;
        margin: 0 0 10px 0 !important;
    }

    .sort-btn {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 15px;
        border: 1px solid #e5e7eb;
        background: white;
        color: #6b7280;
    }
}