@charset "UTF-8";
@import url("./background.css");
@import url("./border-reset.css");
/* 公共变量定义 - 可通过后台控制 */
:root {
    /* 布局变量 */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 64px;
    --sidebar-toggle-space: 64px;
    --shell-top-gap: 8px;

    /* 品牌色 - 自定义色系 */
    --groot-ui-color-brand-1: #FFF8F0; /* 最浅色 */
    --groot-ui-color-brand-2: #FFE9D2;
    --groot-ui-color-brand-3: #fde8d0;
    --groot-ui-color-brand-4: #fef5ed;
    --groot-ui-color-brand-5: #FFB357;
    --groot-ui-color-brand-6: #f57914; /* 主色调 */
    --groot-ui-color-brand-7: #E68526;
    --groot-ui-color-brand-8: #d46a0e;
    --groot-ui-color-brand-9: #b45309; /* 最深色 */

    /* 功能色 */
    --fd-color-primary: var(--groot-ui-color-brand-6);
    --fd-color-success: #4CAF50;
    --fd-color-warning: var(--site-primary);
    --fd-color-danger: #F44336;
    --fd-color-info: #2196F3;

    /* 站点主题色 - 统一配色方案 */
    --site-primary: #f57914;
    --site-primary-light: #fde8d0;
    --site-primary-dark: #d46a0e;
    --site-primary-accent: #fef5ed;
    --site-primary-strong: #b45309;
    --site-primary-rgba: rgba(245, 121, 20, 0.1);
    --site-primary-border: rgba(245, 121, 20, 0.22);
    --site-primary-shadow: rgba(245, 121, 20, 0.18);
    
    /* Logo 区域配色 */
    --logo-bg-gradient-start: var(--site-primary-accent);
    --logo-bg-gradient-end: var(--site-primary-light);
    --logo-border: var(--site-primary-border);
    --logo-icon-color: var(--site-primary-dark);
    
    /* 用户头像配色 */
    --avatar-bg: var(--site-primary);
    --avatar-text: #ffffff;
    --avatar-shadow: var(--site-primary-shadow);

    /* 菜单配色 - 10分标准柔和版 */
    --menu-primary: var(--admin-menu-active-text);
    --menu-hover: var(--admin-menu-hover-bg);
    --menu-active: var(--admin-menu-active-bg);
    --menu-focus-shadow: var(--site-primary-shadow);

    /* 侧边栏配色 - 10分标准柔和版 */
    --sidebar-bg: #FFFFFF;
    --sidebar-bg-deep: #FFFFFF;
    --sidebar-bg-soft: var(--admin-menu-open-bg);
    --sidebar-hover: var(--admin-menu-hover-bg);
    --sidebar-active: var(--admin-menu-active-bg);
    --sidebar-text: #2c3e50;
    --sidebar-text-strong: #1a2332;
    --sidebar-muted: #7f8c9b;
    --sidebar-active-border: var(--admin-menu-active-border);
    --sidebar-icon-bg: #ffffff;
    --sidebar-icon-hover-bg: var(--admin-menu-icon-hover-bg);
    --sidebar-icon-active-bg: transparent;
    --sidebar-icon-active-text: var(--admin-menu-active-text);
    --sidebar-arrow-color: #7f8c9b;
    --sidebar-arrow-active-color: var(--admin-menu-active-text);

    /* 头部导航配色 */
    --header-action-bg: #ffffff;
    --header-action-hover-bg: var(--admin-menu-hover-bg);
    --header-action-text: #475467;
    --header-action-hover-text: var(--admin-menu-hover-text);
    --header-action-border: transparent;
    --header-action-hover-border: transparent;
    --header-user-bg: transparent;
    --header-user-hover-bg: var(--admin-menu-hover-bg);
    --header-avatar-bg: var(--site-primary);
    --header-avatar-border: transparent;
    --header-avatar-text: #ffffff;
    --header-menu-hover-bg: var(--admin-menu-hover-bg);
    --header-menu-danger-bg: #fff1f0;
    --header-menu-danger-text: #b42318;

    /* 文本色 */
    --text-color-primary: #212121;
    --text-color-regular: #424242;
    --text-color-secondary: #757575;
    --text-color-placeholder: #9E9E9E;
    --text-color: #101828;
    --text-regular: #475467;
    --text-secondary: #98a2b3;
    --muted-color: #667085;

    /* 边框色 */
    --border-color-light: #E0E0E0;
    --border-color-base: #BDBDBD;
    --border-color-dark: #9E9E9E;
    --border-color: #e2e8f0;
    --border-light: #edf2f7;

    /* 背景色 */
    --bg-color-primary: var(--sys-bg-white, #FFFFFF);
    --bg-color-secondary: var(--sys-bg-soft, #F5F5F5);
    --bg-color-tertiary: var(--sys-bg-muted, #EEEEEE);
    --body-bg: #f3f6fa;
    --surface-color: #ffffff;
    --surface-soft: #f7fafc;

    /* 后台外壳配色 */
    --admin-shell-bg: #f5f7fb;
    --admin-shell-header-bg: #ffffff;
    --admin-shell-header-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    --admin-shell-panel-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
    --admin-shell-soft-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    --admin-shell-dropdown-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    --admin-shell-popover-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    --admin-loading-overlay-bg: rgba(255, 255, 255, 0.9);
    --admin-sidebar-bg-start: #ffffff;
    --admin-sidebar-bg-end: #ffffff;
    --admin-sidebar-panel-bg: #ffffff;
    --admin-sidebar-border: #eef1f5;
    --admin-sidebar-panel-shadow: none;
    --admin-sidebar-scroll-thumb: #cbd5e1;
    --admin-sidebar-title-bg: #ffffff;
    --admin-sidebar-title-text: #64748b;
    --admin-sidebar-title-border: transparent;
    --admin-sidebar-toggle-text: #5c726d;
    --admin-sidebar-toggle-bg: #ffffff;
    --admin-sidebar-toggle-hover-bg: var(--admin-menu-hover-bg);
    --admin-sidebar-toggle-hover-text: var(--admin-menu-hover-text);
    --admin-sidebar-toggle-border: transparent;
    --admin-sidebar-toggle-hover-border: transparent;
    --admin-menu-hover-bg: #f7f8fa;
    --admin-menu-hover-text: #f57914;
    --admin-menu-open-bg: #f8fafc;
    --admin-menu-open-text: #334155;
    --admin-menu-active-bg: var(--admin-menu-hover-bg);
    --admin-menu-active-text: #f57914;
    --admin-menu-active-border: #f57914;
    --admin-menu-active-ring: #fde8d0;
    --admin-menu-child-line: transparent;
    --admin-menu-child-line-display: none;
    --admin-menu-icon-bg: #f8fafc;
    --admin-menu-icon-hover-bg: #fff7ed;
    --admin-menu-icon-active-text: #f57914;
    --admin-tab-bg: var(--admin-shell-header-bg);
    --admin-tab-shadow: 0 4px 12px rgba(15, 23, 42, 0.035);
    --admin-tab-button-bg: var(--surface-color);
    --admin-tab-button-text: #64748b;
    --admin-tab-button-hover-bg: var(--admin-menu-hover-bg);
    --admin-tab-button-hover-text: var(--admin-menu-hover-text);
    --admin-tab-menu-hover-bg: var(--admin-menu-hover-bg);
    --admin-tab-menu-hover-text: var(--admin-menu-hover-text);
    --admin-tab-item-bg: transparent;
    --admin-tab-item-text: #475569;
    --admin-tab-item-hover-bg: var(--admin-menu-hover-bg);
    --admin-tab-item-hover-text: var(--admin-menu-hover-text);
    --admin-tab-item-active-bg: var(--admin-menu-active-bg);
    --admin-tab-item-active-text: var(--admin-menu-active-text);
    --admin-tab-item-active-border: transparent;
    --admin-tab-close-text: #94a3b8;
    --admin-tab-close-hover-bg: var(--admin-menu-icon-hover-bg);
    --admin-tab-close-hover-text: var(--admin-menu-hover-text);
    --admin-tab-close-active-text: #94a3b8;
    --admin-iframe-bg: var(--surface-color);
    --admin-danger-soft-bg: #fff1f0;
    --toolbar-primary-bg: var(--site-primary);
    --toolbar-primary-hover-bg: var(--site-primary-dark);
    --toolbar-primary-text: #ffffff;
    --toolbar-primary-shadow: var(--site-primary-shadow);
    /* 工具栏主按钮 - 实心柔和渐变 */
    --toolbar-menu-style-bg: linear-gradient(180deg, var(--site-primary) 0%, var(--site-primary-dark) 100%);
    --toolbar-menu-style-bg-hover: linear-gradient(180deg, var(--site-primary-dark) 0%, var(--site-primary-strong) 100%);
    --toolbar-menu-style-text: #ffffff;
    --toolbar-menu-style-border: transparent;
    --toolbar-menu-style-border-hover: transparent;
    --toolbar-menu-style-shadow: 0 2px 4px rgba(245, 121, 20, 0.15);
    --toolbar-menu-style-shadow-hover: 0 4px 8px rgba(245, 121, 20, 0.25);
    /* 工具栏次要按钮 - 白色背景 */
    --toolbar-muted-style-bg: #ffffff;
    --toolbar-muted-style-bg-hover: var(--admin-menu-hover-bg);
    --toolbar-muted-style-text: #475467;
    --toolbar-muted-style-text-hover: var(--admin-menu-hover-text);
    --toolbar-muted-style-border: #d8e0ea;
    --toolbar-muted-style-border-hover: transparent;
    --toolbar-muted-style-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    --toolbar-muted-style-shadow-hover: 0 2px 6px rgba(15, 23, 42, 0.08);
    /* 删除按钮 - 浅红背景 */
    --toolbar-danger-style-bg: #fff1f0;
    --toolbar-danger-style-bg-hover: #fff6f5;
    --toolbar-danger-style-text: #b42318;
    --toolbar-danger-style-text-hover: #b42318;
    --toolbar-danger-style-border: #fecaca;
    --toolbar-danger-style-border-hover: #f04438;
    --toolbar-danger-style-shadow: 0 1px 2px rgba(180, 35, 24, 0.05);
    --toolbar-danger-style-shadow-hover: 0 4px 8px rgba(240, 68, 56, 0.12);
    --toolbar-neutral-bg: #ffffff;
    --toolbar-neutral-hover-bg: var(--admin-menu-hover-bg);
    --toolbar-neutral-text: #475467;
    --toolbar-neutral-hover-text: var(--admin-menu-hover-text);
    --profile-page-bg: var(--admin-shell-bg);
    --profile-card-bg: var(--surface-color);
    --profile-card-shadow: var(--admin-shell-soft-shadow);
    --profile-hero-bg: linear-gradient(135deg, var(--site-primary-accent) 0%, #ffffff 58%, #f8fafc 100%);
    --profile-avatar-overlay-bg: rgba(16, 24, 40, 0.48);
    --profile-detail-bg: #f8fafc;
    --profile-detail-hover-bg: var(--admin-menu-hover-bg);
    --profile-title-text: var(--text-color);
    --profile-muted-text: var(--muted-color);
    --profile-value-text: var(--text-color);
    --profile-copy-text: var(--text-secondary);
    --profile-status-success: #16a34a;
    --profile-status-success-bg: #ecfdf3;
    --profile-status-danger: #dc2626;
    --profile-status-danger-bg: #fff1f0;
    --profile-strength-track: #e5e7eb;
    --profile-strength-weak: #ef4444;
    --profile-strength-normal: #f59e0b;
    --profile-strength-strong: #16a34a;
    --profile-strength-very-strong: var(--site-primary);
    --profile-disabled-bg: #e5e7eb;
    --profile-disabled-text: #98a2b3;

    /* 状态色 */
    --success-color: var(--site-primary);
    --warning-color: #e6a23c;
    --danger-color: #f56c6c;
    --info-color: #909399;

    /* 阴影 */
    --box-shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --box-shadow-base: 0 4px 8px rgba(0, 0, 0, 0.15);
    --box-shadow-dark: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.layui-layer-btn a.layui-layer-btn0 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: var(--site-primary);
    border-color: var(--site-primary);
    color: #ffffff;
    transition: all 0.2s ease;
}

.layui-layer-btn a.layui-layer-btn0:hover {
    background-color: var(--site-primary-dark);
    border-color: var(--site-primary-dark);
}

.beian-footer {
    max-width: 760px;
    padding: 0 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    color: var(--muted-color);
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

.beian-footer a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    text-decoration: none;
}

.beian-footer a:hover {
    color: var(--site-primary);
    text-decoration: underline;
}

.beian-footer img {
    width: 14px;
    height: 14px;
    display: block;
    flex: 0 0 14px;
}

.layui-layer-btn a.layui-layer-btn0:not(.layui-btn-disabled):not(.layui-layer-btn-is-loading)::before {
    content: "\e605";
    font-family: layui-icon !important;
    font-size: 14px;
    font-style: normal;
    line-height: 1;
}

.layui-layer-btn a.layui-layer-btn0.layui-btn-disabled::before,
.layui-layer-btn a.layui-layer-btn0.layui-layer-btn-is-loading::before {
    content: none;
}

.layui-layer-btn a.layui-layer-btn0.layui-btn-disabled {
    background-color: #e5e7eb;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}
