:root{color:#173330;background:#eef3f2;font-family:Microsoft YaHei,PingFang SC,Noto Sans CJK SC,Arial,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;letter-spacing:0;--ink: #173330;--muted: #687875;--line: #d6e0de;--surface: #ffffff;--surface-soft: #f4f8f7;--brand: #1e7168;--brand-dark: #164f49;--brand-soft: #e5f2ef;--gold: #b17821;--gold-soft: #fff6e6;--danger: #b53a31;--danger-soft: #fff0ee}*{box-sizing:border-box}html{min-width:320px;background:#eef3f2}body{margin:0;min-width:320px;min-height:100vh}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid rgba(30,113,104,.28);outline-offset:2px}button{color:inherit}a{color:inherit;text-decoration:none}.app-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{height:68px;padding:0 max(24px,calc((100vw - 1240px)/2));display:flex;align-items:center;justify-content:space-between;background:var(--brand-dark);color:#fff;border-bottom:1px solid rgba(255,255,255,.12)}.brand{display:flex;align-items:center;gap:11px}.brand-mark{width:36px;height:36px;display:grid;place-items:center;background:#f2c66d;color:#164f49;border-radius:6px;font:800 19px Georgia,serif}.brand>span:last-child{display:grid;gap:1px}.brand strong{font-size:17px}.brand small{color:#ffffffa6;font-size:10px;text-transform:uppercase}.top-actions{display:flex;align-items:center;gap:8px}.icon-text-button,.account-button{height:38px;padding:0 13px;display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.22);background:transparent;color:#fff;border-radius:5px;cursor:pointer}.account-button{background:#fff;color:var(--brand-dark);border-color:#fff}.workspace{width:min(1240px,calc(100% - 40px));margin:0 auto;padding:34px 0 52px;flex:1}.workspace-head{min-height:66px;display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.eyebrow{margin:0 0 5px;color:var(--brand);font-size:13px;font-weight:700}h1,h2,p{margin-top:0}h1{margin-bottom:0;color:var(--ink);font-size:28px;line-height:1.25;overflow-wrap:anywhere}h2{margin-bottom:0;font-size:19px;line-height:1.35}.service-state{display:flex;align-items:center;gap:8px;margin-top:8px;color:var(--muted);font-size:13px}.service-dot{width:8px;height:8px;flex:0 0 8px;background:#2a9b6f;border-radius:50%}.service-state.is-warning .service-dot{background:var(--danger)}.service-state button{min-height:30px;padding:0 8px;display:inline-flex;align-items:center;gap:4px;color:#8e2f28;background:#fff;border:1px solid #e0aaa5;border-radius:4px;cursor:pointer;font-size:12px;font-weight:700}.steps{margin:25px 0 22px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);list-style:none;background:var(--surface);border:1px solid var(--line);border-radius:6px}.steps li{min-height:66px;padding:0 24px;position:relative;display:flex;align-items:center;gap:11px;color:#879491}.steps li>span{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;border:1px solid #bbc8c5;border-radius:50%;font-size:13px}.steps li>i{position:absolute;top:0;right:0;width:1px;height:100%;background:var(--line)}.steps li.active,.steps li.done{color:var(--brand-dark)}.steps li.active>span{background:var(--brand-dark);color:#fff;border-color:var(--brand-dark)}.steps li.done>span{background:var(--brand-soft);color:var(--brand);border-color:#8cbab5}.error-banner{min-height:48px;margin-bottom:16px;padding:11px 14px;display:flex;align-items:center;gap:10px;color:#8e2f28;background:var(--danger-soft);border:1px solid #e6a29d;border-radius:5px}.error-banner span{flex:1}.error-banner button{display:grid;place-items:center;border:0;background:transparent;cursor:pointer}.inline-retry,.retry-notice button{min-height:38px;padding:0 11px;display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--brand-dark);background:#fff;border:1px solid #a9c4c0;border-radius:4px;cursor:pointer;font-weight:700}.prepare-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(340px,.8fr);gap:18px;align-items:start}.panel{background:var(--surface);border:1px solid var(--line);border-radius:7px;box-shadow:0 8px 24px #193f390f}.template-panel,.upload-panel{padding:24px}.upload-panel{position:sticky;top:18px}.panel-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px}.panel-heading p{margin:3px 0 0;color:var(--muted);font-size:13px}.section-icon{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;color:var(--brand);background:var(--brand-soft);border-radius:6px}.section-icon.warm{color:var(--gold);background:var(--gold-soft)}.template-mode-control{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px;padding:4px;background:#edf3f2;border-radius:6px}.template-mode-control button{min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--muted);background:transparent;border:1px solid transparent;border-radius:4px;cursor:pointer}.template-mode-control button.active{color:var(--brand-dark);background:#fff;border-color:#b9cfcc;box-shadow:0 2px 6px #193f3914;font-weight:700}.software-control{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.template-mode-panel{margin-top:14px}.custom-template-panel{display:grid;gap:12px}.compact-upload{width:100%;min-height:82px;padding:12px;display:flex;align-items:center;gap:12px;text-align:left;background:var(--surface-soft);border:1px dashed #8db6b1;border-radius:5px;cursor:pointer}.compact-upload.has-file{border-style:solid;border-color:var(--brand)}.extract-button,.rule-toggle{min-height:44px;padding:0 14px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--brand-dark);background:var(--brand-soft);border:1px solid #a8c9c5;border-radius:5px;cursor:pointer;font-weight:700}.extract-button:disabled{cursor:not-allowed;opacity:.5}.rule-review{border:1px solid #b9d1ce;border-radius:6px;overflow:hidden}.rule-review-summary{padding:14px;display:grid;gap:4px;background:#f2f8f6}.rule-review-summary strong{font-size:15px}.rule-review-summary small{color:var(--muted)}.rule-ready{display:flex;align-items:center;gap:6px;color:var(--brand);font-size:12px;font-weight:700}.rule-toggle{width:100%;border-width:1px 0 0;border-radius:0;background:#fff}.rule-toggle svg:last-child{margin-left:auto}.rule-editor{max-height:420px;padding:8px;display:grid;gap:6px;overflow-y:auto;background:#f7f9f9;border-top:1px solid var(--line)}.confirm-rule-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;border:0;border-radius:7px;background:var(--brand);color:#fff;font-weight:750;cursor:pointer}.confirm-rule-button.confirmed{background:#e8f3ef;color:#17634f}.rule-style-item{background:#fff;border:1px solid var(--line);border-radius:4px}.rule-style-item summary{min-height:48px;padding:8px 11px;display:grid;grid-template-columns:minmax(90px,auto) minmax(0,1fr) auto;align-items:center;gap:9px;cursor:pointer;list-style:none}.rule-style-item summary::-webkit-details-marker{display:none}.rule-style-item summary small{overflow:hidden;color:var(--muted);text-align:right;text-overflow:ellipsis;white-space:nowrap}.rule-style-item[open] summary>svg{transform:rotate(180deg)}.rule-style-fields{padding:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border-top:1px solid var(--line)}.rule-style-fields label{display:grid;gap:5px}.rule-style-fields label>span{color:var(--muted);font-size:12px}.rule-style-fields input,.rule-style-fields select{width:100%;height:38px;padding:0 9px;color:var(--ink);background:#fff;border:1px solid #c8d4d2;border-radius:4px}.rule-style-fields .rule-checkbox{display:flex;align-items:center;gap:8px}.rule-style-fields .rule-checkbox input{width:17px;height:17px;accent-color:var(--brand)}.rule-style-fields .rule-checkbox span{color:var(--ink)}.software-control button{min-height:50px;padding:8px 12px;display:flex;align-items:center;justify-content:center;gap:9px;background:#fff;border:1px solid #cbd7d5;border-radius:5px;cursor:pointer}.software-control button.active{border:2px solid var(--brand);background:var(--brand-soft);color:var(--brand-dark)}.office-symbol,.wps-symbol{width:25px;height:25px;display:grid;place-items:center;color:#fff;background:#2e63b7;border-radius:4px;font-weight:800;font-size:13px}.wps-symbol{background:#dd5539}.search-field{height:46px;padding:0 13px;display:flex;align-items:center;gap:9px;color:#71817e;background:#fff;border:1px solid #cbd7d5;border-radius:5px}.search-field:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #1e71681a}.search-field input{width:100%;border:0;outline:0;color:var(--ink);background:transparent}.template-list{min-height:160px;max-height:420px;margin-top:13px;padding-right:4px;display:grid;gap:8px;overflow-y:auto}.template-option{width:100%;min-height:72px;padding:12px 13px;display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border:1px solid #d6dfdd;border-radius:5px;cursor:pointer}.template-option:hover{border-color:#8bb7b2}.template-option.selected{background:var(--brand-soft);border-color:var(--brand)}.radio{width:20px;height:20px;flex:0 0 20px;display:grid;place-items:center;border:1px solid #9baba8;border-radius:50%}.selected .radio{color:#fff;background:var(--brand);border-color:var(--brand)}.template-copy{min-width:0;flex:1;display:grid;gap:5px}.template-copy strong,.template-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.template-copy strong{font-size:15px}.template-copy small{color:var(--muted);font-size:12px}.template-status{padding:3px 7px;color:var(--brand);background:#ffffffbf;border:1px solid #bdd5d2;border-radius:3px;font-size:11px}.empty-state{min-height:140px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted)}.empty-state.is-error{padding:22px;flex-direction:column;gap:7px;color:#8e2f28;text-align:center}.empty-state.is-error span{max-width:520px;color:var(--muted);line-height:1.55}.empty-state.is-error .inline-retry{margin-top:5px}.dropzone{width:100%;min-height:178px;padding:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--brand);background:var(--surface-soft);border:1px dashed #8db6b1;border-radius:6px;cursor:pointer}.dropzone>span:last-child{color:var(--muted);font-size:13px}.dropzone.has-file{min-height:92px;flex-direction:row;justify-content:flex-start;text-align:left;border-style:solid}.dropzone.is-dragging{color:var(--brand-dark);background:#dff1ed;border-color:var(--brand);border-style:solid;box-shadow:0 0 0 4px #1e71681c}.docx-file{width:48px;height:54px;flex:0 0 48px;display:grid;place-items:center;background:#2e63b7;color:#fff!important;border-radius:5px;font-size:11px!important;font-weight:800}.file-copy{min-width:0;flex:1;display:grid;gap:5px}.file-copy strong,.file-copy small{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-copy strong{color:var(--ink)}.file-copy small{color:var(--muted)}.replace-file{color:var(--brand)!important;font-weight:700}.task-summary{margin:17px 0;padding:13px 0;display:grid;gap:10px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.task-summary div{min-width:0;display:flex;justify-content:space-between;gap:14px}.task-summary span{color:var(--muted);font-size:13px}.task-summary strong{min-width:0;max-width:68%;overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.agreement{margin:3px 0 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:13px}.agreement label,.agreement-links{display:inline-flex;align-items:center;gap:7px}.agreement input{width:17px;height:17px;accent-color:var(--brand)}.agreement-links a{color:var(--brand-dark);font-weight:700}.agreement-links a:hover,.agreement-links a:focus-visible{text-decoration:underline;text-underline-offset:3px}.primary-action,.secondary-action{min-height:48px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:5px;cursor:pointer;font-weight:700}.primary-action{width:100%;color:#fff;background:var(--brand);border:1px solid var(--brand);box-shadow:0 6px 14px #1e716829}.primary-action:hover:not(:disabled){background:var(--brand-dark)}.primary-action:disabled{cursor:not-allowed;opacity:.55}.primary-action.compact{width:auto;min-width:150px}.secondary-action{background:#fff;color:var(--brand-dark);border:1px solid #b7c9c6}.processing-panel{min-height:390px;padding:48px;display:grid;grid-template-columns:220px minmax(0,1fr);align-items:center;gap:54px}.processing-visual{display:grid;place-items:center}.progress-ring{--progress: 3%;width:170px;height:170px;display:grid;place-items:center;background:conic-gradient(var(--brand) var(--progress),#dfe9e7 0);border-radius:50%;position:relative}.progress-ring:before{content:"";position:absolute;top:13px;right:13px;bottom:13px;left:13px;background:#fff;border-radius:50%}.progress-ring span{position:relative;font-size:27px;font-weight:800}.processing-copy h2{margin-bottom:9px;font-size:24px}.processing-copy>p:not(.eyebrow){color:var(--muted)}.progress-track{width:100%;height:8px;margin:27px 0 24px;overflow:hidden;background:#e0e9e7;border-radius:4px}.progress-track span{display:block;height:100%;background:var(--brand);transition:width .3s ease}.retry-notice{margin-top:18px;padding:11px 12px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;color:#74501c;background:var(--gold-soft);border:1px solid #e9ca91;border-radius:5px;font-size:13px;line-height:1.5}.processing-meta{margin:0;display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:16px}.processing-meta div{padding:12px 0;border-top:1px solid var(--line)}.processing-meta dt{color:var(--muted);font-size:12px}.processing-meta dd{margin:5px 0 0;font-weight:700}.result-layout{display:grid;gap:16px}.result-summary{min-height:126px;padding:24px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px}.result-icon{width:52px;height:52px;display:grid;place-items:center;color:#fff;background:var(--brand);border-radius:50%}.result-icon.error{background:var(--danger)}.result-summary p{margin:5px 0 0;color:var(--muted)}.attention-panel{overflow:hidden;border-left:4px solid #7baea7}.attention-panel.has-issues{border-left-color:#c7902d}.attention-heading{min-height:90px;padding:18px 20px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px}.attention-icon{width:38px;height:38px;display:grid;place-items:center;color:var(--brand);background:var(--brand-soft);border-radius:50%}.has-issues .attention-icon{color:#8b5a0f;background:#fff3dc}.attention-heading h2{font-size:17px}.attention-heading p{margin:4px 0 0;color:var(--muted);font-size:13px}.issues-toggle{min-height:38px;padding:0 11px;display:inline-flex;align-items:center;gap:6px;color:#6f4a0e;background:#fff8eb;border:1px solid #e6c786;border-radius:5px;cursor:pointer}.issue-list{padding:0 20px 18px 72px;border-top:1px solid var(--line)}.issue-row{padding:14px 0;display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px}.issue-row+.issue-row{border-top:1px solid var(--line)}.issue-row>span{width:24px;height:24px;display:grid;place-items:center;color:#76511a;background:#fff2d8;border-radius:50%;font-size:12px;font-weight:750}.issue-row div{min-width:0}.issue-row strong{display:block;font-size:14px}.issue-row p,.issue-row small{display:block;margin:4px 0 0;color:var(--muted);line-height:1.5}.issue-row small{color:#7b5b27}.issue-more{margin:4px 0 12px;color:var(--muted);font-size:13px}.issue-adjust-link{min-height:42px;display:inline-flex;align-items:center;gap:7px;color:var(--brand-dark);font-weight:700}.result-metrics{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:5px}.result-metrics div{min-width:108px;padding:10px 16px;display:grid;gap:3px;text-align:center}.result-metrics div+div{border-left:1px solid var(--line)}.result-metrics span{color:var(--muted);font-size:12px}.result-metrics strong{font-size:22px}.preview-panel{overflow:hidden}.preview-toolbar{min-height:62px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.preview-tabs{height:100%;display:flex;align-items:stretch}.preview-tabs button{padding:0 18px;position:relative;color:var(--muted);background:transparent;border:0;cursor:pointer}.preview-tabs button.active{color:var(--brand-dark);font-weight:700}.preview-tabs button.active:after{content:"";position:absolute;left:18px;right:18px;bottom:0;height:3px;background:var(--brand)}.preview-file{max-width:44%;display:flex;align-items:center;gap:7px;overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:13px}.preview-tools{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:12px}.preview-tools>a{min-height:36px;padding:0 10px;display:inline-flex;align-items:center;gap:6px;color:var(--brand-dark);border:1px solid #b8cbc8;border-radius:4px;font-size:12px;font-weight:700;white-space:nowrap}.pdf-frame{position:relative;height:min(68vh,760px);min-height:520px;background:#d9dfde}.preview-loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;display:flex;align-items:center;justify-content:center;gap:9px;color:var(--muted);background:#eef2f1;pointer-events:none}.preview-fallback{height:100%;padding:30px;display:grid;place-content:center;justify-items:center;gap:10px;color:#52605d;text-align:center;background:#eef2f1}.preview-fallback span{color:var(--muted)}.preview-fallback a{min-height:42px;margin-top:6px;padding:0 14px;display:inline-flex;align-items:center;gap:7px;color:#fff;background:var(--brand);border-radius:5px;font-weight:700}.pdf-frame iframe{width:100%;height:100%;border:0}.result-actions{display:flex;justify-content:flex-end;gap:10px}.footer{min-height:68px;padding:0 max(24px,calc((100vw - 1240px)/2));display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,auto) minmax(0,1fr);align-items:center;gap:24px;color:#82908e;background:#e7eeec;border-top:1px solid #d3dddb;font-size:12px}.footer-brand{justify-self:start}.footer-registration{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 14px;text-align:center}.footer-icp{color:#657572}.footer nav{display:flex;justify-self:end;flex-wrap:wrap;justify-content:flex-end;gap:22px}.footer a:hover,.footer a:focus-visible{color:var(--brand-dark);text-decoration:underline;text-underline-offset:3px}.legal-page{width:min(860px,calc(100% - 40px));margin:0 auto;padding:36px 0 56px;flex:1}.legal-back{width:fit-content;margin-bottom:18px;display:inline-flex;align-items:center;gap:7px;color:var(--brand-dark);font-weight:700}.legal-document{padding:36px 42px}.legal-document h1{margin-bottom:7px}.legal-document h2{margin:30px 0 9px;font-size:18px}.legal-document p{margin-bottom:0;color:#526461;line-height:1.85}.legal-updated{font-size:13px}.legal-notice{margin-top:32px;padding:15px 17px;color:#74501c;background:var(--gold-soft);border-left:3px solid var(--gold);line-height:1.65}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spin{animation-duration:1.8s}.progress-track span{transition:none}}@media(max-width:900px){.workspace{width:min(100% - 28px,700px);padding-top:24px}.prepare-layout{grid-template-columns:minmax(0,1fr)}.prepare-layout>*{min-width:0}.upload-panel{position:static}.processing-panel{grid-template-columns:1fr;gap:28px;padding:34px 24px}.result-summary,.attention-heading{grid-template-columns:auto 1fr}.issues-toggle{grid-column:2;justify-self:start}.issue-list{padding-left:72px}.result-metrics{grid-column:1 / -1}}@media(max-width:620px){.topbar{height:60px;padding:0 14px}.brand small,.icon-text-button span{display:none}.icon-text-button,.account-button{width:38px;padding:0;justify-content:center}.account-button span{display:none}.workspace{width:calc(100% - 20px);padding:18px 0 34px}.workspace-head{min-height:58px}h1{font-size:23px}.workspace-head{min-height:auto;flex-direction:column;gap:10px}.service-state{margin-top:0;padding:6px 8px;background:#ffffffb8;border:1px solid var(--line);border-radius:5px}.steps{margin-top:16px}.steps li{min-height:58px;padding:0;justify-content:center;gap:5px}.steps li strong{display:none}.template-panel,.upload-panel{padding:17px}.software-control,.template-mode-control,.rule-style-fields{grid-template-columns:1fr}.template-list{max-height:360px}.template-status{display:none}.processing-meta{grid-template-columns:1fr;gap:0}.retry-notice{grid-template-columns:auto minmax(0,1fr)}.retry-notice button{grid-column:1 / -1;width:100%}.result-summary{padding:18px}.result-metrics{width:100%}.result-metrics div{min-width:0;flex:1}.preview-toolbar{padding:0 8px}.preview-tabs{width:100%}.preview-tabs button{flex:1;padding:0 8px}.preview-file{display:none}.preview-tools>a span{display:none}.pdf-frame{height:66vh;min-height:420px}.result-actions{display:grid;grid-template-columns:1fr 1fr;position:sticky;bottom:8px;z-index:5;padding:8px;background:#f2f5f4f5;border:1px solid var(--line);border-radius:7px;box-shadow:0 8px 22px #1437321f}.result-actions>*{min-width:0!important}.result-actions .primary-action{grid-column:1 / -1}.footer{padding:18px;display:grid;grid-template-columns:1fr;justify-items:center;gap:12px;text-align:center}.footer-brand,.footer nav{justify-self:center}.footer nav{justify-content:center}.legal-page{width:calc(100% - 20px);padding:20px 0 34px}.legal-document{padding:22px 18px}.agreement{align-items:flex-start;flex-direction:column;gap:8px}.attention-heading{padding:16px}.attention-icon{width:34px;height:34px}.issue-list{padding:0 16px 16px}}
