        body {
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #f5f5f5;
        }
        
        .dashboard-header {
            background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
            color: white;
            padding: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .header-content {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }
        
        .logo {
            font-size: 20px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1 1 auto;
            min-width: 0;
            white-space: nowrap;
        }

        .logo > span {
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .logo > img { flex-shrink: 0; }
        
        .header-controls {
            display: flex;
            flex: 0 0 auto;
            justify-content: flex-end;
            gap: 8px;
            align-items: center;
        }

        /* Desktop stays on one line; compact the title and spacing before truncating long text. */
        .header-controls > * {
            flex-shrink: 0;
        }

        .header-controls .status-badge,
        .header-controls .upload-mode-switch,
        .header-controls .user-trigger {
            white-space: nowrap;
        }

        .header-controls .radio-item,
        .header-controls .user-avatar,
        .header-controls .membership-badge {
            flex-shrink: 0;
        }

        .header-controls .upload-mode-switch,
        .header-controls .status-badge {
            font-size: 12px;
            padding: 8px 10px;
        }

        .header-controls .user-name {
            font-size: 12px;
            max-width: 80px;
        }
        
        .status-badge {
            background: rgba(255,255,255,0.2);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
        }
        
        .upload-mode-switch {
            background: rgba(255,255,255,0.2);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .main-content {
            max-width: 1400px;
            margin: 20px auto;
            padding: 0 20px;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-card {
            background: white;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            text-align: center;
            transition: all 0.3s;
            border-left: 4px solid #1890ff;
        }
        
        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        }

        /* 可点击的统计卡片 */
        .stat-card-clickable {
            cursor: pointer;
            position: relative;
        }

        .stat-card-clickable::after {
            content: '→ 点击查看';
            position: absolute;
            bottom: 8px;
            right: 8px;
            font-size: 10px;
            color: #999;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .stat-card-clickable:hover::after {
            opacity: 1;
        }

        .stat-card-clickable:hover {
            border-left-color: #52c41a;
            background: linear-gradient(to right, #f6ffed, white);
        }

        .stat-card-clickable:active {
            transform: translateY(0);
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .stat-value {
            font-size: 36px;
            font-weight: bold;
            color: #1890ff;
            margin-bottom: 8px;
        }
        
        .stat-label {
            color: #666;
            font-size: 14px;
        }
        
        .content-section {
            background: white;
            padding: 24px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }
        
        .section-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 20px;
            color: #333;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .chart-container {
            height: 300px;
        }
        
        .product-card {
            border: 1px solid #f0f0f0;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 16px;
            transition: all 0.3s;
            background: #fafafa;
        }
        
        .product-card:hover {
            border-color: #1890ff;
            box-shadow: 0 4px 12px rgba(24,144,255,0.1);
            background: white;
        }
        
        .product-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
            gap: 12px;
        }
        
        .product-image {
            flex-shrink: 0;
        }
        
        .product-image img {
            display: block;
        }

        /* 表格样式 - 从product-list.html复制 */
        .product-table {
            width: 100%;
            border-collapse: collapse;
        }

        .product-table th {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            padding: 12px 8px;
            text-align: center;
            font-size: 12px;
            font-weight: 600;
            color: #495057;
        }

        .product-table td {
           /* border: 1px solid #dee2e6;*/
            border: none;
            padding: 4px;
            text-align: center;
            font-size: 12px;
            vertical-align: middle;
        }

        .product-row {
            transition: background-color 0.2s;
        }

        .product-row:hover {
            background: #f8f9fa;
        }

        /* SKU行样式 */
        .sku-row {
            background: #fafafa;
        }

        .sku-row:hover {
            background: #f5f5f5;
        }

        .sku-row td {
            border-top: 1px dashed #e8e8e8;
        }

        /* SKU展开按钮行 */
        .sku-expand-row {
            background: #f9f9f9;
        }

        .sku-expand-row td {
            border-top: 1px dashed #e8e8e8;
        }

        .sku-expand-row a:hover {
            text-decoration: underline;
        }

        .product-checkbox {
            width: 16px;
            height: 16px;
        }

        .table-product-image {
            width: 40px;
            height: 40px;
            object-fit: cover;
            border-radius: 4px;
            border: 1px solid #e9ecef;
        }

        /* 商品图片悬浮预览效果 */
        .product-image-wrapper {
            position: relative;
            display: inline-block;
        }

        .product-thumbnail-img {
            transition: transform 0.2s;
        }

        .product-thumbnail-img:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        .table-product-title {
            max-width: 200px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: #4a90e2;
            cursor: pointer;
        }

        .table-product-title:hover {
            text-decoration: underline;
        }

        .table-price-text {
            font-weight: 600;
            color: #dc3545;
        }

        .table-status-badge {
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 500;
        }

        .table-status-draft {
            background: #fff3cd;
            color: #856404;
        }

        .table-status-published {
            background: #d4edda;
            color: #155724;
        }

        .table-status-reviewing {
            background: #cce5ff;
            color: #004085;
        }

        .table-status-pending {
            background: #fff7e6;
            color: #d46b08;
        }

        .table-status-uploading {
            background: #e6f4ff;
            color: #0958d9;
        }

        .table-status-success {
            background: #f6ffed;
            color: #389e0d;
        }

        .table-status-failed {
            background: #fff1f0;
            color: #cf1322;
        }

        /* 平台业务状态样式 */
        .table-status-sold-out {
            background: #fff7e6;
            color: #d46b08;
        }

        .table-status-banned {
            background: #fff1f0;
            color: #cf1322;
        }

        .table-status-deleted {
            background: #f5f5f5;
            color: #999;
        }

        .table-action-buttons {
            display: flex;
            gap: 4px;
        }

        .table-action-btn {
            padding: 4px 8px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 11px;
            transition: all 0.2s;
        }

        .table-edit-btn {
            background: #4a90e2;
            color: white;
        }

        .table-edit-btn:hover {
            background: #357abd;
        }

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

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

        .table-delete-btn {
            background: #dc3545;
            color: white;
        }

        .table-delete-btn:hover {
            background: #c82333;
        }

        .table-more-btn {
            background: #28a745;
            color: white;
        }

        .table-more-btn:hover {
            background: #218838;
        }
        
        /* 工具栏样式 */
        .product-toolbar {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border: 1px solid #dee2e6;
            border-bottom: none;
            border-radius: 12px 12px 0 0;
            padding: 20px;
            display: flex;
            gap: 16px;
            align-items: center;
            flex-wrap: wrap;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            position: relative;
            overflow: visible; /* 改为visible，允许下拉菜单显示 */
            z-index: 10; /* 确保工具栏在表格之上 */
        }
        
        .product-toolbar::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #4a90e2, #28a745, #dc3545);
        }
        
        .toolbar-btn {
            background: #1890ff;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            min-height: 44px;
            height: 44px;
            box-sizing: border-box;
            justify-content: center;
            white-space: nowrap;
            box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .toolbar-btn:hover {
            background: #096dd9;
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(24, 144, 255, 0.3);
        }

        .toolbar-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
        }
        
        .toolbar-btn.secondary {
            background: #8c8c8c;
        }

        .toolbar-btn.secondary:hover {
            background: #595959;
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        }
        
        .toolbar-btn.warning {
            background: #fa8c16;
        }

        .toolbar-btn.warning:hover {
            background: #d46b08;
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(250, 140, 22, 0.3);
        }

        .toolbar-btn.danger {
            background: #ff4d4f;
        }

        .toolbar-btn.danger:hover {
            background: #cf1322;
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
        }

        .toolbar-btn.success {
            background: #52c41a;
        }

        .toolbar-btn.success:hover {
            background: #389e0d;
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
        }
        
        .toolbar-btn:disabled {
            background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
            color: #6c757d;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
            opacity: 0.6;
        }

        /* 禁用状态下阻止所有hover效果 */
        .toolbar-btn:disabled:hover,
        .toolbar-btn.success:disabled:hover,
        .toolbar-btn.danger:disabled:hover,
        .toolbar-btn.secondary:disabled:hover {
            background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
            color: #6c757d;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .toolbar-dropdown {
            position: relative;
            display: inline-block;
            z-index: 100; /* 确保下拉菜单容器在其他元素之上 */
        }
        
        .toolbar-dropdown .toolbar-btn {
            min-width: 120px;
        }
        
        .toolbar-dropdown-arrow {
            margin-left: 6px;
            font-size: 16px;
            transition: transform 0.3s ease;
        }
        
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            min-width: 160px;
            z-index: 99999;
        }
        
        .dropdown-item {
            padding: 8px 12px;
            cursor: pointer;
            color: #333;
            white-space: nowrap;
        }
        
        .dropdown-item:hover {
            background-color: #f5f5f5;
        }
        
        .dropdown-item:first-child {
            border-top-left-radius: 4px;
            border-top-right-radius: 4px;
        }
        
        .dropdown-item:last-child {
            border-bottom-left-radius: 4px;
            border-bottom-right-radius: 4px;
        }
        
        /* 搜索栏样式 */
        .search-container {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border: 1px solid #dee2e6;
            border-radius: 12px;
            margin-bottom: 20px;
            padding: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            position: relative;
        }

        .search-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #4a90e2, #357abd, #2c5aa0);
        }
        
        .search-form {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .search-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            align-items: end;
            margin-bottom: 4px;
        }
        
        .search-field {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .search-field label {
            font-size: 12px;
            color: #666;
            font-weight: 500;
        }
        
        .form-select, .form-input {
            padding: 10px 14px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 13px;
            background: white;
            transition: all 0.3s ease;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            height: 40px;
            box-sizing: border-box;
        }
        
        .form-select:focus, .form-input:focus {
            outline: none;
            border-color: #4a90e2;
            box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1), 0 2px 8px rgba(0,0,0,0.08);
            transform: translateY(-1px);
        }
        
        .search-input-field {
            position: relative;
        }
        
        .search-input-container {
            display: flex;
            align-items: center;
            position: relative;
        }
        
        .search-input-container .form-input {
            flex: 1;
            padding-right: 35px;
        }
        
        .search-icon-btn {
            position: absolute;
            right: 8px;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 14px;
            padding: 4px;
        }
        
        .scan-switch {
            margin-top: 6px;
        }
        
        .switch-label {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            color: #666;
            cursor: pointer;
        }
        
        .switch-input {
            width: 14px;
            height: 14px;
        }
        
        .range-field {
            min-width: 250px;
        }
        
        .range-input {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .range-input-item {
            flex: 1;
            min-width: 80px;
        }
        
        .range-separator {
            color: #666;
            font-weight: bold;
        }
        
        .date-input {
            max-width: 140px;
        }
        
        .search-actions {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid rgba(0,0,0,0.08);
        }
        
        .btn {
            padding: 10px 20px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            transition: all 0.3s ease;
            height: 40px;
            box-sizing: border-box;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            position: relative;
            overflow: hidden;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
            color: white;
        }
        
        .btn-primary:hover {
            background: linear-gradient(135deg, #357abd 0%, #2c5aa0 100%);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
        }
        
        .btn-primary:active {
            transform: translateY(0);
            box-shadow: 0 2px 6px rgba(74, 144, 226, 0.2);
        }
        
        .btn-secondary {
            background: #fff;
            color: #666;
            border: 1px solid #d9d9d9;
        }

        .btn-secondary:hover {
            color: #1890ff;
            border-color: #1890ff;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
        }

        .btn-text {
            background: transparent;
            color: #1890ff;
            display: flex;
            align-items: center;
            gap: 6px;
            box-shadow: none;
            border: none;
            font-weight: 500;
        }

        .btn-text:hover {
            color: #096dd9;
            background: rgba(24, 144, 255, 0.06);
            transform: none;
        }
        
        .expand-icon {
            transition: transform 0.2s;
        }
        
        .search-conditions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #e9ecef;
        }
        
        .conditions-label {
            font-size: 12px;
            color: #666;
            font-weight: 500;
        }
        
        .condition-chip {
            display: flex;
            align-items: center;
            gap: 6px;
            background: #e3f2fd;
            color: #1976d2;
            padding: 4px 8px;
            border-radius: 16px;
            font-size: 11px;
            border: 1px solid #bbdefb;
        }
        
        .remove-chip {
            background: none;
            border: none;
            color: #1976d2;
            cursor: pointer;
            font-size: 14px;
            padding: 0;
            width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }
        
        .remove-chip:hover {
            background: rgba(25, 118, 210, 0.1);
        }

        /* 筛选条件栏 - 方案管理 */
        .search-conditions-bar {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #e9ecef;
        }

        .conditions-left {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            flex: 1;
            min-width: 0;
        }

        .conditions-left .conditions-label {
            flex-shrink: 0;
            padding-top: 4px;
        }

        .chips-wrapper {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .chips-wrapper.collapsed {
            max-height: 28px;
        }

        .conditions-right {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .preset-btn {
            background: none;
            border: 1px solid #d9d9d9;
            border-radius: 6px;
            cursor: pointer;
            padding: 4px 10px;
            font-size: 13px;
            color: #666;
            transition: all 0.2s;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            height: 30px;
        }

        .preset-btn:hover {
            border-color: #1890ff;
            color: #1890ff;
        }

        .preset-btn.preset-save {
            font-size: 16px;
            padding: 4px 8px;
        }

        .preset-btn.preset-save:hover {
            border-color: #52c41a;
            color: #52c41a;
        }

        .preset-btn.preset-delete {
            font-size: 16px;
            padding: 4px 8px;
        }

        .preset-btn.preset-delete:hover {
            border-color: #ff4d4f;
            color: #ff4d4f;
        }

        .preset-manage {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .preset-select {
            padding: 4px 8px;
            border: 1px solid #d9d9d9;
            border-radius: 6px;
            font-size: 12px;
            color: #666;
            background: #fff;
            cursor: pointer;
            height: 30px;
            min-width: 100px;
        }

        .preset-select:hover, .preset-select:focus {
            border-color: #1890ff;
            outline: none;
        }

        .product-title {
            font-weight: bold;
            color: #333;
            flex: 1;
            font-size: 16px;
        }
        
        .product-status {
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
        }
        
        .status-collected { background: #fff2e8; color: #fa8c16; }
        .status-optimized { background: #f6ffed; color: #52c41a; }
        .status-uploaded { background: #e6f7ff; color: #1890ff; }
        
        .product-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
            margin-bottom: 16px;
            font-size: 14px;
        }
        
        .info-item {
            padding: 8px 12px;
            background: white;
            border-radius: 6px;
            border: 1px solid #f0f0f0;
        }
        
        .info-label {
            font-weight: bold;
            color: #666;
            margin-right: 8px;
        }
        
        .action-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .btn {
            padding: 8px 16px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
        }
        
        .btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .btn-primary { background: #1890ff; color: white; }
        .btn-success { background: #52c41a; color: white; }
        .btn-warning { background: #fa8c16; color: white; }
        .btn-secondary { background: #8c8c8c; color: white; }
        .btn-purple { background: #3b82f6; color: white; }
        
        .tabs-container {
            margin-bottom: 20px;
        }
        
        .tab-button {
            padding: 12px 24px;
            border: none;
            background: #f5f5f5;
            color: #666;
            cursor: pointer;
            border-radius: 8px 8px 0 0;
            margin-right: 5px;
            transition: all 0.2s;
        }
        
        .tab-button.active {
            background: white;
            color: #1890ff;
            font-weight: bold;
            box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
        }

        /* 平台/店铺切换条 */
        .shop-switch-bar {
            display: flex;
            gap: 8px;
            padding: 12px 0;
            margin-bottom: 8px;
            overflow-x: auto;
        }

        .shop-switch-btn {
            padding: 6px 16px;
            border-radius: 20px;
            border: 1px solid #d9d9d9;
            background: #fff;
            cursor: pointer;
            white-space: nowrap;
            font-size: 13px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .shop-switch-btn.active {
            background: #1890ff;
            color: #fff;
            border-color: #1890ff;
        }

        .shop-switch-btn:hover:not(.active) {
            border-color: #1890ff;
            color: #1890ff;
        }

        /* 草稿箱按钮样式 */
        .shop-switch-btn.draft-box-btn {
            position: relative;
        }

        .shop-switch-btn.draft-box-btn.active {
            background: #1890ff;
            border-color: #1890ff;
        }

        .shop-switch-btn.draft-box-btn:hover:not(.active) {
            border-color: #1890ff;
            color: #1890ff;
        }

        .draft-count-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            border-radius: 9px;
            background: #ff4d4f;
            color: #fff;
            font-size: 11px;
            line-height: 1;
            margin-left: 4px;
        }

        .shop-switch-btn.draft-box-btn.active .draft-count-badge {
            background: rgba(255, 255, 255, 0.3);
        }

        /* 店铺按钮样式 */
        .shop-switch-btn.shop-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            max-width: 200px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .shop-btn-name {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .platform-dot {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            border-radius: 4px;
            flex-shrink: 0;
            font-size: 10px;
            font-weight: 700;
            color: #fff;
            line-height: 1;
        }

        .platform-dot.shopee {
            background: #EE4D2D;
        }
        .platform-dot.shopee::after {
            content: 'S';
        }

        .platform-dot.qoo10 {
            background: #E4002B;
        }
        .platform-dot.qoo10::after {
            content: 'Q';
        }

        .platform-dot.lazada {
            background: #0F146D;
        }
        .platform-dot.lazada::after {
            content: 'L';
        }

        .platform-dot.tiktok {
            background: #000000;
        }
        .platform-dot.tiktok::after {
            content: 'T';
        }

        .platform-dot.amazon {
            background: #FF9900;
        }
        .platform-dot.amazon::after {
            content: 'A';
        }

        .platform-dot.other {
            background: #999;
        }
        .platform-dot.other::after {
            content: '?';
        }

        /* 商品状态标签样式 */
        .product-status-tabs {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 12px 0;
            border-bottom: 1px solid #e8e8e8;
            margin-bottom: 16px;
        }

        .status-tab {
            padding: 6px 16px;
            border: none;
            background: transparent;
            color: #666;
            cursor: pointer;
            font-size: 14px;
            position: relative;
            transition: all 0.2s;
        }

        .status-tab:hover {
            color: #1890ff;
        }

        .status-tab.active {
            color: #1890ff;
            font-weight: 500;
        }

        .status-tab.active::after {
            content: '';
            position: absolute;
            bottom: -12px;
            left: 0;
            right: 0;
            height: 2px;
            background: #1890ff;
        }

        .status-tab-count {
            margin-left: 4px;
            color: #999;
            font-size: 12px;
        }

        .status-tab.active .status-tab-count {
            color: #1890ff;
        }

        .status-tab-failed {
            color: #ff4d4f !important;
        }

        .status-tab-failed:hover {
            color: #ff7875 !important;
        }

        .status-tab-failed.active {
            color: #ff4d4f !important;
        }

        .status-tab-failed.active::after {
            background: #ff4d4f;
        }

        .status-tab-failed .status-tab-count {
            color: #ff4d4f !important;
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            overflow: auto;
            padding: 20px;
            box-sizing: border-box;
        }

        .modal-content {
            background: white;
            border-radius: 12px;
            padding: 24px;
            max-width: 600px;
            width: 90%;
            max-height: calc(100vh - 40px);
            overflow-y: auto;
            margin: auto;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
            animation: modalFadeIn 0.2s ease-out;
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }
        
        .modal-header {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .close-btn {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #999;
        }
        
        .form-group {
            margin-bottom: 16px;
        }
        
        .form-label {
            display: block;
            font-weight: bold;
            margin-bottom: 8px;
            color: #333;
        }
        
        .form-input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #d9d9d9;
            border-radius: 6px;
            font-size: 14px;
        }
        
        .form-textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #d9d9d9;
            border-radius: 6px;
            font-size: 14px;
            min-height: 80px;
            resize: vertical;
        }
        
        .upload-control {
            background: #f9f9f9;
            padding: 16px;
            border-radius: 8px;
            margin-bottom: 16px;
        }
        
        .upload-mode {
            display: flex;
            gap: 16px;
            align-items: center;
            margin-bottom: 12px;
        }
        
        .radio-group {
            display: flex;
            gap: 16px;
        }
        
        .radio-item {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
        }
        
        .platform-select {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }
        
        .platform-chip {
            padding: 6px 12px;
            background: #f0f0f0;
            border-radius: 20px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .platform-chip.selected {
            background: #1890ff;
            color: white;
        }
        
        .refresh-btn {
            position: fixed;
            bottom: 80px;
            right: 30px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: #1890ff;
            color: white;
            border: none;
            font-size: 12px;
            line-height: 1.3;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(24,144,255,0.3);
            transition: all 0.3s;
            z-index: 50;
        }
        
        .refresh-btn:hover {
            background: #40a9ff;
            transform: scale(1.1);
        }
        
        .loading-spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #1890ff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* 批量操作对话框样式 */
        .tag-chip {
            display: inline-block;
            padding: 6px 12px;
            background: #f0f0f0;
            border: 1px solid #d9d9d9;
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 13px;
        }

        .tag-chip:hover {
            border-color: #1890ff;
            color: #1890ff;
        }

        .tag-chip.selected {
            background: #e6f7ff;
            border-color: #1890ff;
            color: #1890ff;
        }

        .radio-group {
            display: flex;
            gap: 20px;
        }

        .radio-item {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
        }

        .radio-item input[type="radio"] {
            width: 16px;
            height: 16px;
            cursor: pointer;
        }

        .modal-body {
            padding: 20px;
        }

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

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #333;
        }

        .form-label input[type="checkbox"] {
            margin-right: 8px;
        }

        .btn-success {
            background: #52c41a;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 4px;
            cursor: pointer;
        }

        .btn-success:hover {
            background: #389e0d;
        }

        .btn-success:disabled {
            background: #d9d9d9;
            cursor: not-allowed;
        }

        /* ===== 用户信息和配额显示 ===== */

        /* 配额显示 - 两行网格 */
        .quota-display {
            display: grid;
            grid-template-columns: repeat(3, auto);
            gap: 4px 8px;
            background: rgba(255,255,255,0.15);
            padding: 6px 8px;
            border-radius: 12px;
            margin-left: auto;
            flex-shrink: 0;
        }

        .quota-item {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            cursor: help;
        }

        .quota-icon {
            font-size: 14px;
        }

        .quota-text {
            font-weight: 500;
            white-space: nowrap;
        }

        /* 用户菜单 */
        .user-menu {
            position: relative;
        }

        .user-trigger {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(255,255,255,0.2);
            padding: 6px 12px;
            border-radius: 20px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .user-trigger:hover {
            background: rgba(255,255,255,0.3);
        }

        .user-avatar {
            width: 28px;
            height: 28px;
            background: rgba(255,255,255,0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 14px;
        }

        .user-name {
            font-size: 14px;
            max-width: 100px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .membership-badge {
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 10px;
            background: rgba(255,255,255,0.3);
        }

        .membership-badge.free {
            background: rgba(255,255,255,0.2);
        }

        .membership-badge.basic {
            background: #52c41a;
        }

        .membership-badge.pro {
            background: #1890ff;
        }

        .membership-badge.enterprise {
            background: #fa8c16;
        }

        .user-menu .dropdown-arrow {
            font-size: 10px;
            opacity: 0.7;
        }

        .user-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 8px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            min-width: 160px;
            z-index: 1000;
            overflow: hidden;
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 16px;
            color: #333;
            text-decoration: none;
            cursor: pointer;
            transition: background 0.2s;
            font-size: 14px;
        }

        .dropdown-item:hover {
            background: #f5f5f5;
        }

        .dropdown-item.danger {
            color: #ff4d4f;
        }

        .dropdown-item.danger:hover {
            background: #fff1f0;
        }

        .dropdown-divider {
            height: 1px;
            background: #f0f0f0;
            margin: 4px 0;
        }

        /* ===== 公告区域样式 ===== */
        .announcement-section {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            margin-bottom: 20px;
            overflow: hidden;
        }

        .announcement-header {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 16px;
            background: linear-gradient(135deg, #fff7e6 0%, #fffbe6 100%);
            border-bottom: 1px solid #ffe7ba;
        }

        .announcement-icon {
            font-size: 18px;
        }

        .announcement-title {
            font-weight: 600;
            color: #d48806;
            flex: 1;
        }

        .announcement-toggle {
            background: none;
            border: 1px solid #d48806;
            color: #d48806;
            padding: 4px 12px;
            border-radius: 16px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s;
        }

        .announcement-toggle:hover {
            background: #d48806;
            color: white;
        }

        .announcement-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .announcement-close {
            background: none;
            border: none;
            color: #999;
            padding: 4px 8px;
            cursor: pointer;
            font-size: 16px;
            line-height: 1;
            border-radius: 4px;
            transition: all 0.2s;
        }

        .announcement-close:hover {
            background: rgba(0, 0, 0, 0.05);
            color: #666;
        }

        .announcement-list {
            max-height: 100px;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .announcement-list.expanded {
            max-height: 400px;
            overflow-y: auto;
        }

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

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

        .announcement-item:hover {
            background: #fafafa;
        }

        .announcement-item.pinned {
            background: #fffbe6;
        }

        .announcement-item.pinned:hover {
            background: #fff7e6;
        }

        .announcement-type-badge {
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: 500;
            white-space: nowrap;
        }

        .announcement-item.type-notice .announcement-type-badge {
            background: #e6f7ff;
            color: #1890ff;
        }

        .announcement-item.type-update .announcement-type-badge {
            background: #f6ffed;
            color: #52c41a;
        }

        .announcement-item.type-warning .announcement-type-badge {
            background: #fff2e8;
            color: #fa8c16;
        }

        .announcement-item.type-promotion .announcement-type-badge {
            background: #eff6ff;
            color: #3b82f6;
        }

        .announcement-text {
            flex: 1;
            color: #333;
            font-size: 14px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .announcement-date {
            color: #999;
            font-size: 12px;
            white-space: nowrap;
        }

        .announcement-pin {
            font-size: 12px;
        }

        /* ========== 系统设置 - 开关组件 ========== */
        .switch-label {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 22px;
            flex-shrink: 0;
        }
        .switch-input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .switch-slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background: #ccc;
            border-radius: 22px;
            transition: 0.3s;
        }
        .switch-slider::before {
            content: "";
            position: absolute;
            width: 18px;
            height: 18px;
            left: 2px;
            bottom: 2px;
            background: white;
            border-radius: 50%;
            transition: 0.3s;
            box-shadow: 0 1px 3px rgba(0,0,0,0.3);
        }
        .switch-input:checked + .switch-slider {
            background: #4caf50;
        }
        .switch-input:checked + .switch-slider::before {
            transform: translateX(22px);
        }

        /* 设置信息行 */
        .settings-info-row {
            display: flex;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #f5f5f5;
        }
        .settings-info-row:last-child {
            border-bottom: none;
        }
        .settings-info-label {
            font-weight: 500;
            color: #333;
            min-width: 100px;
            font-size: 13px;
        }
        .settings-info-desc {
            flex: 1;
            font-size: 12px;
            color: #999;
        }
        .form-input-sm {
            padding: 6px 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }
        .form-input-sm:focus {
            outline: none;
            border-color: #1890ff;
        }

        /* ========== 违禁词标签 ========== */
        .fw-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 13px;
            cursor: default;
            transition: all 0.2s;
        }
        .fw-tag--system {
            background: #f0f2f5;
            border: 1px solid #d9d9d9;
            color: #595959;
        }
        .fw-tag--custom {
            background: #e6f7ff;
            border: 1px solid #91d5ff;
            color: #1890ff;
        }
        .fw-tag:hover {
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            transform: translateY(-1px);
        }
        .fw-tag__label {
            font-size: 10px;
            padding: 1px 5px;
            border-radius: 3px;
            font-weight: 500;
        }
        .fw-tag--system .fw-tag__label {
            background: #e8e8e8;
            color: #8c8c8c;
        }
        .fw-tag--custom .fw-tag__label {
            background: #bae7ff;
            color: #096dd9;
        }
        .fw-tag__close {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .fw-tag--system .fw-tag__close:hover {
            background: #ff9800;
            color: #fff;
        }
        .fw-tag--custom .fw-tag__close:hover {
            background: #f44336;
            color: #fff;
        }
        .fw-tag--excluded {
            background: #fff7e6;
            border: 1px solid #ffd591;
            color: #d46b08;
            cursor: pointer;
        }
        .fw-tag--excluded:hover {
            background: #ffe7ba;
        }

        /* ========== 描述规则表格 ========== */
        .dr-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }
        .dr-table th {
            padding: 10px 12px;
            text-align: left;
            background: #f8f9fa;
            border-bottom: 2px solid #e8e8e8;
            color: #666;
            font-weight: 500;
            font-size: 12px;
        }
        .dr-table td {
            padding: 10px 12px;
            border-bottom: 1px solid #f0f0f0;
            color: #333;
        }
        .dr-table tbody tr:hover {
            background: #f8f9fa;
        }
        .dr-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: 500;
            white-space: nowrap;
        }
        .dr-badge--delete {
            background: #fff1f0;
            color: #cf1322;
        }
        .dr-badge--replace {
            background: #e6f7ff;
            color: #0050b3;
        }
        .dr-badge--append {
            background: #f6ffed;
            color: #389e0d;
        }
        .dr-badge--system {
            background: #fff7e6;
            color: #d46b08;
        }
        .dr-badge--custom {
            background: #e6f7ff;
            color: #0050b3;
        }
        .dr-btn {
            padding: 4px 10px;
            border: 1px solid;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
            background: transparent;
            transition: all 0.2s;
        }
        .dr-btn--warn {
            color: #fa8c16;
            border-color: #ffd591;
        }
        .dr-btn--warn:hover {
            background: #fff7e6;
        }
        .dr-btn--edit {
            color: #1890ff;
            border-color: #91d5ff;
        }
        .dr-btn--edit:hover {
            background: #e6f7ff;
        }
        .dr-btn--danger {
            color: #ff4d4f;
            border-color: #ffa39e;
            margin-left: 4px;
        }
        .dr-btn--danger:hover {
            background: #fff1f0;
        }

        /* 定价工具 iframe 嵌入 */
        .pricing-iframe-section {
            padding: 0 !important;
            background: transparent;
            box-shadow: none;
            position: relative;
        }
        .pricing-iframe {
            width: 100%;
            height: calc(100vh - 120px);
            border: none;
            border-radius: 8px;
        }
        .pricing-iframe.iframe-hidden {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }
        .pricing-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: calc(100vh - 120px);
            color: #666;
            font-size: 14px;
        }
        .pricing-loading p {
            margin-top: 16px;
        }
        .pricing-loading-spinner {
            width: 36px;
            height: 36px;
            border: 3px solid #e8e8e8;
            border-top-color: #1677ff;
            border-radius: 50%;
            animation: pricing-spin 0.8s linear infinite;
        }
        @keyframes pricing-spin {
            to { transform: rotate(360deg); }
        }

        /* ============================================================
           Refactored inline styles (extracted from dashboard.html)
           Naming: .dashboard-* prefix for sections specific to this page
           ============================================================ */

        /* --- Header / status --- */
        .dashboard-logo-img { width: 32px; height: 32px; border-radius: 50%; }
        .dashboard-status-ok-icon { color: #22C55E; }
        .dashboard-status-bad-icon { color: #EF4444; }

        /* --- Section header right-aligned action group --- */
        .dashboard-section-actions { margin-left: auto; display: flex; gap: 8px; }
        .dashboard-section-meta { margin-left: auto; color: #666; font-size: 12px; }

        /* --- Loading overlay (covers content while preserving height) --- */
        .dashboard-loading-overlay {
            position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(255,255,255,0.7); z-index: 10;
            display: flex; align-items: center; justify-content: center;
            min-height: 200px;
        }
        .dashboard-pos-relative { position: relative; }
        .dashboard-text-center { text-align: center; }
        .dashboard-loading-text { margin-top: 10px; }
        .dashboard-error-msg { color: #ff4d4f; text-align: center; padding: 20px; }
        .dashboard-empty-msg { text-align: center; padding: 40px; color: #999; }
        .dashboard-empty-msg-sm { text-align: center; padding: 20px; }
        .dashboard-empty-msg-tiny { text-align:center; padding:20px; color:#999; }
        .dashboard-empty-msg-md { text-align:center; padding:30px; color:#999; }
        .dashboard-empty-hint { color: #999; padding: 12px; text-align: center; }
        .dashboard-empty-large { text-align:center; color:#9ca3af; padding:60px 20px; }

        /* --- Color tag picker (search filters) --- */
        .dashboard-color-tag-wrap { position: relative; }
        .dashboard-color-tag-clear {
            position: absolute; right: 8px; top: 50%;
            transform: translateY(-50%); cursor: pointer;
            color: #999; font-size: 14px;
        }
        .dashboard-color-tag-dropdown {
            position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
            background: #fff; border: 1px solid #d9d9d9; border-radius: 4px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            max-height: 200px; overflow-y: auto; margin-top: 2px;
        }
        .dashboard-color-tag-option {
            padding: 6px 12px; cursor: pointer; font-size: 13px;
            display: flex; align-items: center; gap: 6px;
        }

        /* --- Filter chip placeholder --- */
        .dashboard-filter-empty { color:#999; font-size:12px; }

        /* --- Dropdown item: AI optimize --- */
        .dashboard-dropdown-item-ai {
            border-top: 1px solid #f0f0f0;
            color: #2563EB; font-weight: 500;
            display: flex; align-items: center; gap: 6px;
        }

        /* --- Product table cells --- */
        .dashboard-cell-top { vertical-align: top; padding-top: 12px; }
        .dashboard-cell-pad-sm { padding: 4px; }
        .dashboard-cell-fs12 { font-size: 12px; }
        .dashboard-cell-fs11 { font-size: 11px; }
        .dashboard-cell-fs11-muted { font-size: 11px; color: #999; }
        .dashboard-cell-fs11-dim { font-size: 11px; color: #666; }
        .dashboard-cell-empty-sku { color: #999; font-size: 11px; text-align: center; }
        .dashboard-cell-center { text-align: center; padding: 8px; }
        .dashboard-cell-fs12-center { font-size: 12px; text-align: center; }
        .dashboard-cell-fs12-line { font-size: 12px; line-height: 1.8; }

        /* Product image (table) */
        .dashboard-product-img {
            width: 80px; height: 80px; object-fit: cover;
            border-radius: 4px; border: 1px solid #e8e8e8; cursor: pointer;
        }
        .dashboard-sku-img {
            width: 40px; height: 40px; object-fit: cover;
            border-radius: 4px; border: 1px solid #e8e8e8;
        }
        .dashboard-no-img { color: #ccc; font-size: 10px; }

        /* Product title block */
        .dashboard-product-title-link {
            margin-bottom: 4px; line-height: 1.4;
            word-break: break-word; white-space: normal; text-align: center;
        }
        .dashboard-product-id-line {
            color: #999; font-size: 11px; margin-bottom: 2px; text-align: center;
        }
        .dashboard-product-meta-row { margin: 4px 0; text-align: center; }
        .dashboard-color-tags-row {
            display: flex; justify-content: center; gap: 4px;
            margin-top: 4px; flex-wrap: wrap;
        }

        /* Price */
        .dashboard-price-block { font-size: 12px; }
        .dashboard-price-currency { color: #999; }
        .dashboard-price-value { margin-left: 4px; }
        .dashboard-price-original { color: #999; font-size: 11px; }
        .dashboard-mb-4 { margin-bottom: 4px; }

        /* Shop / status */
        .dashboard-shop-type { color: #999; font-size: 11px; margin-top: 4px; }
        .dashboard-claim-fail { color: #ff4d4f; font-weight: 500; }
        .dashboard-claim-ok { color: #52c41a; font-weight: 500; }
        .dashboard-claim-pending { color: #999; }
        .dashboard-platform-line { margin-top: 4px; }
        .dashboard-platform-name { color: #666; font-size: 11px; }
        .dashboard-fail-reason { color: #999; font-size: 11px; margin-top: 4px; }
        .dashboard-platform-name-sub { color: #999; font-size: 11px; margin-top: 2px; }
        .dashboard-upload-time { color: #999; font-size: 11px; margin-top: 4px; }
        .dashboard-upload-error { color: #ff4d4f; font-size: 11px; margin-top: 4px; word-break: break-all; }
        .dashboard-processing-warnings { margin-top: 7px; padding: 6px 8px; border: 1px solid #f1d6a2; border-radius: 5px; background: #fffaf0; color: #80551c; text-align: left; font-size: 11px; line-height: 1.6; }
        .dashboard-processing-warnings summary { cursor: pointer; font-weight: 500; }
        .dashboard-processing-warning { margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }

        /* Action links in product table */
        .dashboard-action-link { text-decoration: none; color: #1890ff; }
        .dashboard-action-link-success { text-decoration: none; color: #52c41a; }
        .dashboard-action-link-danger { text-decoration: none; color: #ff4d4f; }
        .dashboard-action-sep { margin: 0 4px; color: #d9d9d9; }
        .dashboard-action-row { margin-top: 4px; }

        /* SKU expand toggle */
        .dashboard-sku-toggle { color: #1890ff; font-size: 12px; text-decoration: none; }

        /* --- Pagination --- */
        .dashboard-pagination {
            display: flex; justify-content: space-between; align-items: center;
            margin-top: 16px; padding: 16px;
            background: #f8f9fa; border-radius: 8px;
        }
        .dashboard-pagination-group { display: flex; align-items: center; gap: 8px; }
        .dashboard-pagination-label { color: #666; font-size: 14px; }
        .dashboard-pagination-label-spaced { color: #666; font-size: 14px; margin-left: 12px; }
        .dashboard-pagination-select {
            padding: 4px 8px; border: 1px solid #d9d9d9;
            border-radius: 4px; font-size: 14px;
        }
        .dashboard-pagination-btn {
            padding: 6px 12px; border: 1px solid #d9d9d9;
            background: white; border-radius: 4px; cursor: pointer; font-size: 14px;
        }
        .dashboard-pagination-jump { display: flex; align-items: center; gap: 4px; margin: 0 12px; }
        .dashboard-pagination-input {
            width: 50px; padding: 2px 6px; border: 1px solid #d9d9d9;
            border-radius: 4px; text-align: center; font-size: 14px;
        }

        /* --- Settings / forms --- */
        .dashboard-settings-container { max-width: 900px; }
        .dashboard-inline-row { display: flex; align-items: center; gap: 4px; }
        .dashboard-input-num-sm { width: 70px; text-align: center; }
        .dashboard-input-w100 { width: 100px; }
        .dashboard-input-w16 { width: 16px; height: 16px; }
        .dashboard-suffix-text { font-size: 13px; color: #666; }
        .dashboard-row-top { align-items: flex-start; }
        .dashboard-label-pad { padding-top: 4px; }
        .dashboard-shop-list {
            display: flex; flex-direction: column; gap: 6px;
            max-height: 120px; overflow-y: auto;
        }
        .dashboard-shop-checkbox-row {
            display: flex; align-items: center; gap: 6px;
            font-size: 13px; cursor: pointer;
        }
        .dashboard-empty-shops { color: #999; font-size: 12px; }
        .dashboard-form-actions-right { margin-top: 16px; text-align: right; }
        .dashboard-btn-sm-primary { font-size: 13px; padding: 6px 16px; }
        .dashboard-btn-sm-add { font-size: 13px; padding: 6px 14px; }

        /* --- Forbidden words / description rules --- */
        .dashboard-section-header {
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 16px;
        }
        .dashboard-section-h4 { margin: 0; }
        .dashboard-section-hint { font-size: 12px; color: #999; font-weight: normal; margin-left: 8px; }
        .dashboard-search-row { display: flex; gap: 8px; margin-bottom: 12px; }
        .dashboard-flex-1 { flex: 1; }
        .dashboard-empty-hint-sm { font-size: 12px; margin-top: 8px; }
        .dashboard-tag-grid {
            display: flex; flex-wrap: wrap; gap: 6px;
            max-height: 300px; overflow-y: auto; padding: 4px 0;
        }
        .dashboard-fw-pagination {
            display: flex; justify-content: space-between; align-items: center;
            margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f0f0;
        }
        .dashboard-fw-count { font-size: 12px; color: #999; }
        .dashboard-fw-page-list { display: flex; gap: 4px; }
        .dashboard-excluded-section {
            margin-top: 16px; padding-top: 12px; border-top: 1px solid #f0f0f0;
        }
        .dashboard-excluded-label { font-size: 12px; color: #999; margin-bottom: 8px; }
        .dashboard-excluded-grid {
            display: flex; flex-wrap: wrap; gap: 6px;
            max-height: 150px; overflow-y: auto;
        }

        /* Description rule table */
        .dashboard-th-action-type { width: 80px; text-align: center; }
        .dashboard-th-source { width: 60px; text-align: center; }
        .dashboard-th-status { width: 60px; text-align: center; }
        .dashboard-th-ops { width: 160px; text-align: center; }
        .dashboard-rule-remark { font-size: 11px; color: #999; margin-top: 2px; }
        .dashboard-td-center { text-align: center; }
        .dashboard-td-ellipsis {
            max-width: 200px; overflow: hidden;
            text-overflow: ellipsis; white-space: nowrap;
        }
        .dashboard-rule-empty { color: #ccc; }
        .dashboard-rule-position { color: #999; font-size: 11px; }
        .dashboard-rule-status-on { color: #4CAF50; font-size: 12px; }
        .dashboard-switch-shrink { transform: scale(0.8); }
        .dashboard-tag-list-flex { display: flex; flex-wrap: wrap; gap: 6px; }

        /* --- Modals --- */
        .dashboard-modal-w480 { width: 480px; }
        .dashboard-modal-w500 { width: 500px; }
        .dashboard-modal-w550 { width: 550px; }
        .dashboard-modal-w600 { width: 600px; max-height: 80vh; }
        .dashboard-modal-body-scroll { max-height: 60vh; overflow-y: auto; }
        .dashboard-modal-desc { color: #666; margin-bottom: 16px; }

        /* Batch edit pricing/stock */
        .dashboard-batch-row { display: flex; gap: 10px; align-items: center; }
        .dashboard-batch-row-wrap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
        .dashboard-batch-input-w120 { width: 120px; }
        .dashboard-batch-input-w70 { width: 70px; }
        .dashboard-batch-input-w80 { width: 80px; }
        .dashboard-batch-input-w140 { width: 140px; }
        .dashboard-batch-dim-row { display: flex; align-items: center; gap: 4px; }
        .dashboard-batch-dim-label { color: #666; font-size: 12px; }
        .dashboard-batch-dim-unit { color: #999; font-size: 12px; }

        /* Color tag picker (modals) */
        .dashboard-tag-picker-row {
            display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px;
        }
        .dashboard-tag-picker-row-12 {
            display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px;
        }
        .dashboard-tag-picker-card {
            display: flex; align-items: center; gap: 0;
            border-radius: 6px; overflow: hidden; border: 1px solid #e0e0e0;
        }
        .dashboard-tag-picker-card-anim {
            display: flex; align-items: center; gap: 0;
            border-radius: 6px; overflow: hidden;
            border: 1px solid #e0e0e0; transition: all 0.2s;
        }
        .dashboard-tag-checkbox {
            width: 15px; height: 15px; cursor: pointer; accent-color: #3f51b5;
        }
        .dashboard-custom-tag-section {
            border-top: 1px solid #f0f0f0; padding-top: 12px;
        }
        .dashboard-custom-tag-row {
            display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
        }
        .dashboard-custom-tag-group {
            display: flex; align-items: center; gap: 6px;
        }
        .dashboard-custom-tag-group-flex {
            display: flex; align-items: center; gap: 6px; flex: 1;
        }
        .dashboard-custom-tag-label { font-size: 12px; color: #999; }
        .dashboard-color-input {
            width: 36px; height: 36px; border: 1px solid #e0e0e0;
            border-radius: 6px; cursor: pointer; padding: 2px;
        }
        .dashboard-text-input-flex { flex: 1; height: 36px; }
        .dashboard-add-tag-btn { height: 36px; padding: 0 12px; font-size: 13px; }
        .dashboard-preview-row {
            display: flex; align-items: center; gap: 8px; margin-top: 4px;
        }

        /* Publish modal */
        .dashboard-shops-empty {
            color: #999; padding: 12px; text-align: center;
        }
        .dashboard-shops-link { color: #1890ff; }

        /* AI optimize callouts */
        .dashboard-ai-checkbox-blue { accent-color: #3B82F6; }
        .dashboard-ai-warning-text { color: #dc2626; font-weight: 500; }
        .dashboard-ai-progress-percent { margin-left: 8px; color: #9ca3af; }
        .dashboard-ai-empty {
            text-align: center; color: #9ca3af; padding: 60px 20px;
        }
        .dashboard-ai-spinner {
            margin: 0 auto 8px; animation: aio-spin 1s linear infinite;
        }

        /* Operation log dialog */
        .dashboard-log-list-scroll { max-height: 400px; overflow-y: auto; }
        .dashboard-log-item {
            padding: 12px; border-bottom: 1px solid #f0f0f0;
            display: flex; align-items: flex-start; gap: 12px;
        }
        .dashboard-log-icon { font-size: 20px; flex-shrink: 0; width: 20px; }
        .dashboard-log-body { flex: 1; min-width: 0; }
        .dashboard-log-title { font-weight: 500; margin-bottom: 4px; }
        .dashboard-log-fail-tag { color: #ff4d4f; font-size: 11px; margin-left: 6px; }
        .dashboard-log-detail { color: #666; font-size: 12px; word-break: break-all; }
        .dashboard-log-time { color: #999; font-size: 11px; margin-top: 4px; }
        .dashboard-log-operator { margin-left: 8px; }

        /* --- Additional one-off classes --- */
        .dashboard-modal-w450 { width: 450px; }
        .dashboard-input-w80 { width: 80px; }
        .dashboard-input-w140 { width: 140px; }
        .dashboard-th-action-w160 { width: 160px; text-align: center; }
        .dashboard-flex-1-only { flex: 1; }
        .dashboard-flex-gap4 { display: flex; gap: 4px; }
        .dashboard-tag-list-flex-only { display: flex; flex-wrap: wrap; gap: 6px; }
        .dashboard-ml-4 { margin-left: 4px; }
        .dashboard-ml-8 { margin-left: 8px; }
        .dashboard-cell-fs11-muted2 { color: #999; font-size: 11px; }
        .dashboard-cny-hint { color: #8c8c8c; font-size: 11px; line-height: 1.2; margin-top: 2px; white-space: nowrap; }
        .dashboard-rule-position-sub { font-size: 11px; color: #999; margin-top: 2px; }
        .dashboard-link-blue { color: #1890ff; }

        @media (min-width: 769px) and (max-width: 1279px) {
            .logo { font-size: 16px; }
            .quota-display { grid-template-columns: repeat(2, auto); }
            .header-content { gap: 8px; }
            .header-controls { gap: 6px; }
            .header-controls .upload-mode-switch > span:first-child { display: none; }
        }

        @media (min-width: 769px) and (max-width: 1000px) {
            .quota-item { font-size: 10px; }
            .header-controls .user-name { max-width: 48px; }
            .header-controls .upload-mode-switch .icon-svg { display: none; }
        }

        @media (min-width: 769px) and (max-width: 900px) {
            .logo { flex: 0 0 auto; }
            .logo > span,
            .header-controls .user-name { display: none; }
            .header-content { gap: 6px; }
            .header-controls { gap: 4px; }
            .header-controls .upload-mode-switch,
            .header-controls .status-badge { padding: 6px; }
            .header-controls .upload-mode-switch,
            .header-controls .radio-item { gap: 4px; }
            .header-controls .user-trigger { padding: 6px; gap: 4px; }
            .header-controls .nb-inline,
            .header-controls .cs-inline { width: 32px; height: 32px; }
        }

        /* ===== 移动端适配 ===== */
        @media (max-width: 768px) {
            /* 顶部导航栏：两行堆叠 */
            .header-content {
                flex-direction: column !important;
                align-items: stretch !important;
                gap: 8px !important;
                padding: 10px 12px !important;
                max-width: 100% !important;
            }
            .header-controls {
                flex-wrap: wrap !important;
                gap: 6px !important;
                justify-content: flex-end;
            }
            .header-controls > * {
                font-size: 13px !important;
            }

            .quota-display {
                margin-left: 0;
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .quota-item {
                min-width: 0;
                font-size: 11px;
            }

            /* 主内容区收紧 */
            .main-content {
                padding: 12px !important;
                max-width: 100% !important;
            }

            /* 统计卡片：两列网格而非自适应（200px 在手机上太挤） */
            .stats-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 10px !important;
            }
            .stat-card {
                padding: 14px 10px !important;
            }
            .stat-value {
                font-size: 20px !important;
            }
            .stat-label {
                font-size: 11px !important;
            }

            /* 商品表格：横向滚动而非压缩 */
            .product-table-wrapper,
            .table-wrapper {
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch;
            }
            .product-table {
                min-width: 720px;
            }

            /* 操作栏按钮换行 */
            .toolbar,
            .action-bar,
            .filter-bar {
                flex-wrap: wrap !important;
                gap: 8px !important;
            }
            .toolbar > *,
            .action-bar > * {
                font-size: 13px !important;
            }

            /* 弹窗 */
            .modal-content,
            .dialog-content {
                width: calc(100vw - 24px) !important;
                max-width: calc(100vw - 24px) !important;
                margin: 12px auto !important;
            }

            /* 图片缩略图缩小 */
            .table-product-image,
            .product-thumbnail-img {
                max-width: 60px !important;
                max-height: 60px !important;
            }
        }

        /* 超窄屏：单列统计卡 */
        @media (max-width: 380px) {
            .stats-grid {
                grid-template-columns: 1fr !important;
            }
            .quota-display {
                grid-template-columns: minmax(0, 1fr);
            }
        }

        /* ===== 移动端针对性修复（基于实际截图）===== */
        @media (max-width: 768px) {
            /* 悬浮"返回顶部"按钮：缩小、移到右下角更安全位置、提高 z-index */
            .refresh-btn {
                width: 40px !important;
                height: 40px !important;
                font-size: 10px !important;
                bottom: 16px !important;
                right: 12px !important;
                z-index: 999 !important;
            }

            /* 上传模式切换条：减小内边距、字号；允许换行；radio 不要被裁切 */
            .upload-mode-switch {
                padding: 6px 10px !important;
                font-size: 12px !important;
                gap: 6px !important;
                flex-wrap: wrap !important;
            }
            .upload-mode-switch input[type="radio"] {
                width: 14px !important;
                height: 14px !important;
                font-size: 14px !important;
                min-height: auto !important;
            }
            .upload-mode-switch label {
                display: inline-flex;
                align-items: center;
                gap: 4px;
                font-size: 12px !important;
            }
            .upload-mode-switch .icon-svg {
                width: 12px !important;
                height: 12px !important;
            }

            /* tab 容器：横向滚动而非挤压 */
            .tabs-container {
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch;
                white-space: nowrap;
                padding-bottom: 4px;
                margin-bottom: 12px !important;
            }
            .tabs-container::-webkit-scrollbar { display: none; }
            .tab-button {
                padding: 8px 14px !important;
                font-size: 13px !important;
                margin-right: 4px !important;
                flex-shrink: 0;
                display: inline-flex !important;
                align-items: center;
                min-height: 36px !important;
            }
            .tab-button .icon-svg {
                width: 14px !important;
                height: 14px !important;
            }

            /* 顶部 logo 行 */
            .header-content > div:first-child,
            .header-content .header-title {
                font-size: 14px !important;
            }

            /* 检查中等小按钮 */
            .status-badge {
                font-size: 11px !important;
                padding: 4px 8px !important;
            }
        }

/* 默认店铺：按平台分组，组内列表独立滚动。 */
.default-shop-setting {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: start;
    gap: 10px 0;
}

.default-shop-setting .default-shop-groups {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    align-items: start;
    gap: 12px;
    min-width: 0;
    max-height: 340px;
    overflow-y: auto;
}

.default-shop-group {
    min-width: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.default-shop-group-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    cursor: pointer;
    list-style: none;
}

.default-shop-group-heading::-webkit-details-marker { display: none; }
.default-shop-group-heading::before { content: '▸'; flex-shrink: 0; }
.default-shop-group[open] > .default-shop-group-heading::before { transform: rotate(90deg); }
.default-shop-platform { font-weight: 600; overflow-wrap: anywhere; }
.default-shop-count { margin-left: auto; color: #64748b; font-size: 12px; white-space: nowrap; }

.default-shop-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 4px;
    padding: 8px;
    max-height: 180px;
    overflow-y: auto;
}

.default-shop-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 6px;
    border-radius: 4px;
    color: #334155;
    font-size: 13px;
    line-height: 20px;
    cursor: pointer;
}

.default-shop-option:hover { background: #eff6ff; }
.default-shop-option > input { width: 16px; height: 16px; margin: 2px 0; flex-shrink: 0; accent-color: #3b82f6; }
.default-shop-option > span { min-width: 0; overflow-wrap: anywhere; }
.default-shop-group-heading:focus-visible,
.default-shop-option:focus-within { outline: 2px solid #3b82f6; outline-offset: -2px; }

@media (max-width: 768px) {
    .default-shop-setting .default-shop-groups { grid-column: 1 / -1; }
}
