
/* ========== Niveous · 高定轻奢图床 App 专属样式 ========== */

.imgbed-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 4px 0 32px;
  box-sizing: border-box;
}

/* 顶部配置与上传触发区 */
.imgbed-top-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(176, 204, 232, 0.35);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(136, 171, 218, 0.08);
}

.imgbed-name-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.imgbed-name-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.5px;
  padding-left: 2px;
}

.imgbed-name-input {
  width: 100%;
  height: 40px;
  background: #f8fafc;
  border: 1px solid rgba(176, 204, 232, 0.4);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13px;
  color: #1c1c1e;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.imgbed-name-input:focus {
  background: #ffffff;
  border-color: #88abda;
  box-shadow: 0 0 0 3px rgba(136, 171, 218, 0.2);
}

/* 触控上传卡片 */
.imgbed-upload-card {
  width: 100%;
  height: 86px;
  background: #fff;
  border: 1.5px dashed #b0cce8;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-sizing: border-box;
  padding: 10px 16px;
  transition: all 0.2s ease;
}

.imgbed-upload-card:active {
  transform: scale(0.98);
  background: #ffffff;
  border-color: #88abda;
}

.imgbed-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbe9f8, #b0cce8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a6b8f;
  box-shadow: 0 4px 10px rgba(136, 171, 218, 0.25);
  flex-shrink: 0;
}

.imgbed-icon-circle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.imgbed-upload-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.imgbed-upload-title {
  font-size: 13px;
  font-weight: 600;
  color: #4a6b8f;
}

.imgbed-upload-tip {
  font-size: 11px;
  color: #9ab4d0;
}

/* ========== 历史记录主板块 ========== */
.imgbed-history-section {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.imgbed-history-section.show {
  display: flex;
}

.imgbed-history-header {
  font-size: 12px;
  font-weight: 600;
  color: #88abda;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.imgbed-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.imgbed-hdr-btn {
  font-size: 11px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(176, 204, 232, 0.5);
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.15s ease;
}

.imgbed-hdr-btn.active {
  background: #88abda;
  color: #ffffff;
  border-color: #88abda;
}

.imgbed-hdr-btn.danger {
  color: #64748b;
  border-color: rgba(100, 116, 139, 0.35);
}

.imgbed-hdr-btn:active {
  opacity: 0.7;
}

/* 批量操作浮动工具栏 */
.imgbed-batch-bar {
  display: none;
  background: #ffffff;
  border: 1px solid rgba(136, 171, 218, 0.3);
  border-radius: 12px;
  padding: 8px 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(136, 171, 218, 0.12);
  animation: imgbedFadeIn 0.2s ease;
}

.imgbed-batch-bar.show {
  display: flex;
}

@keyframes imgbedFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.imgbed-batch-info {
  font-size: 12px;
  font-weight: 600;
  color: #4a6b8f;
}

.imgbed-batch-btns {
  display: flex;
  gap: 6px;
}

.imgbed-batch-act {
  padding: 5px 10px;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.imgbed-batch-act.copy {
  background: linear-gradient(135deg, #b0cce8, #88abda);
  color: #ffffff;
}

.imgbed-batch-act.select-all {
  background: #f1f5f9;
  color: #475569;
}

.imgbed-batch-act.delete {
  background: #353535;
  color: #ffffff;
}

.imgbed-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.imgbed-history-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.imgbed-history-item:active {
  transform: scale(0.98);
  background: #f8fafc;
}

/* 多选勾选框 */
.imgbed-check-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.select-mode .imgbed-check-circle {
  display: flex;
}

.imgbed-history-item.selected .imgbed-check-circle {
  background: #88abda;
  border-color: #88abda;
}

.imgbed-check-circle svg {
  width: 12px;
  height: 12px;
  stroke: #ffffff;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: none;
}

.imgbed-history-item.selected .imgbed-check-circle svg {
  display: block;
}

.imgbed-history-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 0.5px solid #edf2f7;
  background: #f8fafc;
}

.imgbed-history-info {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.imgbed-history-url {
  font-size: 11px;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: monospace;
}

.imgbed-history-tag {
  font-size: 10px;
  color: #94a3b8;
}

.imgbed-history-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.select-mode .imgbed-history-actions {
  display: none;
}

.imgbed-btn-action {
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.imgbed-btn-action.copy {
  background: #edf4fc;
  color: #4a6b8f;
}

.imgbed-btn-action.delete {
  background: #353535;
  color: #ffffff;
}

.imgbed-btn-action:active {
  opacity: 0.7;
  transform: scale(0.92);
}

/* ========== 全屏毛玻璃大图放大弹窗 ========== */
.imgbed-viewer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.imgbed-viewer-modal.show {
  display: flex;
  animation: imgbedModalIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes imgbedModalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.imgbed-viewer-card {
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 22px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  position: relative;
}

.imgbed-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.imgbed-viewer-title {
  font-size: 13px;
  font-weight: 600;
  color: #4a6b8f;
  letter-spacing: 0.5px;
}

.imgbed-viewer-close {
  background: none;
  border: none;
  color: #8e8e93;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imgbed-viewer-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}

.imgbed-viewer-box {
  width: 100%;
  max-height: 260px;
  min-height: 140px;
  border-radius: 14px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #edf2f7;
}

.imgbed-viewer-img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
  display: block;
}

.imgbed-viewer-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.imgbed-viewer-bar input {
  flex: 1;
  height: 40px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 12px;
  color: #334155;
  font-family: monospace;
  outline: none;
  box-sizing: border-box;
}

.imgbed-viewer-copy {
  height: 40px;
  padding: 0 16px;
  background: linear-gradient(135deg, #b0cce8, #88abda);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(136, 171, 218, 0.25);
  transition: all 0.2s ease;
}

.imgbed-viewer-copy:active {
  transform: scale(0.95);
  opacity: 0.85;
}
