/* Settings 页面通用样式 */

/* 页面容器 */
.settings-page {
  padding: 24px;
  min-height: 100vh;
  background-color: #0a0a0f;
  transition: background-color 0.3s ease;
}

.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: white;
}

/* 设置容器 */
.settings-container {
  display: flex;
  gap: 24px;
  background-color: #121218;
  border-radius: 12px;
  overflow: hidden;
  min-height: calc(100vh - 120px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* 左侧导航 */
.settings-nav {
  width: 280px;
  background-color: #0d0d12;
  padding: 16px 0;
  flex-shrink: 0;
  border-right: 1px solid #1e1e28;
}

.settings-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-item:hover {
  background-color: #1a1a24;
  color: white;
  transition: all 0.25s ease;
}

.nav-item.active {
  background-color: #1a1a24;
  color: #f97316;
  border-left: 3px solid #f97316;
  transition: all 0.25s ease;
}

.nav-item i {
  width: 20px;
  text-align: center;
}

/* 子菜单 */
.sub-menu {
  list-style: none;
  padding-left: 20px;
  margin: 0;
}

.sub-menu .nav-item {
  padding: 10px 16px;
  font-size: 13px;
}

.nav-item.sub-item {
  padding-left: 40px;
  font-size: 13px;
}

/* 右侧内容 */
.settings-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  background-color: #121218;
}

.settings-section {
  width: 100%;
  animation: fadeIn 0.3s ease;
}

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

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 32px;
}

/* 表格 */
table {
  border-collapse: collapse;
}

.table-row {
  border-bottom: 1px solid #252530;
}

.table-row:hover {
  background-color: #1a1a24;
  transition: background-color 0.25s ease;
}

/* 表单样式 */
.settings-form :deep(.el-form-item__label) {
  color: #d1d5db;
  font-size: 14px;
}

.settings-form :deep(.el-input__wrapper) {
  background-color: #171922;
  border: 1px solid #4b5563;
  box-shadow: none;
}

.settings-form :deep(.el-input__inner) {
  color: white;
}

.settings-form :deep(.el-input__inner::placeholder) {
  color: #6b7280;
}

.settings-form :deep(.el-select) {
  width: 100%;
}

.settings-form :deep(.el-select .el-input__wrapper) {
  background-color: #171922;
  border: 1px solid #4b5563;
}

.settings-form :deep(.el-select .el-input__inner::placeholder) {
  color: #6b7280;
}

.settings-form :deep(.el-button--primary) {
  background-color: #f97316;
  border-color: #f97316;
}

.settings-form :deep(.el-button--primary:hover) {
  background-color: #ea580c;
  border-color: #ea580c;
}

.settings-form :deep(.el-input-number) {
  width: 100%;
}

.settings-form :deep(.el-input-number .el-input__wrapper) {
  background-color: #171922;
  border: 1px solid #4b5563;
}

/* 密码字段 */
.password-field {
  display: flex;
  gap: 12px;
}

.password-field .el-input {
  flex: 1;
}

/* 表单行 */
.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-row .flex-1 {
  flex: 1;
  min-width: 150px;
}

/* Switch 样式 */
.parsing-switch :deep(.el-switch.is-checked .el-switch__core) {
  background-color: #f97316;
  border-color: #f97316;
}
