/* 基础与窗口外壳 */
:root{--workspace:#f2f6fc;--blue:#006de3;--selected:#cee8f9;--border:#d9dde5;--ink:#111;--sidebar-width:270px}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%}body{font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;font-size:14px;color:var(--ink);background:white}.symbols{position:absolute;width:0;height:0;overflow:hidden}button{font:inherit;cursor:default}svg{fill:none;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round;stroke-linecap:round}.desktop-window{min-width:1180px;min-height:740px;height:100vh;border:1px solid #939ba6;overflow:hidden}.window-title{height:29px;display:flex;align-items:center;gap:5px;padding-left:7px;color:#87949e;font-family:SimSun,"Songti SC",serif;font-size:12px}.app-logo{font-size:21px;color:#42b5d4;line-height:1}.window-controls{margin-left:auto;display:flex;align-self:stretch}.window-controls span{width:46px;text-align:center;line-height:27px;color:#777;font:16px/27px Arial}.menubar{height:21px;display:flex;gap:13px;padding-left:6px;align-items:center;font:12px SimSun,"Songti SC",serif}.workspace{height:calc(100% - 50px);background:var(--workspace);padding:15px 15px 14px;display:flex;flex-direction:column;gap:15px}
/* 项目摘要 */
.project-header{height:91px;flex:none;background:#fff;display:flex;align-items:center;padding:8px 25px;gap:20px}.project-mark{width:62px;height:62px;border-radius:50%;background:#f5f5ff;color:#5865ff;flex:none;display:flex;flex-direction:column;justify-content:center;align-items:center;font:40px/21px Arial;padding-bottom:4px}.project-details{align-self:center;white-space:nowrap}.project-heading{display:flex;align-items:center;gap:16px}h1{margin:0 8px 0 0;font-size:24px;line-height:32px;font-weight:700}.tag{display:inline-flex;align-items:center;justify-content:center;min-width:116px;height:26px;padding:0 16px;color:#303cff;border:1px solid #303cff;border-radius:4px;font:18px SimSun,"Songti SC",serif}.tag.single{min-width:152px}.project-details p{margin:2px 0 0;color:#697486;font-size:18px;line-height:25px}.package-actions{margin-left:auto;display:flex;align-items:center;gap:8px;height:76px;position:relative}.reopen{height:76px;width:286px;border:0;border-radius:4px;background:#2639ed;color:#fff;font-size:24px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap}.reopen svg{width:26px;height:26px;stroke-width:1.5}
/* 左侧工作导航 */
.working-area{display:flex;gap:18px;flex:1;min-height:0}.sidebar{width:var(--sidebar-width);flex:none;border:1px solid var(--border);background:white;display:flex;flex-direction:column;border-radius:2px;overflow:hidden}.sidebar-title{height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;border-bottom:1px solid #aab0b8}.side-navigation{flex:1}.nav-group,.nav-item{display:flex;align-items:center;padding:0 20px;gap:7px;color:#006edf;font-size:14px;height:56px}.nav-group.active{height:57px;background:var(--blue);color:white}.nav-group svg,.nav-item svg{width:15px;height:17px;flex:none;stroke-width:1.6}.chevron{margin-left:auto;width:6px;height:6px;border-right:1px solid #b9c1c9;border-bottom:1px solid #b9c1c9;transform:rotate(45deg);margin-right:1px;margin-top:-4px}.chevron.up{transform:rotate(225deg);border-color:#6aa9ed;margin-top:5px}.nav-child{height:60px;padding-left:61px;display:flex;align-items:center;font-size:14px}.nav-child.selected{height:50px;margin-top:10px;background:var(--selected);color:#154b7a}.nav-child.attachment{height:70px}.copyright{height:62px;flex:none;display:flex;align-items:center;justify-content:center;background:#fcf6eb;font:12px SimSun,"Songti SC",serif;color:#657282;white-space:nowrap}
/* 内容标题与文档工具栏 */
.content{flex:1;min-width:0;display:flex;flex-direction:column}.content-heading{height:43px;flex:none;display:flex;align-items:flex-start;justify-content:space-between;padding-top:5px;font:16px/32px SimSun,"Songti SC",serif}.content-heading strong{font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-weight:600}.pdf-download{height:33px;padding:0 15px;border:1px solid #9dcaff;color:#4090ff;border-radius:4px;background:#f5f9ff;font-size:14px;line-height:31px}.pdf-viewer{flex:1;min-height:0;display:flex;flex-direction:column}.pdf-toolbar{height:32px;flex:none;background:#f9f9fa;border-bottom:1px solid #b8b8ba;display:flex;align-items:center;justify-content:space-between;color:#4c4c4c;font:12px Arial,sans-serif;position:relative}.toolbar-left,.toolbar-center,.toolbar-right{display:flex;height:100%;align-items:center;gap:10px}.toolbar-left{gap:9px}.tool{width:25px;display:flex;align-items:center;justify-content:center}.tool svg{width:17px;height:17px}.tool.search{margin-left:24px}.angle{font-size:21px;width:14px;text-align:center;line-height:20px}.muted{color:#b5b5b5}.divider{height:18px;width:1px;background:#b6b6b6}.page-number{height:28px;width:56px;border:1px solid #bfbfc0;border-radius:2px;background:#fff;text-align:right;padding:2px 7px;font:16px/22px Arial;color:#222}.page-total{margin-left:-4px;font-size:11px}.toolbar-center{position:absolute;left:48%;gap:6px}.zoom-minus,.zoom-plus{font-size:21px;width:21px;text-align:center}.zoom-select{height:28px;width:140px;background:#d8d8da;display:flex;align-items:center;justify-content:space-between;padding:0 7px;color:#222}.toolbar-right{gap:5px;padding-right:8px}.more{font-size:25px;line-height:20px;padding:0 1px 3px}
/* 文档由真实文字与下划线构成，可在 HTML 中逐项修改 */
.document-scroll{flex:1;min-height:0;overflow-y:scroll;background:#d5d5d7;padding:0 33px;scrollbar-color:#c1c1c1 #f1f1f1;scrollbar-width:auto}.document-scroll::-webkit-scrollbar{width:16px}.document-scroll::-webkit-scrollbar-track{background:#f1f1f1}.document-scroll::-webkit-scrollbar-thumb{background:#c1c1c1;border:2px solid #f1f1f1}.paper{background:white;min-height:1400px;overflow:hidden;padding-top:126px}.agreement{width:605px;margin:0 0 0 calc(50% - 346px);font:18px/1.5 SimSun,"Songti SC","Noto Serif CJK SC",serif;color:#111}.agreement h2{font-size:28px;line-height:38px;text-align:center;font-weight:400;margin:0 0 7px;position:relative;left:43px;letter-spacing:1px}.agreement-number{text-align:right;margin-right:-26px;height:54px;padding-top:0}.blank{display:inline-block;border-bottom:1px solid #222;height:21px;vertical-align:baseline;position:relative;top:3px}.number{width:97px}.party p{margin:0;height:39px;white-space:nowrap}.party .form-row{display:flex;justify-content:space-between;gap:43px}.form-row p:first-child{width:289px;flex:none}.form-row p:last-child{flex:1}.short{width:115px}.address{width:316px}.phone{width:237px}.form-row p:last-child .phone{width:219px}.person{width:219px}.buyer{width:115px}.representative{width:115px}.seller{width:132px}.seller-address{width:325px}.party-b{margin-top:26px}.party-c{margin-top:26px}
@media(max-width:1250px){.project-header{padding-right:15px}.project-heading{gap:10px}.project-header{gap:14px}}

/* 签章工具入口与弹窗 */
.signature-tools{height:40px;padding:0 20px;margin-right:12px;white-space:nowrap;border:1px solid #367cff;border-radius:4px;background:#fff;color:#2671ee;font-size:16px;cursor:pointer}
.signature-tools:hover{background:#f0f6ff}.signature-tools:focus-visible,.dialog-close:focus-visible{outline:2px solid #2671ee;outline-offset:3px}
.signature-dialog{width:460px;max-width:calc(100vw - 40px);padding:0;border:1px solid #d9dde5;border-radius:8px;color:#222;background:#fff;box-shadow:0 16px 48px #0003}
.signature-dialog::backdrop{background:rgb(0 0 0 / 38%)}
.dialog-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e8ecf2}
.dialog-heading h2{margin:0;font-size:20px;font-weight:600}.dialog-close{border:0;background:transparent;color:#788390;width:30px;height:30px;font:26px/28px Arial;cursor:pointer;border-radius:3px}.dialog-close:hover{background:#f0f3f7}
.signature-tool-list{padding:8px 24px 16px}.signature-tool-row{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px 0;font-size:16px}.signature-tool-row+.signature-tool-row{border-top:1px solid #e8ecf2}.download-pending{font-size:14px;color:#89929e}
