/* ========================================
   智评生图 - 公共组件样式
   职责：业务组件结构样式 + 工具类
   依赖：theme.css（CSS 变量 + 暗色适配）
   规则：
     1. 不放 [data-theme="dark"] 暗色适配（由 theme.css 统一管理）
     2. 颜色/间距/字号尽量使用 CSS 变量，自动适配暗色
     3. 禁止在 HTML 元素上使用 style="..." 硬编码样式
   主色调：--ep-primary (#4a6cf7)
   ======================================== */

/* ========================================
   A. 布局 — Layout
   ======================================== */

/* ---- 子页面内容区（iframe 内页面） ---- */
body.page-content {
    padding: 8px;
    overflow-y: auto;
    background: var(--ep-bg-page);
    color: var(--ep-text-primary);
    transition: background var(--ep-transition-duration) var(--ep-transition-ease), color var(--ep-transition-duration) var(--ep-transition-ease);
}

/* ---- 主布局 ---- */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    transition: background var(--ep-transition-duration) var(--ep-transition-ease);
}

/* ---- 侧边栏 ---- */
.app-sidebar {
    width: var(--ep-sidebar-width);
    height: 100vh;
    background: var(--ep-bg-sidebar);
    border-right: 1px solid var(--ep-border-lighter);
    display: flex;
    flex-direction: column;
    transition: width var(--ep-transition-duration) var(--ep-transition-ease), background var(--ep-transition-duration) var(--ep-transition-ease);
    will-change: width;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 100;
}

    .app-sidebar.collapsed {
        width: var(--ep-sidebar-collapsed-width);
    }

.sidebar-header {
    height: var(--ep-navbar-height);
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--ep-border-lighter);
    flex-shrink: 0;
    gap: 10px;
    overflow: hidden;
}

    .sidebar-header .brand-icon {
        width: 32px;
        height: 32px;
        background: var(--ep-primary);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

        .sidebar-header .brand-icon svg {
            width: 20px;
            height: 20px;
            fill: #fff;
        }

    .sidebar-header .brand-text {
        font-size: var(--ep-font-size-md);
        font-weight: 600;
        color: var(--ep-text-primary);
        white-space: nowrap;
        opacity: 1;
        transition: opacity 0.2s;
    }

.app-sidebar.collapsed .brand-text {
    opacity: 0;
    width: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-section-title {
    font-size: var(--ep-font-size-xs);
    color: var(--ep-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 12px 6px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s;
}

.app-sidebar.collapsed .nav-section-title {
    opacity: 0;
    height: 0;
    padding: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--ep-radius-base);
    color: var(--ep-text-regular);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

    .nav-item svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .nav-item .nav-label {
        font-size: var(--ep-font-size-base);
        opacity: 1;
        transition: opacity 0.2s;
    }

.app-sidebar.collapsed .nav-label {
    opacity: 0;
    width: 0;
}

.app-sidebar.collapsed .nav-item::after {
    content: attr(data-menu-title);
    position: fixed;
    left: calc(var(--ep-sidebar-collapsed-width) + 8px);
    min-width: max-content;
    max-width: 180px;
    padding: 7px 10px;
    border-radius: var(--ep-radius-base);
    background: var(--ep-bg-overlay);
    border: 1px solid var(--ep-border-lighter);
    box-shadow: var(--ep-shadow-hover);
    color: var(--ep-text-primary);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(2px);
    transition: opacity 0.16s, transform 0.16s;
    z-index: 260;
}

.app-sidebar.collapsed .nav-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.nav-item:hover {
    background: var(--ep-bg-hover);
    color: var(--ep-text-primary);
}

.nav-item.active {
    background: var(--ep-bg-active);
    color: var(--ep-primary);
    font-weight: 500;
}

    .nav-item.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 60%;
        background: var(--ep-primary);
        border-radius: 2px;
    }

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--ep-border-lighter);
    flex-shrink: 0;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--ep-radius-small);
    cursor: pointer;
    color: var(--ep-text-secondary);
    transition: all 0.2s;
    margin: 0 auto;
}

    .sidebar-toggle:hover {
        background: var(--ep-bg-hover);
        color: var(--ep-text-primary);
    }

    .sidebar-toggle svg {
        width: 18px;
        height: 18px;
        transition: transform 0.3s;
    }

.app-sidebar.collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

/* ---- 主内容区 ---- */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: margin-left var(--ep-transition-duration) var(--ep-transition-ease);
    will-change: margin-left;
}

/* ---- 顶部导航栏 ---- */
.app-navbar {
    height: var(--ep-navbar-height);
    background: var(--ep-bg-navbar);
    border-bottom: 1px solid var(--ep-border-lighter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
    transition: background var(--ep-transition-duration) var(--ep-transition-ease);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    background: var(--ep-bg-card);
    color: var(--ep-text-regular);
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}

.navbar-sidebar-toggle:hover {
    background: var(--ep-bg-hover);
    border-color: var(--ep-border);
    color: var(--ep-primary);
}

.navbar-sidebar-toggle svg {
    width: 18px;
    height: 18px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--ep-font-size-base);
    color: var(--ep-text-secondary);
}

    .breadcrumb span {
        color: var(--ep-text-regular);
    }

    .breadcrumb .current {
        color: var(--ep-text-primary);
        font-weight: 500;
    }

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--ep-radius-base);
    cursor: pointer;
    color: var(--ep-text-regular);
    transition: all 0.2s;
    position: relative;
}

    .navbar-action:hover {
        background: var(--ep-bg-hover);
        color: var(--ep-text-primary);
    }

    .navbar-action svg {
        width: 20px;
        height: 20px;
    }

    .navbar-action .badge-dot,
    .navbar-action .badge-count {
        position: absolute;
        top: 6px;
        right: 6px;
    }

    .navbar-action .badge-dot {
        width: 8px;
        height: 8px;
        background: var(--ep-danger);
        border-radius: 50%;
        border: 2px solid var(--ep-bg-navbar);
    }

    .navbar-action .badge-count {
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: var(--ep-danger);
        color: #fff;
        border: 2px solid var(--ep-bg-navbar);
        align-items: center;
        justify-content: center;
        font-size: 10px;
        line-height: 12px;
        font-weight: 600;
        transform: translate(30%, -25%);
        box-sizing: border-box;
    }

.badge-count--pulse {
    animation: badge-count-pulse .32s ease;
}

@keyframes badge-count-pulse {
    0% {
        transform: translate(30%, -25%) scale(1);
    }

    45% {
        transform: translate(30%, -25%) scale(1.22);
    }

    100% {
        transform: translate(30%, -25%) scale(1);
    }
}

.download-fly-dot {
    position: fixed;
    z-index: 3000;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 999px;
    background: var(--ep-success);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--ep-success) 18%, transparent);
    pointer-events: none;
    animation: download-fly-parabola .72s cubic-bezier(.22,.72,.25,1) forwards;
}

@keyframes download-fly-parabola {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(.65);
    }

    15% {
        opacity: 1;
        transform: translate(calc(var(--download-fly-x) * .18), -42px) scale(1);
    }

    100% {
        opacity: .1;
        transform: translate(var(--download-fly-x), var(--download-fly-y)) scale(.35);
    }
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: var(--ep-radius-base);
    cursor: pointer;
    transition: background 0.2s;
}

    .user-menu:hover {
        background: var(--ep-bg-hover);
    }

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--ep-radius-circle);
    background: var(--ep-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: var(--ep-font-size-xs);
    font-weight: 600;
}

.user-name {
    font-size: var(--ep-font-size-base);
    color: var(--ep-text-primary);
    font-weight: 500;
}

/* ---- 内容区 ---- */
.app-content {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ---- 页面标题 ---- */
.page-header {
    margin-bottom: 20px;
}

    .page-header h2 {
        font-size: var(--ep-font-size-xl);
        font-weight: 600;
        color: var(--ep-text-primary);
        margin-bottom: 4px;
    }

    .page-header p {
        font-size: var(--ep-font-size-sm);
        color: var(--ep-text-secondary);
    }

/* ========================================
   B. 卡片 — Card
   ======================================== */

.card {
    background: var(--ep-bg-card);
    border-radius: var(--ep-radius-base);
    padding: 10px 12px;
    margin-bottom: 20px;
    box-shadow: var(--ep-shadow-card);
    /* border: 1px solid var(--ep-border-lighter); */
    transition: all var(--ep-transition-duration) var(--ep-transition-ease);
}

.card-title {
    font-size: var(--ep-font-size-md);
    font-weight: 600;
    color: var(--ep-text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ep-border-lighter);
}

/* card-title 在 toolbar 中的紧凑模式 */
.toolbar .card-title--compact {
    margin-bottom: 0;
    border: none;
    padding: 0;
}

/* ep-card 系列（完整卡片组件） */
.ep-card {
    background: var(--ep-bg-card);
    border-radius: var(--ep-radius-base);
    box-shadow: var(--ep-shadow-card);
    border: 1px solid var(--ep-border-lighter);
    transition: all var(--ep-transition-duration) var(--ep-transition-ease);
    overflow: hidden;
}

    .ep-card:hover {
        box-shadow: var(--ep-shadow-hover);
    }

.ep-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ep-border-lighter);
}

.ep-card__title {
    font-size: var(--ep-font-size-md);
    font-weight: 600;
    color: var(--ep-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .ep-card__title svg {
        width: 18px;
        height: 18px;
        color: var(--ep-primary);
    }

.ep-card__body {
    padding: 20px;
}

/* ========================================
   C. 搜索栏 — SearchBar
   ======================================== */

.search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 0;
}

    .search-bar .layui-form-item {
        margin-bottom: 0;
        display: inline-block;
        vertical-align: middle;
    }

        .search-bar .layui-form-item .layui-input,
        .search-bar .layui-form-item .layui-select,
        .search-bar .layui-form-item .layui-textarea {
            display: inline-block;
            vertical-align: middle;
        }

    .search-bar .layui-input {
        height: 34px;
    }

    .search-bar .layui-form-label {
        padding: 6px 10px;
        width: auto;
    }

    .search-bar .layui-btn {
        height: 34px;
        line-height: 34px;
    }

        .search-bar .layui-btn + .layui-btn {
            margin-left: 0;
        }

/* ========================================
   C2. Layui 必填校验 — Required Form
   ======================================== */
.layui-form-label.layui-form-required-label::before,
.layui-form-label.required::before {
    content: '*';
    color: var(--ep-danger, #f56c6c);
    margin-right: 4px;
    font-weight: 700;
}

.layui-form-item-error .layui-input,
.layui-form-item-error .layui-textarea,
.layui-form-item-error .layui-form-select .layui-input,
.layui-form-field-error.layui-input,
.layui-form-field-error.layui-textarea,
.layui-form-field-error .layui-input {
    border-color: var(--ep-danger, #f56c6c) !important;
    box-shadow: 0 0 0 1px rgba(245, 108, 108, 0.16);
}

    .layui-form-item-error .layui-input:focus,
    .layui-form-item-error .layui-textarea:focus,
    .layui-form-item-error .layui-form-select .layui-input:focus {
        border-color: var(--ep-danger, #f56c6c) !important;
        box-shadow: 0 0 0 2px rgba(245, 108, 108, 0.18);
    }

.layui-form-required-tip {
    min-height: 18px;
    margin-top: -10px;
    margin-bottom: -12px;
    padding-left: 110px;
    color: var(--ep-danger, #f56c6c);
    font-size: 12px;
    line-height: 18px;
    box-sizing: border-box;
}

.model-form .layui-form-required-tip,
.drawer-form .layui-form-required-tip,
.ep-drawer .layui-form-required-tip {
    margin-top: 2px;
}

.search-bar .layui-form-required-tip,
.toolbar .layui-form-required-tip {
    display: none;
}

/* ========================================
   D. 工具栏 — Toolbar
   ======================================== */

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 12px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================
   E. 状态标签 — StatusTag
   ======================================== */

.status-tag {
    display: inline-block;
    padding: 0px 4px;
    border-radius: 12px;
    font-size: 12px;
}

    .status-tag.success {
        background: var(--ep-success-light);
        color: var(--ep-success);
        border: 1px solid var(--ep-success);
    }

    .status-tag.error {
        background: var(--ep-danger-light);
        color: var(--ep-danger);
        border: 1px solid var(--ep-danger);
    }

    .status-tag.info {
        background: var(--ep-primary-light-9);
        color: var(--ep-primary);
        border: 1px solid var(--ep-primary);
    }

    .status-tag.warning {
        background: var(--ep-warning-light);
        color: var(--ep-warning);
        border: 1px solid var(--ep-warning);
    }

    .status-tag.default {
        background: var(--ep-fill-light);
        color: var(--ep-text-secondary);
        border: 1px solid var(--ep-border);
    }

/* ep-tag 系列（圆角药丸标签） */
.ep-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: var(--ep-radius-round);
    font-size: var(--ep-font-size-xs);
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
}

.ep-tag--success {
    background: var(--ep-success-light);
    color: var(--ep-success);
    border: 1px solid var(--ep-success);
}

.ep-tag--warning {
    background: var(--ep-warning-light);
    color: var(--ep-warning);
    border: 1px solid var(--ep-warning);
}

.ep-tag--danger {
    background: var(--ep-danger-light);
    color: var(--ep-danger);
    border: 1px solid var(--ep-danger);
}

.ep-tag--info {
    background: var(--ep-info-light);
    color: var(--ep-info);
    border: 1px solid var(--ep-info);
}

.ep-tag--primary {
    background: var(--ep-primary-light-9);
    color: var(--ep-primary);
    border: 1px solid var(--ep-primary);
}

.ep-tag .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ========================================
   F. 分页栏 — Pagination
   ======================================== */

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--ep-border-lighter);
}

    .pagination-bar .info {
        color: var(--ep-text-secondary);
        font-size: var(--ep-font-size-sm);
    }

    .pagination-bar .pages {
        display: flex;
        gap: 4px;
    }

        .pagination-bar .pages button {
            min-width: 32px;
            height: 32px;
            border: 1px solid var(--ep-border);
            border-radius: var(--ep-radius-small);
            background: var(--ep-fill-blank);
            cursor: pointer;
            font-size: var(--ep-font-size-sm);
            color: var(--ep-text-regular);
            transition: all 0.2s;
        }

            .pagination-bar .pages button:hover {
                border-color: var(--ep-primary);
                color: var(--ep-primary);
            }

            .pagination-bar .pages button.active {
                background: var(--ep-primary);
                color: #fff;
                border-color: var(--ep-primary);
            }

            .pagination-bar .pages button:disabled {
                opacity: 0.5;
                cursor: not-allowed;
            }

/* ep-pagination 系列 */
.ep-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 0;
    font-size: var(--ep-font-size-sm);
    color: var(--ep-text-secondary);
}

.ep-pagination__pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ep-pagination__btn {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-small);
    cursor: pointer;
    font-size: var(--ep-font-size-sm);
    color: var(--ep-text-regular);
    background: var(--ep-fill-blank);
    transition: all 0.2s;
    padding: 0 8px;
}

    .ep-pagination__btn:hover {
        color: var(--ep-primary);
        border-color: var(--ep-primary);
    }

    .ep-pagination__btn.active {
        background: var(--ep-primary);
        color: #fff;
        border-color: var(--ep-primary);
    }

/* ========================================
   G. 统计卡片 — StatCard
   ======================================== */

.stat-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 180px;
    background: var(--ep-bg-card);
    border-radius: var(--ep-radius-base);
    padding: 20px;
    box-shadow: var(--ep-shadow-card);
    border: 1px solid var(--ep-border-lighter);
    transition: all var(--ep-transition-duration) var(--ep-transition-ease);
}

    .stat-card .stat-label {
        font-size: var(--ep-font-size-sm);
        color: var(--ep-text-secondary);
        margin-bottom: 8px;
    }

    .stat-card .stat-value {
        font-size: 28px;
        font-weight: 700;
    }

    .stat-card.blue .stat-value {
        color: var(--ep-primary);
    }

    .stat-card.green .stat-value {
        color: var(--ep-success);
    }

    .stat-card.orange .stat-value {
        color: var(--ep-warning);
    }

    .stat-card.red .stat-value {
        color: var(--ep-danger);
    }

/* KPI 统计卡片 */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.kpi-card {
    background: var(--ep-bg-card);
    border-radius: var(--ep-radius-base);
    padding: 20px;
    box-shadow: var(--ep-shadow-card);
    border: 1px solid var(--ep-border-lighter);
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

    .kpi-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--ep-shadow-hover);
    }

.kpi-info {
    flex: 1;
}

.kpi-label {
    font-size: var(--ep-font-size-sm);
    color: var(--ep-text-secondary);
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--ep-text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--ep-font-size-xs);
}

    .kpi-trend.up {
        color: var(--ep-success);
    }

    .kpi-trend.down {
        color: var(--ep-danger);
    }

    .kpi-trend svg {
        width: 12px;
        height: 12px;
    }

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .kpi-icon svg {
        width: 24px;
        height: 24px;
    }

.kpi-icon--primary {
    background: var(--ep-primary-light-9);
    color: var(--ep-primary);
}

.kpi-icon--success {
    background: var(--ep-success-light);
    color: var(--ep-success);
}

.kpi-icon--warning {
    background: var(--ep-warning-light);
    color: var(--ep-warning);
}

.kpi-icon--danger {
    background: var(--ep-danger-light);
    color: var(--ep-danger);
}

/* ========================================
   H. 空状态 — EmptyState
   ======================================== */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ep-text-placeholder);
}

.layui-table .empty-state {
    padding: 34px 20px;
    background: transparent;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    color: var(--ep-text-placeholder);
    stroke: currentColor;
    fill: none;
}

.empty-state i {
    width: 48px;
    height: 48px;
    line-height: 48px;
    font-size: 42px;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ep-text-placeholder);
    opacity: .82;
}

    .empty-state i::before {
        color: currentColor;
    }

.empty-state p {
    font-size: var(--ep-font-size-base);
}

[data-theme="dark"] .empty-state,
[data-theme="dark"] .ep-empty {
    color: var(--ep-text-secondary);
}

.ep-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: var(--ep-text-secondary);
}

    .ep-empty svg {
        width: 80px;
        height: 80px;
        color: var(--ep-text-placeholder);
        margin-bottom: 12px;
    }

    .ep-empty p {
        font-size: var(--ep-font-size-base);
    }

/* ========================================
   I. 抽屉组件 — Drawer
   ======================================== */

/* 遮罩层 */
.ep-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .ep-drawer-overlay.show {
        opacity: 1;
        visibility: visible;
    }

/* 抽屉主体 */
.ep-drawer {
    position: fixed;
    top: 0;
    height: 100vh;
    background: var(--ep-bg-overlay);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

    /* 右抽屉（默认） */
    .ep-drawer.ep-drawer-right {
        right: 0;
        transform: translateX(100%);
    }

        .ep-drawer.ep-drawer-right.open {
            transform: translateX(0);
        }

    /* 左抽屉 */
    .ep-drawer.ep-drawer-left {
        left: 0;
        transform: translateX(-100%);
    }

        .ep-drawer.ep-drawer-left.open {
            transform: translateX(0);
        }

/* 头部 */
.ep-drawer-header {
    padding: 6px 24px;
    background-color: var(--ep-bg-page);
    border-bottom: 1px solid var(--ep-border-lighter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    min-height: 40px;
}

    .ep-drawer-header h3 {
        font-size: var(--ep-font-size-md);
        font-weight: 600;
        margin: 0;
        color: var(--ep-text-primary);
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .ep-drawer-header h3 .svg-icon {
            width: 20px;
            height: 20px;
        }

/* 关闭按钮 */
.ep-drawer-close {
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ep-drawer-close:hover {
        background: var(--ep-danger);
        color: #fff;
        transition: background 0.1s, color 0.1s;
    }

    .ep-drawer-close svg {
        display: block;
    }

/* 内容体 */
.ep-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    background: var(--ep-bg-overlay);
    color: var(--ep-text-regular);
}

.user-menu-arrow {
    font-size: 12px;
    color: var(--ep-text-secondary);
    transition: transform 0.18s, color 0.18s;
}

.dropdown.user-menu-open .user-menu-arrow,
.user-menu:hover .user-menu-arrow {
    color: var(--ep-text-primary);
}

.dropdown.user-menu-open .user-menu-arrow {
    transform: rotate(180deg);
}

.cron-log-drawer {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cron-log-toolbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
}

.cron-log-toolbar .layui-form-select {
    width: 132px;
}

.cron-log-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.log-result-text {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 底部操作栏 */
.ep-drawer-footer {
    padding: 6px 24px;
    border-top: 1px solid var(--ep-border-lighter);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
    background: var(--ep-bg-page);
}

/* 抽屉内表格/列表选中行高亮 - 使用主题色 */
.ep-drawer-body .gen-table-row.selected,
.ep-drawer-body .gen-table-row.is-selected,
.ep-drawer-body .layui-table-click {
    background: var(--ep-primary-light-9) !important;
    border-left: 3px solid var(--ep-primary);
}

    /* 抽屉内状态标签在选中行上的适配 */
    .ep-drawer-body .gen-table-row.selected .status-tag,
    .ep-drawer-body .gen-table-row.is-selected .status-tag {
        border-width: 1px;
    }

/* 抽屉内 hover 效果 */
.ep-drawer-body .gen-table-row:hover {
    background: var(--ep-bg-hover);
}

/* 抽屉内自定义滚动条 */
.ep-drawer-body::-webkit-scrollbar {
    width: 6px;
}

.ep-drawer-body::-webkit-scrollbar-track {
    background: transparent;
}

.ep-drawer-body::-webkit-scrollbar-thumb {
    background: var(--ep-border);
    border-radius: 3px;
}

    .ep-drawer-body::-webkit-scrollbar-thumb:hover {
        background: var(--ep-text-placeholder);
    }

/* 抽屉内表单增强 */
.ep-drawer-body .layui-form-item {
    margin-bottom: 14px;
}

.ep-drawer-body .layui-form-label {
    width: 96px;
    padding: 8px 12px 8px 0;
    text-align: right;
    font-weight: 500;
    color: var(--ep-text-regular);
}

.ep-drawer-body .layui-input-block {
    margin-left: 110px;
}

.ep-drawer-body .layui-input,
.ep-drawer-body .layui-textarea {
    border-radius: 6px;
}

    .ep-drawer-body .layui-input:focus,
    .ep-drawer-body .layui-textarea:focus {
        border-color: var(--ep-primary);
        box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.15);
    }

/* 抽屉内分段标题 */
.ep-drawer-section {
    margin-bottom: 24px;
}

.ep-drawer-section-title {
    font-size: var(--ep-font-size-base);
    font-weight: 600;
    color: var(--ep-text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ep-border-extra-light);
}

/* 兼容旧 AI 抽屉类名（渐进迁移） */
.ai-drawer {
    position: fixed;
    top: 0;
    left: -460px;
    width: 460px;
    height: 100vh;
    background: var(--ep-bg-overlay);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.12);
    z-index: 10000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .ai-drawer.open {
        left: 0;
    }

.ai-drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--ep-border-lighter);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .ai-drawer-header h3 {
        font-size: var(--ep-font-size-md);
        font-weight: 600;
        margin: 0;
        color: var(--ep-text-primary);
    }

.ai-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.ai-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--ep-border-lighter);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.ai-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9999;
    display: none;
}

    .ai-drawer-overlay.show {
        display: block;
    }

/* 抽屉内部通用组件 */
.drawer-section {
    margin-bottom: 20px;
}

.drawer-section-title {
    font-size: var(--ep-font-size-base);
    font-weight: 600;
    color: var(--ep-text-primary);
    margin-bottom: 10px;
}

.drawer-input-block {
    margin-left: 0;
}

.ep-drawer-body .model-form,
.ep-drawer-body .drawer-form {
    padding: 0;
}

.ep-drawer-body .model-form-footer,
.ep-drawer-body .drawer-form-footer {
    display: none;
}

.ep-drawer-body .drawer-check-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px 12px;
    padding: 4px 0;
}

    .ep-drawer-body .drawer-check-list label {
        margin: 0 !important;
        min-height: 32px;
        display: inline-flex !important;
        align-items: center;
    }

.ep-drawer-body .form-empty-text {
    color: var(--ep-text-muted);
    line-height: 32px;
}

.ep-drawer-body .user-shop-permission-item .layui-input-block {
    overflow-x: auto;
    padding-bottom: 4px;
}

.ep-drawer-body .user-shop-transfer {
    min-width: 560px;
}

.ep-drawer-body .layui-transfer-box {
    border-color: var(--ep-border);
    background: var(--ep-bg);
}

.ep-drawer-body .layui-transfer-header {
    background: var(--ep-fill-light);
    color: var(--ep-text-primary);
}

.ep-drawer-body .layui-tree,
.ep-drawer-body .layui-tree-set {
    font-size: 13px;
}

/* ========================================
   J. 按钮 — Button
   ======================================== */

.btn-primary {
    background: var(--ep-primary) !important;
    border-color: var(--ep-primary) !important;
}

    .btn-primary:hover {
        background: var(--ep-primary-light-3) !important;
        border-color: var(--ep-primary-light-3) !important;
    }

.btn-generate {
    background: var(--ep-primary) !important;
    border-color: var(--ep-primary) !important;
}

.layui-btn-primary:hover {
    border-color: var(--ep-primary);
}

/* ep-btn 系列 */
.ep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    font-size: var(--ep-font-size-base);
    font-weight: 500;
    font-family: var(--ep-font-family);
    border-radius: var(--ep-radius-base);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    white-space: nowrap;
    user-select: none;
}

    .ep-btn svg {
        width: 14px;
        height: 14px;
    }

.ep-btn--primary {
    background: var(--ep-primary);
    color: #fff;
}

    .ep-btn--primary:hover {
        background: var(--ep-primary-light-3);
    }

    .ep-btn--primary:active {
        background: var(--ep-primary-dark-2);
    }

.ep-btn--success {
    background: var(--ep-success);
    color: #fff;
}

    .ep-btn--success:hover {
        background: var(--ep-success-dark);
    }

.ep-btn--danger {
    background: var(--ep-danger);
    color: #fff;
}

    .ep-btn--danger:hover {
        background: var(--ep-danger-dark);
    }

.ep-btn--default {
    background: var(--ep-fill-blank);
    border-color: var(--ep-border);
    color: var(--ep-text-regular);
}

    .ep-btn--default:hover {
        color: var(--ep-primary);
        border-color: var(--ep-primary-light-5);
        background: var(--ep-primary-light-9);
    }

.ep-btn--text {
    background: transparent;
    color: var(--ep-primary);
    border: none;
    padding: 0 8px;
}

    .ep-btn--text:hover {
        color: var(--ep-primary-light-3);
    }

.ep-btn--lg {
    height: 44px;
    padding: 0 24px;
    font-size: var(--ep-font-size-md);
    border-radius: var(--ep-radius-base);
}

.ep-btn--block {
    width: 100%;
}

.ep-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   K. 表单 — Form
   ======================================== */

.ep-form-item {
    margin-bottom: 20px;
}

.ep-form-label {
    display: block;
    font-size: var(--ep-font-size-sm);
    color: var(--ep-text-regular);
    margin-bottom: 6px;
    font-weight: 500;
}

.ep-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ep-input-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--ep-text-placeholder);
    pointer-events: none;
    z-index: 1;
}

    .ep-input-icon svg {
        width: 16px;
        height: 16px;
    }

.ep-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: var(--ep-font-size-base);
    color: var(--ep-text-primary);
    background: var(--ep-fill-blank);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-base);
    outline: none;
    transition: all 0.2s;
    font-family: var(--ep-font-family);
}

    .ep-input.has-icon {
        padding-left: 36px;
    }

    .ep-input::placeholder {
        color: var(--ep-text-placeholder);
    }

    .ep-input:hover {
        border-color: var(--ep-text-placeholder);
    }

    .ep-input:focus {
        border-color: var(--ep-primary);
        box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.15);
    }

/* 弹窗内表单容器 */
.dialog-form {
    padding: 20px;
}

.dialog-footer {
    text-align: right;
    margin-top: 16px;
}

/* ========================================
   L. 上传 — Upload
   ======================================== */

/* ep-upload 系列 */
.ep-upload-area {
    border: 2px dashed var(--ep-border);
    border-radius: var(--ep-radius-base);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--ep-fill-lighter);
}

    .ep-upload-area:hover {
        border-color: var(--ep-primary);
        background: var(--ep-primary-light-9);
    }

    .ep-upload-area.dragging {
        border-color: var(--ep-primary);
        background: var(--ep-primary-light-9);
    }

.ep-upload-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    color: var(--ep-text-placeholder);
}

    .ep-upload-icon svg {
        width: 40px;
        height: 40px;
    }

.ep-upload-text {
    font-size: var(--ep-font-size-base);
    color: var(--ep-text-regular);
}

    .ep-upload-text em {
        color: var(--ep-primary);
        font-style: normal;
    }

.ep-upload-tip {
    font-size: var(--ep-font-size-xs);
    color: var(--ep-text-secondary);
    margin-top: 4px;
}

.ep-upload-file {
    display: none;
}

.ep-file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--ep-primary-light-9);
    border-radius: var(--ep-radius-small);
    margin-top: 8px;
    font-size: var(--ep-font-size-sm);
    color: var(--ep-primary);
}

    .ep-file-info svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .ep-file-info .file-name {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ep-file-info .file-remove {
        cursor: pointer;
        color: var(--ep-text-secondary);
        transition: color 0.2s;
    }

        .ep-file-info .file-remove:hover {
            color: var(--ep-danger);
        }

/* 业务上传区域 */
.upload-area {
    border: 2px dashed var(--ep-border);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

    .upload-area:hover {
        border-color: var(--ep-primary);
    }

    .upload-area.has-file {
        border-color: var(--ep-success);
        background: var(--ep-success-light);
    }

    .upload-area .icon {
        font-size: 48px;
        color: var(--ep-text-placeholder);
        margin-bottom: 16px;
    }

    .upload-area.has-file .icon {
        color: var(--ep-success);
    }

.preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    margin-top: 16px;
}

/* ========================================
   M. 数据表格 — Table
   ======================================== */

/* Layui 表格增强 */
.layui-table {
    background: var(--ep-bg-card);
    color: var(--ep-text-regular);
    border-color: var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    overflow: hidden;
}

    .layui-table th {
        background: var(--ep-fill-light);
        font-weight: 600;
        font-size: var(--ep-font-size-sm);
        color: var(--ep-text-primary);
        border-color: var(--ep-border-lighter);
    }

    .layui-table td {
        color: var(--ep-text-regular);
        border-color: var(--ep-border-extra-light, var(--ep-border-lighter));
    }

    .layui-table tr:hover td {
        background: var(--ep-bg-hover);
    }

    .layui-table[lay-skin="line"] td,
    .layui-table[lay-skin="line"] th {
        border-color: var(--ep-border-extra-light, var(--ep-border-lighter));
    }

/* 表格工具栏 */
.layui-table-tool {
    background: var(--ep-bg-card);
    border-color: var(--ep-border-lighter);
    padding: 8px 12px;
}

    .layui-table-tool .layui-btn {
        margin-bottom: 0;
    }

/* 表格分页 */
.layui-table-page {
    border-bottom-width:1px;
    background: var(--ep-bg-card);
    border-color: var(--ep-border-lighter);
}

    .layui-table-page > div {
        color: var(--ep-text-regular);
    }

/* 表格固定列阴影 */
.layui-table-fixed-r {
    border-left: 1px solid var(--ep-border-lighter);
}

/* 暗黑模式下表格固定列边框 */
[data-theme="dark"] .layui-table-fixed-r {
    border-left-color: var(--ep-border-lighter, #3d3d3d);
}

[data-theme="dark"] .layui-table-fixed-l {
    border-right-color: var(--ep-border-lighter, #3d3d3d);
}

/* 表格内操作按钮组 */
.layui-table-cell .layui-btn + .layui-btn {
    margin-left: 4px;
}

/* 表格内状态标签 */
.layui-table-cell .status-tag {
    margin: 0 2px;
}

/* Layui 卡片增强 */
.layui-card {
    background: var(--ep-bg-card);
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    box-shadow: var(--ep-shadow-lighter, 0 2px 12px rgba(0, 0, 0, 0.04));
    overflow: hidden;
}

.layui-card-header {
    border-bottom: 1px solid var(--ep-border-lighter);
    color: var(--ep-text-primary);
    font-weight: 600;
    font-size: var(--ep-font-size-md);
}

.layui-card-body {
    color: var(--ep-text-regular);
}

/* Layui 表单增强 — 搜索栏 */
.layui-form.toolbar {
    padding: 2px 0 0;
    /* margin-bottom: 0; */
}

    .layui-form.toolbar .layui-form-item {
        margin-bottom: 8px;
    }

    .layui-form.toolbar .layui-inline {
        margin-bottom: 4px;
    }

    .layui-form.toolbar .layui-input {
        height: 34px;
        line-height: 34px;
        border-radius: var(--ep-radius-small);
        border-color: var(--ep-border);
        transition: border-color 0.2s;
        background: #f7f8fc;
    }

        .layui-form.toolbar .layui-input:focus {
            border-color: var(--ep-primary);
            box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.1);
        }

    .layui-form.toolbar .layui-btn {
        height: 34px;
        line-height: 34px;
        padding: 0 14px;
        border-radius: var(--ep-radius-small);
    }

    .layui-form.toolbar select {
        height: 34px;
        border-radius: var(--ep-radius-small);
    }

/* 模态框内表单 */
.model-form {
    padding: 20px 24px 10px;
}

    .model-form .layui-form-item {
        margin-bottom: 14px;
    }

    .model-form .layui-form-label {
        width: 90px;
        font-weight: 500;
    }

    .model-form .layui-input-block {
        margin-left: 110px;
    }

    .model-form .layui-input,
    .model-form .layui-textarea {
        border-radius: var(--ep-radius-small);
        border-color: var(--ep-border);
        transition: border-color 0.2s;
    }

        .model-form .layui-input:focus,
        .model-form .layui-textarea:focus {
            border-color: var(--ep-primary);
            box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.1);
        }

.model-form-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--ep-border-lighter);
}

/* Layui 按钮增强 */
.layui-btn.icon-btn i {
    margin-right: 4px;
}

.layui-btn.layui-btn-radius {
    border-radius: var(--ep-radius-round);
}

.layui-btn.layui-btn-xs {
    border-radius: var(--ep-radius-small);
    font-size: 12px;
    padding: 0 8px;
    height: 24px;
    line-height: 24px;
}

.layui-btn.layui-btn-sm {
    border-radius: var(--ep-radius-small);
}

/* ep-table 系列 */
.ep-table-wrapper {
    overflow-x: auto;
}

.ep-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--ep-font-size-base);
}

    .ep-table th {
        background: var(--ep-fill-light);
        color: var(--ep-text-secondary);
        font-weight: 600;
        font-size: var(--ep-font-size-sm);
        text-align: left;
        padding: 12px 16px;
        border-bottom: 1px solid var(--ep-border-lighter);
        white-space: nowrap;
    }

    .ep-table td {
        padding: 12px 16px;
        border-bottom: 1px solid var(--ep-border-extra-light);
        color: var(--ep-text-regular);
        vertical-align: middle;
    }

    .ep-table tr:hover td {
        background: var(--ep-bg-hover);
    }

    .ep-table tr:last-child td {
        border-bottom: none;
    }

/* ========================================
   N. 进度条 — Progress
   ======================================== */

.ep-progress {
    width: 100%;
    height: 8px;
    background: var(--ep-border-lighter);
    border-radius: 4px;
    overflow: hidden;
}

.ep-progress__bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s var(--ep-transition-ease);
}

.ep-progress__bar--primary {
    background: var(--ep-primary);
}

.ep-progress__bar--success {
    background: var(--ep-success);
}

.ep-progress__bar--warning {
    background: var(--ep-warning);
}

.ep-progress__bar--danger {
    background: var(--ep-danger);
}

/* ========================================
   O. 通知消息 — Message
   ======================================== */

.ep-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    padding: 12px 20px;
    border-radius: var(--ep-radius-base);
    font-size: var(--ep-font-size-base);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--ep-shadow-hover);
    z-index: 9999;
    transition: transform 0.3s var(--ep-transition-ease);
    max-width: 400px;
}

    .ep-message.show {
        transform: translateX(-50%) translateY(0);
    }

    .ep-message svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

.ep-message--success {
    background: var(--ep-success-light);
    color: var(--ep-success);
    border: 1px solid var(--ep-success);
}

.ep-message--error {
    background: var(--ep-danger-light);
    color: var(--ep-danger);
    border: 1px solid var(--ep-danger);
}

.ep-message--warning {
    background: var(--ep-warning-light);
    color: var(--ep-warning);
    border: 1px solid var(--ep-warning);
}

.ep-message--info {
    background: var(--ep-info-light);
    color: var(--ep-info);
    border: 1px solid var(--ep-info);
}

/* ========================================
   P. 加载遮罩 — Loading
   ======================================== */

.ep-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

    .ep-loading.show {
        opacity: 1;
        pointer-events: auto;
    }

.ep-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--ep-border-lighter);
    border-top-color: var(--ep-primary);
    border-radius: 50%;
    animation: epSpin 0.8s linear infinite;
}

/* ========================================
   Q. 主题切换按钮 — ThemeSwitch
   ======================================== */

.theme-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--ep-border);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
    outline: none;
    z-index: 1001;
}

    .theme-switch.dark {
        background: var(--ep-primary);
    }

    .theme-switch .switch-thumb {
        position: absolute;
        top: 2px;
        left: 2px;
        width: 20px;
        height: 20px;
        background: #fff;
        border-radius: 50%;
        transition: transform 0.3s var(--ep-transition-ease);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .theme-switch.dark .switch-thumb {
        transform: translateX(20px);
    }

    .theme-switch .switch-thumb svg {
        width: 12px;
        height: 12px;
    }

.theme-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.theme-style-toggle {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    background: var(--ep-bg-card);
    box-shadow: var(--ep-shadow-light);
}

.theme-style-btn {
    height: 26px;
    padding: 0 9px;
    border: 0;
    border-radius: var(--ep-radius-small);
    background: transparent;
    color: var(--ep-text-secondary);
    font-size: 12px;
    font-weight: 600;
    line-height: 26px;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

    .theme-style-btn:hover {
        color: var(--ep-text-primary);
        background: var(--ep-bg-hover);
    }

    .theme-style-btn.active {
        color: var(--ep-primary);
        background: var(--ep-primary-light-9);
        box-shadow: inset 0 0 0 1px rgba(var(--ep-primary-rgb), 0.16);
    }

.theme-color-palette {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    background: var(--ep-bg-card);
    box-shadow: var(--ep-shadow-light);
}

.theme-color-swatch {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--ep-radius-small);
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

    .theme-color-swatch::before {
        content: "";
        position: absolute;
        inset: 5px;
        border-radius: 999px;
        background: var(--swatch-color);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    }

    .theme-color-swatch:hover {
        background: var(--ep-bg-hover);
        border-color: var(--ep-border);
    }

    .theme-color-swatch.active {
        border-color: var(--ep-primary);
        background: var(--ep-primary-light-9);
        box-shadow: 0 0 0 2px rgba(var(--ep-primary-rgb), 0.14);
    }

    .theme-color-swatch.blue {
        --swatch-color: #2563eb;
    }

    .theme-color-swatch.green {
        --swatch-color: #16a34a;
    }

    .theme-color-swatch.orange {
        --swatch-color: #ea580c;
    }

    .theme-color-swatch.rose {
        --swatch-color: #e11d48;
    }

    .theme-color-swatch.violet {
        --swatch-color: #7c3aed;
    }

    .theme-color-swatch.cyan {
        --swatch-color: #0891b2;
    }

    .theme-color-swatch.slate {
        --swatch-color: #475569;
    }

/* ========================================
   R. 网格系统 — Grid
   ======================================== */

.ep-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ep-col-6 {
    width: calc(16.666% - 13.333px);
}

.ep-col-8 {
    width: calc(25% - 12px);
}

.ep-col-12 {
    width: calc(50% - 8px);
}

.ep-col-16 {
    width: calc(66.666% - 5.333px);
}

.ep-col-24 {
    width: 100%;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ========================================
   S. 登录页 — Login
   ======================================== */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--ep-primary);
    position: relative;
    overflow: hidden;
}

    .login-page::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%), radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
        animation: loginBgFloat 20s ease-in-out infinite;
    }

@keyframes loginBgFloat {

    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-2%, -1%);
    }
}

.login-container {
    position: relative;
    z-index: 1;
    width: 420px;
    background: var(--ep-bg-overlay);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 40px;
    transition: background var(--ep-transition-duration) var(--ep-transition-ease), box-shadow var(--ep-transition-duration) var(--ep-transition-ease);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

    .login-header .logo-icon {
        width: 48px;
        height: 48px;
        background: var(--ep-primary);
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 16px;
    }

        .login-header .logo-icon svg {
            width: 28px;
            height: 28px;
            fill: #fff;
        }

    .login-header h2 {
        font-size: 22px;
        font-weight: 600;
        color: var(--ep-text-primary);
        margin-bottom: 4px;
    }

    .login-header p {
        font-size: var(--ep-font-size-sm);
        color: var(--ep-text-secondary);
    }

/* ========================================
   T. 下拉菜单 — Dropdown
   ======================================== */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    background: var(--ep-bg-overlay);
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    box-shadow: var(--ep-shadow-hover);
    padding: 4px;
    z-index: 300;
    opacity: 0;
    transform: scaleY(0.8);
    transform-origin: top;
    transition: all 0.2s;
    pointer-events: none;
}

    .dropdown-menu.show {
        opacity: 1;
        transform: scaleY(1);
        pointer-events: auto;
    }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: var(--ep-font-size-base);
    color: var(--ep-text-regular);
    border-radius: var(--ep-radius-small);
    cursor: pointer;
    transition: all 0.2s;
}

    .dropdown-item:hover {
        background: var(--ep-bg-hover);
        color: var(--ep-text-primary);
    }

    .dropdown-item.danger {
        color: var(--ep-danger);
    }

    .dropdown-item svg {
        width: 16px;
        height: 16px;
    }

/* ========================================
   U. 业务模块 — 商品
   ======================================== */

.product-img-cell {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--ep-border-lighter);
}

.product-title-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    background: var(--ep-primary-light-9);
    color: var(--ep-primary);
    border: 1px solid var(--ep-primary);
}

.product-img-placeholder {
    background: var(--ep-fill-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ep-text-placeholder);
    font-size: 10px;
}

/* ========================================
   V. 业务模块 — 任务
   ======================================== */

.task-no-highlight {
    font-family: Consolas, 'Courier New', monospace;
    font-weight: 600;
    color: var(--ep-primary);
}

.info-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    line-height: 2;
}

    .info-row span.label {
        color: var(--ep-text-secondary);
    }

.gen-config-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

    .gen-config-tags .status-tag {
        font-size: 11px;
        padding: 1px 6px;
    }

/* 生成配置信息 */
.gen-config-info {
    background: var(--ep-primary-light-9);
    border-radius: var(--ep-radius-base);
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 1px solid var(--ep-primary);
}

    .gen-config-info .config-title {
        font-weight: 600;
        color: var(--ep-primary);
        margin-bottom: 8px;
    }

    .gen-config-info .config-row {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        font-size: 13px;
    }

        .gen-config-info .config-row span {
            color: var(--ep-text-regular);
        }

/* 生成明细卡片 */
.gen-item-card {
    background: var(--ep-fill-light);
    border-radius: var(--ep-radius-base);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--ep-border-lighter);
    transition: all var(--ep-transition-duration) var(--ep-transition-ease);
}

.gen-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

    .gen-item-header .product-info {
        font-weight: 600;
        color: var(--ep-text-primary);
    }

.gen-item-review {
    background: var(--ep-bg-card);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 10px;
    border: 1px solid var(--ep-border-extra-light);
}

    .gen-item-review .review-label {
        font-size: 12px;
        color: var(--ep-text-secondary);
        margin-bottom: 4px;
    }

    .gen-item-review .review-text {
        color: var(--ep-text-primary);
        line-height: 1.6;
    }

.gen-item-prompt {
    background: var(--ep-primary-light-9);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 10px;
    border: 1px solid var(--ep-primary);
}

    .gen-item-prompt .prompt-label {
        font-size: 12px;
        color: var(--ep-primary);
        margin-bottom: 4px;
        font-weight: 600;
    }

    .gen-item-prompt .prompt-text {
        color: var(--ep-text-regular);
        line-height: 1.5;
        font-size: 13px;
    }

.gen-item-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

    .gen-item-images img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 6px;
        border: 1px solid var(--ep-border-lighter);
        cursor: pointer;
        transition: transform 0.2s;
    }

        .gen-item-images img:hover {
            transform: scale(1.05);
        }

    .gen-item-images .img-placeholder {
        width: 120px;
        height: 120px;
        border-radius: 6px;
        background: var(--ep-fill-light);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--ep-text-placeholder);
        font-size: 12px;
        border: 1px dashed var(--ep-border);
    }

/* ========================================
   W. 业务模块 — 系统配置
   ======================================== */

.config-group {
    margin-bottom: 24px;
}

.config-group-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ep-primary);
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid var(--ep-primary);
}

.config-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--ep-border-extra-light);
}

    .config-item:last-child {
        border-bottom: none;
    }

    .config-item .config-label {
        width: 160px;
        font-size: var(--ep-font-size-base);
        color: var(--ep-text-primary);
        flex-shrink: 0;
    }

        .config-item .config-label small {
            display: block;
            color: var(--ep-text-secondary);
            font-size: var(--ep-font-size-xs);
            font-weight: normal;
        }

    .config-item .config-value {
        flex: 1;
    }

        .config-item .config-value input,
        .config-item .config-value select {
            width: 100%;
            max-width: 500px;
        }

.test-btns {
    display: flex;
    gap: 8px;
}

.config-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0 12px;
}

.config-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ep-text-primary);
}

.config-section-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.config-card {
    background: var(--ep-bg-card);
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--ep-border-lighter);
}

.config-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--ep-border-lighter);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .config-card-header .title {
        font-size: 15px;
        font-weight: 600;
        color: var(--ep-text-primary);
    }

    .config-card-header .desc {
        font-size: var(--ep-font-size-xs);
        color: var(--ep-text-secondary);
    }

.config-card-body {
    padding: 16px 20px;
}

.config-row-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
}

    .config-row-item:last-child {
        margin-bottom: 0;
    }

    .config-row-item .label {
        width: 120px;
        flex-shrink: 0;
        padding-top: 8px;
        font-size: var(--ep-font-size-base);
        color: var(--ep-text-primary);
    }

        .config-row-item .label small {
            display: block;
            font-size: var(--ep-font-size-xs);
            color: var(--ep-text-secondary);
            margin-top: 4px;
            line-height: 1.4;
        }

    .config-row-item .value {
        flex: 1;
        min-width: 0;
    }

        .config-row-item .value .layui-input,
        .config-row-item .value .layui-select {
            width: 100%;
        }

.config-desc-tip {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
}

.test-result {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
}

    .test-result.success {
        background: var(--ep-success-light);
        color: var(--ep-success);
        border: 1px solid var(--ep-success);
    }

    .test-result.error {
        background: var(--ep-danger-light);
        color: var(--ep-danger);
        border: 1px solid var(--ep-danger);
    }

/* ========================================
   X. 业务模块 — AI 生成
   ======================================== */

.ai-form-label {
    width: 120px;
}

.ai-input-block {
    margin-left: 120px;
}

/* ---- 紧凑模式 ---- */
.page-content--compact {
    padding: 10px 14px;
}

.card--compact {
    padding: 12px 16px;
    margin-bottom: 10px;
}

.card-title--compact {
    margin-bottom: 8px;
    padding-bottom: 6px;
    font-size: 13px;
}

.layui-form-item--compact {
    margin-bottom: 6px;
}

.layui-form-label--sm {
    width: 70px;
    padding: 6px 8px 6px 0;
    font-size: 12px;
}

.layui-form-item--compact .layui-input-block {
    margin-left: 70px;
}

.upload-area--compact {
    padding: 16px;
}

    .upload-area--compact .icon {
        font-size: 28px;
        margin-bottom: 4px;
    }

    .upload-area--compact p {
        margin: 2px 0;
    }

.url-input-block {
    margin-left: 0;
}

.url-preview-offset {
    margin-left: 70px;
    margin-bottom: 6px;
}

.preview-image--sm {
    max-width: 120px;
    max-height: 120px;
    border-radius: 6px;
}

.preview-image--inline {
    max-width: 100%;
    max-height: 140px;
    border-radius: 6px;
}

.progress-center--compact {
    padding: 20px;
}

    .progress-center--compact .loading-icon,
    .progress-center--compact .success-icon {
        font-size: 32px;
    }

/* ---- 步骤1两栏布局：商品(8) + 配置(4) ---- */
.ai-step1-grid {
    display: flex;
    gap: 16px;
}

.ai-step1-left {
    flex: 8;
    min-width: 0;
}

.ai-step1-right {
    flex: 4;
    min-width: 0;
    border-left: 1px solid var(--ep-border-lighter);
    padding-left: 16px;
}

/* ---- 顶部栏：进度(8) + 按钮(4) ---- */
.ai-top-bar {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ai-top-bar__progress {
    flex: 8;
    min-width: 0;
}

.ai-top-bar__actions {
    flex: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

/* 步骤指示器 */
.step-card {
    display: none;
}

    .step-card.active {
        display: block;
    }

.step-indicator {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.step-indicator--compact {
    margin-bottom: 0;
}

.step-item {
    display: flex;
    align-items: center;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ep-fill-light);
    color: var(--ep-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-item.active .step-dot {
    background: var(--ep-primary);
    color: #fff;
}

.step-item.completed .step-dot {
    background: var(--ep-success);
    color: #fff;
}

.step-line {
    width: 60px;
    height: 2px;
    background: var(--ep-border-lighter);
    margin: 0 8px;
    align-self: center;
}

.step-item.completed + .step-line {
    background: var(--ep-success);
}

.step-item-label {
    margin-left: 8px;
    font-size: var(--ep-font-size-sm);
}

/* 评语项 */
.review-item {
    background: var(--ep-fill-light);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

    .review-item .review-text {
        font-size: 13px;
        color: var(--ep-text-primary);
        margin-bottom: 8px;
        padding: 10px;
        background: var(--ep-bg-card);
        border-radius: 4px;
        border-left: 3px solid var(--ep-primary);
    }

    .review-item .image-prompts {
        margin-top: 6px;
    }

    .review-item .image-prompt {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        background: var(--ep-bg-card);
        border-radius: 4px;
        margin-bottom: 6px;
        font-size: 12px;
        color: var(--ep-text-regular);
    }

        .review-item .image-prompt .index {
            width: 22px;
            height: 22px;
            background: var(--ep-primary-light-9);
            color: var(--ep-primary);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 600;
        }

/* 图片结果网格 */
.image-result-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.image-result-item {
    width: 180px;
    text-align: center;
}

    .image-result-item img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 8px;
    }

    .image-result-item .caption {
        margin-top: 6px;
        font-size: 12px;
    }

/* 进度区域居中 */
.progress-center {
    text-align: center;
    padding: 40px;
}

    .progress-center .loading-icon {
        font-size: 48px;
        color: var(--ep-primary);
    }

    .progress-center .success-icon {
        font-size: 48px;
        color: var(--ep-success);
    }

/* 导入说明提示 */
.import-tip {
    background: var(--ep-success-light);
    border: 1px solid var(--ep-success);
    border-radius: 4px;
    padding: 10px 12px;
    margin-top: 10px;
    font-size: var(--ep-font-size-xs);
    color: var(--ep-text-regular);
}

    .import-tip strong {
        color: var(--ep-success);
    }

.shop-import-drawer {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.theme-color-trigger {
    display: none;
    width: 30px;
    height: 30px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-base);
    background: var(--ep-bg-card);
    cursor: pointer;
    box-shadow: var(--ep-shadow-light);
}

.theme-color-current {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--ep-primary);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.7);
}

.theme-color-name {
    display: none;
    margin-left: 8px;
    color: var(--ep-text-primary);
    font-size: 12px;
    white-space: nowrap;
}

.shop-import-tip {
    margin-top: 0;
}

.shop-import-upload {
    cursor: pointer;
}

.shop-import-upload.has-file {
    border-color: var(--ep-success);
    background: var(--ep-success-light);
}

.shop-import-file {
    display: flex;
}

.shop-import-file .file-remove {
    font-size: 12px;
}

.shop-import-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.shop-import-columns span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--ep-border-lighter);
    border-radius: 6px;
    background: var(--ep-fill-lighter);
    color: var(--ep-text-regular);
    font-size: 12px;
}

/* ========================================
   Y. 杂项组件
   ======================================== */

/* 未读红点 */
.unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--ep-danger);
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

/* SVG 图标 */
.svg-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* 操作按钮组 */
.action-btns {
    display: flex;
    gap: 8px;
}

.mobile-icon-only .layui-icon {
    margin-right: 4px;
}

.mobile-icon-only .zxyui-icon {
    margin-right: 4px;
}

/* 提示标签 */
.hint-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.hint-tag {
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--ep-fill-light);
    color: var(--ep-text-regular);
    font-size: var(--ep-font-size-xs);
    cursor: pointer;
    border: 1px solid var(--ep-border);
    transition: all 0.2s;
}

    .hint-tag:hover,
    .hint-tag.active {
        background: var(--ep-primary);
        color: #fff;
        border-color: var(--ep-primary);
    }

.drawer-close-btn {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

    .drawer-close-btn:hover {
        background: var(--ep-fill-light);
    }

/* 任务结果面板 */
.task-result-panel {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--ep-fill-light);
    border-radius: var(--ep-radius-base);
    font-size: var(--ep-font-size-sm);
    color: var(--ep-text-regular);
    display: none;
}

    .task-result-panel.show {
        display: block;
    }

    .task-result-panel .result-item {
        display: flex;
        justify-content: space-between;
        padding: 4px 0;
    }

        .task-result-panel .result-item .label {
            color: var(--ep-text-secondary);
        }

        .task-result-panel .result-item .value {
            font-weight: 600;
        }

/* 实时状态指示器 */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--ep-font-size-xs);
    color: var(--ep-success);
}

    .live-indicator::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--ep-success);
        animation: pulse 1.5s ease-in-out infinite;
    }

/* 拖拽高亮 */
.drag-highlight {
    border-color: var(--ep-primary) !important;
    background: var(--ep-primary-light-9) !important;
}

/* 搜索/过滤表单 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

    .filter-bar .ep-input {
        width: 220px;
    }

/* ========================================
   Z. 工具类 — Utilities
   ======================================== */

/* ---- 文字截断 ---- */
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- 隐藏元素 ---- */
.hidden {
    display: none !important;
}

/* ---- 文字颜色 ---- */
.text-primary {
    color: var(--ep-primary);
}

.primary-link {
    color: var(--ep-primary) !important;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

    .primary-link:hover {
        text-decoration: underline;
    }

.primary-strong {
    color: var(--ep-primary) !important;
    font-weight: 700;
}

.layui-table .primary-link,
.layui-table .primary-strong {
    display: inline-block;
    max-width: 100%;
}

.text-success {
    color: var(--ep-success);
}

.text-danger {
    color: var(--ep-danger);
}

.text-warning {
    color: var(--ep-warning);
}

.text-muted {
    color: var(--ep-text-secondary);
}

/* ---- 等宽字体 ---- */
.text-mono {
    font-family: Consolas, 'Courier New', monospace;
}

.text-mono-clickable {
    font-family: Consolas, 'Courier New', monospace;
    cursor: pointer;
}

/* ---- 表单宽度 ---- */
.input-sm {
    width: 120px;
}

.input-inline-sm {
    width: 120px;
}

/* ---- 间距 ---- */
.mt-sm {
    margin-top: 8px;
}

.mt-md {
    margin-top: 16px;
}

.mt-lg {
    margin-top: 24px;
}

.mb-sm {
    margin-bottom: 8px;
}

.ml-sm {
    margin-left: 8px;
}

.ml-md {
    margin-left: 10px;
}

/* ---- 文字大小 ---- */
.font-xs {
    font-size: var(--ep-font-size-xs);
}

.font-sm {
    font-size: var(--ep-font-size-sm);
}

.font-md {
    font-size: var(--ep-font-size-base);
}

.font-lg {
    font-size: var(--ep-font-size-md);
}

/* ---- 文字加粗 ---- */
.font-bold {
    font-weight: 600;
}

.font-bolder {
    font-weight: 700;
}

/* ---- 居中 ---- */
.text-center {
    text-align: center;
}

/* ---- Flex ---- */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-start {
    display: flex;
    align-items: center;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.gap-sm {
    gap: 8px;
}

.gap-md {
    gap: 12px;
}

/* ---- 最大宽度 ---- */
.max-w-sm {
    max-width: 200px;
}

.max-w-md {
    max-width: 300px;
}

/* ========================================
   AA. 动画 — Animations
   ======================================== */

@keyframes epSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes epFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ep-animate-in {
    animation: epFadeIn 0.4s var(--ep-transition-ease);
}

@keyframes pulse {

    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-processing {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ========================================
   BB. 响应式 — Responsive
   ======================================== */

@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .theme-style-toggle {
        display: none;
    }
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    /* AI 生成两栏回退单栏 */
    .ai-step1-grid {
        flex-direction: column;
    }

    .ai-step1-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--ep-border-lighter);
        padding-top: 12px;
    }
}

@media (max-width: 768px) {

    /* 移动端整体布局 */
    .app-layout {
        position: relative;
        overflow-x: hidden;
    }

    .navbar-sidebar-toggle {
        display: none;
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        z-index: 200;
        box-shadow: var(--ep-shadow-hover);
        transition: transform 0.3s ease;
    }

        .app-sidebar.mobile-open {
            transform: translateX(0);
        }

    .app-main {
        position: relative;
        width: 100vw;
        flex: none;
        transition: transform 0.3s ease;
    }

    .app-layout.mobile-menu-open .app-main {
        transform: translateX(var(--ep-sidebar-width));
    }

    .app-layout.mobile-menu-open .app-sidebar {
        transform: translateX(0);
    }

    /* 移动端菜单按钮 */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: var(--ep-radius-base);
        border: none;
        background: transparent;
        color: var(--ep-text-regular);
        cursor: pointer;
        margin-right: 8px;
        transition: all 0.2s;
    }

        .mobile-menu-btn:hover {
            background: var(--ep-bg-hover);
            color: var(--ep-text-primary);
        }

        .mobile-menu-btn svg {
            width: 20px;
            height: 20px;
        }

    .navbar-right {
        gap: 8px;
    }

    .theme-controls {
        gap: 6px;
    }

    .theme-color-palette {
        max-width: 98px;
        overflow-x: auto;
        scrollbar-width: none;
    }

        .theme-color-palette::-webkit-scrollbar {
            display: none;
        }

    /* 移动端侧边栏遮罩层 */
    .mobile-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.3);
        z-index: 150;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .app-layout.mobile-menu-open .mobile-sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .ep-col-6,
    .ep-col-8,
    .ep-col-12,
    .ep-col-16 {
        width: 100%;
    }

    .app-content {
        padding: 16px;
    }

    /* 配置项响应式 */
    .config-row-item {
        flex-direction: column;
    }

        .config-row-item .label {
            width: 100%;
            padding-top: 0;
            margin-bottom: 6px;
        }
}

@media (max-width: 640px) {
    .app-navbar {
        height: 58px;
        padding: 0 8px;
        gap: 6px;
    }

    .navbar-left {
        min-width: 0;
        flex: 1 1 auto;
        gap: 4px;
    }

    .breadcrumb {
        min-width: 0;
        font-size: 14px;
        line-height: 1.2;
    }

        .breadcrumb .current {
            display: -webkit-box;
            max-width: 60px;
            overflow: hidden;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            white-space: normal;
            word-break: break-all;
            font-weight: 700;
        }

    .navbar-right {
        flex: 0 0 auto;
        gap: 4px;
    }

    .theme-controls {
        gap: 4px;
    }

    .theme-color-palette {
        display: none;
    }

    .theme-switch {
        width: 34px;
        height: 24px;
    }

        .theme-switch .switch-thumb {
            width: 20px;
            height: 20px;
        }

        .theme-switch.dark .switch-thumb {
            transform: translateX(10px);
        }

    .navbar-action {
        width: 42px;
        height: 42px;
    }

        .navbar-action svg {
            width: 18px;
            height: 18px;
        }

    .user-menu {
        padding: 2px 0 2px 4px;
        gap: 4px;
    }

    .user-avatar {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .user-name {
        max-width: 45px;
        overflow: hidden;
        color: var(--ep-text-primary);
        font-size: 12px;
        line-height: 1.2;
        word-break: break-all;
    }

    body.page-content {
        padding: 6px;
    }

    .card {
        padding: 8px;
        margin-bottom: 8px;
    }

    .toolbar,
    .layui-form.toolbar {
        align-items: flex-start;
        gap: 8px;
    }

    .layui-card.mobile-admin-table,
    .mobile-admin-table.layui-card {
        margin: 0;
        border-radius: 8px;
    }

    .mobile-admin-table .layui-card-body {
        padding: 8px;
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 78px);
    }

    .mobile-admin-table .layui-form.toolbar,
    .mobile-compact-form {
        width: 100%;
    }

    .layui-form.toolbar .layui-form-item,
    .mobile-compact-form .layui-form-item {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        margin-bottom: 8px;
    }

    .layui-form.toolbar .layui-inline,
    .mobile-compact-form .layui-inline {
        margin: 0;
    }

    .layui-form.toolbar .layui-inline:first-child,
    .layui-form.toolbar .layui-inline:nth-child(2),
    .mobile-compact-form .layui-inline:first-child,
    .mobile-compact-form .layui-inline:nth-child(2) {
        width: 100%;
    }

    .layui-form.toolbar .layui-inline:first-child .layui-input,
    .layui-form.toolbar .layui-inline:nth-child(2) .layui-input,
    .layui-form.toolbar .layui-inline:nth-child(2) .layui-form-select,
    .mobile-compact-form .layui-inline:first-child .layui-input,
    .mobile-compact-form .layui-inline:nth-child(2) .layui-input,
    .mobile-compact-form .layui-inline:nth-child(2) .layui-form-select {
        width: 100% !important;
    }

    .mobile-admin-table .layui-table-view,
    .mobile-scroll-table .layui-table-view,
    .mobile-scroll-table.layui-table-view {
        flex: 1;
        min-height: 0;
    }

    .mobile-admin-table .layui-table-tool {
        padding: 8px 10px;
    }

    .mobile-admin-table .layui-table-tool-temp {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        padding-right: 88px;
    }

    .mobile-admin-table .layui-table-tool-self {
        top: 8px;
        right: 8px;
    }

    .mobile-admin-table .layui-table-cell .layui-btn {
        width: 24px;
        min-width: 24px;
        height: 24px;
        line-height: 24px;
        padding: 0 !important;
        margin: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0 !important;
    }

    .mobile-admin-table .layui-table-cell .layui-btn + .layui-btn {
        margin-left: 0;
    }

    .mobile-admin-table .layui-table-cell:has(> .mobile-icon-only) {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding-left: 4px;
        padding-right: 4px;
        font-size: 0;
    }

    .mobile-admin-table .layui-table-cell .layui-btn .btn-text {
        display: none;
    }

    .mobile-admin-table .layui-table-cell .layui-btn .zxyui-icon,
    .mobile-admin-table .layui-table-cell .layui-btn .layui-icon {
        margin-right: 0;
        font-size: 15px;
    }

    .search-bar {
        width: 100%;
        gap: 8px;
    }

        .search-bar .input-sm,
        .search-bar .layui-input,
        .search-bar .layui-form-select {
            width: calc(50vw - 22px);
            min-width: 0;
        }

    .toolbar-btns,
    .action-btns {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }

    .mobile-icon-only {
        width: 34px;
        min-width: 34px;
        padding: 0 !important;
        justify-content: center;
        font-size: 0 !important;
    }

    .toolbar .icon-btn {
        width: 34px;
        min-width: 34px;
        padding: 0 !important;
        justify-content: center;
        font-size: 0 !important;
    }

    .mobile-icon-only .btn-text {
        display: none;
    }

    .mobile-icon-only .layui-icon,
    .mobile-icon-only .zxyui-icon,
    .toolbar .icon-btn .layui-icon,
    .toolbar .icon-btn .zxyui-icon {
        margin-right: 0;
        font-size: 15px;
    }

    .layui-table-fixed,
    .layui-table-fixed-l,
    .layui-table-fixed-r {
        display: none !important;
    }

    .toolbar-btns .layui-form-switch {
        margin-top: 0;
    }

    .auto-task-head {
        align-items: flex-start;
        gap: 8px;
    }

    .auto-task-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .auto-task-metric {
        padding: 9px 6px;
    }

    .auto-task-metric > span,
    .auto-task-metric .metric-recommend {
        white-space: normal;
        text-align: center;
    }

    .auto-task-note {
        font-size: 12px;
    }

    .config-sticky {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .config-section-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .config-section-actions .layui-btn {
        margin: 0;
    }

    .config-tab-wrap {
        padding: 0 8px 8px;
    }

    .config-table-wrap {
        max-height: calc(100vh - 236px);
        overflow: auto;
    }
}

/* 桌面端隐藏移动端元素 */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }

    .mobile-sidebar-overlay {
        display: none;
    }
}

/* 下拉select */
.layui-form-select dl dd.layui-this {
    background: var(--ep-primary);
    color: #fff;
}

/* 文本选中 */
.layui-input:focus,
.layui-textarea:focus {
    border-color: var(--ep-primary) !important;
}

.layui-input,
.layui-textarea {
    background: var(--ep-fill-blank);
    color: var(--ep-text-primary);
    border-color: var(--ep-border);
}

    /* 下拉框清除 */
    .layui-input:focus,
    .layui-textarea:focus,
    .layui-input:hover,
    .layui-textarea:hover {
        background: var(--ep-fill-light);
    }

.layui-form-select .layui-select-title .layui-icon-close {
    position: absolute;
    right: 0;
    top: 50%;
    width: 25px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    vertical-align: middle;
    transform: translateY(-50%);
    cursor: pointer;
    transition: all 0.3s ease 0s;
    font-size: 16px;
    color: var(--ep-text-placeholder);
}

    .layui-form-select .layui-select-title .layui-icon-close:hover {
        color: var(--ep-text-secondary);
    }

    .layui-form-select .layui-select-title .layui-icon-close::before {
        content: "";
    }

/* 文本框清除 */
.layui-input-wrap .layui-input {
    padding-right: 25px;
}

.layui-form .layui-input-affix {
    opacity: 0;
    transition: opacity 0.5s;
}

.layui-input-wrap:hover .layui-input-affix {
    opacity: 1;
}

/* ==================== zxyui-icon 图标系统 ==================== */
/* 使用 -webkit-mask-image + currentColor 实现颜色可控的 SVG 图标
   用法：<i class="zxyui-icon zxyui-icon-task"></i>
   图标颜色跟随元素 color 属性（继承 currentColor） */

.zxyui-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    flex-shrink: 0;
}

/* 工具栏按钮图标适配 */
.layui-btn .zxyui-icon {
    font-size: 12px;
    margin-right: 4px;
    margin-bottom: 1px;
    vertical-align: middle;
    line-height: 1;
}

.toolbar .layui-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 侧边栏 nav-item 内的图标尺寸 */
.nav-item .zxyui-icon {
    width: 18px;
    height: 18px;
}

/* ---- 目录级图标 ---- */
.zxyui-icon-folder {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.zxyui-icon-sparkle {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8z'/%3E%3C/svg%3E");
}

.zxyui-icon-grid {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

.zxyui-icon-settings {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
}

/* ---- 业务菜单图标 ---- */
.zxyui-icon-task {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2'/%3E%3Crect x='9' y='3' width='6' height='4' rx='2'/%3E%3Cline x1='9' y1='12' x2='15' y2='12'/%3E%3Cline x1='9' y1='16' x2='13' y2='16'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2'/%3E%3Crect x='9' y='3' width='6' height='4' rx='2'/%3E%3Cline x1='9' y1='12' x2='15' y2='12'/%3E%3Cline x1='9' y1='16' x2='13' y2='16'/%3E%3C/svg%3E");
}

.zxyui-icon-image {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
}

.zxyui-icon-product {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
}

.zxyui-icon-goods {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
}

.zxyui-icon-ai {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
}

.zxyui-icon-brand {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'/%3E%3Cline x1='4' y1='22' x2='4' y2='15'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'/%3E%3Cline x1='4' y1='22' x2='4' y2='15'/%3E%3C/svg%3E");
}

.zxyui-icon-category {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

.zxyui-icon-shop {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

.zxyui-icon-user {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.zxyui-icon-role {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

.zxyui-icon-menu {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E");
}

.zxyui-icon-dict {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
}

.zxyui-icon-config {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E");
}

.zxyui-icon-log {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E");
}

.zxyui-icon-calendar {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.zxyui-icon-bell {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E");
}

.zxyui-icon-notify {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E");
}

.zxyui-icon-loginlog {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.zxyui-icon-default {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
}

/* ---- 额外常用图标 ---- */
.zxyui-icon-lock {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

.zxyui-icon-logout {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

.zxyui-icon-dept {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.zxyui-icon-time {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

.zxyui-icon-plus {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

.zxyui-icon-edit {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E");
}

.zxyui-icon-trash {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E");
}

.zxyui-icon-search {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

.zxyui-icon-refresh {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='23 4 23 10 17 10'/%3E%3Cpath d='M20.49 15a9 9 0 1 1-2.12-9.36L23 10'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='23 4 23 10 17 10'/%3E%3Cpath d='M20.49 15a9 9 0 1 1-2.12-9.36L23 10'/%3E%3C/svg%3E");
}

.zxyui-icon-download {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

.zxyui-icon-upload {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E");
}

.zxyui-icon-close {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

.zxyui-icon-eye {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.zxyui-icon-copy {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
}

.zxyui-icon-check {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.zxyui-icon-save {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpolyline points='17 21 17 13 7 13 7 21'/%3E%3Cpolyline points='7 3 7 8 15 8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpolyline points='17 21 17 13 7 13 7 21'/%3E%3Cpolyline points='7 3 7 8 15 8'/%3E%3C/svg%3E");
}

.zxyui-icon-key {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.78 7.78 5.5 5.5 0 0 1 7.78-7.78zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.78 7.78 5.5 5.5 0 0 1 7.78-7.78zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4'/%3E%3C/svg%3E");
}

.zxyui-icon-chevron-right {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
}

.zxyui-icon-file {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
}

.zxyui-icon-tips {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}

/* ========== 抽屉内任务详情 ========== */
.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    padding: 12px 0 16px;
}

.detail-info-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 13px;
    line-height: 1.7;
}

    .detail-info-item .detail-label {
        color: var(--ep-text-secondary, #909399);
        white-space: nowrap;
        min-width: 64px;
        flex-shrink: 0;
    }

        .detail-info-item .detail-label::after {
            content: '：';
        }

    .detail-info-item .detail-value {
        color: var(--ep-text-primary, #303133);
        word-break: break-all;
    }

.detail-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ep-text-primary, #303133);
    padding: 14px 0 10px;
    border-top: 1px solid var(--ep-border-lighter, #ebeef5);
    margin-top: 4px;
}

.detail-config-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 8px;
}

    .detail-config-row .status-tag {
        font-size: 12px;
    }

.text-mono {
    font-family: Consolas, 'Courier New', monospace;
}

/* 抽屉内生成明细 — 一条评语+多个场景图（支持暗黑模式） */
.detail-info-item--full {
    grid-column: 1 / -1;
}

.gen-list-table {
    border: 1px solid var(--ep-border-lighter, #ebeef5);
    border-radius: 6px;
    overflow: hidden;
    font-size: 13px;
}

.gen-list-header {
    display: flex;
    align-items: center;
    background: var(--ep-fill-color-light, #f5f7fa);
    padding: 10px 12px;
    font-weight: 600;
    color: var(--ep-text-primary, #303133);
    border-bottom: 1px solid var(--ep-border-lighter, #ebeef5);
    font-size: 12px;
}

.gen-list-body {
    max-height: 600px;
    overflow-y: auto;
}

.gen-list-row {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-bottom: 1px solid var(--ep-border-lighter, #ebeef5);
    transition: background 0.15s;
}

    .gen-list-row:last-child {
        border-bottom: none;
    }

    .gen-list-row:hover {
        background: var(--ep-fill-color-light, #f5f7fa);
    }

/* 序号列 */
.gen-col-idx {
    width: 36px;
    flex-shrink: 0;
    text-align: center;
    color: var(--ep-text-secondary, #909399);
    font-size: 12px;
    padding-top: 4px;
}

/* 评语单列 */
.gen-col-review-single {
    width: 300px;
    flex-shrink: 0;
    padding-right: 16px;
}

.review-single-box {
    font-size: 13px;
    color: var(--ep-text-regular, #606266);
    line-height: 1.6;
    background: var(--ep-fill-color, #f0f2f5);
    padding: 10px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--ep-primary, #4a6cf7);
    max-height: 100px;
    overflow-y: auto;
}

/* 场景图列 */
.gen-col-scenes {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.scene-img-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.scene-img-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--ep-border-lighter, #ebeef5);
    background: var(--ep-bg-card);
    flex-shrink: 0;
}

    .scene-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: pointer;
        transition: transform 0.2s;
    }

        .scene-img-wrap img:hover {
            transform: scale(1.08);
        }

.scene-img-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 10px;
    text-align: center;
    padding: 2px 0;
    white-space: nowrap;
}

/* 状态列 */
.gen-col-state {
    width: 80px;
    flex-shrink: 0;
    text-align: center;
    padding-top: 4px;
}

    .gen-col-state .status-tag {
        font-size: 11px;
        padding: 1px 6px;
    }

/* .status-tag.warning 硬编码已移除，由上方 CSS 变量版本统一管理 */

/* ===== 暗黑模式适配 ===== */

/* 暗黑模式下滚动条样式 */
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: transparent;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--ep-border, #4d4d4d);
    border-radius: 4px;
}

    [data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
        background: var(--ep-text-placeholder, #6b6b6b);
    }

[data-theme="dark"] .gen-list-table {
    border-color: var(--ep-border-lighter, #3d3d3d);
}

[data-theme="dark"] .gen-list-header {
    background: var(--ep-fill-color-light, #2a2a2a);
    border-color: var(--ep-border-lighter, #3d3d3d);
}

[data-theme="dark"] .gen-list-row {
    border-color: var(--ep-border-lighter, #3d3d3d);
}

    [data-theme="dark"] .gen-list-row:hover {
        background: var(--ep-fill-color-light, #2a2a2a);
    }

[data-theme="dark"] .review-single-box {
    background: var(--ep-fill-color, #2a2a2a);
    color: var(--ep-text-regular, #b0b3b8);
}

[data-theme="dark"] .scene-img-wrap {
    border-color: var(--ep-border-lighter, #3d3d3d);
}

/* ========================================
   Z. iframe Loading 过渡层
   ======================================== */
.ep-iframe-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ep-bg-page, #f0f2f5);
    transition: opacity 0.3s ease;
}

.ep-iframe-loading--fadeout {
    opacity: 0;
    pointer-events: none;
}

.ep-iframe-loading__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ep-iframe-loading__spinner {
    width: 40px;
    height: 40px;
}

.ep-iframe-loading__svg {
    animation: ep-loading-rotate 1.4s linear infinite;
    width: 100%;
    height: 100%;
}

.ep-iframe-loading__circle {
    stroke: var(--ep-primary, #4a6cf7);
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    animation: ep-loading-dash 1.4s ease-in-out infinite;
}

.ep-iframe-loading__text {
    font-size: 13px;
    color: var(--ep-text-secondary, #909399);
    letter-spacing: 1px;
}

@keyframes ep-loading-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes ep-loading-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* ========================================
   Z2. 应用初始 Loading（index.html 专用）
   ======================================== */
.app-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ep-bg-page, #f0f2f5);
    transition: opacity 0.4s ease;
}

.app-loading--fadeout {
    opacity: 0;
    pointer-events: none;
}

.app-loading__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.app-loading__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: app-loading-fadeInUp 0.6s ease both;
}

    .app-loading__logo svg {
        width: 32px;
        height: 32px;
        color: var(--ep-primary, #4a6cf7);
    }

.app-loading__logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--ep-text-primary, #303133);
    letter-spacing: 1px;
}

.app-loading__spinner {
    width: 36px;
    height: 36px;
    animation: app-loading-fadeInUp 0.6s ease 0.15s both;
}

    .app-loading__spinner .ep-iframe-loading__svg {
        width: 100%;
        height: 100%;
    }

@keyframes app-loading-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   组织机构页面 — 左树右表布局
   ======================================== */

.org-layout {
    display: flex;
    gap: 16px;
    height: calc(100vh - 36px);
}

    .org-layout .org-left {
        width: 280px;
        min-width: 240px;
        flex-shrink: 0;
        background: var(--ep-bg-card);
        border-radius: var(--ep-radius-base);
        box-shadow: var(--ep-shadow-card);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .org-layout .org-left-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-bottom: 1px solid var(--ep-border-lighter);
        flex-shrink: 0;
    }

        .org-layout .org-left-header h4 {
            font-size: var(--ep-font-size-md);
            font-weight: 600;
            color: var(--ep-text-primary);
            margin: 0;
        }

    .org-layout .org-left-body {
        flex: 1;
        overflow-y: auto;
        padding: 8px 0;
    }

    .org-layout .org-right {
        flex: 1;
        min-width: 0;
        background: var(--ep-bg-card);
        border-radius: var(--ep-radius-base);
        box-shadow: var(--ep-shadow-card);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .org-layout .org-right-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-bottom: 1px solid var(--ep-border-lighter);
        flex-shrink: 0;
    }

        .org-layout .org-right-header h4 {
            font-size: var(--ep-font-size-md);
            font-weight: 600;
            color: var(--ep-text-primary);
            margin: 0;
        }

    .org-layout .org-right-body {
        flex: 1;
        padding: 12px 16px;
        overflow-y: auto;
    }

/* 机构树样式 */
.dept-tree {
    padding: 0 8px;
}

    .dept-tree .dept-tree-node {
        display: flex;
        align-items: center;
        padding: 8px 12px;
        cursor: pointer;
        border-radius: var(--ep-radius-small);
        transition: all 0.2s;
        margin-bottom: 2px;
        color: var(--ep-text-regular);
        font-size: var(--ep-font-size-base);
        user-select: none;
    }

        .dept-tree .dept-tree-node:hover {
            background: var(--ep-bg-hover);
            color: var(--ep-text-primary);
        }

        .dept-tree .dept-tree-node.active {
            background: var(--ep-bg-active);
            color: var(--ep-primary);
            font-weight: 500;
        }

        .dept-tree .dept-tree-node .dept-tree-toggle {
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin-right: 4px;
            transition: transform 0.2s;
        }

            .dept-tree .dept-tree-node .dept-tree-toggle.expanded {
                transform: rotate(90deg);
            }

            .dept-tree .dept-tree-node .dept-tree-toggle.empty {
                visibility: hidden;
            }

        .dept-tree .dept-tree-node .dept-tree-icon {
            width: 16px;
            height: 16px;
            margin-right: 6px;
            flex-shrink: 0;
            color: var(--ep-primary);
        }

        .dept-tree .dept-tree-node .dept-tree-label {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

    .dept-tree .dept-tree-children {
        padding-left: 20px;
        overflow: hidden;
    }

        .dept-tree .dept-tree-children.collapsed {
            display: none;
        }

/* 滚动条：默认弱化，鼠标进入可滚动区域后显示 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: transparent;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-track-piece {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    min-height: 28px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ep-text-placeholder) 38%, transparent);
    background-clip: padding-box;
}

body.page-content:not(:hover)::-webkit-scrollbar-thumb,
.app-content:not(:hover)::-webkit-scrollbar-thumb,
.sidebar-nav:not(:hover)::-webkit-scrollbar-thumb,
.layui-table-view .layui-table-main:not(:hover)::-webkit-scrollbar-thumb,
.layui-table-view .layui-table-body:not(:hover)::-webkit-scrollbar-thumb {
    background: transparent;
}

.layui-table-view .layui-table-main::-webkit-scrollbar,
.layui-table-view .layui-table-body::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar,
.app-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.layui-table-view .layui-table-main::-webkit-scrollbar-track,
.layui-table-view .layui-table-body::-webkit-scrollbar-track {
    background: transparent;
}

.layui-table-view .layui-table-main::-webkit-scrollbar-thumb,
.layui-table-view .layui-table-body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: color-mix(in srgb, var(--ep-text-placeholder) 42%, transparent);
}

[data-theme="dark"] .layui-table-view {
    border-color: var(--ep-border);
    background: var(--ep-bg-card);
    color: var(--ep-text-primary);
}

[data-theme="dark"] .layui-table,
[data-theme="dark"] .layui-table-header,
[data-theme="dark"] .layui-table-body,
[data-theme="dark"] .layui-table-cell {
    background: var(--ep-bg-card);
    color: var(--ep-text-primary);
}

    [data-theme="dark"] .layui-table td,
    [data-theme="dark"] .layui-table th,
    [data-theme="dark"] .layui-table-header {
        border-color: var(--ep-border);
    }

    /* 第22点统一:暗色模式下表格 hover、工具栏、分页、表格滚动条与浅色保持一致风格 */
    [data-theme="dark"] .layui-table tr:hover td,
    [data-theme="dark"] .layui-table tbody tr:hover {
        background: var(--ep-fill-light) !important;
    }

[data-theme="dark"] .layui-table-tool,
[data-theme="dark"] .layui-table-page {
    background: var(--ep-bg-card);
    border-color: var(--ep-border);
    color: var(--ep-text-primary);
}

[data-theme="dark"] .layui-table-tool-panel {
    background: var(--ep-bg-overlay);
    border-color: var(--ep-border);
    box-shadow: var(--ep-shadow-hover);
}

[data-theme="dark"] .layui-table-tool-panel li,
[data-theme="dark"] .layui-table-tool-panel .layui-form-checkbox span {
    color: var(--ep-text-primary);
}

[data-theme="dark"] .layui-table-tool-panel li:hover {
    background: var(--ep-bg-hover);
}

.tree-table-scroll {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.tree-mobile-page .tree-table-scroll .layui-table-view,
.tree-mobile-page .tree-table-scroll .ew-tree-table {
    min-width: 720px;
}

.tree-mobile-page .layui-table-cell .mobile-icon-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-side-toggle,
.mobile-side-overlay {
    display: none;
}

.mobile-main-table-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

@media (max-width: 1024px) {
    .theme-color-trigger {
        display: inline-flex;
    }

    .theme-color-palette.mobile-popover {
        display: none;
        position: fixed;
        top: calc(54px + env(safe-area-inset-top));
        right: max(10px, env(safe-area-inset-right));
        z-index: 1280;
        width: min(160px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
        padding: 8px;
        gap: 6px;
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
        border-radius: 8px;
        box-shadow: var(--ep-shadow-dark);
    }

    .theme-color-palette.mobile-popover.open,
    .theme-color-palette.open {
        display: flex;
    }

    .theme-color-palette.mobile-popover::before {
        content: "";
        position: absolute;
        top: -6px;
        right: 18px;
        width: 10px;
        height: 10px;
        background: var(--ep-bg-card);
        border-left: 1px solid var(--ep-border-lighter);
        border-top: 1px solid var(--ep-border-lighter);
        transform: rotate(45deg);
    }

    .theme-color-palette.mobile-popover .theme-color-swatch {
        width: 100%;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-left: 34px;
        padding-right: 10px;
        border-radius: 6px;
        box-sizing: border-box;
    }

    .theme-color-palette.mobile-popover .theme-color-swatch::before {
        left: 10px;
        right: auto;
        top: 8px;
        bottom: auto;
        width: 18px;
        height: 18px;
        inset: auto;
    }

    .theme-color-palette.mobile-popover .theme-color-name {
        display: inline;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .mobile-split-page {
        min-height: calc(100vh - 12px);
    }

    .mobile-side-toggle {
        position: fixed;
        left: 10px;
        top: 70px;
        z-index: 820;
        width: 36px;
        height: 36px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--ep-border);
        border-radius: 999px;
        background: var(--ep-bg-card);
        color: var(--ep-primary);
        box-shadow: var(--ep-shadow-hover);
    }

    .mobile-side-overlay {
        position: fixed;
        inset: 0;
        z-index: 800;
        display: block;
        background: rgba(15, 23, 42, .38);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }

    .mobile-side-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

    .org-layout.mobile-split-page {
        display: block;
        height: calc(100vh - 12px);
    }

    .org-layout.mobile-split-page .org-left {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 810;
        width: min(82vw, 300px);
        transform: translateX(-105%);
        transition: transform .22s ease;
        border-radius: 0 8px 8px 0;
    }

    .org-layout.mobile-split-page.side-open .org-left {
        transform: translateX(0);
    }

    body.mobile-split-page:has(.side-open) .mobile-side-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .org-layout.mobile-split-page .org-right {
        height: 100%;
    }

    .org-layout.mobile-split-page .org-right-body {
        padding: 8px;
        display: flex;
        flex-direction: column;
    }

    .mobile-main-table-scroll .layui-table-view {
        min-width: 720px;
    }
}

    [data-theme="dark"] .layui-table-page .layui-laypage a,
    [data-theme="dark"] .layui-table-page .layui-laypage span {
        background-color: var(--ep-bg-module);
        border-color: var(--ep-border);
        color: var(--ep-text-primary);
    }

.layui-table-view .layui-table[lay-size=sm] .layui-table-cell {
    padding-top: 2px;
    padding-left: 5px;
    padding-right: 5px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--ep-text-secondary) 30%, transparent);
}

.layui-table-cell,
.layui-table-grid-down {
/*    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;*/
}

.layui-table-tips-main {
/*    color: var(--ep-text-primary);
    background: var(--ep-bg-card);
    border-color: var(--ep-border);
    box-shadow: var(--ep-shadow-light);*/
}

/* 任务详情通用视图 */
.detail-view {
    padding: 0;
    background: transparent;
    color: var(--ep-text-primary);
}

.detail-view-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    background: var(--ep-bg-card);
}

.detail-view-kicker {
    margin-bottom: 6px;
    color: var(--ep-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.detail-view-hero h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.detail-view-hero p {
    margin: 0;
    color: var(--ep-text-secondary);
    line-height: 1.7;
}

.detail-view-metrics {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

    .detail-view-metrics div {
        min-width: 88px;
        padding: 10px 12px;
        border: 1px solid var(--ep-border-lighter);
        border-radius: var(--ep-radius-base);
        background: var(--ep-fill-lighter);
        text-align: center;
    }

    .detail-view-metrics strong {
        display: block;
        margin-bottom: 4px;
        color: var(--ep-primary);
        font-size: 20px;
    }

    .detail-view-metrics span {
        color: var(--ep-text-secondary);
        font-size: 12px;
    }

.detail-view-section {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    background: var(--ep-bg-card);
}

.detail-view-alert-danger {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--ep-danger);
    border-radius: var(--ep-radius-base);
    background: var(--ep-danger-light);
    color: var(--ep-danger);
    line-height: 1.6;
}

    .detail-view-alert-danger .layui-icon {
        margin-top: 1px;
        font-size: 16px;
    }

.detail-view-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

    .detail-view-section-head h3 {
        margin: 0;
        font-size: 14px;
        font-weight: 700;
    }

.detail-view-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.detail-view-field {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    background: var(--ep-bg-card);
}

    .detail-view-field.is-wide {
        grid-column: span 2;
    }

.detail-view-label {
    margin-bottom: 6px;
    color: var(--ep-text-secondary);
    font-size: 12px;
}

.detail-view-value {
    color: var(--ep-text-primary);
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
}

.detail-view-status {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--ep-fill);
    color: var(--ep-text-secondary);
    font-size: 12px;
}

    .detail-view-status.success {
        background: var(--ep-success-light);
        color: var(--ep-success);
    }

    .detail-view-status.warning {
        background: var(--ep-warning-light);
        color: var(--ep-warning);
    }

    .detail-view-status.danger {
        background: var(--ep-danger-light);
        color: var(--ep-danger);
    }

.detail-view-progress {
    position: relative;
    height: 10px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--ep-fill);
}

    .detail-view-progress div {
        height: 100%;
        border-radius: inherit;
        background: var(--ep-primary);
    }

    .detail-view-progress span {
        position: absolute;
        right: 8px;
        top: -4px;
        color: var(--ep-text-secondary);
        font-size: 12px;
    }

.detail-view-list,
.detail-view-review-list {
    display: grid;
    gap: 8px;
}

.detail-view-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    background: var(--ep-bg-card);
}

    .detail-view-row span,
    .detail-view-row em {
        color: var(--ep-text-secondary);
        font-size: 12px;
        font-style: normal;
    }

    .detail-view-row b {
        min-width: 0;
        overflow: hidden;
        color: var(--ep-text-primary);
        font-weight: 500;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.detail-view-review-card {
    padding: 12px;
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    background: var(--ep-bg-card);
}

.detail-view-review-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 700;
}

.detail-view-review-card p {
    margin: 0 0 8px;
    line-height: 1.7;
}

.detail-view-prompt {
    color: var(--ep-text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.detail-view-image-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

    .detail-view-image-tags span {
        padding: 4px 8px;
        border-radius: 999px;
        background: var(--ep-fill-lighter);
        color: var(--ep-text-secondary);
        font-size: 12px;
    }

.detail-view-image {
    max-width: 180px;
    max-height: 180px;
    margin-bottom: 12px;
    border-radius: var(--ep-radius-base);
    border: 1px solid var(--ep-border-lighter);
    cursor: zoom-in;
    object-fit: cover;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .detail-view-image:hover {
        border-color: var(--ep-primary);
        box-shadow: 0 0 0 3px var(--ep-primary-light);
    }

.detail-view-image-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 180px));
    gap: 12px;
    margin-bottom: 12px;
}

.detail-view-link {
    color: var(--ep-primary);
    cursor: pointer;
}

    .detail-view-link:hover {
        text-decoration: underline;
    }

.image-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    border: 1px dashed var(--ep-border);
    border-radius: var(--ep-radius-base);
    background: var(--ep-fill-lighter);
    color: var(--ep-text-placeholder);
    font-size: 12px;
    vertical-align: middle;
}

.detail-view-image.image-placeholder {
    width: 180px;
    height: 132px;
    margin-bottom: 12px;
    cursor: default;
}

.task-error-tip {
    color: var(--ep-danger);
    font-size: 15px;
    cursor: help;
    vertical-align: middle;
}

.detail-view-empty,
.detail-view-more {
    padding: 12px;
    border-radius: var(--ep-radius-base);
    background: var(--ep-fill-lighter);
    color: var(--ep-text-secondary);
    font-size: 12px;
    text-align: center;
}

.detail-view-json {
    margin: 0;
    padding: 16px;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--ep-text-primary);
    background: var(--ep-bg-card);
}

.detail-json-btn {
    min-width: 52px;
}

.ai-log-detail {
    display: grid;
    gap: 14px;
}

.ai-log-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ai-log-meta-item {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    background: var(--ep-bg-color);
}

    .ai-log-meta-item span {
        display: block;
        margin-bottom: 6px;
        color: var(--ep-text-secondary);
        font-size: 12px;
    }

    .ai-log-meta-item strong {
        display: block;
        overflow: hidden;
        color: var(--ep-text-primary);
        font-size: 13px;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.ai-log-json-section {
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    overflow: hidden;
    background: var(--ep-bg-color);
}

.ai-log-image-section {
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    overflow: hidden;
    background: var(--ep-bg-color);
}

.ai-log-json-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--ep-border-lighter);
    color: var(--ep-text-primary);
    font-size: 13px;
    font-weight: 700;
}

    .ai-log-json-title span {
        color: var(--ep-text-secondary);
        font-size: 12px;
        font-weight: 400;
    }

.ai-log-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
    gap: 10px;
    padding: 12px;
}

.ai-log-image-card {
    margin: 0;
    padding: 8px;
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    background: var(--ep-bg-card);
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

    .ai-log-image-card:hover {
        border-color: var(--ep-primary);
        box-shadow: 0 0 0 3px var(--ep-primary-light);
    }

    .ai-log-image-card img {
        display: block;
        width: 100%;
        height: 96px;
        object-fit: cover;
        border-radius: calc(var(--ep-radius-base) - 2px);
        background: var(--ep-fill-lighter);
    }

    .ai-log-image-card figcaption {
        margin-top: 7px;
        overflow: hidden;
        color: var(--ep-text-secondary);
        font-size: 12px;
        line-height: 1.4;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.ai-log-json-section .detail-view-json {
    max-height: 360px;
    overflow: auto;
    background: var(--ep-fill-lighter);
}

.ep-drawer .detail-view {
    padding-bottom: 8px;
}

/* ========================================
   Cron 表达式编辑器
   ======================================== */
.cron-mode-btn {
    font-size: 12px !important;
    padding: 0 10px !important;
    height: 28px !important;
    line-height: 28px !important;
}

    .cron-mode-btn.layui-btn-primary {
        border-color: var(--ep-border-color);
        color: var(--ep-text-secondary);
        background: transparent;
    }

        .cron-mode-btn.layui-btn-primary:hover {
            border-color: var(--ep-primary);
            color: var(--ep-primary);
        }

.ep-drawer-body .cron-form {
    padding: 0;
}

.cron-mode-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.cron-panels {
    background: var(--ep-fill-lighter);
    border: 1px solid var(--ep-border-color);
    border-radius: 4px;
    padding: 10px 12px;
    min-height: 36px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.cron-panel {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--ep-text-primary);
}

.cron-num-input {
    width: 70px !important;
    display: inline-block !important;
    height: 30px !important;
    text-align: center;
}

.cron-weekdays {
    display: inline-flex;
    gap: 4px;
    margin: 0 6px;
    flex-wrap: wrap;
}

.cron-wd-label {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    border: 1px solid var(--ep-border-color);
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    color: var(--ep-text-secondary);
    background: var(--ep-bg-module);
    transition: all 0.15s;
}

    .cron-wd-label input[type="checkbox"] {
        display: none;
    }

    .cron-wd-label:has(input:checked) {
        border-color: var(--ep-primary);
        color: var(--ep-primary);
        background: color-mix(in srgb, var(--ep-primary) 10%, transparent);
    }

#cronDisplay {
    font-family: Consolas, Monaco, 'Courier New', monospace;
}

.cron-preview-row {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.cronDisplay {
    display: inline-flex;
    max-width: 100%;
    min-width: 0;
    background: var(--ep-bg-module);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--ep-primary);
    overflow-wrap: anywhere;
    white-space: normal;
}

.cronHumanText {
    min-width: 0;
    font-size: 12px;
    color: var(--ep-text-secondary);
    overflow-wrap: anywhere;
}

.cronPreview {
    margin-top: 4px;
    padding: 4px 8px;
    background: var(--ep-fill-lighter);
    border-radius: 3px;
    font-size: 12px;
    color: var(--ep-text-tertiary);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.cronNextTimes {
    overflow-wrap: anywhere;
}

.cron-advanced-input {
    width: 280px !important;
    display: inline-block !important;
}

.cron-advanced-tip {
    color: var(--ep-text-secondary);
    font-size: 12px;
    margin-left: 6px;
}

/* ---- 定时任务 — 自动任务面板 ---- */
.auto-task-panel {
    margin-bottom: 8px;
}

.auto-task-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.auto-task-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ep-text-primary);
}

.auto-task-subtitle {
    font-size: 12px;
    color: var(--ep-text-tertiary);
    margin-top: 2px;
}

.auto-task-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.auto-task-guide {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.auto-task-guide-item {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    background: color-mix(in srgb, var(--ep-primary) 5%, var(--ep-bg-card));
}

.auto-task-guide-item span,
.auto-task-guide-item small {
    display: block;
    color: var(--ep-text-secondary);
    font-size: 12px;
    line-height: 1.45;
}

.auto-task-guide-item strong {
    display: block;
    margin: 4px 0;
    color: var(--ep-text-primary);
    font-size: 13px;
    line-height: 1.35;
}

.auto-task-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: var(--ep-bg-module);
    border-radius: 6px;
    text-align: center;
}

    .auto-task-metric > span {
        font-size: 12px;
        color: var(--ep-text-secondary);
    }

    .auto-task-metric .metric-value {
        font-size: 26px;
        font-weight: 700;
        color: var(--ep-primary);
        line-height: 1.2;
    }

        .auto-task-metric .metric-value.editable {
            cursor: pointer;
            border-bottom: 2px dashed color-mix(in srgb, var(--ep-primary) 40%, transparent);
            transition: border-color 0.2s;
        }

            .auto-task-metric .metric-value.editable:hover {
                border-color: var(--ep-primary);
            }

    .auto-task-metric .metric-recommend {
        font-size: 11px;
        color: var(--ep-text-tertiary);
        white-space: nowrap;
    }

.auto-task-note {
    font-size: 12px;
    color: var(--ep-text-tertiary);
    line-height: 1.6;
    padding: 6px 0 0;
}

.task-auto-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
}

.task-auto-help {
    width: 16px;
    height: 16px;
    color: var(--ep-text-secondary);
    cursor: help;
}

.task-auto-explain {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: var(--ep-radius-base);
    color: var(--ep-text-secondary);
    background: var(--ep-bg-module);
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .auto-task-panel {
        overflow: hidden;
    }

    .auto-task-head {
        align-items: flex-start;
        gap: 8px;
    }

    .auto-task-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        min-width: 0;
    }

    .auto-task-guide {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .auto-task-metric {
        min-width: 0;
        padding: 9px 6px;
        overflow: hidden;
    }

    .auto-task-metric > span,
    .auto-task-metric .metric-recommend {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
    }

    .auto-task-note {
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .ep-drawer {
        max-width: 100vw;
    }

    .ep-drawer-header {
        padding: 8px 14px;
    }

    .ep-drawer-body {
        padding: 14px;
    }

    .ep-drawer-footer {
        padding: 8px 14px;
        gap: 8px;
    }

    .ep-drawer-body .cron-form .layui-form-item {
        margin-bottom: 12px;
    }

    .ep-drawer-body .cron-form .layui-form-label {
        float: none;
        display: block;
        width: auto;
        padding: 0 0 6px;
        line-height: 1.4;
        text-align: left;
    }

    .ep-drawer-body .cron-form .layui-input-block {
        margin-left: 0;
        min-height: 0;
    }

    .cron-mode-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .cron-mode-tabs .cron-mode-btn {
        width: 100%;
        padding: 0 6px !important;
        margin-left: 0 !important;
    }

    .cron-panels {
        align-items: flex-start;
        padding: 10px;
    }

    .cron-panel {
        width: 100%;
        gap: 6px;
    }

    .cron-num-input {
        width: 64px !important;
        flex: 0 0 64px;
    }

    .cron-weekdays {
        width: 100%;
        margin: 4px 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .cron-wd-label {
        justify-content: center;
        min-height: 28px;
    }

    .cron-advanced-input {
        width: 100% !important;
        display: block !important;
    }

    .cron-advanced-tip {
        display: block;
        width: 100%;
        margin: 2px 0 0;
        line-height: 1.4;
    }

    .cron-preview-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .cronDisplay {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ---- 个人信息 — 算力中心 ---- */
.profile-page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-dashboard {
    max-width: 1440px;
    margin: 0 auto;
}

.profile-overview,
.profile-hero {
    display: grid;
    grid-template-columns: minmax(260px, .85fr) minmax(420px, 1.15fr);
    gap: 12px;
}

.profile-panel,
.profile-workspace {
    background: var(--ep-bg-card);
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    box-shadow: var(--ep-shadow-card);
}

.profile-panel {
    padding: 18px;
}

.profile-card-head,
.profile-balance-head,
.profile-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.profile-card-title {
    color: var(--ep-text-primary);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
}

.profile-card-subtitle {
    margin-top: 2px;
    color: var(--ep-text-tertiary);
    font-size: 12px;
    line-height: 1.4;
}

.profile-user-card,
.profile-identity-card {
    min-width: 0;
}

.profile-identity-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-balance-card,
.profile-wallet-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(var(--ep-primary-rgb), 0.08), transparent 42%),
        var(--ep-bg-card);
}

.profile-user {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.profile-user-main {
    flex: 1;
    min-width: 0;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ep-primary-light-9);
    color: var(--ep-primary);
    border: 1px solid var(--ep-primary-light-7);
    font-size: 24px;
    font-weight: 700;
}

.profile-name {
    color: var(--ep-text-primary);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-edit-form {
    display: none;
    margin-top: 0;
}

.profile-edit-form.open {
    display: block;
}

.profile-edit-fields {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-edit-fields .layui-input {
    max-width: 220px;
    min-width: 0;
}

.profile-meta {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    color: var(--ep-text-secondary);
    font-size: 12px;
}

.profile-meta span {
    min-width: 0;
    padding: 7px 9px;
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    background: var(--ep-bg-module);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-balance-head {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.profile-balance-actions,
.profile-wallet-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.profile-wallet-main {
    display: grid;
    grid-template-columns: minmax(150px, 0.62fr) minmax(260px, 1.38fr);
    gap: 12px;
    position: relative;
    z-index: 1;
}

.profile-balance-primary {
    min-height: 132px;
    padding: 18px;
    border-radius: var(--ep-radius-base);
    background:
        linear-gradient(150deg, rgba(var(--ep-primary-rgb), 0.14), rgba(var(--ep-primary-rgb), 0.04)),
        var(--ep-bg-module);
    border: 1px solid rgba(var(--ep-primary-rgb), 0.16);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-balance-title {
    color: var(--ep-text-secondary);
    font-size: 13px;
}

.profile-balance-value {
    color: var(--ep-primary);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
}

.profile-balance-unit {
    margin-left: 4px;
    color: var(--ep-text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.profile-stat {
    padding: 13px 14px;
    border-radius: var(--ep-radius-base);
    background: var(--ep-fill-lighter);
    border: 1px solid var(--ep-border-lighter);
    position: relative;
    z-index: 1;
}

.profile-stat span {
    display: block;
    color: var(--ep-text-secondary);
    font-size: 12px;
}

.profile-stat strong {
    display: block;
    margin-top: 4px;
    color: var(--ep-text-primary);
    font-size: 18px;
}

.profile-recharge {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 260px;
}

.profile-recharge .layui-input {
    flex: 1;
    min-width: 150px;
}

.profile-workspace {
    padding: 16px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.profile-record-card {
    gap: 12px;
}

.profile-chart-panel,
.profile-analytics-grid {
    display: grid;
    grid-template-columns: minmax(170px, 210px) minmax(0, 1fr);
    gap: 12px;
    min-height: 300px;
}

.profile-chart-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.profile-chart-summary div {
    padding: 12px 13px;
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    background: var(--ep-fill-lighter);
}

.profile-chart-summary span {
    display: block;
    color: var(--ep-text-secondary);
    font-size: 12px;
    line-height: 1.3;
}

.profile-chart-summary strong {
    display: block;
    margin-top: 3px;
    color: var(--ep-text-primary);
    font-size: 18px;
    line-height: 1.25;
}

.profile-chart-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 12px;
    min-width: 0;
}

.profile-chart-board {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    background: var(--ep-bg-card);
}

.profile-chart-board-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.profile-chart-title {
    color: var(--ep-text-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.profile-chart-desc {
    margin-top: 2px;
    color: var(--ep-text-tertiary);
    font-size: 12px;
    line-height: 1.35;
}

.profile-chart {
    min-height: 230px;
    width: 100%;
}

.compute-flow-hint {
    max-width: 260px;
    padding: 4px 8px;
    border-radius: var(--ep-radius-base);
    background: rgba(var(--ep-primary-rgb), 0.08);
    border: 1px solid rgba(var(--ep-primary-rgb), 0.14);
    color: var(--ep-primary);
    font-size: 12px;
    line-height: 1.35;
    text-align: right;
}

.profile-breakdown-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    min-width: 0;
}

.profile-breakdown-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    background: var(--ep-fill-lighter);
}

.profile-breakdown-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.profile-breakdown-title {
    color: var(--ep-text-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.profile-breakdown-note {
    color: var(--ep-text-tertiary);
    font-size: 12px;
    line-height: 1.35;
    text-align: right;
}

.profile-breakdown-list {
    display: grid;
    gap: 8px;
}

.profile-breakdown-item {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    background: var(--ep-bg-card);
    color: var(--ep-text-primary);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.profile-breakdown-item:hover,
.profile-breakdown-item.active {
    border-color: rgba(var(--ep-primary-rgb), 0.48);
    background: rgba(var(--ep-primary-rgb), 0.06);
    box-shadow: 0 0 0 2px rgba(var(--ep-primary-rgb), 0.08);
}

.profile-breakdown-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.profile-breakdown-label {
    min-width: 0;
    color: var(--ep-text-primary);
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-breakdown-meta {
    color: var(--ep-text-tertiary);
    font-size: 12px;
    white-space: nowrap;
}

.profile-breakdown-bar {
    display: block;
    height: 7px;
    margin: 8px 0 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--ep-border-lighter);
}

.profile-breakdown-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ep-primary);
}

.profile-breakdown-item strong {
    display: block;
    color: var(--ep-text-primary);
    font-size: 13px;
    line-height: 1.2;
    text-align: right;
}

.profile-breakdown-empty {
    padding: 18px 10px;
    border: 1px dashed var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    color: var(--ep-text-tertiary);
    font-size: 12px;
    text-align: center;
}

.profile-table-card {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.profile-record-table-shell {
    border: 1px solid var(--ep-border-lighter);
    border-radius: var(--ep-radius-base);
    background: var(--ep-bg-card);
}

.profile-section-head {
    margin-bottom: 0;
}

.profile-section-title {
    color: var(--ep-text-primary);
    font-weight: 700;
    font-size: 15px;
}

.profile-filter {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.profile-filter .layui-input,
.profile-filter .layui-form-select {
    width: 150px;
}

.profile-filter #recordDateRange {
    width: 210px;
}

@media (max-width: 768px) {
    .profile-page {
        gap: 10px;
    }

    .profile-dashboard {
        max-width: none;
    }

    .profile-overview,
    .profile-hero {
        grid-template-columns: 1fr;
    }

    .profile-panel,
    .profile-workspace {
        padding: 14px;
    }

    .profile-balance-head,
    .profile-balance-actions,
    .profile-wallet-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-section-head,
    .profile-recharge,
    .profile-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-chart-panel {
        grid-template-columns: 1fr;
    }

    .profile-chart-shell {
        grid-template-columns: 1fr;
    }

    .profile-chart-board-head,
    .profile-breakdown-head {
        align-items: stretch;
        flex-direction: column;
    }

    .compute-flow-hint,
    .profile-breakdown-note {
        max-width: none;
        text-align: left;
    }

    .profile-wallet-main {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .profile-balance-primary {
        min-height: 96px;
        padding: 14px;
    }

    .profile-meta {
        grid-template-columns: 1fr;
    }

    .profile-edit-fields {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-edit-fields .layui-input {
        max-width: none;
    }

    .profile-chart-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-stat {
        padding: 10px 11px;
    }

    .profile-filter .layui-input,
    .profile-filter .layui-form-select,
    .profile-filter #recordDateRange {
        width: 100%;
    }

    .profile-balance-actions,
    .profile-recharge {
        width: 100%;
        min-width: 0;
    }

    .profile-filter .layui-input,
    .profile-filter .layui-btn,
    .profile-balance-actions > .layui-btn,
    .profile-recharge .layui-btn,
    .profile-edit-fields .layui-btn {
        width: 100%;
    }
}
