:root{font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:#19243a;background:#f4f6fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}[hidden]{display:none!important}.shell{min-height:100vh;display:flex}.sidebar{position:fixed;inset:0 auto 0 0;width:230px;background:#fff;border-right:1px solid #e9edf5;padding:28px 16px 20px;display:flex;flex-direction:column;z-index:3}.brand{display:flex;align-items:center;gap:10px;color:#182a4b;font-weight:800;font-size:21px;letter-spacing:.03em;padding:0 10px}.brand small{font-size:11px;color:#7690bd;letter-spacing:.08em}.brand-mark{width:34px;height:34px;display:grid;place-items:center;color:#fff;background:#1a5cff;border-radius:11px;font-size:23px;line-height:1}.sidebar-label{color:#a2aec1;font-size:11px;font-weight:700;letter-spacing:.13em;margin:39px 12px 12px}.sidebar nav{display:flex;flex-direction:column;gap:3px}.sidebar nav button{border:0;background:transparent;text-align:left;padding:12px 14px;border-radius:9px;color:#68768f;font-size:14px;display:flex;gap:13px;align-items:center}.sidebar nav button span{font-size:17px;width:20px;text-align:center}.sidebar nav button:hover{background:#f4f7ff;color:#1a5cff}.sidebar nav button.active{background:#eaf0ff;color:#1a5cff;font-weight:700}.nav-heading{font-size:11px;color:#a9b4c5;margin:24px 13px 8px}.sidebar-bottom{margin-top:auto;background:#f3f7ff;border-radius:12px;padding:16px 14px;color:#6f83a3;font-size:12px;line-height:1.7}.sidebar-bottom-title{font-weight:700;color:#3563bd;font-size:13px}.sidebar-bottom p{margin:5px 0 0}.workspace{margin-left:230px;min-width:0;width:calc(100% - 230px)}.topbar{height:68px;background:#fff;border-bottom:1px solid #e9edf5;display:flex;align-items:center;justify-content:space-between;padding:0 35px;font-size:13px;color:#7f8da5}.topbar-title{color:#52617a;font-weight:600}.topbar-divider{margin:0 12px;color:#d0d7e3}.top-right{display:flex;gap:10px;align-items:center}.status-dot{width:8px;height:8px;border-radius:50%;background:#36c38b}.text-button{border:0;background:none;color:#70809a;padding:8px}.text-button:hover{color:#1a5cff}.content{max-width:1540px;margin:auto;padding:35px 38px 70px}.page-header{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:25px}.page-header h1{font-size:26px;letter-spacing:-.04em;margin:0 0 8px}.page-header p{margin:0;color:#8b98ac;font-size:13px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.17em}.blue{color:#1a5cff}.button{border:1px solid transparent;border-radius:8px;padding:10px 16px;font-size:13px;font-weight:700;white-space:nowrap}.button.primary{background:#1a5cff;color:#fff;box-shadow:0 5px 12px #1a5cff22}.button.primary:hover{background:#104de0}.button.secondary{background:#fff;color:#657590;border-color:#e1e7f0}.button.secondary:hover{border-color:#aec2ee;color:#1a5cff}.button.small{padding:7px 10px;font-size:12px;box-shadow:none}.button.wide{width:100%;display:flex;justify-content:space-between;margin-top:10px}.card{background:#fff;border:1px solid #edf0f6;border-radius:14px;box-shadow:0 6px 22px #273b6310}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.stat{padding:20px}.stat-head{display:flex;justify-content:space-between;align-items:center;color:#8190a7;font-size:13px}.stat-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#eef3ff;color:#1a5cff;font-size:16px}.stat-value{font-size:25px;font-weight:750;letter-spacing:-.03em;color:#243451;margin-top:19px}.stat-note{font-size:12px;color:#a4afbf;margin-top:7px}.dashboard-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:18px}.panel{padding:23px}.panel h2{font-size:16px;margin:0 0 7px}.panel p{color:#8b98ac;font-size:13px;line-height:1.7}.steps{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:25px}.step{flex:1;min-width:90px;background:#f5f8ff;border:1px solid #edf2ff;border-radius:10px;padding:16px 12px;color:#315286;font-size:13px;font-weight:700}.step small{display:block;color:#9badc9;margin-bottom:8px;font-size:11px}.step-arrow{color:#b8c7de}.quick-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.quick-links button{border:1px solid #e7edf7;border-radius:9px;background:#fff;text-align:left;padding:13px;color:#536886;font-size:13px}.quick-links button:hover{border-color:#b6caff;color:#1a5cff}.table-card{overflow:hidden}.table-toolbar{display:flex;justify-content:space-between;align-items:center;padding:19px 22px;border-bottom:1px solid #f0f2f7}.table-toolbar strong{font-size:15px}.table-toolbar span{font-size:12px;color:#9ba8ba}.table-wrap{overflow:auto;min-height:250px}table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}th{background:#fafbfe;color:#8492a7;font-weight:600;text-align:left;padding:13px 21px;border-bottom:1px solid #edf0f5}td{padding:16px 21px;border-bottom:1px solid #f2f4f8;color:#4e5e78}td:first-child{color:#253858;font-weight:600}tr:last-child td{border-bottom:0}.badge{display:inline-block;padding:4px 9px;border-radius:20px;background:#eef4ff;color:#3565c1;font-size:12px}.empty{text-align:center;padding:80px 20px;color:#a4afbe}.empty strong{display:block;color:#718099;margin:9px;font-size:14px}.empty-icon{font-size:27px;color:#bbc9dc}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:15px 20px;border-top:1px solid #f0f2f7;color:#95a2b5;font-size:12px}.pagination button{border:1px solid #e7ebf2;background:white;color:#677b97;border-radius:6px;padding:5px 10px}.form-error{color:#d64545;font-size:13px;min-height:18px;line-height:1.5}.modal{border:0;border-radius:16px;padding:0;max-width:500px;width:calc(100% - 32px);color:#1d2c45;box-shadow:0 20px 80px #1d315d3b}.modal::backdrop{background:#14213cb8}.modal form{padding:27px}.modal-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.modal-header h2{font-size:21px;margin:8px 0 0}.icon-button{border:0;background:#f3f5f9;color:#74839a;border-radius:8px;width:32px;height:32px;font-size:23px;line-height:1}.fields{display:grid;gap:15px}.fields label,.login-card label{display:grid;gap:8px;color:#536580;font-size:13px;font-weight:600}.fields input,.fields select,.login-card input{width:100%;border:1px solid #dfe6f0;border-radius:8px;background:#fff;padding:11px 12px;outline:none;color:#263a5a;font-weight:400}.fields input:focus,.fields select:focus,.login-card input:focus{border-color:#6691fb;box-shadow:0 0 0 3px #1a5cff12}.fields small{color:#9aa8bb;font-size:11px;font-weight:400}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.toast{position:fixed;right:24px;bottom:24px;background:#273954;color:white;padding:12px 18px;border-radius:9px;box-shadow:0 10px 30px #172a4933;z-index:10;font-size:13px}.login-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.login-hero{background:radial-gradient(circle at 72% 35%,#3b7aff 0,#1955df 45%,#143a9e 100%);padding:45px 10%;color:#fff;display:flex;flex-direction:column;position:relative;overflow:hidden}.login-hero:after{content:"";position:absolute;width:540px;height:540px;border:1px solid #ffffff1c;border-radius:50%;right:-170px;bottom:-170px;box-shadow:0 0 0 75px #ffffff08,0 0 0 150px #ffffff08}.brand-light{color:white;padding:0}.brand-light small{color:#b9ccff}.brand-light .brand-mark{background:white;color:#1a5cff}.hero-copy{margin:auto 0;position:relative;z-index:1}.hero-copy .eyebrow{color:#b9ceff}.hero-copy h1{font-size:40px;line-height:1.45;letter-spacing:-.03em;margin:22px 0}.hero-copy p{font-size:15px;color:#d0deff}.hero-foot{font-size:12px;color:#b5caff;position:relative;z-index:1}.hero-foot span{padding:0 7px}.login-content{display:grid;place-items:center;padding:40px}.login-card{width:min(360px,100%)}.login-card h2{font-size:28px;margin:13px 0 10px}.muted{color:#97a3b5;font-size:13px}.login-card .muted{margin-bottom:34px}.login-card label{margin-bottom:20px}.login-card input{padding:13px}.login-card .form-error{margin-bottom:10px}
@media(max-width:900px){.sidebar{width:70px;padding:24px 10px}.sidebar .brand>span:last-child,.sidebar-label,.nav-heading,.sidebar-bottom,.sidebar nav button{font-size:0}.sidebar .brand{padding:0 8px}.sidebar nav{margin-top:35px}.sidebar nav button{justify-content:center;padding:12px}.sidebar nav button span{font-size:19px}.workspace{margin-left:70px;width:calc(100% - 70px)}.stats{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.content{padding:28px 22px}.topbar{padding:0 22px}}@media(max-width:600px){.login-screen{display:block}.login-hero{min-height:210px;padding:28px}.hero-copy{margin:25px 0}.hero-copy h1{font-size:23px;margin:10px 0}.hero-copy p,.hero-foot{display:none}.login-content{padding:36px 24px}.page-header{align-items:flex-start;flex-direction:column}.topbar{height:58px}.topbar-title,.topbar-divider{display:none}.top-right{font-size:12px}.stats{gap:10px}.stat{padding:15px}.stat-value{font-size:21px}.content{padding:22px 15px}.step-arrow{display:none}}
.login-notice{color:#93a1b5;font-size:12px;line-height:1.7;margin:3px 0 16px}
.login-tabs{display:flex;border-bottom:1px solid #e9edf5;gap:20px;margin:0 0 25px}.login-tabs button{position:relative;border:0;background:none;color:#8a98ad;font-size:13px;font-weight:600;padding:0 0 13px}.login-tabs button[aria-selected="true"]{color:#1a5cff}.login-tabs button[aria-selected="true"]:after{content:"";position:absolute;height:2px;background:#1a5cff;bottom:-1px;left:0;right:0}.otp-row{display:flex;gap:8px}.otp-row input{min-width:0}.otp-row button{min-width:108px}.login-card .login-notice{margin:8px 0 15px}.login-card .form-error:empty{min-height:0}
.sidebar{overflow-y:auto}
.quote-modal{max-width:760px}.quote-lines-heading{display:flex;align-items:center;justify-content:space-between;color:#536580;font-size:13px}.quote-lines{display:grid;gap:12px}.quote-line{display:grid;grid-template-columns:1.2fr 1fr 1fr auto;gap:10px;align-items:end;background:#f8faff;padding:12px;border:1px solid #eef2fa;border-radius:9px}.quote-line label{min-width:0}.quote-line .icon-button{margin-bottom:3px}.quote-modal .modal-header{margin-bottom:20px}#detail-dialog{padding:27px}.quote-detail-summary{display:flex;flex-wrap:wrap;gap:20px;color:#62738c;font-size:13px;margin:12px 0 20px}@media(max-width:600px){.quote-line{grid-template-columns:1fr 1fr}.quote-line .icon-button{justify-self:end}.quote-modal{max-height:90vh}}

.analytics-filter{display:flex;align-items:end;gap:16px;padding:18px 20px;margin-bottom:20px;flex-wrap:wrap}.analytics-filter label{display:grid;gap:7px;font-size:12px;font-weight:600;color:#657590}.analytics-filter input{border:1px solid #dfe6f0;border-radius:8px;padding:9px;color:#263a5a}.analytics-filter span{font-size:12px;color:#95a2b5}.analytics-notes{margin-top:18px}.analytics-notes p{margin-bottom:0}
.chat-layout{display:grid;grid-template-columns:270px 1fr;min-height:570px;overflow:hidden}.chat-list{border-right:1px solid #edf0f5;display:flex;flex-direction:column;min-width:0}.chat-list-head,.chat-thread-head{padding:18px;border-bottom:1px solid #edf0f5;display:flex;align-items:center;justify-content:space-between;gap:10px}.chat-list-head strong,.chat-thread-head strong{font-size:14px}.chat-list-body{flex:1;overflow:auto;max-height:520px}.chat-list-body button{display:block;width:100%;text-align:left;border:0;background:white;padding:14px 18px;color:#536580;border-bottom:1px solid #f3f5f8}.chat-list-body button.active{background:#edf3ff;color:#1a5cff}.chat-list-body small{display:block;color:#9aa9bc;margin-top:4px}.chat-thread{display:flex;flex-direction:column;min-width:0}.chat-messages{min-height:360px;max-height:520px;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:20px;background:#fbfcff;flex:1}.chat-message{align-self:flex-start;max-width:78%}.chat-message.mine{align-self:flex-end}.chat-message small{display:block;color:#96a5b8;font-size:11px;margin:0 3px 5px}.chat-message.mine small{text-align:right}.chat-message-body{white-space:pre-wrap;overflow-wrap:anywhere;background:white;color:#384a67;border:1px solid #edf1f7;border-radius:10px;padding:10px 13px;font-size:13px;line-height:1.6}.chat-message.mine .chat-message-body{background:#eaf1ff;color:#2853a3;border-color:#eaf1ff}.chat-compose{border-top:1px solid #edf0f5;padding:14px;display:flex;gap:10px;align-items:flex-end}.chat-compose textarea{resize:vertical;min-height:54px;max-height:150px;flex:1;border:1px solid #dfe6f0;border-radius:8px;padding:10px;font:inherit;font-size:13px}.chat-placeholder{margin:auto;color:#a0aec0;text-align:center;font-size:13px}.chat-thread-tools{display:flex;gap:5px;flex-wrap:wrap}.chat-directory{font-size:12px;line-height:1.8;color:#8190a7;max-height:150px;overflow:auto}.chat-members{font-size:13px;line-height:2;color:#536580}.chat-members-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #f1f3f8}.chat-info{font-size:12px;color:#91a1b5;padding:8px 18px}@media(max-width:700px){.chat-layout{grid-template-columns:120px 1fr}.chat-list-head{flex-direction:column;align-items:stretch}.chat-list-body button{padding:12px 8px}.chat-thread-head{align-items:flex-start;flex-direction:column}.chat-message{max-width:95%}.chat-compose{flex-direction:column;align-items:stretch}}
#chat-members-dialog{padding:27px}.chat-directory button{border:0;background:#f3f7ff;color:#4167a8;border-radius:6px;padding:5px 8px;margin:3px;font-size:12px}.chat-directory-pages{display:flex;align-items:center;gap:10px;font-size:12px;color:#8b98ac}.chat-add-member{display:flex;gap:10px;align-items:end;padding:15px 0}.chat-add-member label{display:grid;gap:7px;font-size:12px;color:#6d7f99}.chat-add-member input{border:1px solid #dfe6f0;border-radius:8px;padding:9px;min-width:0}
.chat-member-search{display:grid;gap:7px;font-size:12px;color:#6d7f99}.chat-member-search input{min-width:0;flex:1;border:1px solid #dfe6f0;border-radius:8px;padding:9px}.chat-member-search .otp-row{margin-bottom:8px}
.audit-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:18px 20px;margin-bottom:20px}.audit-filter label{display:grid;gap:7px;font-size:12px;font-weight:600;color:#657590}.audit-filter input{width:130px;border:1px solid #dfe6f0;border-radius:8px;padding:9px;color:#263a5a}.audit-summary{max-width:320px;white-space:pre-wrap;overflow-wrap:anywhere;font-family:monospace;font-size:12px}
.table-tools,.list-search{display:flex;align-items:center;gap:10px}.table-tools{flex-wrap:wrap;justify-content:flex-end}.list-search input{width:190px;max-width:48vw;border:1px solid #dfe6f0;border-radius:7px;padding:8px 10px;font:inherit;font-size:12px;color:#344b6c}
.finance-section{margin-top:24px;border-top:1px solid #edf0f5;padding-top:16px}.finance-section h3{font-size:15px;color:#344b6c;margin:0}.finance-section .table-wrap{min-height:0}.finance-section .empty{padding:24px}.finance-section .pagination{padding:10px 0}.quote-detail-summary strong{color:#263a5a}
.customer-panel,.attachment-panel{padding:27px;max-height:90vh;overflow:auto}
.customer-panel .customer-section{padding:16px 0;border-top:1px solid #edf0f5}
.customer-panel .customer-section:first-child{padding-top:0;border-top:0}
.customer-panel .customer-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.customer-panel .customer-section-head h3{margin:0;color:#344b6c;font-size:15px}
.customer-panel .customer-section-head span{color:#9aa8bb;font-size:12px}
.customer-panel .customer-name{color:#344b6c;font-weight:700;margin:8px 0 16px}
.customer-panel .customer-section h4{color:#536580;font-size:13px;margin:20px 0 12px}
.customer-panel .customer-section form,.attachment-panel .attachment-upload{padding:0}
.customer-panel .customer-form-actions{display:flex;flex-wrap:wrap;gap:8px}
.customer-panel .compact-table,.attachment-panel .compact-table{min-height:0}
.customer-panel .compact-table .empty,.attachment-panel .compact-table .empty{padding:28px 12px}
.customer-panel .pagination,.attachment-panel .pagination{padding:10px 0}
.attachment-panel .attachment-upload{padding-top:16px;border-top:1px solid #edf0f5}
.attachment-panel input[type=file]{padding:8px}
.customer-import-panel{padding:27px;max-height:90vh;overflow:auto}
.customer-import-panel form{padding:0}
.customer-import-panel .compact-table{min-height:0;max-height:300px;margin:14px 0}
.customer-import-panel .customer-form-actions{display:flex;gap:8px;flex-wrap:wrap}
.customer-import-panel .import-success{padding:12px 14px;background:#edf9f3;color:#19764b;border-radius:8px;font-size:13px}
.customer-import-panel input[type=file]{padding:8px}

/* 商机看板：列内分页，移动端可横向滚动并使用阶段按钮。 */
.board-help { color:#52617b; font-size:.9rem; margin:0 0 14px; }
.board-grid { display:flex; gap:16px; overflow-x:auto; align-items:stretch; padding:0 0 14px; }
.board-column { flex:1 0 235px; min-width:235px; border:1px solid #e4eaf4; border-radius:14px; background:#f5f8fd; padding:14px; }
.board-column-head { display:flex; justify-content:space-between; gap:10px; align-items:center; color:#202d43; }
.board-column-head span,.board-column-total { color:#687790; font-size:.85rem; }
.board-column-total { margin:8px 0 12px; }
.board-cards { display:grid; gap:10px; min-height:92px; align-content:start; }
.board-card { display:grid; gap:8px; padding:13px; background:#fff; border:1px solid #e4eaf4; border-radius:10px; color:#28354b; overflow-wrap:anywhere; }
.board-card[draggable="true"] { cursor:grab; }
.board-card span { color:#61718a; font-size:.85rem; }
.board-card-actions { display:flex; flex-wrap:wrap; gap:6px; }
.board-empty { color:#7b889b; padding:22px 6px; text-align:center; font-size:.9rem; }
.board-column .pagination { display:flex; gap:5px; align-items:center; justify-content:space-between; margin-top:14px; }
@media (max-width:700px) { .board-column { flex-basis:260px; } }
.customer-batch { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:12px 14px; margin-bottom:10px; background:#f3f7ff; border:1px solid #dce8fb; border-radius:10px; color:#465b79; font-size:.9rem; }
.customer-batch label { display:flex; align-items:center; gap:6px; }
.customer-batch select { max-width:150px; padding:6px; }
#customer-batch-results { margin-bottom:12px; }
.followup-panel{padding:26px;max-height:90vh;overflow:auto}.followup-panel form{padding:0}.followup-panel textarea{width:100%;resize:vertical}.followup-panel .fields{grid-template-columns:1fr 1fr}.followup-panel .full-width{grid-column:1/-1}.followup-record{border-bottom:1px solid #e4eaf4;padding:12px 0;overflow-wrap:anywhere}.followup-record small{display:block;color:#61718a;margin-top:5px}.followup-record p{white-space:pre-wrap;line-height:1.6}.followup-record span{font-size:.85rem;color:#61718a}@media(max-width:600px){.followup-panel .fields{grid-template-columns:1fr}}

.list-controls{padding:16px;margin-bottom:16px}.list-controls .audit-filter{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;padding:0}.list-controls label{min-width:0}.list-controls input,.list-controls select{min-width:0;width:100%}.list-columns{margin-top:14px;color:#52617b}.list-column-options{display:flex;flex-wrap:wrap;gap:12px;padding-top:10px}.list-column-options label{display:flex;align-items:center;gap:5px}.list-column-options input{width:auto}.list-columns summary{cursor:pointer}.list-controls .login-notice{margin-top:10px}#chat-unread-badge{margin-left:auto;padding:2px 7px}.chat-list small .badge{padding:2px 5px}

.chat-file-controls{padding:12px 16px;border-top:1px solid #e4eaf4;display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0}.chat-file-controls .login-notice{width:100%;margin:0}.chat-file-controls label{max-width:100%;min-width:0}.chat-file-controls input{max-width:100%}.chat-file-controls .form-error,.chat-file-pending{width:100%;overflow-wrap:anywhere}.chat-file-pending{display:flex;flex-wrap:wrap;gap:6px}.chat-message-body button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
