/* 工作台。类名前缀 hm-，颜色、圆角、阴影都用 app.css 顶部的变量 */

/* 横幅 */
.hm-hero{min-height:156px;padding:20px 32px 20px 26px}
.hm-hero-t{display:flex;flex-direction:column;gap:8px;align-items:flex-start;min-width:0;flex:1}
.hm-h{font-size:27px;line-height:1.2}
.hm-n{font:500 1.45em/1 var(--display);color:var(--purple-ink);letter-spacing:-.03em;font-variant-numeric:tabular-nums;display:inline-block;animation:popnum .55s var(--spring) both}
.hm-rest{white-space:normal;max-width:34em;margin-bottom:4px}
.hm-shots{display:flex;align-items:flex-end;flex:none;padding:4px 6px 0 12px}
.hm-shot{width:86px;height:112px;border-radius:18px;box-shadow:0 0 0 1px var(--line),var(--sh-h);rotate:-6deg;translate:0 6px;transition:rotate .4s var(--ease),translate .4s var(--ease),margin .4s var(--ease);animation:hm-in .6s var(--ease) both;animation-delay:calc(var(--i,0)*90ms + 120ms)}
.hm-shot+.hm-shot{margin-left:-20px}
.hm-shot:nth-child(2){width:112px;height:132px;rotate:0deg;translate:0 0;z-index:2}
.hm-shot:nth-child(3){rotate:6deg}
.hm-shot:only-child,.hm-shot:first-child:nth-last-child(2){rotate:-4deg}
.hm-hero:hover .hm-shot{rotate:-3deg;translate:0 2px}
.hm-hero:hover .hm-shot:nth-child(2){rotate:0deg;translate:0 -4px}
.hm-hero:hover .hm-shot:nth-child(3){rotate:3deg}
.hm-hero:hover .hm-shot+.hm-shot{margin-left:-8px}
@keyframes hm-in{from{opacity:0;transform:translateY(18px) scale(.94)}to{opacity:1;transform:none}}

/* 四个数字块 */
.hm-kpi{text-decoration:none;color:inherit;cursor:pointer;min-height:88px;padding:14px 16px;transition:transform .22s var(--ease),box-shadow .22s var(--ease),background-color .18s}
.hm-kpi b{font-size:32px}
.hm-kpi:hover{transform:translateY(-2px);background:var(--white);box-shadow:inset 0 0 0 1px var(--line-2),var(--sh)}
.hm-kpi.hi:hover{background:var(--grad-soft)}
.hm-kpi:active{transform:scale(.985)}
.hm-kpi:focus-visible,.hm-td:focus-visible{outline:2px solid var(--purple-ink);outline-offset:3px}
.hm-go{position:absolute;right:12px;top:10px;color:var(--purple-ink);opacity:0;transform:translateX(-6px);transition:opacity .2s,transform .3s var(--ease);display:grid}
.hm-go .ic{width:16px;height:16px}
.hm-kpi:hover .hm-go,.hm-kpi:focus-visible .hm-go{opacity:1;transform:none}
.hm-kpi svg.spark{width:72px;height:29px;right:12px;bottom:12px}
.hm-kpi svg.spark polyline{stroke-dasharray:100;stroke-dashoffset:100;animation:hm-draw 1.1s var(--ease) .35s forwards}
.hm-kpi svg.spark circle{fill:var(--white);opacity:0;animation:hm-fade .3s ease 1.25s forwards}
@keyframes hm-draw{to{stroke-dashoffset:0}}
@keyframes hm-fade{to{opacity:1}}

/* 中间一排：客户分布、今天要做的事 */
.hm-mid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:14px;align-items:stretch}
.hm-left{display:flex;flex-direction:column;gap:14px;min-width:0}
.hm-geo{padding:16px 20px;display:flex;flex-direction:column;gap:4px;min-width:0}
.hm-geo-b{display:grid;grid-template-columns:auto minmax(0,1fr);gap:20px;align-items:center;flex:1;min-height:0}
.hm-globe{display:grid;place-items:center}
.hm-globe svg{width:236px;height:236px;display:block}
.hm-geo-n{font-size:13px;color:var(--slate)}
.hm-geo-n b{color:var(--ink);font-weight:500}
.hm-reg{display:flex;flex-direction:column;gap:11px;font-size:13px;color:var(--slate)}
.hm-reg>div{display:grid;grid-template-columns:52px minmax(0,1fr) 30px;gap:10px;align-items:center}
.hm-reg b{font:500 12.5px var(--mono);color:var(--ink);text-align:right;font-variant-numeric:tabular-nums}
.hm-todo{display:flex;flex-direction:column;gap:10px;min-width:0}
.hm-list{flex:1}
.hm-td{min-height:58px}
.hm-td:active{transform:scale(.99)}
.hm-td-go{color:var(--faint);display:grid;transition:transform .25s var(--ease),color .2s}
.hm-td-go .ic{width:15px;height:15px}
.hm-td:hover .hm-td-go{transform:translateX(3px);color:var(--purple-ink)}
.hm-real{margin:0}

/* 漏斗：横着走，逐级变窄的细线 */
.hm-funnel{display:flex;flex-direction:column;gap:10px;flex:1;justify-content:space-between}
.hm-fn{display:flex;flex-direction:column;gap:2px;min-width:0}
.hm-fn-row{display:grid;grid-template-columns:repeat(var(--n,6),minmax(0,1fr))}
.hm-fn-row>div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:1px;min-width:0;padding:0 2px}
.hm-fn-nums b{font:500 22px/1.15 var(--display);letter-spacing:-.03em;font-variant-numeric:tabular-nums;display:inline-block}
.hm-fn-nums>div:first-child b{color:var(--purple-ink)}
.hm-fn-k{font:500 12.5px/1.35 var(--display);color:var(--ink);word-break:keep-all}   /* 中文词不从中间断开，「加上 WhatsApp/微信等」只在空格和斜杠后换行 */
.hm-fn-r{font:400 10.5px/1.4 var(--mono);color:var(--faint);letter-spacing:-.02em}
.hm-fn-svg{display:block;width:100%;height:60px;overflow:visible;animation:hm-wipe 1.3s var(--ease) .25s both}
@keyframes hm-wipe{from{clip-path:inset(-8px 100% -8px 0)}to{clip-path:inset(-8px 0 -8px 0)}}
.hm-fn-fill{fill:var(--purple);opacity:.10;stroke:none}
.hm-fn-line{fill:none;stroke:var(--purple);stroke-width:1.2;vector-effect:non-scaling-stroke;stroke-linecap:round}
.hm-fn-tick{stroke:var(--line-2);stroke-width:1;vector-effect:non-scaling-stroke;stroke-dasharray:2 4}
.hm-fn-flow{stroke:var(--sky);stroke-width:1.2;vector-effect:non-scaling-stroke;stroke-dasharray:4 5;stroke-linecap:round;animation:flow 1.8s linear infinite}

@media (max-width:1100px){
  .hm-globe svg{width:200px;height:200px}
  .hm-shot{width:74px;height:98px}
  .hm-shot:nth-child(2){width:96px;height:116px}
}
@media (max-width:860px){
  .hm-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;padding:16px 16px 16px 18px;min-height:0;gap:6px 10px}
  .hm-hero-t{display:contents}
  .hm-hero-t>*{position:relative}
  .hm-hero-t>.cap,.hm-hero-t>h2,.hm-hero-t>p{grid-column:1/-1}
  .hm-hero-t>.btn{justify-self:start;margin-top:6px}
  .hm-h{font-size:22px}
  .hm-shots{padding:0}
  .hm-shot{width:50px;height:66px;border-radius:13px}
  .hm-shot:nth-child(2){width:64px;height:80px}
  .hm-shot+.hm-shot{margin-left:-20px}
  .hm-hero:hover .hm-shot+.hm-shot{margin-left:-20px}
  .hm-kpi{min-height:84px}
  .hm-kpi b{font-size:28px}
  .hm-kpi svg.spark{width:58px;height:24px;right:10px;bottom:10px}
  .hm-go{display:none}
  .hm-mid{grid-template-columns:minmax(0,1fr)}
  .hm-todo{order:-1}
  .hm-td .nm{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .hm-td-go{display:none}
  .hm-geo-b{grid-template-columns:minmax(0,1fr);gap:8px}
  .hm-globe svg{width:216px;height:216px}
  .hm-fn-nums b{font-size:19px}
  .hm-fn-k{font-size:11px}
  .hm-fn-r{font-size:9.5px;letter-spacing:-.02em}
  .hm-fn-svg{height:56px}
}
@media (max-width:380px){
  .hm-shot:nth-child(3){display:none}
}
