/* ============================================
   休息片刻 ✨ 摸鱼神器 - 现代风格
   ============================================ */

/* ----- 字体 & 重置 ----- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  user-select: none;
}

/* ----- 粒子背景画布 ----- */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ----- 通用 ----- */
.wrapper {
  display: none;
  position: relative;
  z-index: 1;
}

button {
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  outline: none;
}

.flex { display: flex; }
.center { justify-content: center; }
.middle { align-items: center; }

/* ============================================
   控制面板 - 玻璃卡片
   ============================================ */
#control {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
}

.control-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 40px 36px 32px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  animation: card-float 4s ease-in-out infinite;
}

@keyframes card-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

.logo-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.logo-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.logo-dots span:nth-child(1) { background: #ff6b6b; }
.logo-dots span:nth-child(2) { background: #ffd93d; }
.logo-dots span:nth-child(3) { background: #6bcb77; }

.main-title {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.main-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

/* ----- 按钮 ----- */
#control-btn {
  display: inline-block;
  padding: 12px 44px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

#control-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}
#control-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ----- 配置项 ----- */
#radio-box {
  margin-bottom: 12px;
}

.config-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.config-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.config-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  min-width: 56px;
  flex-shrink: 0;
}

.radio-group {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}

.radio-pill {
  padding: 5px 13px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}

.radio-pill input {
  display: none;
}

.radio-pill.active,
.radio-pill:has(input:checked) {
  background: linear-gradient(135deg, rgba(102,126,234,0.3), rgba(118,75,162,0.3));
  border-color: rgba(102,126,234,0.5);
  color: #fff;
  box-shadow: 0 0 20px rgba(102,126,234,0.2);
}

.radio-pill:hover:not(:has(input:checked)) {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}

/* ----- 配置预览 ----- */
.config-preview {
  margin: 10px 0 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.preview-label {
  opacity: 0.6;
}

.preview-text {
  color: rgba(168,184,255,0.8);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ----- 提示 ----- */
.explain {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.explain p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
}

.explain kbd {
  display: inline-block;
  padding: 0 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: inherit;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

/* ----- 底部信息 ----- */
.ipc-info {
  margin-top: 12px;
}

.ipc-info a {
  color: rgba(255,255,255,0.2);
  font-size: 11px;
  text-decoration: none;
  transition: color 0.3s;
}

.ipc-info a:hover {
  color: rgba(255,255,255,0.4);
}

/* ============================================
   更新界面统一
   ============================================ */
.update-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: #000;
}

.hidden-cursor {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  z-index: 20;
  cursor: none;
}
