:root {
  /* 飞书科技风色板 */
  --primary: #3370FF;
  --primary-dark: #245BDB;
  --primary-light: #E8F0FF;
  --primary-lighter: #F2F6FF;
  --danger: #F53F3F;
  --danger-light: #FFECE8;
  --success: #00B42A;
  --success-light: #E8FFEA;
  --warning: #FF8800;
  --warning-light: #FFF7E8;
  --purple: #7B61FF;
  --purple-light: #EFEBFF;
  --teal: #0FB88C;
  --teal-light: #E4F7F1;
  --ink: #1F2329;
  --text2: #646A73;
  --text3: #8F959E;
  --bg: #F5F6F7;
  --card: #FFFFFF;
  --line: #E5E6EB;
  --fill: #F2F3F5;
  /* 兼容旧变量名：--red 在本项目里是“主操作/强调”，统一指向飞书蓝 */
  --red: #3370FF;
  --red-dark: #245BDB;
  --gold: #6A7A99;
  --gray: #646A73;
  --green: #00B42A;
  --amber: #FF8800;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
#app { max-width: 640px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: 72px; }
#app.admin-wide { max-width: 1100px; }

/* 登录页 */
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background:
  radial-gradient(900px 420px at 50% -120px, rgba(51,112,255,.14), rgba(51,112,255,0) 70%), var(--bg); }
.login-ip { width: 184px; height: auto; margin-bottom: 10px; }
.login-brand { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: 2px; }
.login-sub { font-size: 14px; color: var(--primary); margin-bottom: 28px; letter-spacing: 1px; font-weight: 500; }
.login-card { width: 100%; max-width: 360px; background: var(--card); border-radius: 16px; padding: 26px 22px; border: 1px solid var(--line); box-shadow: 0 8px 32px rgba(31,35,41,.08); }
.login-card input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; margin-bottom: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.login-card input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(51,112,255,.12); }

/* 通用 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; border-radius: 10px; padding: 12px 18px; font-size: 16px; font-weight: 600; cursor: pointer; width: 100%; background: var(--primary); color: #fff; transition: background .15s, box-shadow .15s; }
.btn:active { background: var(--primary-dark); }
.btn:disabled { opacity: .5; }
.btn-gold { background: var(--purple); }
.btn-outline { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #BFD4FF; }
.btn-gray { background: var(--fill); color: var(--ink); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; width: auto; }
.btn-danger { background: #fff; color: var(--danger); border: 1.5px solid var(--danger); }

.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); padding: 14px 16px 10px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 19px; font-weight: 700; margin: 0; flex: 1; }
.topbar .back { font-size: 22px; color: var(--ink); text-decoration: none; line-height: 1; padding: 2px 6px; }
.page { padding: 14px 16px 20px; }

.card { background: var(--card); border-radius: 12px; padding: 16px; margin-bottom: 12px; border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(31,35,41,.04); }
.card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }

/* 首页三入口 */
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.entry { background: var(--card); border-radius: 12px; padding: 18px 8px; text-align: center; box-shadow: 0 1px 3px rgba(31,35,41,.04); cursor: pointer; border: 1px solid var(--line); }
.entry:active { border-color: var(--primary); background: var(--primary-lighter); }
.entry .icon { font-size: 30px; }
.entry .t { font-size: 14px; font-weight: 700; margin-top: 6px; }
.entry.customer { border-top: 3px solid var(--primary); }
.entry.viewing { border-top: 3px solid var(--teal); }
.entry.deal { border-top: 3px solid var(--purple); }

.stat-row { display: flex; gap: 10px; }
.stat-box { flex: 1; background: var(--card); border-radius: 12px; padding: 12px 10px; text-align: center; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(31,35,41,.03); }
.stat-box .num { font-size: 22px; font-weight: 700; color: var(--primary); }
.stat-box .lbl { font-size: 12px; color: var(--text2); }

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--text2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; background: #fff; color: var(--ink); font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(51,112,255,.12); }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; cursor: pointer; color: var(--text2); transition: all .12s; }
.chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.hint { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* 大文本录入框 */
.big-textarea { width: 100%; min-height: 150px; border: 1.5px solid var(--primary); border-radius: 12px; padding: 14px; font-size: 16px; line-height: 1.8; background: #fff; }
.tip-bar { background: var(--primary-lighter); border: 1px solid #D3E0FF; color: var(--primary-dark); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }

/* 客户列表 */
.search-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.search-bar input { flex: 1; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 15px; }
.search-bar input:focus { outline: none; border-color: var(--primary); }
.cust-item { background: var(--card); border-radius: 12px; padding: 13px 14px; margin-bottom: 9px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(31,35,41,.03); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; transition: border-color .12s; }
.cust-item:active { border-color: var(--primary); }
.cust-item .n { font-weight: 700; font-size: 16px; }
.cust-item .meta { font-size: 12px; color: var(--text2); margin-top: 3px; }
.cust-item .right { text-align: right; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; margin-right: 4px; }
.tag-red { background: var(--primary-light); color: var(--primary-dark); }
.tag-gold { background: var(--teal-light); color: #0a8a6a; }
.tag-gray { background: var(--fill); color: var(--text2); }
.tag-green { background: var(--success-light); color: var(--success); }

/* 详情 */
.detail-row { display: flex; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-row .k { width: 84px; color: var(--text2); flex-shrink: 0; }
.detail-row .v { flex: 1; }
.phone-link { color: var(--primary); font-weight: 700; text-decoration: none; font-size: 18px; }

/* 业绩 */
.deal-type-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }
.deal-type-tabs .chip { white-space: nowrap; font-size: 13px; padding: 6px 12px; }
.calc-box { background: var(--primary-lighter); border: 1px solid #D3E0FF; border-radius: 10px; padding: 12px; font-size: 13px; line-height: 2; }
.calc-box .big { font-size: 20px; font-weight: 700; color: var(--primary-dark); }
.progress { height: 10px; background: #EBEDF0; border-radius: 999px; overflow: hidden; margin: 8px 0; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #3370FF, #5B8BFF); border-radius: 999px; }
.progress.gold > i { background: linear-gradient(90deg, #7B61FF, #9B8CFF); }

/* 底部 tab */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 640px; background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 100; }
.tabbar a { flex: 1; text-align: center; padding: 8px 0 10px; text-decoration: none; color: var(--text2); font-size: 11px; }
.tabbar a .ic { font-size: 21px; display: block; line-height: 1.2; }
.tabbar a.on { color: var(--primary); font-weight: 700; }

.empty { text-align: center; padding: 40px 20px; color: var(--text3); }
.empty img { width: 130px; opacity: .9; }
.empty .t { font-size: 14px; margin-top: 6px; }

.toast { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); background: rgba(31,35,41,.92); color: #fff; padding: 11px 20px; border-radius: 10px; z-index: 999; font-size: 14px; max-width: 86%; text-align: center; }
.modal-mask { position: fixed; inset: 0; background: rgba(31,35,41,.4); z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: #fff; width: 100%; max-width: 640px; border-radius: 18px 18px 0 0; padding: 20px 18px 28px; max-height: 88vh; overflow-y: auto; }
.modal h3 { margin: 0 0 14px; }
.sheet-mask { position: fixed; inset: 0; background: rgba(31,35,41,.4); z-index: 200; }
.sheet { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 640px; background: #fff; border-radius: 18px 18px 0 0; padding: 16px 18px 26px; z-index: 201; }

.list-line { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.list-line:last-child { border-bottom: none; }
.muted { color: var(--text2); font-size: 13px; }
.red { color: var(--primary); }
.gold { color: var(--purple); }
.bold { font-weight: 700; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.badge { background: var(--primary); color: #fff; border-radius: 999px; font-size: 10px; padding: 1px 6px; margin-left: 4px; }
.status-pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.st-待审核 { background: var(--warning-light); color: var(--warning); }
.st-已审核 { background: var(--success-light); color: var(--success); }
.st-已驳回 { background: var(--danger-light); color: var(--danger); }
.st-已失效 { background: var(--fill); color: var(--text3); }

/* 桌面宽屏（后台） */
@media (min-width: 860px) {
  .admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ========== 飞书风群聊 ========== */
#app.chat-mode { padding-bottom: 0; max-width: 640px; }
.chat-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: #F2F3F5; }
.chat-header { background: #fff; padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.chat-header .group-name { font-size: 16px; font-weight: 700; }
.chat-header .group-sub { font-size: 11px; color: var(--text3); }
.chat-body { flex: 1; overflow-y: auto; padding: 14px 12px 20px; -webkit-overflow-scrolling: touch; }
.chat-day { text-align: center; margin: 12px 0; }
.chat-day span { background: rgba(31,35,41,.18); color: #fff; font-size: 11px; padding: 2px 10px; border-radius: 6px; }

.msg-row { display: flex; margin-bottom: 16px; gap: 8px; }
.msg-row.me { flex-direction: row-reverse; }
.msg-avatar { width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; font-weight: 700; }
.msg-avatar.bot { background: var(--primary); }
.msg-avatar.person { background: #6A7A99; }
.msg-main { max-width: 76%; }
.msg-name { font-size: 11px; color: var(--text3); margin-bottom: 3px; }
.msg-row.me .msg-name { text-align: right; }
.bubble { display: inline-block; background: #fff; padding: 9px 12px; border-radius: 10px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; position: relative; border: 1px solid rgba(31,35,41,.04); }
.msg-row.me .bubble { background: #D6E4FF; border-color: transparent; }
.bubble img.msg-img { width: 160px; height: 160px; object-fit: cover; border-radius: 8px; display: block; margin: 2px 0; cursor: pointer; }
.img-grid { display: grid; gap: 4px; max-width: 320px; }
.img-grid.c1 { grid-template-columns: 1fr; }
.img-grid.c2, .img-grid.c4 { grid-template-columns: repeat(2, 1fr); }
.img-grid.c3, .img-grid.c5, .img-grid.c6, .img-grid.c7, .img-grid.c8, .img-grid.c9 { grid-template-columns: repeat(3, 1fr); }
.img-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; cursor: pointer; }
.bot-card { background: #fff; border-radius: 12px; padding: 12px; border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(31,35,41,.05); max-width: 300px; }
.bot-card .card-title { font-weight: 700; color: var(--primary); font-size: 15px; margin-bottom: 6px; }
.bot-card .line { font-size: 14px; line-height: 1.7; }
.bot-card .new-tag { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-size: 11px; border-radius: 6px; padding: 1px 7px; margin-left: 4px; }

.chat-footer { background: #fff; border-top: 1px solid var(--line); padding: 8px 10px; flex-shrink: 0; position: relative; }
.chat-input-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-input-row textarea { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 16px; resize: none; max-height: 90px; line-height: 1.5; font-family: inherit; background: var(--fill); }
.chat-input-row textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.plus-btn { width: 40px; height: 40px; border-radius: 8px; background: var(--fill); border: none; font-size: 24px; color: var(--text2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.send-btn { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 0 16px; height: 40px; font-size: 15px; font-weight: 600; flex-shrink: 0; }
.send-btn:active { background: var(--primary-dark); }
.plus-panel { position: absolute; bottom: 64px; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); padding: 16px 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; box-shadow: 0 -4px 16px rgba(31,35,41,.06); }
.plus-panel .pp { background: var(--fill); border-radius: 12px; padding: 16px 6px; text-align: center; cursor: pointer; }
.plus-panel .pp:active { background: var(--primary-light); }
.plus-panel .pp .ic { font-size: 28px; }
.plus-panel .pp .t { font-size: 12px; margin-top: 4px; }

/* 带看表单：关联客户、图片上传 */
.pick-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
.pick-item.sel { border-color: var(--primary); background: var(--primary-lighter); }
.pick-item .pn { font-weight: 700; }
.pick-item .pm { font-size: 12px; color: var(--text2); }
.upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.upload-thumb { position: relative; aspect-ratio: 1/1; }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.upload-thumb .del { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(31,35,41,.6); color: #fff; border: none; font-size: 13px; line-height: 1; }
.upload-add { aspect-ratio: 1/1; border: 1.5px dashed #94B3FF; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--primary); font-size: 13px; cursor: pointer; background: var(--primary-lighter); }
.upload-add .ic { font-size: 26px; }

.img-viewer { position: fixed; inset: 0; background: rgba(15,17,20,.94); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.img-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.img-viewer .close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 34px; }

/* ===== 业绩录入表单 ===== */
.deal-type-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.form-grid .field { margin-bottom: 10px; }
.form-grid .field label { font-size: 13px; }
.split-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.split-row .sp-u { flex: 1; padding: 10px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: #fff; min-width: 0; }
.split-row .sp-share { width: 64px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; text-align: right; }
.split-row .sp-pct { color: var(--text3); font-size: 14px; }
.split-row .sp-del { width: 30px; height: 30px; flex-shrink: 0; border: 1.5px solid var(--danger); color: var(--danger); background: #fff; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; }
.deal-meta { font-size: 13px; color: var(--text2); line-height: 1.9; }
.deal-meta b { color: var(--ink); font-weight: 600; }
.deal-split-tags { margin-top: 6px; }
.deal-split-tags .sp-tag { display: inline-block; background: var(--primary-light); color: var(--primary-dark); border: 1px solid #C9D9FF; border-radius: 999px; padding: 2px 10px; font-size: 12px; margin: 0 6px 4px 0; }
.pay-pill { font-size: 12px; padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.pay-pill.unpaid { background: var(--danger-light); color: var(--danger); }
.pay-pill.paid { background: var(--success-light); color: var(--success); }
.pay-pill.part { background: var(--warning-light); color: var(--warning); }

/* ===== 底部4栏导航：中间凸起录入按钮 ===== */
.tabbar a.tab-entry { color: var(--primary); font-weight: 700; }
.tabbar .entry-ic { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: -15px auto 2px; background: var(--primary); color: #fff; border-radius: 50%; font-size: 28px; line-height: 1; box-shadow: 0 4px 14px rgba(51,112,255,.4); }
.chat-page .tabbar { position: static; transform: none; width: 100%; max-width: none; border-top: 1px solid var(--line); }

/* ===== 录入中心 ===== */
.entry-hero { padding: 6px 4px 16px; }
.entry-hero .t { font-size: 22px; font-weight: 700; }
.entry-hero .s { color: var(--text2); font-size: 13px; margin-top: 5px; }
.entry-big { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 18px 16px; margin-bottom: 12px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(31,35,41,.04); transition: border-color .12s, background .12s; }
.entry-big:active { border-color: var(--primary); background: var(--primary-lighter); }
.entry-big .big-ic { font-size: 30px; width: 54px; height: 54px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 14px; }
.entry-big.e-viewing .big-ic { background: var(--primary-light); }
.entry-big.e-customer .big-ic { background: var(--teal-light); }
.entry-big.e-deal .big-ic { background: var(--purple-light); }
.entry-big .big-txt { flex: 1; min-width: 0; }
.entry-big .bt { font-size: 18px; font-weight: 700; }
.entry-big .bs { font-size: 12px; color: var(--text2); margin-top: 5px; line-height: 1.5; }
.entry-big .arrow { font-size: 26px; color: #C9CDD4; line-height: 1; }

/* ===== 我的菜单 ===== */
.menu-card { padding: 0; overflow: hidden; }
.menu-line { display: flex; align-items: center; gap: 12px; padding: 15px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.menu-line:last-child { border-bottom: none; }
.menu-line .mi { font-size: 20px; }
.menu-line .arrow { margin-left: auto; color: #C9CDD4; font-size: 20px; }
.menu-line:active { background: var(--primary-lighter); }

/* ===== 聊天：头像图片 / 表情 / 图片文件 ===== */
.msg-avatar.has-img { overflow: hidden; padding: 0; }
.msg-avatar.has-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.msg-row.me .msg-main { display: flex; flex-direction: column; align-items: flex-end; }
.icon-btn { width: 38px; height: 38px; border: none; background: transparent; font-size: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.emoji-panel { position: absolute; bottom: 64px; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 12px; max-height: 280px; box-shadow: 0 -4px 16px rgba(31,35,41,.06); }
.ep-actions { display: flex; gap: 10px; margin-bottom: 8px; }
.ep-btn { flex: 1; background: var(--fill); border: none; border-radius: 10px; padding: 11px 0; font-size: 14px; font-weight: 600; font-family: inherit; color: var(--ink); }
.ep-btn:active { background: var(--primary-light); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; overflow-y: auto; max-height: 210px; }
.emoji-item { font-size: 24px; text-align: center; padding: 5px 0; cursor: pointer; border-radius: 6px; line-height: 1; }
.emoji-item:active { background: var(--fill); }
.chat-files { margin-top: 4px; width: 100%; }
.chat-file { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid rgba(31,35,41,.04); border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; text-decoration: none; color: var(--ink); max-width: 250px; box-shadow: 0 1px 2px rgba(31,35,41,.05); }
.msg-row.me .chat-file { background: #D6E4FF; border-color: transparent; }
.chat-file .fi { font-size: 22px; flex-shrink: 0; }
.chat-file .fn { font-size: 13px; word-break: break-all; line-height: 1.4; }

/* ===== 我的：头像与昵称 ===== */
.profile-top { display: flex; align-items: center; gap: 16px; }
.profile-avatar { width: 64px; height: 64px; border-radius: 14px; background: var(--primary); color: #fff; font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { flex: 1; min-width: 0; }

/* ===== 客户：分段切换 / 公客池 / 领取 ===== */
.seg-tabs { display: flex; background: var(--fill); border-radius: 10px; padding: 3px; margin-bottom: 12px; }
.seg-tabs .seg { flex: 1; text-align: center; padding: 8px 0; font-size: 14px; color: var(--text2); border-radius: 8px; cursor: pointer; font-weight: 600; }
.seg-tabs .seg.on { background: #fff; color: var(--primary); font-weight: 700; box-shadow: 0 1px 3px rgba(31,35,41,.12); }
.tag-pool { background: var(--warning-light); color: #D46B08; }
.cust-item .right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; justify-content: center; }
.btn-claim { padding: 5px 14px; font-size: 12px; border-radius: 8px; background: var(--primary); color: #fff; border: none; width: auto; font-weight: 600; cursor: pointer; }
.btn-claim:active { background: var(--primary-dark); }
