/* 背景层 */
#background-wrapper {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
#bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px);
  transform: scale(1.05);
}

/* 夜间模式遮罩层 */
#overlay-layer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -2;
  transition: opacity 0.3s ease;
  pointer-events: none;
  opacity: 1;
}
body.light-mode #overlay-layer {
  opacity: 0;
}

/* 捐赠卡片 */
.donate-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px;
  width: 90%;
  max-width: 360px;
  margin: 40px auto;
  border-radius: 16px;
  color: #fff;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.05);
}

/* 日间优化 */
body.light-mode {
  color: #111;
}
body.light-mode .donate-box {
  background: rgba(255, 255, 255, 0.8);
  color: #111;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
body.light-mode .address-box {
  background: rgba(255, 255, 255, 0.7);
  color: #222;
}
body.light-mode .copy-btn {
  background: linear-gradient(to bottom right, #0099ff, #005577);
  color: #fff;
}
body.light-mode .pay-tabs button {
  background: #f0f0f0;
  color: #333;
}
body.light-mode .pay-tabs button.active {
  background: #00cccc;
  color: #000;
}

/* 主题切换按钮 */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 14px;
}
.icon {
  width: 28px;
  height: 28px;
  color: #00ffff;
  transition: transform 0.4s ease;
}
.icon.hidden {
  display: none;
}

/* Tabs */
.pay-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.pay-tabs button {
  flex: 1;
  padding: 10px;
  margin: 0 6px;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #00cccc;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}
.pay-tabs button.active {
  background: #00cccc;
  color: black;
  font-weight: bold;
}

/* 地址框 */
.address-box {
  padding: 12px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-weight: bold;
  margin-bottom: 14px;
  word-break: break-word;
}

/* 复制按钮 */
.copy-btn {
  padding: 10px 20px;
  font-size: 15px;
  background: linear-gradient(to bottom right, #33ccff, #0099cc);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 153, 204, 0.4);
  transition: transform 0.2s ease;
}
.copy-btn:hover {
  transform: scale(1.05);
}

/* 二维码图像 */
.qr-img {
  margin-top: 16px;
  max-width: 100%;
  max-height: 40vh;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  object-fit: contain;
}

/* 提示气泡 */
.tip {
  display: none;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #00cccc;
  color: #000;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 255, 255, 0.4);
  opacity: 0.9;
  z-index: 10;
}


/* 手机优化 */
@media screen and (max-width: 600px) {
  .donate-box {
    margin: 24px auto 16px;
  }
}