:root{--brand:#12345a;--nav:#102a46;--accent:#2563eb;--canvas:#f6f8fb;--text:#172b4d;--muted:#64748b;--line:#e5eaf0;--surface:#fff}
body:has(#work:not([hidden])){background:var(--canvas);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;font-size:14px}
body:has(#work:not([hidden])) > header{height:68px;padding:0 32px;background:#fff;border-bottom:1px solid var(--line);color:var(--text);position:sticky;top:0;z-index:20;justify-content:flex-start;gap:20px}
body:has(#work:not([hidden])) .portal-heading{display:flex;align-items:center;gap:20px;white-space:nowrap}.portal-heading small{font-size:17px;letter-spacing:.08em;font-weight:800;color:var(--brand)}.portal-heading h1{font-size:15px;font-weight:600;color:var(--text);border-left:1px solid var(--line);padding-left:20px;margin:0}.portal-company{margin-left:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-toggle{display:none;padding:8px 10px;border:0;font-size:19px;line-height:1;background:transparent}.portal-account{position:relative;margin-left:auto}.portal-account summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;color:var(--text)}.portal-account summary::-webkit-details-marker{display:none}.account-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e8effa;color:var(--brand);font-weight:700}.portal-account button{position:absolute;right:0;top:42px;min-width:120px;background:#fff;color:var(--text);border:1px solid var(--line);box-shadow:0 8px 20px #18345614;z-index:25}.portal-account button[hidden]{display:none}
body:has(#work:not([hidden])) > .language-bar{position:fixed;right:130px;top:13px;z-index:21;padding:0;background:transparent;font-size:12px}body:has(#work:not([hidden])) > .language-bar #languagePreview{display:none}body:has(#work:not([hidden])) > .language-bar select{min-width:92px;padding:6px}
body:has(#work:not([hidden])) > main{max-width:none;padding:0;margin:0}body:has(#work:not([hidden])) #work:not([hidden]){display:grid;grid-template-columns:224px minmax(0,1fr);gap:0;align-items:start}
#work > #customerName{display:none}#work > #customerDemo{grid-column:1/-1;margin:16px 32px 0}.customer-tabs{grid-column:1;grid-row:1 / span 2;position:sticky;top:68px;min-height:calc(100vh - 68px);display:flex;flex-direction:column;flex-wrap:nowrap;gap:4px;margin:0;padding:24px 12px;background:var(--nav);border-radius:0}.customer-tabs button{display:flex;align-items:center;gap:12px;text-align:left;border:0;border-radius:8px;width:100%;min-height:44px;background:transparent;color:#c5d3e1;padding:10px 14px;font-size:14px}.customer-tabs button:hover{background:#ffffff12;color:white}.customer-tabs button.selected{background:#244765;color:#fff;font-weight:600}.customer-tabs button svg{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#work > [role=tabpanel]{grid-column:2;min-width:0;width:100%;padding:32px clamp(24px,3.1vw,48px) 56px}#work .card{border:1px solid var(--line);border-radius:10px;box-shadow:none}#work h2{font-size:21px;font-weight:600}#work p{color:var(--muted)}
.dashboard-welcome{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:24px}.dashboard-kicker{font-size:11px!important;font-weight:700;letter-spacing:.1em;color:#7f90a5!important;margin:0 0 9px!important}.dashboard-welcome h2{font-size:24px!important;margin:0 0 8px}.dashboard-welcome p{margin:0}.dashboard-primary{white-space:nowrap;min-height:42px}.dashboard-primary span{margin-left:12px}.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.dashboard-metric{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px;min-height:140px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:10px;color:var(--muted);transition:border-color .15s}.dashboard-metric:hover{border-color:#9bb4d3}.dashboard-metric strong{font-size:30px;line-height:1;color:var(--text)}.dashboard-metric small{font-size:12px;color:#8492a4}.dashboard-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);gap:20px;align-items:start}.dashboard-side{display:grid;gap:20px}.dashboard-panel{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.dashboard-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:22px 24px;border-bottom:1px solid #edf1f5}.dashboard-panel h3{font-size:16px;margin:0;font-weight:600}.dashboard-panel-head p{font-size:12px;margin:7px 0 0}.dashboard-link{border:0;padding:3px 0;color:#2563eb;background:none;white-space:nowrap;font-size:13px}.dashboard-table-wrap{overflow-x:auto}.dashboard-table{width:100%;border-collapse:collapse;min-width:620px;text-align:left;font-size:13px}.dashboard-table th{background:#f9fafc;color:#78899d;font-weight:500}.dashboard-table td,.dashboard-table th{padding:14px 18px;border-bottom:1px solid #edf1f5}.portal-status{background:#eef3f9;color:#35577c;border-radius:5px;padding:4px 8px;white-space:nowrap}.dashboard-empty{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px}.empty-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#eef3fa;color:#6584a6;font-size:23px;margin-bottom:16px}.dashboard-empty strong{font-size:15px}.dashboard-empty p{font-size:13px;margin:8px 0 18px}.dashboard-empty button{border-color:#bdd0eb;color:#245aa7;font-size:13px}.portal-shortcuts{padding:8px 16px}.portal-shortcut{width:100%;display:flex;gap:12px;align-items:center;text-align:left;border:0;border-radius:8px;background:transparent;padding:11px 8px}.portal-shortcut:hover{background:#f5f8fc}.shortcut-icon{display:grid;place-items:center;background:#edf3fb;color:#315d95;width:36px;height:36px;border-radius:8px;font-size:19px}.portal-shortcut strong,.portal-shortcut small{display:block}.portal-shortcut strong{font-size:13px}.portal-shortcut small{font-size:12px;margin-top:4px;color:#8a98a8}.shortcut-arrow{margin-left:auto;color:#9aa9bb;font-size:20px}.reminder-row{display:flex;gap:10px;align-items:flex-start;padding:15px 24px;border-bottom:1px solid #f1f4f7}.reminder-dot{width:7px;height:7px;border-radius:50%;background:#7b9cbd;margin-top:5px;flex:none}.reminder-row strong,.reminder-row small{display:block;font-size:13px}.reminder-row small{font-size:12px;color:var(--muted);margin-top:5px}.reminder-empty{padding:24px;color:var(--muted);font-size:13px}
.order-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);padding:16px;border-radius:10px;margin:20px 0}.order-filter label{margin:0;flex:1;min-width:140px;font-size:12px;color:var(--muted)}.order-filter input,.order-filter select{font-size:13px;min-height:40px;padding:8px}.order-filter button{height:40px;font-size:13px}.order-list{display:grid;gap:12px}.order-list .card{margin:0}.order-empty{text-align:center;background:#fff;border:1px solid var(--line);border-radius:10px;padding:48px 20px}.orders-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 0;color:var(--muted);font-size:12px}.orders-pagination button{font-size:12px;margin-left:8px}
@media(min-width:768px){body:has(#work:not([hidden])) .nav-toggle{display:block}body.portal-nav-collapsed #work:not([hidden]){grid-template-columns:68px minmax(0,1fr)}body.portal-nav-collapsed .customer-tabs button{font-size:0;justify-content:center;padding:10px}body.portal-nav-collapsed .customer-tabs button svg{width:20px;height:20px}}
@media(max-width:1100px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-layout{grid-template-columns:1fr}}
@media(max-width:767px){body:has(#work:not([hidden])) > header{height:60px;padding:0 16px;gap:8px}.nav-toggle{display:block}.portal-heading{gap:8px!important}.portal-heading small{font-size:15px}.portal-heading h1{font-size:13px;padding-left:9px}.portal-company{display:none}.portal-account summary>span:last-child{display:none}body:has(#work:not([hidden])) > .language-bar{right:62px;top:14px}body:has(#work:not([hidden])) > .language-bar label{display:none}body:has(#work:not([hidden])) > .language-bar select{min-width:68px;padding:5px;font-size:12px}body:has(#work:not([hidden])) #work:not([hidden]){display:block}.customer-tabs{position:fixed;top:60px;bottom:0;left:0;width:224px;z-index:19;min-height:0;overflow-y:auto;transform:translateX(-100%);transition:transform .2s}.portal-nav-open .customer-tabs{transform:translateX(0);box-shadow:10px 0 35px #102a4633}#work > [role=tabpanel]{padding:24px 16px 40px}.dashboard-welcome{align-items:start;flex-direction:column}.dashboard-metrics{gap:10px}.dashboard-metric{min-height:125px;padding:15px}.dashboard-metric strong{font-size:26px}.dashboard-layout{gap:14px}.dashboard-side{gap:14px}.dashboard-panel-head{padding:18px}.order-filter{display:grid;grid-template-columns:1fr 1fr}.order-filter label{min-width:0}.orders-pagination{align-items:flex-start;flex-direction:column}}
@media(max-width:370px){.portal-heading h1{display:none}.dashboard-metrics{grid-template-columns:1fr}.order-filter{grid-template-columns:1fr}}
button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8bb3e6;outline-offset:2px}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
#customerPanel-orders #orders{display:block}
body:has(#work:not([hidden])) > header .nav-toggle{color:var(--brand)}
body:has(#work:not([hidden])) > header .nav-toggle:hover{background:#edf3f9}
.order-details{border-top:1px solid var(--line);padding-top:12px;color:var(--muted)}.order-details summary{cursor:pointer;color:#2563eb;font-size:13px}.order-details p{margin-bottom:0;overflow-wrap:anywhere}
.portal-error,.portal-loading{background:#fff;border:1px solid var(--line);border-radius:10px;padding:24px;color:var(--text)}.portal-error p{margin:8px 0 16px}
.request-empty{padding:40px 24px;background:#fff;border:1px solid var(--line);border-radius:10px;text-align:center}.request-empty p{font-size:13px;margin:10px 0 18px}.request-empty button{color:#2563eb;border-color:#bdd0eb;font-size:13px}
#work [role=tabpanel]>h2{font-size:22px;margin-bottom:8px}#work [role=tabpanel]>p{font-size:14px;line-height:1.6}#work input,#work select,#work textarea{border:1px solid #cbd6e2;border-radius:7px;background:#fff;color:var(--text);min-height:42px}#work input:focus,#work select:focus,#work textarea:focus{border-color:#739cd5}#work .analysis-title>strong{background:#edf3fa;color:#315d95;border-radius:6px;font-size:13px}#work .analysis-history-block,#work .analysis-chart,#work .deadline-card{border-radius:8px}#work .analysis-vehicle{padding-top:24px;margin-top:24px}#work .analysis-title h2{font-size:20px}#work .analysis-empty{padding:36px 8px}.dashboard-table td:nth-child(4){max-width:280px;overflow-wrap:anywhere}
.vehicle-filter{display:flex;align-items:end;gap:10px;padding:16px 0 4px;flex-wrap:wrap}.vehicle-filter label{font-size:12px;color:var(--muted);margin:0;min-width:200px;flex:1}.vehicle-filter input{font-size:13px;padding:8px}.vehicle-filter span{color:var(--muted);font-size:12px;align-self:center}.vehicle-filter button{font-size:12px;padding:9px 12px}

/* 企业用车订单：桌面横向排列，移动端保留同样的信息顺序。 */
.customer-order{background:#fff;border:1px solid #e5eaf0;border-radius:10px;overflow:hidden}
.customer-order-row{display:grid;grid-template-columns:minmax(118px,1.05fr) minmax(140px,1.2fr) minmax(150px,1.35fr) minmax(110px,1fr) minmax(105px,.8fr) auto;align-items:start;gap:18px;padding:20px 22px;cursor:pointer;list-style:none}
.customer-order-row::-webkit-details-marker{display:none}.customer-order-row:hover{background:#fafbfd}.order-cell{min-width:0;display:flex;flex-direction:column;gap:6px;font-size:13px;color:#172b4d;overflow-wrap:anywhere}.order-cell strong{font-size:14px;font-weight:600;line-height:1.45}.order-cell small{font-size:12px;line-height:1.45;color:#64748b}.order-identity strong{font-size:15px;color:#12345a}.order-label{font-size:12px;color:#7a899d}.order-status{align-self:flex-start;border-radius:4px;padding:4px 8px;background:#eef3f9;color:#315577;font-size:12px;line-height:1.3}.order-status.active{background:#e8f5ef;color:#237052}.order-status.cancelled{background:#fceeed;color:#a63d3d}.order-status.done{background:#f0f2f5;color:#626f7d}.order-status.pending{background:#fff4e5;color:#9a5d0e}.order-expand{display:flex;align-items:center;gap:6px;padding-top:22px;white-space:nowrap;font-size:13px;color:#2563eb}.order-expand-close{display:none}.customer-order[open] .order-expand-open{display:none}.customer-order[open] .order-expand-close{display:inline}.customer-order[open] .order-expand>span:last-child{transform:rotate(180deg)}
.customer-order-detail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:18px 22px;background:#f9fbfd;border-top:1px solid #e9eef4}.customer-order-detail>div{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:13px;overflow-wrap:anywhere}.customer-order-detail>div>span,.customer-order-detail small{color:#64748b;font-size:12px}.customer-order-detail strong{font-size:13px;font-weight:600;color:#172b4d}.customer-order-detail a{color:#2563eb}.customer-order-detail .order-change-notice{grid-column:1/-1;margin:0;color:#a65d19!important;font-size:13px}
@media(max-width:1200px) and (min-width:768px){.customer-order-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.order-expand{padding-top:0;align-self:end;justify-self:end}}
@media(max-width:767px){.customer-order-row{grid-template-columns:1fr 1fr;gap:16px 18px;padding:18px}.order-identity{grid-column:1/-1;flex-direction:row;align-items:baseline;justify-content:space-between;gap:10px}.order-route{grid-column:1/-1}.order-expand{padding:0;align-self:end;justify-self:end}.customer-order-detail{grid-template-columns:1fr 1fr;padding:16px 18px;gap:16px}.customer-order-detail .order-change-notice{grid-column:1/-1}}
