:root{font-family:Inter,"Microsoft YaHei",sans-serif;color:#26362b;background:#f7f9f6;font-synthesis:none;-webkit-font-smoothing:antialiased;--ink:#26362b;--muted:#718276;--green:#497b56;--line:#e4ebe2;--pale:#edf5eb}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #a3c9a7;outline-offset:3px}
.shell{display:flex;min-height:100vh}aside{width:244px;flex-shrink:0;background:#f1f5ef;border-right:1px solid #e2eae0;padding:30px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;color:#24402a;text-decoration:none;font-size:22px;font-weight:800;letter-spacing:.5px;padding:0 7px}.brand-icon{width:39px;height:39px;display:grid;place-items:center;background:#e2eee0;border-radius:13px;font-size:25px;line-height:1;color:#638f69}.brand-small{font-size:14px;font-weight:500;margin-left:4px;color:#596f5d}.nav-label{font-size:11px;letter-spacing:1.5px;color:#93a396;margin:52px 13px 14px}nav{display:grid;gap:7px}.nav{width:100%;min-height:50px;border:1px solid transparent;background:transparent;color:#62776a;border-radius:12px;padding:9px 12px;text-align:left;display:flex;align-items:center;gap:12px}.nav-icon{display:grid;place-items:center;width:31px;height:31px;flex:0 0 31px;border-radius:9px;color:#79927d}.nav-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.nav-text{font-size:14px;flex:1;white-space:nowrap}.nav small{font-size:10px;color:#a3b2a5;letter-spacing:.4px}.nav:hover{background:#eaf1e8}.nav.active{background:#e0eddd;color:#345f3c;border-color:#d8e8d6;font-weight:700}.nav.active .nav-icon{color:#4b8256;background:#f5faf3}.sidebar-note{margin-top:auto;border-top:1px solid #dce7da;padding:20px 10px 0;color:#687d6c}.sidebar-note b{font-size:12px}.sidebar-note p{font-size:12px;color:#91a294;line-height:1.7;margin:7px 0 0}
main{flex:1;min-width:0;background:radial-gradient(circle at 92% 3%,#edf5eb 0,transparent 330px),#fafbf9}header{height:74px;border-bottom:1px solid #e8ede6;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(28px,6%,78px)}.breadcrumb{display:flex;align-items:center;gap:12px;color:#9aa99b;font-size:12px}.breadcrumb strong{font-weight:600;color:#55705a}.breadcrumb-separator{color:#c8d2c7}.status{color:#7e9582;font-size:11px;white-space:nowrap}.status i{display:inline-block;width:7px;height:7px;background:#8ab98e;border-radius:50%;margin-right:7px}
.content{max-width:1050px;margin:auto;padding:42px clamp(28px,6%,78px) 0}.view{display:none}.view.active{display:block}.eyebrow{display:flex;justify-content:space-between;align-items:center;color:#809c83;font-size:10px;font-weight:700;letter-spacing:1.7px}.eyebrow span{color:#becabf;font-weight:500;letter-spacing:1px}h1{font-size:clamp(34px,4.4vw,48px);line-height:1.24;letter-spacing:-1.5px;margin:22px 0 12px;font-weight:750}h1 em{font-style:normal;color:#77a67b}.lead{color:#819185;font-size:14px;line-height:1.75;margin:0 0 27px}
.card{background:#fff;border:1px solid #e6eee3;border-radius:18px;padding:30px;box-shadow:0 12px 38px rgba(50,80,51,.055)}.card-heading,.card-heading div{display:flex;align-items:center;gap:12px}.card-heading{justify-content:space-between;gap:10px;font-size:14px;color:#344d39}.step{display:grid;place-items:center;color:#608f68;background:#ecf5e9;border-radius:9px;width:34px;height:34px;font-size:11px;font-weight:700}.chip{background:#f4f8f2;border:1px solid #eaf1e8;border-radius:30px;padding:7px 12px;color:#7a927e;font-size:11px;white-space:nowrap}textarea{display:block;width:100%;height:142px;resize:vertical;border:1px solid #e2ebe0;background:#f9fbf8;border-radius:11px;padding:15px 17px;margin-top:21px;line-height:1.7;color:var(--ink)}textarea::placeholder,input::placeholder{color:#a9b9ab}textarea:hover,.drop:hover{border-color:#a8c6a8}textarea:focus{border-color:#82aa86;outline:3px solid #dfefdf}
.action-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:20px}.hint{font-size:12px;color:#7e9081;line-height:1.75;max-width:490px}.primary{background:#4b8057;color:#fff;border:1px solid #4b8057;border-radius:10px;min-height:46px;padding:12px 19px;white-space:nowrap;font-weight:650;font-size:13px;box-shadow:0 5px 12px rgba(67,119,77,.13);transition:background .15s,transform .15s}.primary:hover{background:#3d6e49}.primary:active{transform:translateY(1px)}.primary:disabled{opacity:.55;cursor:wait;transform:none}.primary span{margin-left:14px}.notice{display:flex;gap:13px;margin:23px 2px;color:#729477}.notice>span{font-size:20px;line-height:1.1}.notice b{font-size:12px;color:#647e69}.notice p{font-size:12px;color:#8e9f90;line-height:1.7;margin:6px 0 0}
.toolbar-label{font-size:12px;font-weight:700;color:#526d57;margin-bottom:12px}.tabs{display:flex;gap:7px;margin-bottom:22px;flex-wrap:wrap}.tabs button{min-height:42px;border:1px solid transparent;border-radius:9px;background:#f4f7f3;padding:9px 15px;color:#708274;font-size:13px;transition:background .15s,color .15s}.tabs button:hover{background:#edf3eb;color:#496e50}.tabs button.selected{color:#3f744a;background:#e8f2e5;border-color:#dcebd9;font-weight:700}.document-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.document-tabs button{padding:9px 5px;white-space:nowrap}.drop{border:1px dashed #c9ddc7;background:#fafcf9;border-radius:12px;min-height:185px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:11px;cursor:pointer;text-align:center;padding:24px;transition:border-color .15s,background .15s}.drop:hover{background:#f5faf3}.drop:focus-within{outline:3px solid #d6ead4;outline-offset:2px}.drop-icon{font-size:24px;color:#6f9d75;background:#edf6eb;border:1px solid #e3f0e0;border-radius:12px;width:46px;height:46px;display:grid;place-items:center}.drop b{font-size:14px;color:#415d47}.drop small{font-size:12px;color:#8fa292;line-height:1.6}.file-list{font-size:12px;color:#667f6c;line-height:1.9;margin-top:10px;overflow-wrap:anywhere}#pagesWrap{margin-top:18px;font-size:13px;color:#5e7562}#pages{border:1px solid #dce7da;border-radius:8px;padding:10px;margin-left:8px;max-width:calc(100% - 70px)}#message{font-size:13px;line-height:1.6;margin-top:15px;color:#b35446}footer{border-top:1px solid #e7ede5;margin-top:62px;padding:20px 0;display:flex;justify-content:space-between;gap:15px;color:#a0afa1;font-size:10px;letter-spacing:.4px}
.video-status{margin-top:18px;padding:13px 15px;border-radius:10px;background:#f1f7ef;color:#4a7051;font-size:12px;line-height:1.7}.video-status[hidden],.video-status [hidden]{display:none}.video-status progress{display:block;width:100%;height:7px;margin-top:8px;accent-color:#56875f}.video-status a{display:inline-block;margin-top:6px;color:#315f3c;text-decoration:underline;cursor:pointer}.media-options{margin-top:20px;display:flex;align-items:center;gap:14px;color:#607766;font-size:13px}.media-options label{font-weight:650}.media-options select{flex:1;max-width:280px;border:1px solid #dce9da;background:#fafcf9;color:#304d36;border-radius:9px;min-height:44px;padding:10px}
@media(max-width:850px){.document-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.shell{display:block}aside{width:100%;padding:16px 18px 12px;border-right:0;border-bottom:1px solid #e1eae0}.brand{font-size:19px;padding:0}.brand-icon{width:34px;height:34px;border-radius:11px;font-size:22px}.nav-label,.sidebar-note{display:none}nav{display:flex;margin-top:16px;gap:5px}.nav{min-width:0;min-height:44px;flex:1;gap:6px;padding:7px 8px;justify-content:center}.nav-icon{width:22px;height:25px;flex-basis:22px;background:transparent!important}.nav-icon svg{width:16px;height:16px}.nav-text{font-size:12px;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.nav small{display:none}header{height:54px;padding:0 20px}.breadcrumb{gap:8px;font-size:11px}.status{font-size:10px}.content{padding:32px 20px 0}h1{font-size:34px;margin:19px 0 10px}.lead{font-size:13px;margin-bottom:22px}.card{padding:20px;border-radius:15px}.action-row{align-items:stretch;flex-direction:column;gap:15px}.primary{width:100%;min-height:48px}.chip{padding:6px 9px;font-size:10px}.document-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.document-tabs button:last-child:nth-child(odd){grid-column:span 2}.drop{min-height:170px}.media-options select{max-width:none}footer{margin-top:45px;line-height:1.6}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}
.drop{position:relative}.file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.content{padding-top:24px}h1{font-size:31px;line-height:1.16;margin:15px 0 8px}.lead{margin-bottom:16px}.card{padding:18px}.toolbar-label{margin-bottom:9px}.tabs{margin-bottom:16px;gap:5px}.tabs button{min-height:39px}.drop{min-height:145px;padding:16px}.action-row{margin-top:14px;gap:10px}}
.brand-icon svg,.notice-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.notice-icon svg{width:18px;height:18px}
.format-hint{font-size:12px;color:#7e9081;line-height:1.6;margin:9px 0 0}
.document-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.batch-status{margin:12px 0 0;color:#547c5c;font-size:12px;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere}@media(max-width:700px){.document-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
.video-status{white-space:pre-line;overflow-wrap:anywhere}

@media(max-width:700px){nav{gap:3px}.nav{padding:7px 2px;gap:2px}.nav-icon{width:17px;flex-basis:17px}.nav-text{font-size:11px;overflow:visible;text-overflow:clip}}

.privacy-note{margin:10px 2px 0;color:#6b7f70;font-size:12px;line-height:1.6}

.result-link:not([hidden]){display:inline-block;margin:8px 2px 0;color:#3e704b;font-size:13px;text-decoration:underline}

/* Keep conversion and page tools visually distinct without hiding any option. */
.document-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px}
.document-group{min-width:0}
.document-group-label{margin:0 0 9px;color:#748c78;font-size:12px;font-weight:700}
.document-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.document-options button{min-width:0;min-height:42px;padding:8px 4px;border:1px solid transparent;border-radius:9px;background:#f4f7f3;color:#708274;font-size:12px;white-space:nowrap;transition:background .15s,color .15s}
.document-options button:hover{background:#edf3eb;color:#496e50}
.document-options button.selected{color:#3f744a;background:#e8f2e5;border-color:#dcebd9;font-weight:700}
.document-options button:disabled{opacity:.55;cursor:wait}
@media(max-width:700px){.document-tabs{grid-template-columns:1fr;gap:15px;margin-bottom:19px}.document-group-label{margin-bottom:7px}.document-options button{font-size:11px;min-height:40px}}

@media(max-width:700px){.document-options button:last-child:nth-child(odd){grid-column:auto}}

/* One row per category on wide screens; stack the label above its buttons on phones. */
.document-tabs{grid-template-columns:1fr;gap:12px;margin-bottom:24px}
.document-group{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:center;gap:14px}
.document-group-label{margin:0;color:#657f6a;font-size:12px}
.document-options{gap:8px}
@media(max-width:700px){.document-tabs{gap:15px;margin-bottom:19px}.document-group{display:block}.document-group-label{margin:0 0 7px}.document-options{gap:6px}}

/* PDF/图片文件队列：逐项追加、删除、拖动或用箭头调整顺序 */
.file-summary{margin:14px 2px 0;font-size:12px;color:#7e9081;line-height:1.6}
.file-list{display:flex;flex-direction:column;gap:8px;margin-top:10px;line-height:1.4}
.file-item{display:flex;align-items:center;gap:10px;background:#fbfdfa;border:1px solid #e6eee3;border-radius:10px;padding:8px 10px;transition:border-color .15s,background .15s,box-shadow .15s}
.file-item[draggable="true"]{cursor:grab}
.file-item.dragging{opacity:.45}
.file-item.drag-over{border-color:#82aa86;background:#f2f9ef;box-shadow:0 0 0 2px #e2f0df}
.file-order{flex:0 0 20px;text-align:center;font-size:11px;font-weight:700;color:#87a38c;font-variant-numeric:tabular-nums}
.file-thumb{flex:0 0 40px;width:40px;height:40px;border-radius:7px;overflow:hidden;background:#eef5ec;border:1px solid #e3ece1;display:grid;place-items:center;font-size:9px;font-weight:700;letter-spacing:.5px;color:#6f8f74}
.file-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.file-meta{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.file-meta b{font-size:12.5px;font-weight:600;color:#405a46;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-meta small{font-size:11px;color:#93a596}
.file-actions{flex:0 0 auto;display:flex;gap:4px}
.file-actions button{width:30px;height:30px;padding:0;border:1px solid #d5e4d2;border-radius:7px;background:#fff;color:#3f744a;font-size:14px;font-weight:700;line-height:1;display:grid;place-items:center;transition:background .15s,border-color .15s,color .15s}
.file-actions button:hover:not(:disabled){background:#eef6ec;border-color:#cfe2cc;color:#3f744a}
.file-actions button:active:not(:disabled){background:#e4f0e1}
.file-actions button:disabled{opacity:.3;cursor:default}
.file-actions .remove:hover:not(:disabled){background:#fdf0ee;border-color:#f0d6d1;color:#b35446}
@media(max-width:700px){.file-item{gap:7px;padding:7px}.file-thumb{flex-basis:36px;width:36px;height:36px}.file-actions button{width:32px;height:32px}}
