src/components/settings/SettingsDrawer.css
/* 设置抽屉样式 - 简化版本 */

/* 全局禁用设置抽屉中的所有动画 */
.settings-drawer-container *,
.settings-drawer-backdrop *,
.settings-drawer-container,
.settings-drawer-backdrop {
  animation: none !important;
  transition: none !important;
}

/* 禁用所有设置相关的动画效果 */
.setting-group,
.setting-item,
.mode-option,
.btn,
input,
select,
textarea,
.checkbox,
.radio {
  animation: none !important;
  transition: none !important;
}

/* 背景遮罩 */
.settings-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  /* 确保鼠标事件正常传递 */
  pointer-events: auto;
}

/* 主题相关的背景遮罩调整 */
:root[data-theme="dark"] .settings-drawer-backdrop {
  background: rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] .settings-drawer-backdrop,
:root[data-theme="cupcake"] .settings-drawer-backdrop,
:root[data-theme="bumblebee"] .settings-drawer-backdrop {
  background: rgba(255, 255, 255, 0.1);
}

/* 主容器 - 禁用动画 */
.settings-drawer-container {
  width: 90%;
  max-width: 1100px;
  height: 88%;
  max-height: 750px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: none !important;
}

/* 深色模式优化 - 使用更深的黑色背景 */
:root[data-theme="dark"] .settings-drawer-container {
  background-color: rgba(22, 25, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

:root[data-theme="dark"] .settings-header {
  background: rgba(22, 25, 30, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] .settings-sidebar {
  background: rgba(18, 20, 24, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] .settings-panel {
  background: rgba(22, 25, 30, 0.95);
  color: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] .setting-group {
  background: rgba(26, 29, 35, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] .mode-option {
  background: rgba(26, 29, 35, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] .mode-option:hover {
  background: rgba(30, 34, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

:root[data-theme="dark"] .font-size-control {
  background: rgba(26, 29, 35, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] .density-btn {
  background: rgba(26, 29, 35, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] .density-btn:hover {
  background: rgba(30, 34, 42, 0.9);
}

/* 标题栏 */
.settings-header {
  background: #ffffff;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.settings-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
  margin: 0;
}

.settings-header .btn {
  color: rgba(0, 0, 0, 0.7);
}

.settings-header .btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.9);
}

/* 主体内容 */
.settings-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* 侧边栏 */
.settings-sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
  overflow-y: auto;
}

/* 导航项 */
.nav-item {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  margin: 0 1rem 0.5rem 1rem;
  border-radius: 12px;
  color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: none;
  background: none;
  width: calc(100% - 2rem);
  text-align: left;
  font-weight: 500;
  position: relative;
}

.nav-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.9);
  transform: translateX(4px);
}

.nav-item.active {
  background: rgba(59, 130, 246, 0.1);
  color: rgb(59, 130, 246);
  border-left: 3px solid rgb(59, 130, 246);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.nav-item .iconify {
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

/* 面板内容 */
.settings-panel {
  flex: 1;
  padding: 2.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  position: relative;
  height: 100%;
  scroll-behavior: smooth;
}

/* 确保主内容区域能够正确滚动 */
.settings-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0; /* 重要：确保flex子项能够正确缩小 */
}

.panel-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.panel-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.9);
  margin-bottom: 0.75rem;
}

.panel-description {
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* 设置组 */
.setting-group {
  margin-bottom: 2.5rem;
  background: hsl(var(--b2) / 0.3);
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid hsl(var(--b3) / 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.group-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.group-title::before {
  content: "";
  width: 4px;
  height: 1.25rem;
  background: linear-gradient(135deg, hsl(var(--p)) 0%, hsl(var(--s)) 100%);
  border-radius: 2px;
}

/* 设置项 */
.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid hsl(var(--b3) / 0.1);
  gap: 1.5rem;
}

.setting-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.setting-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.setting-label {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.setting-desc {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.5;
  margin: 0;
}

.setting-control {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* 主题选择器 */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border: 2px solid hsl(var(--b3) / 0.3);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: hsl(var(--b2) / 0.5);
}

.theme-option:hover {
  border-color: hsl(var(--p) / 0.5);
  background: hsl(var(--b2));
}

.theme-option.active {
  border-color: hsl(var(--p));
  background: hsl(var(--p) / 0.1);
}

.theme-preview {
  width: 60px;
  height: 40px;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  display: flex;
}

.theme-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--bc));
}

/* 表单元素 */
.settings-drawer-container input,
.settings-drawer-container select,
.settings-drawer-container textarea {
  background: hsl(var(--b1));
  border: 1px solid hsl(var(--b3));
  color: hsl(var(--bc));
}

.settings-drawer-container input:focus,
.settings-drawer-container select:focus,
.settings-drawer-container textarea:focus {
  border-color: hsl(var(--p));
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--p) / 0.2);
}

/* 主题模式控制样式 */
.theme-mode-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
  width: 100%;
}

.mode-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 1rem;
  border: 2px solid hsl(var(--b3) / 0.4);
  border-radius: 16px;
  background: hsl(var(--b1));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-width: 0;
  box-shadow: 0 1px 3px hsl(var(--bc) / 0.1);
  backdrop-filter: blur(10px);
}

.mode-option:hover {
  background: hsl(var(--b2));
  border-color: hsl(var(--p) / 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsl(var(--bc) / 0.15), 0 2px 4px hsl(var(--p) / 0.1);
}

.mode-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* 选中状态样式 */
.mode-option input[type="radio"]:checked + .option-label {
  color: hsl(var(--p));
  font-weight: 700;
}

.mode-option:has(input[type="radio"]:checked) {
  background: linear-gradient(135deg, hsl(var(--p) / 0.08) 0%, hsl(var(--p) / 0.12) 100%);
  border-color: hsl(var(--p));
  box-shadow: 0 0 0 1px hsl(var(--p) / 0.3), 0 4px 12px hsl(var(--p) / 0.2);
  transform: translateY(-1px);
}

/* 添加选中状态的视觉指示器 */
.mode-option::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 16px;
  height: 16px;
  border: 2px solid hsl(var(--bc) / 0.2);
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
  transform: scale(0.8);
}

.mode-option:hover::before {
  opacity: 0.8;
  transform: scale(0.9);
  border-color: hsl(var(--p) / 0.4);
}

.mode-option:has(input[type="radio"]:checked)::before {
  opacity: 1;
  background: hsl(var(--p));
  border-color: hsl(var(--p));
  transform: scale(1);
  box-shadow: 0 0 0 2px hsl(var(--b1)), 0 0 0 4px hsl(var(--p) / 0.3);
}

/* 添加勾选标记 */
.mode-option:has(input[type="radio"]:checked)::after {
  content: "✓";
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: bold;
  z-index: 1;
  animation: checkmarkPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 勾选标记弹出动画 */
@keyframes checkmarkPop {
  0% {
    transform: scale(0) rotate(-90deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.3) rotate(0deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.option-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--bc) / 0.8);
  transition: all 0.3s ease;
  flex: 1;
  padding-right: 2rem; /* 为右侧的指示器留出空间 */
  white-space: nowrap;
}

.option-icon {
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

/* 选中状态下的图标动画 */
.mode-option:has(input[type="radio"]:checked) .option-icon {
  transform: scale(1.1);
  color: hsl(var(--p));
}

/* 响应式调整 */
@media (max-width: 768px) {
  .theme-mode-control {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .mode-option {
    padding: 0.875rem;
    min-height: 60px;
  }

  .option-label {
    font-size: 0.875rem;
    gap: 0.5rem;
  }

  .option-icon {
    font-size: 1.125rem;
  }
}

/* 开关切换样式 */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 3.5rem;
  height: 1.75rem;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  border-radius: 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #d1d5db;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 1.25rem;
  width: 1.25rem;
  left: 0.125rem;
  top: 0.125rem;
  background-color: #ffffff;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.15);
  border: 1px solid #d1d5db;
}

.toggle-input:checked + .toggle-slider {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #3b82f6;
  box-shadow: inset 0 2px 4px rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.toggle-input:checked + .toggle-slider:before {
  transform: translateX(1.625rem);
  background-color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.15);
  border-color: transparent;
}



/* 开关悬停效果 */
.toggle-switch:hover .toggle-slider {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15),
    0 0 0 2px rgba(0, 0, 0, 0.1);
}

.toggle-switch:hover .toggle-input:checked + .toggle-slider {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* 字体大小控制样式 */
.font-size-control {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: hsl(var(--b2) / 0.3);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid hsl(var(--b3) / 0.2);
}

.font-size-slider {
  flex: 1;
  height: 0.375rem;
  border-radius: 0.1875rem;
  background: hsl(var(--b3) / 0.6);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
}

.font-size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--p)) 0%, hsl(var(--p) / 0.8) 100%);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), 0 0 0 2px white, 0 0 0 3px hsl(var(--p) / 0.3);
  transition: all 0.2s ease;
}

.font-size-slider:hover::-webkit-slider-thumb {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25), 0 0 0 2px white, 0 0 0 4px hsl(var(--p) / 0.4);
}

.font-size-slider::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--p)) 0%, hsl(var(--p) / 0.8) 100%);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), 0 0 0 2px white, 0 0 0 3px hsl(var(--p) / 0.3);
}

.font-size-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--p));
  min-width: 3rem;
  text-align: center;
  background: hsl(var(--p) / 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid hsl(var(--p) / 0.2);
}

/* 布局密度选项样式 */
.density-options {
  display: flex;
  gap: 0.75rem;
}

.density-btn {
  padding: 0.75rem 1.25rem;
  border: 2px solid hsl(var(--b3) / 0.4);
  border-radius: 10px;
  background: hsl(var(--b1));
  color: hsl(var(--bc) / 0.8);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.density-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsl(var(--p) / 0.1), transparent);
  transition: left 0.5s ease;
}

.density-btn:hover {
  background: hsl(var(--b2));
  border-color: hsl(var(--p) / 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px hsl(var(--bc) / 0.1);
}

.density-btn:hover::before {
  left: 100%;
}

.density-btn.active {
  background: linear-gradient(135deg, hsl(var(--p) / 0.1) 0%, hsl(var(--p) / 0.05) 100%);
  border-color: hsl(var(--p));
  color: hsl(var(--p));
  font-weight: 700;
  box-shadow: 0 0 0 1px hsl(var(--p) / 0.3), 0 2px 8px hsl(var(--p) / 0.2);
}

/* 设置页脚样式 */
.settings-footer {
  padding: 1rem 1.5rem;
  background: hsl(var(--b2));
  border-top: 1px solid hsl(var(--b3) / 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-info {
  font-size: 0.75rem;
  color: hsl(var(--bc) / 0.6);
}

.footer-actions {
  display: flex;
  gap: 0.75rem;
}

/* 版本信息显示样式 */
.version-details {
  margin-top: 1rem;
  padding: 1rem;
  background: hsl(var(--b2));
  border-radius: 8px;
  border: 1px solid hsl(var(--b3) / 0.3);
}

.version-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid hsl(var(--b3) / 0.2);
}

.version-item:last-child {
  border-bottom: none;
}

.version-label {
  font-weight: 500;
  color: hsl(var(--bc) / 0.8);
  min-width: 100px;
}

.version-value {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-weight: 600;
  color: hsl(var(--p));
  margin-right: 0.5rem;
}

.version-internal {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.75rem;
  color: hsl(var(--bc) / 0.5);
  background: hsl(var(--b3) / 0.5);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

/* 版本检查部分样式 */
.version-check-section {
  margin-top: 1rem;
  padding: 1rem;
  background: hsl(var(--n) / 0.05);
  border-radius: 8px;
  border: 1px solid hsl(var(--n) / 0.1);
}

.version-check-controls {
  margin-bottom: 1rem;
}

.version-check-controls .btn {
  transition: all 0.2s ease;
}

.version-check-result {
  margin-top: 1rem;
}

.version-check-result .alert {
  padding: 0.75rem;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.version-check-result .alert-info {
  background: hsl(var(--in) / 0.1);
  border: 1px solid hsl(var(--in) / 0.2);
  color: hsl(var(--inc));
}

.version-check-result .alert-success {
  background: hsl(var(--su) / 0.1);
  border: 1px solid hsl(var(--su) / 0.2);
  color: hsl(var(--suc));
}

.version-check-result .alert-error {
  background: hsl(var(--er) / 0.1);
  border: 1px solid hsl(var(--er) / 0.2);
  color: hsl(var(--erc));
}

.version-check-result .alert .font-medium {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.version-check-result .alert .text-sm {
  font-size: 0.875rem;
  line-height: 1.4;
}

.version-check-result .alert .opacity-80 {
  opacity: 0.8;
}

/* 版本更新按钮样式 */
.version-check-result .btn-xs {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  height: auto;
  min-height: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .version-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .version-label {
    min-width: auto;
    font-size: 0.875rem;
  }

  .version-value {
    font-size: 0.875rem;
  }

  .version-internal {
    font-size: 0.625rem;
    margin-left: 0;
  }

  .version-check-section {
    padding: 0.75rem;
  }
}

/* 深色主题优化 */
:root[data-theme="dark"] .version-details {
  background: hsl(var(--b3) / 0.3);
  border-color: hsl(var(--b3) / 0.5);
}

:root[data-theme="dark"] .version-internal {
  background: hsl(var(--b1));
  color: hsl(var(--bc) / 0.6);
}

:root[data-theme="dark"] .version-check-section {
  background: hsl(var(--b3) / 0.2);
  border-color: hsl(var(--b3) / 0.3);
}

/* 设置面板包装器 */
.settings-panel-wrapper {
  width: 100%;
  height: 100%;
}

/* 设置面板过渡动画 - 增强版本 */
.settings-panel-fade-enter-active {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.settings-panel-fade-leave-active {
  transition: all 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.settings-panel-fade-enter-from {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
}

.settings-panel-fade-leave-to {
  opacity: 0;
  transform: translateY(-20px) scale(1.02);
}

.settings-panel-slide-left-enter-active {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.settings-panel-slide-left-leave-active {
  transition: all 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.settings-panel-slide-right-enter-active {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.settings-panel-slide-right-leave-active {
  transition: all 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.settings-panel-slide-left-enter-from {
  opacity: 0;
  transform: translateX(-80px) scale(0.9);
}

.settings-panel-slide-left-leave-to {
  opacity: 0;
  transform: translateX(80px) scale(0.9);
}

.settings-panel-slide-right-enter-from {
  opacity: 0;
  transform: translateX(80px) scale(0.9);
}

.settings-panel-slide-right-leave-to {
  opacity: 0;
  transform: translateX(-80px) scale(0.9);
}

/* 设置抽屉动画 */
.settings-drawer-enter-active,
.settings-drawer-leave-active {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-drawer-enter-from,
.settings-drawer-leave-to {
  opacity: 0;
}

.settings-drawer-enter-from .settings-drawer-container,
.settings-drawer-leave-to .settings-drawer-container {
  transform: scale(0.95) translateY(20px);
  opacity: 0;
}

.settings-drawer-enter-to .settings-drawer-container,
.settings-drawer-leave-from .settings-drawer-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* 响应式增强 */
@media (max-width: 1024px) {
  .settings-drawer-container {
    width: 95%;
    height: 90%;
  }
  
  .settings-sidebar {
    width: 220px;
  }
  
  .settings-panel {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .settings-drawer-container {
    width: 98%;
    height: 95%;
    max-width: none;
    border-radius: 12px;
  }
  
  .settings-content {
    flex-direction: column;
  }
  
  .settings-sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid hsl(var(--b3) / 0.2);
    padding: 1rem 0;
  }
  
  .nav-item {
    margin: 0 1rem 0.25rem 1rem;
    padding: 0.625rem 1rem;
    width: calc(100% - 2rem);
  }
  
  .settings-panel {
    padding: 1.5rem;
  }
  
  .setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .setting-control {
    width: 100%;
    justify-content: flex-start;
  }
  
  .theme-mode-control {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .font-size-control {
    padding: 0.875rem 1rem;
  }
  
  .density-options {
    width: 100%;
  }
  
  .density-btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .settings-header {
    padding: 1rem;
  }
  
  .settings-title {
    font-size: 1.25rem;
  }
  
  .panel-title {
    font-size: 1.25rem;
  }
  
  .group-title {
    font-size: 1rem;
  }
  
  .setting-group {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }
}

/* 滚动条基础样式 - 增强版本 */
.settings-panel::-webkit-scrollbar,
.settings-sidebar::-webkit-scrollbar {
  width: 8px;
}

.settings-panel::-webkit-scrollbar-track,
.settings-sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  margin: 2px;
}

.settings-panel::-webkit-scrollbar-thumb,
.settings-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.settings-panel::-webkit-scrollbar-thumb:hover,
.settings-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}

.settings-panel::-webkit-scrollbar-thumb:active,
.settings-sidebar::-webkit-scrollbar-thumb:active {
  background: rgba(0, 0, 0, 0.5);
}

/* 确保Firefox滚动条样式 */
.settings-panel,
.settings-sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
}

/* 滚动条深色模式优化 */
:root[data-theme="dark"] .settings-panel::-webkit-scrollbar-track,
:root[data-theme="dark"] .settings-sidebar::-webkit-scrollbar-track {
  background: hsl(var(--b3) / 0.2);
}

:root[data-theme="dark"] .settings-panel::-webkit-scrollbar-thumb,
:root[data-theme="dark"] .settings-sidebar::-webkit-scrollbar-thumb {
  background: hsl(var(--bc) / 0.3);
}

:root[data-theme="dark"] .settings-panel::-webkit-scrollbar-thumb:hover,
:root[data-theme="dark"] .settings-sidebar::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--bc) / 0.4);
}

/* 补充深色模式下的其他元素样式 - 使用深黑色背景 */
:root[data-theme="dark"] .settings-panel {
  background: rgba(22, 25, 30, 0.95);
  color: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] .setting-label {
  color: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] .setting-desc {
  color: rgba(255, 255, 255, 0.7);
}

:root[data-theme="dark"] .group-title {
  color: rgba(255, 255, 255, 0.95);
}

:root[data-theme="dark"] .nav-item {
  color: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] .nav-item:hover {
  background: rgba(30, 34, 42, 0.8);
  color: rgba(255, 255, 255, 0.95);
}

:root[data-theme="dark"] .nav-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

:root[data-theme="dark"] .setting-item {
  color: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] input[type="text"],
:root[data-theme="dark"] input[type="number"],
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: rgba(26, 29, 35, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] input[type="text"]:focus,
:root[data-theme="dark"] input[type="number"]:focus,
:root[data-theme="dark"] select:focus,
:root[data-theme="dark"] textarea:focus {
  border-color: #60a5fa;
  background: rgba(26, 29, 35, 0.9);
  color: rgba(255, 255, 255, 0.95);
}

/* 深色模式下修复主题模式控制器样式 - 使用深黑色背景 */
:root[data-theme="dark"] .theme-mode-control .mode-option {
  background: rgba(26, 29, 35, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .theme-mode-control .mode-option:hover {
  background: rgba(30, 34, 42, 0.9);
  border-color: rgba(96, 165, 250, 0.6);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .theme-mode-control .mode-option input[type="radio"]:checked + .option-label {
  color: #60a5fa;
}

:root[data-theme="dark"] .option-label {
  color: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] .option-icon {
  color: rgba(255, 255, 255, 0.7);
}
