:root { color-scheme: light; --paper:#f5f6f2; --surface:#fff; --ink:#28382f; --muted:#626d65; --line:#dfe4dd; --accent:#325847; --accent-hover:#254535; --error:#a33329; --focus:#63835b; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; font-size:16px; color:var(--ink); background:var(--paper); font-synthesis:none; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; accent-color:var(--accent); }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { scroll-behavior:smooth; scroll-padding-top:24px; }
body { margin:0; }
button,input { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; }
a { color:inherit; text-underline-offset:4px; }
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible { outline:3px solid var(--focus); outline-offset:5px; }
::selection { background:#d5e4ca; color:#183d28; }
.icon-library { width:0; height:0; position:absolute; overflow:hidden; }
.icon { width:20px; height:20px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.site-header { max-width:1160px; margin:0 auto; min-height:100px; padding:25px 40px; display:flex; align-items:center; justify-content:space-between; gap:24px; border-bottom:1px solid var(--line); }
.brand { display:flex; gap:11px; align-items:center; text-decoration:none; }
.brand-mark { display:grid; place-items:center; width:36px; height:36px; background:var(--accent); color:#fff; border-radius:10px; }
.brand-name { font-size:22px; font-weight:650; letter-spacing:1px; }
.help-link { font-size:13px; color:var(--muted); text-decoration:none; padding:10px 0 10px 10px; white-space:nowrap; }
.help-link span { margin-left:6px; }
.help-link:hover { color:var(--accent); text-decoration:underline; }
main { max-width:1080px; margin:0 auto; padding:0 40px; }
.intro { padding:32px 0 24px; }
h1,h2,h3,p { margin:0; }
h1 { font-size:28px; line-height:1.4; font-weight:650; letter-spacing:-.025em; text-wrap:balance; }
.intro-description { font-size:13px; line-height:1.8; margin-top:10px; color:var(--muted); }
.workbench { display:grid; grid-template-columns:.9fr 1.15fr; background:var(--surface); border:1px solid #dbe1d7; border-radius:16px; box-shadow:0 6px 20px rgb(31 53 34 / 3%); }
.source-panel,.result-panel { padding:30px; min-width:0; }
.source-panel { display:flex; flex-direction:column; border-right:1px solid var(--line); }
.result-panel { display:flex; flex-direction:column; }
.preview-empty { display:grid; place-items:center; flex:1; min-height:215px; color:var(--muted); font-size:13px; }
h2 { display:flex; align-items:center; gap:10px; font-size:16px; font-weight:600; line-height:1.5; }
.step-marker { display:inline-grid; place-items:center; width:23px; height:23px; border:1px solid #d7dfd1; border-radius:50%; font-size:12px; color:var(--accent); font-weight:550; font-variant-numeric:tabular-nums; }
.drop-zone { width:100%; min-height:215px; padding:27px 16px 24px; border:1px dashed #b8c5af; border-radius:10px; background:#f9faf7; color:var(--ink); margin-top:25px; display:flex; flex-direction:column; align-items:center; justify-content:center; transition:background 160ms ease-out,border-color 160ms ease-out; }
.drop-zone:hover,.drop-zone.is-dragging { background:#eef3e8; border-color:var(--accent); }
.drop-zone:disabled { opacity:.65; }
.upload-symbol { display:grid; place-items:center; margin-bottom:16px; color:var(--accent); }
.upload-symbol .icon { width:27px; height:27px; stroke-width:1.4; }
.drop-zone strong { font-size:14px; font-weight:550; }
.drop-zone>span:not(.upload-symbol):not(
.text-button { display:inline-flex; align-items:center; justify-content:center; gap:5px; padding:7px 2px; border:0; background:none; color:var(--accent); font-size:12px; font-weight:550; text-decoration:underline; text-decoration-color:transparent; text-underline-offset:4px; transition:text-decoration-color 160ms; }
.text-button .icon { width:14px; height:14px; }
.text-button:hover { text-decoration-color:currentColor; }
.text-button:disabled { opacity:.5; }
.file-info { display:flex; gap:12px; padding:20px 14px; align-items:center; border:1px solid var(--line); background:#f9faf7; border-radius:10px; margin-top:25px; }
.file-symbol { color:var(--accent); }
.file-symbol .icon { width:28px; height:28px; }
.file-details { flex:1; min-width:0; }
.file-details strong { display:block; overflow-wrap:anywhere; font-size:13px; line-height:1.6; font-weight:550; }
.file-details span { display:block; margin-top:5px; color:var(--muted); font-size:12px; }
.icon-button { display:grid; place-items:center; background:none; border:0; color:var(--muted); padding:8px; border-radius:5px; }
.icon-button .icon { width:16px; height:16px; }
.icon-button:hover { background:#e5ebe0; color:var(--ink); }
.replace-button { align-self:flex-start; margin-top:7px; }
.blank-option { padding:18px 0 0; border-top:1px solid var(--line); margin-top:19px; }
.blank-option label { display:flex; align-items:flex-start; gap:9px; cursor:pointer; }
.blank-option input { width:16px; height:16px; flex:0 0 auto; margin:2px 0 0; }
.blank-option strong { display:block; font-size:13px; font-weight:550; }
.blank-option small { display:block; margin-top:6px; font-size:12px; line-height:1.8; color:var(--muted); }
.blank-option p { margin-top:12px; color:var(--muted); font-size:11px; line-height:1.8; }
.error-message { background:#fff2ef; padding:12px; border-radius:6px; color:var(--error); margin-top:18px; font-size:12px; line-height:1.8; overflow-wrap:anywhere; }
.file-status { font-size:12px; color:var(--muted); line-height:1.8; margin-top:14px; }
.file-status:empty { display:none; }
.preview-description { margin-top:12px; font-size:12px; color:var(--muted); line-height:1.7; }
.preview-description strong { color:#455340; font-weight:500; }
.sequence-block { margin-top:23px; }
.sequence-heading { display:flex; align-items:center; justify-content:space-between; font-size:11px; margin-bottom:12px; }
.sequence-heading h3 { font-size:11px; color:var(--muted); font-weight:500; }
.sequence-heading>span { color:var(--muted); font-variant-numeric:tabular-nums; }
.page-sequence { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:9px; }
.page-tile { position:relative; min-width:0; min-height:62px; display:flex; align-items:center; justify-content:center; border:1px solid #dfe3dc; background:#fff; border-radius:3px 8px 3px 3px; color:#596650; font-size:23px; font-weight:450; font-variant-numeric:tabular-nums; line-height:1; }
.page-tile::after { content:""; position:absolute; top:0; right:0; width:10px; height:10px; border-left:1px solid #dfe3dc; border-bottom:1px solid #dfe3dc; border-radius:0 6px 0 2px; background:var(--paper); }
.page-tile.even { border-color:#a8b99c; background:#edf3e8; color:#38552d; }
.page-tile.even::after { border-color:#a8b99c; background:#dde8d3; }
.page-tile.blank { font-size:11px; font-weight:500; }
.page-tile.ellipsis { border:none; background:none; font-size:18px; }
.page-tile.ellipsis::after { display:none; }
.result-sequence-block { margin-top:16px; }
.result-sequence-block .sequence-heading h3 { color:var(--ink); font-weight:550; }
.full-sequence { margin-top:16px; font-size:12px; color:var(--muted); }
.full-sequence summary { cursor:pointer; width:fit-content; padding:5px 0; }
.full-sequence p { margin-top:8px; line-height:1.9; max-height:160px; overflow:auto; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.download-area { margin-top:24px; padding-top:20px; border-top:1px solid #e6eae2; }
.primary-button { width:100%; min-height:48px; padding:12px 18px; display:flex; align-items:center; justify-content:center; gap:9px; border:1px solid var(--accent); border-radius:7px; background:var(--accent); color:#fff; font-size:13px; font-weight:550; transition:background 160ms ease-out,border-color 160ms ease-out; }
.primary-button:hover:not(:disabled) { background:var(--accent-hover); border-color:var(--accent-hover); }
.primary-button:active:not(:disabled) { background:#1d392b; }
.primary-button:disabled { background:#e6ebe1; border-color:#e6ebe1; color:#66735d; }
.primary-button .icon { width:17px; height:17px; }
.primary-button .button-arrow { margin-left:auto; width:16px; }
.primary-button>.icon:first-child { margin-right:auto; }
.download-note { font-size:10px; text-align:center; color:var(--muted); margin-top:10px; line-height:1.8; min-height:18px; }
.download-note.success { color:var(--accent); }
.print-guide { margin-top:35px; padding:0 0 29px; }
.print-guide>h2 { font-size:14px; }
.guide-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; list-style:none; padding:22px 0 0; margin:0; }
.guide-steps li { display:flex; gap:10px; align-items:flex-start; }
.guide-number { color:#747e6c; font-size:12px; margin-top:1px; width:18px; flex:0 0 auto; font-variant-numeric:tabular-nums; }
.guide-steps h3 { font-size:12px; font-weight:550; margin-bottom:7px; }
.guide-tip { color:var(--muted); font-size:10px; line-height:1.9; margin-top:22px; }
@media (min-width:1440px) { .source-panel,.result-panel { padding:34px; } }
@media (max-width:800px) {
  .site-header { padding:20px 24px; min-height:82px; } main { padding:0 24px; }
  .intro { padding-top:28px; } h1 { font-size:28px; }
  .intro-description { font-size:13px; }  
  .workbench { grid-template-columns:1fr 1.1fr; } .source-panel,.result-panel { padding:23px 20px; }
  .page-sequence { gap:5px; } .page-tile { min-height:50px; font-size:20px; } 
  .guide-steps { gap:14px; } 
}
@media (max-width:600px) {
   .site-header { min-height:74px; padding:18px 20px; }
  .brand-name { font-size:20px; } .brand-mark { width:32px; height:32px; border-radius:8px; } main { padding:0 20px; }
  .intro { padding-top:24px; padding-bottom:24px; } h1 { font-size:25px; } .intro-description { margin-top:8px; }
  .workbench { grid-template-columns:1fr; border-radius:12px; } .source-panel,.result-panel { padding:24px; }
  .source-panel { border-right:0; border-bottom:1px solid var(--line); }
  .drop-zone { min-height:176px; margin-top:20px; padding-top:22px; padding-bottom:20px; }
    .page-sequence { gap:7px; }
  .page-tile { min-height:63px; font-size:23px; } .download-area { margin-top:22px; }
    .guide-steps { grid-template-columns:1fr; gap:20px; }
  .guide-steps h3 { font-size:13px; margin-bottom:4px; }  .guide-number { font-size:13px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { transition:none !important; } }
