/* ========== Dark Theme Global ========== */
.dark-body {
    background: #0f0f17;
    color: #d1d5db;
}

/* Navbar */
.dark-navbar {
    background: #1a1a28;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dropdown menus */
.dark-dropdown {
    background: #1e1e2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tab bar */
.dark-tabbar {
    background: #1e1e2e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dark-tab-item {
    user-select: none;
    white-space: nowrap;
    color: #6b7280;
    transition: all 0.15s;
    border-bottom: 2px solid transparent;
}
.dark-tab-item:hover {
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.03);
}
.dark-tab-item.active {
    color: #fff;
    font-weight: 600;
    border-bottom-color: #6366f1;
}
.dark-tab-action {
    color: #4b5563;
    font-size: 13px;
    line-height: 1;
    transition: color 0.15s;
    opacity: 0;
}
.dark-tab-item:hover .dark-tab-action,
.dark-tab-item.active .dark-tab-action {
    opacity: 1;
}
.dark-tab-action:hover {
    color: #818cf8;
}
.dark-tab-close {
    color: #4b5563;
    transition: color 0.15s;
    opacity: 0;
}
.dark-tab-item:hover .dark-tab-close,
.dark-tab-item.active .dark-tab-close {
    opacity: 1;
}
.dark-tab-close:hover {
    color: #9ca3af;
}

/* Content area */
.dark-content {
    background: #12121a;
}

/* Cards */
.dark-card {
    background: #1a1a28;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Project list items */
.dark-project-item {
    transition: background 0.15s;
}
.dark-project-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Status badges */
.dark-badge-yellow {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border: none;
}
.dark-badge-green {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: none;
}
.dark-badge-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: none;
}

/* Modal */
.dark-modal {
    background: #1e1e2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d1d5db;
}

/* Input fields */
.dark-input {
    background: #12121a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #d1d5db !important;
}
.dark-input::placeholder {
    color: #4b5563 !important;
}

/* Dark table */
.dark-table {
    background: #1a1a28;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}
.dark-table table {
    width: 100%;
}
.dark-table thead th {
    background: rgba(255, 255, 255, 0.03);
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dark-table tbody td {
    color: #9ca3af;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.dark-table tbody tr:last-child td {
    border-bottom: none;
}
.dark-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Dark filter bar */
.dark-filter-bar {
    background: #1a1a28;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
}

/* Dark select/input for admin */
.dark-select {
    background: #12121a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #d1d5db !important;
}

/* Scrollbar */
.dark-content::-webkit-scrollbar,
.dark-sidebar::-webkit-scrollbar {
    width: 6px;
}
.dark-content::-webkit-scrollbar-track,
.dark-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.dark-content::-webkit-scrollbar-thumb,
.dark-sidebar::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 3px;
}
.dark-content::-webkit-scrollbar-thumb:hover,
.dark-sidebar::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* ========== Image Grid ========== */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.image-item {
    border-radius: 12px;
    background: #1e1e2e;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}
.image-item .original-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #12121a;
}
.image-item .original-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-replace-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
}
.original-image:hover .image-replace-overlay {
    opacity: 1;
}
.generated-image {
    margin-top: 6px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #12121a;
    padding: 4px;
}
.generated-image img {
    width: 100%;
    border-radius: 6px;
}
.generated-image p {
    margin: 0 0 3px 0;
    font-size: 10px;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}
.image-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1e2e;
    color: #d1d5db;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    margin-bottom: 5px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.image-item:hover .image-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ========== Product Info Panel ========== */
.product-info-panel { display: none; }
.product-info-panel.visible { display: block; }
.info-panel-body { display: none; }
.info-panel-body.expanded { display: block; }
.info-panel-header.expanded .arrow-icon { transform: rotate(90deg); }
.info-field .char-count { font-size: 11px; color: #6b7280; }
.info-field .char-count.over-limit { color: #ef4444; font-weight: 600; }
.field-loading {
    opacity: 0.5;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.info-status { display: none; }
.info-status.loading-status { display: block; }
.info-status.success-status { display: block; }
.info-status.error-status { display: block; }
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.7s linear infinite;
    margin-left: 6px;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== Dark Sidebar ========== */
.dark-sidebar {
    background: linear-gradient(180deg, #1e1e2e 0%, #16161f 100%);
    transition: width 0.2s ease;
    border-right: none;
}
.dark-sidebar.collapsed {
    width: 52px;
}
.dark-sidebar.collapsed .sidebar-content {
    display: none;
}
.dark-sidebar.collapsed .sidebar-collapsed-icons {
    display: flex;
}

/* Section title with purple bar */
.ds-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 6px;
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}
.ds-section-bar {
    width: 3px;
    height: 12px;
    background: #6366f1;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Nav item */
.ds-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    margin: 2px 4px;
    border-radius: 8px;
    font-size: 13px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    text-decoration: none;
}
.ds-nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #d1d5db;
}
.ds-nav-item.active {
    border-left-color: #6366f1;
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
}

/* Avatar (platform initials) */
.ds-avatar {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

/* Badge (project count) */
.ds-badge {
    background: #6366f1;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.5;
}

/* Nav icon (admin items) */
.ds-nav-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    flex-shrink: 0;
}
.ds-nav-item.active .ds-nav-icon {
    opacity: 1;
}

/* Collapsed icons */
.sidebar-collapsed-icons {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 8px;
}
.ds-collapsed-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.ds-collapsed-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}
.ds-collapsed-btn.active {
    background: rgba(99, 102, 241, 0.15);
}
.ds-collapsed-btn.active .ds-avatar-sm {
    box-shadow: 0 0 0 2px #6366f1;
}
.ds-collapsed-btn.active svg {
    color: #a5b4fc;
}

/* Small avatar for collapsed state */
.ds-avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

/* Toggle button (dark theme) */
.sidebar-toggle-dark {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    border: none;
    background: none;
    padding: 0;
}
.sidebar-toggle-dark:hover {
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.06);
}

/* ========== Platform Panel (hidden by default, shown via JS) ========== */
.platform-panel { display: none; }

/* ========== Admin Panel (hidden by default, shown via JS) ========== */
.admin-panel { display: none; }

/* ========== Workspace Panel (hidden by default, shown via JS) ========== */
.workspace-panel { display: none; }

/* ========== DaisyUI Dark Overrides ========== */
/* Override DaisyUI's dark theme colors for consistency */
[data-theme="dark"] {
    --b1: 15 15 23;
    --b2: 26 26 40;
    --b3: 30 30 46;
    --bc: 209 213 219;
    --p: 99 102 241;
    --pc: 255 255 255;
    --s: 124 58 237;
    --sc: 255 255 255;
    --n: 30 30 46;
    --nc: 209 213 219;
}

/* Override DaisyUI component styles for admin pages */
[data-theme="dark"] .table {
    --tw-bg-opacity: 0;
}
[data-theme="dark"] .table thead th {
    background: rgba(255, 255, 255, 0.03);
    color: #6b7280;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .table tbody td {
    border-bottom-color: rgba(255, 255, 255, 0.03);
}
[data-theme="dark"] .table tbody tr:hover {
    --tw-bg-opacity: 0.02;
}
[data-theme="dark"] .input,
[data-theme="dark"] .select,
[data-theme="dark"] .textarea {
    background-color: #12121a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
}
[data-theme="dark"] .input::placeholder,
[data-theme="dark"] .textarea::placeholder {
    color: #4b5563;
}
[data-theme="dark"] .input:focus,
[data-theme="dark"] .select:focus,
[data-theme="dark"] .textarea:focus {
    border-color: rgba(99, 102, 241, 0.5);
    outline: none;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
}
[data-theme="dark"] .btn-primary {
    background-color: #6366f1;
    border-color: #6366f1;
    color: #fff;
}
[data-theme="dark"] .btn-primary:hover {
    background-color: #818cf8;
    border-color: #818cf8;
}
[data-theme="dark"] .btn-ghost {
    color: #9ca3af;
}
[data-theme="dark"] .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
}
[data-theme="dark"] .modal-box {
    background: #1e1e2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d1d5db;
}
[data-theme="dark"] .card {
    background: #1a1a28;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .dropdown-content {
    background: #1e1e2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .menu li a {
    color: #9ca3af;
}
[data-theme="dark"] .menu li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
}
[data-theme="dark"] .badge-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #9ca3af;
    border: none;
}
[data-theme="dark"] .badge-success {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: none;
}
[data-theme="dark"] .badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: none;
}
[data-theme="dark"] .badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: none;
}
[data-theme="dark"] .badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: none;
}
[data-theme="dark"] .badge-primary {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: none;
}
[data-theme="dark"] .alert {
    border: 1px solid rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .alert-info {
    background: rgba(99, 102, 241, 0.08);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.15);
}
[data-theme="dark"] .alert-success {
    background: rgba(99, 102, 241, 0.08);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.15);
}
[data-theme="dark"] .label-text {
    color: #9ca3af;
}
[data-theme="dark"] .label-text-alt {
    color: #6b7280;
}
[data-theme="dark"] .join .btn {
    border-color: rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    background: #1a1a28;
}
[data-theme="dark"] .join .btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
}
[data-theme="dark"] .join .btn-active,
[data-theme="dark"] .join .btn.btn-active {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}
[data-theme="dark"] .bg-base-100 {
    background-color: #1a1a28;
}
[data-theme="dark"] .bg-base-200 {
    background-color: #12121a;
}
[data-theme="dark"] .bg-base-200\/40 {
    background-color: rgba(18, 18, 26, 0.4);
}
[data-theme="dark"] .border-base-200,
[data-theme="dark"] .border-base-300 {
    border-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .divide-base-200 > :not([hidden]) ~ :not([hidden]) {
    border-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .bg-neutral {
    background-color: #6366f1;
}
[data-theme="dark"] .text-neutral-content {
    color: #fff;
}
[data-theme="dark"] .checkbox {
    border-color: rgba(255, 255, 255, 0.15);
}
[data-theme="dark"] .checkbox:checked {
    --chkbg: #6366f1;
    --chkfg: #fff;
    border-color: #6366f1;
}
/* 权限矩阵表格样式 */
[data-theme="dark"] .perm-table td,
[data-theme="dark"] .perm-table th {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .perm-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}
[data-theme="dark"] .perm-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Workspace page specific overrides */
[data-theme="dark"] .info-panel-header {
    background: rgba(255, 255, 255, 0.02);
}
[data-theme="dark"] .info-panel-header:hover {
    background: rgba(255, 255, 255, 0.04);
}
[data-theme="dark"] .info-panel-body {
    border-top-color: rgba(255, 255, 255, 0.05);
}

/* ========== Amazon 选品模块 ========== */
.sel-container { min-height: 0; position: relative; }

/* --- 侧边栏 --- */
.sel-sidebar {
    position: relative;
    background: #111118 !important;
    border-right: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}
.sel-sidebar-header {
    padding: 14px 14px 0;
    flex-shrink: 0;
}

/* 侧边栏标题行 */
.sel-header-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.sel-header-title {
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
}
.sel-header-btns {
    display: flex !important;
    align-items: center;
    gap: 6px;
}
.sel-header-btn {
    font-size: 11px;
    color: #6b7280;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.sel-header-btn:hover { color: #a1a1aa; background: rgba(255,255,255,0.04); }
.sel-header-btn.sel-sync-btn {
    color: #a78bfa;
}
.sel-header-btn.sel-sync-btn:hover { color: #c4b5fd; background: rgba(124,58,237,0.1); }
.sel-header-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* 搜索框 */
.sel-search-wrap { position: relative; margin-bottom: 8px; }
.sel-search-icon {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    width: 13px !important; height: 13px !important; color: #52525b; pointer-events: none;
}
.sel-search-input {
    width: 100%; padding: 7px 10px 7px 30px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px; color: #d1d5db; font-size: 12px; outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.sel-search-input::placeholder { color: #4b5563; }
.sel-search-input:focus {
    border-color: rgba(124,58,237,0.5); background: rgba(255,255,255,0.06);
}

/* --- 树容器滚动条 --- */
.sel-tree-wrap {
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent;
    padding: 4px 0;
}
.sel-tree-wrap::-webkit-scrollbar { width: 4px; }
.sel-tree-wrap::-webkit-scrollbar-track { background: transparent; }
.sel-tree-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* --- 树节点 --- */
.sel-node {
    display: flex !important;
    align-items: center !important;
    height: 34px;
    padding-right: 10px;
    cursor: pointer;
    transition: background 0.15s;
    overflow: hidden;
    position: relative;
}
.sel-node:hover { background: rgba(255,255,255,0.03); }
.sel-node.selected {
    background: rgba(124,58,237,0.12);
}
.sel-node.selected .sel-en { color: #c4b5fd; }

/* 箭头按钮 */
.sel-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    font-size: 8px;
    color: #7c7c8a;
    transition: transform 0.2s ease, color 0.15s, background 0.15s;
    cursor: pointer;
    user-select: none;
    margin-right: 8px;
}
.sel-arrow:hover { color: #a1a1aa; background: rgba(255,255,255,0.1); }
.sel-arrow.open { transform: rotate(90deg); color: #a78bfa; }
.sel-arrow-ph { width: 18px; height: 18px; flex-shrink: 0; margin-right: 8px; }

/* 文字区域 */
.sel-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.sel-en {
    font-size: 13px;
    color: #a1a1aa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 34px;
}

/* 子节点数量 */
.sel-count {
    font-size: 10px;
    color: #52525b;
    flex-shrink: 0;
    margin-left: 6px;
}

/* --- 浮动 tooltip --- */
.sel-tooltip {
    position: fixed;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 5px;
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* --- 分隔线 --- */
.sel-divider {
    width: 1px;
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
}

/* --- 右侧主区域 --- */
.sel-main {
    background: #0a0a0f;
}

/* --- 右侧信息卡片 --- */
.sel-info-card { padding-top: 10px; }
.sel-info-name { font-size: 18px; font-weight: 600; color: #e5e7eb; }
.sel-info-name-cn { font-size: 13px; color: #52525b; margin-top: 2px; }
.sel-info-tag {
    display: inline-flex; align-items: center; padding: 3px 12px;
    border-radius: 20px; font-size: 11px; font-weight: 500; transition: all 0.15s;
}
.sel-info-tag.available {
    background: rgba(124,58,237,0.15); color: #a78bfa; cursor: pointer;
}
.sel-info-tag.available:hover { background: rgba(124,58,237,0.25); }
.sel-info-tag.active {
    background: rgba(124,58,237,0.35); color: #c4b5fd; cursor: pointer;
    border: 1px solid rgba(124,58,237,0.6); box-shadow: 0 0 8px rgba(124,58,237,0.2);
}
.sel-info-tag.unavailable { background: rgba(255,255,255,0.04); color: #52525b; }

/* --- 面包屑 --- */
.sel-breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
    font-size: 12px; color: #6b7280; min-height: 20px;
}
.sel-breadcrumb-item { color: #6b7280; cursor: pointer; transition: color 0.15s; }
.sel-breadcrumb-item:hover { color: #c4b5fd; }
.sel-breadcrumb-sep { color: #4b5563; font-size: 10px; }
.sel-breadcrumb-current { color: #d1d5db; font-weight: 500; }

/* --- 同步状态 --- */
.sel-sync-status {
    font-size: 11px; color: #6b7280; text-align: center; padding: 4px 0 8px;
}

/* 商品表格 */
.sel-product-table {
    border-collapse: collapse;
    font-size: 13px;
}
.sel-product-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #1a1a28;
}
.sel-product-table th {
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}
.sel-th-sortable {
    cursor: pointer;
    user-select: none;
}
.sel-th-sortable:hover {
    color: #d1d5db;
}
.sel-product-table td {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #d1d5db;
    vertical-align: middle;
}
.sel-product-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}
.sel-td-title {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 商品图片悬浮大图 */
.sel-img-wrap {
    position: relative;
    display: inline-block;
}
.sel-img-preview {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 4px;
    background: #1e1e2e;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    pointer-events: none;
}
.sel-img-preview img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 4px;
}
.sel-img-wrap:hover .sel-img-preview {
    display: block;
}

