/* =========================================================
   REEHOR WORK - 设置面板样式
========================================================= */

/* 齿轮按钮 */
.rh-settings-trigger {
  position: fixed;
  left: 6px;
  bottom: 80px;
  z-index: 9998;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.rh-settings-trigger:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

/* 遮罩 */
.rh-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.rh-settings-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* 设置面板 */
.rh-settings-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 360px;
  max-width: 88vw;
  z-index: 10000;
  background: #fff;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rh-settings-panel.open {
  transform: translateX(0);
}

/* 面板头部 */
.rh-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e8edf2;
  flex-shrink: 0;
}
.rh-settings-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #10273D;
}
.rh-settings-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #f1f4f7;
  color: #667085;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.rh-settings-close:hover {
  background: #e4e8ed;
  color: #10273D;
}

/* 面板内容 */
.rh-settings-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

/* 分组 */
.rh-settings-group {
  margin-bottom: 20px;
}
.rh-settings-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8e9baa;
  margin: 0 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f3f6;
}

/* 表单项 */
.rh-settings-field {
  margin-bottom: 14px;
}
.rh-settings-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #435568;
  margin-bottom: 5px;
}
.rh-settings-field input[type="text"],
.rh-settings-field input[type="color"] {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  font-size: 13px;
  color: #182230;
  background: #fafbfc;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.rh-settings-field input[type="text"]:focus {
  border-color: var(--rh-primary, #078EA1);
  box-shadow: 0 0 0 3px rgba(7,142,161,0.1);
  background: #fff;
}
.rh-settings-field input[type="color"] {
  padding: 4px 8px;
  cursor: pointer;
  height: 40px;
}
.rh-settings-hint {
  font-size: 11px;
  color: #8e9baa;
  margin-top: 3px;
}

/* Logo 实时预览 */
.rh-settings-logo-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 12px;
  background: #f6f8fb;
  border-radius: 8px;
}
.rh-settings-logo-preview .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  transition: background 0.2s;
}
.rh-settings-logo-preview .logo-info {
  font-size: 12px;
  color: #435568;
  line-height: 1.5;
}
.rh-settings-logo-preview .logo-info strong {
  display: block;
  font-size: 13px;
  color: #10273D;
}

/* 操作按钮 */
.rh-settings-actions {
  padding: 14px 20px;
  border-top: 1px solid #e8edf2;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.rh-settings-actions button {
  flex: 1;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #dce3ea;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.rh-settings-btn-save {
  background: var(--rh-primary, #078EA1);
  color: #fff;
  border-color: var(--rh-primary, #078EA1) !important;
}
.rh-settings-btn-save:hover {
  filter: brightness(0.9);
}
.rh-settings-btn-reset {
  background: #fff;
  color: #667085;
}
.rh-settings-btn-reset:hover {
  background: #f6f8fb;
  color: #c74444;
  border-color: #f5c6c6;
}

/* Toast */
.rh-settings-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 10001;
  background: #10273D;
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.rh-settings-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
