/**
 * 嘟嘟到家 - 后台管理样式
 * 规范：所有自定义类名使用 mb_xx_xx 前缀，与 Layui 原生样式隔离
 */

/* ===== Layui 布局覆盖 ===== */
.layui-layout-admin .layui-header {
    height: 60px !important;
    line-height: 60px !important;
}
.layui-layout-admin .layui-side {
    top: 60px !important;
    width: 180px !important;
}
.layui-layout-admin .layui-body {
    position: absolute !important;
    left: 180px !important;
    right: 0 !important;
    top: 60px !important;
    bottom: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 0 !important;
}

/* ===== 页面容器 ===== */
.mb_page_container {
    padding: 20px;
    min-height: calc(100vh - 130px);
    background: #f5f7fa;
}

/* ===== 顶部导航栏 ===== */
.mb_header_wrap {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 15px rgba(102, 126, 234, 0.35);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.mb_header_wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.mb_header_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.mb_header_logo {
    display: flex;
    align-items: center;
    height: 60px;
    padding-left: 24px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}
.mb_header_logo i {
    font-size: 24px;
    margin-right: 10px;
    opacity: 0.95;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.mb_header_nav {
    height: 60px;
    line-height: 60px;
    margin-right: 10px;
    background: transparent !important;
}
.mb_header_nav.layui-nav {
    background: transparent !important;
    padding: 0 !important;
}
.mb_header_nav.layui-nav .layui-nav-item {
    line-height: 60px !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}
.mb_header_nav.layui-nav .layui-nav-item > a {
    padding: 0 15px !important;
    background: transparent !important;
    height: 60px !important;
    line-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}
.mb_header_actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 20px;
}
.mb_header_notify {
    position: relative;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}
.mb_header_notify:hover {
    background: rgba(255,255,255,0.15);
}
.mb_header_notify i {
    font-size: 20px;
    color: #fff;
}
.mb_header_notify_badge {
    position: absolute;
    top: 10px;
    right: 0px;
    min-width: 16px;
    height: 16px;
    background: #f56c6c;
    border-radius: 10px;
    font-size: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    font-weight: 600;
    line-height: 1;
}
.mb_header_home {
    position: relative;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mb_header_home:hover {
    background: rgba(255,255,255,0.15);
}
.mb_header_home i {
    font-size: 20px;
    color: #fff;
}
.mb_home_links {
    padding: 20px;
}
.mb_home_link_item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f7f8fa;
    border-radius: 10px;
    margin-bottom: 14px;
}
.mb_home_link_icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}
.mb_home_link_icon i {
    font-size: 22px;
    color: #fff;
}
.mb_home_link_icon.h5 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.mb_home_link_icon.mp {
    background: linear-gradient(135deg, #07c160 0%, #10b981 100%);
}
.mb_home_link_info {
    flex: 1;
    min-width: 0;
}
.mb_home_link_title {
    font-size: 15px;
    font-weight: 600;
    color: #2f3542;
    margin-bottom: 4px;
}
.mb_home_link_url {
    font-size: 12px;
    color: #74798c;
    word-break: break-all;
    line-height: 1.4;
}
.mb_home_link_desc {
    font-size: 12px;
    color: #999;
}
.mb_home_link_copy {
    padding: 6px 14px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.mb_home_link_copy:hover {
    opacity: 0.85;
}
.mb_home_tip {
    margin-top: 10px;
    padding: 12px 14px;
    background: #ecf5ff;
    border-radius: 8px;
    font-size: 12px;
    color: #409eff;
    line-height: 1.6;
}
.mb_header_user {
    display: flex !important;
    align-items: center !important;
    padding: 0 12px !important;
    border-radius: 20px !important;
    transition: background 0.2s !important;
    cursor: pointer;
    height: 60px !important;
    line-height: 60px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}
.mb_header_user:hover {
    background: rgba(255,255,255,0.15) !important;
}
.mb_header_avatar {
    width: 36px;
    height: 36px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}
.mb_header_avatar i {
    line-height: 1;
    font-size: 24px;
    color: #fff;
}
.mb_header_name {
    color: #fff;
    font-size: 14px;
    margin-right: 6px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}
.mb_header_logout {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 4px;
    transition: all 0.2s;
}
.mb_header_logout:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}
.mb_header_nav .layui-nav-item > a:hover {
    background: transparent !important;
}
.mb_header_nav .layui-nav-item .layui-nav-more {
    position: absolute !important;
    border-color: rgba(255,255,255,0.6) transparent transparent !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    right: 0 !important;
    margin-right: 0 !important;
}
.mb_header_nav .layui-nav-item:hover .layui-nav-more {
    border-color: transparent transparent rgba(255,255,255,0.6) !important;
}
.mb_header_nav .layui-nav-item.layui-nav-itemed .layui-nav-more {
    border-color: transparent transparent rgba(255,255,255,0.6) !important;
}
.mb_header_nav .layui-nav-bar {
    display: none !important;
}
.mb_header_nav .layui-nav-item a {
    color: rgba(255,255,255,0.7) !important;
}
.mb_header_nav .layui-nav-item a:hover {
    color: #fff !important;
}
.mb_header_nav .layui-nav-child {
    top: 56px !important;
    right: 0 !important;
    left: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
    border: none !important;
    background: #fff !important;
    padding: 4px 0 !important;
}
.mb_header_nav .layui-nav-child dd {
    line-height: 36px !important;
}
.mb_header_nav .layui-nav-child dd a {
    color: #333 !important;
    padding: 0 20px !important;
    line-height: 36px !important;
}
.mb_header_nav .layui-nav-child dd a:hover {
    background: rgba(102, 126, 234, 0.08) !important;
    color: #667eea !important;
}

/* ===== 面包屑导航 ===== */
.mb_breadcrumb {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #666;
}
.mb_breadcrumb_item {
    display: flex;
    align-items: center;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}
.mb_breadcrumb_item:hover {
    color: #667eea;
}
.mb_breadcrumb_item.active {
    color: #2f3542;
    font-weight: 500;
}
.mb_breadcrumb_separator {
    margin: 0 8px;
    color: #ccc;
    font-size: 12px;
}
.mb_breadcrumb_icon {
    margin-right: 6px;
    font-size: 14px;
}

/* ===== 侧边菜单栏 ===== */
.mb_side_wrap {
    background: linear-gradient(180deg, #2f3542 0%, #1f2530 100%);
    min-height: calc(100vh - 60px);
    width: 180px;
    position: fixed;
    left: 0;
    top: 60px;
    z-index: 100;
    transition: width 0.3s;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.mb_side_scroll {
    height: calc(100vh - 60px);
    overflow-y: auto;
}
.mb_side_scroll::-webkit-scrollbar {
    width: 4px;
}
.mb_side_scroll::-webkit-scrollbar-track {
    background: #2f3542;
}
.mb_side_scroll::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 2px;
}
.mb_side_menu {
    padding: 10px 0;
}
.mb_side_group {
    padding: 12px 20px 6px;
    font-size: 11px;
    color: #5a6673;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mb_side_item {
    position: relative;
}
.mb_side_item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.mb_side_item.layui-this::before {
    opacity: 1;
}
.mb_side_item > a {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    color: #b8c7ce;
    font-size: 14px;
    transition: all 0.25s;
    border-radius: 0 6px 6px 0;
    margin-left: 4px;
}
.mb_side_item > a:hover {
    color: #fff;
    background: rgba(102, 126, 234, 0.3);
    transform: translateX(2px);
}
.mb_side_item.layui-this > a {
    color: #fff !important;
    background: rgba(102, 126, 234, 0.4) !important;
    box-shadow: inset 0 0 20px rgba(102, 126, 234, 0.3);
}
.mb_side_item.layui-nav-itemed > a {
    background: rgba(102, 126, 234, 0.3);
}
.mb_side_icon {
    font-size: 18px;
    width: 24px;
    margin-right: 10px;
    text-align: center;
    transition: all 0.3s;
}
.mb_side_item > a:hover .mb_side_icon {
    color: #667eea;
    transform: scale(1.1);
}
.mb_side_item.layui-this .mb_side_icon {
    color: #667eea;
}
.mb_side_cite {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}
.mb_side_more {
    font-size: 12px;
    transition: transform 0.3s;
    color: #5a6673;
}
.mb_side_item.layui-nav-itemed .mb_side_more {
    transform: rotate(90deg);
    color: #667eea;
}
.mb_side_child {
    background: rgba(0,0,0,0.2);
}
.mb_side_child dd {
    padding-left: 20px !important;
}
.mb_side_child dd a {
    padding: 10px 20px;
    color: #a0aec0;
    font-size: 13px;
    transition: all 0.2s;
    border-radius: 0 6px 6px 0;
    margin-left: 4px;
    display: flex;
    align-items: center;
}
.mb_side_child dd a:hover {
    color: #fff;
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(2px);
}
.mb_side_child dd.layui-this a {
    color: #fff;
    background: rgba(102, 126, 234, 0.4);
    font-weight: 500;
}
.mb_side_child_icon {
    font-size: 14px;
    width: 18px;
    margin-right: 8px;
    text-align: center;
    color: #6b7280;
    transition: all 0.25s;
}
.mb_side_child dd a:hover .mb_side_child_icon {
    color: #f0f0f0;
    transform: scale(1.1);
}
.mb_side_child dd.layui-this .mb_side_child_icon {
    color: #f0f0f0;
}

/* iconpark SVG 图标 */
.mb_iconpark {
    display: inline-block;
    vertical-align: middle;
    color: currentColor;
    fill: currentColor;
}
.mb_side_icon.mb_iconpark {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-right: 10px;
    opacity: 0.85;
}
.mb_side_child_icon.mb_iconpark {
    width: 14px;
    height: 14px;
    object-fit: contain;
    margin-right: 8px;
}
.mb_side_item > a:hover .mb_side_icon.mb_iconpark {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== 统计卡片 ===== */
.mb_stat_card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.mb_stat_card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}
.mb_stat_card:hover::after {
    opacity: 1;
}
.mb_stat_card:hover {
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px) scale(1.02);
}
.mb_stat_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}
.mb_stat_content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}
.mb_stat_info {
    flex: 1;
}
.mb_stat_value {
    font-size: 36px;
    font-weight: 700;
    color: #2f3542;
    line-height: 1.2;
    margin-bottom: 8px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -1px;
}
.mb_stat_label {
    font-size: 14px;
    color: #8a9099;
    font-weight: 500;
}
.mb_stat_icon_wrap {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transition: all 0.3s;
    position: relative;
}
.mb_stat_card:hover .mb_stat_icon_wrap {
    transform: scale(1.15);
}
.mb_stat_icon_wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.mb_stat_icon {
    font-size: 34px;
    color: #667eea;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}
.mb_stat_card:hover .mb_stat_icon {
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}
.mb_stat_card.mb_stat_primary .mb_stat_value { color: #667eea; }
.mb_stat_card.mb_stat_success .mb_stat_value { color: #1ab394; }
.mb_stat_card.mb_stat_warning .mb_stat_value { color: #e6a23c; }
.mb_stat_card.mb_stat_danger .mb_stat_value { color: #f56c6c; }
.mb_stat_card.mb_stat_primary::before { background: linear-gradient(180deg, #667eea 0%, #764ba2 100%); }
.mb_stat_card.mb_stat_success::before { background: linear-gradient(180deg, #1ab394 0%, #10b981 100%); }
.mb_stat_card.mb_stat_warning::before { background: linear-gradient(180deg, #e6a23c 0%, #f59e0b 100%); }
.mb_stat_card.mb_stat_danger::before { background: linear-gradient(180deg, #f56c6c 0%, #ef4444 100%); }
.mb_stat_card.mb_stat_success .mb_stat_icon_wrap { background: linear-gradient(135deg, rgba(26, 179, 148, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%); }
.mb_stat_card.mb_stat_success .mb_stat_icon { color: #1ab394; }
.mb_stat_card.mb_stat_warning .mb_stat_icon_wrap { background: linear-gradient(135deg, rgba(230, 162, 60, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%); }
.mb_stat_card.mb_stat_warning .mb_stat_icon { color: #e6a23c; }
.mb_stat_card.mb_stat_danger .mb_stat_icon_wrap { background: linear-gradient(135deg, rgba(245, 108, 108, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%); }
.mb_stat_card.mb_stat_danger .mb_stat_icon { color: #f56c6c; }

/* ===== 通用卡片 ===== */
.mb_card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.mb_card:hover {
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
}
.mb_card_header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}
.mb_card_title {
    font-size: 16px;
    font-weight: 600;
    color: #2f3542;
    display: flex;
    align-items: center;
    position: relative;
}
.mb_card_title::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}
.mb_card_title i {
    font-size: 18px;
    margin-right: 10px;
    color: #667eea;
}
.mb_card_actions {
    display: flex;
    gap: 10px;
}
.mb_card_body {
    padding: 24px;
}
.mb_card_footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
}

/* ===== 搜索表单区 ===== */
.mb_search_box {
    background: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}
.mb_search_form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.mb_search_item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mb_search_label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    font-weight: 500;
}
.mb_search_input {
    height: 36px;
    border-radius: 6px;
    border: 1px solid #e6e6e6;
    padding: 0 12px;
    font-size: 13px;
    transition: all 0.25s;
    background: #fff;
}
.mb_search_input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}
.mb_search_select {
    height: 36px;
    border-radius: 6px;
    border: 1px solid #e6e6e6;
    padding: 0 12px;
    font-size: 13px;
    transition: all 0.25s;
    background: #fff;
    min-width: 120px;
}
.mb_search_select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* ===== 搜索栏美化 ===== */
.mb_search_bar {
    background: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}
.mb_search_bar .layui-form-item {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.mb_search_bar .layui-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mb_search_bar .layui-form-label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    font-weight: 500;
    padding: 9px 0;
    width: auto;
    text-align: left;
}
.mb_search_bar .layui-input-inline {
    vertical-align: middle;
}
.mb_search_bar .layui-input {
    height: 36px;
    border-radius: 6px;
    border: 1px solid #e6e6e6;
    padding: 0 12px;
    font-size: 13px;
    transition: all 0.25s;
    background: #fff;
}
.mb_search_bar .layui-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}
.mb_search_bar .layui-select {
    height: 36px;
    border-radius: 6px;
    border: 1px solid #e6e6e6;
    padding: 0 12px;
    font-size: 13px;
    transition: all 0.25s;
    background: #fff;
    min-width: 120px;
}
.mb_search_bar .layui-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}
.mb_search_bar .layui-select .layui-edge {
    right: 8px;
    border-top-color: #999;
}
.mb_search_bar .layui-form-select {
    display: inline-block;
    vertical-align: middle;
}
.mb_search_bar .layui-form-select .layui-select-title {
    height: 36px;
    border-radius: 6px;
    border: 1px solid #e6e6e6;
    padding: 0 12px;
    font-size: 13px;
    transition: all 0.25s;
    background: #fff;
    min-width: 120px;
}
.mb_search_bar .layui-form-select .layui-select-title input {
    height: 34px;
    line-height: 34px;
    font-size: 13px;
    color: #333;
}
.mb_search_bar .layui-form-select:hover .layui-select-title {
    border-color: #d4d7de;
}
.mb_search_bar .layui-form-select.layui-form-selected .layui-select-title {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.mb_search_bar .layui-form-select .layui-edge {
    right: 8px;
    border-top-color: #999;
    border-width: 5px;
}
.mb_search_bar .layui-btn {
    height: 36px;
    line-height: 36px;
    padding: 0 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}
.mb_search_bar .layui-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.mb_search_bar .layui-btn-normal {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
}
.mb_search_bar .layui-btn-normal:hover {
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

/* ===== 表格工具栏 ===== */
.mb_table_toolbar {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mb_table_actions {
    display: flex;
    gap: 8px;
}

/* ===== 表格容器 ===== */
.mb_table_box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    overflow: hidden;
}
.mb_table_inner {
    width: 100%;
    border-collapse: collapse;
}
.mb_table_inner th {
    background: linear-gradient(180deg, #fafbfc 0%, #f5f7fa 100%);
    font-weight: 600;
    color: #4a5568;
    font-size: 13px;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid #e8e8e8;
    position: relative;
}
.mb_table_inner th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}
.mb_table_inner td {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #2f3542;
    transition: background 0.2s;
}
.mb_table_inner tr:hover {
    background: #fafbfc;
}
.mb_table_inner tr:hover td {
    background: rgba(102, 126, 234, 0.02);
}
.mb_table_inner tr:last-child td {
    border-bottom: none;
}
.mb_table_empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}
.mb_table_empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 12px;
    display: block;
}

/* ===== 表单页面 ===== */
.mb_form_box {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    max-width: 900px;
}
.mb_form_title {
    font-size: 18px;
    font-weight: 600;
    color: #2f3542;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #667eea;
    display: flex;
    align-items: center;
}
.mb_form_title i {
    font-size: 20px;
    margin-right: 10px;
    color: #667eea;
}
.mb_form_group {
    margin-bottom: 20px;
}
.mb_form_label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}
.mb_form_label.required::after {
    content: '*';
    color: #f56c6c;
    margin-left: 4px;
}
.mb_form_control {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #d9d9d9;
    padding: 0 14px;
    font-size: 14px;
    transition: all 0.2s;
    background: #fff;
}
.mb_form_control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}
.mb_form_textarea {
    height: 100px;
    padding: 12px 14px;
    resize: vertical;
}
.mb_form_tip {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* ===== 详情页 ===== */
.mb_detail_box {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    max-width: 900px;
}
.mb_detail_title {
    font-size: 18px;
    font-weight: 600;
    color: #2f3542;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #667eea;
}
.mb_detail_table {
    width: 100%;
    border-collapse: collapse;
}
.mb_detail_table tr:nth-child(odd) {
    background: #fafbfc;
}
.mb_detail_table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.mb_detail_table td:first-child {
    width: 140px;
    color: #666;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.03);
    border-right: 1px solid #f0f0f0;
}
.mb_detail_table td:last-child {
    color: #2f3542;
}

/* ===== 状态标签 ===== */
.mb_tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.mb_tag_success {
    background: rgba(26, 179, 148, 0.1);
    color: #1ab394;
}
.mb_tag_danger {
    background: rgba(245, 108, 108, 0.1);
    color: #f56c6c;
}
.mb_tag_warning {
    background: rgba(230, 162, 60, 0.1);
    color: #e6a23c;
}
.mb_tag_info {
    background: rgba(64, 158, 255, 0.1);
    color: #409eff;
}
.mb_tag_default {
    background: rgba(153, 153, 153, 0.1);
    color: #999;
}

/* ===== 全局 Layui 按钮美化 ===== */
.layui-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 6px !important;
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.25s !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
}
.layui-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}
.layui-btn:active {
    transform: translateY(0) !important;
}
.layui-btn-primary {
    background: #fff !important;
    color: #666 !important;
    border: 1px solid #e6e6e6 !important;
    box-shadow: none !important;
}
.layui-btn-primary:hover {
    border-color: #667eea !important;
    color: #667eea !important;
}
/*.layui-btn-xs {
    height: 28px !important;
    line-height: 28px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
}
 .layui-btn-sm {
    height: 32px !important;
    line-height: 32px !important;
    padding: 0 15px !important;
    font-size: 13px !important;
} */
.layui-btn-normal {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3) !important;
}
.layui-btn-normal:hover {
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.4) !important;
}
.layui-btn-warm {
    background: linear-gradient(135deg, #e6a23c 0%, #cf8c33 100%) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(230, 162, 60, 0.3) !important;
}
.layui-btn-warm:hover {
    box-shadow: 0 4px 12px rgba(230, 162, 60, 0.4) !important;
}
.layui-btn-danger {
    background: linear-gradient(135deg, #f56c6c 0%, #e64949 100%) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(245, 108, 108, 0.3) !important;
}
.layui-btn-danger:hover {
    box-shadow: 0 4px 12px rgba(245, 108, 108, 0.4) !important;
}

/* ===== 按钮样式 ===== */
.mb_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: 36px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    margin: 15px 0px 0px 24px;
}
.mb_btn:hover {
    opacity: 0.9;
}
.mb_btn:active {
    transform: scale(0.98);
}
.mb_btn_primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
.mb_btn_primary:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.mb_btn_success {
    background: #1ab394;
    color: #fff;
}
.mb_btn_warning {
    background: #e6a23c;
    color: #fff;
}
.mb_btn_danger {
    background: #f56c6c;
    color: #fff;
}
.mb_btn_default {
    background: #fff;
    color: #666;
    border: 1px solid #d9d9d9;
}
.mb_btn_default:hover {
    background: #f5f5f5;
}
.mb_btn_small {
    margin: 15px 0px 0px 24px;
    font-size: 14px;
}
.mb_btn i {
    margin-right: 6px;
}

/* ===== 分页 ===== */
.mb_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
}
.mb_page_item {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}
.mb_page_item:hover {
    background: #f0f0f0;
}
.mb_page_item.active {
    background: #667eea;
    color: #fff;
}
.mb_page_item.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* ===== Layer 弹窗美化 ===== */
.mb-modal-skin .layui-layer-title {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    color: #2f3542;
    font-size: 16px;
    font-weight: 600;
    padding: 2px 24px;
    border-radius: 12px 12px 0 0;
}
.mb-modal-skin .layui-layer-content {
    padding: 0;
    overflow-y: auto;
    max-height: 65vh;
}
.mb-modal-skin .layui-layer-btn {
    padding: 16px 24px 22px;
    border-top: 1px solid #f5f5f5;
    text-align: center;
}
.mb-modal-skin .layui-layer-btn a {
    border-radius: 6px;
    font-size: 14px;
    padding: 0 24px;
    height: 38px;
    line-height: 38px;
}
.mb-modal-skin .layui-layer-btn .layui-layer-btn0 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
.mb-modal-skin .layui-layer-btn .layui-layer-btn0:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4292 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.mb-modal-skin .layui-layer-btn .layui-layer-btn1 {
    background: #fff;
    border-color: #dcdfe6;
    color: #606266;
}
.mb-modal-skin .layui-layer-btn .layui-layer-btn1:hover {
    color: #667eea;
    border-color: #667eea;
}

/* 弹窗表单行间距 */
.mb-modal-skin .mb-modal-row {
    margin-bottom: 22px !important;
}
.mb-modal-skin .mb-modal-wrap {
    padding: 28px 20px 16px !important;
}
.mb-modal-skin .mb-modal-input {
    flex: 1 !important;
    max-width: none !important;
}

/* ===== 首页底部 ===== */
.mb_footer {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 12px 24px;
    text-align: center;
    color: #999;
    font-size: 13px;
    position: fixed;
    bottom: 0;
    left: 180px;
    right: 0;
    z-index: 99;
}

/* ===== 响应式调整 ===== */
@media screen and (max-width: 1024px) {
    .mb_side_wrap {
        width: 180px;
    }
    .mb_footer {
        left: 180px;
    }
    .mb_page_container {
        padding: 15px;
    }
}

@media screen and (max-width: 768px) {
    .mb_side_wrap {
        width: 60px;
        overflow: hidden;
    }
    .mb_side_cite {
        display: none;
    }
    .mb_side_child dd {
        padding-left: 60px !important;
    }
    .mb_side_child dd a {
        display: none;
    }
    .mb_footer {
        left: 60px;
    }
    .mb_page_container {
        padding: 10px;
    }
    .mb_form_box,
    .mb_detail_box {
        padding: 20px;
    }
    .mb_search_form {
        flex-direction: column;
        align-items: flex-start;
    }
    .mb_stat_content {
        flex-direction: column;
        text-align: center;
    }
    .mb_stat_icon_wrap {
        margin-top: 15px;
    }
}

@media screen and (max-width: 480px) {
    .mb_header_logo {
        font-size: 14px;
    }
    .mb_header_name {
        display: none;
    }
    .mb_stat_card {
        padding: 16px;
    }
    .mb_stat_value {
        font-size: 24px;
    }
}

/* ===== 登录页面 ===== */
.mb_login_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.mb_login_box {
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px;
    width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    position: relative;
}
.mb_login_box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    border-radius: 16px 16px 0 0;
}
.mb_login_logo {
    text-align: center;
    margin-bottom: 32px;
}
.mb_login_logo h2 {
    font-size: 26px;
    color: #2f3542;
    margin: 0;
    font-weight: 700;
}
.mb_login_logo p {
    color: #999;
    margin-top: 10px;
    font-size: 14px;
}
.mb_login_btn {
    width: 100%;
    height: 44px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.mb_login_btn:hover {
    opacity: 0.95;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}
.mb_login_btn:active {
    transform: scale(0.98);
}
.mb_captcha_box {
    display: flex;
    gap: 12px;
    align-items: center;
}
.mb_captcha_img {
    height: 40px;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid #e6e6e6;
    transition: all 0.2s;
}
.mb_captcha_img:hover {
    border-color: #667eea;
}

/* ===== 动画 ===== */
@keyframes mb_fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes mb_pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.mb_animate_fadeIn {
    animation: mb_fadeIn 0.4s ease-out;
}
.mb_animate_pulse {
    animation: mb_pulse 2s infinite;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== 手机端响应式适配 ===== */
@media screen and (max-width: 768px) {
    /* 侧边栏默认隐藏 */
    .mb_side_wrap {
        width: 200px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    .mb_side_wrap.mb_side_open {
        transform: translateX(0);
    }

    /* 内容区占满全屏 */
    .layui-body {
        left: 0 !important;
    }

    /* 顶部导航栏调整 */
    .mb_header_inner {
        padding: 0 12px;
    }
    .mb_header_logo {
        padding-left: 12px;
        font-size: 15px;
    }
    .mb_header_logo i {
        font-size: 20px;
    }
    .mb_header_name {
        display: none;
    }
    .mb_header_actions {
        padding-right: 12px;
        gap: 8px;
    }

    /* 面包屑紧凑 */
    .mb_breadcrumb {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* 页面容器紧凑 */
    .mb_page_container {
        padding: 12px;
    }

    /* 卡片紧凑 */
    .mb_card_body {
        padding: 16px;
    }
    .mb_card_header {
        padding: 14px 16px;
    }

    /* 搜索表单单列 */
    .mb_search_form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .mb_search_form .layui-input,
    .mb_search_form .layui-select,
    .mb_search_form .layui-btn {
        width: 100% !important;
    }

    /* 表格横向滚动 */
    .mb_table_box {
        overflow-x: auto;
    }
    .mb_table_inner {
        min-width: 600px;
    }
    .mb_table_inner th,
    .mb_table_inner td {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* 统计卡片单列 */
    .layui-row .layui-col-md3,
    .layui-row .layui-col-sm6 {
        width: 100% !important;
        padding: 0 0 12px 0;
    }

    /* 表单紧凑 */
    .mb_form_box {
        padding: 20px 16px;
    }
    .mb_detail_box {
        padding: 20px 16px;
    }

    /* 按钮紧凑 */
    .mb_btn_small {
        margin: 10px 0 0 0;
    }

    /* 遮罩层（侧边栏展开时） */
    .mb_side_mask {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
    }
    .mb_side_mask.mb_mask_show {
        display: block;
    }

    /* 移动端菜单切换按钮 */
    .mb_mobile_menu_toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.15);
        cursor: pointer;
        margin-right: 8px;
        transition: background 0.2s;
    }
    .mb_mobile_menu_toggle:hover {
        background: rgba(255, 255, 255, 0.25);
    }
    .mb_mobile_menu_toggle i {
        font-size: 20px;
        color: #fff;
    }
}

/* 非手机端隐藏移动端按钮 */
@media screen and (min-width: 769px) {
    .mb_mobile_menu_toggle {
        display: none !important;
    }
    .mb_side_mask {
        display: none !important;
    }
}

/* ===== 强制覆盖 Layui 原生选中样式 ===== */
.layui-nav-tree .layui-this > a,
.layui-nav-tree .layui-this > a:hover,
.layui-nav-tree .layui-nav-child dd.layui-this,
.layui-nav-tree .layui-nav-child dd.layui-this a {
    background-color: rgba(102, 126, 234, 0.4) !important;
    color: #fff !important;
}

/* ===== 自写上传组件 ===== */
.mb-upload-wrap {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
}
.mb-upload-preview {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 100px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    overflow: hidden;
    background: #fafbfc;
}
.mb-upload-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mb-upload-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.2s;
}
.mb-upload-preview:hover .mb-upload-actions {
    opacity: 1;
}
.mb-upload-btn-replace,
.mb-upload-btn-remove {
    font-size: 11px;
    color: #fff;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s;
}
.mb-upload-btn-replace:hover {
    background: rgba(102, 126, 234, 0.8);
}
.mb-upload-btn-remove {
    color: #f56c6c;
}
.mb-upload-btn-remove:hover {
    background: rgba(245, 108, 108, 0.8);
}
.mb-upload-trigger {
    width: 100px;
    height: 100px;
    border: 2px dashed #d9d9d9;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafbfc;
}
.mb-upload-trigger:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.03);
}
.mb-upload-label {
    cursor: pointer;
    color: #999;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.mb-upload-label i {
    color: #667eea;
    font-size: 24px !important;
}
.mb-upload-label:hover {
    color: #667eea;
}
.mb-upload-tip {
    font-size: 11px;
    color: #bbb;
    margin-top: 4px;
}
.mb-upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e6e6e6;
    overflow: hidden;
}
.mb-upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s;
    width: 0;
}
.mb-upload-progress-text {
    display: none;
}
