/* 设置页专用样式 */

/* 设置页布局：左边上下排列，右边高度一致 */
.settings-left {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  align-items: stretch;
  height: 100%;
}

.settings-left > .card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.settings-left > .card > .bd {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.settings-right {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.settings-right > .card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.settings-right > .card > .bd {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.save-all{
  position: sticky;
  bottom: 14px;
  display:flex;
  justify-content:flex-end;
  margin-top: 14px;
}

/* 开关控件样式 */
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.toggle-switch input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 48px;
  height: 24px;
  background: rgba(148,163,184,.35);
  border-radius: 999px;
  transition: background .2s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,.95);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(15,23,42,.15);
  transition: transform .2s ease;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
  background: linear-gradient(135deg, rgba(37,99,235,.85), rgba(124,58,237,.75));
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
  transform: translateX(24px);
}

.toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(15,23,42,.85);
  user-select: none;
}
