/* 易货师工作台 · 全局样式（移动端优先）
 * 双色主题：默认蓝色（豆包蓝），可切暖色（米底墨绿）——照单HTML机制搬线上
 * 全站跟随：页面底、卡片、按钮、标签、AI对话框、导航高亮均走 CSS 变量 */
:root {
  --primary: #3370FF; --primary-dark: #2B5FD9; --primary-deep: #1E4FC4;
  --bg: #F4F5F7; --card: #FFFFFF; --text: #1A2332; --text2: #8A919F;
  --line: #ECEEF0; --ghost: #F2F3F5; --soft: #EBF1FF;
  color-scheme: light;
}
body.theme-warm {
  --primary: #3E6249; --primary-dark: #2F4C3A; --primary-deep: #234F3A;
  --bg: #F7F1E8; --card: #FFFDF8; --text: #2B2B28; --text2: #7A756B;
  --line: #E8E2D4; --ghost: #EFEAE0; --soft: #E8F3EC;
  color-scheme: light;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg); /* 固定浅色，不随系统深色模式变化 */
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
body { padding-bottom: 64px; }

/* 页头：固定顶部，一页一个 */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center;
  height: 48px; padding: 0 12px;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.hdr-back {
  border: 0; background: none; font-size: 22px; color: var(--text);
  width: 40px; height: 40px; margin-left: -8px; cursor: pointer;
}
.hdr-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; margin-right: 40px; }
/* 页头右侧：主题切换钮（仅首页，太阳图标，去文字按钮样式） */
.hdr-theme {
  border: 1px solid var(--line); background: var(--ghost); color: var(--primary);
  border-radius: 10px;
  width: 40px; height: 40px; margin-right: 2px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
/* 首页顶栏左侧：全局搜索框 */
.hdr-search-wrap { flex: 1; min-width: 0; margin-right: 10px; display: flex; align-items: center; }
.hdr-search {
  width: 100%; height: 32px; border: 1px solid var(--line);
  background: var(--ghost); border-radius: 16px;
  padding: 0 14px; font-size: 13px; color: var(--text);
  outline: none;
}
.hdr-search:focus { border-color: var(--primary); background: var(--card); }

.view { padding-top: 48px; min-height: calc(100vh - 48px); }

/* 底部导航 */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; background: var(--card);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  flex: 1; height: 56px; border: 0; background: none;
  margin: 0; padding: 0; -webkit-appearance: none; appearance: none;
  font-size: 12px; font-weight: 600; color: var(--text2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  text-align: center; line-height: 1;
}
.nav-item.active {
  color: var(--primary); font-weight: 600;
  background: var(--soft); border-radius: 10px;
}
/* AI 易货：圆形图标凸出导航栏一半，文字与其他导航同一水平线 */
.nav-item-ai { position: relative; }
.nav-ai-badge {
  position: absolute; top: -19px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.nav-ai-text { line-height: 1; }

/* 卡片 */
.card {
  background: var(--card); border-radius: 12px; padding: 14px;
  margin: 10px 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }

/* 按钮 */
.btn {
  display: block; width: 100%; height: 44px; border: 0; border-radius: 10px;
  font-size: 15px; cursor: pointer; margin-top: 10px;
  padding: 0; text-align: center; -webkit-appearance: none; appearance: none;
  box-sizing: border-box;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-ghost { background: var(--ghost); color: var(--text); }
.btn-danger { background: #fde8e8; color: #c0392b; }
.btn-sm { display: inline-block; width: auto; height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; margin-top: 0; }

/* 输入 */
.input {
  width: 100%; height: 44px; padding: 0 12px; margin-top: 10px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: var(--card);
}
textarea.input { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.label { font-size: 13px; color: var(--text2); margin-top: 12px; display: block; }

/* 列表 */
.list-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 2px; border-bottom: 1px solid var(--ghost);
}
.list-item:last-child { border-bottom: 0; }
.list-main { flex: 1; min-width: 0; }
.list-title { font-size: 15px; font-weight: 500; }
.list-sub { font-size: 12px; color: var(--text2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; background: var(--soft); color: var(--primary); margin-right: 6px;
}
.tag-gray { background: var(--ghost); color: var(--text2); }

/* 宫格入口 */
.grid { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 12px; }
.grid-item {
  flex: 1 1 calc(25% - 8px); min-width: calc(25% - 8px);
  background: var(--card); border-radius: 12px; padding: 14px 4px;
  text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.04); cursor: pointer;
}
.grid-item .gi-icon { font-size: 22px; }
.grid-item .gi-name { font-size: 12px; margin-top: 6px; color: var(--text); }

/* 大入口卡片（首页首屏） */
.hero {
  margin: 12px; border-radius: 14px; padding: 20px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
}
.hero h2 { font-size: 18px; }
.hero p { font-size: 13px; opacity: 0.85; margin-top: 6px; }

/* 统计小卡 */
.stat-row { display: flex; gap: 10px; padding: 0 12px; }
.stat-card {
  flex: 1; background: var(--card); border-radius: 12px; padding: 12px;
  text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.stat-card .num { font-size: 20px; font-weight: 700; color: var(--primary); }
.stat-card .lbl { font-size: 12px; color: var(--text2); margin-top: 2px; }

/* ===== AI 对话框（照单 HTML 蓝本：豆包式布局） ===== */
.ai-wrap { position: fixed; top: 48px; bottom: 0; left: 0; right: 0; display: flex; flex-direction: column; background: var(--bg); }
/* AI 自绘固定顶栏：一页一个页头，三件套绝对定位，与系统 header 隔离 */
.ai-fix-hd { position: fixed; top: 0; left: 0; right: 0; height: 48px; z-index: 101; background: var(--card); border-bottom: 1px solid var(--line); }
.ai-fix-hd .ai-hd-btn-l { position: absolute; left: 8px; top: 6px; }
.ai-fix-hd .ai-hd-title { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 15px; font-weight: 600; color: #1a1a1a; white-space: nowrap; }
.ai-fix-hd .ai-hd-right { position: absolute; right: 8px; top: 6px; display: flex; align-items: center; gap: 4px; }
.ai-hd-btn { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ai-hd-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 15px; font-weight: 600; color: #1a1a1a; white-space: nowrap; }
.ai-hd-right { position: relative; }
.ai-plus-menu { display: none; position: absolute; top: 42px; right: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.08); z-index: 1200; min-width: 168px; overflow: hidden; }
.ai-plus-menu button { display: block; width: 100%; padding: 12px 16px; background: var(--card); border: 0; border-bottom: 1px solid #f2f3f5; text-align: left; font-size: 14px; color: #1d2129; cursor: pointer; }
.ai-plus-menu button:last-child { border-bottom: 0; }
.ai-plus-menu button:hover { background: #f7f8fa; }
.ai-plus-menu .ai-plus-sep { height: 6px; padding: 0 !important; border-bottom: 0; background: #f2f3f5; cursor: default; pointer-events: none; }
.ai-plus-menu .ai-plus-row { display: flex; }
.ai-plus-menu .ai-plus-row button { flex: 1; text-align: center; padding: 11px 8px; border-bottom: 0; color: #4e5969; }
.ai-plus-menu .ai-plus-row button + button { border-left: 1px solid #f2f3f5; }
/* 侧边栏 */
.ai-sidebar-mask { position: fixed; top: 48px; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.4); z-index: 999; }
.ai-sidebar { position: fixed; top: 48px; left: 0; width: min(280px, 86vw); height: calc(100dvh - 48px); background: var(--card); z-index: 1000; transform: translateX(-100%); transition: transform .3s ease; box-shadow: 2px 0 12px rgba(0,0,0,.08); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); box-sizing: border-box; }
.ai-sidebar.open { transform: translateX(0); }
.ai-sb-head { padding: calc(14px + env(safe-area-inset-top, 20px)) 16px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.ai-sb-logo { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; }
.ai-sb-name { font-size: 15px; font-weight: 600; color: #1d2129; }
.ai-sb-sub { font-size: 11px; color: var(--text2); }
.ai-sb-new { margin: 12px; padding: 10px; background: var(--primary); color: #fff; border: 0; border-radius: 8px; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ai-sb-label { padding: 0 16px 6px; font-size: 11px; color: var(--text2); }
.ai-sb-list { flex: 1; overflow-y: auto; padding: 0 12px; }
.ai-sb-empty { text-align: center; padding: 30px 10px; color: #c9cdd4; font-size: 12px; line-height: 1.6; }
.ai-sb-item { padding: 10px 12px; border-radius: 8px; margin-bottom: 6px; cursor: pointer; }
.ai-sb-item.active { background: #e8f0ea; }
.ai-sb-item-t { font-size: 13px; color: #242018; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.ai-sb-item-m { font-size: 11px; color: #a89e8f; display: flex; justify-content: space-between; }
.ai-sb-item-m .del { color: #c94b36; }
/* 侧栏底部用户卡（豆包式：头像+昵称靠左，操作按钮靠右，固定沉底） */
.ai-sb-user { margin-top: auto; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 12px)); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; background: var(--card); }
.ai-sb-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.ai-sb-uinfo { flex: 1; min-width: 0; }
.ai-sb-uname { font-size: 14px; font-weight: 600; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-sb-utag { font-size: 11px; color: #8a919f; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-sb-act { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 6px 12px; font-size: 12px; color: #5f6672; cursor: pointer; min-height: 32px; }
.ai-sb-act-primary { border: 0; background: var(--primary); color: #fff; font-weight: 600; }
/* 设置昵称弹层（居中卡片，微圆角方形，不做药丸） */
.ai-nick-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.45); z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 0 24px; }
.ai-nick-dlg { width: 100%; max-width: 320px; background: var(--card); border-radius: 12px; padding: 20px 18px 16px; box-sizing: border-box; }
.ai-nick-title { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.ai-nick-sub { font-size: 12px; color: #8a919f; margin: 6px 0 14px; line-height: 1.5; }
.ai-nick-input { width: 100%; box-sizing: border-box; }
.ai-nick-btns { display: flex; gap: 10px; margin-top: 16px; }
.ai-nick-btns .btn { flex: 1; }
/* 聊天区 */
.ai-chat-area { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.ai-msgs { flex: 1; overflow-y: auto; padding: 14px 12px; }
.ai-msg { display: flex; margin-bottom: 14px; }
.ai-msg.user { justify-content: flex-end; }
.ai-msg.bot { justify-content: flex-start; }
.ai-msg-bubble { max-width: 96%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ai-msg.user .ai-msg-bubble { background: linear-gradient(135deg, #4b7bff, #3370ff); color: #fff; border-top-right-radius: 6px; }
.ai-msg.bot .ai-msg-bubble { background: #fff; color: #1d2129; border: 1px solid #e9ebf0; border-top-left-radius: 6px; }
/* 欢迎卡 */
.ai-welcome { padding: 26px 22px 6px; text-align: center; }
.ai-welcome-logo { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: #fff; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ai-welcome h1 { font-size: 18px; color: #1d2129; margin: 0 0 6px; }
.ai-welcome p { font-size: 13px; color: var(--text2); line-height: 1.7; margin: 0 0 10px; }
.ai-welcome-tip { display: inline-block; font-size: 11px; color: #3e6249; background: rgba(62,98,73,.08); border-radius: 6px; padding: 4px 8px; margin-bottom: 14px; }
.manual-link { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--primary); text-decoration: none; }
.ai-quick-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 460px; margin: 0 auto; }
.ai-quick-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; text-align: left; cursor: pointer; }
.ai-quick-card-icon { font-size: 20px; margin-bottom: 6px; }
.ai-quick-card-title { font-size: 14px; font-weight: 600; color: #1d2129; margin-bottom: 3px; }
.ai-quick-card-desc { font-size: 11px; color: var(--text2); line-height: 1.5; }
/* 输入区 */
.ai-input-area { background: var(--card); border-top: 1px solid var(--line); padding: 6px 12px calc(8px + env(safe-area-inset-bottom)); }
.ai-cmd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ai-cmd-chips span { flex: none; font-size: 12px; color: #4e5969; background: #f2f3f5; border: 1px solid #ecedf0; border-radius: 8px; padding: 4px 10px; white-space: nowrap; }
.ai-cmd-chips span:active { background: #ebf1ff; border-color: #3370ff; color: #3370ff; }
.ai-cmd-chip { flex-shrink: 0; font-size: 12px; color: #4e5969; background: #f7f8fa; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
.ai-input-wrapper { display: flex; align-items: flex-end; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 14px; box-sizing: border-box; transition: border-color .2s; }
.ai-input-wrapper:focus-within { border-color: var(--primary); background: #fff; }
.ai-input-wrapper textarea { flex: 1; border: 0; background: transparent; resize: none; font-size: 15px; color: var(--text); outline: none; max-height: 84px; min-height: 28px; line-height: 1.5; font-family: inherit; padding: 0; box-sizing: border-box; }
.ai-input-wrapper textarea::placeholder { color: #b8bcc4; }
.ai-input-actions { display: flex; flex-direction: column; flex-shrink: 0; align-items: center; align-self: stretch; justify-content: space-between; padding: 2px 0; }
.ai-expand-btn { display: none; width: 32px; height: 32px; flex: none; border: 0; border-radius: 50%; background: transparent; color: #7a8190; cursor: pointer; align-items: center; justify-content: center; }
.ai-expand-btn:active { background: rgba(0,0,0,.06); }
.ai-send-btn { width: 32px; height: 32px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--primary); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; margin-top: auto; }
.ai-send-btn:active { background: var(--primary-deep); }
.ai-send-btn:disabled { background: #e5e7eb; color: #b0b4bc; }

/* 占位口子（待开放） */
.soon { opacity: 0.45; position: relative; }
.soon::after {
  content: '待开放'; position: absolute; top: 4px; right: 4px;
  font-size: 9px; background: var(--ghost); color: var(--text2);
  padding: 1px 5px; border-radius: 4px;
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%);
  background: rgba(31,35,41,0.9); color: #fff; font-size: 13px;
  padding: 10px 18px; border-radius: 20px; z-index: 999;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.toast.show { opacity: 1; }

/* 登录页 */
.login-wrap { padding-top: 60px; }
.login-logo { text-align: center; font-size: 24px; font-weight: 700; color: var(--primary); }
.login-tip { text-align: center; font-size: 13px; color: var(--text2); margin-top: 8px; margin-bottom: 30px; }

/* 加载/空态 */
.empty { text-align: center; color: #b0b6bf; font-size: 13px; padding: 40px 0; }

/* 平台资源互通：开屏广告（满屏铺满，右上角关闭，倒计时可见） */
.if-splash {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 300;
  background: linear-gradient(160deg, var(--primary-deep), var(--primary) 55%, var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.if-splash-body { text-align: center; padding: 0 32px; }
.if-splash-logo { font-size: 15px; letter-spacing: 4px; opacity: .85; }
.if-splash-title { font-size: 26px; font-weight: 700; margin-top: 10px; }
.if-splash-sub { font-size: 14px; opacity: .85; margin-top: 14px; line-height: 1.7; }
.if-splash-line { width: 48px; height: 2px; background: rgba(255,255,255,.4); margin: 22px auto; }
.if-splash-slogan { font-size: 15px; font-weight: 600; line-height: 1.8; opacity: .95; }
.if-splash-close {
  position: fixed; top: 16px; right: 16px; z-index: 301;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.25); color: #fff;
  font-size: 15px; cursor: pointer;
}
.if-splash-count {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 13px; opacity: .8;
}
/* 资源互通卡片 */
.if-item {
  background: var(--card); border-radius: 12px; padding: 12px 14px; margin: 8px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04); cursor: pointer;
}
.if-item-title { font-size: 15px; font-weight: 600; color: var(--text); }
.if-item-sub { font-size: 12px; color: var(--text2); margin-top: 3px; }
.if-item-tag {
  display: inline-block; margin-top: 8px; max-width: 100%;
  font-size: 12px; color: var(--primary); background: var(--soft);
  padding: 3px 8px; border-radius: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* AI 回复操作卡片（入库引导） */
.ai-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ai-act-btn {
  border: 0; background: var(--primary); color: #fff; font-size: 13px;
  padding: 8px 14px; border-radius: 18px; cursor: pointer;
}

/* ===== 驾驶舱（照单 HTML 蓝本素净风格，无 emoji 图标） ===== */
.sec-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.empty { color: var(--text2); font-size: 13px; padding: 14px 0; text-align: center; }

/* 签到卡 */
.checkin { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.checkin-l { flex: 1 1 auto; min-width: 0; }
.checkin-t { font-size: 15px; font-weight: 600; white-space: nowrap; }
.checkin-s { font-size: 12px; color: var(--text2); margin-top: 2px; white-space: nowrap; }
/* 签到按钮：覆盖全局 .btn 的 block+width:100%，改为按内容自适应，避免占满整行盖住左侧文字 */
.checkin .btn {
  flex-shrink: 0; white-space: nowrap;
  display: inline-block; width: auto; height: 36px; padding: 0 16px;
  font-size: 13px; border-radius: 8px; margin-top: 0;
}

/* 业绩速览 6 KPI 宫格 */
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi-box {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 8px; text-align: center; cursor: pointer;
}
.kpi-label { font-size: 12px; color: var(--text2); }
.kpi-num { font-size: 18px; font-weight: 700; color: var(--text); margin: 3px 0 1px; line-height: 1.2; }
.kpi-unit { font-size: 11px; font-weight: 400; color: var(--text2); margin-left: 2px; }
.kpi-foot { font-size: 11px; color: #a8adb5; }

/* 快速操作 */
.quick-grid { display: flex; gap: 8px; }
.quick-btn {
  flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 8px; text-align: center; cursor: pointer;
}
.quick-text { font-size: 13px; font-weight: 600; color: var(--primary); }
.quick-desc { font-size: 11px; color: var(--text2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 业务漏斗 */
.funnel-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.funnel-lbl { width: 64px; font-size: 12px; color: #5f6672; flex: 0 0 auto; }
.funnel-bar { flex: 1; height: 14px; background: var(--ghost); border-radius: 7px; overflow: hidden; }
.funnel-bar i { display: block; height: 100%; background: var(--primary); border-radius: 7px; }
.funnel-num { width: 52px; font-size: 13px; font-weight: 600; text-align: right; flex: 0 0 auto; }
.funnel-pct { font-size: 10px; color: #a8adb5; font-weight: 400; margin-left: 3px; }

/* 引导页 */
.coming-what, .coming-use { font-size: 13px; color: #3d434d; line-height: 1.7; margin-bottom: 8px; }
.coming-what b, .coming-use b { color: var(--primary); }

/* ===== 易货联盟（批次3） ===== */
.tag-primary { background: var(--primary); color: #fff; }
.ac-price-box { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ac-price-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 13px; color: #3d434d; border-bottom: 1px solid var(--ghost); }
.ac-price-row:last-child { border-bottom: 0; }
.ac-price-row span:last-child { font-weight: 600; color: var(--primary); }
.ac-code-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; font-family: monospace; color: var(--text); border-bottom: 1px dashed var(--line); }
.ac-code-row:last-child { border-bottom: 0; }
.stat-link { cursor: pointer; }
.stat-link:active { opacity: 0.7; }

/* ===== 线索仓库 / 匹配引擎 补充样式（20260911m） ===== */
.stat-num { font-size: 20px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text2); margin-top: 2px; }
.chip {
  display: inline-block; padding: 5px 12px; border-radius: 14px;
  font-size: 12px; background: var(--card); color: var(--text2);
  border: 1px solid var(--line); cursor: pointer; user-select: none;
}
.chip-on { background: var(--primary); color: #fff; border-color: var(--primary); }
.tag-blue { background: var(--soft); color: var(--primary); }
.tag-green { background: #e8f5e9; color: #2e7d32; }
.form-label { display: block; font-size: 12px; color: var(--text2); margin: 10px 0 4px; }

/* 筛选/类型标签（方形微圆角，不药丸） */
.chip { display:inline-block; font-size:12px; color:#4e5969; background:#f7f8fa; border:1px solid var(--line); border-radius:6px; padding:5px 10px; cursor:pointer; white-space:nowrap; }
.chip-on { color:#fff; background:var(--primary); border-color:var(--primary); }

/* ===== 游客首页 v2（营销词 8 宫格 / 购买引导条） ===== */
.guest-actions { display:flex; flex-wrap:wrap; gap:8px; padding:0; }
.guest-action { flex:1 1 22%; min-width:0; box-sizing:border-box; padding:12px 4px; text-align:center; cursor:pointer; }
.guest-action .ga-word { font-size:15px; font-weight:700; color:var(--text); }
.guest-action .ga-desc { font-size:10px; color:#8a919f; margin-top:3px; }
.guest-action:active { opacity:0.7; }
.guest-buy { background:linear-gradient(135deg,#C86547,#8A4A33); border:none; }

/* ===== 更多页：平台展示位（资源互通 / AI 主动探索） ===== */
.more-feat { padding: 2px 14px 4px; }
.feat-item { padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.feat-item:last-child { border-bottom: none; }
.feat-t { font-size: 14px; font-weight: 700; color: var(--primary); }
.feat-d { font-size: 12px; color: #8a919f; margin-top: 3px; }
/* 待办中心：日期小字 */
.todo-date { font-size: 12px; color: #8a919f; }
/* 化债台账：统计与进度 */
.stat-num { font-size: 20px; font-weight: 700; color: var(--primary); }
.stat-lb { font-size: 12px; color: var(--text2); margin-top: 2px; }
.debt-progress { height: 6px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.debt-progress i { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
.tag-red { background: #fdecea; color: #c0392b; }
