/* 1. 基础 reset */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
/*TODO: 明天记得开个分支再写功能*/
/* 2. 全屏背景 *//*TODO: 现在效果不是很好*/
.bg-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}
.bg-slide {
  position: absolute;
  inset: 0;
  background:center/cover no-repeat;
  opacity: 0;
  transition:opacity 1.2s ease-in-out;
}
.bg-slide.active{ opacity: 1;}
/* 3. 毛玻璃表单容器 */
.form-wrapper {
  width: 90%;
  max-width: 420px;
  margin: 10vh auto;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.form-wrapper h1 { text-align: center; margin-bottom: 24px; font-weight: 500; }

/* 4. 表单元素 */
label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
}

input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  transition: border 0.3s;
}

input:focus {
  outline: none;
  border-color: #fff;
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #0077ff;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover { background: #005fd1; }

#msg { margin-top: 12px; text-align: center; font-size: 14px; }
#musicToggle{
  position:fixed;
  bottom:20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius:50%;
  background:rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  color:#fff;
  font-size: 20px;
  cursor:pointer;
  z-index: 999;
  transition:background 0.3s;
}
#musicToggle:hover{ background: rgba(255, 255, 255, 0.4); }
/* 5. 响应式微调 */
@media (max-width: 480px) {
  .form-wrapper { margin: 8vh auto; padding: 30px 20px; }
}
.agree-row {
  display: flex;
  align-items: center;
  gap: 4px;                 /* 文字与框的间距 */
}

/* ① 去掉浏览器默认样式 + 重置尺寸 */
.agree-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;                /* 彻底清零 */
  border: 1px solid #fff;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;       /* 为对勾定位 */
}

/* ② 勾选时的对勾 */
.agree-row input[type="checkbox"]:checked::before {
  content: '✓';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 10px;
  color: #fff;
  line-height: 14px;
  text-align: center;
}

/* ③ 如果要再贴边 2px，用 transform 平移 */
.agree-row input[type="checkbox"] {
  transform: translateX(-2px) scale(0.9);   /* 左移 2px + 整体缩小 */
}
#volBox { user-select: none; }          /* 禁止选中文本 */
#volTrack:hover #volBar { opacity: 0.8; }