/* ============================================================
   批发商城管理后台 - 现代设计系统
   参考 CRMEB / Ant Design Pro 视觉规范
   ============================================================ */
:root {
  --primary: #ff3d2e;
  --primary-hover: #e63e1f;
  --primary-light: #fff1ec;
  --primary-gradient: linear-gradient(135deg, #ff6a3d 0%, #ff3d2e 100%);
  --success: #00b578;
  --success-light: #e6f9f1;
  --warning: #ff9f18;
  --warning-light: #fff5e4;
  --danger: #f5483b;
  --danger-light: #ffeceb;
  --info: #6366f1;
  --text-main: #1a2233;
  --text-normal: #3d4657;
  --text-sub: #8a94a8;
  --text-disabled: #b6bdc9;
  --border: #e5e9f2;
  --border-dark: #d5dbe7;
  --bg-page: #eef1f6;
  --bg-card: #ffffff;
  --bg-hover: #f6f8fc;
  --sidebar-bg: #ffffff;
  --sidebar-text: #4b5563;
  --sidebar-active-bg: linear-gradient(90deg, #fff1ec, #fff8f4);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 6px 20px -6px rgba(16, 24, 40, .08);
  --shadow-lg: 0 12px 40px -8px rgba(16, 24, 40, .18);
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); background: var(--bg-page); color: var(--text-main); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cdd3de; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #b3bcc9; }
::-webkit-scrollbar-track { background: transparent; }

/* ==================== 登录页 ==================== */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #0d1420; position: relative; overflow: hidden; }
.login-wrap::before, .login-wrap::after { content: ''; position: absolute; border-radius: 50%; filter: blur(90px); }
.login-wrap::before { width: 520px; height: 520px; background: rgba(47,107,255,.35); top: -140px; right: -100px; }
.login-wrap::after { width: 420px; height: 420px; background: rgba(99,102,241,.28); bottom: -140px; left: -80px; }
.login-panel { position: relative; z-index: 1; display: flex; width: 880px; max-width: 94vw; min-height: 520px; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.login-brand { flex: 1.1; background: linear-gradient(150deg, #2f6bff 0%, #2447c9 55%, #1b2f7a 100%); padding: 52px 48px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-brand::before { content: ''; position: absolute; width: 300px; height: 300px; border: 40px solid rgba(255,255,255,.06); border-radius: 50%; right: -100px; bottom: -80px; }
.login-brand::after { content: ''; position: absolute; width: 180px; height: 180px; border: 26px solid rgba(255,255,255,.05); border-radius: 50%; top: -60px; right: 60px; }
.login-brand .b-logo { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.login-brand .b-logo .b-badge { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; backdrop-filter: blur(6px); }
.login-brand .b-slogan { position: relative; z-index: 1; }
.login-brand .b-slogan h1 { font-size: 30px; font-weight: 700; line-height: 1.4; margin-bottom: 14px; }
.login-brand .b-slogan p { font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.9; }
.login-brand .b-features { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.login-brand .b-features span { font-size: 12px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.88); backdrop-filter: blur(4px); }
.login-box { flex: 1; background: #fff; padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; width: auto; border-radius: 0; box-shadow: none; }
.login-box h2 { font-size: 24px; font-weight: 700; color: var(--text-main); margin-bottom: 6px; text-align: left; }
.login-box .sub { text-align: left; color: var(--text-sub); font-size: 13px; margin-bottom: 32px; }
.login-box .form-group { margin-bottom: 20px; }
.login-box label { display: block; margin-bottom: 8px; color: var(--text-normal); font-size: 13px; font-weight: 500; }
.login-box input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; transition: all .2s; background: #f8fafc; }
.login-box input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(47,107,255,.1); }
.login-box .btn { width: 100%; padding: 13px; background: var(--primary-gradient); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; letter-spacing: 4px; cursor: pointer; transition: all .2s; box-shadow: 0 6px 16px -4px rgba(47,107,255,.5); margin-top: 6px; }
.login-box .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -4px rgba(47,107,255,.55); }
.login-box .btn:active { transform: translateY(0); }
@media (max-width: 720px) {
  .login-panel { flex-direction: column; width: 420px; min-height: 0; }
  .login-brand { padding: 32px 28px; }
  .login-brand .b-slogan { display: none; }
  .login-box { padding: 36px 28px; }
}

/* ==================== 主框架 ==================== */
.layout { display: flex; height: 100vh; overflow: hidden; }

/* 侧边栏 */
.sidebar { width: 248px; background: var(--sidebar-bg); color: var(--sidebar-text); flex-shrink: 0; display: flex; flex-direction: column; height: 100vh; border-right: 1px solid var(--border); }
.sidebar .logo { padding: 18px 20px; font-size: 18px; font-weight: 700; color: var(--text-main); flex-shrink: 0; display: flex; align-items: center; gap: 10px; letter-spacing: .5px; border-bottom: 1px solid #f2f4f8; }
.sidebar .logo::before { content: ''; width: 32px; height: 32px; border-radius: 9px; background: var(--primary-gradient); box-shadow: 0 4px 10px rgba(255,61,46,.28); flex-shrink: 0;
  -webkit-mask: none; }
.sidebar .menu { padding: 8px 12px 24px; overflow-y: auto; flex: 1; }
.sidebar .menu::-webkit-scrollbar { width: 4px; }
.sidebar .menu::-webkit-scrollbar-thumb { background: #e5e9f2; border-radius: 2px; }
.sidebar .menu li.menu-group { padding: 20px 10px 8px; font-size: 16px; font-weight: 700; color: #111827; letter-spacing: .5px; user-select: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.sidebar .menu li.menu-group:hover { color: var(--primary); }
.sidebar .menu li.menu-group::after { content: '▾'; font-size: 12px; transition: transform .2s; color: #9ca3af; }
.sidebar .menu li.menu-group.collapsed::after { transform: rotate(-90deg); }
.sidebar .menu li a { position: relative; display: flex; align-items: center; padding: 11px 12px 11px 42px; margin: 2px 0; font-size: 14.5px; color: var(--sidebar-text); transition: all .18s; border-radius: 9px; border-left: none; }
.sidebar .menu li a:hover { background: var(--bg-hover); color: var(--text-main); }
.sidebar .menu li a.active { background: var(--sidebar-active-bg); color: var(--primary); font-weight: 600; }
.sidebar .menu li a.active::after { content: ''; position: absolute; right: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px rgba(255,61,46,.6); }
/* 菜单图标（SVG 线性图标） */
.sidebar .menu li a::before { content: ''; position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background-repeat: no-repeat; background-position: center; background-size: 18px; opacity: .85; }
.sidebar .menu li a.active::before { opacity: 1; }
.sidebar .menu li a[data-page="screen"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='13' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="orders"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h12v20l-3-2-3 2-3-2-3 2z'/%3E%3Cpath d='M9 7h6M9 11h6'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="refunds"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14l-4-4 4-4'/%3E%3Cpath d='M5 10h11a4 4 0 0 1 0 8h-3'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="aftersales"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="invoice"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h14v18l-2.3-1.5L14.5 21l-2.2-1.5L10 21l-2.2-1.5L5 21z'/%3E%3Cpath d='M9 8h6M9 12h6'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="qa"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9a2.5 2.5 0 1 1 3.4 2.3c-.8.4-.9 1-.9 1.7'/%3E%3Ccircle cx='12' cy='16.8' r='.3' fill='%238a94a8'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="pickup"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.1-7-11a7 7 0 0 1 14 0c0 4.9-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="decorate"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18M9 21V9'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="article"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="products"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5v8l9 5 9-5z'/%3E%3Cpath d='M3 8l9 5 9-5M12 13v8'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="categories"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4L11 3H4v7l9.6 10.4a2 2 0 0 0 2.8 0l4.2-4.2a2 2 0 0 0 0-2.8z'/%3E%3Ccircle cx='8.5' cy='7.5' r='.6' fill='%238a94a8'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="freight"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='6' width='13' height='10' rx='1'/%3E%3Cpath d='M14 9h4l3 3v4h-7z'/%3E%3Ccircle cx='6' cy='18' r='1.8'/%3E%3Ccircle cx='17' cy='18' r='1.8'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="reviews"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l2.9 6.2 6.8.8-5 4.6 1.3 6.7-6-3.4-6 3.4 1.3-6.7-5-4.6 6.8-.8z'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="stock"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-6 9 6v11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z'/%3E%3Cpath d='M7 21v-8h10v8'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="stockcheck"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4a2 2 0 0 1 6 0'/%3E%3Cpath d='M9 13l2 2 4-4'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="purchase"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='17' cy='20' r='1.5'/%3E%3Cpath d='M3 4h2l2.6 12h9.8l2.6-8H7'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="scale"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='7' width='16' height='13' rx='2'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3Cpath d='M9 13l1.5-2.5h3L15 13'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="customers"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-6.5 8-6.5s8 2.5 8 6.5'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="member"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l4 3.5L12 5l5 6.5L21 8l-1.6 11H4.6z'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="distribution"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='6' r='2.5'/%3E%3Ccircle cx='18' cy='18' r='2.5'/%3E%3Cpath d='M8.3 10.8l7.4-3.6M8.3 13.2l7.4 3.6'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="marketing"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10v4h4l7 5V5l-7 5z'/%3E%3Cpath d='M17.5 8.5a5 5 0 0 1 0 7'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="coupons"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Cpath d='M13 6v2M13 11v2M13 16v2'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="seckill"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2L4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="fullred"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="groupon"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c0-3.5 3-5.5 6.5-5.5s6.5 2 6.5 5.5'/%3E%3Ccircle cx='17.5' cy='9' r='2.5'/%3E%3Cpath d='M17 14.5c2.8.4 4.5 2.2 4.5 5.5'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="bargain"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20L14.5 5.5l4 4L8 20H4z'/%3E%3Cpath d='M13.5 7l4 4'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="pointsmall"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5v9M9.5 10h4.2a1.6 1.6 0 0 1 0 3.2h-3.4a1.6 1.6 0 0 0 0 3.2h4.2'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="bundle"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='10' rx='1'/%3E%3Cpath d='M4 7h16v3H4zM12 7v13'/%3E%3Cpath d='M12 7c-2.2 0-4-1-4-2.5S10 2 12 7zM12 7c2.2 0 4-1 4-2.5S14 2 12 7z'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="extrabuy"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="nthdiscount"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 5L5 19'/%3E%3Ccircle cx='7' cy='7' r='2.2'/%3E%3Ccircle cx='17' cy='17' r='2.2'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="report"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M8 16v-5M13 16V8M18 16v-8'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="finance"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3Ccircle cx='16.5' cy='15' r='1' fill='%238a94a8'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="backup"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='8' ry='3'/%3E%3Cpath d='M4 5v14c0 1.7 3.6 3 8 3s8-1.3 8-3V5'/%3E%3Cpath d='M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="service"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13a8 8 0 0 1 16 0'/%3E%3Crect x='2' y='12' width='4' height='6' rx='2'/%3E%3Crect x='18' y='12' width='4' height='6' rx='2'/%3E%3Cpath d='M20 18a4 4 0 0 1-4 3h-2'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="drivers"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='17' r='3'/%3E%3Ccircle cx='18' cy='17' r='3'/%3E%3Cpath d='M6 17l3-7h5l3 7M9 7h3l2 3'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="logs"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13'/%3E%3Ccircle cx='4' cy='6' r='.8' fill='%238a94a8'/%3E%3Ccircle cx='4' cy='12' r='.8' fill='%238a94a8'/%3E%3Ccircle cx='4' cy='18' r='.8' fill='%238a94a8'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="accounts"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l9-9M17 4l3 3M14 7l3 3'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="settings"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M19.1 4.9L17 7M7 17l-2.1 2.1'/%3E%3C/svg%3E"); }
.sidebar .menu li a[data-page="apikeys"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6l-6 6 6 6M16 6l6 6-6 6'/%3E%3C/svg%3E"); }

/* 主区域 */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.header { height: 60px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; flex-shrink: 0; }
.header #pageTitle { font-size: 16px; font-weight: 600; color: var(--text-main); display: flex; align-items: center; }
.header #pageTitle::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: var(--primary-gradient); margin-right: 10px; }
.header .user { display: flex; align-items: center; gap: 12px; }
.header .user .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; box-shadow: 0 3px 8px rgba(47,107,255,.35); }
.header .user span#userName { font-size: 13.5px; color: var(--text-normal); font-weight: 500; }
.header .logout { color: var(--text-sub); cursor: pointer; font-size: 13px; padding: 6px 12px; border-radius: 8px; transition: all .18s; }
.header .logout:hover { color: var(--danger); background: var(--danger-light); }
.content { flex: 1; padding: 20px 24px; overflow: auto; }

/* ==================== 卡片 ==================== */
.card { background: var(--bg-card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 18px; border: 1px solid rgba(229,233,242,.7); }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 18px; color: var(--text-main); display: flex; align-items: center; }
.card-title::before { content: ''; width: 4px; height: 15px; border-radius: 2px; background: var(--primary-gradient); margin-right: 9px; }

/* ==================== 统计卡片 ==================== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); border: 1px solid rgba(229,233,242,.7); position: relative; overflow: hidden; transition: all .2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary-gradient); }
.stat-card .label { color: var(--text-sub); font-size: 13px; margin-bottom: 10px; }
.stat-card .value { font-size: 28px; font-weight: 700; color: var(--text-main); font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.stat-card .value.green { color: var(--success); }
.stat-card .value.orange { color: var(--warning); }
.stat-card .value.red { color: var(--danger); }
.stats .stat-card:nth-child(4n+2)::after { background: linear-gradient(90deg, #00b578, #3dd9a4); }
.stats .stat-card:nth-child(4n+3)::after { background: linear-gradient(90deg, #ff9f18, #ffc069); }
.stats .stat-card:nth-child(4n+4)::after { background: linear-gradient(90deg, #6366f1, #8b8ef9); }

/* ==================== 按钮 ==================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 18px; border: none; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; cursor: pointer; transition: all .18s; line-height: 1.4; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary-gradient); color: #fff; box-shadow: 0 3px 10px -2px rgba(47,107,255,.45); }
.btn-primary:hover { box-shadow: 0 6px 14px -2px rgba(47,107,255,.5); filter: brightness(1.05); }
.btn-success { background: linear-gradient(135deg, #00b578, #2bd598); color: #fff; box-shadow: 0 3px 10px -2px rgba(0,181,120,.4); }
.btn-success:hover { filter: brightness(1.05); }
.btn-warning { background: linear-gradient(135deg, #ff9f18, #ffb84d); color: #fff; box-shadow: 0 3px 10px -2px rgba(255,159,24,.4); }
.btn-warning:hover { filter: brightness(1.05); }
.btn-danger { background: linear-gradient(135deg, #f5483b, #ff6f61); color: #fff; box-shadow: 0 3px 10px -2px rgba(245,72,59,.4); }
.btn-danger:hover { filter: brightness(1.05); }
.btn-default { background: #fff; color: var(--text-normal); border: 1px solid var(--border-dark); }
.btn-default:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-sm { padding: 4px 12px; font-size: 12px; border-radius: 6px; }

/* ==================== 表格 ==================== */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #f0f2f7; font-size: 13px; }
.table th { background: #f7f9fc; color: var(--text-sub); font-weight: 600; font-size: 12px; letter-spacing: .5px; white-space: nowrap; }
.table th:first-child { border-radius: 8px 0 0 8px; }
.table th:last-child { border-radius: 0 8px 8px 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--bg-hover); }
.table td { color: var(--text-normal); }

/* ==================== 表单 ==================== */
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-item { flex: 1; }
.form-item label { display: block; margin-bottom: 7px; color: var(--text-normal); font-size: 13px; font-weight: 500; }
.form-item input, .form-item select, .form-item textarea { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text-main); background: #fff; transition: all .18s; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,107,255,.12); }
.form-item input:disabled, .form-item select:disabled { background: #f5f7fa; color: var(--text-disabled); cursor: not-allowed; }

/* 搜索栏 */
.toolbar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; transition: all .18s; background: #fff; }
.toolbar input:focus, .toolbar select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,107,255,.1); }

/* ==================== 分页 ==================== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.pagination button { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--border); background: #fff; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text-normal); transition: all .15s; }
.pagination button:hover:not(:disabled):not(.active) { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary-gradient); color: #fff; border-color: transparent; box-shadow: 0 3px 8px -2px rgba(47,107,255,.5); }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }

/* ==================== 标签 ==================== */
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.tag-green { background: var(--success-light); color: #00875f; }
.tag-orange { background: var(--warning-light); color: #c87d0a; }
.tag-blue { background: var(--primary-light); color: var(--primary); }
.tag-gray { background: #f0f2f7; color: var(--text-sub); }
.tag-red { background: var(--danger-light); color: var(--danger); }

/* ==================== 模态框 ==================== */
.modal-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(13, 20, 32, .5); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 999; animation: maskIn .18s ease; }
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: var(--radius-lg); padding: 26px 28px; min-width: 420px; max-width: 92vw; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); animation: modalIn .22s cubic-bezier(.34, 1.4, .64, 1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal h3 { margin-bottom: 20px; font-size: 16px; font-weight: 600; color: var(--text-main); display: flex; align-items: center; }
.modal h3::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--primary-gradient); margin-right: 9px; }
.modal .actions { text-align: right; margin-top: 24px; padding-top: 18px; border-top: 1px solid #f0f2f7; }
.modal .actions button { margin-left: 10px; }

/* ==================== 空状态 ==================== */
.empty { text-align: center; padding: 48px 20px; color: var(--text-disabled); font-size: 13px; }
.empty::before { content: ''; display: block; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #f0f2f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b6bdc9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5v8l9 5 9-5z'/%3E%3Cpath d='M3 8l9 5 9-5M12 13v8'/%3E%3C/svg%3E") center/30px no-repeat; }

/* ==================== 图片上传 ==================== */
.img-upload-box { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.img-upload-box .img-item { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.img-upload-box .img-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-upload-box .img-del { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; line-height: 18px; text-align: center; border-radius: 50%; background: rgba(13,20,32,.65); color: #fff; font-size: 13px; cursor: pointer; transition: background .15s; }
.img-upload-box .img-del:hover { background: var(--danger); }
.img-upload-box .img-empty { color: var(--text-disabled); font-size: 13px; line-height: 76px; }

/* 菜单未读角标 */
.menu-badge { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; margin-left: auto; border-radius: 9px; background: linear-gradient(135deg, #f5483b, #ff6f61); color: #fff; font-size: 11px; text-align: center; box-shadow: 0 2px 6px rgba(245,72,59,.45); }

/* ==================== 客服工作台 ==================== */
.chat-wrap { display: flex; gap: 14px; height: calc(100vh - 100px); }
.chat-side { width: 290px; flex-shrink: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(229,233,242,.7); display: flex; flex-direction: column; overflow: hidden; }
.chat-tabs { display: flex; border-bottom: 1px solid var(--border); }
.chat-tabs div { flex: 1; text-align: center; padding: 13px 0; font-size: 13px; color: var(--text-sub); cursor: pointer; border-bottom: 2px solid transparent; transition: all .15s; }
.chat-tabs div.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.chat-tabs .tab-badge { display: inline-block; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 11px; }
.chat-search { padding: 10px 12px; border-bottom: 1px solid #f0f2f7; }
.chat-search input { width: 100%; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; }
.chat-search input:focus { outline: none; border-color: var(--primary); }
.chat-sessions { flex: 1; overflow-y: auto; }
.chat-session-item { padding: 13px 14px; border-bottom: 1px solid #f5f6fa; cursor: pointer; transition: background .15s; }
.chat-session-item:hover { background: var(--bg-hover); }
.chat-session-item.active { background: var(--primary-light); box-shadow: inset 3px 0 0 var(--primary); }
.chat-session-item .s-name { font-size: 14px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; color: var(--text-main); }
.chat-session-item .s-last { font-size: 12px; color: var(--text-sub); margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-session-item .s-time { font-size: 11px; color: var(--text-disabled); }
.chat-session-item .s-unread { min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; text-align: center; }

.chat-main { flex: 1; min-width: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(229,233,242,.7); display: flex; flex-direction: column; overflow: hidden; }
.chat-head { padding: 15px 20px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; color: var(--text-main); }
.chat-head .sub { font-size: 12px; color: var(--text-sub); font-weight: 400; margin-left: 8px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 20px; background: #f5f7fa; }
.chat-msg { display: flex; margin-bottom: 16px; }
.chat-msg.right { justify-content: flex-end; }
.chat-msg .bubble { max-width: 65%; padding: 10px 15px; border-radius: 12px; font-size: 14px; line-height: 1.6; word-break: break-word; white-space: pre-wrap; }
.chat-msg.left .bubble { background: #fff; border: 1px solid var(--border); border-top-left-radius: 4px; box-shadow: var(--shadow-sm); }
.chat-msg.right .bubble { background: var(--primary-gradient); color: #fff; border-top-right-radius: 4px; box-shadow: 0 3px 10px -2px rgba(47,107,255,.4); }
.chat-msg .m-meta { font-size: 11px; color: var(--text-disabled); margin-top: 4px; }
.chat-msg .m-name { font-size: 12px; color: var(--text-sub); margin-bottom: 3px; }
.chat-msg.sys { justify-content: center; }
.chat-msg.sys .bubble { background: rgba(13,20,32,.06); color: var(--text-sub); font-size: 12px; padding: 3px 12px; border-radius: 999px; }
.chat-msg img.msg-img { max-width: 220px; border-radius: 10px; cursor: pointer; display: block; }
.chat-more { text-align: center; margin-bottom: 14px; }
.chat-more span { font-size: 12px; color: var(--primary); cursor: pointer; }
.chat-input { border-top: 1px solid var(--border); padding: 14px 16px; background: #fff; }
.chat-input textarea { width: 100%; height: 72px; resize: none; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; }
.chat-input textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,107,255,.1); }
.chat-input-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.chat-input-bar .ws-status { font-size: 12px; color: var(--text-sub); }
.chat-input-bar .ws-status.on { color: var(--success); }
.chat-input-bar .ws-status.off { color: var(--danger); }
.chat-input-bar button { margin-left: 8px; }

.chat-right { width: 260px; flex-shrink: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(229,233,242,.7); display: flex; flex-direction: column; overflow: hidden; }
.chat-right-title { padding: 13px 16px 9px; font-size: 13px; font-weight: 600; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; }
.chat-knowledge { flex: 1; overflow-y: auto; padding: 0 10px 10px; min-height: 120px; max-height: 50%; }
.chat-knowledge .kn-item { padding: 8px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; color: var(--text-normal); transition: all .15s; }
.chat-knowledge .kn-item:hover { background: var(--primary-light); color: var(--primary); }
.chat-tracks { flex: 1; overflow-y: auto; padding: 0 16px 14px; }
.chat-tracks .tk-item { font-size: 12px; color: var(--text-sub); padding: 7px 0; border-bottom: 1px dashed #f0f2f7; }
.chat-tracks .tk-item .t-time { color: var(--text-disabled); margin-right: 6px; }

/* ==================== 仪表盘美化 ==================== */
.content h2 { font-size: 18px; font-weight: 700; }
