:root{--purple:#4b2968;--purple-light:#f1ebf6;--gold:#e4ad2e;--ink:#252130;--muted:#8a8793;--line:#eceaf0;--bg:#f7f7fa;--green:#36836b}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:96px}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.65 "Microsoft YaHei","PingFang SC",system-ui,sans-serif}button,input,select,textarea{font:inherit}button,a,input,textarea{outline-offset:3px}button{cursor:pointer}a{color:inherit;text-decoration:none}button{transition:background .15s,box-shadow .15s}button:focus-visible,a:focus-visible{outline:2px solid var(--purple)}input,textarea{min-width:0;max-width:100%;color:var(--ink)}input:focus,textarea:focus{outline:2px solid #c2a7d6;outline-offset:-1px}.sidebar{position:fixed;inset:0 auto 0 0;width:220px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:10}.brand{padding:25px 28px 32px;display:flex;flex-direction:column;align-items:flex-start}.logo-window{position:relative;width:138px;height:70px;overflow:hidden;border-radius:8px;background:#080303}.logo-window img{position:absolute;width:138px;height:138px;top:-34px;left:0}.brand strong{font-size:23px;letter-spacing:4px;margin:16px 0 3px}.brand>span{font-size:11px;color:var(--muted);letter-spacing:2px}.nav-label{padding:0 24px;color:#8f8999;font-size:11px;margin:0 0 13px}.nav-label span{font-size:8px;margin-left:7px;letter-spacing:.8px}nav{padding:0 14px}nav a{display:flex;align-items:center;gap:15px;padding:13px 16px;border-radius:7px;margin-bottom:7px;color:#706b7a;font-size:14px}nav a>span{font-size:12px;width:22px;color:#a19aa8}nav a.active{background:var(--purple-light);color:var(--purple);font-weight:600}nav a.active>span{color:var(--purple)}nav a:hover{background:#f7f4f9}.side-bottom{margin:auto 24px 23px;font-size:11px;color:#8b8692}.side-bottom p{margin:7px 0 0 15px;font-size:10px}.tiny-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green);margin-right:5px}.workspace{margin-left:220px}.topbar{position:sticky;top:0;height:76px;background:#ffffffee;backdrop-filter:blur(12px);z-index:8;border-bottom:1px solid var(--line);padding:0 34px;display:flex;align-items:center;justify-content:space-between}.breadcrumb{color:#a19aa8;margin-right:9px}.topbar b{font-size:13px;font-weight:500}.header-actions{display:flex;align-items:center;gap:12px}.save-status{font-size:11px;color:#8a8793;margin-right:7px}.button{padding:9px 16px;border-radius:6px;border:1px solid transparent;font-size:12px;white-space:nowrap}.button.primary{background:var(--purple);color:white;box-shadow:0 3px 7px #4b29681a}.button.primary:hover{background:#603584}.button.subtle{background:white;border-color:#dfdbe5;color:#62596d}.button.subtle:hover{background:#f5f1f9}.button span{margin-right:4px}main{max-width:1600px;margin:auto;padding:30px 34px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:16px}.eyebrow{font-size:10px;letter-spacing:2px;color:#9a8ba5;margin-bottom:7px}h1{font-size:25px;line-height:1.4;margin:0;font-weight:650;letter-spacing:.3px}.draft-label{vertical-align:middle;display:inline-block;font-size:10px;font-weight:400;color:#987221;background:#fbf2db;padding:3px 8px;border-radius:4px;margin-left:14px}.page-heading p{font-size:12px;color:#8a8490;margin:10px 0 0}.project-card{background:white;border:1px solid var(--line);border-radius:10px;padding:21px 24px;margin-bottom:27px}.section-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}h2{font-size:15px;font-weight:600;margin:0}.small-icon{color:#927ca5;margin-right:6px}.muted{font-size:11px;color:var(--muted);font-weight:400}.project-fields{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:17px 22px}.project-fields label{font-size:11px;color:#88818f;display:flex;flex-direction:column;gap:7px}.project-fields input{border:1px solid #e9e6ec;border-radius:5px;height:37px;padding:8px 11px;font-size:12px;background:#fdfcfe}.project-fields input::placeholder,textarea::placeholder{color:#b2acb9}.project-fields .wide{grid-column:span 2}.overview{margin-bottom:27px}.summary-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.summary-card{display:block;background:white;border:1px solid var(--line);border-radius:9px;padding:17px 18px;position:relative}.summary-card .summary-label{font-size:12px;color:#837a8c;display:flex;justify-content:space-between}.summary-label span{font-size:10px;color:#c4b7cf}.summary-card .amount{display:block;font-size:22px;letter-spacing:.3px;margin:8px 0 4px;font-variant-numeric:tabular-nums}.amount small{font-size:13px;margin-right:4px;font-weight:400}.summary-card .count{font-size:10px;color:#a8a1ae}.summary-card:hover{border-color:#ccb7dc}.grand-bar{display:flex;align-items:center;background:#35233f;color:#fff;border-radius:9px;margin-top:14px;padding:20px 25px;gap:28px;position:relative;overflow:hidden}.grand-bar:after{content:"";position:absolute;right:210px;top:-55px;width:175px;height:175px;border:1px solid #ffffff08;transform:rotate(35deg);pointer-events:none}.grand-bar>div:first-child>span{font-size:13px;font-weight:500}.grand-bar small{display:block;color:#b7a7c1;font-size:10px;margin-top:4px}.grand-number{display:flex;gap:9px;align-items:baseline;margin-left:auto}.grand-number>span{font-size:18px;color:#dcb756}.grand-number strong{font-size:32px;font-weight:600;line-height:1.3;font-variant-numeric:tabular-nums}.grand-meta{padding-left:27px;border-left:1px solid #ffffff24;min-width:130px}.grand-meta b{display:block;font-size:12px;font-weight:400}.grand-meta>span{font-size:10px;color:#c8b9d3}.workspace-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.workspace-tools>div{display:flex;gap:13px;align-items:center}.workspace-tools b{font-size:14px}.section-dot{width:3px;height:15px;background:var(--purple);border-radius:3px}.text-button{background:none;border:0;font-size:11px;color:#725284;padding:4px}.text-button:hover{color:#321843;text-decoration:underline}.fee-section{background:white;border:1px solid var(--line);border-radius:10px;margin-bottom:22px;overflow:hidden;scroll-margin-top:95px}.fee-title{padding:20px 23px;display:flex;align-items:center;justify-content:space-between;gap:12px}.fee-title-left{display:flex;align-items:center;gap:12px}.number-tag{width:30px;height:30px;background:var(--purple-light);color:#806391;border-radius:6px;font-size:11px;display:grid;place-items:center}.fee-title h2{font-size:15px;display:inline;margin-right:10px}.fee-title .english{font-size:9px;letter-spacing:1px;color:#b1a6b9}.fee-title .subtotal{font-size:12px;color:#9d93a6}.fee-title .subtotal b{color:#5c3d70;margin-left:8px;font-size:16px;font-variant-numeric:tabular-nums}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;table-layout:fixed}th{background:#f9f8fb;color:#9b91a5;font-size:10px;font-weight:500;text-align:left;padding:11px 8px;border-top:1px solid #f0edf3;border-bottom:1px solid #f0edf3}td{padding:10px 6px;border-bottom:1px solid #f1eef4;font-size:12px}th:first-child,td:first-child{padding-left:22px}th:last-child,td:last-child{padding-right:18px}.row-input{border:1px solid transparent;background:transparent;border-radius:4px;padding:8px 7px;width:100%;font-size:12px;line-height:1.5;height:35px}.row-input:hover{background:#fcfafe;border-color:#e9e0ef}.row-input:focus{background:white}.row-input::placeholder{color:#c2b9ca;font-size:11px}.row-input[type=number]{text-align:right;appearance:textfield;-moz-appearance:textfield}.row-input::-webkit-inner-spin-button{display:none}.row-input.invalid{border-color:#c85252;background:#fff5f5}.number-cell{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;color:#5e4b6e}.pending{font-size:10px;color:#ba9c60}.row-actions{display:flex;gap:2px;justify-content:flex-end}.icon-button{border:0;background:transparent;color:#9a8da6;font-size:18px;width:28px;height:28px;border-radius:5px;padding:0;line-height:1}.icon-button:hover{background:#f0eaf5;color:var(--purple)}.delete-row:hover{background:#fff0ef;color:#ac514d}.fee-footer{display:flex;justify-content:space-between;align-items:center;padding:12px 22px;gap:12px}.fee-footer .text-button{font-size:12px}.empty-state{text-align:center;color:#aaa1b1;padding:23px;font-size:12px}.notes-card{margin-top:30px;margin-bottom:15px}.notes-card textarea{width:100%;border:1px solid #e8e2ed;background:#fdfcfe;border-radius:5px;padding:12px;font-size:12px;resize:vertical;line-height:1.9}.help{font-size:11px;color:#a39aa9;line-height:1.7;margin:9px 0 0}.page-footer{display:flex;justify-content:space-between;color:#b5acbd;font-size:10px;padding:8px 0 24px}.toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);background:#35233f;color:white;border-radius:8px;padding:12px 22px;box-shadow:0 6px 28px #30233933;z-index:40;opacity:0;pointer-events:none;transition:all .2s;font-size:13px;max-width:90vw}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid var(--line);border-radius:13px;padding:28px;max-width:600px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 20px 90px #21102c30}dialog::backdrop{background:#25123266;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;gap:15px}.dialog-heading h2{font-size:19px}.dialog-heading p{font-size:12px;color:var(--muted)}fieldset{border:1px solid #e9e3ee;border-radius:8px;margin:18px 0;padding:15px}legend{font-size:12px;color:#867292;padding:0 7px}.checks{display:flex;flex-wrap:wrap;gap:15px 22px}.checks label{display:flex;align-items:center;gap:7px;font-size:13px}.checks input{accent-color:var(--purple)}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}#previewDialog{width:1100px;max-width:calc(100% - 32px);max-height:94vh;padding:0;background:#efedf2}.preview-toolbar{position:sticky;top:0;background:#fff;padding:16px 22px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #ddd7e4;z-index:1}.preview-toolbar>div{display:flex;gap:9px;align-items:center}.preview-toolbar .muted{margin-left:5px}#previewContent{padding:26px}#printContent{display:none}.quote-paper{background:#fff;padding:38px;color:#292332;font:13px/1.75 "Microsoft YaHei",sans-serif}.quote-brand{display:flex;align-items:center;gap:16px;border-bottom:2px solid #4b2968;padding-bottom:20px}.quote-brand img{width:88px;height:88px;object-fit:contain;border-radius:7px}.quote-brand strong{font-size:27px;letter-spacing:4px}.quote-brand small{display:block;font-size:10px;letter-spacing:2px;color:#9984a7}.quote-paper h1{font-size:24px;margin:24px 0 8px}.quote-meta{display:grid;grid-template-columns:1fr 1fr;gap:6px 20px;color:#6c6176;font-size:12px;margin:20px 0;overflow-wrap:anywhere}.quote-meta .full{grid-column:span 2}.quote-paper h2{font-size:15px;margin:25px 0 10px}.quote-paper table{table-layout:auto;font-size:11px}.quote-paper th{font-size:11px;background:#f2edf6;color:#614978}.quote-paper th,.quote-paper td{padding:9px 8px;overflow-wrap:anywhere}.quote-paper .right{text-align:right;white-space:nowrap}.quote-subtotal{text-align:right;font-size:12px;padding:9px 0;color:#685675}.quote-total{background:#4b2968;color:white;padding:17px 20px;display:flex;justify-content:space-between;align-items:center;margin:22px 0}.quote-total strong{font-size:25px}.quote-notes{white-space:pre-wrap;font-size:12px;overflow-wrap:anywhere}.quote-warning{background:#fff7e3;color:#9c772e;padding:10px 15px;font-size:12px}.quote-sign{margin-top:35px;padding-top:20px;border-top:1px solid #eee6f3;display:flex;justify-content:space-between;font-size:12px;color:#8b7c96}.quote-foot{font-size:10px;color:#ab9bb6;text-align:center;margin-top:25px}
@media(min-width:1550px){main{padding:35px 48px}.topbar{padding:0 48px}.project-card{padding:25px 27px}.summary-card{padding:20px 23px}}
@media(max-width:1150px){.sidebar{width:180px}.workspace{margin-left:180px}.brand{padding-left:22px}.topbar{padding:0 22px}main{padding:25px 22px}.summary-card{padding:14px 12px}.summary-card .amount{font-size:19px}.fee-section table{min-width:790px}.preview-toolbar .muted{display:none}.workspace-tools{align-items:flex-start;flex-direction:column}.save-status{display:none}h1{font-size:22px}.project-fields{gap:14px}.grand-bar{gap:18px}.grand-meta{padding-left:18px}.grand-number strong{font-size:28px}}
@media(max-width:760px){.sidebar{display:none}.workspace{margin:0}.topbar{padding:0 16px;height:65px}.topbar .breadcrumb{display:none}.header-actions{gap:7px}.button{padding:8px 11px;font-size:11px}main{padding:22px 15px}.page-heading{align-items:flex-start}.page-heading .button{font-size:10px}.eyebrow{font-size:8px}h1{font-size:21px;max-width:280px}.draft-label{margin:7px 0 0;display:table}.page-heading p{font-size:11px}.project-card{padding:17px}.section-top>.muted{display:none}.project-fields{grid-template-columns:1fr 1fr;gap:14px}.project-fields .wide{grid-column:span 2}.summary-grid{grid-template-columns:repeat(2,1fr);gap:9px}.summary-card:last-child{grid-column:span 2}.summary-card .amount{margin:5px 0;font-size:22px}.summary-card:last-child{display:flex;align-items:center;justify-content:space-between;gap:15px}.summary-card:last-child .summary-label{min-width:68px;gap:10px}.grand-bar{padding:17px;flex-wrap:wrap;gap:12px}.grand-number strong{font-size:27px}.grand-meta{width:100%;border-left:0;border-top:1px solid #ffffff24;padding:9px 0 0;display:flex;justify-content:space-between}.workspace-tools>div{gap:10px}.workspace-tools .muted{font-size:9px}.fee-title{padding:17px}.fee-title .english{display:none}.fee-title .subtotal b{font-size:14px}.fee-footer{padding:12px 17px}.fee-footer .help{font-size:9px;margin:0}.page-footer{gap:10px;flex-direction:column}.preview-toolbar{align-items:flex-start;flex-direction:column;padding:12px}.preview-toolbar b{font-size:13px}.preview-toolbar>div{flex-wrap:wrap}#previewContent{padding:8px}.quote-paper{padding:18px}.quote-paper table{font-size:10px}.quote-paper th,.quote-paper td{padding:7px 3px;font-size:10px}.quote-meta{grid-template-columns:1fr}.quote-meta .full{grid-column:span 1}.quote-total{gap:10px}.quote-total strong{font-size:22px}}
@media print{@page{size:A4;margin:12mm}html,body{background:white;margin:0}.no-print,.workspace,.sidebar,dialog,.toast{display:none!important}#printContent{display:block!important}.quote-paper{padding:0;font-size:11px}.quote-paper h2{break-after:avoid}.quote-paper tr{break-inside:avoid}.quote-paper thead{display:table-header-group}.quote-paper th,.quote-paper td{font-size:10px;padding:7px 5px}.quote-total,.quote-brand,.quote-sign{break-inside:avoid}.quote-total,.quote-paper th{print-color-adjust:exact;-webkit-print-color-adjust:exact}.quote-brand img{width:70px;height:70px}.quote-notes{font-size:10px}body{color:#000}}

#installation table{min-width:1250px}.detail-item{border-top:1px solid #eceaf0;padding:18px 0}.detail-item textarea{width:100%;margin-top:12px;padding:12px;border:1px solid #ddd;line-height:1.8}.detail-item label{display:block;color:#82728f;font-size:12px}.detail-item input:not([type=file]){padding:8px;border:1px solid #ddd;border-radius:5px;display:block;max-width:100%}.detail-image{max-width:240px;max-height:180px;object-fit:contain;display:block;margin:12px 0}.quote-paper td .detail-image{max-width:100px;max-height:90px}input[readonly]{background:#f4f1f7;color:#725284}@media print{.detail-image{break-inside:avoid}}
