
:root{--green:#174d3b;--leaf:#e9f0e9;--paper:#f6f7f2;--ink:#203c32;--muted:#78857d;--line:#e2e7de;--white:#fff;--orange:#b6813e;font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #b1caaa;outline-offset:3px}button{border:0;background:transparent;color:inherit}a{color:var(--green);text-decoration:none}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:white;border-right:1px solid var(--line);padding:38px 23px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:12px;font-weight:750;font-size:24px;letter-spacing:2px}.brandmark{background:var(--green);color:white;width:40px;height:40px;display:grid;place-items:center;border-radius:13px;font-size:22px}.brand small{font-size:10px;display:block;color:var(--muted);letter-spacing:2px;margin-top:4px}.nav{display:grid;gap:10px;margin-top:52px}.nav button{text-align:left;border-radius:12px;padding:15px 18px;display:flex;align-items:center;gap:14px;color:#6a7b71;font-size:14px}.nav button.active{background:var(--green);color:white}.icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex-shrink:0}.sidebar-bottom{margin-top:auto;font-size:12px;color:var(--muted);line-height:1.9}.profile{border-top:1px solid var(--line);padding-top:22px;margin-top:22px;display:flex;gap:10px;align-items:center}.avatar{width:37px;height:37px;border-radius:50%;display:grid;place-items:center;background:var(--leaf);color:var(--green);font-weight:bold}.profile strong{display:block;color:var(--ink);font-size:13px}.main{margin-left:224px;padding:34px 48px 56px;max-width:1600px}.topline{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:35px}.topline .status{display:flex;align-items:center;gap:7px}.dot{height:6px;width:6px;background:#6b936e;border-radius:50%}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:27px}h1{font-size:30px;letter-spacing:-1px;margin:0 0 10px;font-weight:650}h2{font-size:18px;font-weight:650;margin:0}h3{font-size:16px;margin:0}.muted{color:var(--muted)}.subtitle{font-size:13px;line-height:1.8;margin:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--green);color:#fff;padding:12px 19px;border-radius:10px;font-size:13px;font-weight:550;white-space:nowrap}.btn.secondary{background:white;border:1px solid var(--line);color:var(--ink)}.btn.light{background:var(--leaf);color:var(--green)}.btn.danger{background:#fff1ec;color:#a34532}.btn.small{padding:9px 13px;font-size:12px}.hero{background:var(--green);color:#fff;border-radius:20px;padding:31px 34px;position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;min-height:175px}.eyebrow{font-size:10px;letter-spacing:2px;margin-bottom:13px;opacity:.7}.hero h2{font-size:24px;margin-bottom:12px}.hero p{color:#c4d5ca;font-size:13px;max-width:560px;line-height:1.8;margin:0}.hero-art{width:120px;height:120px;opacity:.55;flex-shrink:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin:22px 0 30px}.stat{background:white;border:1px solid var(--line);border-radius:14px;padding:22px}.stat-label{font-size:12px;color:#758579;display:flex;justify-content:space-between;align-items:center}.stat-value{font-size:32px;letter-spacing:-1px;margin:15px 0 8px;font-weight:650}.stat-note{font-size:11px;color:var(--muted)}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.text-btn{font-size:12px;color:var(--green);padding:8px}.dashboard-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:24px}.panel{background:white;border:1px solid var(--line);border-radius:16px;padding:24px}.list{display:grid;gap:12px}.merchant{display:flex;gap:14px;align-items:flex-start;padding:19px;background:white;border:1px solid var(--line);border-radius:13px}.merchant-content{min-width:0;flex:1}.merchant h3{font-size:14px;line-height:1.6;margin:0 0 7px;overflow-wrap:anywhere}.merchant-meta{font-size:12px;color:var(--muted);line-height:1.9}.merchant-bottom{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.grade-icon{width:39px;height:42px;border-radius:10px;background:#edf1e8;display:grid;place-items:center;color:#5f7757;font-weight:650;flex-shrink:0}.grade-icon.s{background:#f5eee0;color:#a38245}.badge{display:inline-block;font-size:10px;padding:4px 8px;border-radius:5px;background:#f1f3ed;color:#7a887d;white-space:nowrap}.badge.green{color:#35674c;background:#eaf2e8}.badge.orange{background:#faf0df;color:#9a753c}.empty{padding:40px 15px;text-align:center;color:var(--muted);font-size:13px;line-height:1.9}.empty .icon{width:32px;height:32px;margin-bottom:13px;opacity:.5}.filters{background:white;padding:18px;border:1px solid var(--line);border-radius:14px;margin-bottom:20px}.filter-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.search{position:relative}.search input{padding-left:39px;width:100%}.search .icon{position:absolute;left:12px;top:12px;color:var(--muted)}input,select,textarea{border:1px solid var(--line);background:#fff;border-radius:9px;padding:11px 12px;color:var(--ink);min-width:0;font-size:13px;outline:none}input:focus,textarea:focus,select:focus{border-color:#60876d;box-shadow:0 0 0 3px #edf3e9}textarea{resize:vertical;min-height:96px;width:100%}.filter-row select{flex:1;min-width:115px;background:#fafbf8;font-size:12px}.merchant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.count-line{font-size:12px;color:var(--muted);margin-bottom:16px}.count-line strong{color:var(--green)}.notice{background:#f1f3e9;border:1px solid #e4e8d9;padding:14px 17px;border-radius:10px;font-size:12px;color:#6c7a61;line-height:1.8;margin:15px 0}.province-row{display:flex;align-items:center;gap:13px;font-size:12px;margin:19px 0}.province-row span:first-child{width:70px}.province-row strong{font-size:12px;width:35px;text-align:right}.bar{height:7px;background:#eff2ea;flex:1;border-radius:5px;overflow:hidden}.bar i{display:block;background:#819b76;height:100%;border-radius:5px}.map-panel{min-height:360px;background:#eef1e8;border:1px solid var(--line);border-radius:15px;overflow:hidden}.map-empty{display:flex;min-height:360px;align-items:center;justify-content:center;text-align:center;padding:35px}.map-empty .icon{width:50px;height:50px;color:#8c9b7d;margin-bottom:16px}.map-empty p{font-size:12px;color:var(--muted);line-height:1.9}.detail-backdrop{position:fixed;inset:0;background:#15372d55;z-index:20;display:flex;justify-content:flex-end}.drawer{width:560px;max-width:100%;height:100%;background:var(--paper);overflow:auto;box-shadow:-10px 0 60px #19382e15;padding:27px;position:relative}.drawer.wide{width:660px}.drawer-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.close{width:32px;height:32px;display:grid;place-items:center;background:white;border:1px solid var(--line);border-radius:50%;font-size:20px}.detail-name{font-size:24px;line-height:1.5;margin:15px 0 10px}.action-row{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0}.detail-section{background:white;padding:21px;border:1px solid var(--line);border-radius:13px;margin-top:16px}.detail-section h3{margin-bottom:18px}.kv{display:grid;grid-template-columns:85px 1fr;gap:13px;font-size:12px;line-height:1.8;margin:10px 0}.kv dt{color:var(--muted)}.kv dd{margin:0;overflow-wrap:anywhere}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:grid;gap:7px;font-size:12px}.field.full{grid-column:1/-1}.field label{color:#6b7e71}.field input,.field select{width:100%}.form-actions{display:flex;gap:9px;margin-top:22px;justify-content:flex-end}.error{font-size:12px;color:#a74632;line-height:1.8;padding:10px 0}.history{border-left:1px solid #dfe6dc;padding:0 0 18px 18px;font-size:12px}.history:last-child{padding-bottom:0}.history p{line-height:1.8;color:var(--muted)}.history-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.upload{border:1px dashed #bdcab6;border-radius:12px;padding:19px;margin-top:12px;background:#fafcf7}.upload input{border:0;padding:8px 0;width:100%;font-size:12px}.upload-status{font-size:12px;line-height:1.8;margin-top:10px}.attachment{font-size:12px;border:1px solid var(--line);padding:12px;border-radius:9px;margin:10px 0;overflow-wrap:anywhere}.attachment audio{width:100%;height:35px;margin-top:8px}.attachment img{max-width:100%;max-height:180px;margin-top:8px;border-radius:6px}.attachment a{display:inline-block;margin-top:8px;text-decoration:underline}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-intro{background:var(--green);padding:70px 12%;color:white;display:flex;flex-direction:column;justify-content:center}.login-intro h1{font-size:42px;line-height:1.5;margin:45px 0 20px}.login-intro p{font-size:14px;line-height:2;color:#bed2c5}.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:35px}.login-form{width:355px}.login-form h2{font-size:26px;margin-bottom:12px}.login-form .field{margin-top:20px}.login-form .btn{width:100%;margin-top:25px}.login-hint{font-size:11px;color:var(--muted);line-height:1.9;margin-top:25px}.login-form code{overflow-wrap:anywhere}.user-row{display:flex;align-items:center;gap:13px;padding:15px 0;border-bottom:1px solid var(--line);font-size:13px}.user-row:last-child{border-bottom:0}.user-row .badge{margin-left:auto}.pagination{display:flex;justify-content:center;gap:15px;align-items:center;margin:22px 0;font-size:12px}.mobile-brand{display:none}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#203c32;color:white;padding:13px 21px;border-radius:10px;font-size:13px;z-index:50;box-shadow:0 8px 30px #14372830;max-width:90%;display:none}.fineprint{font-size:11px;line-height:1.9;color:var(--muted);margin-top:15px}.date-chip{border:1px solid var(--line);background:#fff;padding:9px 12px;border-radius:8px;font-size:11px;color:#6c7d6f}.skeleton{padding:80px 20px;text-align:center;color:var(--muted)}.danger-zone{margin-top:25px;padding-top:20px;border-top:1px solid var(--line)}.loader{width:16px;height:16px;border:2px solid #b8cbbb;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1450px){.main{padding-left:60px;padding-right:60px}}@media(max-width:1050px){.sidebar{width:180px;padding-left:15px;padding-right:15px}.main{margin-left:180px;padding:28px}.stats{gap:10px}.stat{padding:17px}.dashboard-grid{grid-template-columns:1fr}.hero-art{width:85px}.merchant-grid{grid-template-columns:1fr}}@media(max-width:700px){.sidebar{inset:auto 0 0;width:100%;height:74px;padding:0 10px calc(env(safe-area-inset-bottom,0px));border:0;border-top:1px solid var(--line);background:#ffffffed;backdrop-filter:blur(15px)}.sidebar .brand,.sidebar-bottom{display:none}.nav{margin:0;display:grid;grid-template-columns:repeat(4,1fr);gap:2px;width:100%;height:64px}.nav button{flex-direction:column;justify-content:center;gap:5px;padding:9px 0;font-size:10px;border-radius:0}.nav button.active{background:transparent;color:var(--green);font-weight:750}.nav button.active .icon{background:#e6eee2;box-shadow:0 0 0 6px #e6eee2;border-radius:4px}.main{margin:0;padding:21px 19px 100px}.mobile-brand{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:700;color:var(--ink)}.mobile-brand .brandmark{width:29px;height:29px;border-radius:9px;font-size:16px}.topline{margin-bottom:30px}.topline>span:first-child{display:none}.topline .status{font-size:10px}h1{font-size:25px}.page-head{margin-bottom:21px}.page-head .btn{font-size:11px;padding:10px 12px}.subtitle{font-size:11px}.date-chip{display:none}.hero{padding:24px;min-height:165px;border-radius:16px}.hero h2{font-size:21px}.hero p{font-size:11px;max-width:245px}.hero-art{display:none}.stats{grid-template-columns:repeat(2,1fr);gap:11px;margin:15px 0 26px}.stat{padding:17px}.stat-value{font-size:28px;margin:12px 0 6px}.stat-label{font-size:11px}.stat-note{font-size:10px}.dashboard-grid{gap:22px}.panel{padding:19px}.merchant{padding:16px;gap:11px}.merchant-grid{gap:11px}.merchant h3{font-size:13px}.merchant-meta{font-size:11px}.merchant-bottom{margin-top:11px}.grade-icon{width:33px;height:37px}.section-title h2{font-size:16px}.filters{padding:13px}.filter-row{gap:8px}.filter-row select{min-width:calc(50% - 8px);font-size:11px}.drawer{padding:20px 18px 35px}.detail-name{font-size:21px}.detail-section{padding:17px}.form-grid{gap:12px}.login{display:flex;flex-direction:column}.login-intro{padding:35px 28px}.login-intro h1{font-size:26px;margin:22px 0 8px}.login-intro p{margin:0;font-size:12px}.login-form-wrap{padding:32px 25px}.login-form{width:100%}.login-form h2{font-size:23px}#toast{bottom:90px}.map-panel,.map-empty{min-height:270px}.kv{grid-template-columns:70px 1fr}.action-row .btn{flex:1}.page-head h1{white-space:nowrap}.form-actions .btn{flex:1}}
/* V2 visual system: warm paper, clear orange actions, mobile field workflow. */
:root{--green:#e87524;--leaf:#fff0df;--paper:#fff8ee;--ink:#202b3b;--muted:#7c8190;--line:#ede4d8;--orange:#e87524;background:var(--paper);color:var(--ink)}body{background:linear-gradient(125deg,#fff9ef,#fffdf8 70%)}.brand-logo{width:112px;height:44px;object-fit:contain;object-position:center}.brand-label{border-left:1px solid #cfc7bc;padding-left:12px;font-size:14px;letter-spacing:0;color:#49525e;white-space:nowrap}.sidebar{width:240px;padding:27px 20px;background:#fffdfa}.sidebar .brand{flex-wrap:wrap;gap:10px}.sidebar .brand-label{font-size:12px}.nav button.active{background:#fff0df;color:#d96115;box-shadow:inset 3px 0 #e87524}.nav button.active .icon,.btn:not(.secondary):not(.light) .icon{filter:invert(52%) sepia(94%) saturate(1690%) hue-rotate(346deg) brightness(93%) contrast(92%)}.btn:not(.secondary):not(.light) .icon{filter:brightness(0) invert(1)}.nav{margin-top:42px}.main{margin-left:240px;max-width:1580px;padding:26px 40px 50px}.topline{margin-bottom:30px;min-height:46px}.mobile-brand{display:none}.account-chip{display:flex;align-items:center;gap:9px;font-size:12px}.account-chip .avatar{width:33px;height:33px;background:#ffe9d7;color:#d96923}.page-head{margin-bottom:19px}h1{font-size:29px;color:#192331;letter-spacing:0;font-weight:750;margin-bottom:7px}.subtitle{color:#67717f}.btn{background:#e87524;border:1px solid #e87524;border-radius:10px;box-shadow:0 3px 7px #e8752410}.btn.secondary{color:#d9651b;border-color:#edb790;background:#fff}.btn.light{color:#cc6019;background:#fff0df}.text-btn{color:#d76821}.icon{width:19px;height:19px;object-fit:contain}.brandmark{background:#e87524}.panel{border-color:var(--line);box-shadow:0 4px 22px #9b693205}.date-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;max-width:780px}.date-strip button{display:grid;gap:4px;justify-items:center;background:#fbefdf;border-radius:13px;padding:12px;color:#555d66;min-height:84px}.date-strip button span{font-size:12px}.date-strip button strong{font-size:22px;font-weight:650}.date-strip button i{font-size:9px;font-style:normal;min-height:11px}.date-strip button.active{background:linear-gradient(145deg,#ef872e,#e36b1c);color:white;box-shadow:0 4px 10px #d7772925}.daily-stats{grid-template-columns:repeat(4,1fr);gap:12px;margin:17px 0 29px}.daily-stats .stat{display:flex;align-items:center;gap:12px;padding:17px;text-align:left;border-color:#f5e7d4}.daily-stats .stat>.icon{width:29px;height:29px;filter:invert(52%) sepia(94%) saturate(1690%) hue-rotate(346deg) brightness(93%) contrast(92%)}.daily-stats .stat-value{font-size:24px;margin:4px 0 0}.daily-stats .stat-label{font-size:12px;color:#4c5560;white-space:nowrap}.dashboard-grid{grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr)}.section-title h2{font-size:20px;font-weight:730}.itinerary{padding-left:29px;position:relative;display:grid;gap:15px}.itinerary:before{content:'';position:absolute;top:18px;bottom:20px;left:11px;border-left:1px dashed #edb17f}.route-card{position:relative;background:white;padding:19px;border:1px solid #f3e8dc;border-radius:15px;box-shadow:0 3px 20px #ba793505}.route-number{position:absolute;left:-33px;top:12px;width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#e87524;color:white;border:3px solid var(--paper);box-sizing:content-box;font-size:14px}.client-top{display:flex;gap:12px;align-items:flex-start;width:100%}.client-top h3{font-size:15px;line-height:1.5;font-weight:720;margin:1px 0 5px}.client-top h3 button{padding:0;text-align:left;font-weight:inherit}.client-symbol{display:grid;place-items:center;background:linear-gradient(135deg,#fff2e4,#faf1e7);border-radius:10px;flex-shrink:0;width:56px;height:60px;color:#c98556}.client-symbol .icon{width:30px;height:30px;filter:invert(57%) sepia(26%) saturate(848%) hue-rotate(341deg) brightness(92%) contrast(85%)}.merchant-meta .icon{width:13px;height:13px;margin-right:4px}.route-card .merchant-meta{line-height:1.9;margin:0}.card-actions{display:flex;gap:9px;width:100%;margin-top:15px}.card-actions .btn{flex:1;padding:10px 8px;font-size:12px;min-width:0}.card-actions .text-btn{padding:7px 2px;font-size:11px}.attachment-hint{background:#fff;border-radius:12px;border:1px solid #f2e7da;padding:17px;margin-top:17px;font-size:12px;color:#717b88;display:flex;gap:10px;align-items:center}.segmented{display:flex;border:1px solid #ecd8c3;border-radius:25px;overflow:hidden;margin:0 0 16px;max-width:700px;padding:3px;background:#fffaf3}.segmented button{flex:1;padding:10px;border-radius:22px;font-size:13px;font-weight:650}.segmented button.active{background:#e87524;color:white}.filters{background:transparent;border:0;padding:0;border-radius:0;margin-bottom:14px}.search input{background:white;min-height:44px;border-color:#dedee2;border-radius:12px}.search .icon{top:13px;opacity:.6}.quick-chips{display:flex;gap:9px;margin:13px 0;overflow:auto}.quick-chips button{padding:9px 14px;border:1px solid #e6dfd6;background:#fff;border-radius:22px;white-space:nowrap;font-size:12px}.quick-chips button:first-child{color:#d46b25;background:#fff0df;border-color:#f0be91}details summary{cursor:pointer;font-size:12px;color:#6d7886;padding:9px 0;list-style:none}details summary:after{content:'⌄';margin-left:10px}.filter-row{margin:6px 0 12px}.filter-row select{background:white}.rich-card{display:block;padding:17px;border-radius:14px;box-shadow:0 4px 20px #986b2704;position:relative}.grade-pair{display:flex;gap:6px;flex-wrap:wrap;margin:3px 0 5px}.badge.orange{background:#fff0e6;color:#d5641d}.badge{background:#f0f2f6;color:#717d8e}.badge.green{background:#edf4e9;color:#587b45}.client-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;margin-top:13px;font-size:10px;color:#87909d}.client-facts>span{display:flex;align-items:center;gap:4px;min-width:0}.client-facts b{font-weight:500;color:#394353;margin-left:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100px}.client-facts .icon{width:13px;height:13px;opacity:.7}.client-check{position:absolute;right:10px;top:10px;width:15px!important;height:15px;accent-color:#e87524;margin:0}.client-check~.merchant-content{padding-right:15px}.merchant-grid{gap:14px}.count-line{display:flex;align-items:center;justify-content:space-between;background:#fff0df;border-radius:9px;padding:8px 12px;margin-bottom:10px;color:#bd6325}.count-line .text-btn{padding:3px;font-size:11px}.bulk-bar{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#7b8189;margin-bottom:10px}.bulk-bar .text-btn{font-size:11px;padding:4px}.record-card{background:white;border:1px solid var(--line);padding:17px;border-radius:13px}.record-summary{font-size:12px;line-height:1.8;color:#56616f;overflow-wrap:anywhere}.record-card .fineprint{margin-top:8px}.record-card .history-head strong{font-size:13px}.record-card .icon{width:14px;height:14px;margin-right:4px}.panel .record-card{padding:13px 0;border:0;border-bottom:1px solid var(--line);border-radius:0}.workload{display:flex;gap:18px;align-items:center;background:#fff;border:1px solid var(--line);padding:18px;border-radius:14px;margin-bottom:23px;flex-wrap:wrap}.workload>div{flex:1;display:grid;gap:5px;min-width:90px}.workload strong{font-size:25px;color:#d86d23}.workload span{font-size:11px;color:#7e8591}.map-filter{display:flex;gap:14px;align-items:flex-start;position:relative;z-index:2}.map-filter>.search{flex:1}.map-filter>details{background:white;border:1px solid var(--line);border-radius:10px;padding:2px 12px;max-width:52%}.map-filter>details[open]{min-width:260px}.territory-canvas{height:520px;min-height:400px;margin-top:7px;background:transparent;border-radius:17px;overflow:hidden}.region-sheet{position:relative;background:#fff;border:1px solid #f0e6db;border-radius:24px 24px 15px 15px;padding:25px;margin-top:-12px;box-shadow:0 -8px 35px #ae72330a;z-index:1}.sheet-handle{position:absolute;top:9px;left:calc(50% - 21px);height:4px;width:42px;border-radius:4px;background:#d9dce0}.grade-summary{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.grade-summary>span{display:flex;align-items:center;gap:10px;border-radius:24px;background:#fff7ee;padding:5px 14px 5px 5px;font-size:12px}.grade-summary b{display:grid;place-items:center;width:29px;height:29px;background:#ec8536;color:white;border-radius:50%;font-size:16px}.grade-summary>span:nth-child(2) b{background:#eea35f}.grade-summary>span:nth-child(3) b{background:#efbb85}.grade-summary>span:nth-child(4) b{background:#efd5aa;color:#6c5b44}.accent{color:#e87524}.region-sheet .fineprint{border-bottom:1px solid var(--line);padding-bottom:13px}.region-sheet .merchant{box-shadow:none}.drawer{background:#fff9f0;overscroll-behavior:contain;padding-bottom:55px}.drawer-header{position:sticky;top:-27px;background:#fff9f0;z-index:2;padding:12px 0;border-bottom:1px solid var(--line)}.form-actions{position:sticky;bottom:-28px;background:#fff9f0;padding:13px 0;z-index:2;border-top:1px solid var(--line)}.notice{background:#fff2e1;border-color:#f3dcc0;color:#946638}.detail-backdrop{background:#2a201b55}.detail-section{border-color:#eee3d6}.login-intro{background:#fff0dd;color:#493626}.login-intro p{color:#8a755f}.login-intro .brand{letter-spacing:0}.login-intro h1{font-size:36px}.login-intro .brand-logo{width:130px;height:54px}.field label{color:#6d7481}input:focus,textarea:focus,select:focus{border-color:#e87524;box-shadow:0 0 0 3px #e8752415}.history{border-color:#efddc9}.history h3{margin:13px 0}.map-panel{background:#fff6e9}.profile{border-color:#eadfce}
@media(min-width:1400px){.main{padding-left:55px;padding-right:55px}.territory-canvas{height:580px}}@media(max-width:1100px){.sidebar{width:200px}.sidebar .brand-logo{width:98px}.sidebar .brand-label{border:0;padding-left:0}.main{margin-left:200px;padding:25px}.dashboard-grid{grid-template-columns:1fr}.merchant-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-stats{gap:8px}.daily-stats .stat{padding:13px;gap:8px}.client-facts{grid-template-columns:1fr}.map-filter{display:block}.map-filter>details{max-width:100%;margin-top:9px}.territory-canvas{height:470px}}
@media(max-width:700px){.sidebar{inset:auto 0 0;width:100%;height:calc(70px + env(safe-area-inset-bottom,0px));padding:0 8px env(safe-area-inset-bottom,0px);border-top:1px solid #eee6db;background:#fffefbea;backdrop-filter:blur(18px)}.sidebar .brand{display:none}.nav{grid-template-columns:repeat(5,1fr);margin:0;height:68px;gap:0}.nav button{gap:5px;font-size:11px;padding:10px 0 8px;position:relative}.nav button .icon{width:22px;height:22px}.nav button.active{box-shadow:none;background:transparent;color:#e87524}.nav button.active:after{content:'';height:3px;width:24px;background:#e87524;border-radius:3px;position:absolute;bottom:4px}.nav button.active .icon{background:none;box-shadow:none;border-radius:0}.main{margin:0;padding:16px 17px 95px}.topline{margin-bottom:22px;min-height:37px}.desktop-label{display:none}.mobile-brand{display:flex;gap:8px;align-items:center}.mobile-brand .brand-logo{width:100px;height:36px}.mobile-brand .brand-label{font-size:11px;padding-left:8px}.account-chip{font-size:11px;gap:5px;padding:0}.account-chip .avatar{width:29px;height:29px;font-size:13px}.page-head{margin-bottom:13px;gap:8px}.page-head h1{font-size:25px;margin-bottom:5px}.page-head .subtitle{font-size:11px}.page-head .btn{padding:8px 10px}.date-strip{gap:8px}.date-strip button{padding:10px 3px 7px;min-height:73px;border-radius:11px}.date-strip button strong{font-size:20px}.date-strip button span{font-size:11px}.daily-stats{grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0 24px}.daily-stats .stat{padding:12px 8px;gap:7px;border-radius:11px}.daily-stats .stat>.icon{width:23px;height:23px}.daily-stats .stat-label{font-size:10px}.daily-stats .stat-value{font-size:19px;margin:2px 0 0}.daily-stats .stat:last-child{grid-column:1/-1;display:flex;padding:8px 12px;background:#fff7eb;border:0;box-shadow:none}.daily-stats .stat:last-child>.icon{width:15px;height:15px}.daily-stats .stat:last-child>div{display:flex;gap:10px;align-items:center}.daily-stats .stat:last-child .stat-value{font-size:13px;margin:0}.daily-stats .stat:last-child .stat-label{font-size:11px}.dashboard-grid{gap:24px}.section-title{margin-bottom:13px}.section-title h2{font-size:19px}.itinerary{gap:13px;padding-left:27px}.route-card{padding:13px;border-radius:13px}.route-number{left:-32px;width:25px;height:25px;font-size:13px}.client-symbol{width:48px;height:54px}.client-symbol .icon{width:27px;height:27px}.client-top{gap:10px}.client-top h3{font-size:14px}.route-card .merchant-meta{font-size:10px}.card-actions{gap:7px;margin-top:11px}.card-actions .btn{font-size:11px;padding:9px 6px;gap:5px;border-radius:8px}.card-actions .icon{width:16px;height:16px}.route-card .card-actions{flex-wrap:wrap}.route-card .card-actions .text-btn{font-size:10px}.attachment-hint{font-size:11px;padding:13px}.merchant-grid{grid-template-columns:1fr;gap:11px}.rich-card{padding:13px;border-radius:13px}.rich-card .client-top{padding-right:9px}.rich-card .client-symbol{width:48px;height:55px}.grade-pair{gap:5px}.badge{font-size:9px;padding:3px 6px}.client-facts{grid-template-columns:1fr 1fr;font-size:10px;gap:7px 10px;margin-top:10px}.client-facts b{font-size:10px;max-width:77px}.client-facts .icon{width:12px;height:12px}.merchant-meta{font-size:10px}.filters{padding:0;margin-bottom:12px}.filter-row select{min-width:calc(50% - 8px)}.quick-chips{gap:7px;margin:11px 0 6px}.quick-chips button{font-size:11px;padding:9px 12px}.segmented{margin-bottom:12px}.segmented button{padding:8px;font-size:12px}.count-line{padding:7px 10px;font-size:11px}.bulk-bar{font-size:10px}.bulk-bar .text-btn{font-size:10px}.search input{min-height:42px;font-size:12px}.map-filter>details{margin-top:8px;padding:0 10px}.map-filter>details summary{font-size:11px;padding:9px 0}.territory-canvas{height:385px;min-height:330px;margin:0 -8px}.region-sheet{padding:25px 14px 16px;margin:0 -7px;border-radius:23px 23px 14px 14px}.region-sheet .section-title h2{font-size:20px}.region-sheet .section-title .text-btn{font-size:10px;padding:4px}.grade-summary{gap:7px;justify-content:space-between}.grade-summary>span{font-size:11px;gap:6px;padding:4px 10px 4px 4px}.grade-summary b{width:25px;height:25px;font-size:15px}.region-sheet>.fineprint{font-size:9px;line-height:1.7}.drawer{padding:17px 16px 100px}.drawer-header{top:-17px;padding:10px 0;margin-bottom:18px}.form-actions{bottom:-80px;padding:12px 0 20px;gap:8px}.form-actions .btn{font-size:12px;padding:11px 10px}.detail-name{font-size:21px}.form-grid{gap:13px}.field{font-size:11px}.detail-section{padding:16px}.action-row .btn{font-size:11px;padding:10px;flex:1 1 40%}.login-intro{padding:28px 25px}.login-intro h1{font-size:27px}.workload{padding:14px;gap:10px}.workload>div{min-width:80px}.workload strong{font-size:23px}.workload span{font-size:10px}.workload>.btn{width:100%}#toast{bottom:90px;max-width:calc(100% - 28px);font-size:12px}.record-card{padding:15px}.record-card .history-head strong{font-size:13px}.record-summary{font-size:11px}.page-head h1{white-space:normal}.form-actions{position:static}.drawer .form-actions{margin-top:20px}.drawer .btn{min-height:38px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}
/* Field readability: prioritize legible customer data and touch targets. */
.brand-wordmark{font-size:18px;font-weight:750;letter-spacing:.5px;color:#25303c;white-space:nowrap}.brand-wordmark small{display:block;font-size:11px;font-weight:500;letter-spacing:2px;color:#747b85;margin-top:3px}.sidebar .brand-logo{width:58px;height:54px}.sidebar .brand{gap:8px}.subset-chip{padding:10px 12px;margin-bottom:10px;border:1px solid #f0d3b4;border-radius:10px;background:#fff2e1;font-size:13px;color:#a45e25}
@media(max-width:700px){.mobile-brand{gap:7px}.mobile-brand .brand-logo{width:45px;height:43px}.mobile-brand .brand-wordmark{font-size:16px;letter-spacing:.2px}.mobile-brand .brand-wordmark small{font-size:11px;letter-spacing:1.5px;margin-top:2px}.topline{min-height:44px;margin-bottom:20px}.account-chip{font-size:12px;min-height:44px;max-width:130px}.account-chip .avatar{flex-shrink:0}.page-head h1{font-size:26px}.page-head .subtitle,.subtitle{font-size:13px;line-height:1.65}.page-head .btn{font-size:13px;min-height:44px;padding:10px}.rich-card{padding:16px}.client-top{gap:12px}.client-top h3,.merchant h3{font-size:16px;line-height:1.5}.client-symbol,.rich-card .client-symbol{width:49px;height:59px}.grade-pair{gap:6px;margin:5px 0 7px}.badge{font-size:11px;padding:4px 7px}.merchant-meta,.route-card .merchant-meta{font-size:13px;line-height:1.7}.merchant-meta .icon{width:14px;height:14px}.client-facts{grid-template-columns:1fr;gap:9px;margin-top:14px;font-size:12px}.client-facts>span{gap:7px}.client-facts .icon{width:15px;height:15px}.client-facts b{font-size:13px;max-width:65%;white-space:normal;text-align:right}.card-actions{gap:9px;margin-top:16px}.card-actions .btn,.form-actions .btn{font-size:14px;min-height:44px;padding:10px 8px;gap:6px}.card-actions .icon{width:18px;height:18px}.card-actions .text-btn,.route-card .card-actions .text-btn{font-size:12px;min-height:44px}.client-check{width:22px!important;height:22px;right:9px;top:9px;box-shadow:0 0 0 9px #fff;border-radius:3px}.rich-card .client-top{padding-right:16px}.btn.small{min-height:44px;font-size:13px}.search input{min-height:46px;font-size:14px}.search .icon{top:14px}.quick-chips{gap:8px}.quick-chips button{min-height:44px;font-size:13px;padding:9px 13px}.segmented button{min-height:44px;font-size:14px}.filters details summary,details summary,.map-filter>details summary{font-size:13px;min-height:44px;display:flex;align-items:center}.filter-row select,.filter-row input{font-size:13px;min-height:44px}.count-line{font-size:13px;padding:5px 10px}.count-line .text-btn,.bulk-bar .text-btn{font-size:12px;min-height:44px}.bulk-bar{font-size:12px;gap:8px}.text-btn{font-size:13px;min-height:44px}.section-title .text-btn{font-size:12px}.attachment-hint{font-size:13px;line-height:1.7}.field,.field label{font-size:13px}.field input,.field select,textarea{font-size:14px;min-height:44px}.fineprint{font-size:12px;line-height:1.8}.kv{font-size:13px;grid-template-columns:78px 1fr}.notice{font-size:13px}.record-summary{font-size:13px}.record-card .history-head strong{font-size:15px}.record-card .fineprint{font-size:12px}.history{font-size:13px}.daily-stats .stat-label{font-size:12px}.daily-stats .stat:last-child .stat-label{font-size:12px}.daily-stats .stat{min-height:66px;padding:12px 7px;gap:5px}.daily-stats .stat>.icon{width:21px;height:21px}.daily-stats .stat:last-child{min-height:44px}.date-strip button span{font-size:13px}.date-strip button i{font-size:11px}.date-strip button{min-height:80px}.region-sheet>.fineprint{font-size:12px}.region-sheet .section-title .text-btn{font-size:12px}.grade-summary>span{font-size:12px}.nav button{font-size:12px}.close{width:44px;height:44px}.action-row .btn{min-height:44px;font-size:13px}.workload span{font-size:12px}.workload>div{min-width:85px}.record-card .fineprint .icon{width:16px;height:16px}}
/* Explicit map sizing wins over the independently loaded map component sheet. */
.territory-map.territory-canvas{height:520px;min-height:400px}.territory-map.territory-canvas .tm-stage{min-height:180px;flex:1 1 0}.territory-map.territory-canvas .tm-head,.territory-map.territory-canvas .tm-foot{flex-shrink:0}
@media(min-width:1400px){.territory-map.territory-canvas{height:580px}}
@media(max-width:700px){.main:has(#territory-map) .topline{margin-bottom:13px}.main:has(#territory-map) .page-head{margin-bottom:10px}.main:has(#territory-map) .page-head h1{margin-bottom:3px}.map-filter{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}.map-filter>details{margin-top:0}.map-filter>details summary{min-height:40px;padding:6px 0}.territory-map.territory-canvas{height:360px;min-height:360px;margin-top:7px}.territory-map.territory-canvas .tm-stage{min-height:180px}.territory-map.territory-canvas .tm-head{padding:6px 8px}.territory-map.territory-canvas .tm-foot{padding:6px 8px}.territory-map.territory-canvas .tm-legend{gap:4px 8px;margin-bottom:4px}.territory-map.territory-canvas .tm-foot small{font-size:10px;line-height:1.4}.region-sheet{margin-top:0;padding-top:22px}.region-sheet>.section-title{margin-bottom:5px}.region-sheet>.section-title .text-btn{min-height:36px}.region-sheet>.subtitle{font-size:13px}}

.tm-attribution summary{cursor:pointer;font-size:10px;color:#8a7767}.tm-attribution[open] small{padding-top:5px}
@media(max-width:680px){.territory-map.territory-canvas{height:420px;min-height:420px}.tm-attribution[open]{position:relative;z-index:2;background:#fff8ee}}
.evidence-checklist{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 15px}.evidence-item{display:flex;gap:8px;align-items:center;padding:10px;border:1px solid #f0e2d4;border-radius:10px;background:#fffaf4}.evidence-item.done{border-color:#f2c49f;background:#fff3e5}.evidence-mark{width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:#f2e7dc;color:#a8a09a;font-size:12px;flex:none}.evidence-item.done .evidence-mark{background:#e87524;color:white}.evidence-item strong,.evidence-item small{display:block}.evidence-item strong{font-size:11px}.evidence-item small{font-size:10px;color:#8b9097;margin-top:2px}@media(max-width:700px){.evidence-checklist{gap:6px}.evidence-item{padding:8px 6px;gap:5px}.evidence-item strong{font-size:10px}.evidence-item small{font-size:9px}.evidence-mark{width:18px;height:18px}}
.ai-summary-input{min-height:180px;background:#fffdf9;border-color:#f0d8bd;line-height:1.8}.ai-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.ai-grade{display:flex;gap:10px;align-items:flex-start;margin-top:14px;padding:12px;border-radius:10px;background:#fff2e1;color:#87572e;font-size:11px;line-height:1.7}.ai-grade strong{white-space:nowrap;color:#d56b20}.ai-summary-read{padding:13px;border:1px solid #f0e2d4;border-radius:10px;background:#fffdf9;font-size:12px;line-height:1.9;color:#53606c;overflow-wrap:anywhere}.transcript-box{margin-top:12px;border:1px solid #e7ece2;border-radius:10px;background:#fafcf8;padding:10px 12px;font-size:12px}.transcript-box summary{cursor:pointer;color:#5d7563}.transcript-box pre{white-space:pre-wrap;word-break:break-word;color:#53606c;line-height:1.8;margin:10px 0 0;font:inherit}

/* 手机端优化增强 - 2024 */
/* 上传进度条 */
.progress-bar{height:8px;background:#f0e2d4;border-radius:4px;overflow:hidden;margin:10px 0;position:relative}.progress-fill{height:100%;background:linear-gradient(90deg,#e87524,#ef9a4f);transition:width 0.3s ease;border-radius:4px}.progress-text{font-size:11px;color:#7c8190;margin-top:4px;display:block}

/* 卡片悬停效果增强 */
.merchant,.rich-card,.route-card{transition:transform 0.2s ease,box-shadow 0.2s ease}
@media(hover:hover){
  .merchant:hover,.rich-card:hover,.route-card:hover{transform:translateY(-2px);box-shadow:0 6px 24px rgba(155,107,50,0.15);cursor:pointer}
  .btn:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(232,117,36,0.3)}
  .btn:not(:disabled):active{transform:translateY(0)}
}

/* 按钮加载状态 */
.btn.loading{position:relative;color:transparent!important;pointer-events:none}.btn.loading:after{content:'';position:absolute;width:16px;height:16px;top:50%;left:50%;margin:-8px 0 0 -8px;border:2px solid rgba(255,255,255,0.3);border-radius:50%;border-top-color:white;animation:spin 0.8s linear infinite}

/* 表单字段错误状态 */
input.error,textarea.error,select.error{border-color:#d9534f;background:#fff5f5}
.field-error{color:#d9534f;font-size:11px;margin-top:4px;display:block}

/* 底部导航触觉反馈 */
.nav button{-webkit-tap-highlight-color:rgba(232,117,36,0.1)}
.nav button:active{background:rgba(232,117,36,0.05)}

/* Toast通知增强 */
#toast{animation:slideUp 0.3s ease}
#toast.success{background:#4caf50}
#toast.error{background:#f44336}
#toast.warning{background:#ff9800}
@keyframes slideUp{from{transform:translate(-50%,20px);opacity:0}to{transform:translate(-50%,0);opacity:1}}

/* 筛选标签 */
.active-filters{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.filter-tag{display:inline-flex;align-items:center;gap:6px;background:#fff0df;border:1px solid #edb790;border-radius:16px;padding:6px 10px;font-size:11px;color:#d56b20}.filter-tag .remove-filter{background:none;border:0;color:#d56b20;font-size:14px;padding:0;margin-left:2px;cursor:pointer;line-height:1}.clear-all-filters{background:#fff;border:1px solid #e6dfd6;border-radius:16px;padding:6px 12px;font-size:11px;color:#6d7886;cursor:pointer}

/* 手机端下拉刷新提示 */
.pull-refresh{position:absolute;top:0;left:0;right:0;height:60px;display:flex;align-items:center;justify-content:center;color:#7c8190;font-size:12px;transform:translateY(-60px);transition:transform 0.2s}.pull-refresh.visible{transform:translateY(0)}

/* 空状态优化 */
.empty{padding:60px 20px}.empty .icon{width:48px;height:48px;margin:0 auto 16px;opacity:0.4;filter:grayscale(1)}.empty p{font-size:14px;color:#7c8190;line-height:1.8;margin:8px 0}

/* 加载骨架屏 */
.skeleton-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:16px;margin-bottom:12px}.skeleton-line{height:16px;background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:4px;margin-bottom:10px}.skeleton-line.short{width:60%}.skeleton-line.circle{width:48px;height:48px;border-radius:50%;margin-bottom:0}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* 搜索历史 */
.search-history{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid var(--line);border-top:0;border-radius:0 0 12px 12px;box-shadow:0 4px 12px rgba(0,0,0,0.1);z-index:10;max-height:200px;overflow:auto;display:none}.search-history.visible{display:block}.history-item{padding:12px 16px;font-size:13px;color:#394353;cursor:pointer;border-bottom:1px solid #f5f5f5}.history-item:last-child{border-bottom:0}.history-item:active{background:#f9f9f9}.history-item .icon{width:14px;height:14px;margin-right:8px;opacity:0.5}

/* 状态色彩系统增强 */
.status-draft{background:#fff3e6;color:#c67524;border-left:3px solid #e87524;padding-left:12px}.status-submitted{background:#e6f4ea;color:#2d6a3f;border-left:3px solid #4caf50;padding-left:12px}.status-pending{background:#fff8e1;color:#f57c00;border-left:3px solid #ff9800;padding-left:12px}.status-rejected{background:#ffebee;color:#c62828;border-left:3px solid #f44336;padding-left:12px}

/* 手机端手势指示器 */
.drawer-handle{position:absolute;top:12px;left:50%;transform:translateX(-50%);width:40px;height:4px;background:#d9dce0;border-radius:2px}

/* 图片懒加载占位 */
img[data-src]{background:#f5f5f5;min-height:100px}

/* 网络状态提示 */
.offline-banner{position:fixed;top:0;left:0;right:0;background:#ff9800;color:white;text-align:center;padding:10px;font-size:12px;z-index:100;transform:translateY(-100%);transition:transform 0.3s}.offline-banner.visible{transform:translateY(0)}

/* 手机端优化：防止误触 */
@media(max-width:700px){
  /* 增大触摸区域 */
  .text-btn,.close,button[data-action]{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}

  /* 抽屉滑动关闭 */
  .drawer{touch-action:pan-y}

  /* 输入框优化 */
  input[type="tel"],input[type="number"]{font-size:16px}
  input[type="date"],input[type="time"]{font-size:16px}

  /* 防止iOS缩放 */
  select,textarea,input{font-size:16px!important}

  /* 上传按钮优化 */
  input[type="file"]{padding:12px 0;min-height:44px}

  /* 底部安全区 */
  .form-actions{padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}

  /* 卡片间距优化 */
  .merchant-grid{gap:12px}
  .route-card{margin-bottom:12px}

  /* 搜索框优化 */
  .search input{font-size:16px;padding-left:44px}
  .search .icon{left:14px;top:14px;width:18px;height:18px}

  /* 批量操作浮动栏 */
  .bulk-actions{position:fixed;bottom:calc(70px + env(safe-area-inset-bottom,0px));left:16px;right:16px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;box-shadow:0 -4px 20px rgba(0,0,0,0.1);z-index:10;display:none}.bulk-actions.visible{display:flex;gap:8px;align-items:center}

  /* 优化滚动性能 */
  .main,.drawer{-webkit-overflow-scrolling:touch;overscroll-behavior:contain}

  /* 照片/录音上传优化 */
  .upload{padding:16px;border-radius:12px}.upload input[type="file"]{border:1px solid var(--line);border-radius:8px;padding:12px;background:#fff;cursor:pointer}.upload input[type="file"]::-webkit-file-upload-button{display:none}

  /* 拜访证据检查列表优化 */
  .evidence-checklist{gap:8px;grid-template-columns:1fr}.evidence-item{padding:12px;min-height:60px;gap:12px}

  /* 导航确认优化 */
  .nav-confirm{position:fixed;bottom:calc(80px + env(safe-area-inset-bottom,0px));left:16px;right:16px;background:#fff;border-radius:16px;padding:20px;box-shadow:0 8px 32px rgba(0,0,0,0.2);z-index:30}.nav-confirm h3{margin:0 0 12px;font-size:16px}.nav-confirm p{font-size:13px;color:#7c8190;margin:0 0 16px;line-height:1.6}.nav-confirm .actions{display:flex;gap:10px}.nav-confirm .actions button{flex:1;min-height:44px}
}

/* ========== 视觉增强样式 ========== */

/* 快捷操作菜单 */
.quick-action-menu{position:fixed;background:#fff;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,0.15);padding:8px;z-index:1000;min-width:180px}.quick-action-item{width:100%;display:flex;align-items:center;gap:12px;padding:12px 16px;border:0;background:transparent;color:#394353;font-size:14px;text-align:left;border-radius:8px;transition:background 0.2s;cursor:pointer}.quick-action-item:hover{background:#f8f9fa}.quick-action-item .icon{width:18px;height:18px;flex-shrink:0}

/* 浮动操作按钮 */
.floating-action-btn{position:fixed;right:20px;bottom:calc(90px + env(safe-area-inset-bottom,0px));z-index:100}.fab-main{width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#e87524,#ef9a4f);color:white;border:0;box-shadow:0 6px 20px rgba(232,117,36,0.4);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.3s}.fab-main:hover{transform:scale(1.1);box-shadow:0 8px 24px rgba(232,117,36,0.5)}.fab-main svg{width:24px;height:24px}.fab-menu{position:absolute;bottom:70px;right:0;display:flex;flex-direction:column;gap:12px}.fab-item{display:flex;align-items:center;gap:12px;padding:12px 20px;background:#fff;border:0;border-radius:28px;box-shadow:0 4px 12px rgba(0,0,0,0.15);color:#394353;font-size:13px;white-space:nowrap;cursor:pointer;transition:all 0.2s}.fab-item:hover{transform:translateX(-4px);box-shadow:0 6px 16px rgba(0,0,0,0.2)}.fab-item svg{width:20px;height:20px;flex-shrink:0}

/* 快速拜访对话框 */
.quick-visit-dialog{background:#fff;border-radius:16px;width:90%;max-width:500px;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,0.3)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line)}.dialog-header h3{margin:0;font-size:18px}.dialog-header .close{width:32px;height:32px;border-radius:50%;background:#f5f5f5;color:#666;font-size:20px;display:flex;align-items:center;justify-content:center;border:0;cursor:pointer}.dialog-header .close:hover{background:#e8e8e8}.dialog-body{padding:20px 24px;overflow:auto}.quick-visit-results{margin-top:16px;max-height:400px;overflow:auto}.quick-visit-item{display:flex;align-items:center;justify-content:space-between;padding:16px;border:1px solid var(--line);border-radius:12px;margin-bottom:12px;transition:all 0.2s}.quick-visit-item:hover{border-color:#e87524;box-shadow:0 4px 12px rgba(232,117,36,0.1)}.item-info{flex:1}.item-info strong{display:block;font-size:14px;color:#394353;margin-bottom:4px}.item-meta{font-size:12px;color:#7c8190}.empty-hint{text-align:center;color:#7c8190;padding:40px 20px;font-size:14px}

/* 面包屑导航 */
.breadcrumb{display:flex;align-items:center;gap:8px;padding:12px 0;margin-bottom:16px;font-size:13px;color:#7c8190}.breadcrumb-item{cursor:pointer;transition:color 0.2s}.breadcrumb-item:not(.active):hover{color:#e87524}.breadcrumb-item.active{color:#394353;font-weight:500}.breadcrumb-separator{opacity:0.5}

/* 客户详情内嵌拜访历史 */
.detail-visit-history{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.section-header h3{margin:0;font-size:16px;color:#394353}.visit-history-item{display:flex;align-items:center;gap:12px;padding:12px;background:#f8f9fa;border-radius:8px;margin-bottom:8px}.visit-date{flex:1;font-size:13px;color:#7c8190}.visit-status{padding:4px 12px;border-radius:12px;font-size:11px;font-weight:500}

/* 批量操作栏 */
.bulk-action-bar{position:fixed;bottom:calc(70px + env(safe-area-inset-bottom,0px));left:16px;right:16px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;box-shadow:0 -4px 20px rgba(0,0,0,0.1);z-index:20;display:none;align-items:center;justify-content:space-between;gap:16px}@media(min-width:700px){.bulk-action-bar{left:240px;bottom:20px;right:20px}}.bulk-action-bar.visible{display:flex}.bulk-info{font-size:14px;color:#394353}.bulk-info strong{color:#e87524;margin:0 4px}.bulk-actions{display:flex;gap:8px}

/* 玻璃态效果 */
.glass{background:rgba(255,255,255,0.8);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,0.3)}

/* 渐变背景 */
.gradient-bg{background:linear-gradient(135deg,#e87524 0%,#ef9a4f 100%)}

/* 卡片阴影层级 */
.card-shadow-sm{box-shadow:0 2px 8px rgba(0,0,0,0.08)}.card-shadow-md{box-shadow:0 4px 16px rgba(0,0,0,0.12)}.card-shadow-lg{box-shadow:0 8px 32px rgba(0,0,0,0.16)}

/* 微光效果 */
@keyframes shimmer{0%{background-position:-1000px 0}100%{background-position:1000px 0}}.shimmer{background:linear-gradient(90deg,transparent,rgba(255,255,255,0.8),transparent);background-size:1000px 100%;animation:shimmer 2s infinite}

/* 脉冲效果 */
@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.5}}.pulse{animation:pulse 2s cubic-bezier(0.4,0,0.6,1) infinite}

/* 旋转加载 */
@keyframes spin{to{transform:rotate(360deg)}}.spin{animation:spin 1s linear infinite}

/* 弹跳效果 */
@keyframes bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}.bounce{animation:bounce 1s ease-in-out infinite}

/* 淡入动画 */
@keyframes fadeIn{from{opacity:0}to{opacity:1}}.fade-in{animation:fadeIn 0.3s ease-in}

/* 滑入动画 */
@keyframes slideInRight{from{transform:translateX(100%);opacity:0}to{transform:translateX(0);opacity:1}}.slide-in-right{animation:slideInRight 0.4s ease-out}

@keyframes slideInUp{from{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}.slide-in-up{animation:slideInUp 0.4s ease-out}

/* 缩放进入 */
@keyframes scaleIn{from{transform:scale(0.9);opacity:0}to{transform:scale(1);opacity:1}}.scale-in{animation:scaleIn 0.3s ease-out}

/* 搜索框增强 */
.search{transition:all 0.3s}.search:focus-within{box-shadow:0 8px 24px rgba(232,117,36,0.2);transform:scale(1.02)}

/* 按钮点击反馈 */
.btn:active{transform:scale(0.98)}

/* 平滑滚动 */
html{scroll-behavior:smooth}

/* 自定义滚动条 */
::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#d9dce0;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#b8bcc3}

/* 焦点环增强 */
:focus-visible{outline:3px solid rgba(232,117,36,0.5);outline-offset:2px}

/* 禁用状态优化 */
button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:0.6}

/* 工具提示 */
[data-tooltip]{position:relative}[data-tooltip]:before{content:attr(data-tooltip);position:absolute;bottom:100%;left:50%;transform:translateX(-50%) translateY(-8px);padding:6px 12px;background:#394353;color:white;font-size:12px;border-radius:6px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity 0.2s,transform 0.2s}[data-tooltip]:hover:before{opacity:1;transform:translateX(-50%) translateY(-12px)}

/* 徽章动画 */
.badge.pulse{animation:badge-pulse 2s infinite}@keyframes badge-pulse{0%,100%{box-shadow:0 0 0 0 rgba(232,117,36,0.7)}50%{box-shadow:0 0 0 8px rgba(232,117,36,0)}}

/* 成功状态 */
.success-state{color:#4caf50}.success-state .icon{stroke:#4caf50}

/* 错误状态 */
.error-state{color:#f44336}.error-state .icon{stroke:#f44336}

/* 警告状态 */
.warning-state{color:#ff9800}.warning-state .icon{stroke:#ff9800}

/* 深色模式准备 */
@media(prefers-color-scheme:dark){
  /* 暂不实现，预留接口 */
}

/* 打印优化 */
@media print{
  .sidebar,.nav,.floating-action-btn,.bulk-action-bar,.fab-main{display:none!important}
  .main{margin-left:0!important}
  body{background:white}
}
