/* 全屏背景轮播 */
#bg-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

/* 黑色遮罩 */
#bg-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 1;
}

#bg-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}

#bg-slider img.active {
  opacity: 1;
}

/* 底部指示点 */
#slider-dots {
  position: fixed;
  bottom: 24px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.3);
  transition: all 0.4s ease;
  cursor: pointer;
}

.dot.active {
  background: #22c55e;
  width: 20px;
}

/* 唯一按钮：导出壁纸 */
.main-btn {
  background-color: #22c55e;
  color: #000;
  border: 2px solid #22c55e;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  border-radius: 6px;
  box-sizing: border-box;
}
.main-btn:hover {
  background-color: #fff;
  border-color: #fff;
}

/* 分组切换提示（浮动提示） */
.group-toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) translateY(20px);
  background: #22c55e;
  color: #000;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
  z-index: 9999;
}
.group-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 下载弹窗 */
#download-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
#download-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-inner {
  background: #0a0a0a;
  border: 1px solid #22c55e;
  width: 90%;
  max-width: 640px;
  max-height: 80vh;
  padding: 24px;
  border-radius: 8px;
  color: #fff;
  overflow-y: auto;
}

.modal-title {
  font-size: 16px;
  font-weight: bold;
  color: #22c55e;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  color: #22c55e;
  font-size: 20px;
  cursor: pointer;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.role-item {
  border: 1px solid #444;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.role-item.checked {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-btn {
  padding: 8px 16px;
  border: 1px solid #22c55e;
  background: transparent;
  color: #22c55e;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.modal-btn.primary {
  background: #22c55e;
  color: #000;
}

.modal-btn:hover {
  background: #22c55e;
  color: #000;
}
/* 文字扫光动画 */
.text-sweep {
  background: linear-gradient(90deg, #ffffff, #ffffff, #22c55e);
  background-size: 200% 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: textSweep 0.34s ease-out forwards;

}
@keyframes textSweep {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}