  * { box-sizing: border-box; }
  body {
    margin: 0; background: #f4f5f7; color: #111827;
    font-family: "微软雅黑", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    padding: 32px 16px 80px;
  }
  .wrap { max-width: 1160px; margin: 0 auto; }
  .topbar { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
  h1 { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -0.3px; }
  .sub { color:#6b7280; margin-top:8px; font-size:15px; }
  .btn { cursor:pointer; border:none; border-radius:8px; font-size:14px; font-weight:600; padding:10px 18px; transition:.15s; }
  .btn:disabled { opacity:.55; cursor:not-allowed; }
  .btn-blue { background:#2563eb; color:#fff; } .btn-blue:hover:not(:disabled){ background:#1d4ed8; }
  .btn-indigo { background:#4f46e5; color:#fff; } .btn-indigo:hover:not(:disabled){ background:#4338ca; }
  .btn-green { background:#16a34a; color:#fff; } .btn-green:hover:not(:disabled){ background:#15803d; }
  .btn-amber { background:#d97706; color:#fff; } .btn-amber:hover:not(:disabled){ background:#b45309; }
  .btn-ghost { background:#fff; color:#374151; border:1px solid #d1d5db; }
  .btn-ghost:hover { background:#f9fafb; }
  .card { background:#fff; border:1px solid #e5e7eb; border-radius:16px; padding:28px; margin-top:24px; box-shadow:0 1px 2px rgba(0,0,0,.04); }
  .drop { border:2px dashed #d1d5db; border-radius:14px; padding:48px 16px; text-align:center; transition:.2s; cursor:pointer; }
  .drop.drag { border-color:#2563eb; background:#eff6ff; }
  .drop-icon { font-size:42px; }
  .drop .big { font-size:18px; font-weight:600; margin-top:14px; }
  .drop .small { color:#6b7280; font-size:13px; margin-top:8px; }
  .upload-lbl { display:inline-block; margin-top:20px; }
  .file-input { display:none; }
  .files-area, .result-card { display:none; }
  .files-area { margin-top:28px; }
  .grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:14px; margin-top:8px; }
  .thumb { position:relative; border:1px solid #e5e7eb; border-radius:10px; padding:8px; background:#fff; }
  .thumb .imgbox { height:110px; border-radius:8px; background:#f3f4f6; display:flex; align-items:center; justify-content:center; overflow:hidden; }
  .thumb img { width:100%; height:100%; object-fit:cover; }
  .thumb .pdfic { font-size:34px; }
  .thumb .nm { font-size:12px; margin-top:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:600; }
  .thumb .ap { font-size:11px; color:#6b7280; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .thumb .del { position:absolute; top:-8px; right:-8px; background:#fee2e2; color:#dc2626; border:none; border-radius:50%; width:24px; height:24px; cursor:pointer; font-size:13px; line-height:1; }
  .rowflex { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; flex-wrap:wrap; gap:10px; }
  .rowflex h3 { margin:0; font-size:17px; }
  .action-buttons { display:flex; gap:10px; }
  table { width:100%; border-collapse:collapse; font-size:13px; }
  th { background:#f9fafb; text-align:left; padding:10px 12px; color:#6b7280; font-weight:600; white-space:nowrap; border-bottom:1px solid #e5e7eb; }
  td { padding:10px 12px; border-bottom:1px solid #f0f0f0; vertical-align:top; }
  tr.bad td { background:#fdecec; }
  .tag { display:inline-block; padding:2px 10px; border-radius:999px; font-size:12px; font-weight:600; }
  .tag.ok { background:#dcfce7; color:#166534; } .tag.no { background:#fee2e2; color:#991b1b; }
  .pz { display:inline-block; padding:2px 8px; border-radius:6px; font-size:12px; font-weight:600; }
  .pz.zhuan { background:#fef3c7; color:#92400e; } .pz.pu { background:#e0e7ff; color:#3730a3; } .pz.qita { background:#f3f4f6; color:#6b7280; }
  .tablewrap { overflow-x:auto; }
  .hint { font-size:13px; color:#6b7280; background:#f9fafb; border:1px solid #eef0f2; border-radius:10px; padding:12px 14px; margin-top:18px; line-height:1.7; }
  .mask { position:fixed; inset:0; background:rgba(0,0,0,.4); display:none; align-items:center; justify-content:center; z-index:50; }
  .mask.show { display:flex; }
  .panel { background:#fff; border-radius:16px; padding:28px; width:520px; max-width:92vw; }
  .panel h2 { margin:0 0 4px; font-size:20px; }
  .panel p.tip { color:#6b7280; font-size:13px; margin:0 0 18px; line-height:1.6; }
  .field { margin-bottom:16px; }
  .field label { display:block; font-size:13px; font-weight:600; margin-bottom:6px; }
  .field input, .field select { width:100%; padding:10px 12px; border:1px solid #d1d5db; border-radius:8px; font-size:14px; }
  .field a { color:#2563eb; }
  .field-help { font-size:12px; color:#6b7280; margin-top:6px; }
  .advanced-settings { border:1px solid #e5e7eb; border-radius:10px; padding:10px 12px; margin-bottom:16px; background:#fafafa; }
  .advanced-settings summary { cursor:pointer; font-size:13px; font-weight:700; color:#374151; }
  .advanced-settings[open] summary { margin-bottom:14px; }
  .advanced-settings .field:last-child { margin-bottom:0; }
  .footer-note { text-align:center; color:#9ca3af; font-size:12px; margin-top:28px; line-height:1.8; }
  .stat { font-size:13px; margin-top:6px; white-space:pre-wrap; }
  .panel .actions { display:flex; gap:10px; justify-content:flex-end; margin-top:8px; }
  .busy { position:fixed; inset:0; background:rgba(255,255,255,.75); display:none; align-items:center; justify-content:center; flex-direction:column; z-index:60; }
  .busy.show { display:flex; }
  .spin { width:48px; height:48px; border:4px solid #dbeafe; border-top-color:#2563eb; border-radius:50%; animation:sp 1s linear infinite; }
  @keyframes sp { to { transform:rotate(360deg); } }
  .busytxt { margin-top:16px; font-weight:600; }
  .toast { position:fixed; left:50%; bottom:28px; transform:translateX(-50%); background:#111827; color:#fff; padding:14px 20px; border-radius:10px; font-size:14px; max-width:80vw; white-space:pre-wrap; box-shadow:0 10px 30px rgba(0,0,0,.25); display:none; z-index:70; line-height:1.6; }
  .toast.show { display:block; }
  .toast.err { background:#991b1b; }
