/* 赢在客户 · 统一视觉 v1（2026-11-16）
   目的：把品牌金 / 深墨 / 天蓝三套混用的按钮统一成一套「天蓝主色」。
   只改观感，不动结构；删掉这个文件即可回到原来配色。 */
:root{
  --brand:#2563eb;
  --brand-d:#1d4ed8;
  --brand-t:#eff4ff;
  --brand-b:#d7e5fb;
  --gold:#2563eb;         /* 旧金 → 统一蓝（沿用变量名，避免改动其它规则） */
  --gold-l:#dbeafe;
}
/* 主按钮：不管是 .btn 还是 .btn.gold，一律天蓝 */
.btn,.btn.gold{
  background:var(--brand)!important;
  border-color:var(--brand)!important;
  color:#fff!important;
  box-shadow:0 2px 8px rgba(37,99,235,.16)!important;
}
.btn:hover,.btn.gold:hover{background:var(--brand-d)!important;border-color:var(--brand-d)!important;}
/* 次按钮：白底 + 蓝边 + 蓝字 */
.btn.ghost{background:#fff!important;color:var(--brand-d)!important;border-color:var(--brand-b)!important;box-shadow:none!important;}
.btn.ghost:hover{background:var(--brand-t)!important;border-color:var(--brand)!important;}
/* 金色徽标 → 蓝色浅底 */
.gold{background:var(--brand-t)!important;color:var(--brand-d)!important;}
/* 金句块 */
.hook{background:#f5f9ff!important;border-left-color:var(--brand)!important;}
/* 胶囊/标签统一冷色 */
.pill{background:#eef4ff!important;color:#1e40af!important;}
.tag{background:#f1f5f9!important;color:#475569!important;}
/* 次要按钮 hover 也走蓝 */
.mini{border-color:var(--brand-b)!important;color:var(--brand-d)!important;background:#fff!important;}
.mini:hover{background:var(--brand-t)!important;border-color:var(--brand)!important;}
/* 团队跟进记录分页 */
.tpager{display:flex;align-items:center;gap:8px;justify-content:center;margin:12px 0 2px;font-size:12.5px;color:#6b7785}
.tpager button{min-width:64px;padding:6px 10px;border:1px solid var(--brand-b);background:#fff;color:var(--brand-d);border-radius:8px;font-size:12.5px}
.tpager button[disabled]{opacity:.45;color:#94a3b8;border-color:#e6edf5}
.tpager .tp-n{font-variant-numeric:tabular-nums}

.av{color:#fff!important;}
.whoami .av{color:#fff!important;}

/* 九宫格 v2：格子自己说话（2026-11-16） */
.mx2-concl{background:#f5f9ff;border:1px solid #d7e5fb;border-left:4px solid #2563eb;border-radius:10px;padding:12px 14px;margin:0 0 14px}
.mx2-cc{font-size:13.5px;line-height:1.75;color:#1f2a37}
.mx2-cc b{color:#1d4ed8;font-size:16px;margin-right:2px}
.mx2-cc2{font-size:12.5px;line-height:1.7;color:#5b6b7f;margin-top:6px;padding-top:6px;border-top:1px dashed #d7e5fb}
.mx2-axes{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:11.5px;color:#5b6b7f;margin:0 0 8px}
.mx2-grid{display:grid;grid-template-columns:46px repeat(3,minmax(0,1fr));gap:6px;max-width:900px}
.mx2-rl,.mx2-cl{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:11px;color:#5b6b7f;line-height:1.25;font-weight:600}
.mx2-rl small,.mx2-cl small{display:block;font-weight:400;font-size:9px;color:#95a1b2;margin-top:2px}
.mx2-cl{padding-top:6px}
.mx2-cell{display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left;border:1px solid #e0e8f2;background:#f8fafc;border-radius:10px;padding:9px 10px;min-height:104px;cursor:pointer;font-family:inherit;transition:.15s}
.mx2-cell:active{transform:scale(.985)}
.mx2-cell.hot{background:#eff4ff;border-color:#bcd2f7}
.mx2-cell.mid{background:#f7fbff;border-color:#dbe7fb}
.mx2-cell.zero{opacity:.55}
.mx2-n{font-size:21px;font-weight:800;color:#1d4ed8;line-height:1.1;font-variant-numeric:tabular-nums}
.mx2-n em{font-size:10px;font-weight:400;color:#7d8896;font-style:normal;margin-left:2px}
.mx2-t{font-size:12.5px;font-weight:700;color:#1f2a37;margin-top:2px}
.mx2-p{font-size:10px;color:#7d8896}
.mx2-a{font-size:10px;color:#5b6b7f;line-height:1.45;margin-top:3px}
.mx2-s{font-size:9.5px;color:#95a1b2;margin-top:auto;padding-top:4px;display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mx2-note{font-size:11px;color:#95a1b2;margin-top:10px}
@media(max-width:430px){
  .mx2-grid{grid-template-columns:34px repeat(3,minmax(0,1fr));gap:4px}
  .mx2-rl,.mx2-cl{font-size:9.5px}
  .mx2-rl small,.mx2-cl small{font-size:8px}
  .mx2-cell{min-height:92px;padding:7px 6px;border-radius:8px}
  .mx2-n{font-size:17px}
  .mx2-t{font-size:11px}
  .mx2-a{font-size:9px;line-height:1.35}
  .mx2-s{font-size:8.5px}
}

/* ══════════ v4：手机端不再溢出 + 排版控件统一（2026-11-16） ══════════ */

/* 1) 通用防溢出：flex/grid 子项允许收缩，长串文字允许折行 */
@media (max-width:760px){
  .view *{min-width:0}
  .view img,.view table,.view pre{max-width:100%}
  .view{overflow-x:clip}
  .u-row__meta{flex-wrap:wrap;white-space:normal}
  .view{padding-bottom:0}
}

/* 2) 团队协同表：手机上改成卡片，不再横向撑破 */
@media (max-width:700px){
  #tcWrap table,#tcWrap thead,#tcWrap tbody,#tcWrap tr,#tcWrap td{
    display:block;width:auto!important;max-width:100%!important;min-width:0!important;
  }
  #tcWrap thead{display:none}
  #tcWrap tr{
    border:1px solid #e6edf7;border-radius:12px;background:#fff;
    padding:11px 12px;margin:0 0 9px;box-shadow:0 1px 2px rgba(16,40,80,.04);
  }
  #tcWrap td{padding:0;border:0;white-space:normal;overflow:visible;text-align:left!important}
  #tcWrap .tc-nm{font-size:15.5px;font-weight:700;line-height:1.3;display:inline-block;max-width:100%}
  #tcWrap .tc-role{display:inline-block;margin-left:7px;font-size:11px;color:#7d8896;
    background:#f2f5f9;border-radius:20px;padding:1px 8px;vertical-align:2px}
  /* 第 2、3 格（数据范围 / 分组）并排放，宽度各半 */
  #tcWrap td:nth-child(2),#tcWrap td:nth-child(3){
    display:inline-block;vertical-align:top;margin:9px 8px 0 0;
    width:calc(50% - 5px)!important;
  }
  #tcWrap td:nth-child(3){margin-right:0}
  #tcWrap select{width:100%!important;max-width:100%;height:34px;font-size:13px;padding:0 8px;
    border:1px solid #d7e0ec;border-radius:9px;background:#fff;color:#1f2a37}
  /* 数值：一行排开，带小标签，谁都不挤 */
  #tcWrap td.num,#tcWrap td.tc-last{
    display:inline-flex;align-items:baseline;gap:5px;
    margin:9px 14px 0 0;font-size:14px;font-weight:700;color:#1f2a37;
  }
  #tcWrap td.num::before,#tcWrap td.tc-last::before{
    content:attr(data-l);font-size:11px;font-weight:400;color:#7d8896;
  }
  #tcWrap td.num.zero{color:#b7c0cd}
  #tcWrap td.num.warn{color:#c2410c}
  #tcWrap td.tc-last{font-size:12.5px;font-weight:400;color:#5b6b7f}
}

/* 3) 排版统一：标题 / 正文 / 链接 */
.view h1{font-size:19px;line-height:1.35;font-weight:800;letter-spacing:-.2px;margin:0 0 6px}
.view h2{font-size:15.5px;line-height:1.4;font-weight:700}
.view .sub{font-size:12.5px;line-height:1.7;color:#6b7785}
.view p,.view li{font-size:13.5px;line-height:1.75}
.view a{color:#2563eb;text-decoration:none}
.view a:hover{text-decoration:underline}
.view a:active{color:#1d4ed8;text-decoration:none}
.view .lt{font-size:14.5px;font-weight:700;color:#1f2a37}

/* 4) 控件统一：输入框 / 下拉 / 按钮 / 表格 */
.view input:not([type=checkbox]):not([type=radio]),
.view select,.view textarea{
  border:1px solid #d7e0ec;border-radius:9px;background:#fff;color:#1f2a37;
  font-size:13.5px;font-family:inherit;max-width:100%;
}
.view input:not([type=checkbox]):not([type=radio]),.view select{height:36px;padding:0 10px}
.view textarea{padding:8px 10px;line-height:1.6}
.view input:focus,.view select:focus,.view textarea:focus{
  outline:none;border-color:#93b4f0;box-shadow:0 0 0 3px rgba(37,99,235,.10);
}
.view .btn{min-height:36px;height:auto;border-radius:9px;font-size:13.5px;font-weight:600;letter-spacing:.2px}
.view .btn.mini,.view button.mini{min-height:28px;font-size:12px;border-radius:7px}
.view table{font-size:13px}
.view table th{font-size:11.5px;font-weight:600;color:#6b7785;background:#f7fafd;
  padding:8px;border-bottom:1px solid #e9eef6;white-space:nowrap}
.view table td{padding:8px;border-bottom:1px solid #f1f5fa;line-height:1.5}
@media (max-width:700px){
  .view h1{font-size:17.5px}
  /* 按钮只给最小高度，绝不定死高度：卡片式按钮文字换行时不能压到下一张 */
  .view .btn{min-height:38px;height:auto}
  .view input:not([type=checkbox]):not([type=radio]),.view select{min-height:38px;height:38px}
  .view .btn.mini,.view button.mini{min-height:30px;height:auto}
  /* 工具清单卡片：文字多了就长高，别和下一张叠在一起 */
  .afcard{height:auto!important;min-height:0!important;white-space:normal;align-items:flex-start}
  .afcard b,.afcard span{display:block;white-space:normal;overflow-wrap:anywhere}
  #allfunc>div>div{grid-auto-rows:auto;align-items:start}
}

@media (max-width:760px){
  /* 长公司名 / 长标签一律允许折行，宁可两行也不出屏 */
  .view span, .view div { overflow-wrap: anywhere; }
  .view span[style*="nowrap"], .view .row span, .view .task span { white-space: normal; }
}

@media (max-width:760px){
  /* 二级页里的行内文字一律允许折行（含被 CSS 设成 nowrap 的） */
  .view span, .view b, .view i, .view em { white-space: normal; }
  /* 账号页标签：手机上换行显示，别藏在右边看不见 */
  #v-account .acc-tabbar { flex-wrap: wrap; overflow-x: visible; }
  #v-account .acc-tabbar button { flex: 0 0 auto; }
}

/* ── 首页三件事（v2）── */
.t3wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0 18px}
.t3card{display:flex;flex-direction:column;gap:2px;text-align:left;border:1px solid #dbe7fb;background:#f7fbff;
  border-radius:12px;padding:13px 14px;cursor:pointer;font-family:inherit;transition:.15s}
.t3card:hover{border-color:#bcd2f7;background:#eff4ff}
.t3card:active{transform:scale(.99)}
.t3card b{font-size:24px;line-height:1.1;font-weight:800;color:#1d4ed8;font-variant-numeric:tabular-nums}
.t3card span{font-size:13px;font-weight:700;color:#1f2a37;margin-top:2px}
.t3card em{font-size:11.5px;font-style:normal;color:#6b7785;line-height:1.5}
.t3card.off b{color:#9aa7b8}
.t3card.off{background:#fafbfd;border-color:#e8eef7}
@media (max-width:620px){
  .t3wrap{grid-template-columns:1fr;gap:7px}
  .t3card{flex-direction:row;align-items:center;gap:12px;padding:11px 13px}
  .t3card b{font-size:22px;min-width:52px}
  .t3card span{font-size:13.5px;margin:0}
  .t3card em{margin-left:auto;text-align:right;max-width:46%;font-size:11px}
}
/* ── 成交归因（v2）── */
.akpi{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}
.akpi>div{background:#f7fbff;border:1px solid #e2ecfa;border-radius:10px;padding:10px 12px}
.akpi b{display:block;font-size:19px;font-weight:800;color:#1d4ed8;line-height:1.2;font-variant-numeric:tabular-nums}
.akpi span{font-size:11.5px;color:#6b7785}
.alist{margin-top:12px;border-top:1px solid #eef3f9}
.arow{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto auto;gap:10px;align-items:baseline;
  padding:8px 0;border-bottom:1px solid #f2f6fb;font-size:12.5px}
.arow .an{font-weight:600;color:#1f2a37;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.arow .at{color:#6b7785;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.arow .aq{font-weight:700;color:#1d4ed8;font-variant-numeric:tabular-nums}
.arow em{font-style:normal;font-size:11px;color:#8a95a5;white-space:nowrap}
@media (max-width:620px){
  .akpi{grid-template-columns:repeat(2,minmax(0,1fr))}
  .arow{grid-template-columns:minmax(0,1fr) auto;gap:2px 8px}
  .arow .at{display:none}
  .arow em{grid-column:1 / -1;white-space:normal}
}

/* ── 名单攻坚（v2）── */
.btl-bar{display:flex;gap:8px;align-items:center;margin:12px 0 10px;flex-wrap:wrap}
.btl-bar select{flex:1 1 180px;min-width:0}
.btl-bar .btn{flex:0 0 auto}
.btl-stat{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
.btl-stat>div{background:#f7fbff;border:1px solid #e2ecfa;border-radius:10px;padding:10px 12px}
.btl-stat b{display:block;font-size:19px;font-weight:800;color:#1d4ed8;line-height:1.2;font-variant-numeric:tabular-nums}
.btl-stat span{font-size:11.5px;color:#6b7785}
.btl-hd{font-size:12.5px;color:#6b7785;margin:4px 0 6px}
.btl-row{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:4px 8px;align-items:baseline;
  padding:9px 0;border-bottom:1px solid #f1f5fa;font-size:13px}
.btl-row .bi{color:#9aa7b8;font-size:11.5px;font-variant-numeric:tabular-nums}
.btl-row .bn{font-weight:600;color:#1f2a37;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.btl-row .bp{color:#1d4ed8;font-variant-numeric:tabular-nums}
.btl-row em{grid-column:2 / -1;font-style:normal;font-size:11px;color:#8a95a5}
.btl-foot{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 6px}
@media (max-width:620px){
  .btl-stat{grid-template-columns:repeat(2,minmax(0,1fr))}
  .btl-bar .btn{width:100%}
}

/* 月份趋势条：高度跟着内容走，别压到上面的标题（2026-11-17） */
.mt{height:auto!important;min-height:70px}
.mt-bars{height:auto!important;min-height:46px}

/* ── 行业话术包 ── */
.pb-bar{margin:12px 0}
.pb-bar select{width:100%}
.pb-group{margin-bottom:16px}
.pb-gt{font-size:12.5px;font-weight:700;color:#3b4a5e;margin:4px 0 8px;letter-spacing:.02em}
.pb-card{background:#fff;border:1px solid #e6edf7;border-radius:12px;padding:11px 12px;margin-bottom:8px}
.pb-h{display:flex;align-items:center;gap:6px;margin-bottom:6px}
.pb-t{flex:1;min-width:0;font-size:12.5px;font-weight:700;color:#1d4ed8}
.pb-mini{flex:0 0 auto;border:1px solid #d8e4f6;background:#f5f9ff;color:#2563eb;
  font-size:11.5px;padding:4px 9px;border-radius:999px;cursor:pointer;font-family:inherit}
.pb-mini:active{background:#e8f1ff}
.pb-b{font-size:13.5px;line-height:1.75;color:#22303f;white-space:pre-wrap;word-break:break-word}
.pb-ta{width:100%;box-sizing:border-box;font:inherit;font-size:13.5px;line-height:1.75;
  border:1px solid #cddcf0;border-radius:8px;padding:8px;color:#22303f;background:#fbfdff}
.pb-acts{display:flex;gap:6px;margin-top:7px}

/* ── 转介绍 ── */
.ref-stat{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.ref-stat>div{background:#f7fbff;border:1px solid #e2ecfa;border-radius:10px;padding:10px 12px}
.ref-stat b{display:block;font-size:19px;font-weight:800;color:#1d4ed8;font-variant-numeric:tabular-nums}
.ref-stat span{font-size:11.5px;color:#6b7785}
.ref-why{font-style:normal;font-size:11px;color:#8a95a5;font-weight:500}
.ref-sc{background:#fbfdff;border-left:3px solid #cfe0f8;padding:8px 10px;border-radius:0 8px 8px 0;margin:4px 0 8px}
.ref-acts{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.pb-mini.prim{background:#2563eb;border-color:#2563eb;color:#fff}
.ref-form{display:flex;flex-direction:column;gap:6px}
.ref-form input{border:1px solid #cddcf0;border-radius:8px;padding:8px 10px;font:inherit;font-size:13px;background:#fff}
.ref-find{display:flex;gap:8px;margin:12px 0 8px}
.ref-find input{flex:1;min-width:0;border:1px solid #d8e4f6;border-radius:10px;padding:9px 11px;font:inherit;font-size:13px}
.ref-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #f1f5fa;font-size:13px}
.ref-line{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #f1f5fa;font-size:13px}
.ref-who{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#22303f}
.ref-line em{flex:0 0 auto;font-style:normal;font-size:11.5px;color:#7c8798}
@media (max-width:620px){ .ref-stat{grid-template-columns:repeat(3,minmax(0,1fr))} }
