:root{font-family:SF Pro Text,PingFang SC,system-ui,sans-serif;color:#1d2725;background:#fbfcfc;font-synthesis:none;--text:#1d2725;--muted:#6b7874;--border:#e5edeb;--green:#12a995;--green-dark:#08776f;--green-soft:#e7faf4;--brand-gradient:linear-gradient(135deg,#57e8b5 0%,#20cbc4 52%,#54aaf5 100%)}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%;margin:0}body{min-height:100vh}button,input,select,textarea{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--green);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.crm-shell{min-height:100vh;display:grid;grid-template-columns:174px minmax(0,1fr)}.crm-sidebar{position:relative;min-height:100vh;padding:18px 12px;border-right:1px solid var(--border);background:#f6faf9}.crm-brand{display:flex;align-items:center;gap:10px;padding:0 8px}.crm-brand>span,.mobile-brand{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;background:var(--brand-gradient);color:#07423f;font-weight:700}.crm-brand strong{font-size:.8125rem}.crm-sidebar nav{margin-top:27px}.crm-sidebar nav button{width:100%;min-height:34px;display:flex;align-items:center;gap:8px;padding:0 9px;border:0;border-radius:8px;color:var(--muted);background:transparent;cursor:pointer;font-size:.75rem}.crm-sidebar nav button.active{color:#08776f;background:linear-gradient(135deg,#e4faf2,#e6f3fd);font-weight:620}.runtime-state{position:absolute;left:18px;right:18px;bottom:22px;display:flex;align-items:center;gap:9px}.runtime-state>span{width:8px;height:8px;border-radius:50%;background:#2da562;box-shadow:0 0 0 4px #e5f5eb}.runtime-state strong,.runtime-state small{display:block}.runtime-state strong{font-size:.6875rem}.runtime-state small{color:var(--muted);font-size:.625rem}.crm-main{min-width:0;padding:32px clamp(22px,4.5vw,60px) 64px}.crm-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.crm-header h1{margin:0;font-size:1.5rem;letter-spacing:-.035em}.crm-header p{margin:6px 0 0;color:var(--muted);font-size:.8125rem}.mobile-brand{display:none}.add-button{min-height:36px;display:flex;align-items:center;gap:6px;padding:0 13px;border:0;border-radius:8px;background:var(--brand-gradient);color:#073f3c;font-size:.75rem;font-weight:650;cursor:pointer}.add-button:hover{filter:saturate(1.07) brightness(1.02)}.crm-metrics{display:flex;margin:27px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.crm-metrics>div{min-width:160px;padding:13px 20px 13px 0;border-right:1px solid var(--border)}.crm-metrics>div+div{padding-left:22px}.crm-metrics span{color:var(--muted);font-size:.6875rem}.crm-metrics strong{display:block;margin-top:4px;font-size:1.25rem;letter-spacing:-.03em}.crm-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.crm-tools label{width:min(330px,100%);height:40px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #ccd7d0;color:var(--muted)}.crm-tools input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent}.crm-tools>button{height:36px;display:flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--muted);font-size:.75rem;cursor:pointer}.customer-table{overflow-x:auto;border-top:1px solid #d5ddd8}table{width:100%;border-collapse:collapse;font-size:.8125rem}th{padding:11px 10px;color:var(--muted);font-size:.6875rem;text-align:left;font-weight:620}td{padding:12px 10px;border-top:1px solid var(--border);color:var(--muted);white-space:nowrap}.customer-name{display:flex;align-items:center;gap:9px;border:0;background:transparent;cursor:pointer}.customer-name>span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#e3faf2,#e6f3fd);color:var(--green-dark);font-size:.6875rem;font-weight:700}.customer-name strong{color:var(--text);font-size:.8125rem}.status{padding:4px 7px;border-radius:999px;background:#f1f4f2;color:#56635b;font-size:.6875rem}.status-跟进中,.status-已成交{background:var(--green-soft);color:var(--green-dark)}.menu-cell{position:relative;text-align:right}.menu-cell>button{width:32px;height:32px;border:0;border-radius:7px;background:transparent;cursor:pointer}.row-menu{position:absolute;right:8px;top:42px;z-index:10;width:100px;padding:5px;border:1px solid var(--border);border-radius:9px;background:#fff;box-shadow:0 12px 30px #19211d1f}.row-menu button{width:100%;min-height:32px;border:0;border-radius:5px;background:transparent;text-align:left;font-size:.75rem;cursor:pointer}.row-menu button:hover{background:#f4f6f4}.row-menu .delete{color:#b13f3f}.crm-empty{min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);text-align:center}.crm-empty>span{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--border);border-radius:12px;color:var(--green)}.crm-empty h2{margin:16px 0 6px;color:var(--text);font-size:1rem}.crm-empty p{margin:0 0 15px;font-size:.8125rem}.crm-empty button{border:0;background:transparent;color:var(--green);font-weight:620;cursor:pointer}.crm-error{min-height:44px;display:flex;align-items:center;gap:9px;padding:0 12px;border-left:3px solid #b13f3f;background:#fff5f5;color:#7e3232;font-size:.75rem}.crm-error button{margin-left:auto;border:0;background:transparent;color:#7e3232;text-decoration:underline;cursor:pointer}.customer-dialog{width:min(600px,calc(100% - 24px));max-height:calc(100vh - 40px);padding:0;border:0;border-radius:14px;background:#fff;color:var(--text);box-shadow:0 24px 80px #111e162e}.customer-dialog::backdrop{background:#19211d52}.customer-dialog form{max-height:calc(100vh - 40px);padding:24px;overflow:auto}.customer-dialog header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.customer-dialog header p{margin:0;color:var(--green);font-size:.6875rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.customer-dialog h2{margin:4px 0 0;font-size:1.25rem}.customer-dialog header button{width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;cursor:pointer}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-grid label{display:flex;flex-direction:column;gap:7px}.form-grid label>span{color:var(--muted);font-size:.75rem;font-weight:620}.form-grid input,.form-grid select,.form-grid textarea{width:100%;border:1px solid #dce4df;border-radius:8px;background:#fbfcfb;padding:10px 11px;outline:0;color:var(--text)}.form-grid textarea{resize:vertical}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{border-color:var(--green);background:#fff}.span-two{grid-column:1/-1}.form-error{color:#aa3e3e;font-size:.75rem}.customer-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}.customer-dialog footer button{min-height:38px;padding:0 14px;border:0;border-radius:8px;background:#f1f4f2;color:var(--muted);cursor:pointer}.customer-dialog footer .save{background:var(--brand-gradient);color:#073f3c;font-weight:650}.followup-section{margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}.followup-title{display:flex;align-items:center;justify-content:space-between}.followup-title>div{display:flex;align-items:center;gap:7px}.followup-title strong{font-size:.8125rem}.followup-title span{color:var(--muted);font-size:.6875rem}.followup-create{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:12px}.followup-create textarea{min-width:0;padding:10px;border:1px solid #dce4df;border-radius:8px;resize:vertical;outline:0}.followup-create textarea:focus{border-color:var(--green)}.followup-create button{align-self:stretch;min-width:58px;border:0;border-radius:8px;background:var(--brand-gradient);color:#073f3c;font-size:.75rem;font-weight:650;cursor:pointer}.followup-list{margin-top:10px;border-top:1px solid var(--border)}.followup-list>p{margin:14px 0;color:var(--muted);font-size:.75rem}.followup-list article{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}.followup-list article p{margin:0;color:var(--text);font-size:.8125rem;line-height:1.55;white-space:pre-wrap}.followup-list article small{display:block;margin-top:4px;color:var(--muted);font-size:.6875rem}.followup-list article button{width:32px;height:32px;display:grid;place-items:center;flex:0 0 auto;border:0;border-radius:7px;background:transparent;color:var(--muted);cursor:pointer}.followup-list article button:hover{background:#fbefef;color:#b64242}.confirm-overlay{position:fixed;inset:0;z-index:30;display:grid;place-items:center;background:#19211d52}.confirm-box{width:min(400px,calc(100% - 24px));padding:24px;border-radius:14px;background:#fff;box-shadow:0 24px 80px #111e162e}.confirm-box h2{margin:0;font-size:1.125rem}.confirm-box p{margin:9px 0 24px;color:var(--muted);font-size:.8125rem;line-height:1.6}.confirm-box footer{display:flex;justify-content:flex-end;gap:8px}.confirm-box footer button{min-height:38px;padding:0 14px;border:0;border-radius:8px;background:#f1f4f2;color:var(--muted);cursor:pointer}.confirm-box footer .confirm-danger{background:#b64242;color:#fff;font-weight:620}.crm-sidebar{background:#f6faf9}.crm-brand>span,.mobile-brand{border-radius:12px}.crm-sidebar nav button{min-height:42px;border-radius:999px}.add-button,.customer-dialog footer button,.confirm-box footer button{border-radius:999px;min-height:38px}.crm-tools label{border:1px solid var(--border);border-radius:999px;padding:0 14px;background:#fff}.crm-tools select{border:1px solid var(--border);border-radius:999px;padding:10px 12px;background:#fff;color:var(--muted);font-size:.75rem}.add-button:disabled{opacity:.5;cursor:wait}.customer-dialog,.confirm-box{border-radius:24px}.form-grid input,.form-grid select,.form-grid textarea,.followup-create textarea,.followup-create button{border-radius:12px}.row-menu{border-radius:14px}.row-menu button{border-radius:10px}@media(max-width:700px){.crm-shell{display:block}.crm-sidebar{display:none}.crm-main{padding:24px 16px 60px}.mobile-brand{display:grid;margin-bottom:16px}.crm-header{align-items:flex-end}.crm-header p{display:none}.add-button{width:40px;padding:0;justify-content:center}.add-button:not(svg){font-size:0}.add-button svg{width:18px}.crm-metrics{margin:24px 0}.crm-metrics>div{min-width:0;flex:1}.crm-tools>button{display:none}th:nth-child(2),td:nth-child(2),th:nth-child(4),td:nth-child(4),th:nth-child(5),td:nth-child(5){display:none}.form-grid{grid-template-columns:1fr}.span-two{grid-column:auto}}@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}.preview-boot{min-height:100vh;display:grid;place-items:center;color:#65736b;font:14px system-ui}.generated-shell{min-height:100vh;display:grid;grid-template-columns:216px 1fr;background:var(--generated-bg, #f8faf9);color:#18211d;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,sans-serif}.generated-sidebar{padding:24px 16px;background:color-mix(in srgb,var(--generated-bg, #f8faf9) 86%,#dcebe6);border-right:1px solid #e1e9e5;display:flex;flex-direction:column}.generated-brand{display:flex;align-items:center;gap:10px;padding:0 8px 24px}.generated-brand>span{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;color:#fff;background:var(--generated-primary, #19bfae);font-size:13px}.generated-brand strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.generated-sidebar nav{display:grid;gap:4px}.generated-sidebar nav button{border:0;background:transparent;min-height:38px;border-radius:10px;display:flex;align-items:center;gap:9px;padding:0 10px;color:#607068;cursor:pointer}.generated-sidebar nav button.active{color:#183e36;background:color-mix(in srgb,var(--generated-primary, #19bfae) 12%,white)}.generated-sidebar>small{margin-top:auto;padding:8px;color:#7a8981}.generated-main{padding:40px clamp(24px,5vw,76px);overflow:auto}.generated-header{display:flex;align-items:center;justify-content:space-between}.generated-header h1{margin:0;font-size:26px;font-weight:650;letter-spacing:-.03em}.generated-header p{margin:6px 0 0;color:#6d7c74;font-size:13px}.generated-dashboard>p{max-width:640px;color:#526158;line-height:1.7}.generated-stat-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}.generated-stat-row .generated-stat{margin:0;max-width:none;min-width:140px}.generated-stat-row .generated-stat strong{font-size:16px}.generated-primary{border:0;border-radius:999px;min-height:38px;padding:0 16px;display:inline-flex;align-items:center;gap:7px;background:var(--generated-primary, #19bfae);color:#fff;cursor:pointer}.generated-stat{display:flex;flex-direction:column;gap:8px;margin:30px 0 22px;padding:20px 22px;max-width:190px;background:#fff;border:1px solid #e4ebe7;border-radius:var(--generated-radius, 16px)}.generated-stat span{color:#6d7c74;font-size:12px}.generated-stat strong{font-size:28px}.generated-tools{margin-bottom:14px}.generated-tools label{width:min(320px,100%);height:38px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #dde7e1;border-radius:11px;background:#fff;color:#76847c}.generated-tools input{width:100%;border:0;outline:0;background:transparent}.generated-table{border:1px solid #e0e8e4;border-radius:var(--generated-radius, 16px);overflow:hidden;background:#fff}.generated-table table{width:100%;border-collapse:collapse;font-size:13px}.generated-table th{height:40px;text-align:left;padding:0 16px;color:#6d7c74;font-weight:500;background:#fafcfb}.generated-table td{height:54px;padding:0 16px;border-top:1px solid #edf1ef}.generated-table td:last-child{white-space:nowrap;text-align:right}.generated-table td button{border:0;background:transparent;color:#5d7066;cursor:pointer;margin-left:8px}.generated-empty{min-height:260px;display:grid;align-content:center;justify-items:center;gap:12px;color:#7a8981}.generated-empty h2{color:#37463e;font-size:16px;margin:0}.generated-empty button{border:0;background:transparent;color:var(--generated-primary, #19bfae);cursor:pointer}.generated-error{margin:10px 0;color:#b84545;font-size:13px}.generated-error button{border:0;background:transparent;color:inherit;text-decoration:underline}.generated-dialog{width:min(620px,calc(100vw - 32px));border:0;border-radius:20px;padding:0;box-shadow:0 24px 80px #14251d2b}.generated-dialog::backdrop{background:#1d2b2545}.generated-dialog form{padding:24px}.generated-dialog header,.generated-dialog footer{display:flex;align-items:center;justify-content:space-between}.generated-dialog h2{font-size:18px;margin:0}.generated-dialog header button{border:0;background:transparent;cursor:pointer}.generated-form{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}.generated-form label{display:grid;gap:7px;color:#526158;font-size:12px}.generated-form input,.generated-form select,.generated-form textarea{border:1px solid #dce5e0;border-radius:10px;min-height:40px;padding:9px 11px;font:inherit;resize:vertical}.generated-form .generated-wide{grid-column:1/-1}.generated-form .generated-checkbox{display:flex;align-items:center}.generated-dialog footer{justify-content:flex-end;gap:10px}.generated-dialog footer>button:not(.generated-primary){border:0;background:transparent;padding:10px;cursor:pointer}@media(max-width:700px){.generated-shell{grid-template-columns:1fr}.generated-sidebar{display:none}.generated-main{padding:24px 16px}.generated-form{grid-template-columns:1fr}.generated-table{overflow-x:auto}}
