html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #111;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.startBtn-box {
  position: absolute;       /* 相对 .stage 定位 */
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;   /* 垂直排列 */
  align-items: center;
  gap: 10px;                /* 按钮/二维码间距 */
  pointer-events: auto;
}

/* 二维码显示区 */
.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.6);
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 20px;      /* 与按钮间距 */
}


#startBtn {
  background: linear-gradient(135deg, #0bf, #06f);
  border: none;
  border-radius: 30px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 28px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease-in-out;
}

#endBtn {
  background: linear-gradient(135deg, #0bf, #06f);
  border: none;
  border-radius: 30px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 28px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease-in-out;
}

#reload {
  background: linear-gradient(135deg, #0bf, #06f);
  border: none;
  border-radius: 30px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 28px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease-in-out;
}

#startBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

#startBtn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.countdown {
  position: absolute;
  left: 30px;                /* 距离左边一点间距 */
  top: 50%;                  /* 垂直居中 */
  transform: translateY(-50%); /* 垂直居中修正 */
  z-index: 10;
  font-size: 40px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: 6px;
  pointer-events: none;
  text-align: center;
}




.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.6);
  padding: 8px;
  border-radius: 8px;
}

.qr #qrCanvas {
  width: 200px;
  height: 200px;
  background: #fff;
}


.qr.hidden { display: none; }



.download {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  pointer-events: auto;
}

.stage {
  margin: 0 auto;
  width: 1280px; /* 画布显示区域保持正方形 */
  height: 1280px;
  position: relative;
  padding-top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  flex-direction: column;
}
.stage #sbg{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.stage #sbg {
  width: 100%;
}
.toolbar {
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  color: #ddd;
}

.notice {
  font-size: 14px;
  color: #ffcc66;
}


#finalCanvas {
  width: 1280px; /* 画布显示区域保持正方形 */
  height: 1280px;
  background: #000;
  object-fit: cover;
  display: block;
}



.hidden { display: none; }

.footer {
  text-align: center;
  padding: 10px;
  opacity: 0.7;
}


#qrContainer p {
  font-weight: bolder;
  font-size: 20px;
  color: #FFFFFF;
}
