/* ================================================================
 * 智辉云ClosAI · 销售教练 PC端 v1.0.0 — 样式
 * ================================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #FAFBFC; color: #1F2329; -webkit-font-smoothing: antialiased;
}

/* ============ 登录页 ============ */
#login-screen {
  position: fixed; inset: 0; z-index: 100; display: flex;
  background: #fff; overflow: auto;
}
#login-screen::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 380px at 18% 12%, rgba(37,99,235,.10), transparent 70%),
    radial-gradient(560px 340px at 85% 85%, rgba(124,58,237,.09), transparent 70%),
    radial-gradient(400px 260px at 70% 20%, rgba(219,39,119,.04), transparent 70%);
}
.login-top { position: absolute; top: 22px; left: 30px; display: flex; align-items: center; gap: 9px; z-index: 2; }
.login-top .lg-logo {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px;
}
.login-top .lg-name { font-size: 15px; font-weight: 700; }
.login-top .lg-sub { font-size: 12.5px; color: #8A9099; }
.login-box { position: relative; z-index: 1; margin: auto; width: 400px; max-width: calc(100vw - 48px); padding: 48px 44px 40px; }
.login-box h1 { font-size: 27px; font-weight: 800; letter-spacing: .5px; }
.login-box h1 .grad {
  background: linear-gradient(90deg, #2563EB, #7C3AED);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-box .welcome { margin-top: 8px; font-size: 14px; color: #6B7280; }
.login-form { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.lf-item { display: flex; flex-direction: column; gap: 7px; }
.lf-item label { font-size: 13px; font-weight: 600; color: #3D434D; }
.lf-item input {
  height: 46px; border-radius: 11px; border: 1px solid #DDE1E6; outline: none;
  padding: 0 15px; font-size: 14.5px; background: #FBFCFD; transition: border .15s, box-shadow .15s;
}
.lf-item input:focus { border-color: #2563EB; background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
.btn-login {
  margin-top: 8px; height: 46px; border-radius: 11px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  color: #fff; font-size: 15.5px; font-weight: 700; letter-spacing: 2px;
  box-shadow: 0 6px 18px rgba(37,99,235,.28); font-family: inherit;
}
.btn-login:active { transform: translateY(1px); }
.btn-login:disabled { opacity: .6; cursor: default; }
.login-err { min-height: 20px; font-size: 12.5px; color: #DB2777; margin-top: 10px; }
.login-foot { margin-top: 26px; font-size: 11.5px; color: #B6BCC4; text-align: center; }

/* ============ 主框架 ============ */
#app { display: none; flex-direction: column; width: 100%; height: 100%; }
.titlebar {
  height: 42px; flex: none; display: flex; align-items: center;
  background: #FFFFFF; border-bottom: 1px solid #ECEEF1; padding-left: 14px;
  -webkit-app-region: drag;
}
.titlebar .brand { display: flex; align-items: center; gap: 8px; }
.logo-mark {
  width: 20px; height: 20px; border-radius: 6px; flex: none;
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 800;
}
.brand-name { font-size: 13px; font-weight: 700; }
.brand-sub { font-size: 12px; color: #8A9099; margin-left: 2px; }
.titlebar-actions { margin-left: auto; display: flex; align-items: center; height: 100%; -webkit-app-region: no-drag; }
.tb-icon { width: 36px; height: 42px; display: flex; align-items: center; justify-content: center; color: #6B7280; cursor: pointer; }
.tb-icon:hover { background: #F3F4F6; }
.tb-icon svg { width: 15px; height: 15px; }
.tb-close:hover { background: #E81123; color: #fff; }
.body-wrap { display: flex; flex: 1; min-height: 0; }

/* ============ 侧栏 ============ */
.sidebar {
  width: 250px; flex: none; background: #F5F6F8;
  border-right: 1px solid #ECEEF1;
  display: flex; flex-direction: column; min-height: 0;
}
.side-top { padding: 12px 10px 4px; }
.btn-newtask {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; border-radius: 10px; margin: 0 4px 12px;
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 8px rgba(37,99,235,.22);
}
.btn-newtask svg { width: 14px; height: 14px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 12px; margin: 1px 4px;
  border-radius: 9px; font-size: 13.5px; color: #3D434D; cursor: pointer;
}
.nav-item svg { width: 16px; height: 16px; flex: none; color: #7A828D; }
.nav-item:hover { background: #ECEEF2; }
.nav-item.active { background: #FFFFFF; color: #1F2329; font-weight: 600; box-shadow: 0 1px 3px rgba(15,23,42,.06); }
.nav-item.active svg { color: #2563EB; }
.nav-item .hot {
  margin-left: auto; font-size: 10px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #DB2777, #7C3AED);
  padding: 1px 5px; border-radius: 5px; letter-spacing: .5px;
}
.side-list { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 4px 10px 0; }
.side-tabs { display: flex; align-items: center; gap: 16px; padding: 6px 6px 8px; }
.side-tab { font-size: 12.5px; color: #8A9099; padding-bottom: 4px; }
.side-tab.on { color: #1F2329; font-weight: 600; border-bottom: 2px solid #2563EB; }
.side-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.side-group { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #8A9099; padding: 8px 6px 6px; }
.side-group .cnt { margin-left: auto; }
.cust-item { display: flex; align-items: center; gap: 9px; padding: 7px 6px; margin: 0 4px; border-radius: 9px; cursor: pointer; }
.cust-item:hover { background: #ECEEF2; }
.cust-item.sel { background: #E3E9FD; }
.cust-ava { width: 28px; height: 28px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #fff; }
.cust-info { flex: 1; min-width: 0; }
.cust-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust-desc { font-size: 11.5px; color: #98A0AB; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-tag { flex: none; font-size: 10px; padding: 1.5px 6px; border-radius: 4px; font-weight: 500; }
.st-lead { background: #EDF0F3; color: #6B7280; }
.st-following { background: #E4EDFF; color: #2563EB; }
.st-intent { background: #F1E9FF; color: #7C3AED; }
.st-opportunity { background: #FDF0E3; color: #C77414; }
.st-closed { background: #E7F8F0; color: #0E9F6E; }
.st-lost { background: #FDE8EE; color: #DB2777; }
.side-empty { font-size: 12px; color: #B6BCC4; text-align: center; padding: 24px 0; }
.side-footer { flex: none; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-top: 1px solid #E9EBEE; }
.user-ava { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #2563EB, #7C3AED); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.user-name { font-size: 13px; font-weight: 600; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-plan { font-size: 11px; color: #98A0AB; margin-top: 1px; }
.gear { margin-left: auto; color: #9AA1AB; cursor: pointer; display: flex; }
.gear svg { width: 15px; height: 15px; }

/* ============ 主区 ============ */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; overflow: hidden; background: #FAFBFC; }
.page { display: none; flex: 1; min-height: 0; overflow-y: auto; }
.page.active { display: flex; }
.pg { flex-direction: column; }
.page-hd {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: 14px 26px; background: #fff; border-bottom: 1px solid #ECEEF1;
  position: sticky; top: 0; z-index: 5; flex-wrap: wrap;
}
.page-hd .t { font-size: 16px; font-weight: 700; }
.page-hd .desc { font-size: 12px; color: #98A0AB; }
.page-bd { flex: 1; min-height: 0; padding: 20px 26px 28px; }
.btn-ai {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: 9px; cursor: pointer; border: none;
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  color: #fff; font-size: 12.5px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(37,99,235,.22); font-family: inherit;
}
.btn-ai svg { width: 13px; height: 13px; }
.btn-ai:disabled { opacity: .5; cursor: default; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: 9px; cursor: pointer;
  background: #fff; border: 1px solid #DDE1E6; color: #3D434D; font-size: 12.5px; font-weight: 500; font-family: inherit;
}
.btn-ghost:hover { border-color: #B9C8F5; color: #2563EB; }
.btn-ghost svg { width: 13px; height: 13px; }
.btn-ghost:disabled { opacity: .5; cursor: default; }
.chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px;
  border-radius: 999px; font-size: 12px; color: #4B5563; cursor: pointer;
  background: #fff; border: 1px solid #E7EAEE;
}
.chip:hover { border-color: #B9C8F5; color: #2563EB; }
.chip.on { background: #EEF3FF; border-color: #2563EB; color: #2563EB; font-weight: 600; }

/* ============ 首页 ============ */
#page-home { align-items: center; }
.home-wrap {
  flex: 1; min-height: 0; overflow-y: auto; width: 100%;
  display: flex; flex-direction: column; align-items: center; padding: 44px 48px 24px;
  background:
    radial-gradient(420px 240px at 78% 8%, rgba(124,58,237,.07), transparent 70%),
    radial-gradient(520px 300px at 18% 2%, rgba(37,99,235,.08), transparent 70%);
}
.greet { text-align: center; }
.greet h1 { font-size: 29px; font-weight: 800; letter-spacing: .5px; }
.greet h1 .accent { background: linear-gradient(90deg, #2563EB 0%, #7C3AED 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.greet .sub { margin-top: 10px; font-size: 13.5px; color: #6B7280; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.greet .sub .link { color: #2563EB; font-weight: 500; cursor: pointer; }
.greet .sub .dot { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; }
.modules { display: flex; gap: 14px; margin-top: 30px; width: 100%; max-width: 820px; }
.mod-card { flex: 1; background: #fff; border: 1px solid #ECEEF1; border-radius: 14px; padding: 16px 16px 14px; cursor: pointer; box-shadow: 0 1px 3px rgba(15,23,42,.04); transition: transform .15s, box-shadow .15s; }
.mod-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,.10); }
.mod-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; }
.mod-icon svg { width: 17px; height: 17px; }
.mi-1 { background: linear-gradient(135deg, #2563EB, #4F7BFF); }
.mi-2 { background: linear-gradient(135deg, #7C3AED, #A855F7); }
.mi-3 { background: linear-gradient(135deg, #DB2777, #EC6FA0); }
.mod-title { font-size: 14.5px; font-weight: 600; margin-top: 11px; display: flex; align-items: center; gap: 6px; }
.mod-title .beta { font-size: 9.5px; font-weight: 700; color: #DB2777; background: #FDE8EE; border-radius: 4px; padding: 1px 5px; }
.mod-desc { font-size: 12px; color: #8A9099; margin-top: 5px; line-height: 1.55; }
.mod-sample { margin-top: 10px; font-size: 11px; color: #2563EB; background: #F0F4FF; border-radius: 8px; padding: 6px 9px; display: flex; align-items: center; gap: 5px; }
.mod-sample svg { width: 11px; height: 11px; flex: none; }
.composer-wrap { width: 100%; max-width: 820px; margin-top: 30px; }
.composer { background: #fff; border: 1px solid #E4E7EC; border-radius: 16px; box-shadow: 0 4px 18px rgba(15,23,42,.05); padding: 14px 16px 10px; }
.composer:focus-within { border-color: #B9C8F5; box-shadow: 0 4px 22px rgba(37,99,235,.12); }
.comp-input {
  width: 100%; border: none; outline: none; background: transparent; resize: none;
  font-size: 14px; line-height: 1.6; min-height: 46px; font-family: inherit; color: #1F2329; display: block;
}
.comp-input::placeholder { color: #B6BCC4; }
.comp-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cb-chip { display: flex; align-items: center; gap: 5px; height: 28px; font-size: 12px; color: #4B5563; cursor: pointer; padding: 0 10px; border-radius: 8px; }
.cb-chip:hover { background: #F3F4F6; }
.cb-chip svg { width: 12px; height: 12px; color: #9AA1AB; }
.cb-send { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; flex: none; cursor: pointer; border: none; background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(37,99,235,.35); }
.cb-send svg { width: 15px; height: 15px; color: #fff; }
.quick { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.q-chip { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #4B5563; cursor: pointer; background: #fff; border: 1px solid #E7EAEE; border-radius: 999px; padding: 7px 14px; }
.q-chip:hover { border-color: #B9C8F5; color: #2563EB; background: #F7F9FF; }
.q-chip svg { width: 13px; height: 13px; color: #2563EB; }
.home-stats { display: flex; gap: 12px; margin-top: 28px; width: 100%; max-width: 820px; }
.hs-item { flex: 1; background: #fff; border: 1px solid #ECEEF1; border-radius: 12px; padding: 13px 16px; cursor: pointer; }
.hs-item:hover { border-color: #B9C8F5; }
.hs-item .n { font-size: 24px; font-weight: 800; letter-spacing: .5px; }
.hs-item .l { font-size: 12px; color: #8A9099; margin-top: 2px; }

/* ============ AI 对话页 ============ */
#page-chat { flex-direction: column; background: #FAFBFC; }
.chat-hd {
  flex: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 26px; background: #fff; border-bottom: 1px solid #ECEEF1;
}
.chat-hd .t { font-size: 15px; font-weight: 700; }
.chat-cust-select {
  height: 32px; border-radius: 9px; border: 1px solid #DDE1E6; background: #fff;
  font-size: 13px; color: #1F2329; padding: 0 10px; outline: none; cursor: pointer; max-width: 240px; font-family: inherit;
}
.chat-cust-select:focus { border-color: #2563EB; }
.chat-acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 0 16px; }
.chat-col { max-width: 780px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 20px; }
.msg { display: flex; gap: 10px; }
.msg.user { flex-direction: row-reverse; }
.msg-ava { width: 32px; height: 32px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #fff; }
.ava-user { background: linear-gradient(135deg, #2563EB, #7C3AED); }
.ava-ai { background: linear-gradient(135deg, #DB2777, #7C3AED); }
.msg-bd { min-width: 0; max-width: 78%; display: flex; flex-direction: column; gap: 10px; }
.msg.user .msg-bd { align-items: flex-end; }
.bubble-user {
  background: linear-gradient(135deg, #2563EB, #5B54E8); color: #fff;
  border-radius: 14px 14px 4px 14px; padding: 10px 14px; font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word;
}
.ai-name { font-size: 12px; font-weight: 700; color: #7C3AED; display: flex; align-items: center; gap: 5px; }
.ai-name .badge { font-size: 9px; color: #fff; background: linear-gradient(135deg, #DB2777, #7C3AED); border-radius: 4px; padding: 1px 5px; }
.ai-text { font-size: 13.5px; line-height: 1.75; color: #2A3038; background: #fff; border: 1px solid #ECEEF1; border-radius: 4px 14px 14px 14px; padding: 12px 15px; white-space: pre-wrap; word-break: break-word; }
.ai-text b { color: #1F2329; }
.ai-card { background: #fff; border: 1px solid #E4E7EC; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(15,23,42,.04); width: 100%; }
.aic-hd { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-bottom: 1px solid #F0F1F4; }
.aic-hd .cust-ava { width: 40px; height: 40px; font-size: 15px; }
.aic-name { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.aic-sub { font-size: 12px; color: #8A9099; margin-top: 2px; }
.aic-rows { padding: 12px 15px 6px; display: flex; flex-direction: column; gap: 9px; }
.aic-row { display: flex; font-size: 12.5px; line-height: 1.6; }
.aic-row .k { flex: none; width: 78px; color: #98A0AB; }
.aic-row .v { color: #2A3038; white-space: pre-wrap; word-break: break-word; }
.aic-ft { display: flex; gap: 8px; padding: 12px 15px; flex-wrap: wrap; }
.aic-btn {
  height: 32px; padding: 0 16px; border-radius: 9px; cursor: pointer; border: none;
  display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; font-family: inherit;
}
.aic-btn svg { width: 13px; height: 13px; }
.aic-btn.grad { background: linear-gradient(135deg, #2563EB, #7C3AED); color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,.2); }
.aic-btn.line { background: #fff; border: 1px solid #DDE1E6; color: #3D434D; font-weight: 500; }
.aic-btn.line:hover { border-color: #B9C8F5; color: #2563EB; }
.script-card { border: 1px solid #E4E7EC; border-radius: 12px; background: #fff; overflow: hidden; width: 100%; }
.script-hd { display: flex; align-items: center; font-size: 12px; font-weight: 700; color: #3D434D; padding: 10px 14px; border-bottom: 1px solid #F0F1F4; }
.script-hd svg { width: 13px; height: 13px; margin-right: 6px; color: #2563EB; }
.script-bd { font-size: 13px; line-height: 1.8; color: #2A3038; padding: 13px 15px; background: #FBFCFE; white-space: pre-wrap; word-break: break-word; }
.script-ft { display: flex; gap: 8px; padding: 11px 14px; border-top: 1px solid #F0F1F4; flex-wrap: wrap; }
.typing { display: flex; gap: 4px; padding: 6px 0; align-items: center; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #C6CCD4; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .3; } 40% { opacity: 1; } }
.typing-label { font-size: 12px; color: #98A0AB; margin-left: 6px; }
.chat-comp { flex: none; padding: 10px 24px 16px; background: linear-gradient(180deg, rgba(250,251,252,0), #FAFBFC 40%); }

/* ============ 客户库 ============ */
.cust-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; width: 270px; height: 34px; background: #fff; border: 1px solid #E4E7EC; border-radius: 9px; padding: 0 6px 0 11px; }
.search-box svg { width: 14px; height: 14px; color: #9AA1AB; flex: none; }
.search-box input { flex: 1; border: none; outline: none; font-size: 13px; margin-left: 7px; background: transparent; min-width: 0; font-family: inherit; }
.search-box .go { height: 24px; padding: 0 12px; border-radius: 6px; background: #EEF3FF; color: #2563EB; font-size: 12px; font-weight: 600; display: flex; align-items: center; cursor: pointer; flex: none; }
.cust-toolbar .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cols { display: flex; gap: 14px; flex: 1; min-height: 0; align-items: stretch; }
.col-list { width: 300px; flex: none; background: #fff; border: 1px solid #ECEEF1; border-radius: 12px; overflow-y: auto; display: flex; flex-direction: column; }
.cl-group { padding: 10px 14px 4px; font-size: 12px; color: #8A9099; display: flex; align-items: center; }
.cl-group .cnt { margin-left: auto; }
.cl-item { display: flex; align-items: center; gap: 11px; padding: 10px 14px; cursor: pointer; border-left: 3px solid transparent; flex: none; }
.cl-item:hover { background: #F7F8FA; }
.cl-item.sel { background: #F0F4FF; border-left-color: #2563EB; }
.cl-name { font-size: 13.5px; font-weight: 600; }
.cl-desc { font-size: 11.5px; color: #98A0AB; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.cl-more { text-align: center; padding: 12px; font-size: 12.5px; color: #2563EB; cursor: pointer; flex: none; }
.cl-more:hover { background: #F7F9FF; }
.col-detail { flex: 1; min-width: 0; background: #fff; border: 1px solid #ECEEF1; border-radius: 12px; overflow-y: auto; }
.cd-hd { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border-bottom: 1px solid #F0F1F4; background: linear-gradient(115deg, rgba(37,99,235,.05), rgba(124,58,237,.05)); flex-wrap: wrap; }
.cd-hd .cust-ava { width: 52px; height: 52px; font-size: 19px; }
.cd-name { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cd-sub { font-size: 12.5px; color: #8A9099; margin-top: 3px; }
.cd-hd .acts { margin-left: auto; display: flex; gap: 8px; }
.cd-sec { padding: 15px 20px; border-bottom: 1px solid #F0F1F4; }
.cd-sec .st { font-size: 13px; font-weight: 700; margin-bottom: 11px; display: flex; align-items: center; gap: 7px; }
.cd-sec .st .ai-ic { width: 17px; height: 17px; border-radius: 5px; background: linear-gradient(135deg, #2563EB, #7C3AED); display: flex; align-items: center; justify-content: center; }
.cd-sec .st .ai-ic svg { width: 10px; height: 10px; color: #fff; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 24px; }
.ig-item { display: flex; font-size: 12.5px; }
.ig-item .k { flex: none; width: 78px; color: #98A0AB; }
.ig-item .v { color: #2A3038; font-weight: 500; word-break: break-all; }
.tl { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 11px; position: relative; padding-bottom: 14px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: #C6CCD4; flex: none; margin-top: 5px; position: relative; z-index: 1; }
.tl-item.hot .tl-dot { background: #DB2777; box-shadow: 0 0 0 3px #FDE8EE; }
.tl-item::before { content: ""; position: absolute; left: 3.5px; top: 12px; bottom: 0; width: 1px; background: #EDEFF2; }
.tl-item:last-child::before { display: none; }
.tl-t { font-size: 12.5px; font-weight: 600; color: #2A3038; }
.tl-s { font-size: 11.5px; color: #98A0AB; margin-top: 2px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.tl-time { font-size: 10.5px; color: #C0C6CE; margin-left: auto; flex: none; }
.ai-empty { font-size: 12.5px; color: #98A0AB; line-height: 1.7; }
.ai-empty .gen { margin-top: 10px; display: inline-flex; }

/* ============ 跟进任务 ============ */
.task-stats { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.cs-item { flex: 1; min-width: 130px; background: #fff; border: 1px solid #ECEEF1; border-radius: 12px; padding: 13px 16px; }
.cs-item .n { font-size: 24px; font-weight: 800; letter-spacing: .5px; }
.cs-item .l { font-size: 12px; color: #8A9099; margin-top: 2px; }
.tk-group-hd { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; padding: 14px 0 9px; }
.tk-group-hd .cnt { font-size: 11px; font-weight: 600; color: #98A0AB; background: #F0F1F4; border-radius: 999px; padding: 1px 8px; }
.tk-group-hd .warn { font-size: 11px; color: #DB2777; background: #FDE8EE; border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.tk-item { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid #ECEEF1; border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; cursor: pointer; }
.tk-item:hover { border-color: #B9C8F5; box-shadow: 0 2px 10px rgba(37,99,235,.07); }
.tk-item.overdue { border-left: 3px solid #DB2777; }
.tk-time { flex: none; width: 66px; text-align: center; }
.tk-time .h { font-size: 15px; font-weight: 800; }
.tk-time .m { font-size: 10px; color: #98A0AB; margin-top: 1px; }
.tk-ck { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #C6CCD4; flex: none; cursor: pointer; background: #fff; }
.tk-ck:hover { border-color: #2563EB; }
.tk-bd { flex: 1; min-width: 0; }
.tk-t { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-s { font-size: 12px; color: #8A9099; margin-top: 3px; }
.tk-empty { background: #fff; border: 1px dashed #DDE1E6; border-radius: 12px; padding: 26px; text-align: center; font-size: 13px; color: #98A0AB; }

/* ============ 业绩看板 ============ */
.kpi-row { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.kpi { flex: 1; min-width: 150px; background: #fff; border: 1px solid #ECEEF1; border-radius: 12px; padding: 15px 17px; }
.kpi .l { font-size: 12px; color: #8A9099; }
.kpi .n { font-size: 27px; font-weight: 800; margin-top: 3px; letter-spacing: .5px; }
.kpi .n .u { font-size: 13px; font-weight: 600; color: #8A9099; margin-left: 2px; }
.dash-mid { display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.card-w { background: #fff; border: 1px solid #ECEEF1; border-radius: 12px; padding: 16px 18px; }
.card-w .ct { font-size: 13.5px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; }
.card-w .ct .r { margin-left: auto; font-size: 11px; color: #98A0AB; font-weight: 400; }
.funnel { display: flex; flex-direction: column; gap: 10px; }
.fn-row { display: flex; align-items: center; gap: 10px; }
.fn-row .fl { flex: none; width: 62px; font-size: 12px; color: #6B7280; }
.fn-bar { height: 22px; border-radius: 5px; display: flex; align-items: center; padding-left: 9px; color: #fff; font-size: 11px; font-weight: 600; min-width: 40px; }
.fn-row .fv { font-size: 12px; color: #98A0AB; }
.fn-1 { background: linear-gradient(90deg, #93B4FF, #5B8DFF); }
.fn-2 { background: linear-gradient(90deg, #6E9BFF, #3B76F5); }
.fn-3 { background: linear-gradient(90deg, #9D6BFF, #7C3AED); }
.fn-4 { background: linear-gradient(90deg, #E9679C, #DB2777); }
.target-bar { height: 10px; border-radius: 5px; background: #F0F1F4; overflow: hidden; margin-top: 10px; }
.target-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #2563EB, #7C3AED); }
.insight-card { border: 1px solid #E4E7EC; border-radius: 12px; background: #fff; position: relative; overflow: hidden; }
.insight-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #2563EB, #DB2777); }
.insight-bd { display: flex; align-items: center; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.insight-ic { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #2563EB, #DB2777); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.insight-ic svg { width: 18px; height: 18px; }
.insight-tx { flex: 1; min-width: 260px; }
.insight-tx .t { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.insight-tx .t .ai-ic { width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(135deg, #2563EB, #7C3AED); color: #fff; font-size: 9px; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.insight-tx .s { font-size: 12.5px; color: #6B7280; margin-top: 5px; line-height: 1.65; }

/* ============ 智能日报 ============ */
.report-card { max-width: 860px; }
.rp-sec { background: #fff; border: 1px solid #ECEEF1; border-radius: 12px; padding: 18px 22px; margin-bottom: 14px; }
.rp-sec .st { font-size: 13.5px; font-weight: 700; margin-bottom: 13px; display: flex; align-items: center; gap: 8px; }
.rp-sec .st .ai-ic { width: 17px; height: 17px; border-radius: 5px; background: linear-gradient(135deg, #2563EB, #7C3AED); color: #fff; font-size: 9px; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.rp-sum { font-size: 13.5px; line-height: 1.9; color: #2A3038; white-space: pre-wrap; word-break: break-word; }
.rp-empty { text-align: center; padding: 60px 0; }
.rp-empty .t { font-size: 14px; font-weight: 600; color: #3D434D; }
.rp-empty .s { font-size: 12.5px; color: #98A0AB; margin: 8px 0 18px; }
.date-input { height: 32px; border: 1px solid #DDE1E6; border-radius: 9px; padding: 0 12px; font-size: 13px; outline: none; color: #1F2329; font-family: inherit; }
.date-input:focus { border-color: #2563EB; }

/* ============ 设置 ============ */
.set-card { background: #fff; border: 1px solid #ECEEF1; border-radius: 12px; margin-bottom: 14px; max-width: 720px; }
.set-hd { font-size: 13px; font-weight: 700; color: #6B7280; padding: 13px 18px; border-bottom: 1px solid #F0F1F4; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid #F6F7F9; cursor: pointer; }
.set-row:last-child { border-bottom: none; }
.set-row:hover { background: #F9FAFB; }
.set-row .ic { width: 30px; height: 30px; border-radius: 8px; background: #F0F2F5; color: #6B7280; display: flex; align-items: center; justify-content: center; flex: none; }
.set-row .ic svg { width: 15px; height: 15px; }
.set-row .t { font-size: 13.5px; font-weight: 600; }
.set-row .s { font-size: 11.5px; color: #98A0AB; margin-top: 1px; }
.set-row .rt { margin-left: auto; font-size: 12px; color: #C0C6CE; word-break: break-all; text-align: right; }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.42); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 30px;
}
.modal {
  background: #fff; border-radius: 16px; width: 460px; max-width: 100%;
  max-height: calc(100vh - 80px); display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(15,23,42,.25);
}
.modal.wide { width: 620px; }
.modal-hd { display: flex; align-items: center; padding: 16px 20px 0; }
.modal-hd .t { font-size: 16px; font-weight: 700; }
.modal-hd .x { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #98A0AB; }
.modal-hd .x:hover { background: #F3F4F6; color: #1F2329; }
.modal-hd .x svg { width: 14px; height: 14px; }
.modal-bd { padding: 16px 20px; overflow-y: auto; }
.modal-ft { display: flex; gap: 10px; padding: 4px 20px 18px; }
.modal-ft .btn-ai, .modal-ft .btn-ghost { flex: 1; justify-content: center; height: 38px; font-size: 13.5px; }
.mf-item { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.mf-item label { font-size: 12.5px; font-weight: 600; color: #3D434D; }
.mf-item label .req { color: #DB2777; margin-left: 2px; }
.mf-item input, .mf-item select, .mf-item textarea {
  height: 40px; border-radius: 9px; border: 1px solid #DDE1E6; outline: none;
  padding: 0 12px; font-size: 13.5px; background: #FBFCFD; color: #1F2329; font-family: inherit;
}
.mf-item textarea { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.mf-item input:focus, .mf-item select:focus, .mf-item textarea:focus { border-color: #2563EB; background: #fff; }
.mf-row2 { display: flex; gap: 12px; }
.mf-row2 .mf-item { flex: 1; }
.mf-err { font-size: 12px; color: #DB2777; min-height: 16px; margin-bottom: 4px; }

/* toast */
#toast-box { position: fixed; top: 56px; left: 50%; transform: translateX(-50%); z-index: 10001; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: rgba(29,32,38,.92); color: #fff; font-size: 13px; border-radius: 10px;
  padding: 10px 18px; box-shadow: 0 8px 24px rgba(15,23,42,.3); max-width: 70vw;
  animation: fadein .2s;
}
.toast.ok { background: rgba(14,143,102,.94); }
.toast.err { background: rgba(203,32,92,.94); }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.loading-block { text-align: center; padding: 40px 0; color: #98A0AB; font-size: 13px; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #DDDFE3; border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 侧栏品牌区（横版logo） ============ */
.sb-brand { padding: 6px 16px 10px; }
.sb-logo { height: 34px; display: block; }
.sb-sub { font-size: 11.5px; color: #98A0AB; margin-top: 5px; letter-spacing: .5px; }

/* ============ 客户列表电话按钮 ============ */
.cl-phone {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: #2563EB; text-decoration: none;
  padding: 2px 8px; border-radius: 6px; background: #F0F4FF;
  transition: background .15s, color .15s;
}
.cl-phone:hover { background: #2563EB; color: #fff; }
.cl-phone svg { width: 11px; height: 11px; flex: none; }

/* ============ 登录卡片（卡片式新版） ============ */
.lc-mask {
  background:
    radial-gradient(620px 420px at 28% 18%, rgba(124,58,237,.10), transparent 70%),
    radial-gradient(520px 380px at 78% 88%, rgba(37,99,235,.08), transparent 70%),
    rgba(250,251,252,.72);
  backdrop-filter: blur(8px);
}
.login-card {
  background: #fff; border-radius: 22px; width: 400px; max-width: 100%;
  padding: 34px 38px 26px; position: relative;
  box-shadow: 0 24px 70px rgba(31,35,42,.18);
  max-height: calc(100vh - 60px); overflow-y: auto;
}
.lc-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #98A0AB;
}
.lc-close:hover { background: #F3F4F6; color: #1F2329; }
.lc-close svg { width: 14px; height: 14px; }
.lc-logo { height: 42px; display: block; margin: 0 auto 12px; }
.lc-sub { text-align: center; font-size: 13px; color: #6B7280; margin-bottom: 20px; }
.lc-link { color: #7C3AED; font-weight: 600; cursor: pointer; }
.lc-notice {
  font-size: 12.5px; color: #B45309; background: #FEF3E2; border-radius: 9px;
  padding: 8px 12px; margin-bottom: 14px; text-align: center;
}
.lc-tabs { display: flex; background: #F3F4F6; border-radius: 11px; padding: 4px; margin-bottom: 18px; }
.lc-tab {
  flex: 1; text-align: center; height: 34px; line-height: 34px; font-size: 13.5px;
  color: #6B7280; border-radius: 8px; cursor: pointer; font-weight: 500;
}
.lc-tab.on { background: #fff; color: #7C3AED; font-weight: 600; box-shadow: 0 1px 4px rgba(15,23,42,.08); }
.lc-field { margin-bottom: 14px; }
.lc-field label { display: block; font-size: 12.5px; font-weight: 600; color: #3D434D; margin-bottom: 6px; }
.lc-input { position: relative; }
.lc-input input {
  width: 100%; height: 46px; border-radius: 11px; border: 1px solid #DDE1E6;
  background: #FBFCFD; padding: 0 14px; font-size: 14px; outline: none; font-family: inherit; color: #1F2329;
}
.lc-input input:focus { border-color: #7C3AED; background: #fff; box-shadow: 0 0 0 3px rgba(124,58,237,.10); }
.lc-input .lc-code-btn {
  position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 13px;
  border-radius: 8px; background: #F4EEFF; color: #7C3AED; font-size: 12.5px;
  font-weight: 600; cursor: pointer; border: none; font-family: inherit;
}
.lc-input .lc-code-btn:hover { background: #E9DDFF; }
.lc-agree {
  display: flex; align-items: flex-start; gap: 8px; font-size: 12px;
  color: #6B7280; margin: 2px 0 6px; line-height: 1.7; cursor: pointer;
}
.lc-agree input { margin-top: 3px; accent-color: #7C3AED; width: 14px; height: 14px; flex: none; }
.lc-err { font-size: 12.5px; color: #DB2777; min-height: 18px; margin-bottom: 6px; text-align: center; }
.btn-lc-grad {
  width: 100%; height: 46px; border-radius: 11px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 6px; font-family: inherit;
  box-shadow: 0 6px 18px rgba(124,58,237,.28);
}
.btn-lc-grad:active { transform: translateY(1px); }
.btn-lc-grad:disabled { opacity: .6; cursor: default; }
.lc-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 13px; color: #B6BCC4; font-size: 11.5px; }
.lc-divider::before, .lc-divider::after { content: ""; flex: 1; height: 1px; background: #EDEFF2; }
.btn-wx-login {
  width: 100%; height: 44px; border-radius: 11px; background: #fff;
  border: 1px solid #DDE1E6; cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: #07C160; font-family: inherit;
}
.btn-wx-login:hover { border-color: #07C160; background: #F4FFF8; }
.btn-wx-login svg { width: 20px; height: 20px; }

/* ============ 知识库 ============ */
.kb-note { background: #F0F4FF; border: 1px solid #DCE6FF; color: #3B5BDB; font-size: 12.5px; border-radius: 10px; padding: 10px 14px; margin-bottom: 6px; line-height: 1.7; }
.kb-item { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #ECEEF1; border-radius: 12px; padding: 13px 16px; margin-bottom: 8px; }
.kb-item.off { opacity: .6; }
.kb-body { flex: 1; min-width: 0; }
.kb-q { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kb-a { font-size: 12px; color: #8A9099; margin-top: 4px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb-ops { display: flex; align-items: center; gap: 12px; flex: none; }
.kb-del { color: #C0C6CE; cursor: pointer; display: flex; padding: 4px; border-radius: 6px; }
.kb-del:hover { color: #DB2777; background: #FDE8EE; }
.kb-del svg { width: 14px; height: 14px; }
.kb-offtag { font-size: 10px; color: #fff; background: #C0C6CE; border-radius: 4px; padding: 1px 5px; font-weight: 600; }
.kb-filetag { font-size: 10px; color: #7C3AED; background: #F4EEFF; border-radius: 4px; padding: 1px 5px; font-weight: 600; }

/* ================= 微信机器人（09-18） ================= */
/* 侧栏微信会话列表的模式徽章 */
.wx-mode { font-size:11px; padding:2px 8px; border-radius:99px; font-weight:600; flex-shrink:0; }
.wxm-auto  { background:#ECFDF5; color:#059669; }
.wxm-assist{ background:#EEF2FF; color:#4F46E5; }
.wxm-manual{ background:#FFF7ED; color:#C77414; }
.wx-dot-amber { display:inline-block; width:7px; height:7px; border-radius:50%; background:#F59E0B; margin-left:4px; vertical-align:middle; }

/* 微信对话大面板 */
.wx-mask { z-index:9999; }
.wx-chat { width:min(760px,94vw); height:min(82vh,720px); background:#fff; border-radius:16px; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 24px 60px rgba(15,23,42,.25); }
.wx-hd { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 18px; border-bottom:1px solid #EEF2F7; flex-shrink:0; }
.wx-hd .cust-ava { width:40px; height:40px; font-size:16px; flex-shrink:0; }
.wx-name { font-size:16px; font-weight:700; color:#0F172A; }
.wx-sub { font-size:12px; color:#94A3B8; margin-top:2px; }
.wx-hd-r { display:flex; align-items:center; gap:14px; }
.wx-modes { display:flex; background:#F1F5F9; border-radius:99px; padding:3px; gap:2px; }
.wxm { padding:6px 14px; border-radius:99px; font-size:13px; color:#64748B; cursor:pointer; font-weight:600; transition:all .15s; }
.wxm:hover { color:#0F172A; }
.wxm.on { background:#fff; color:#4F46E5; box-shadow:0 1px 4px rgba(15,23,42,.12); }
.wxm.on[data-m="auto"]   { color:#059669; }
.wxm.on[data-m="manual"] { color:#C77414; }
.wx-x { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; cursor:pointer; color:#94A3B8; }
.wx-x:hover { background:#F1F5F9; color:#0F172A; }
.wx-x svg { width:18px; height:18px; }

/* 绑定条 */
.wx-bind { display:flex; align-items:center; gap:12px; padding:8px 18px; background:#F8FAFC; border-bottom:1px solid #EEF2F7; flex-shrink:0; flex-wrap:wrap; }
.wx-bind-chip { font-size:12px; color:#64748B; background:#fff; border:1px solid #E2E8F0; border-radius:99px; padding:4px 12px; }
.wx-bind-chip.ok { color:#059669; border-color:#A7F3D0; background:#ECFDF5; }
.wx-bind-chip.ok b { font-weight:700; }
.wx-bind-op { font-size:13px; color:#64748B; cursor:pointer; }
.wx-bind-op:hover { color:#0F172A; }
.wx-pick { height:34px; border:1px solid #E2E8F0; border-radius:8px; padding:0 10px; font-size:13px; color:#0F172A; background:#fff; outline:none; max-width:260px; }
.wx-pick:focus { border-color:#6366F1; }
.wx-bind-ok { padding:7px 14px; }

/* 消息区 */
.wx-body { flex:1; overflow-y:auto; padding:18px 22px; background:#F8FAFC; }
.wx-msg { display:flex; flex-direction:column; align-items:flex-start; margin-bottom:14px; }
.wx-msg.me { align-items:flex-end; }
.wx-bub { max-width:78%; min-width:120px; padding:10px 14px; border-radius:14px; font-size:14px; line-height:1.65; color:#0F172A; background:#fff; border:1px solid #E8EDF3; box-shadow:0 1px 2px rgba(15,23,42,.04); white-space:pre-wrap; word-break:break-word; }
.wx-msg.me .wx-bub { background:#C6F1A8; color:#0F172A; border:none; }
.wx-meta { font-size:11px; color:#94A3B8; margin-top:4px; display:flex; align-items:center; gap:6px; }
.wx-tag { font-size:10px; font-weight:700; border-radius:4px; padding:1px 5px; }
.wx-tag-ai { background:#EDE9FE; color:#6D28D9; }
.wx-msg.me .wx-tag-ai { background:rgba(255,255,255,.25); color:#fff; }
.wx-tag-me { background:#DBEAFE; color:#1D4ED8; }
.wx-msg.me .wx-tag-me { background:rgba(255,255,255,.25); color:#fff; }

/* AI 草稿区（AI辅助模式） */
.wx-drafts { border-top:1px solid #EEF2F7; padding:10px 18px; background:#FAFBFF; flex-shrink:0; max-height:200px; overflow-y:auto; }
.wx-draft { background:#fff; border:1px solid #E0E7FF; border-radius:12px; padding:10px 14px; margin-bottom:8px; }
.wx-draft-t { font-size:12px; font-weight:700; color:#6D28D9; margin-bottom:6px; display:flex; align-items:center; gap:6px; }
.wx-draft-c { font-size:13px; color:#0F172A; line-height:1.6; white-space:pre-wrap; }
.wx-draft-ops { display:flex; align-items:center; gap:14px; margin-top:8px; }
.wx-draft-use { padding:6px 14px; }

/* 底部输入 */
.wx-ft { display:flex; gap:10px; padding:12px 18px; border-top:1px solid #EEF2F7; flex-shrink:0; align-items:flex-end; background:#fff; }
.wx-ft textarea { flex:1; resize:none; border:1px solid #E2E8F0; border-radius:10px; padding:10px 12px; font-size:14px; font-family:inherit; line-height:1.5; height:44px; max-height:110px; outline:none; color:#0F172A; }
.wx-ft textarea:focus { border-color:#6366F1; }
.wx-send-btn { height:44px; padding:0 22px; flex-shrink:0; }

/* ===== 客户详情内嵌微信对话（09-18 v2，替代弹窗） ===== */
.wx-inline { background:#F8FAFC; border:1px solid #E8EDF3; }
.wx-inline-hd { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; flex-wrap:wrap; }
.wx-inline-hd .t { font-weight:700; color:#0F172A; font-size:14px; }
.wx-sub-inline { font-size:12px; color:#94A3B8; font-weight:400; }
.wx-inline .wx-body { background:#fff; border-radius:12px; border:1px solid #EEF2F7; max-height:480px; min-height:320px; }
.wx-inline .wx-ft { background:#fff; border-radius:12px; border:1px solid #EEF2F7; margin-top:0; }
.wx-inline .wx-drafts { background:#fff; border:1px solid #E0E7FF; border-radius:12px; margin-bottom:8px; max-height:170px; }

/* 写跟进下拉菜单 */
#fu-menu .fu-mi { padding:10px 14px; cursor:pointer; }
#fu-menu .fu-mi:hover { background:#F5F7FF; }
#fu-menu .fu-mi .t { font-size:13px; font-weight:600; color:#0F172A; }
#fu-menu .fu-mi .s { font-size:11px; color:#94A3B8; margin-top:2px; }
#fu-menu .fu-mi + .fu-mi { border-top:1px solid #F1F5F9; }

/* 微信真实头像（按昵称匹配微信登录用户） */
.wx-ava-img { width:26px; height:26px; border-radius:50%; object-fit:cover; flex-shrink:0; border:1px solid #E2E8F0; }

/* 消息气泡头像（09-18 v3：微信式布局，客户左/本人右） */
.wx-msg { flex-direction: row; align-items: flex-start; gap: 8px; }
.wx-msg.me { flex-direction: row-reverse; }
.wx-msg-ava { width: 30px; height: 30px; border-radius: 6px; flex-shrink: 0; object-fit: cover; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; }
.wx-msg-ava-bot { background: #C7D2FE; }
.wx-inline .wx-bub { margin-top: 0; }

/* 微信状态徽章（logo版，09-18 v1020） */
.wx-logo-badge { flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; }
.wx-logo-badge.on  { background:#E9F9F0; color:#07C160; }
.wx-logo-badge.off { background:#FEF6E7; color:#F59E0B; }
.wx-logo-badge.on:hover  { background:#D3F3E1; }
.wx-logo-badge.off:hover { background:#FDECC8; }
/* 客户名称下的微信昵称行 */
.cust-wxname { display:flex; align-items:center; gap:4px; font-size:11px; color:#07C160; margin:1px 0 2px; }
.cust-wxname svg { color:#07C160; width:11px; height:11px; }

/* 昵称+头像行（微信式，消息上方） */
/* 昵称+头像行：紧凑排在一起，不拉开（右侧=头像+昵称+标签靠右聚拢） */
.wx-name-row { display:flex; align-items:center; gap:6px; margin-bottom:4px; }
.wx-msg.me .wx-name-row { flex-direction: row; justify-content: flex-end; }
.wx-name-txt { font-size:12px; color:#94A3B8; max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 消息内层列：铺满剩余宽度，气泡按内容自然展开（修"几个字就折叠"） */
.wx-msg-col { display:flex; flex-direction:column; min-width:0; flex:1; }
.wx-msg-col.start { align-items:flex-start; }
.wx-msg-col.end { align-items:flex-end; }
.wx-msg-col .wx-bub { width:auto; }

/* 聊天内容列在超宽屏下限制最大宽度，居中显示（微信桌面版风格） */
.wx-inline .wx-body > .wx-msg { max-width: 900px; margin-left: auto; margin-right: auto; width: 100%; }

/* 附件按钮（发送图片/文件） */
.wx-attach-btn { width:44px; height:44px; border-radius:10px; border:1px solid #E2E8F0; background:#fff; color:#64748B; display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; }
.wx-attach-btn:hover { background:#F8FAFC; color:#4F46E5; border-color:#C7D2FE; }
