* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.header p {
    opacity: 0.9;
    font-size: 14px;
}

.view-switcher {
    margin-top: 15px;
}

.view-switcher .btn {
    margin: 0 5px;
}


.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.shop-management {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.shop-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.shop-management h2 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.shop-management-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-shop-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.add-shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.toggle-shops-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.toggle-shops-btn:hover {
    background: #e9ecef;
    color: #333;
    border-color: #adb5bd;
}

.toggle-shops-btn i {
    transition: transform 0.3s ease;
}

.toggle-shops-btn.collapsed i {
    transform: rotate(-90deg);
}

.shops-list {
    margin-top: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.shops-list.collapsed {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .shop-management-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .shop-management-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .add-shop-btn {
        flex: 1;
        margin-right: 10px;
    }
    
    .toggle-shops-btn {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .shop-management-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .add-shop-btn {
        width: 100%;
        margin-right: 0;
    }
    
    .toggle-shops-btn {
        align-self: flex-end;
    }
}

        .shop-item {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        
        .shop-item.active {
            background: #e3f2fd;
            border-color: #2196f3;
            box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
        }

.shop-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.shop-info p {
    font-size: 12px;
    color: #666;
}

.shop-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 6px 12px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

        .btn-view {
            background: #17a2b8;
            color: white;
        }
        
        .btn-edit {
            background: #007bff;
            color: white;
        }
        
        .btn-sync {
            background: #28a745;
            color: white;
        }
        
        .btn-delete {
            background: #dc3545;
            color: white;
        }

.btn:hover {
    transform: scale(1.05);
}

.products-container {
    /* background: white; */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.products-header h2 {
    font-size: 18px;
    color: #333;
}

.sync-all-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
}

.products-list {
    /* 微信朋友圈样式 */
}

.product-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
    max-width: 700px;
    width: 100%;
    position: relative;
}

.product-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.shop-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.shop-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.product-time {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

.product-content {
    margin-bottom: 12px;
}

.product-title {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 8px;
    /* color: #333; */
}

.product-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.product-image-wrapper {
    position: relative;
    display: inline-block;
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.product-image:hover {
    transform: scale(1.05);
}

.image-checkbox {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    z-index: 10;
    cursor: pointer;
    opacity: 0;
    margin: 0;
}

.image-checkbox-label {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.image-checkbox-label::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9;
    transition: all 0.2s;
}

.image-checkbox:checked + .image-checkbox-label::before {
    background: #28a745;
    border-color: #28a745;
}

.image-checkbox:checked + .image-checkbox-label::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
}

.image-checkbox-label:hover::before {
    background: rgba(40, 167, 69, 0.5);
    border-color: #28a745;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 8px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.product-actions > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-download-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-status {
    font-size: 12px;
    color: #666;
}

.view-detail-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
}

.copy-description-btn {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: background-color 0.2s;
}

.copy-description-btn:hover {
    background: #e0a800;
}

.copy-description-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    color: #b0b0b0;
}

.download-images-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: background-color 0.2s;
}

.download-images-btn:hover {
    background: #138496;
}

.download-images-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.download-image-urls-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: background-color 0.2s;
}

.download-image-urls-btn:hover {
    background: #218838;
}

.download-image-urls-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.delete-product-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: background-color 0.2s;
}

.delete-product-btn:hover {
    background: #c82333;
}

.delete-product-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    color: #b0b0b0;
}

.publish-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: background-color 0.2s;
}

.publish-btn:hover {
    background: #218838;
}

.publish-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* 发布商品模态框样式 */
.original-product-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.original-product-info h4 {
    margin-bottom: 1rem;
    color: #495057;
}

.original-content {
    display: flex;
    gap: 1rem;
}

.original-images {
    flex: 0 0 200px;
    max-height: 300px;
    overflow-y: auto;
}

/* 移动端原始商品信息优化 */
@media (max-width: 768px) {
    .original-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .original-images {
        flex: none;
        max-height: 200px;
    }
}

.original-images img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.original-images img:hover {
    transform: scale(1.05);
}

.original-text {
    flex: 1;
}

.original-text p {
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.ai-processing-section {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #e3f2fd;
    border-radius: 8px;
}

.ai-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.ai-buttons .btn {
    min-width: 180px;
}

/* 移动端AI按钮布局优化 */
@media (max-width: 768px) {
    .ai-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .ai-buttons .btn {
        min-width: auto;
        width: 100%;
    }
}

.processing-status {
    margin-top: 1rem;
    color: #1976d2;
    font-weight: 500;
}

.publish-form {
    margin-top: 1.5rem;
}

.publish-form h4 {
    margin-bottom: 1rem;
    color: #495057;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1rem;
}

/* 移动端响应式布局 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.category-select-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* 移动端分类选择容器优化 */
@media (max-width: 768px) {
    .category-select-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .category-select-container select {
        width: 100%;
    }
    
    .category-select-container .btn {
        width: 100%;
    }
}

.category-select-container select {
    flex: 1;
}

.category-select-container .btn {
    flex: 0 0 auto;
    padding: 0.5rem;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.form-actions .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* 移动端表单操作按钮优化 */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-actions .btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

/* 配置区域样式 */
.config-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.config-section h4 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.config-section h4 i {
    color: #007bff;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

/* 移动端模态框优化 */
@media (max-width: 768px) {
    .modal-content {
        margin: 2% auto;
        padding: 15px;
        width: 95%;
        max-width: none;
        max-height: 95vh;
        border-radius: 8px;
    }
    
    /* 发布弹窗特殊优化 */
    #publishProductModal .modal-content {
        max-width: 800px;
        width: 98%;
        margin: 1% auto;
        padding: 12px;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading.show {
    display: block;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state img {
    width: 80px;
    height: 80px;
    opacity: 0.5;
    margin-bottom: 15px;
}

/* 置顶商品区域样式 */
.pinned-products-container {
    background: linear-gradient(135deg, #cdcdcd 0%, #040404 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.pinned-header {
    margin-bottom: 15px;
}

.pinned-header h2 {
    color: white;
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pinned-products-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pinned-product-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.pinned-product-item::before {
    content: "置顶";
    position: absolute;
    top: -8px;
    right: 10px;
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.pinned-product-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.pinned-product-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.pinned-product-info {
    flex: 1;
}

.pinned-product-info h4 {
    font-size: 15px;
    margin: 0 0 4px 0;
    color: #333;
    font-weight: 600;
}

.pinned-product-time {
    font-size: 12px;
    color: #999;
}

.pinned-product-content {
    margin-bottom: 12px;
}

.pinned-product-title {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #333;
}

.pinned-product-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.pinned-product-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.pinned-product-image:hover {
    transform: scale(1.05);
}

.pinned-product-price {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 10px;
}

.pinned-product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.pinned-product-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pinned-product-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pinned-product-download-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pinned-product-status {
    font-size: 12px;
    color: #666;
}

.pinned-view-detail-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.pinned-view-detail-btn:hover {
    background: #ff3742;
}

/* 图片画廊样式 */
.image-gallery-modal {
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
}

.image-gallery-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.image-gallery-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.image-counter {
    font-size: 16px;
    font-weight: 500;
}

.image-gallery-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 20px 120px;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.gallery-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.gallery-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-image-container {
    max-width: 90%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-gallery-thumbnails {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    z-index: 10;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .product-item {
        padding: 12px;
    }
    
    .product-images {
        gap: 6px;
    }
    
    .product-image {
        width: 60px;
        height: 60px;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .image-gallery-content {
        padding: 70px 10px 100px;
    }
    
    /* 置顶商品移动端样式 */
    .pinned-products-container {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .pinned-product-item {
        min-width: 250px;
        padding: 12px;
    }
    
    .pinned-product-avatar {
        width: 30px;
        height: 30px;
    }
    
    .pinned-product-title {
        font-size: 13px;
        -webkit-line-clamp: 1;
    }
    
    .pinned-product-image {
        width: 40px;
        height: 40px;
    }
    
            .pinned-product-price {
                font-size: 14px;
            }
        }
        
        /* 分页样式 */
        .pagination-container {
            margin-top: 20px;
        }
        
        .pagination .page-link {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            font-weight: 500;
            transition: all 0.3s ease;
            min-width: 120px;
        }
        
        .pagination .page-link:hover:not(:disabled) {
            background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        }
        
        .pagination .page-link:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        .btn-loading {
            display: none;
        }
        
        .spinner-border-sm {
            width: 1rem;
            height: 1rem;
        }
        
        /* 筛选面板样式 */
        .filter-panel {
            margin-bottom: 20px;
        }
        
        .filter-panel .card {
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .filter-panel .card-header {
            background: #f8f9fa;
            border-bottom: 1px solid #e0e0e0;
            padding: 12px 16px;
        }
        
        .filter-panel .card-header h6 {
            margin: 0;
            /* color: #333; */
            font-weight: 600;
        }
        
        .filter-panel .card-body {
            padding: 16px;
        }
        
        .filter-panel .form-label {
            font-weight: 500;
            color: #555;
            margin-bottom: 8px;
        }
        
        .filter-panel .form-control {
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 8px 12px;
            font-size: 14px;
        }
        
        .filter-panel .form-control:focus {
            border-color: #007bff;
            box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
        }
        
        .filter-panel .btn-group .btn {
            margin-right: 5px;
            margin-bottom: 5px;
        }
        
        .filter-panel .btn-group .btn:last-child {
            margin-right: 0;
        }
        
        .filter-panel .form-text {
            font-size: 12px;
            color: #6c757d;
        }
        
        .filter-panel .alert {
            font-size: 14px;
        }
        
        .filter-panel .alert ul {
            padding-left: 20px;
        }
        
        /* 加载指示器样式 */
        .loading-indicator {
            text-align: center;
            padding: 20px;
            color: #666;
        }
        
        .loading-indicator .spinner-border {
            width: 2rem;
            height: 2rem;
        }
        
        /* 店铺选择提示样式 */
        .empty-state h3 {
            color: #333;
            margin-bottom: 10px;
        }
        
        .empty-state p {
            color: #666;
            font-size: 14px;
        }

/* 商品状态标记样式 */
.status-badge {
    display: inline-block;
    padding: 2px 6px;
    margin-left: 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: white;
    white-space: nowrap;
}

.status-badge.published {
    background-color: #28a745;
}

.status-badge.ai-processed {
    background-color: #17a2b8;
}

.status-badge i {
    margin-right: 3px;
    font-size: 10px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid #000;
    border-radius: 0;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top i {
    font-size: 18px;
    color: #333;
}

.back-to-top.show {
    display: flex;
}

/* AI内容编辑器样式 */
.ai-content-editor {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
}

.ai-content-editor .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.ai-content-editor .form-label small {
    font-weight: 400;
    color: #6c757d;
}

.ai-content-editor textarea {
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 120px;
}

.ai-content-editor textarea:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.ai-content-editor .form-text {
    margin-top: 8px;
    font-size: 13px;
    color: #6c757d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top i {
        font-size: 16px;
    }
    
    .ai-content-editor textarea {
        min-height: 100px;
        font-size: 13px;
    }
}

/* 数据清理后的空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.empty-state h3 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* 夜间模式样式 */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ffffff;
}

body.dark-mode .container {
    background-color: #1a1a1a;
}

body.dark-mode .shop-management {
    background-color: #2d2d2d;
    border: 1px solid #404040;
}

body.dark-mode .shop-management h2 {
    color: #ffffff;
}

body.dark-mode .shop-item {
    background-color: #3a3a3a;
    border: 1px solid #555555;
    color: #e0e0e0;
}

body.dark-mode .shop-item:hover {
    background-color: #4a4a4a;
    border-color: #007bff;
}

body.dark-mode .shop-item.active {
    background-color: #007bff;
    color: #ffffff;
}

body.dark-mode .product-card {
    background-color: #2d2d2d;
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .product-card:hover {
    background-color: #3a3a3a;
    border-color: #007bff;
}

body.dark-mode .product-item {
    background-color: #000000;
    border-left: 4px solid #007bff;
}

body.dark-mode .product-item:hover {
    background-color: #1a1a1a;
}


body.dark-mode .filter-panel {
    background-color: #000000;
    border: 1px solid #404040;
}

body.dark-mode .filter-panel .card {
    background-color: #000000;
    border: 1px solid #555555;
}

body.dark-mode .filter-panel .card-header {
    background-color: #000000;
    border-bottom: 1px solid #555555;
    color: #ffffff;
}

body.dark-mode .filter-panel .form-control {
    background-color: #3a3a3a;
    border: 1px solid #555555;
    color: #e0e0e0;
}

body.dark-mode .filter-panel .form-control:focus {
    background-color: #4a4a4a;
    border-color: #007bff;
    color: #ffffff;
}

body.dark-mode .filter-panel .form-label {
    color: #e0e0e0;
}

body.dark-mode .filter-panel .form-text {
    color: #b0b0b0 !important;
}

body.dark-mode .alert {
    background-color: #3a3a3a;
    border: 1px solid #555555;
    color: #e0e0e0;
}

body.dark-mode .alert-info {
    background-color: #1e3a5f;
    border-color: #2c5aa0;
    color: #b3d9ff;
}

body.dark-mode .empty-state {
    background-color: #3a3a3a;
    color: #b0b0b0;
}

body.dark-mode .empty-state h3 {
    color: #e0e0e0;
}

body.dark-mode .modal-content {
    background-color: #2d2d2d;
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .modal-header {
    background-color: #3a3a3a;
    border-bottom: 1px solid #555555;
}

body.dark-mode .modal-title {
    color: #ffffff;
}

body.dark-mode .modal-body {
    background-color: #2d2d2d;
}

body.dark-mode .modal-footer {
    background-color: #3a3a3a;
    border-top: 1px solid #555555;
}

body.dark-mode .form-control {
    background-color: #3a3a3a;
    border: 1px solid #555555;
    color: #e0e0e0;
}

body.dark-mode .form-control:focus {
    background-color: #4a4a4a;
    border-color: #007bff;
    color: #ffffff;
}

body.dark-mode .form-label {
    color: #e0e0e0;
}

body.dark-mode .btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

body.dark-mode .btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

body.dark-mode .btn-outline-light {
    color: #e0e0e0;
    border-color: #e0e0e0;
}

body.dark-mode .btn-outline-light:hover {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
    color: #1a1a1a;
}

body.dark-mode .back-to-top {
    background-color: rgba(45, 45, 45, 0.8);
    border-color: #e0e0e0;
    color: #e0e0e0;
}

body.dark-mode .back-to-top:hover {
    background-color: rgba(60, 60, 60, 0.9);
}

body.dark-mode .ai-content-editor {
    background-color: #3a3a3a;
    border: 1px solid #555555;
}

body.dark-mode .ai-content-editor textarea {
    background-color: #2d2d2d;
    border: 1px solid #555555;
    color: #e0e0e0;
}

body.dark-mode .ai-content-editor textarea:focus {
    background-color: #3a3a3a;
    border-color: #007bff;
    color: #ffffff;
}

body.dark-mode .ai-content-editor .form-label {
    color: #e0e0e0;
}

body.dark-mode .ai-content-editor .form-text {
    color: #b0b0b0;
}

/* 发布弹窗夜间模式样式 */
body.dark-mode .original-product-info {
    background-color: #2d2d2d;
    border: 1px solid #404040;
}

body.dark-mode .original-product-info h4 {
    color: #ffffff;
}

body.dark-mode .ai-processing-section {
    background-color: #2d2d2d;
    border: 1px solid #404040;
}

body.dark-mode .publish-form h4 {
    color: #ffffff;
}

body.dark-mode .publish-form .form-group label {
    color: #e0e0e0;
}

body.dark-mode .publish-form .form-group input,
body.dark-mode .publish-form .form-group textarea,
body.dark-mode .publish-form .form-group select {
    background-color: #3a3a3a;
    border: 1px solid #555555;
    color: #e0e0e0;
}

body.dark-mode .publish-form .form-group input:focus,
body.dark-mode .publish-form .form-group textarea:focus,
body.dark-mode .publish-form .form-group select:focus {
    background-color: #4a4a4a;
    border-color: #007bff;
    color: #ffffff;
}

body.dark-mode .publish-form .form-group .text-muted {
    color: #b0b0b0 !important;
}

/* Toast 消息提示夜间模式样式 */
body.dark-mode .toast {
    background-color: #2d2d2d;
    border: 1px solid #404040;
    color: #e0e0e0;
}

body.dark-mode .toast-header {
    background-color: #3a3a3a;
    border-bottom: 1px solid #555555;
    color: #e0e0e0;
}

body.dark-mode .toast-header.bg-success {
    background-color: #28a745 !important;
    color: #ffffff !important;
}

body.dark-mode .toast-header.bg-danger {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

body.dark-mode .toast-body {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .toast-container {
    background-color: transparent;
}

body.dark-mode .copy-description-btn {
    background: #ffc107;
    color: #333;
}

body.dark-mode .copy-description-btn:hover {
    background: #e0a800;
}

body.dark-mode .copy-description-btn:disabled {
    background: #6c757d;
    color: #b0b0b0;
}

body.dark-mode .download-images-btn {
    background: #17a2b8;
    color: white;
}

body.dark-mode .download-images-btn:hover {
    background: #138496;
}

body.dark-mode .download-images-btn:disabled {
    background: #6c757d;
    color: #b0b0b0;
}

body.dark-mode .download-image-urls-btn {
    background: #28a745;
    color: white;
}

body.dark-mode .download-image-urls-btn:hover {
    background: #218838;
}

body.dark-mode .download-image-urls-btn:disabled {
    background: #6c757d;
    color: #b0b0b0;
}

body.dark-mode .publish-btn {
    background: #28a745;
    color: white;
}

body.dark-mode .publish-btn:hover {
    background: #218838;
}

body.dark-mode .publish-btn:disabled {
    background: #6c757d;
    color: #b0b0b0;
}

body.dark-mode .delete-product-btn {
    background: #dc3545;
    color: white;
}

body.dark-mode .delete-product-btn:hover {
    background: #c82333;
}

body.dark-mode .delete-product-btn:disabled {
    background: #6c757d;
    color: #b0b0b0;
}

body.dark-mode .status-badge {
    color: #ffffff;
}

body.dark-mode .status-badge.published {
    background-color: #28a745;
}

body.dark-mode .status-badge.ai-processed {
    background-color: #17a2b8;
}

/* 夜间模式切换按钮 */
#darkModeToggle {
    transition: all 0.3s ease;
}

#darkModeToggle:hover {
    transform: scale(1.1);
}

body.dark-mode #darkModeToggle {
    background-color: #ffd700;
    border-color: #ffd700;
    color: #1a1a1a;
}

body.dark-mode #darkModeToggle:hover {
    background-color: #ffed4e;
    border-color: #ffed4e;
    color: #1a1a1a;
}

/* 首页分类选择器样式 - 支持层次结构 */
#publishCategory .main-category-option {
    font-weight: bold !important;
    background-color: #f0f8ff !important;
    padding: 8px 12px !important;
    margin: 2px 0 !important;
    border-left: 4px solid #007bff !important;
    color: #007bff !important;
}

#publishCategory .sub-category-option {
    padding-left: 32px !important;
    color: #666 !important;
    margin: 1px 0 !important;
    border-left: 2px solid #dee2e6 !important;
    background-color: #f8f9fa !important;
    font-weight: normal !important;
    font-size: 0.9em !important;
}

/* 层次结构分类样式 */
#publishCategory .category-main {
    font-weight: bold !important;
    background-color: #f0f8ff !important;
    padding: 8px 12px !important;
    margin: 2px 0 !important;
    border-left: 4px solid #007bff !important;
    color: #007bff !important;
}

#publishCategory .category-sub {
    padding-left: 32px !important;
    color: #666 !important;
    margin: 1px 0 !important;
    border-left: 2px solid #dee2e6 !important;
    background-color: #f8f9fa !important;
    font-weight: normal !important;
    font-size: 0.9em !important;
}

/* 悬停效果 */
#publishCategory .main-category-option:hover,
#publishCategory .category-main:hover {
    background-color: #e6f3ff !important;
}

#publishCategory .sub-category-option:hover,
#publishCategory .category-sub:hover {
    background-color: #e9ecef !important;
}

/* 选中状态 */
#publishCategory option:checked.main-category-option,
#publishCategory option:checked.category-main {
    background-color: #0d6efd !important;
    color: white !important;
}

#publishCategory option:checked.sub-category-option,
#publishCategory option:checked.category-sub {
    background-color: #6c757d !important;
    color: white !important;
}