/* QQ农场 HTML 壳：侧栏 + 底栏 + Uni iframe 弹窗 */
#qqfarm-shell {
  position: fixed;
  inset: 0;
  z-index: 90000;
  pointer-events: none;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

#qqfarm-shell * {
  box-sizing: border-box;
}

#qqfarm-shell .qfs-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}

#qqfarm-shell .qfs-side.left {
  left: 10px;
}

#qqfarm-shell .qfs-side.right {
  right: 10px;
}

#qqfarm-shell .qfs-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(180deg, #7ed957 0%, #2d8f4e 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  padding: 0 4px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(27, 67, 50, 0.28);
  -webkit-tap-highlight-color: transparent;
}

#qqfarm-shell .qfs-btn:active {
  transform: scale(0.96);
  filter: brightness(0.95);
}

#qqfarm-shell .qfs-dock {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 28px;
  background: rgba(27, 67, 50, 0.55);
  backdrop-filter: blur(6px);
  pointer-events: auto;
  max-width: calc(100vw - 24px);
}

#qqfarm-shell .qfs-dock .qfs-btn {
  width: 56px;
  height: 56px;
  font-size: 13px;
  background: linear-gradient(180deg, #f4a261 0%, #e76f51 100%);
  border-color: rgba(255, 244, 230, 0.9);
}

#qqfarm-shell .qfs-modal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

#qqfarm-shell .qfs-modal.open {
  display: flex;
}

#qqfarm-shell .qfs-card {
  position: relative;
  width: min(920px, 96vw);
  height: min(860px, 88vh);
  background: #f4fbf6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

#qqfarm-shell .qfs-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(27, 67, 50, 0.85);
  color: #fff;
  font-size: 22px;
  line-height: 36px;
  cursor: pointer;
}

#qqfarm-shell .qfs-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #e8f5e9;
}

#qqfarm-shell .qfs-toast {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  z-index: 5;
  max-width: 80vw;
  padding: 10px 16px;
  border-radius: 20px;
  background: rgba(27, 67, 50, 0.92);
  color: #fff;
  font-size: 13px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#qqfarm-shell .qfs-toast.show {
  opacity: 1;
}

#qqfarm-shell .qfs-rules {
  padding: 28px 20px 20px;
  color: #1b4332;
  font-size: 14px;
  line-height: 1.7;
  overflow: auto;
  height: 100%;
}

#qqfarm-shell .qfs-rules h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

#qqfarm-shell .qfs-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  gap: 12px;
  color: #1b4332;
  text-align: center;
}

#qqfarm-shell .qfs-qr input {
  width: min(100%, 420px);
  padding: 10px 12px;
  border: 1px solid #95d5b2;
  border-radius: 10px;
  font-size: 13px;
}

#qqfarm-shell .qfs-qr button {
  padding: 8px 16px;
  border: 0;
  border-radius: 16px;
  background: #2d8f4e;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 480px) {
  #qqfarm-shell .qfs-btn {
    width: 42px;
    height: 42px;
    font-size: 11px;
  }
  #qqfarm-shell .qfs-dock .qfs-btn {
    width: 48px;
    height: 48px;
    font-size: 12px;
  }
  #qqfarm-shell .qfs-side.left {
    left: 6px;
  }
  #qqfarm-shell .qfs-side.right {
    right: 6px;
  }
}
