/* overlays.css - 对比弹窗、历史面板、图片生成区 */
.compare-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.compare-box { background: #fff; border-radius: 14px; padding: 20px; max-width: 900px; width: 100%; max-height: 90vh; overflow-y: auto; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.compare-grid img { width: 100%; border-radius: 8px; border: 1px solid #e0e0d8; }
.compare-label { font-size: 12px; font-weight: 500; color: #666; text-align: center; margin-bottom: 6px; }
.compare-close { position: absolute; top: 12px; right: 16px; font-size: 24px; color: #fff; cursor: pointer; z-index: 10000; }
.history-panel { margin-top: 16px; }
.history-item { background: #f8f8f5; border: 0.5px solid #e0e0d8; border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.history-info { font-size: 12px; color: #666; }
.history-info strong { color: #1a1a1a; font-size: 13px; }
.history-actions { display: flex; gap: 6px; }
.history-actions button { font-size: 11px; padding: 4px 10px; border-radius: 6px; cursor: pointer; border: 0.5px solid #ddd; background: #fff; }
.history-actions button:hover { background: #f0f0ec; }
.gen-img-btn { font-size: 12px; padding: 5px 12px; border: 0.5px solid #1565c0; border-radius: 6px; cursor: pointer; background: #e3f2fd; color: #1565c0; white-space: nowrap; font-weight: 500; transition: all .15s; }
.gen-img-btn:hover { background: #bbdefb; }
.gen-img-btn:disabled { opacity: .5; cursor: not-allowed; }
.gen-img-area { margin-top: 12px; display: none; }
.gen-img-area img { width: 100%; max-width: 512px; border-radius: 10px; border: 1px solid #e0e0d8; }
.gen-img-loading { display: flex; align-items: center; gap: 10px; padding: 14px; background: #f8f8f5; border-radius: 8px; font-size: 13px; color: #888; }
.gen-img-loading .mini-spinner { width: 18px; height: 18px; border: 2px solid #eee; border-top-color: #1565c0; border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
.gen-img-error { padding: 10px 14px; background: #fff3f3; border-radius: 8px; font-size: 12px; color: #c62828; margin-top: 8px; }
.gen-img-success { margin-top: 8px; }
.gen-img-success a { font-size: 12px; color: #1565c0; margin-top: 6px; display: inline-block; }
.gen-all-btn { padding: 10px 20px; background: #1565c0; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: opacity .15s; }
.gen-all-btn:hover { opacity: .85; }
.gen-all-btn:disabled { opacity: .4; cursor: not-allowed; }
