/* ==================== 基础布局 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f7fa; color: #333; }

.app { display: flex; height: 100vh; }

/* ==================== 侧边栏 ==================== */
.sidebar {
    width: 220px; background: #fff; border-right: 1px solid #e8e8e8;
    display: flex; flex-direction: column; flex-shrink: 0;
}
.sidebar-header {
    padding: 20px 16px; border-bottom: 1px solid #f0f0f0;
}
.brand { display: flex; align-items: center; }
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-title { font-size: 16px; font-weight: 700; color: #303133; }
.brand-sub { font-size: 11px; color: #b0b3b8; letter-spacing: 0.5px; }

.nav-bar { display: flex; flex-direction: column; padding: 8px 0; }
.nav-btn {
    display: block; width: 100%; padding: 12px 24px; border: none;
    background: transparent; font-size: 15px; color: #666; text-align: left;
    cursor: pointer; transition: all 0.2s; border-left: 3px solid transparent;
}
.nav-btn:hover { background: #f0f7ff; color: #409eff; }
.nav-btn.active { background: #ecf5ff; color: #409eff; border-left-color: #409eff; font-weight: 600; }

/* ==================== 主内容区 ==================== */
.main { flex: 1; padding: 24px; overflow-y: auto; }

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.search-input {
    width: 300px; padding: 8px 12px; border: 1px solid #dcdfe6; border-radius: 4px;
    font-size: 14px; outline: none; transition: border-color 0.2s;
}
.search-input:focus { border-color: #409eff; }

.btn { padding: 8px 20px; border: none; border-radius: 4px; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: #409eff; color: #fff; }
.btn-primary:hover { background: #66b1ff; }
.btn-success { background: #67c23a; color: #fff; }
.btn-success:hover { background: #85ce61; }
.btn-cancel { background: #f5f5f5; color: #666; border: 1px solid #dcdfe6; }
.btn-cancel:hover { background: #e8e8e8; }
.btn-danger { background: #f56c6c; color: #fff; }
.btn-danger:hover { background: #f78989; }
.btn-danger:disabled { background: #fab6b6; cursor: not-allowed; }

.btn-sm { padding: 5px 12px; font-size: 13px; border: none; border-radius: 4px; cursor: pointer; transition: all 0.2s; }

/* ==================== 表格 ==================== */
.table-wrapper { background: #fff; border-radius: 4px; border: 1px solid #e8e8e8; overflow: auto; }
#dataTable { width: 100%; border-collapse: collapse; font-size: 14px; }
#dataTable th {
    background: #fafafa; padding: 12px 16px; text-align: left; font-weight: 600;
    color: #555; border-bottom: 1px solid #e8e8e8; white-space: nowrap;
}
#dataTable th:last-child,
#dataTable td:last-child { white-space: nowrap; }

#dataTable td {
    padding: 10px 16px; border-bottom: 1px solid #f0f0f0; color: #333;
}
#dataTable tbody tr:hover { background: #f5f7fa; }
.empty-tip { text-align: center; color: #bbb; padding: 40px 0 !important; }

/* ==================== 操作按钮 ==================== */
/*.btn-action { padding: 3px 10px; border: none; border-radius: 3px; font-size: 12px; cursor: pointer; margin: 0 2px; }*/
.btn-action { padding: 3px 10px; border: none; border-radius: 3px; font-size: 12px; cursor: pointer; margin: 0 2px; display: inline-block; white-space: nowrap; }

.btn-edit { background: #409eff; color: #fff; }
.btn-edit:hover { background: #66b1ff; }
.btn-del { background: #f56c6c; color: #fff; }
.btn-del:hover { background: #f89898; }

/* ==================== 分页 ==================== */
.pagination-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 16px; padding: 0 4px;
}
.total-info { font-size: 13px; color: #999; white-space: nowrap; }
.pagination { display: flex; align-items: center; gap: 4px; }
.pagination button {
    padding: 6px 12px; border: 1px solid #dcdfe6; background: #fff; color: #333;
    border-radius: 4px; cursor: pointer; font-size: 13px; transition: all 0.2s;
}
.pagination button:hover { color: #409eff; border-color: #409eff; }
.pagination button.active { background: #409eff; color: #fff; border-color: #409eff; }
.pagination button:disabled { color: #ccc; cursor: not-allowed; }
.page-size-selector {
    font-size: 13px; color: #666; white-space: nowrap;
    display: flex; align-items: center; gap: 4px;
}
.page-size-selector select {
    padding: 4px 8px; border: 1px solid #dcdfe6; border-radius: 4px;
    font-size: 13px; outline: none; cursor: pointer;
}
.page-size-selector select:focus { border-color: #409eff; }
.page-ellipsis { padding: 6px 4px; color: #999; font-size: 13px; user-select: none; }

/* ==================== 弹窗 ==================== */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 1000;
    justify-content: center; align-items: center;
}
.modal-dialog {
    background: #fff; border-radius: 8px; width: 520px; max-height: 70vh;
    display: flex; flex-direction: column; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid #e8e8e8; font-size: 16px; font-weight: 600;
}
.modal-close {
    background: none; border: none; font-size: 22px; color: #999; cursor: pointer;
}
.modal-close:hover { color: #333; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 12px 20px; border-top: 1px solid #e8e8e8; text-align: right; display: flex; gap: 8px; justify-content: flex-end; }

/* ==================== 表单 ==================== */
.form-row { display: flex; align-items: center; margin-bottom: 12px; }
.form-label { width: 100px; font-size: 14px; color: #555; flex-shrink: 0; text-align: right; margin-right: 10px; }
.form-input {
    flex: 1; padding: 8px 12px; border: 1px solid #dcdfe6; border-radius: 4px;
    font-size: 14px; outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: #409eff; }
.form-input:disabled { background: #f5f5f5; color: #999; cursor: not-allowed; }

/* ==================== 字段映射 ==================== */
.mapping-panel {
    background: #fff; border-radius: 8px; border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); margin-bottom: 16px; overflow: hidden;
}
.mapping-panel-title {
    font-size: 15px; font-weight: 600; color: #303133;
    padding: 16px 20px; border-bottom: 1px solid #f0f0f0;
}
.mapping-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}
.mapping-panel-header .mapping-panel-title { border-bottom: none; }
.mapping-panel-actions { display: flex; align-items: center; gap: 8px; padding: 0 20px; }

.mapping-config-row {
    display: flex; align-items: flex-end; gap: 32px; padding: 20px; flex-wrap: wrap;
}
.mapping-field { display: flex; flex-direction: column; gap: 6px; }
.mapping-label { font-size: 13px; color: #606266; font-weight: 500; }
.mapping-select {
    padding: 8px 12px; border: 1px solid #dcdfe6; border-radius: 4px;
    font-size: 14px; outline: none; min-width: 220px; background: #fff;
    transition: border-color 0.2s;
}
.mapping-select:focus { border-color: #409eff; }
.mapping-msg { font-size: 13px; }
.mapping-success { color: #67c23a; }
.mapping-error { color: #f56c6c; }
.mapping-col { font-weight: 600; color: #555; }

.mapping-table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.mapping-table th {
    background: #fafafa; padding: 12px 20px; text-align: left; font-weight: 600;
    color: #555; border-bottom: 1px solid #e8e8e8; white-space: nowrap;
}
.mapping-table td { padding: 10px 20px; border-bottom: 1px solid #f0f0f0; }
.mapping-table tbody tr { transition: background 0.15s; }
.mapping-table tbody tr:hover { background: #f5f9ff; }
.mapping-table tbody tr:last-child td { border-bottom: none; }

.mapping-input {
    width: 100%; padding: 7px 10px; border: 1px solid #dcdfe6; border-radius: 4px;
    font-size: 14px; outline: none; transition: border-color 0.2s; background: #fff;
    text-align: left;
}
.mapping-input:focus { border-color: #409eff; }
.mapping-name-input {
    width: 220px; padding: 8px 12px; border: 1px solid #dcdfe6; border-radius: 4px;
    font-size: 14px; outline: none; transition: border-color 0.2s;
}
.mapping-name-input:focus { border-color: #409eff; }
.mapping-del-btn {
    padding: 5px 12px; background: #f56c6c; color: #fff; border: none;
    border-radius: 4px; font-size: 12px; cursor: pointer; transition: background 0.2s;
}
.mapping-del-btn:hover { background: #f89898; }

.mapping-footer { padding: 12px 20px; border-top: 1px solid #f0f0f0; min-height: 20px; }

.btn-warning { background: #e6a23c; color: #fff; }
.btn-warning:hover { background: #ebb563; }

/* ==================== 加载遮罩 ==================== */
.loading-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.7); z-index: 2000;
    justify-content: center; align-items: center;
}
.loading-spinner { text-align: center; }
.spinner {
    width: 40px; height: 40px; margin: 0 auto;
    border: 4px solid #e8e8e8; border-top-color: #409eff; border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== Toast 提示 ==================== */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 400px;
    text-align: center;
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast-success {
    background: #67c23a;
}

.toast-error {
    background: #f56c6c;
}

.toast-warning {
    background: #e6a23c;
}

.toast-info {
    background: #409eff;
}

/* ==================== 确认对话框 ==================== */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.confirm-dialog {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.confirm-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.confirm-message {
    font-size: 16px;
    color: #333;
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-confirm {
    padding: 10px 24px;
    background: #f56c6c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-confirm:hover {
    background: #f78989;
}

.btn-cancel {
    padding: 10px 24px;
    background: #f0f0f0;
    color: #666;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #e8e8e8;
    border-color: #c0c0c0;
}

/* ==================== 登录遮罩 ==================== */
.login-overlay {
    display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 3000; justify-content: center; align-items: center;
}
.login-box {
    background: #fff; border-radius: 12px; padding: 40px; width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); text-align: center;
}
.login-box h2 { font-size: 22px; color: #333; margin-bottom: 28px; font-weight: 600; }
.login-input {
    width: 100%; padding: 12px 16px; border: 1px solid #dcdfe6; border-radius: 6px;
    font-size: 15px; outline: none; margin-bottom: 16px; transition: border-color 0.2s;
}
.login-input:focus { border-color: #409eff; }
.login-msg { color: #f56c6c; font-size: 13px; min-height: 20px; margin-bottom: 4px; }
.login-btn {
    width: 100%; padding: 12px; background: #409eff; color: #fff; border: none;
    border-radius: 6px; font-size: 16px; cursor: pointer; transition: background 0.2s;
}
.login-btn:hover { background: #66b1ff; }
.login-btn:disabled { background: #a0cfff; cursor: not-allowed; }

/* ==================== 用户信息 & 退出 ==================== */
.user-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    margin-top: 16px;
}
.user-card-row {
    display: flex; align-items: center; gap: 8px;
}
.user-card-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.user-card-name {
    font-size: 12px; font-weight: 600; color: #303133;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 140px;
}
.sidebar-footer { padding: 12px 16px 44px; border-top: 1px solid #f0f0f0; margin-top: auto; }
.logout-btn {
    width: 100%; padding: 8px; background: #f5f5f5; color: #666; border: 1px solid #e8e8e8;
    border-radius: 4px; font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.logout-btn:hover { background: #fef0f0; color: #f56c6c; border-color: #f56c6c; }

/* ==================== 导入结果弹窗 ==================== */
.import-result-dialog {
    background: #fff;
    border-radius: 8px;
    width: 560px;
    max-width: 92vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
}
.import-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}
.import-result-summary {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.import-stat {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.import-stat.success { background: #67c23a; }
.import-stat.skip { background: #e6a23c; }
.import-stat.fail { background: #f56c6c; }
.import-result-body {
    padding: 0 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.import-result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.import-result-table th,
.import-result-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}
.import-result-table th {
    background: #fafafa;
    color: #555;
    font-weight: 600;
    position: sticky;
    top: 0;
}
.import-result-table td.row-no {
    width: 100px;
    color: #909399;
    white-space: nowrap;
}
.import-result-table td.reason {
    color: #f56c6c;
    word-break: break-all;
}
.import-result-footer {
    padding: 12px 20px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}
.import-result-section { margin-bottom: 16px; }
.import-result-section:last-child { margin-bottom: 0; }
.import-result-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}
.import-result-table td.skip-val { color: #333; word-break: break-all; }
.import-result-table td.skip-type { color: #909399; white-space: nowrap; }

/* ==================== 编码生成 ==================== */
.gen-code-container {
    max-width: 760px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 28px 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.gen-code-title {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ebeef5;
}
.gen-code-form { display: flex; flex-direction: column; gap: 20px; }
.gen-code-row { display: flex; flex-direction: column; gap: 8px; }
.gen-code-actions {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.gen-code-actions .btn { flex-shrink: 0; }
.gen-code-label { font-size: 14px; color: #606266; font-weight: 500; }
.gen-code-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.gen-code-input:focus { border-color: #409eff; }
.gen-code-textarea {
    width: 100%;
    min-height: 200px;
    padding: 10px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    line-height: 1.6;
    transition: border-color 0.2s;
}
.gen-code-textarea:focus { border-color: #409eff; }
.gen-code-msg { font-size: 13px; margin-left: 10px; }

/* ==================== 图片路径单元格（省略号 + 复制） ==================== */
.cell-path {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 460px;
}
/* 商品图（oss_img）页面：无编辑按钮，列整体更紧凑，缩窄路径展示宽度 */
.cell-path--narrow {
    max-width: 240px;
}
/* 商品图页 img_path：仅缩略图 + 复制按钮，宽度自适应，避免长路径挤占窄列 */
.cell-path--thumb {
    max-width: none;
}
.cell-path--narrow .cell-path-text {
    max-width: 160px;
}
.cell-path-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 340px;
    vertical-align: middle;
}
.btn-copy {
    flex-shrink: 0;
    padding: 2px 8px;
    border: 1px solid #dcdfe6;
    background: #fff;
    color: #409eff;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-copy:hover { background: #ecf5ff; border-color: #409eff; }

/* ==================== 商品图缩略图与预览 ==================== */
.cell-thumb {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fafafa;
    overflow: hidden;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cell-thumb:hover { border-color: #409eff; box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.15); }
.cell-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 加载失败（地址失效、私有读等）：隐藏占位图片并显示"无图" */
.cell-thumb.is-broken img { display: none; }
.cell-thumb.is-broken::after { content: '无图'; font-size: 12px; color: #c0c4cc; }

.img-preview-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
}
.img-preview-box {
    background: #fff; border-radius: 8px;
    max-width: 92vw; max-height: 92vh;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.img-preview-header {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid #e8e8e8;
    font-size: 14px; font-weight: 600; color: #333; flex-shrink: 0;
}
.img-preview-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70vw; }
.img-preview-body {
    padding: 16px; overflow: auto; background: #fafafa;
    display: flex; justify-content: center; align-items: center;
}
.img-preview-body img { max-width: 86vw; max-height: 70vh; display: block; }
.img-preview-footer { padding: 10px 16px; border-top: 1px solid #e8e8e8; text-align: right; flex-shrink: 0; }
.img-preview-footer a { color: #409eff; font-size: 13px; text-decoration: none; }
.img-preview-footer a:hover { text-decoration: underline; }

/* ==================== 页面标题栏（通用） ==================== */
.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.page-header-left { display: flex; align-items: baseline; gap: 12px; }
.page-title { font-size: 20px; font-weight: 700; color: #303133; }
.page-subtitle { font-size: 13px; color: #909399; }
.page-header-right { display: flex; align-items: center; gap: 12px; }
.page-search { display: flex; align-items: center; gap: 8px; }
.page-search .search-input { width: 220px; }

#userTable { width: 100%; border-collapse: collapse; font-size: 14px; }
#userTable th {
    background: #fafafa; padding: 14px 16px; text-align: left; font-weight: 600;
    color: #555; border-bottom: 1px solid #e8e8e8; white-space: nowrap;
}
#userTable td {
    padding: 14px 16px; border-bottom: 1px solid #f0f0f0; color: #333;
    vertical-align: middle;
}
#userTable tbody tr { transition: background 0.15s; }
#userTable tbody tr:hover { background: #f5f9ff; }
#userTable tbody tr:last-child td { border-bottom: none; }

.user-cell { display: flex; align-items: center; gap: 12px; }
.user-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px; font-weight: 600; flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.user-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.user-name { font-weight: 600; color: #303133; font-size: 14px; }
.user-display { font-size: 12px; color: #909399; }

.role-badge {
    display: inline-block; padding: 3px 12px; border-radius: 12px;
    font-size: 12px; font-weight: 500; line-height: 1.6; white-space: nowrap;
}
.role-super { background: #fef0f0; color: #f56c6c; }
.role-admin { background: #ecf5ff; color: #409eff; }
.role-user  { background: #f0f9eb; color: #67c23a; }

.status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-on { color: #67c23a; }
.status-on .status-dot { background: #67c23a; }
.status-off { color: #909399; }
.status-off .status-dot { background: #c0c4cc; }

.user-lastlogin { color: #606266; font-size: 13px; }

/* ==================== 备案信息（底部） ==================== */
.icp-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    padding: 6px 0;
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid #eee;
    z-index: 99999;
}
.icp-footer-link {
    color: #909399;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.icp-footer-link:hover { color: #409eff; }
.icp-footer-sep { color: #dcdfe6; margin: 0 8px; }
.icp-footer-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}
/* 底部备案条会盖住内容底部，给主内容留出空间 */
.main { padding-bottom: 40px; }