/* 切换背景 —— 卡片版（放进侧栏时用；悬浮按钮是另一套注入脚本） */

.lw-bgsw .lw-bgsw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lw-bgsw .lw-bgsw-title {
  position: relative;
  margin: 0;
  padding-left: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.lw-bgsw .lw-bgsw-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 2px;
  background: #6366f1;
}
.lw-bgsw .lw-bgsw-reset {
  flex: none;
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
}
.lw-bgsw .lw-bgsw-reset:hover { color: #ef4444; }

.lw-bgsw .lw-bgsw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.lw-bgsw .lw-bgsw-item {
  position: relative;
  height: 56px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  transition: .15s;
}
.lw-bgsw .lw-bgsw-item:hover { transform: translateY(-1px); }
.lw-bgsw .lw-bgsw-item.on {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, .55);
}
.lw-bgsw .lw-bgsw-item i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-style: normal;
  font-size: 11px;
  color: #fff;
  background: rgba(17, 24, 39, .55);
  padding: 2px 0;
  text-align: center;
}
.lw-bgsw .lw-bgsw-loading,
.lw-bgsw .lw-bgsw-hint {
  font-size: 12px;
  color: #9ca3af;
}
.lw-bgsw .lw-bgsw-hint { margin-top: 10px; line-height: 1.6; }
