/* ============================================================
   assets-v4-ui-v2.css — 登录后界面视觉重构（覆盖层）
   四川行在远方国际旅行社 · 营销客服管理系统
   主题：深蓝藏青主色 + 青绿/金色辅助，专业旅行社风格
   说明：只改视觉，不改任何 JS/登录/权限逻辑；纯追加覆盖，可随时移除回滚
   ============================================================ */

/* ---------- 1. 侧边栏：深蓝藏青渐变 + 白色文字 + 金色高亮 ---------- */
.sidebar {
  background: linear-gradient(180deg, #142c47 0%, #1b3a5c 100%);
  border-right: 1px solid rgba(255, 255, 255, .06);
  color: #fff;
}
.brand strong { color: #ffffff; }
.brand span { color: rgba(255, 255, 255, .62); }
.brand-mark {
  background: rgba(255, 255, 255, .12);
  color: #e8c766;
  box-shadow: 0 0 0 1px rgba(232, 199, 102, .35);
}
.workspace-switcher b { color: #ffffff; }
.workspace-switcher small { color: rgba(255, 255, 255, .6); }
.workspace-link { color: #e8c766; }
.chevron { color: rgba(255, 255, 255, .55); }

.nav-item {
  color: rgba(255, 255, 255, .72);
  transition: background .15s ease, color .15s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-item.active {
  background: rgba(201, 162, 39, .16);
  color: #f2d489;
  box-shadow: inset 3px 0 0 #c9a227;
}
.nav-item.active span { color: #e8c766; }
.nav-item em { background: #e8c766; color: #142c47; }

/* 侧边栏底部：安全卡片 / 用户卡片深色适配 */
.sidebar-bottom .security-card {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
}
.security-card b { color: #fff; }
.security-card span { color: rgba(255, 255, 255, .62); }
.security-icon { background: rgba(201, 162, 39, .28); color: #e8c766; }
.user-card b { color: #fff; }
.user-card small { color: rgba(255, 255, 255, .6); }
.user-card button { color: rgba(255, 255, 255, .7); }

/* ---------- 2. 顶部导航 ---------- */
.topbar {
  background: #ffffff;
  box-shadow: 0 1px 0 var(--line), 0 4px 14px rgba(16, 42, 66, .04);
}
.breadcrumb { color: var(--muted); }
.breadcrumb b { color: var(--blue); }

/* ---------- 3. 数据卡片：主色顶部条 + 大数字 ---------- */
.metric-card {
  border-top: 3px solid var(--blue);
  border-radius: 12px 12px 10px 10px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.metric-card:nth-child(2) { border-top-color: var(--green); }
.metric-card:nth-child(3) { border-top-color: var(--gold); }
.metric-card:nth-child(4) { border-top-color: var(--red); }
.metric-card:hover { box-shadow: 0 10px 26px rgba(16, 42, 66, .10); }
.metric-card > strong { font-size: 30px; color: var(--ink); }
.metric-icon.blue { background: rgba(31, 78, 121, .12); color: #1f4e79; }
.metric-icon.green { background: rgba(14, 159, 138, .14); color: #0e9f8a; }
.metric-icon.orange { background: rgba(201, 162, 39, .16); color: #a97a18; }
.metric-icon.red { background: rgba(192, 69, 69, .12); color: #c04545; }

/* ---------- 4. 面板 ---------- */
.panel { border-radius: 14px; box-shadow: 0 6px 20px rgba(16, 42, 66, .05); }
.panel-heading h2 { color: var(--ink); }

/* ---------- 5. 状态徽标统一：成功=青绿 警告=金 危险=红 ---------- */
.status-pill.success { color: #0b7d6c; background: #e0f5ef; }
.status-pill.warning { color: #a97a18; background: #fbf3dd; }
.status-pill.danger { color: #c04545; background: #fdeaea; }

/* ---------- 6. 按钮 ---------- */
.primary-btn {
  background: linear-gradient(135deg, #1f4e79 0%, #16385c 100%);
  box-shadow: 0 4px 12px rgba(31, 78, 121, .25);
  transition: box-shadow .15s ease, transform .1s ease;
}
.primary-btn:hover {
  background: linear-gradient(135deg, #24588a 0%, #1a4166 100%);
  box-shadow: 0 6px 16px rgba(31, 78, 121, .32);
}
.primary-btn:active { transform: translateY(1px); }
.ghost-btn { color: var(--blue); }
.ghost-btn:hover { background: rgba(31, 78, 121, .06); }

/* ---------- 7. 统一收件箱 ---------- */
.inbox-sidebar { border-right: 1px solid var(--line); }
.conversation:hover, .conversation.selected {
  background: #eef3fa;
  border-left: 3px solid #c9a227;
  padding-left: 11px;
}
.conversation { border-left: 3px solid transparent; padding-left: 14px; }
.conv-top b { color: var(--ink); }
.filter-chip.active { color: var(--blue); background: #eef3fa; }
.bubble {
  background: #f1f4f9;
  border-radius: 4px 12px 12px 12px;
  color: var(--ink);
}
.message.me .bubble {
  background: linear-gradient(135deg, #1f4e79, #16385c);
  color: #ffffff;
  border-radius: 12px 4px 12px 12px;
}
.chat-header { background: #fafcfe; }
.reply-box textarea { border: 1px solid #d4dde8; border-radius: 8px; }
.quick-insert { border-color: #c9d6e6; color: var(--blue); }
.quick-insert:hover { background: rgba(31, 78, 121, .06); }

/* ---------- 8. 账号与权限 / 表格 / 角色标签 ---------- */
.table-wrap th { background: #f3f6fa; color: var(--blue); font-weight: 700; }
.role-tag { background: rgba(31, 78, 121, .10); color: #1f4e79; }
.tab.active { color: var(--blue); border-bottom-color: #c9a227; }
.mini-tab.active { background: #1f4e79; color: #fff; }
.platform-icon { box-shadow: 0 1px 4px rgba(16, 42, 66, .10); }

/* ---------- 9. 其他点缀 ---------- */
.page-heading h1 { color: var(--ink); }
.eyebrow { color: #94a0b0; }
.banner-icon { background: rgba(14, 159, 138, .14); color: #0e9f8a; }
.security-banner, .audit-banner { border-color: #d9efe7; }

/* ---------- 10. 移动端适配（补充 mobile.css） ---------- */
@media (max-width: 820px) {
  .sidebar {
    background: linear-gradient(180deg, #142c47 0%, #1b3a5c 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .brand strong { font-size: 13px; }
  .main-nav .nav-item { color: rgba(255, 255, 255, .78); }
  .main-nav .nav-item.active {
    background: rgba(201, 162, 39, .22);
    color: #f2d489;
    box-shadow: none;
    border-radius: 9px;
  }
  .conversation:hover, .conversation.selected { border-left-width: 2px; }
}

/* ---------- 11. 工作区切换器：深蓝侧边栏内深色适配 ---------- */
.workspace-switcher {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
}
.workspace-switcher b { color: #ffffff; }
.workspace-switcher small { color: rgba(255, 255, 255, .6); }
.workspace-logo-button { background: rgba(255, 255, 255, .14); }
.workspace-logo-button span { color: #e8c766; }

/* ---------- 12. 桌面折叠态（1120px 侧边栏 210px）深色保持 ---------- */
@media (max-width: 1120px) {
  .sidebar { background: linear-gradient(180deg, #142c47 0%, #1b3a5c 100%); }
  .workspace-switcher { background: rgba(255, 255, 255, .08); }
}

/* ---------- 13. 通知面板 / 下拉浮层（白色浮层 + 深色标题栏） ---------- */
.notification-head { border-bottom: 1px solid var(--line); }
.notification-head b { color: var(--ink); }
.notification-subtitle { color: var(--muted); }

/* ---------- 14. 弹窗/管理员面板标题强调 ---------- */
.admin-user-panel h3, .modal-head h3, .permission-intro h2 { color: var(--blue); }

/* ---------- 15. 表格行 hover 与表头统一 ---------- */
.table-wrap tbody tr:hover { background: #f6f9fc; }
.admin-user-table-head { background: #f3f6fa; color: var(--blue); }

/* ---------- 16. 登录页品牌徽标与提交按钮金色点缀（与主题呼应） ---------- */
.auth-brand-mark { box-shadow: 0 0 0 1px rgba(232, 199, 102, .4); }
.auth-submit { box-shadow: 0 6px 16px rgba(31, 78, 121, .28); }
.auth-submit:hover { background: #24588a; }

/* ---------- 17. 左下角用户卡片头像显示公司 Logo ---------- */
#user-card-avatar { position: relative; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: transparent; border: 0; padding: 0 !important; }
#user-card-avatar img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; margin: 0; }
#user-card-avatar-placeholder { display: none !important; }
