﻿:root{--bg:#f3f6fb;--panel:#fff;--line:#d9e1f0;--text:#1d273c;--sub:#60708f;--primary:#1a73e8;--error:#cc342d;--ok:#117a52;--muted:#edf2fb}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(900px 400px at 0 -10%,#e8f0ff 0,transparent 60%),var(--bg);font-family:"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;color:var(--text)}
.page{max-width:1060px;margin:24px auto;padding:0 14px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 36px rgba(18,34,66,.08);overflow:hidden}
.head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}
.title{font-size:24px;margin:0}.sub{color:var(--sub);font-size:13px}
.body{padding:18px}
.drop{border:2px dashed #b7c8eb;border-radius:14px;background:#f8fbff;min-height:180px;display:grid;place-items:center;text-align:center;padding:16px}
.drop.drag{border-color:var(--primary);background:#eef5ff}
.drop p{margin:6px 0;color:#42567b}
.pick{margin-top:8px;display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.btn{height:38px;border-radius:10px;border:1px solid #c9d6f1;background:#fff;padding:0 12px;cursor:pointer}
.btn.primary{background:var(--primary);color:#fff;border-color:#165fbe}
.btn.small{height:30px;font-size:12px}
.btn:disabled{opacity:.55;cursor:not-allowed;pointer-events:none}
.meta{margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fbfcff;color:#495a7a;font-size:13px}
.msg{margin-top:12px;font-size:13px;display:none}
.msg.show{display:block}
.msg.error{color:var(--error)}.msg.ok{color:var(--ok)}
.toast{position:fixed;right:18px;bottom:18px;background:#223455;color:#fff;border-radius:10px;padding:9px 12px;font-size:13px;opacity:0;transform:translateY(8px);pointer-events:none;transition:all .16s ease;z-index:22}
.toast.show{opacity:1;transform:translateY(0)}
.section-title{margin:18px 0 10px;font-size:15px}
.list{display:grid;gap:8px}
#queueList.queue-scroll{max-height:720px;overflow-y:auto;padding-right:4px}
.item{border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff;display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap;transition:background-color .16s ease,border-color .16s ease}
.item-name{font-size:13px;word-break:break-all}.item-sub{font-size:12px;color:#627393}
.ops{display:flex;gap:8px;flex-wrap:wrap}
.task-bar{margin-top:8px;height:8px;background:var(--muted);border-radius:999px;overflow:hidden}
.task-fill{height:100%;width:0;background:linear-gradient(90deg,#1a73e8,#2d8cff);transition:width .15s ease}
.task-fill.processing{background:linear-gradient(90deg,#1a73e8,#4d9dff,#1a73e8);background-size:180% 100%;animation:queue-progress 1.2s linear infinite}
@keyframes queue-progress{0%{background-position:100% 0}100%{background-position:-80% 0}}
#historyList .item:hover{background:#f7faff;border-color:#b9cdf2}
.history-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.history-head .section-title{margin:18px 0 10px}
.history-toolbar{margin-top:10px;display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.history-search{display:flex;gap:8px;align-items:center;min-width:220px;margin-left:auto}
.history-search input{height:32px;border:1px solid #c9d6f1;border-radius:8px;padding:0 10px;min-width:220px;max-width:360px;width:100%;font-size:13px;color:#1d273c;background:#fff}
.history-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.history-pager{margin-top:10px;display:flex;gap:8px;justify-content:space-between;align-items:center}
.history-page-info{font-size:12px;color:#627393;min-width:90px;text-align:center}
.history-page-controls{display:flex;align-items:center;gap:8px}
.history-file-link{display:inline-block;font-size:14px;font-weight:500;color:#243247;text-decoration:none;transition:color .15s ease,transform .15s ease}
.history-file-link:hover{color:#0e5fc4;transform:translateX(1px)}
.history-meta-row{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;min-width:0;margin-top:3px;font-size:11px;color:#8694ad}
.history-meta-row span{white-space:nowrap}
.history-meta-key{min-width:0;overflow:hidden;text-overflow:ellipsis}
.modal-mask{position:fixed;inset:0;background:rgba(17,27,44,.42);display:none;align-items:center;justify-content:center;z-index:28}
.modal-mask.show{display:flex}
.modal-card{min-width:240px;max-width:320px;background:#fff;border:1px solid #d9e1f0;border-radius:14px;box-shadow:0 20px 36px rgba(9,20,40,.2);padding:18px}
.modal-title{margin:0 0 6px;font-size:15px}
.modal-sub{margin:0;color:#60708f;font-size:13px}
.modal-actions{margin-top:14px;display:flex;justify-content:flex-end}
@media (max-width:720px){
  .history-head{flex-wrap:wrap}
  .history-toolbar{align-items:stretch}
  .history-search{width:100%}
  .history-actions{justify-content:flex-start}
  .history-pager{justify-content:flex-start}
  .history-meta-row{flex-wrap:wrap}
}
  

