/* 云旭电竞系统 - 后台面板样式（总后台/商家端/客服端共用·蓝色主题·液态玻璃） */
:root{
  --primary:#3B9EFF;
  --primary-dark:#22304d;
  --primary-light:#FFEAF2;
  --primary-grad:linear-gradient(135deg,#4FA8FF,#3B9EFF);
  --sidebar-bg:linear-gradient(180deg,#EAF6FF 0%,#FDF3F8 100%);
  --sidebar-active:rgba(59,158,255,.16);
  --glass-bg:rgba(255,255,255,.62);
  --glass-border:rgba(59,158,255,.24);
}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;background:linear-gradient(180deg,#EAF6FF 0%,#FFFFFF 420px,#FFFFFF 100%);background-attachment:fixed;color:#33415c;font-size:13px}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
input,button,textarea,select{font-family:inherit;font-size:13px;outline:none}
ul{list-style:none}

/* ===== 布局 ===== */
.layout{display:flex;min-height:100vh}
.sidebar{width:220px;background:var(--sidebar-bg);color:#5b6b86;flex-shrink:0;position:fixed;top:0;bottom:0;left:0;overflow-y:auto;z-index:50;backdrop-filter:blur(20px);box-shadow:4px 0 24px rgba(59,158,255,.12);border-right:1px solid rgba(255,255,255,.9)}
.sidebar::-webkit-scrollbar{width:5px}
.sidebar::-webkit-scrollbar-thumb{background:rgba(59,158,255,.25);border-radius:3px}
.sidebar .logo{display:flex;align-items:center;gap:10px;padding:18px 20px;border-bottom:1px solid rgba(59,158,255,.14)}
.sidebar .logo img{width:34px;height:34px;border-radius:8px}
.sidebar .logo span{font-size:15px;font-weight:600;color:#22304d}
.sidebar .menu{padding:10px 0}
.sidebar .menu-group{padding:12px 20px 6px;font-size:11px;color:#1E7BE0;letter-spacing:1px}
/* 一级菜单 - 液态玻璃效果 */
.sidebar .menu-item{display:flex;align-items:center;gap:10px;padding:11px 20px;font-size:13px;color:#5b6b86;cursor:pointer;transition:all .25s ease;position:relative;margin:2px 10px;border-radius:10px}
.sidebar .menu-item:hover{background:rgba(255,255,255,.85);color:#1E7BE0;backdrop-filter:blur(10px)}
.sidebar .menu-item.active{background:var(--sidebar-active);color:#1E7BE0;font-weight:600;backdrop-filter:blur(12px);border:1px solid var(--glass-border);box-shadow:0 4px 16px rgba(59,158,255,.14),inset 0 1px 0 rgba(255,255,255,.7)}
.sidebar .menu-item.active::before{content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);width:4px;height:24px;background:linear-gradient(180deg,#5AB0FF,#3B9EFF);border-radius:0 4px 4px 0}
/* 二级菜单 */
.sidebar .submenu{display:none;padding:4px 10px 8px 50px}
.sidebar .submenu.open{display:block}
.sidebar .submenu .menu-item{padding:8px 14px;font-size:12px;color:#6b7f9e;margin:1px 0;border-radius:8px}
.sidebar .submenu .menu-item.active{background:rgba(59,158,255,.14);border:1px solid rgba(59,158,255,.22)}
.sidebar .menu-item .arrow{margin-left:auto;font-size:10px;transition:transform .25s;opacity:.6}
.sidebar .menu-item.expanded .arrow{transform:rotate(90deg)}
.sidebar .menu-item img{width:18px;height:18px;filter:brightness(0) saturate(100%) invert(58%) sepia(80%) saturate(3200%) hue-rotate(310deg) brightness(1.04) contrast(1.04);opacity:.85;transition:opacity .18s ease,filter .18s ease}
.sidebar .menu-item:hover img{opacity:1}
.sidebar .menu-item.active img{filter:brightness(0) saturate(100%) invert(52%) sepia(60%) saturate(3600%) hue-rotate(310deg) brightness(1.02) contrast(1.05);opacity:1}
/* Font Awesome 图标 */
.sidebar .menu-item i{width:18px;text-align:center;font-size:15px;color:#8a93a6;opacity:.85;transition:all .18s ease}
.sidebar .menu-item:hover i{color:#1E7BE0;opacity:1}
.sidebar .menu-item.active i{color:#1E7BE0;opacity:1}
.sidebar .menu-item .badge{margin-left:auto;background:#3B9EFF;color:#fff;font-size:10px;padding:1px 6px;border-radius:9px}

.main{flex:1;margin-left:220px;display:flex;flex-direction:column;min-width:0}
.topbar{height:56px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:space-between;padding:0 22px;box-shadow:0 1px 4px rgba(59,158,255,.10);position:sticky;top:0;z-index:40;border-bottom:1px solid #EAF6FF}
.topbar .title{font-size:16px;font-weight:600}
.topbar .user{display:flex;align-items:center;gap:10px}
.topbar .user img{width:32px;height:32px;border-radius:50%}
.topbar .user .name{font-size:13px}
.topbar .user .logout{color:#8e8e93;font-size:12px}
.content{padding:20px 22px;flex:1}

/* ===== 卡片 ===== */
.card{background:#fff;border-radius:10px;padding:18px;box-shadow:0 1px 4px rgba(0,0,0,.04);margin-bottom:16px}
.card-title{font-size:15px;font-weight:600;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between}
.card-title .bar{display:inline-block;width:3px;height:15px;background:var(--primary);border-radius:2px;margin-right:8px;vertical-align:-2px}

/* ===== 统计卡片 ===== */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:16px}
.stat-card{background:#fff;border-radius:10px;padding:18px;box-shadow:0 1px 4px rgba(0,0,0,.04);display:flex;align-items:center;gap:14px;border-left:3px solid var(--primary)}
.stat-card .icon{width:42px;height:42px;border-radius:10px;background:var(--primary-light);display:flex;align-items:center;justify-content:center}
.stat-card .icon img{width:22px;height:22px}
.stat-card .num{font-size:22px;font-weight:700;color:var(--primary)}
.stat-card .label{font-size:12px;color:#8e8e93;margin-top:2px}
.stat-card.green{border-left-color:#34c759}.stat-card.green .num{color:#34c759}.stat-card.green .icon{background:#e8f8ec}
.stat-card.orange{border-left-color:#ff9500}.stat-card.orange .num{color:#ff9500}.stat-card.orange .icon{background:#EAF6FF}
.stat-card.red{border-left-color:#ff3b30}.stat-card.red .num{color:#ff3b30}.stat-card.red .icon{background:#EAF6FF}

/* ===== 按钮 ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:8px 16px;border-radius:999px;font-size:13px;font-weight:500;cursor:pointer;transition:transform .24s cubic-bezier(.22,.61,.36,1),box-shadow .24s ease,background .24s ease,opacity .24s ease;border:none}
.btn:active{transform:scale(.95)}
.btn:hover{opacity:.9}
.btn-primary{background:var(--primary-grad);color:#fff}
.btn-danger{background:#ef4444;color:#fff}
.btn-success{background:#22c55e;color:#fff}
.btn-warning{background:#f59e0b;color:#fff}
.btn-default{background:#f0f4f8;color:#2c3e40;border:1px solid #dbe6ed}
.btn-sm{padding:4px 10px;font-size:12px;border-radius:5px}
.btn-lg{padding:11px 22px;font-size:14px}
.btn-block{display:flex;width:100%}
.btn-outline{background:#fff;border:1px solid var(--primary);color:var(--primary)}
.btn.active{background:var(--primary-light);color:var(--primary);border:1px solid var(--primary);font-weight:600}

/* ===== 表格 ===== */
.table-wrap{overflow-x:auto}
table.data-table{width:100%;border-collapse:collapse;font-size:13px}
table.data-table th{background:#F2F8FF;padding:11px 12px;text-align:left;font-weight:600;color:#1E7BE0;border-bottom:1px solid #e4ecf5;white-space:nowrap}
table.data-table td{padding:11px 12px;border-bottom:1px solid #eef2f7;vertical-align:middle}
table.data-table tr:hover td{background:#f7faff}
table.data-table td img.thumb{width:40px;height:40px;object-fit:cover;border-radius:6px}

/* ===== 审核类列表：无框化（去掉所有边框/分隔线，仅保留行悬浮反馈）===== */
table.audit-table,.table-wrap table.audit-table{border-collapse:separate;border-spacing:0 4px;font-size:13px;width:100%}
table.audit-table th,.table-wrap table.audit-table th{background:transparent;border:none;color:#94a3b8;font-weight:600;padding:8px 12px;text-align:left;white-space:nowrap}
table.audit-table td,.table-wrap table.audit-table td{border:none;background:#fff;padding:12px;vertical-align:middle;
  box-shadow:0 1px 3px rgba(37,99,235,.07);transition:background .2s,box-shadow .2s}
table.audit-table td:first-child{border-radius:10px 0 0 10px}
table.audit-table td:last-child{border-radius:0 10px 10px 0}
table.audit-table tr:hover td{background:#f7faff;box-shadow:0 4px 14px rgba(37,99,235,.12)}

/* ===== 表单 ===== */
.form-group{margin-bottom:16px}
.form-group label{display:block;font-size:13px;color:#1E7BE0;margin-bottom:6px;font-weight:500}
.form-group input[type=text],.form-group input[type=password],.form-group input[type=number],.form-group input[type=email],.form-group select,.form-group textarea{width:100%;padding:9px 12px;border:1px solid #dbe6ed;border-radius:7px;background:#fff;font-size:13px;color:#2c3e40;transition:border .2s}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.form-group textarea{min-height:90px;resize:vertical}
.form-row{display:flex;gap:14px}
.form-row .form-group{flex:1}
.form-tip{font-size:12px;color:#8e8e93;margin-top:4px}
.upload-box{border:1px dashed #DCEBFF;border-radius:8px;padding:16px;text-align:center;cursor:pointer;background:#f9fbff;transition:all .2s}
.upload-box:hover{border-color:var(--primary);background:var(--primary-light)}
.upload-box .preview{max-width:120px;max-height:120px;margin:0 auto 8px;border-radius:6px}

/* ===== 筛选条 ===== */
.filter-bar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px;align-items:center}
.filter-bar input,.filter-bar select{padding:8px 12px;border:1px solid #dbe6ed;border-radius:7px;font-size:13px;background:#fff}
.filter-bar input:focus,.filter-bar select:focus{border-color:var(--primary)}

/* ===== 状态标签 ===== */
.badge{display:inline-block;padding:2px 9px;border-radius:10px;font-size:11px;font-weight:500}
.badge-primary{background:var(--primary-light);color:var(--primary)}
.badge-success{background:#e8f8ec;color:#34c759}
.badge-warning{background:#EAF6FF;color:#ff9500}
.badge-danger{background:#EAF6FF;color:#ff3b30}
.badge-info{background:#eef0f2;color:#636366}

/* ===== 分页 ===== */
.pagination{display:flex;gap:6px;justify-content:flex-end;margin-top:16px;flex-wrap:wrap}
.pagination a,.pagination span{padding:6px 11px;border-radius:6px;font-size:12px;border:1px solid #dbe6e7;background:#fff;color:#4b6a6d}
.pagination a:hover{border-color:var(--primary);color:var(--primary)}
.pagination .current{background:var(--primary);color:#fff;border-color:var(--primary)}

/* ===== 登录页（后台 · 海滩背景轮播） ===== */
.login-bg{position:fixed;inset:0;z-index:0;overflow:hidden}
.login-bg .slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.6s ease-in-out;transform:scale(1.05)}
.login-bg .slide.active{opacity:1;animation:bgZoom 14s ease-out forwards}
@keyframes bgZoom{from{transform:scale(1.05)}to{transform:scale(1.2)}}
.login-bg .mask{position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,40,44,.35) 0%,rgba(4,40,44,.25) 40%,rgba(4,40,44,.65) 100%)}
.bg-dots{position:fixed;bottom:18px;left:0;right:0;display:flex;justify-content:center;gap:8px;z-index:3}
.bg-dots span{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.45);transition:all .3s;cursor:pointer}
.bg-dots span.active{width:24px;border-radius:4px;background:#fff}
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;z-index:1}
.login-wrap::after{content:'';position:absolute;inset:0;background:
  radial-gradient(circle at 15% 20%,rgba(255,255,255,.10),transparent 40%),
  radial-gradient(circle at 85% 75%,rgba(255,255,255,.08),transparent 45%);pointer-events:none}
.login-box{position:relative;z-index:2;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-radius:26px;padding:36px 32px;width:380px;max-width:92vw;box-shadow:0 20px 60px rgba(0,0,0,.35);animation:loginBoxUp .7s cubic-bezier(.22,.61,.36,1) both}
@keyframes loginBoxUp{from{opacity:0;transform:translateY(52px) scale(.96)}to{opacity:1;transform:none}}
.login-box .logo{animation:loginBoxUp .7s cubic-bezier(.22,.61,.36,1) .08s both}
.login-box .form-group{animation:loginBoxUp .6s cubic-bezier(.22,.61,.36,1) both}
.login-box .form-group:nth-of-type(1){animation-delay:.16s}
.login-box .form-group:nth-of-type(2){animation-delay:.24s}
.login-box form .btn,.login-box button{animation:loginBoxUp .6s cubic-bezier(.22,.61,.36,1) .32s both}
.login-box input{border-radius:14px;transition:border-color .25s ease,box-shadow .25s ease,background .25s ease}
.login-box input:focus{border-color:var(--primary,#3B9EFF);box-shadow:0 0 0 4px rgba(59,158,255,.14);background:#fff}
.login-box .btn{border-radius:999px;box-shadow:0 10px 26px rgba(59,158,255,.32)}
.login-box .logo{text-align:center;margin-bottom:14px}
.login-box .logo img{width:64px;height:64px;border-radius:16px;margin:0 auto 12px}
.login-box h2{text-align:center;font-size:20px;margin-bottom:6px}
.login-box .sub{text-align:center;font-size:12px;color:#8e8e93;margin-bottom:24px}
.login-box .links{text-align:center;margin-top:14px;font-size:12px;color:#8e8e93}
.login-box .links a{color:var(--primary);margin:0 6px}

/* ===== 提示条 ===== */
.alert{padding:10px 14px;border-radius:8px;font-size:13px;margin-bottom:14px}
.alert-info{background:var(--primary-light);color:var(--primary-dark)}
.alert-warning{background:#EAF6FF;color:#c47d00}
.alert-danger{background:#EAF6FF;color:#c0392b}

/* ===== 空状态 ===== */
.empty{text-align:center;padding:50px 20px;color:#9ab}
.empty img{width:64px;height:64px;margin:0 auto 10px;opacity:.5}

/* ===== 通用 ===== */
.flex{display:flex}.flex-between{display:flex;justify-content:space-between;align-items:center}
.flex-center{display:flex;justify-content:center;align-items:center}
.flex-1{flex:1}.gap-8{gap:8px}.gap-12{gap:12px}
.text-center{text-align:center}.text-right{text-align:right}
.text-muted{color:#8e8e93}.text-primary{color:var(--primary)}
.text-danger{color:#ff3b30}.text-success{color:#34c759}
.text-sm{font-size:12px}
.mt-10{margin-top:10px}.mt-16{margin-top:16px}.mb-10{margin-bottom:10px}.mb-16{margin-bottom:16px}
.ico{width:16px;height:16px;vertical-align:-3px;display:inline-block;object-fit:contain}
.ico-20{width:20px;height:20px;vertical-align:-4px;display:inline-block;object-fit:contain}

/* ===== 聊天/工单气泡 ===== */
.chat-box{height:440px;overflow-y:auto;padding:14px;background:#f7fafa;border-radius:8px;margin-bottom:14px}
.chat-item{display:flex;margin-bottom:14px;gap:10px}
.chat-item.right{flex-direction:row-reverse}
.chat-item .avatar{width:36px;height:36px;border-radius:50%;flex-shrink:0;background:var(--primary-light)}
.chat-item .bubble{max-width:70%;padding:10px 13px;border-radius:10px;background:#fff;font-size:13px;line-height:1.6;box-shadow:0 1px 3px rgba(0,0,0,.06);word-break:break-word}
.chat-item.right .bubble{background:var(--primary);color:#fff}
.chat-item .time{font-size:11px;color:#9ab;margin-top:4px}

/* ===== 标签页 ===== */
.tabs{display:flex;gap:6px;flex-wrap:wrap;background:#fff;border-radius:10px;padding:6px;margin-bottom:16px;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.tab{padding:8px 16px;border-radius:7px;font-size:13px;color:#4b6a6d;cursor:pointer;transition:all .2s}
.tab:hover{background:#f5fafa}
.tab.active{background:var(--primary-light);color:var(--primary);font-weight:600}

/* ===== 价格 ===== */
.price{color:#ff3b30;font-weight:600}

/* ===== 通用弹窗 ===== */
.mask{position:fixed;inset:0;background:rgba(10,40,44,.45);z-index:200;display:flex;align-items:center;justify-content:center;padding:20px;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.modal{background:#fff;border-radius:12px;width:540px;max-width:96vw;max-height:90vh;overflow:auto;box-shadow:0 20px 60px rgba(0,0,0,.28);animation:modalIn .2s ease}
@keyframes modalIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.modal-header{padding:15px 18px;font-size:15px;font-weight:600;border-bottom:1px solid #eef3f4;display:flex;align-items:center;justify-content:space-between}
.modal-body{padding:18px}
.modal-footer{padding:13px 18px;border-top:1px solid #eef3f4;display:flex;justify-content:flex-end;gap:10px}
.close{cursor:pointer;font-size:20px;color:#9ab;line-height:1;background:none;border:none}
.close:hover{color:#ff3b30}

/* ===== 行内表单 ===== */
.form-inline{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.form-inline label{font-size:13px;color:#4b6a6d;font-weight:500}
.form-inline input,.form-inline select{padding:8px 12px;border:1px solid #dbe6e7;border-radius:7px;background:#fff;font-size:13px;color:#2c3e40}
.form-inline input:focus,.form-inline select:focus{border-color:var(--primary)}

/* ===== 文字按钮 ===== */
.btn-link{background:none;border:none;color:var(--primary);cursor:pointer;font-size:12px;padding:2px 4px}
.btn-link:hover{text-decoration:underline}
.btn-link.danger{color:#ff3b30}

/* ===== 状态标签（兼容 status-tag 命名） ===== */
.status-tag{display:inline-block;padding:2px 9px;border-radius:10px;font-size:11px;font-weight:500}
.status-green{background:#e8f8ec;color:#34c759}
.status-red{background:#EAF6FF;color:#ff3b30}
.status-orange{background:#EAF6FF;color:#ff9500}
.status-gray{background:#eef0f2;color:#8e8e93}

/* ===== 批量操作工具栏 ===== */
.toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:14px}
.check-cell{width:36px;text-align:center}
.batch-bar{display:flex;gap:10px;align-items:center;margin-top:12px}

/* ===== 统计卡片网格 ===== */
.stats-grid,.grid-stat{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}
@media(max-width:1100px){.stats-grid,.grid-stat{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.stats-grid,.grid-stat{grid-template-columns:1fr}}
.stat-icon{width:46px;height:46px;border-radius:11px;background:var(--primary-light);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.stat-icon img{width:24px;height:24px;object-fit:contain}
.stat-num{font-size:22px;font-weight:700;color:var(--primary);line-height:1.2}
.stat-label{font-size:12px;color:#8e8e93;margin-top:2px}

/* ===== 状态标签补充色 ===== */
.status-gold{background:#fff8e1;color:#c99100}
.status-blue{background:#e8f2ff;color:#3B9EFF}
.status-purple{background:#f3e9ff;color:#1E7BE0}

/* ===== 头像 / 名次 ===== */
.avatar-sm{width:34px;height:34px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:6px;background:#eef3f4}
.rank-no{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;font-size:12px;font-weight:700;background:#eef0f2;color:#8e8e93}
.rank-no.rank-1{background:linear-gradient(135deg,#ffd93b,#f7b500);color:#fff;box-shadow:0 2px 6px rgba(247,181,0,.4)}
.rank-no.rank-2{background:linear-gradient(135deg,#d8dee6,#b4bdc7);color:#fff}
.rank-no.rank-3{background:linear-gradient(135deg,#f3b98a,#d98b4a);color:#fff}
.rank-no.rank-n{background:#eef0f2;color:#8e8e93}

/* 头像框与列表单元格对齐 */
.table-wrap table td .avf{margin-right:6px}

/* ===== 面包屑 ===== */
.breadcrumb{font-size:12px;color:#9ab;margin-bottom:14px;display:flex;align-items:center;gap:6px}
.breadcrumb a{color:var(--primary)}
.breadcrumb .sep{color:#cbd5d6}

/* ===== 侧边菜单搜索 ===== */
.menu-search{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.8);border:1px solid #DCEBFF;border-radius:8px;padding:7px 10px;margin:0 12px 10px}
.menu-search img{width:15px;height:15px;opacity:.7;flex:0 0 auto;filter:brightness(0) saturate(100%) invert(58%) sepia(80%) saturate(3200%) hue-rotate(310deg) brightness(1.04) contrast(1.04)}
.menu-search input{flex:1;background:none;border:none;outline:none;color:#33415c;font-size:12px;min-width:0}
.menu-search input::placeholder{color:#a9b6c9}

/* ===== 深色模式切换按钮 ===== */
.dark-toggle{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--primary-light);margin-right:12px;cursor:pointer}
.dark-toggle img{width:16px;height:16px}

/* ===== 轻提示 ===== */
.g-toast{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:9999;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none}
.g-toast-item{background:rgba(28,42,45,.94);color:#fff;padding:9px 18px;border-radius:20px;font-size:13px;box-shadow:0 6px 20px rgba(0,0,0,.18);animation:toastIn .25s ease;transition:opacity .3s,transform .3s}
.g-toast-item.success{background:rgba(24,148,68,.95)}
.g-toast-item.warn{background:rgba(214,138,0,.95)}
.g-toast-item.out{opacity:0;transform:translateY(-8px)}
@keyframes toastIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}

/* ===== 回到顶部 ===== */
.back-top{position:fixed;right:24px;bottom:26px;width:40px;height:40px;border-radius:50%;background:#fff;box-shadow:0 4px 16px rgba(14,159,168,.28);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:300}
.back-top img{width:18px;height:18px}
.back-top:hover{background:var(--primary-light)}

/* ===== 图片放大预览 ===== */
.img-preview-mask{position:fixed;inset:0;background:rgba(6,28,30,.78);z-index:9000;display:none;align-items:center;justify-content:center;cursor:zoom-out}
.img-preview-mask img{max-width:82vw;max-height:82vh;border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.5);background:#fff}

/* ===== 基础表格/* ===== 基础表格（兼容未加 .data-table 的表格） ===== */
.table-wrap table{width:100%;border-collapse:collapse;font-size:13px}
.table-wrap table th{background:#f5fafa;padding:11px 12px;text-align:left;font-weight:600;color:#4b6a6d;border-bottom:1px solid #e6eeee;white-space:nowrap}
.table-wrap table td{padding:11px 12px;border-bottom:1px solid #f0f5f5;vertical-align:middle}
.table-wrap table tr:hover td{background:#fafefe}
.table-wrap table td img.thumb{width:40px;height:40px;object-fit:cover;border-radius:6px}

/* 总后台统一 PC 左侧边栏布局，不转底部导航 */
@media(max-width:900px){
  .sidebar{width:180px}
  .main{margin-left:180px}
  .sidebar .menu-group{padding:10px 14px 4px}
  .sidebar .menu-item{padding:10px 14px;font-size:12px}
  .topbar{padding:0 14px}
  .content{padding:14px}
  .stat-grid{grid-template-columns:repeat(2,1fr)}
  .form-row{flex-direction:column;gap:0}
  table.data-table{font-size:12px}
  table.data-table th,table.data-table td{padding:8px 6px}
  .card{padding:14px}
}
@media(max-width:900px) and (min-width:769px){
  .sidebar{width:64px}
  .sidebar .logo span,.sidebar .menu-group,.sidebar .menu-item span{display:none}
  .sidebar .menu-item{justify-content:center;padding:13px 0}
  .main{margin-left:64px}
}

/* ===== 客户端（商家/客服）手机端适配：侧边栏转底部导航 ===== */
@media(max-width:768px){
  .client-mobile .sidebar{
    position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;height:auto;
    display:flex;flex-direction:row;align-items:center;justify-content:space-around;
    padding:6px 0 8px;overflow-x:auto;overflow-y:hidden;box-shadow:0 -2px 16px rgba(0,0,0,.1);
    background:linear-gradient(180deg,#EAF6FF,#FDF3F8);border-top:1px solid #DCEBFF;z-index:100;
  }
  .client-mobile .sidebar::-webkit-scrollbar{display:none}
  .client-mobile .sidebar .logo{display:none}
  .client-mobile .sidebar .menu{display:flex;flex-direction:row;gap:0;padding:0;width:100%;justify-content:space-around}
  .client-mobile .sidebar .menu-group{display:none}
  .client-mobile .sidebar .menu-item{
    flex-direction:column;gap:2px;padding:6px 4px;margin:0;border-radius:8px;
    font-size:10px;color:#CFE5FF;min-width:0;flex:1;text-align:center;
  }
  .client-mobile .sidebar .menu-item i{font-size:18px;width:auto}
  .client-mobile .sidebar .menu-item img{width:20px;height:20px}
  .client-mobile .sidebar .menu-item span{font-size:10px;line-height:1.2}
  .client-mobile .sidebar .menu-item .badge{position:absolute;top:0;right:50%;margin-right:-14px}
  .client-mobile .sidebar .menu-item.active{background:rgba(255,255,255,.18)}
  .client-mobile .sidebar .menu-item.active::before{display:none}
  .client-mobile .main{margin-left:0;width:100%}
  .client-mobile .topbar{padding:0 14px;height:48px}
  .client-mobile .topbar .title{font-size:15px}
  .client-mobile .topbar .user .name{display:none}
  .client-mobile .content{padding:12px;padding-bottom:80px}
  .client-mobile .card{padding:14px;border-radius:12px}
  .client-mobile .stat-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .client-mobile .stat-card{padding:12px;gap:10px}
  .client-mobile .stat-card .num{font-size:18px}
  .client-mobile .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .client-mobile table.data-table{font-size:12px;min-width:560px}
  .client-mobile table.data-table th,.client-mobile table.data-table td{padding:8px 10px}
  .client-mobile .form-row{flex-direction:column;gap:0}
  .client-mobile .btn{padding:7px 12px;font-size:12px}
  .client-mobile .btn-sm{padding:4px 9px;font-size:11px}
  .client-mobile .modal{width:94vw;padding:16px}
}
