/* =====================================================================
   沃胜商城商家助手平台 - 主题样式 "沃胜·星海"
   烟台沃胜网络科技有限公司
   ===================================================================== */

:root {
  --c-primary: #2563eb;
  --c-primary-deep: #1d4ed8;
  --c-primary-light: #3b82f6;
  --c-gold: #f5b942;
  --c-gold-light: #ffd78a;
  --c-success: #16a34a;
  --c-danger: #ef4444;
  --c-warning: #f59e0b;
  --c-info: #0ea5e9;
  --c-purple: #8b5cf6;
  --c-text: #1f2d45;
  --c-text-2: #5c6b85;
  --c-text-3: #93a1b8;
  --c-border: #e4eaf3;
  --c-bg: #f2f6fc;
  --c-card: #ffffff;
  --side-w: 264px;
  --side-w-min: 74px;
  --top-h: 64px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(18, 42, 84, .07);
  --shadow-lg: 0 18px 48px rgba(13, 31, 61, .18);
  --grad-main: linear-gradient(135deg, #2563eb 0%, #4f7cff 60%, #6d5cff 100%);
  --grad-side: linear-gradient(180deg, #0b1b3a 0%, #101f43 45%, #142a56 100%);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-num: "Barlow", "DIN Alternate", "Roboto", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-deep); }
img { max-width: 100%; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c6d2e4; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ================= 布局骨架 ================= */
.app-shell { display: flex; min-height: 100vh; }
.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; margin-left: var(--side-w); transition: margin-left .25s; }

/* ================= 侧边栏 ================= */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w);
  background: var(--grad-side); color: #c7d4ec; z-index: 100;
  display: flex; flex-direction: column; transition: width .25s;
  box-shadow: 4px 0 24px rgba(8, 20, 45, .25);
  overflow: hidden;
}
.side-logo {
  display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: var(--grad-main); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(37,99,235,.45);
  position: relative;
}
.logo-mark::after {
  content: ''; position: absolute; inset: -3px; border-radius: 15px;
  border: 1px solid rgba(255,255,255,.25); animation: pulseGlow 3s infinite;
}
@keyframes pulseGlow {
  0%,100% { opacity: .4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.logo-title { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.logo-sub { color: rgba(255,255,255,.45); font-size: 10px; letter-spacing: 2.5px; margin-top: 2px; }

.side-nav { flex: 1; overflow-y: auto; padding: 12px 12px 20px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); }

.menu-group { margin-bottom: 6px; }
.menu-group-title {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: 2px; cursor: pointer;
  border-radius: 10px; transition: all .2s; user-select: none;
}
.menu-group-title:hover { color: #fff; }
.menu-group-title .group-arrow { margin-left: auto; font-size: 10px; transition: transform .25s; }
.menu-group.collapsed .group-arrow { transform: rotate(-90deg); }
.menu-group.collapsed .menu-group-body { display: none; }
.menu-group-body { padding: 2px 0 6px; }

.menu-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 30px;
  color: #aebcd8; border-radius: 10px; margin-bottom: 2px; position: relative;
  font-size: 13.5px; transition: all .2s;
}
.menu-item i:first-child { width: 18px; text-align: center; font-size: 14px; }
.menu-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.menu-item.active {
  color: #fff; font-weight: 600;
  background: linear-gradient(90deg, rgba(59,130,246,.32), rgba(59,130,246,.08));
  box-shadow: inset 0 0 0 1px rgba(99,150,255,.25);
}
.menu-item.active::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px;
  border-radius: 3px; background: var(--c-gold); box-shadow: 0 0 12px var(--c-gold);
}
.menu-item .item-arrow { margin-left: auto; font-size: 10px; color: var(--c-gold); }

.side-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.07); }
.side-user { display: flex; align-items: center; gap: 10px; }
.side-avatar, .top-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.2); }
.side-user-name { color: #fff; font-size: 13px; font-weight: 600; }
.side-user-role { color: rgba(255,255,255,.5); font-size: 11px; margin-top: 2px; }
.side-ver { color: rgba(255,255,255,.3); font-size: 10px; margin-top: 10px; text-align: center; letter-spacing: 1px; }

/* 折叠态 */
body.side-collapsed .sidebar { width: var(--side-w-min); }
body.side-collapsed .main-area { margin-left: var(--side-w-min); }
body.side-collapsed .side-logo { justify-content: center; padding: 20px 10px 16px; }
body.side-collapsed .logo-text, body.side-collapsed .menu-group-title span,
body.side-collapsed .menu-item span, body.side-collapsed .side-user-info,
body.side-collapsed .side-ver, body.side-collapsed .group-arrow { display: none; }
body.side-collapsed .menu-group-title { justify-content: center; padding: 10px 0; }
body.side-collapsed .menu-item { padding: 10px 0; justify-content: center; }
body.side-collapsed .menu-group-body { display: none; }

/* ================= 顶栏 ================= */
.topbar {
  position: sticky; top: 0; height: var(--top-h); background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border); z-index: 90;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-text-3); }
.breadcrumb a { color: var(--c-text-3); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb i.fa-angle-right { font-size: 10px; }
.breadcrumb span { color: var(--c-text); font-weight: 600; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: none; background: transparent;
  color: var(--c-text-2); font-size: 16px; cursor: pointer; position: relative;
  transition: all .2s; display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: #eef3fb; color: var(--c-primary); }
.badge-dot {
  position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-danger); border: 2px solid #fff; box-shadow: 0 0 8px rgba(239,68,68,.7);
}
.topbar-right { display: flex; align-items: center; gap: 12px; }

.top-search { position: relative; }
.top-search > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--c-text-3); font-size: 13px; }
.top-search input {
  width: 240px; height: 38px; border-radius: 19px; border: 1px solid var(--c-border);
  background: #f5f8fc; padding: 0 16px 0 34px; font-size: 13px; outline: none; transition: all .25s;
}
.top-search input:focus { width: 300px; border-color: var(--c-primary); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.search-drop {
  position: absolute; top: 46px; right: 0; width: 320px; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--c-border); overflow: hidden; z-index: 200;
}
.search-drop .sd-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; font-size: 13px; color: var(--c-text); }
.search-drop .sd-item:hover { background: #f0f5ff; }
.search-drop .sd-item i { color: var(--c-primary); width: 16px; text-align: center; }
.search-drop .sd-item .sd-type { color: var(--c-text-3); font-size: 11px; margin-left: auto; flex: none; }
.search-drop .sd-empty { padding: 18px; text-align: center; color: var(--c-text-3); font-size: 12px; }

.user-menu { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 10px; border-radius: 22px; transition: background .2s; }
.user-trigger:hover { background: #eef3fb; }
.top-user-name { font-size: 13.5px; font-weight: 600; }
.user-trigger > i { font-size: 10px; color: var(--c-text-3); }
.user-drop {
  position: absolute; top: 52px; right: 0; width: 180px; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--c-border); padding: 6px; z-index: 210;
}
.user-drop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--c-text); font-size: 13px; }
.user-drop a:hover { background: #f0f5ff; color: var(--c-primary); }
.user-drop a i { width: 16px; text-align: center; }
.drop-divider { height: 1px; background: var(--c-border); margin: 4px 0; }

/* 消息通知面板 */
.notify-panel {
  position: fixed; top: 58px; right: 20px; width: 380px; max-height: 480px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border); z-index: 220; display: flex; flex-direction: column; overflow: hidden;
}
.notify-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--c-border); font-weight: 700; }
.notify-head a { font-size: 12px; color: var(--c-primary); }
.notify-body { flex: 1; overflow-y: auto; max-height: 360px; }
.notify-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f1f4fa; cursor: pointer; transition: background .2s; }
.notify-item:hover { background: #f7faff; }
.notify-item .n-icon { width: 36px; height: 36px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; }
.notify-item.unread .n-title { font-weight: 700; color: var(--c-text); }
.notify-item.unread .n-title::after { content: '●'; color: var(--c-danger); font-size: 8px; margin-left: 6px; vertical-align: middle; }
.n-title { font-size: 13px; color: var(--c-text-2); }
.n-time { font-size: 11px; color: var(--c-text-3); margin-top: 4px; }
.notify-foot { padding: 10px; text-align: center; border-top: 1px solid var(--c-border); font-size: 12px; }

/* ================= 内容区 ================= */
.content { padding: 22px 24px 40px; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; gap: 16px; flex-wrap: wrap; }
.page-head h2 { font-size: 21px; font-weight: 700; color: var(--c-text); }
.page-head .ph-desc { color: var(--c-text-3); font-size: 12.5px; margin-top: 6px; }
.page-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ================= 卡片 ================= */
.card {
  background: var(--c-card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgba(228,234,243,.7); margin-bottom: 18px; overflow: hidden;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
  border-bottom: 1px solid #f0f3fa; gap: 12px; flex-wrap: wrap;
}
.card-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-title::before { content: ''; width: 4px; height: 16px; border-radius: 4px; background: var(--grad-main); }
.card-body { padding: 20px; }
.card-body.flush { padding: 0; }

/* 工具栏（筛选） */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 20px; border-bottom: 1px solid #f0f3fa; background: linear-gradient(180deg, #fbfdff, #fff); }
.toolbar .tb-item { display: flex; align-items: center; gap: 8px; }
.toolbar .tb-label { color: var(--c-text-3); font-size: 12.5px; flex: none; }
.toolbar .spacer { flex: 1; }

/* ================= 表单 ================= */
.input, .select, .textarea {
  height: 38px; border: 1px solid var(--c-border); border-radius: 10px; padding: 0 12px;
  font-size: 13.5px; font-family: var(--font); color: var(--c-text); background: #fff; outline: none;
  transition: all .2s; min-width: 0;
}
.select { padding-right: 30px; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a1b8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
.textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.input.w-sm { width: 120px; } .input.w-md { width: 180px; } .input.w-lg { width: 260px; } .input.w-xl { width: 340px; }
.input-date { width: 150px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid.cols-1 { grid-template-columns: 1fr; }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-item { display: flex; flex-direction: column; gap: 6px; }
.form-item > label { font-size: 13px; color: var(--c-text-2); font-weight: 600; }
.form-item > label .req { color: var(--c-danger); margin-left: 2px; }
.form-item .tip { font-size: 11.5px; color: var(--c-text-3); }
.form-row { display: flex; gap: 10px; align-items: flex-end; }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 13.5px; font-family: var(--font); font-weight: 600; cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: 13px; }
.btn-primary { background: var(--grad-main); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.3); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(37,99,235,.42); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, #f6b93b, #f5a623); color: #fff; box-shadow: 0 6px 16px rgba(245,169,35,.3); }
.btn-gold:hover { box-shadow: 0 8px 22px rgba(245,169,35,.42); }
.btn-success { background: var(--c-success); color: #fff; }
.btn-success:hover { background: #128a3e; }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover { background: #d92f2f; }
.btn-ghost { background: #fff; border-color: var(--c-border); color: var(--c-text-2); }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); background: #f7faff; }
.btn-ghost-danger:hover { border-color: var(--c-danger); color: var(--c-danger); background: #fff5f5; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.btn-sm i { font-size: 11px; }
.btn-lg { height: 44px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }

/* ================= 表格 ================= */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table thead th {
  background: linear-gradient(180deg, #f8fafd, #f1f5fb); color: var(--c-text-2);
  font-weight: 600; text-align: left; padding: 12px 14px; white-space: nowrap;
  border-bottom: 1px solid var(--c-border); font-size: 12.5px; letter-spacing: .3px;
}
.table tbody td { padding: 13px 14px; border-bottom: 1px solid #f1f4fa; vertical-align: middle; color: var(--c-text); }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #f7faff; }
.table .col-check { width: 40px; }
.table .td-main { font-weight: 600; color: var(--c-primary); cursor: pointer; }
.table .td-main:hover { text-decoration: underline; }
.table .td-sub { color: var(--c-text-3); font-size: 12px; margin-top: 3px; }
.table .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.table .money { font-weight: 700; color: #e24d2a; font-family: var(--font-num); }
.table .money-in { color: var(--c-success); }

.checkbox { width: 17px; height: 17px; accent-color: var(--c-primary); cursor: pointer; vertical-align: middle; }

/* 操作按钮组 */
.op-group { display: flex; gap: 6px; flex-wrap: wrap; }
.op-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px;
  border-radius: 7px; border: 1px solid var(--c-border); background: #fff; font-size: 12px;
  color: var(--c-text-2); cursor: pointer; transition: all .2s; font-family: var(--font);
}
.op-btn i { font-size: 11px; }
.op-btn:hover { border-color: var(--c-primary); color: var(--c-primary); background: #f0f6ff; }
.op-btn.warn:hover { border-color: var(--c-warning); color: var(--c-warning); background: #fffaf0; }
.op-btn.danger:hover { border-color: var(--c-danger); color: var(--c-danger); background: #fff3f3; }
.op-btn.success:hover { border-color: var(--c-success); color: var(--c-success); background: #f0faf4; }

/* 状态胶囊 */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-blue { background: #e8f0ff; color: #2563eb; }
.pill-green { background: #e6f7ec; color: #16a34a; }
.pill-orange { background: #fef3e2; color: #d97706; }
.pill-red { background: #fdeaea; color: #dc2626; }
.pill-gray { background: #f0f2f6; color: #64748b; }
.pill-purple { background: #f1e9ff; color: #7c3aed; }
.pill-cyan { background: #e0f7fb; color: #0891b2; }

/* 标签 */
.wtag { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 11.5px; background: #eef2f9; color: #5c6b85; margin: 2px; }
.wtag.primary { background: #e8f0ff; color: #2563eb; }
.wtag.gold { background: #fef3e2; color: #b45309; }

/* 头像圆 */
.avatar-circle { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; flex: none; }

/* 商品缩略图 */
.thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; border: 1px solid var(--c-border); background: #f5f8fc; }

/* ================= 分页 ================= */
.pager { display: flex; align-items: center; gap: 6px; padding: 16px 20px; justify-content: flex-end; }
.pager .pager-info { color: var(--c-text-3); font-size: 12.5px; margin-right: 10px; }
.pager button {
  min-width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--c-border);
  background: #fff; color: var(--c-text-2); font-size: 12.5px; cursor: pointer; font-family: var(--font);
  transition: all .2s; padding: 0 8px;
}
.pager button:hover:not(:disabled):not(.on) { border-color: var(--c-primary); color: var(--c-primary); }
.pager button.on { background: var(--grad-main); color: #fff; border-color: transparent; box-shadow: 0 4px 10px rgba(37,99,235,.3); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ================= 统计卡片 ================= */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
  position: relative; overflow: hidden; border: 1px solid rgba(228,234,243,.7); transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card .sc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.stat-card .sc-icon {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: #fff;
}
.stat-card .sc-value { font-size: 26px; font-weight: 800; font-family: var(--font-num); margin-top: 12px; letter-spacing: .3px; }
.stat-card .sc-label { color: var(--c-text-3); font-size: 12.5px; margin-top: 4px; }
.stat-card .sc-trend { position: absolute; right: 16px; bottom: 16px; font-size: 12px; font-weight: 600; }
.sc-trend.up { color: var(--c-success); } .sc-trend.down { color: var(--c-danger); }
.sc-icon.bg-blue { background: linear-gradient(135deg,#3b82f6,#2563eb); }
.sc-icon.bg-gold { background: linear-gradient(135deg,#fbbf24,#f59e0b); }
.sc-icon.bg-green { background: linear-gradient(135deg,#34d399,#16a34a); }
.sc-icon.bg-red { background: linear-gradient(135deg,#f87171,#ef4444); }
.sc-icon.bg-purple { background: linear-gradient(135deg,#a78bfa,#8b5cf6); }
.sc-icon.bg-cyan { background: linear-gradient(135deg,#22d3ee,#0ea5e9); }

/* ================= 卡片式列表 ================= */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.flow-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(228,234,243,.7);
  padding: 16px; position: relative; transition: all .25s;
}
.flow-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.flow-card .fc-head { display: flex; align-items: center; gap: 12px; }
.flow-card .fc-title { font-weight: 700; font-size: 14px; flex: 1; }
.flow-card .fc-body { margin-top: 12px; color: var(--c-text-2); font-size: 12.5px; line-height: 1.7; }
.flow-card .fc-foot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--c-border); display: flex; justify-content: space-between; align-items: center; }
.flow-card .fc-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; }

/* ================= 弹窗（层次感） ================= */
.wmask {
  position: fixed; inset: 0; background: rgba(9, 20, 40, .55); backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px); z-index: 900; opacity: 0; transition: opacity .25s;
  pointer-events: none;
}
.wmask.show { opacity: 1; pointer-events: auto; }
.wmodal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%) scale(.96);
  z-index: 950; width: 640px; max-width: calc(100vw - 40px); display: none;
}
.wmodal.show { display: block; animation: modalIn .28s cubic-bezier(.2,.9,.3,1.2) forwards; }
@keyframes modalIn { to { transform: translate(-50%, -50%) scale(1); } }
.wmodal-panel {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(6, 18, 40, .35), 0 0 0 1px rgba(255,255,255,.12);
  max-height: 88vh; display: flex; flex-direction: column;
}
.wmodal-panel::before {
  content: ''; display: block; height: 4px;
  background: linear-gradient(90deg, #2563eb, #6d5cff, #f5b942);
}
.wmodal-head {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 22px 12px;
  border-bottom: 1px solid #f0f3fa;
}
.wmodal-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.wmodal-title i { color: var(--c-primary); }
.wmodal-close { width: 32px; height: 32px; border-radius: 8px; border: none; background: #f2f5fa; color: var(--c-text-2); cursor: pointer; font-size: 14px; transition: all .2s; }
.wmodal-close:hover { background: #fdeaea; color: var(--c-danger); }
.wmodal-body { padding: 20px 22px; overflow-y: auto; }
.wmodal-foot { padding: 14px 22px; border-top: 1px solid #f0f3fa; display: flex; justify-content: flex-end; gap: 10px; background: #fbfcff; }
.wmodal-sm { width: 420px; }
.wmodal-lg { width: 860px; }
.wmodal-xl { width: 1080px; }

/* 详情TAB */
.w-tabs { display: flex; border-bottom: 2px solid #eef1f7; margin-bottom: 18px; gap: 4px; }
.w-tab { padding: 10px 18px; font-size: 13.5px; color: var(--c-text-2); cursor: pointer; position: relative; font-weight: 600; transition: color .2s; }
.w-tab:hover { color: var(--c-primary); }
.w-tab.on { color: var(--c-primary); }
.w-tab.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 3px; border-radius: 3px; background: var(--grad-main); }
.w-tab-body { display: none; }
.w-tab-body.on { display: block; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 详情信息组 */
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid #eef1f7; border-radius: 12px; overflow: hidden; }
.detail-grid .dg-item { padding: 12px 16px; border-bottom: 1px solid #f1f4fa; border-right: 1px solid #f1f4fa; }
.detail-grid .dg-item:nth-child(3n) { border-right: none; }
.dg-label { color: var(--c-text-3); font-size: 12px; }
.dg-value { margin-top: 5px; font-size: 13.5px; font-weight: 600; }
.dg-value.money { color: #e24d2a; }
.dg-value.full { grid-column: span 3; font-weight: 400; line-height: 1.7; }

/* 时间线（物流/流水） */
.w-timeline { position: relative; padding-left: 22px; }
.w-timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: #e6ebf4; }
.tl-item { position: relative; padding: 0 0 18px 8px; }
.tl-item::before {
  content: ''; position: absolute; left: -21px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid #c4d1e6;
}
.tl-item.on::before { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.tl-item.on .tl-text { color: var(--c-text); font-weight: 600; }
.tl-item.done::before { border-color: var(--c-success); background: var(--c-success); }
.tl-text { font-size: 13px; color: var(--c-text-2); }
.tl-time { font-size: 11.5px; color: var(--c-text-3); margin-top: 4px; }

/* ================= Toast ================= */
.wtoast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 1200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.wtoast {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px;
  background: rgba(13, 27, 51, .92); color: #fff; font-size: 13.5px;
  box-shadow: 0 10px 30px rgba(8, 18, 40, .35); animation: toastIn .3s cubic-bezier(.2,.9,.3,1.2); backdrop-filter: blur(6px);
  min-width: 200px; justify-content: center;
}
.wtoast i { font-size: 15px; }
.wtoast.success i { color: #4ade80; } .wtoast.error i { color: #f87171; } .wtoast.warning i { color: #fbbf24; }
.wtoast.leave { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-18px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-14px) scale(.92); } }

/* ================= 空状态 ================= */
.empty { text-align: center; padding: 50px 20px; color: var(--c-text-3); }
.empty i { font-size: 46px; color: #d3dced; display: block; margin-bottom: 14px; }
.empty .empty-text { font-size: 13px; }

/* ================= 加载 ================= */
.w-loading { text-align: center; padding: 40px; color: var(--c-text-3); }
.spinner { width: 30px; height: 30px; border: 3px solid #e3eaf5; border-top-color: var(--c-primary); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= 登录页 ================= */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative;
  background: radial-gradient(1200px 600px at 15% 10%, #16305f 0%, transparent 55%),
              radial-gradient(900px 500px at 85% 90%, #1b1a4d 0%, transparent 50%),
              linear-gradient(135deg, #0a1731 0%, #0d1f42 45%, #132b57 100%);
  overflow: hidden; font-family: var(--font);
}
.login-body::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.login-stars { position: absolute; width: 100%; height: 100%; }
.login-star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: twinkle 3s infinite; opacity: .5; }
@keyframes twinkle { 0%,100% { opacity: .15; } 50% { opacity: .9; } }
.login-wrap { position: relative; z-index: 2; width: 960px; max-width: calc(100vw - 40px); display: flex; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.login-left { flex: 1.15; padding: 48px 44px; color: #fff; background: linear-gradient(160deg, rgba(37,99,235,.22), rgba(109,92,255,.12)), rgba(255,255,255,.04); backdrop-filter: blur(8px); display: flex; flex-direction: column; }
.login-right { flex: 1; padding: 48px 44px; background: rgba(255,255,255,.97); display: flex; flex-direction: column; justify-content: center; }
.login-brand { display: flex; align-items: center; gap: 14px; }
.login-brand .logo-mark { width: 52px; height: 52px; font-size: 24px; }
.login-brand-name { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.login-brand-sub { color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: 3px; margin-top: 4px; }
.login-slogan { font-size: 30px; font-weight: 800; line-height: 1.4; margin-top: 46px; }
.login-slogan span { background: linear-gradient(90deg, #f5b942, #ffd78a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-points { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.login-point { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.8); font-size: 13.5px; }
.login-point i { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--c-gold); }
.login-foot { margin-top: auto; color: rgba(255,255,255,.4); font-size: 11.5px; padding-top: 40px; }
.login-title { font-size: 24px; font-weight: 800; color: var(--c-text); text-align: center; }
.login-sub { text-align: center; color: var(--c-text-3); font-size: 13px; margin: 8px 0 28px; }
.login-field { margin-bottom: 16px; position: relative; }
.login-field .lf-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-text-3); font-size: 14px; }
.login-field input {
  width: 100%; height: 48px; border: 1px solid var(--c-border); border-radius: 12px; padding: 0 14px 0 42px;
  font-size: 14px; outline: none; font-family: var(--font); transition: all .2s; background: #f8fafd;
}
.login-field input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); background: #fff; }
.login-captcha { display: flex; gap: 10px; }
.login-captcha input { flex: 1; }
.login-captcha img { height: 48px; border-radius: 12px; cursor: pointer; border: 1px solid var(--c-border); }
.login-btn { height: 48px; border-radius: 12px; font-size: 15px; }
.login-tip { text-align: center; font-size: 12.5px; color: var(--c-text-3); margin-top: 18px; }
.login-tip a { color: var(--c-primary); font-weight: 600; }

/* ================= 打印 ================= */
@media print {
  .sidebar, .topbar, .toolbar, .pager, .wmodal, .op-group, .no-print { display: none !important; }
  .main-area { margin-left: 0 !important; }
  .content { padding: 0; }
  .card { box-shadow: none; border: none; }
  body { background: #fff; }
}

/* ================= 响应式 ================= */
@media (max-width: 1200px) {
  .form-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid .dg-item:nth-child(3n) { border-right: 1px solid #f1f4fa; }
  .detail-grid .dg-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 900px) {
  .login-wrap { flex-direction: column; }
  .login-left { display: none; }
  .sidebar { width: var(--side-w-min); }
  .main-area { margin-left: var(--side-w-min); }
  .logo-text, .menu-group-title span, .menu-item span, .side-user-info, .side-ver { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}
