/* 图片压缩 · 工具控件样式（源自 original/index.html，保持功能外观不变） */
.fmt-btn, .q-btn { padding: 6px 12px; font-size: 13px; border-radius: 8px; font-weight: 500; cursor: pointer; border: 1px solid #374151; background: #1a1d24; color: #9ca3af; transition: all .15s; }
.fmt-btn.active, .q-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.fmt-btn:hover:not(.active), .q-btn:hover:not(.active) { border-color: #3b82f6; color: #60a5fa; }
.item-card { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid #374151; background: #1a1d24; }
.item-thumb { width: 110px; height: 82px; border-radius: 8px; overflow: hidden; background: #0b0d12; cursor: zoom-in; position: relative; }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.size-bar { height: 6px; border-radius: 99px; background: #111827; overflow: hidden; margin-top: 6px; }
.size-bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg,#22c55e,#3b82f6); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pill.green { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.25); }
.pill.amber { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.25); }
.btn-sm { padding: 7px 14px; border-radius: 9px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid #374151; background: #1a1d24; color: #d1d5db; transition: all .15s; }
.btn-sm:hover { border-color: #4b5563; }
.btn-sm.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.btn-sm.primary:hover { background: #1d4ed8; }
.btn-sm.danger { color: #f87171; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-box { background: #111827; border: 1px solid #374151; border-radius: 10px; padding: 10px 12px; text-align: center; }
.stat-box .v { font-size: 18px; font-weight: 700; color: #e5e7eb; }
.stat-box .k { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.lb-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 100; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 12px; }
.lb-overlay.visible { display: flex; }
.lb-overlay img { max-width: 88vw; max-height: 76vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.lb-close { position: absolute; top: 18px; right: 22px; width: 38px; height: 38px; border-radius: 999px; border: 1px solid #4b5563; background: #111827; color: #e5e7eb; font-size: 18px; cursor: pointer; }
.lb-label { color: #d1d5db; font-size: 13px; }
.lb-nav { display: flex; gap: 10px; }
.lb-nav button { padding: 6px 14px; border-radius: 8px; border: 1px solid #4b5563; background: #111827; color: #e5e7eb; cursor: pointer; }

@media (max-width: 640px) { .item-card { grid-template-columns: 76px 1fr; } .item-thumb { width: 76px; height: 60px; } .item-card > div:last-child { grid-column: 1 / -1; justify-content: flex-end; } }
