.modal-mask {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-glass);
}
.modal-mask.show { opacity: 1; pointer-events: auto; }

.modal {
  width: 90%; max-width: 500px; max-height: 85vh; overflow-y: auto;
  background: rgba(22, 17, 41, 0.95);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 20px;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.35s var(--ease-glass);
}
.modal-mask.show .modal { transform: scale(1) translateY(0); }

.modal-title {
  font-size: 18px; font-weight: 700; margin-bottom: 16px;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}

.form-group { margin-bottom: 12px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.form-row { display: flex; gap: 8px; }
.form-row .form-group { flex: 1; }

.icon-preset { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.icon-option {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; transition: all 0.2s var(--ease-glass);
}
.icon-option:hover { background: rgba(255, 255, 255, 0.1); transform: scale(1.05); }
.icon-option.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.island-checks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.island-check {
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  transition: all 0.2s var(--ease-glass);
  user-select: none;
  text-align: center;
  white-space: nowrap;
}
.island-check:hover { background: rgba(255, 255, 255, 0.1); }
.island-check.checked {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.35);
  color: #60a5fa;
  font-weight: 600;
}

.modal-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.log-item {
  display: flex; gap: 8px; padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 13px;
}
.log-username { color: var(--text-secondary); white-space: nowrap; font-weight: 500; }
.log-detail { color: var(--text-primary); flex: 1; }
.log-time { color: var(--text-faint); white-space: nowrap; font-size: 12px; }

/* ===== 管理后台样式 ===== *//* ===== 操作记录弹窗紧凑化 ===== */
.logs-filter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.logs-filter-input,
.logs-filter-select {
  padding: 6px 10px !important;
  font-size: 12px !important;
  max-width: 200px;
}

.logs-filter-stats {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.log-item {
  display: flex;
  gap: 6px;
  padding: 5px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 12px;
  align-items: center;
}

.log-username {
  color: var(--text-secondary);
  white-space: nowrap;
  font-weight: 500;
  font-size: 11px;
}

.log-detail {
  color: var(--text-primary);
  flex: 1;
  font-size: 12px;
}

.log-time {
  color: var(--text-faint);
  white-space: nowrap;
  font-size: 11px;
}

.log-undo-btn {
  padding: 1px 6px;
  margin-left: 4px;
  font-size: 10px;
}

.log-undone-tag {
  padding: 1px 6px;
  margin-left: 4px;
  font-size: 10px;
}

.logs-modal .modal-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.logs-modal .modal-actions {
  margin-top: 12px;
  padding-top: 10px;
}

.logs-list {
  max-height: 50vh;
  overflow-y: auto;
}


/* 隐藏日志图标 */
.log-icon {
  display: none !important;
}

/* 紧凑型文本域 */
textarea.glass-input {
  padding: 4px 8px;
  height: 28px;
  font-size: 11px;
  line-height: 1.2;
  overflow: hidden;
  resize: none;
}




/* ===== 使用说明弹窗美化 ===== */
.guide-content {
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.guide-content h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 16px 0 8px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-content h2:first-child {
  margin-top: 0;
}

.guide-content h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 12px 0 6px 0;
}

.guide-content ul {
  margin: 4px 0;
  padding-left: 20px;
}

.guide-content li {
  margin: 3px 0;
}

.guide-content p {
  margin: 6px 0;
}

