:root{--bg:oklch(98% 0.002 60);--surface:oklch(100% 0 0);--ink:oklch(25% .015 55);--muted:oklch(48% .012 55);--line:oklch(90% .008 60);--accent:oklch(58% .175 45);--accent-hover:oklch(52% .175 45);--soft:oklch(97% .023 60);--success:oklch(42% .105 155);--success-bg:oklch(97% .018 150);--error:oklch(43% .16 25);--error-bg:oklch(97% .018 25);font:15px/1.6 'Segoe UI','Microsoft YaHei',system-ui,sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,a,input,summary{touch-action:manipulation}button,a{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:inherit}button,a,summary{outline-offset:4px}button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--accent)}[hidden]{display:none!important}.top{height:80px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(28px,calc((100vw - 1120px)/2));background:var(--surface)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:750;font-size:19px}.brand img{width:36px;height:36px;object-fit:contain;flex:none}.top-label{font-size:13px;color:var(--muted)}main{max-width:1120px;margin:0 auto;padding:46px 0 24px}.heading h1{margin:0 0 10px;font-size:32px;line-height:1.3;font-weight:750;letter-spacing:-.5px}.heading p{margin:0;color:var(--muted);font-size:15px}.steps{display:flex;list-style:none;padding:0;margin:30px 0 26px;gap:36px;color:var(--muted);font-size:13px}.steps li{display:flex;align-items:center;gap:8px}.steps span{height:24px;width:24px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font-size:12px;font-weight:700}.steps .current{color:var(--accent);font-weight:650}.steps .current span{background:var(--accent);color:white;border-color:var(--accent)}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:32px;align-items:start}.tool{padding:28px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:16px}h2{font-size:17px;line-height:1.4;margin:0;font-weight:700}.section-head>span{font-size:12px;color:var(--muted);font-family:ui-monospace,Consolas,monospace}.dropzone{border:1.5px dashed oklch(78% .065 60);border-radius:10px;background:var(--soft);padding:36px 20px 26px;text-align:center;transition:background 160ms,border-color 160ms}.dropzone.drag{background:oklch(94% .06 60);border-color:var(--accent)}.upload-icon{width:48px;height:48px;stroke:var(--accent);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;margin-bottom:10px}.drop-title{font-size:18px;font-weight:650;margin:0 0 4px}.drop-caption{color:var(--muted);font-size:13px;margin:0 0 22px}.primary{border:0;border-radius:8px;background:var(--accent);color:white;text-decoration:none;padding:10px 22px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-weight:650;font-size:14px;transition:background 160ms}.primary:hover{background:var(--accent-hover)}.limits{font-size:12px;color:var(--muted);margin:16px 0 0}.guide{padding:8px 0}.guide h2{margin-bottom:20px}.guide>ol{list-style:none;counter-reset:guide;padding:0;margin:0}.guide li{counter-increment:guide;position:relative;padding-left:32px;margin:0 0 22px}.guide li:before{content:counter(guide);position:absolute;left:0;top:0;font:600 13px/23px inherit;width:22px;height:22px;text-align:center;border-radius:50%;background:oklch(93% .01 60);color:var(--muted)}.guide strong{font-size:14px;font-weight:650}.guide p{font-size:13px;color:var(--muted);margin:4px 0 0}.guide-note{padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:12px}h3{font-size:14px;margin:0;font-weight:650}.guide details{font-size:13px;padding:10px 0}.guide summary{cursor:pointer;font-weight:600;list-style-position:outside;margin-left:16px}.guide details p{margin-left:16px}.selected{display:flex;gap:14px;align-items:center;padding:14px 0 22px;border-bottom:1px solid var(--line)}.file-icon{background:var(--soft);color:var(--accent);font:700 12px/1 ui-monospace,monospace;width:42px;height:48px;border:1px solid oklch(90% .045 60);border-radius:6px;display:grid;place-items:center;flex:none}.file-info{flex:1;min-width:0;display:grid;gap:3px}.file-info strong{font-size:14px;overflow-wrap:anywhere}.file-info span{font-size:12px;color:var(--muted)}.text-button{border:0;background:transparent;color:var(--accent);font-size:13px;padding:10px 0;white-space:nowrap}.summary{display:grid;grid-template-columns:1.3fr .7fr 1fr;gap:16px;padding:20px 0;margin:0}.summary dt{font-size:12px;color:var(--muted);margin-bottom:4px}.summary dd{margin:0;font-size:15px;font-weight:650;font-variant-numeric:tabular-nums}.preview-heading{display:flex;align-items:center;justify-content:space-between;margin:12px 0}.preview-heading span{font-size:12px;color:var(--muted)}.table-wrap{border:1px solid var(--line);border-radius:8px;max-height:300px;overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px;text-align:left;table-layout:fixed}th{position:sticky;top:0;background:oklch(97% .004 60);font-weight:600;color:var(--muted)}td,th{padding:11px 14px;border-bottom:1px solid var(--line)}th:first-child{width:115px}td:first-child{font-variant-numeric:tabular-nums;color:var(--muted);vertical-align:top;font-family:Consolas,monospace;font-size:12px}tbody tr:last-child td{border-bottom:0}td:last-child{overflow-wrap:anywhere;white-space:pre-wrap}.author{color:var(--muted);font-size:11px;display:block;margin-bottom:3px}.actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px}.actions p,.note{font-size:12px;color:var(--muted);margin:0}.note{margin:0 0 18px}.status,.error{margin-top:18px;border-radius:8px;padding:12px 14px;font-size:13px;overflow-wrap:anywhere}.status{background:var(--soft);color:var(--muted)}.error{background:var(--error-bg);color:var(--error)}.success{background:var(--success-bg);border:1px solid oklch(85% .05 150);border-radius:10px;padding:24px;margin-top:20px}.success-head{display:flex;gap:12px;align-items:center;margin-bottom:20px}.success-head svg{flex:none;width:28px;height:28px;stroke:var(--success);stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.success h3{font-size:17px;color:var(--success)}.success p{font-size:13px;margin:3px 0 0;color:var(--muted)}.success .next-step{margin-top:18px;font-size:12px;line-height:1.8} @media(max-width:1190px){main{margin:0 28px}}@media(max-width:800px){.workspace{grid-template-columns:1fr;gap:28px}.guide{padding:0 4px}.guide>ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.guide li{margin:0 0 20px}.heading h1{font-size:28px}}@media(max-width:520px){.top{height:66px;padding:0 20px}.brand{font-size:16px;gap:8px}.brand img{width:30px;height:30px}.top-label{font-size:11px}main{margin:0 18px;padding-top:30px}.heading h1{font-size:26px}.heading p{font-size:14px}.steps{gap:16px;justify-content:space-between;font-size:12px;margin:25px 0 20px}.steps li{gap:5px}.steps span{width:21px;height:21px}.tool{padding:20px 16px}.section-head{margin-bottom:18px}.dropzone{padding:28px 12px 24px}.summary{gap:10px}.summary dd{font-size:13px}.summary dt{font-size:11px}.actions{flex-direction:column-reverse;align-items:stretch;gap:12px}.actions p{text-align:center}.guide>ol{display:block}.guide li{margin-bottom:18px}.success{padding:20px 16px}.success .primary{width:100%}.selected{gap:10px}.file-icon{width:36px}.text-button{font-size:12px}th:first-child{width:103px}td,th{padding:10px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.download-dialog{max-width:440px;width:calc(100% - 36px);border:1px solid var(--line);border-radius:14px;padding:28px;background:var(--surface);color:var(--ink)}.download-dialog::backdrop{background:rgb(30 25 20 / .35)}.download-dialog p{font-size:14px;color:var(--muted);margin:14px 0 22px}.download-dialog .text-button{margin-left:20px}
.code-flow{padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.code-flow h3{font-size:16px}.code-flow p{font-size:13px;color:var(--muted);margin:8px 0 16px}.code-flow a{color:var(--accent);text-underline-offset:3px}.code-flow label,.code-flow .instruction{font-size:13px;font-weight:600;display:block;margin:16px 0 8px;color:var(--ink)}.copy-row{display:flex;gap:10px}.copy-row input{min-width:0;flex:1}.code-flow input,.code-flow textarea{font:13px/1.6 Consolas,monospace;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:10px 12px;outline-offset:3px}.code-flow textarea{display:block;width:100%;resize:vertical;min-height:82px;overflow-wrap:anywhere}.code-flow textarea::placeholder{font-family:'Segoe UI','Microsoft YaHei',sans-serif;color:var(--muted)}.code-flow input:focus-visible,.code-flow textarea:focus-visible{outline:2px solid var(--accent)}.secondary{border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--accent);padding:8px 16px;font-size:13px;white-space:nowrap}.secondary:hover{background:var(--soft)}.preview-details{margin-top:20px;font-size:13px}.preview-details summary{cursor:pointer;font-weight:600;margin-bottom:12px}.preview-details summary span{font-weight:400;color:var(--muted);margin-left:8px}.success .text-button{display:block;margin-top:12px}button:disabled{cursor:not-allowed}.code-flow .note{font-size:12px;font-weight:400;margin-top:10px;line-height:1.7}@media(max-width:520px){.copy-row{flex-wrap:wrap}.copy-row input{width:100%;flex-basis:100%}.copy-row button{width:100%}}

.file-list{list-style:none;margin:0;padding:0}.batch-file{padding:16px 0;border-bottom:1px solid var(--line)}.batch-file-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 16px;align-items:center}.batch-file strong{font-size:14px;overflow-wrap:anywhere}.batch-file-main>span{font-size:12px;color:var(--muted);grid-column:1}.file-state{font-size:12px;color:var(--muted);margin:6px 0 0}.batch-file[data-state=success] .file-state,.batch-file[data-state=ready] .file-state{color:var(--success)}.batch-file[data-state=error] .file-state{color:var(--error)}.file-download{grid-column:2;grid-row:1 / 3;color:var(--accent);font-size:13px;text-underline-offset:3px;white-space:nowrap}.batch-file details{font-size:12px;color:var(--muted);margin-top:6px}.batch-file summary{cursor:pointer;display:list-item}.batch-file details ul{padding-left:18px;max-height:200px;overflow:auto}.batch-file details li{overflow-wrap:anywhere;white-space:pre-wrap}.batch-summary{font-weight:650;font-size:14px;margin:20px 0}.file-list:empty{display:none}.download-dialog .primary{width:100%}.download-dialog .text-button{margin-left:0}.file-list{max-height:520px;overflow:auto;scrollbar-gutter:stable}@media(max-width:520px){.file-list{max-height:420px}.batch-file-main{column-gap:8px}.file-download{font-size:12px}.drop-title{font-size:16px}}
