/* 客户 CRM：潜在客户、跟进转化与4.0经营复盘 */
.crm-toolbar-actions{display:flex;align-items:center;gap:10px}.crm-toolbar-actions .search-field{width:min(340px,42vw)}
.crm-guide{display:grid;grid-template-columns:minmax(220px,.72fr) minmax(0,1.6fr);gap:24px;margin-bottom:18px;padding:22px 24px;border:1px solid #d8c79e;border-radius:20px;background:linear-gradient(135deg,#fffaf0,#f2e4bf)}
.crm-guide h3{margin:0;font-size:22px;line-height:1.35}.crm-guide ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0;padding:0;list-style:none}.crm-guide li{display:grid;grid-template-columns:30px 1fr;align-content:start;gap:3px 10px}.crm-guide li>span{grid-row:1/3;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--dark);color:#fff;font-size:13px;font-weight:850}.crm-guide strong{font-size:14px}.crm-guide small{color:#6d604c;line-height:1.5}
.crm-acquisition{margin-bottom:18px;padding:22px 24px;border:1px solid var(--line);border-radius:20px;background:var(--paper)}.crm-acquisition-head{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(400px,.8fr);align-items:start;gap:22px}.crm-acquisition h3{margin:0;font-size:23px;line-height:1.35}.crm-acquisition-head p:last-child{margin:8px 0 0;color:var(--muted);line-height:1.65}.crm-acquisition-metrics{display:grid;grid-template-columns:repeat(4,minmax(74px,1fr));gap:8px}.crm-acquisition-metrics span{display:grid;gap:3px;padding:12px 10px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--muted);font-size:12px;text-align:center}.crm-acquisition-metrics strong{color:var(--ink);font-size:25px}.crm-acquisition-metrics .is-urgent{border-color:#dca89f;background:#fff3ef;color:#8a3027}.crm-acquisition-metrics .is-urgent strong{color:#8a3027}.crm-visitor-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.crm-visitor-card{display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;padding:15px;border:1px solid var(--line);border-radius:15px;background:#fff}.crm-visitor-avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#eee7d8;color:#5e4c2b;font-weight:850}.crm-visitor-copy{min-width:0}.crm-visitor-title{display:flex;align-items:center;justify-content:space-between;gap:9px}.crm-visitor-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-visitor-status{padding:4px 8px;border-radius:999px;background:#fff0db;color:#7b500a;font-size:12px;font-weight:800;white-space:nowrap}.crm-visitor-copy p{margin:6px 0 0;color:#514b42;line-height:1.5}.crm-visitor-copy small{display:block;margin-top:5px;color:var(--muted);line-height:1.5}.crm-visitor-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:2px}.crm-visitor-actions span{color:#8a3027;font-size:12px;font-weight:750}.crm-visitor-actions button{border:0;background:none;color:#78530e;font:inherit;font-weight:800;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.crm-privacy-note{margin:14px 0 0;padding:11px 13px;border-left:4px solid #b89954;border-radius:8px;background:#faf5e9;color:#625744;font-size:13px;line-height:1.65}
.crm-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px}.crm-metric-grid article{min-height:126px;display:flex;flex-direction:column;padding:18px 20px;border:1px solid var(--line);border-radius:17px;background:rgba(255,253,248,.86)}.crm-metric-grid span,.crm-metric-grid small{color:var(--muted)}.crm-metric-grid strong{margin:auto 0 5px;font:700 32px/1 Georgia,"Songti SC",serif}.crm-filters{padding-bottom:3px}.crm-main-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(290px,.55fr);gap:16px}.crm-lead-panel,.crm-action-panel{min-height:360px}.crm-lead-panel h3,.crm-action-panel h3,.crm-service-panel h3{margin:0;font-size:22px}.crm-count{color:var(--muted);font-size:14px}.crm-list{display:grid;gap:9px;margin-top:16px}.crm-lead-card{width:100%;min-height:94px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:13px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer;text-align:left;transition:border-color .16s,box-shadow .16s}.crm-lead-card:hover{border-color:#bda66f;box-shadow:0 9px 24px rgba(66,51,23,.08)}.crm-lead-card:active{background:#fbf6ea}.crm-lead-avatar{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:var(--gold-soft);color:#684610;font-weight:850}.crm-lead-copy{min-width:0}.crm-lead-title,.crm-lead-meta,.crm-lead-next{display:flex;align-items:center;gap:8px;min-width:0}.crm-lead-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-lead-meta,.crm-lead-next{margin-top:5px;color:var(--muted);font-size:13px;line-height:1.45}.crm-lead-meta span,.crm-lead-next span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-lead-next.is-overdue{color:#9a3129;font-weight:750}.crm-stage{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:4px 9px;border:1px solid #ccc2b1;border-radius:999px;background:#f7f3eb;color:#4f493f;font-size:12px;font-weight:800;white-space:nowrap}.crm-stage-new{border-color:#d6c7ab;background:#f7f0e2}.crm-stage-contacted,.crm-stage-diagnosing{border-color:#b7c9df;background:#eef4fb;color:#315b82}.crm-stage-proposal,.crm-stage-considering{border-color:#ddc178;background:#fff5d9;color:#76530b}.crm-stage-won{border-color:#acd0b4;background:#edf8ef;color:#356b40}.crm-stage-paused{border-color:#c9c6c0;background:#f1f0ed;color:#66615a}
.crm-next-list{display:grid;gap:10px;margin-top:14px}.crm-next-card{padding:14px;border-left:4px solid var(--gold);border-radius:10px;background:#f8f3e8}.crm-next-card.is-overdue{border-left-color:#a84036;background:#fff2ef}.crm-next-card strong,.crm-next-card span,.crm-next-card small{display:block}.crm-next-card span{margin-top:5px;line-height:1.45}.crm-next-card small{margin-top:7px;color:var(--muted)}.crm-mini-empty{padding:26px 12px;color:var(--muted);text-align:center;line-height:1.7}
.crm-advanced{margin-top:16px;border:1px solid #3a352d;border-radius:20px;overflow:hidden;background:var(--dark);color:#fff}.crm-advanced-shell{padding:24px}.crm-advanced-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.crm-advanced h3{margin:2px 0 6px;font:700 25px/1.25 Georgia,"Songti SC",serif}.crm-advanced p{margin:0;color:#d8d1c6;line-height:1.65}.crm-advanced-badge{padding:6px 10px;border-radius:999px;background:#dbb45f;color:#211b11;font-size:12px;font-weight:850;white-space:nowrap}.crm-lock-grid,.crm-insight-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;margin-top:18px}.crm-lock-benefits,.crm-suggestion{padding:17px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.06)}.crm-lock-benefits{display:grid;grid-template-columns:1fr 1fr;gap:9px 14px}.crm-lock-benefits span:before{content:"";display:inline-block;width:7px;height:7px;margin-right:8px;border-radius:50%;background:#dbb45f}.crm-upgrade-note{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px}.crm-upgrade-note a{color:#f0cc7c;text-underline-offset:4px}.crm-funnel{display:grid;gap:9px}.crm-funnel-row{display:grid;grid-template-columns:72px minmax(70px,1fr) 28px;align-items:center;gap:10px;font-size:13px}.crm-funnel-track{height:9px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden}.crm-funnel-track i{display:block;height:100%;min-width:3px;border-radius:inherit;background:#ddb865}.crm-suggestion strong{display:block;margin-bottom:8px;color:#f0cc7c}.crm-suggestion p{color:#fff}.crm-suggestion small{display:block;margin-top:12px;color:#bcb5aa;line-height:1.55}.crm-service-panel{margin-top:16px}.crm-service-panel .panel-head p:last-child{margin:6px 0 0;color:var(--muted);line-height:1.6}
.crm-dialog{width:min(1040px,96vw);max-height:94vh;padding:0;border:1px solid var(--line);border-radius:24px;background:var(--bg);color:var(--ink);box-shadow:0 28px 90px rgba(25,21,14,.28)}.crm-dialog::backdrop{background:rgba(20,18,14,.62);backdrop-filter:blur(3px)}.crm-dialog-head{position:sticky;z-index:3;top:0;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 26px 17px;border-bottom:1px solid var(--line);background:rgba(255,253,248,.98)}.crm-dialog-head h2{margin:0;font:700 clamp(25px,3vw,36px)/1.2 Georgia,"Songti SC",serif}.crm-dialog-head p:last-child{margin:7px 0 0;color:var(--muted)}.crm-dialog-status{min-height:24px;margin:0;padding:8px 26px 0;color:#356440;font-weight:750}.crm-dialog-status[data-error=true]{color:#a3332a}.crm-dialog-body{padding:18px 26px 34px}.crm-detail-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);gap:18px}.crm-form,.crm-activity-form{display:grid;gap:15px}.crm-form-section{padding:20px;border:1px solid var(--line);border-radius:17px;background:var(--paper)}.crm-form-section h3{margin:0 0 15px;font-size:19px}.crm-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.crm-form label,.crm-activity-form label{display:grid;gap:7px;color:#514c44;font-weight:750}.crm-form input,.crm-form select,.crm-form textarea,.crm-activity-form input,.crm-activity-form select,.crm-activity-form textarea{width:100%;min-height:46px;padding:10px 12px;border:1px solid #c9c1b4;border-radius:10px;background:#fff;color:var(--ink);font:inherit}.crm-form textarea,.crm-activity-form textarea{resize:vertical;line-height:1.65}.crm-field-wide{grid-column:1/-1}.crm-field-help{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.55}.crm-required{color:#9a3129}.crm-form-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:10px;padding:14px 0 0;background:linear-gradient(transparent,var(--bg) 22%)}.crm-activity-column{display:grid;align-content:start;gap:16px}.crm-activity-box{padding:19px;border:1px solid var(--line);border-radius:17px;background:var(--paper)}.crm-activity-box h3{margin:0 0 14px;font-size:19px}.crm-timeline{display:grid;gap:0;max-height:330px;overflow:auto}.crm-timeline article{position:relative;display:grid;grid-template-columns:15px 1fr;gap:11px;padding-bottom:18px}.crm-timeline article:not(:last-child):before{content:"";position:absolute;left:7px;top:14px;bottom:0;width:1px;background:var(--line)}.crm-timeline-dot{position:relative;z-index:1;width:15px;height:15px;margin-top:4px;border:3px solid var(--paper);border-radius:50%;background:var(--gold);box-shadow:0 0 0 1px var(--gold)}.crm-activity-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}.crm-timeline p{margin:7px 0;white-space:pre-wrap;line-height:1.6}.crm-timeline small{display:block;margin-top:5px;color:var(--muted);line-height:1.5}.crm-empty-activity{padding:20px;color:var(--muted);text-align:center}.crm-conversion-note{margin-top:10px;padding:12px;border-left:4px solid var(--gold);border-radius:8px;background:#f8f1df;color:#5d513b;line-height:1.6}
@media(max-width:1100px){.crm-guide{grid-template-columns:1fr}.crm-acquisition-head{grid-template-columns:1fr}.crm-main-grid{grid-template-columns:1fr}.crm-action-panel{min-height:0}.crm-lock-grid,.crm-insight-grid{grid-template-columns:1fr}}
@media(max-width:760px){.crm-toolbar-actions{align-items:stretch;flex-direction:column}.crm-toolbar-actions .search-field{width:100%}.crm-guide,.crm-acquisition{padding:18px}.crm-guide ol{grid-template-columns:1fr}.crm-acquisition-metrics{grid-template-columns:1fr 1fr}.crm-visitor-list{grid-template-columns:1fr}.crm-visitor-actions{align-items:flex-start;flex-direction:column}.crm-metric-grid{grid-template-columns:1fr 1fr}.crm-lead-card{grid-template-columns:42px minmax(0,1fr)}.crm-lead-card>.crm-stage{grid-column:2;justify-self:start}.crm-dialog{width:100vw;height:100vh;max-width:none;max-height:none;border:0;border-radius:0}.crm-dialog-head{padding:17px 15px 14px}.crm-dialog-body{padding:14px 14px 32px}.crm-dialog-status{padding:7px 15px 0}.crm-detail-grid,.crm-form-grid{grid-template-columns:1fr}.crm-field-wide{grid-column:auto}.crm-form-section,.crm-activity-box{padding:16px}.crm-form-actions{display:grid;grid-template-columns:1fr}.crm-form-actions .button{width:100%}}
@media(max-width:420px){.crm-metric-grid{grid-template-columns:1fr}.crm-lock-benefits{grid-template-columns:1fr}.crm-dialog-head .button{padding:8px 12px}}
@media(prefers-reduced-motion:reduce){.crm-lead-card{transition:none}}
