/* 外贸业务闭环工作台 - 浅色主题 */
:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --border: #e5e8ee;
  --text: #1f2329;
  --text2: #646a73;
  --primary: #0051a3;
  --primary-light: #edf3fb;
  --green: #16a34a;
  --orange: #ea8a00;
  --red: #e5484d;
  --purple: #7c5cd6;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
.hidden { display: none !important; }

/* ---------- 登录 ---------- */
/* ---------- 登录页：科技感双栏（左表单 右品牌环） ---------- */
.login-page { min-height: 100vh; display: flex; align-items: stretch; background: radial-gradient(1200px 700px at 78% 30%, rgba(37,99,235,.28), transparent 60%), radial-gradient(900px 600px at 18% 85%, rgba(13,148,136,.12), transparent 55%), linear-gradient(118deg, #050b18 0%, #081528 42%, #0a1f3d 100%); position: relative; overflow: hidden; }
.lp-waves { position: absolute; left: 0; right: 0; bottom: -46px; width: 100%; height: 46%; pointer-events: none; opacity: .95; }
.lp-glow { position: absolute; right: -140px; top: 4%; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(closest-side, rgba(37,99,235,.4), rgba(37,99,235,.12) 55%, transparent 72%); pointer-events: none; }
.lp-left { position: relative; z-index: 2; flex: 1.05; display: flex; flex-direction: column; justify-content: center; padding: 60px 64px; max-width: 620px; }
.lp-slogan { color: #fff; font-size: 24px; font-weight: 700; letter-spacing: .5px; margin-bottom: 8px; }
.lp-slogan b { color: #31d2ff; }
.lp-title { color: rgba(255,255,255,.55); font-size: 13px; letter-spacing: 1px; margin-bottom: 28px; }
.lp-tabs { display: flex; gap: 10px; margin-bottom: 24px; }
.lp-tab { flex: 1; text-align: center; padding: 11px 6px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); color: rgba(255,255,255,.6); font-size: 13px; cursor: pointer; transition: all .2s; user-select: none; white-space: nowrap; }
.lp-tab:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.lp-tab.active { color: #fff; border-color: #3b82f6; background: rgba(59,130,246,.2); box-shadow: 0 0 14px rgba(59,130,246,.3); }
.lp-tab-ic { margin-right: 6px; }
.lp-wecom-box { text-align: center; }
.lp-wecom-title { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.lp-wecom-desc { color: rgba(255,255,255,.5); font-size: 12px; line-height: 1.7; margin-top: 6px; }
.wecom-qr { display: flex; justify-content: center; align-items: center; min-height: 120px; background: #fff; border-radius: 12px; padding: 12px; margin: 14px auto 4px; width: fit-content; max-width: 100%; }
.wecom-qr.qr-ready { display: block; width: 320px; height: 268px; min-height: 0; overflow: hidden; padding: 0; }
.wecom-qr.qr-ready iframe { transform: translateY(-72px); }
.wecom-qr .lp-wecom-desc { color: #646a73; }
.lp-field { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.22); padding: 10px 2px; margin-bottom: 20px; transition: border-color .2s; }
.lp-field:focus-within { border-color: #3b82f6; }
.lp-ic { font-size: 16px; opacity: .75; }
.lp-field input { flex: 1; background: transparent; border: none; outline: none; color: #fff; font-size: 15px; padding: 6px 0; }
.lp-field input::placeholder { color: rgba(255,255,255,.4); }
.lp-btn { width: 100%; background: linear-gradient(135deg, #2f6bff, #1d4fd8); color: #fff; border: none; border-radius: 10px; padding: 13px; font-size: 15px; cursor: pointer; margin-top: 10px; letter-spacing: 6px; box-shadow: 0 6px 22px rgba(37,99,235,.4); transition: filter .15s; }
.lp-btn:hover { filter: brightness(1.12); }
.lp-btn.wecom { background: linear-gradient(135deg, #12b76a, #0e9f5c); letter-spacing: 1px; box-shadow: 0 6px 22px rgba(18,183,106,.35); }
.lp-or { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.4); font-size: 11px; margin-top: 20px; }
.lp-or::before, .lp-or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.18); }
.login-err { color: #ff7b72; font-size: 13px; margin-top: 10px; min-height: 18px; }
.login-tip { color: rgba(255,255,255,.45); font-size: 11px; margin-top: 14px; line-height: 1.6; }
.lp-foot { position: absolute; left: 64px; bottom: 24px; font-size: 12px; color: rgba(255,255,255,.45); display: flex; gap: 6px; align-items: center; }
.lp-foot a { color: rgba(255,255,255,.55); text-decoration: none; }
.lp-foot a:hover { color: #fff; text-decoration: underline; }
.icp-sep { color: rgba(255,255,255,.3); }
.lp-right { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
.lp-ring { width: 300px; height: 300px; border-radius: 50%; padding: 10px; background: conic-gradient(from 210deg, #31d2ff, #2f6bff 30%, #93c5fd 55%, #2f6bff 78%, #31d2ff); filter: drop-shadow(0 0 48px rgba(47,107,255,.55)); }
.lp-ring-core { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #14335f, #071223 72%); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 60px rgba(47,107,255,.35); }
.lp-ring-core img { width: 132px; filter: brightness(1.8) saturate(1.15) drop-shadow(0 0 24px rgba(255,255,255,.45)) drop-shadow(0 0 8px rgba(255,255,255,.25)); }
.lp-ring-name { color: #fff; font-weight: 700; font-size: 20px; margin-top: 10px; letter-spacing: 1px; }
.lp-ring-line { width: 150px; height: 2px; margin: 10px 0; background: linear-gradient(90deg, transparent, #31d2ff, transparent); }
.lp-ring-slogan { color: rgba(255,255,255,.75); font-size: 12px; letter-spacing: 2px; }
.lp-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.lp-chips span { padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(125,211,252,.35); background: rgba(47,107,255,.12); color: #bfdbfe; font-size: 12px; }
@media (max-width: 900px) { .lp-right { display: none; } .lp-left { padding: 40px 28px; max-width: 100%; } .lp-foot { position: static; margin-top: 30px; } .lp-slogan { font-size: 19px; } }

/* ---------- 顶部菜单栏 ---------- */
.topbar { height: 52px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; position: sticky; top: 0; z-index: 50; }
.topbar-left { display: flex; align-items: center; gap: 24px; }
.logo { font-weight: 700; font-size: 15px; color: var(--primary); white-space: nowrap; }
.menu { display: flex; gap: 4px; }
.menu-item { padding: 6px 14px; border-radius: 8px; cursor: pointer; color: var(--text2); font-size: 14px; user-select: none; white-space: nowrap; }
.menu-item:hover { background: var(--primary-light); color: var(--primary); }
.menu-item.active { background: var(--primary); color: #fff; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 6px; color: var(--text2); font-size: 13px; }
.user-chip .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.bell { position: relative; cursor: pointer; font-size: 16px; }
.bell-count { position: absolute; top: -6px; right: -8px; background: var(--red); color: #fff; font-size: 10px; border-radius: 8px; padding: 0 5px; line-height: 14px; }

/* ---------- 页面 ---------- */
.page-content { max-width: 1280px; margin: 0 auto; padding: 20px 20px 60px; }
.page-title { font-size: 18px; font-weight: 700; margin: 4px 0 4px; }
.page-desc { color: var(--text2); font-size: 13px; margin-bottom: 16px; }
.section { margin-top: 22px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 16px 18px; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .num { font-size: 26px; font-weight: 700; }
.stat .lbl { color: var(--text2); font-size: 12px; margin-top: 4px; }
.stat.blue .num { color: var(--primary); } .stat.red .num { color: var(--red); } .stat.green .num { color: var(--green); } .stat.orange .num { color: var(--orange); }

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; padding: 10px 12px; background: #f8f9fb; color: var(--text2); font-weight: 500; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:hover td { background: #fafbfd; }
.tbl .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.overdue { color: var(--red); font-weight: 600; }
.soon { color: var(--orange); font-weight: 600; }

/* ---------- 标签 ---------- */
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: 12px; white-space: nowrap; }
.tag.stage-quoting { background: #fff7e6; color: #ad6800; }
.tag.stage-quoted { background: #eff4ff; color: #2563eb; }
.tag.stage-order { background: #f0f0ff; color: #5b4fc4; }
.tag.stage-production { background: #fff0f6; color: #c2255c; }
.tag.stage-qc { background: #fdf4ff; color: #9a34af; }
.tag.stage-shipping { background: #e6f9f0; color: #0c7a43; }
.tag.stage-shipped { background: #e7f5ef; color: #0c7a43; }
.tag.stage-aftersales { background: #fff1f0; color: #cf1322; }
.tag.stage-closed { background: #f0f1f3; color: #646a73; }
.tag.risk-normal { background: #e6f9f0; color: #0c7a43; }
.tag.risk-attention { background: #fff7e6; color: #ad6800; }
.tag.risk-urgent { background: #fff1f0; color: #cf1322; }
.tag.role { background: #f0f1f3; color: #41464e; }

/* ---------- 按钮 ---------- */
.btn { border: none; border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; transition: .15s; font-family: inherit; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: #1d4fd8; }
.btn.green { background: var(--green); color: #fff; }
.btn.orange { background: var(--orange); color: #fff; }
.btn.red { background: var(--red); color: #fff; }
.btn.ghost { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn.block { width: 100%; padding: 10px; font-size: 15px; margin-top: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 13px; padding: 0; font-family: inherit; }
.link-btn:hover { text-decoration: underline; }

/* ---------- 表单 ---------- */
.form-item { margin-bottom: 14px; text-align: left; }
.form-item label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 5px; }
.form-item label .req { color: var(--red); margin-left: 2px; }
.form-item input, .form-item select, .form-item textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13px; font-family: inherit; background: #fff; color: var(--text); }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { outline: none; border-color: var(--primary); }
.form-item textarea { resize: vertical; min-height: 64px; }
.form-item .hint { color: #98a2b3; font-size: 11px; font-weight: 400; margin-left: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.file-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--text2); flex-wrap: wrap; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(15,20,30,.45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 16px; }
.modal { background: #fff; border-radius: 14px; width: 560px; max-width: 100%; padding: 24px 26px; box-shadow: 0 10px 40px rgba(0,0,0,.18); }
.modal.wide { width: 760px; }
.modal h3 { font-size: 16px; margin-bottom: 4px; }
.modal .modal-sub { color: var(--text2); font-size: 12px; margin-bottom: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---------- 提醒/待办 ---------- */
.todo-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); gap: 10px; }
.todo-item:last-child { border-bottom: none; }
.todo-item .t-main { flex: 1; min-width: 0; }
.todo-item .t-title { font-weight: 600; font-size: 13px; }
.todo-item .t-desc { color: var(--text2); font-size: 12px; margin-top: 3px; }

/* ---------- 看板 ---------- */
.kanban { display: flex; flex-direction: column; gap: 12px; }
.kb-col { width: 100%; background: #eef0f4; border-radius: 10px; padding: 10px; }
.kb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.kb-col-title { font-size: 13px; font-weight: 600; padding: 4px 6px 10px; display: flex; justify-content: space-between; color: var(--text2); }
.kb-card { background: #fff; border-radius: 8px; padding: 10px 12px; margin-bottom: 0; box-shadow: 0 1px 2px rgba(0,0,0,.08); cursor: pointer; }
.kb-card:hover { outline: 2px solid var(--primary-light); }
.kb-card .kb-no { font-size: 11px; color: var(--text2); }
.kb-card .kb-name { font-weight: 600; font-size: 13px; margin: 3px 0; }
.kb-card .kb-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.kb-empty { color: var(--text2); font-size: 12px; text-align: center; padding: 14px 0; }

/* ---------- 详情抽屉 ---------- */
.stepper { display: flex; gap: 0; margin: 14px 0 20px; overflow-x: auto; }
.step { flex: 1; min-width: 76px; text-align: center; position: relative; }
.step .dot { width: 22px; height: 22px; border-radius: 50%; background: #dfe3ea; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; position: relative; z-index: 1; }
.step.done .dot, .step.cur .dot { background: var(--primary); }
.step .s-lbl { font-size: 11px; color: var(--text2); margin-top: 4px; }
.step.cur .s-lbl { color: var(--primary); font-weight: 600; }
.step::before { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: #dfe3ea; }
.step:first-child::before { display: none; }
.step.done::before, .step.cur::before { background: var(--primary); }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 8px 10px; font-size: 13px; }
.kv .k { color: var(--text2); }
.timeline { margin-top: 8px; }
.tl-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 12px; }
.tl-item:last-child { border: none; }
.tl-date { color: var(--text2); white-space: nowrap; width: 130px; }

/* ---------- 指南 ---------- */
.guide h2 { font-size: 16px; margin: 22px 0 10px; padding-left: 10px; border-left: 4px solid var(--primary); }
.guide p, .guide li { color: var(--text2); line-height: 1.9; font-size: 13px; }
.guide ul, .guide ol { padding-left: 22px; }
.guide b { color: var(--text); }
.guide table { width: 100%; border-collapse: collapse; margin: 10px 0; background: #fff; }
.guide th, .guide td { border: 1px solid var(--border); padding: 8px 12px; font-size: 13px; text-align: left; }
.guide th { background: #f8f9fb; }

/* ---------- Toast ---------- */
.toast { position: fixed; top: 66px; left: 50%; transform: translateX(-50%); background: #1f2329; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 13px; z-index: 200; box-shadow: var(--shadow); }
.toast.err { background: var(--red); }
.toast.ok { background: var(--green); }
.btn.wecom { background: #07c160; color: #fff; }
.btn.wecom:hover { background: #06ad56; }

@media (max-width: 860px) {
  .menu { overflow-x: auto; }
  .form-grid { grid-template-columns: 1fr; }
}
@media print {
  .topbar, .modal-foot, .no-print { display: none !important; }
  body { background: #fff; }
}

/* ================= 个人工作台布局（左侧菜单 + 顶部工具条） ================= */
.app { display: flex; min-height: 100vh; align-items: stretch; }
.sidebar { width: 208px; flex: 0 0 208px; background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sb-brand { height: 60px; display: flex; align-items: center; gap: 8px; padding: 0 18px; font-weight: 700; font-size: 15px; color: #0051a3; border-bottom: 1px solid #f2f4f7; cursor: pointer; user-select: none; transition: background .15s; }
.sb-brand:hover { background: #f6f9fd; }
.sb-brand:active { background: #eaf1fa; }
.sb-mark { font-size: 18px; }
.sb-mark-img { height: 26px; width: auto; }
.login-logo img { display: block; margin: 0 auto; }
.sb-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.sb-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text2); font-size: 14px; cursor: pointer; margin-bottom: 2px; white-space: nowrap; }
.sb-item:hover { background: #f0f5fb; color: #0051a3; }
.sb-item.active { background: linear-gradient(90deg, #e7eff9, #f3f7fc); color: #0051a3; font-weight: 600; }
.sb-item .ic { width: 18px; text-align: center; font-size: 15px; }
.sb-foot { padding: 14px; border-top: 1px solid #f2f4f7; }
.sb-user { font-size: 12px; color: var(--text2); margin-bottom: 10px; line-height: 1.5; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: auto; min-height: 64px; padding: 10px 22px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 40; }
.tb-title h1 { font-size: 18px; font-weight: 700; }
.tb-date { font-size: 12px; color: var(--text2); }
.tb-right { display: flex; align-items: center; gap: 12px; }
.search-box { display: flex; align-items: center; gap: 6px; background: #f4f6f8; border: 1px solid transparent; border-radius: 20px; padding: 7px 14px; width: 280px; }
.search-box:focus-within { border-color: #a9c6e8; background: #fff; }
.search-box input { border: none; outline: none; background: transparent; font-size: 13px; width: 100%; font-family: inherit; }
.tb-user { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); white-space: nowrap; }
.page-content { max-width: 1360px; width: 100%; margin: 0 auto; padding: 18px 22px 50px; }

/* 仪表盘栅格 */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.dash-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash-side { display: flex; flex-direction: column; gap: 16px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.kpi-top { display: flex; align-items: center; gap: 8px; color: var(--text2); font-size: 12px; }
.kpi-ic { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.kpi-num { font-size: 28px; font-weight: 700; margin: 6px 0 2px; line-height: 1.2; }
.kpi-sub { font-size: 11px; color: var(--text2); }
.kpi-sub b.up { color: #0f8a6d; } .kpi-sub b.down { color: #d94a4a; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.panel-hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f4f6f8; }
.p-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.p-more { font-size: 12px; color: var(--text2); cursor: pointer; }
.p-more:hover { color: #0051a3; }
.panel-bd { padding: 12px 16px; }
.mini-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mini-tbl th { text-align: left; color: var(--text2); font-weight: 500; padding: 7px 8px; border-bottom: 1px solid #f0f2f5; white-space: nowrap; }
.mini-tbl td { padding: 8px; border-bottom: 1px solid #f6f7f9; }
.mini-tbl tr:last-child td { border-bottom: none; }
.mini-tbl tr:hover td { background: #fbfcfd; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px dashed #f0f2f5; font-size: 12.5px; }
.list-row:last-child { border-bottom: none; }
.list-row .l-main { min-width: 0; }
.list-row .l-t1 { font-weight: 600; margin-bottom: 2px; }
.list-row .l-t2 { color: var(--text2); font-size: 11.5px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; white-space: nowrap; }
.pill.green { background: #e8f5ef; color: #0f7a5c; } .pill.blue { background: #eaf1ff; color: #2f66c9; }
.pill.orange { background: #fff5e5; color: #a86800; } .pill.red { background: #ffeceb; color: #c53a34; }
.pill.gray { background: #f2f3f5; color: #5b626b; }
.pill.ok { background: #e8f5ef; color: #0f7a5c; } .pill.warn { background: #ffeceb; color: #c53a34; }
.tag-blue { background: #eaf1ff; color: #2f66c9; } .tag-orange { background: #fff5e5; color: #a86800; }
.quote-card { background: linear-gradient(135deg, #eef4fb, #fbfdff); border: 1px dashed #a9c6e8; border-radius: 10px; padding: 14px; font-size: 12.5px; color: #2f5688; line-height: 1.9; }
.doc-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 12.5px; color: var(--text2); cursor: pointer; border-bottom: 1px dashed #f2f4f7; }
.doc-item:last-child { border-bottom: none; }
.doc-item:hover { color: #0f7a5c; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #0051a3; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
@media (max-width: 1180px) { .dash { grid-template-columns: 1fr; } .dash-side { flex-direction: row; flex-wrap: wrap; } .dash-side > * { flex: 1 1 240px; } }
@media (max-width: 980px) { .kpi-grid { grid-template-columns: 1fr 1fr; } .two { grid-template-columns: 1fr; } .sidebar { width: 64px; flex-basis: 64px; } .sb-name, .sb-item .label, .sb-user { display: none; } .sb-item { justify-content: center; padding: 10px 0; } .search-box { display: none; } }

/* 表格单元格省略 */
.mini-tbl td.el { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-tbl td.el-sm { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-tbl th { font-size: 11.5px; }

/* ---------- 使用指南：按部门 ---------- */
.gd-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 14px; }
.gd-tab { padding: 8px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 13px; color: #4b5563; cursor: pointer; transition: all .15s; }
.gd-tab:hover { border-color: #9dc0e6; color: #0051a3; }
.gd-tab.active { background: #0051a3; border-color: #0051a3; color: #fff; }
.gd-scope { background: #f4f8fd; border-left: 3px solid #0051a3; border-radius: 8px; padding: 11px 14px; font-size: 13px; color: #33506f; line-height: 1.75; margin-bottom: 16px; }
.gd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gd-panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.gd-panel-wide { grid-column: 1 / -1; }
.gd-panel h3 { font-size: 13.5px; font-weight: 600; color: #0051a3; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid #eef2f7; }
.gd-panel ul, .gd-panel ol { margin: 0; padding-left: 19px; font-size: 12.8px; line-height: 1.85; color: #374151; }
.gd-panel li { margin-bottom: 5px; }
.gd-flow b { color: #0f3c6e; }
.gd-link { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.gd-link td { padding: 8px 6px; border-bottom: 1px solid #f1f4f8; color: #374151; line-height: 1.7; vertical-align: top; }
.gd-link tr:last-child td { border-bottom: none; }
.gd-who { width: 148px; color: #0051a3; font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) { .gd-grid { grid-template-columns: 1fr; } }
.gd-rules { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 15px 18px; margin-top: 16px; }
.gd-rules h3 { font-size: 13.5px; font-weight: 600; color: #0051a3; margin: 0 0 9px; }
.gd-rules ol { margin: 0; padding-left: 19px; font-size: 12.8px; line-height: 1.85; color: #374151; }
.gd-rules li { margin-bottom: 4px; }

/* 客户状态标签 */
.tag.cs-contacted { background: #eff2f6; color: #5a6b7d; }
.tag.cs-quoted { background: #eff4ff; color: #2563eb; }
.tag.cs-negotiating { background: #fff7e6; color: #ad6800; }
.tag.cs-new { background: #e6f9f0; color: #0c7a43; }
.tag.cs-repeat { background: #e8f7ef; color: #08684a; }
.tag.cs-cold { background: #fff1f0; color: #cf1322; }

/* 消息提醒（铃铛 + 面板） */
.bell-btn { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 9px; width: 36px; height: 36px; font-size: 16px; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.bell-btn:hover { border-color: #9ec1e8; background: #f4f8fd; }
.bell-badge { position: absolute; top: -5px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; background: #e5484d; color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 9px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-sizing: content-box; }
.notif-panel { position: fixed; top: 64px; right: 210px; width: 400px; max-height: 560px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 40px rgba(15, 60, 110, .16); z-index: 900; display: flex; flex-direction: column; overflow: hidden; }
.notif-panel .nf-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.nf-count { font-size: 11.5px; color: #e5484d; font-weight: 600; }
.notif-panel .nf-list { overflow-y: auto; }
.nf-item { display: flex; gap: 10px; padding: 11px 16px; border-bottom: 1px solid #f3f6fa; cursor: pointer; transition: background .12s; }
.nf-item:hover { background: #f6f9fd; }
.nf-item.unread { background: #f2f7ff; }
.nf-item.unread:hover { background: #ecf3fe; }
.nf-ic { font-size: 17px; flex: 0 0 auto; margin-top: 1px; }
.nf-body { flex: 1; min-width: 0; }
.nf-top { display: flex; align-items: center; gap: 6px; }
.nf-top b { font-size: 12.8px; color: #1a2b3c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-dot { width: 7px; height: 7px; background: #e5484d; border-radius: 50%; flex: 0 0 auto; }
.nf-time { margin-left: auto; font-size: 10.5px; color: #98a2b3; white-space: nowrap; }
.nf-text { font-size: 12.2px; color: #4b5b6e; line-height: 1.55; margin-top: 2px; }
.nf-from { font-size: 11px; color: #98a2b3; margin-top: 3px; }
.nf-empty { text-align: center; padding: 46px 20px; color: #98a2b3; font-size: 13px; line-height: 1.9; }
.nf-empty span { font-size: 11.5px; color: #b9c2cf; }
@media (max-width: 1100px) { .notif-panel { right: 16px; } }


/* 国家自动补全下拉 */
.ctry-drop { position: absolute; top: 100%; left: 0; right: 0; z-index: 60; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.14); max-height: 230px; overflow-y: auto; }
.ctry-item { padding: 8px 12px; font-size: 13px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ctry-item:hover { background: #eef4ff; }
.ctry-item .rg { color: var(--text2); font-size: 11px; flex: 0 0 auto; white-space: nowrap; }
