.general-settings-panel {
  height: 100%;
  width: 100%;
  background-color: transparent;
}

/* AI参数设置区域样式 */
.ai-parameters-section {
  margin-top: 20px;
}

.settings-panel-group {
  height: 100%;
  width: 100%;
  border: none;
}

/* 左侧模式列表样式 */
.mode-list-panel {
  background-color: transparent;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.mode-list-container {
  padding: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--panel-bg-color-alt);
  border-radius: var(--border-radius);
}

.mode-list-header {
  margin-bottom: 15px;
}

.mode-list-header h3 {
  margin: 0 0 10px 0;
  color: var(--text-color-primary);
  font-size: 1.2em;
}

.search-container {
  margin-bottom: 15px;
}

.mode-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-small);
  background-color: var(--panel-bg-color);
  color: var(--text-color-primary);
  font-size: 14px;
}

.mode-search:focus {
  outline: none;
  border-color: var(--primary-color);
}

.mode-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 15px;
}

.mode-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-small);
  background-color: var(--panel-bg-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-item:hover {
  background-color: var(--hover-bg-color);
  border-color: var(--primary-color);
}

.mode-item.active {
  background-color: rgba(0, 173, 98, 0.1);
  border-color: var(--primary-color);
}

.mode-info {
  flex: 1;
}

.mode-name {
  font-weight: 500;
  color: var(--text-color-primary);
  margin-bottom: 2px;
}

.mode-type {
  font-size: 0.8em;
  color: var(--text-color-light);
}

.mode-status {
  font-size: 0.8em;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 500;
  background-color: var(--panel-bg-color-alt);
  color: var(--text-color-light);
}

.mode-item.active .mode-status {
  background-color: var(--primary-color);
  color: white;
}

/* 右侧设置面板样式 */
.mode-settings-panel {
  background-color: transparent;
  display: flex;
  flex-direction: column;
  width: 100%;
  border: none;
}

.mode-settings-container {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background-color: var(--panel-bg-color);
  border-radius: var(--border-radius);
}

.mode-settings-content {
  flex: 1;
}

.mode-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.mode-settings-header h3 {
  margin: 0;
  color: var(--text-color-primary);
  font-size: 1.3em;
}

/* 提示词区域样式 */
.prompt-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.custom-prompt,
.feature-settings {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  background-color: var(--panel-bg-color-alt);
}

.custom-prompt h4,
.feature-settings h4 {
  margin: 0 0 12px 0;
  color: var(--text-color-primary);
  font-size: 1.1em;
  font-weight: 600;
}

.custom-prompt textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-small);
  background-color: var(--panel-bg-color);
  color: var(--text-color-primary);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.4;
  resize: vertical;
  box-sizing: border-box;
}

.custom-prompt textarea::placeholder {
  color: var(--text-color-light);
  font-style: italic;
}

.custom-prompt textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.reset-button {
  margin-top: 8px;
  padding: 6px 12px;
  background-color: var(--divider-color);
  color: var(--text-color-primary);
  border: none;
  border-radius: var(--border-radius-small);
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.reset-button:hover:not(:disabled) {
  background-color: var(--border-color);
}

.reset-button:disabled {
  background-color: var(--divider-color);
  color: var(--text-color-light);
  cursor: not-allowed;
}

/* 功能设置样式 */
.feature-info {
  margin-bottom: 16px;
  padding: 12px;
  background-color: var(--panel-bg-color);
  border-radius: var(--border-radius-small);
  border-left: 4px solid var(--primary-color);
}

.feature-info strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-color-primary);
}

.feature-description {
  font-size: 0.85em;
  color: var(--text-color-light);
  line-height: 1.4;
}

/* 加载和空状态样式 */
.loading-prompts,
.no-prompts {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-color-light);
  font-style: italic;
}

/* 分隔条样式 */
.panel-resize-handle {
  width: 5px;
  background-color: var(--divider-color);
  cursor: ew-resize;
  position: relative;
}

.resize-handle-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 20px;
  background-color: var(--border-color);
  border-radius: 1px;
}

.panel-resize-handle:hover {
  background-color: var(--primary-color);
}

.panel-resize-handle:hover .resize-handle-inner {
  background-color: white;
}

/* 滚动条样式 */
.mode-list::-webkit-scrollbar {
  width: 6px;
}

.mode-list::-webkit-scrollbar-track {
  background: var(--panel-bg-color);
  border-radius: 3px;
}

.mode-list::-webkit-scrollbar-thumb {
  background: var(--divider-color);
  border-radius: 3px;
}

.mode-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.mode-settings-container::-webkit-scrollbar {
  width: 6px;
}

.mode-settings-container::-webkit-scrollbar-track {
  background: var(--panel-bg-color);
  border-radius: 3px;
}

.mode-settings-container::-webkit-scrollbar-thumb {
  background: var(--divider-color);
  border-radius: 3px;
}

.mode-settings-container::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* 模式列表操作按钮 */
.mode-list-actions {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.add-mode-btn {
  width: 100%;
  padding: 10px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.add-mode-btn:hover {
  background-color: var(--primary-color-dark);
}

/* 自定义模式表单样式 */
.custom-mode-form-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.custom-mode-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.custom-mode-form-header h3 {
  margin: 0;
  color: var(--text-color-primary);
  font-size: 1.3em;
}

.close-form-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-color-light);
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.close-form-btn:hover {
  background-color: var(--hover-bg-color);
  color: var(--text-color-primary);
}

.custom-mode-form {
  flex: 1;
}

.form-actions {
  margin-top: 30px;
  display: flex;
  gap: 10px;
}

.save-btn, .cancel-btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius-small);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.save-btn {
  background-color: var(--primary-color);
  color: white;
}

.save-btn:hover:not(:disabled) {
  background-color: var(--primary-color-dark);
}

.save-btn:disabled {
  background-color: var(--divider-color);
  cursor: not-allowed;
}

.cancel-btn {
  background-color: transparent;
  color: var(--text-color-light);
  border: 1px solid var(--border-color);
}

.cancel-btn:hover {
  background-color: var(--hover-bg-color);
}

/* 模式操作按钮 */
.mode-actions {
  display: flex;
  gap: 8px;
}

.edit-mode-btn, .delete-mode-btn {
  background: none;
  border: none;
  color: var(--text-color-light);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.edit-mode-btn:hover {
  background-color: var(--hover-bg-color);
  color: var(--primary-color);
}

.delete-mode-btn:hover {
  background-color: rgba(255, 0, 0, 0.1);
  color: #ff6b6b;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .settings-panel-group {
    flex-direction: column;
  }
  
  .mode-list-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .panel-resize-handle {
    width: 100%;
    height: 5px;
    cursor: ns-resize;
  }
  
  .resize-handle-inner {
    width: 20px;
    height: 2px;
  }
}