/* 小拐 · 特殊赏礼前台层 v3（跟随俱乐部原生浅色风格：#fff 卡片 / #111 标题 / #9ca3af 次要 / #ecc018 金色点缀） */
.q77-mask {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2147483000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(17, 17, 17, .45);
  opacity: 0;
  transition: opacity .22s ease;
}
.q77-mask.q77-open { opacity: 1; }

.q77-sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 1rem 1rem 0 0;
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  color: #111;
  background: #fff;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .08);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.22, .9, .28, 1);
}
.q77-mask.q77-open .q77-sheet { transform: translateY(0); }

.q77-handle {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: #e5e7eb;
  margin: 2px auto 8px;
}
.q77-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.q77-sheet-head-txt { min-width: 0; }
.q77-sheet-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #111;
  line-height: 1.35;
}
.q77-sheet-sub { margin-top: 3px; font-size: .75rem; color: #9ca3af; }
.q77-sheet-close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  line-height: 26px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.q77-sheet-body { padding-top: 12px; }

/* 打手信息 */
.q77-taker-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: .625rem;
  background: #fafafa;
}
.q77-mini-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #f0f0f0;
  background: #f3f4f6;
  flex: 0 0 auto;
}
.q77-mini-avatar-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e5e7eb, #d1d5db);
  color: #6b7280;
  font-weight: 600;
  font-size: 15px;
}
.q77-mini-info { flex: 1; min-width: 0; }
.q77-mini-name { font-size: .9375rem; font-weight: 600; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q77-mini-desc { font-size: .6875rem; color: #9ca3af; margin-top: 2px; }
.q77-mini-heart { display: none; }

/* 小节标题 */
.q77-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 2px 8px;
  font-size: .8125rem;
  font-weight: 600;
  color: #111;
}
.q77-sec::before {
  content: '';
  width: 3px;
  height: 12px;
  margin-right: 6px;
  border-radius: 2px;
  background: #ecc018;
}
.q77-sec > span { flex: 1; }
.q77-sec em { font-style: normal; font-size: .6875rem; font-weight: 400; color: #9ca3af; }

/* 打赏金额 */
.q77-amt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.q77-amt-grid.q77-amt-cols-4 { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.q77-amt-grid.q77-amt-cols-4 .q77-amt { font-size: 1rem; padding: 0 2px; }
.q77-amt {
  position: relative;
  height: 52px;
  border-radius: .625rem;
  border: 1px solid #f0f0f0;
  background: #f8f8f8;
  color: #374151;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.q77-amt:active { background: #f2f2f2; }
.q77-amt .q77-amt-cny { font-size: .75rem; font-weight: 500; margin-right: 1px; opacity: .7; }
.q77-amt.active {
  color: #b45309;
  border-color: #ecc018;
  background: rgba(236, 192, 24, .09);
}
.q77-amt .q77-rec {
  position: absolute;
  top: -6px;
  right: -3px;
  padding: 1px 5px;
  border-radius: 6px;
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  color: #fff;
  background: #f59e0b;
}

.q77-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  height: 44px;
  padding: 0 12px;
  border-radius: .625rem;
  background: #f8f8f8;
  border: 1px solid #f0f0f0;
  transition: border-color .16s ease;
}
.q77-custom:focus-within { border-color: #ecc018; }
.q77-custom-cny { color: #b45309; font-weight: 600; font-size: .875rem; }
.q77-custom-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #111;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
}
.q77-custom-input::placeholder { color: #c4c8ce; font-size: .8125rem; font-weight: 400; }
.q77-custom-range { font-size: .6875rem; color: #c4c8ce; white-space: nowrap; }

/* 支付方式 */
.q77-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.q77-pay-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 46px;
  border-radius: .625rem;
  border: 1px solid #f0f0f0;
  background: #f8f8f8;
  color: #4b5563;
  font-size: .8125rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.q77-pay-item:active { background: #f2f2f2; }
.q77-pay-ico { display: none; }
.q77-pay-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d1d5db;
  flex: 0 0 auto;
}
.q77-pay-item.active {
  border-color: #ecc018;
  background: rgba(236, 192, 24, .09);
  color: #b45309;
}
.q77-pay-item.active .q77-pay-dot { background: #ecc018; }

/* CTA */
.q77-cta {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #3d2e08;
  background: linear-gradient(90deg, #f5d565, #ecc018 45%, #d9a505);
  box-shadow: 0 4px 14px rgba(236, 192, 24, .35);
  cursor: pointer;
  transition: opacity .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.q77-cta:active { opacity: .9; }
.q77-cta:disabled { opacity: .6; }
.q77-cta-gift { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; box-shadow: 0 4px 12px rgba(249, 115, 22, .3); }
.q77-foot-tip { margin-top: 10px; text-align: center; font-size: .6875rem; color: #c4c8ce; }

/* 礼物 */
.q77-gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.q77-gift {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 4px 10px;
  border-radius: .75rem;
  border: 1px solid #f0f0f0;
  background: #f8f8f8;
  font-family: inherit;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.q77-gift:active { background: #f2f2f2; }
.q77-gift.active {
  border-color: #ecc018;
  background: rgba(236, 192, 24, .09);
}
.q77-gift-media { display: flex; align-items: center; justify-content: center; height: 52px; }
.q77-gift-img { width: 46px; height: 46px; object-fit: contain; }
.q77-gift-fb {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff7dc, #ffe9a8);
  color: #b45309;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
}
.q77-gift-name { font-size: .75rem; font-weight: 500; color: #4b5563; }
.q77-gift-price { font-size: .75rem; font-weight: 600; color: #b45309; }
.q77-gift.active .q77-gift-name { color: #b45309; }

.q77-qty-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.q77-qty {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 60px;
  padding: 7px 8px;
  border-radius: .625rem;
  border: 1px solid #f0f0f0;
  background: #f8f8f8;
  color: #4b5563;
  font-family: inherit;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.q77-qty b { font-size: .875rem; font-weight: 600; }
.q77-qty span { font-size: 9px; color: #9ca3af; white-space: nowrap; }
.q77-qty.active {
  border-color: #ecc018;
  background: rgba(236, 192, 24, .09);
  color: #b45309;
}
.q77-qty.active span { color: #b45309; }

.q77-total-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  font-size: .75rem;
  color: #9ca3af;
}
.q77-total-row .q77-total { font-size: 1.375rem; font-weight: 700; color: #b45309; }

/* 下单商品 */
.q77-goods-list { max-height: 52vh; overflow-y: auto; margin: 0 -2px; padding: 0 2px; }
.q77-goods-loading { padding: 28px 0; text-align: center; font-size: .8125rem; color: #9ca3af; }
.q77-goods {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  margin-bottom: 8px;
  border-radius: .625rem;
  border: 1px solid #f0f0f0;
  background: #fff;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.q77-goods:active { background: #fafafa; }
.q77-goods-img { width: 50px; height: 50px; border-radius: .375rem; object-fit: cover; flex: 0 0 auto; background: #f3f4f6; }
.q77-goods-img-ph { display: inline-flex; align-items: center; justify-content: center; color: #c4c8ce; font-size: 20px; }
.q77-goods-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.q77-goods-title { font-size: .8125rem; font-weight: 600; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q77-goods-sub { font-size: .625rem; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q77-goods-price { font-size: .875rem; font-weight: 600; color: #b45309; flex: 0 0 auto; }

/* 成功弹窗 */
.q77-success-mask {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 2147483500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, .4);
  opacity: 0;
  transition: opacity .22s ease;
}
.q77-success-mask.q77-open { opacity: 1; }
.q77-success {
  width: 220px;
  padding: 24px 18px 20px;
  border-radius: 1rem;
  text-align: center;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  transform: scale(.9);
  transition: transform .24s cubic-bezier(.2, 1.2, .4, 1);
}
.q77-success-mask.q77-open .q77-success { transform: scale(1); }
.q77-success-ring {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 26px;
  background: linear-gradient(135deg, #f5d565, #ecc018 55%, #d9a505);
  animation: q77Pop .4s cubic-bezier(.2, 1.4, .4, 1) both;
}
.q77-success-title { font-size: 1rem; font-weight: 600; color: #111; }
.q77-success-sub { margin-top: 6px; font-size: .75rem; line-height: 1.6; color: #9ca3af; }

/* Toast */
.q77-toast {
  position: fixed;
  left: 50%;
  bottom: 22%;
  z-index: 2147483600;
  max-width: 76vw;
  padding: 9px 15px;
  border-radius: .5rem;
  background: rgba(17, 17, 17, .82);
  color: #fff;
  font-size: .8125rem;
  line-height: 1.4;
  text-align: center;
  transform: translate(-50%, 8px);
  opacity: 0;
  transition: all .22s ease;
  pointer-events: none;
}
.q77-toast.q77-toast-show { opacity: 1; transform: translate(-50%, 0); }

/* 打手主页三个椭圆按钮 */
.q77-actions {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}
.bottom-bar.q77-has-actions > .btn-tip,
.bottom-bar.q77-has-actions > .btn-place { display: none !important; }

.q77-act {
  flex: 1 1 0;
  min-width: 0;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 4px;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: opacity .14s ease;
  -webkit-tap-highlight-color: transparent;
}
.q77-act:active { opacity: .88; }
.q77-act svg { width: 16px; height: 16px; flex: 0 0 auto; }
.q77-act-gift {
  background: linear-gradient(90deg, #f5d565, #ecc018 45%, #d9a505);
  color: #3d2e08;
  box-shadow: 0 4px 14px rgba(236, 192, 24, .35);
}
.q77-act-tip {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 4px 12px rgba(249, 115, 22, .3);
}
.q77-act-order {
  color: #b45309;
  background: #fff;
  border: 1px solid #ecc018;
}

/* 无原生底栏时的兜底 */
.q77-fixed-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: flex;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, .05);
}
.q77-fixed-bar .q77-act { height: 44px; }

/* 选人卡片语音胶囊 */
.q77-voice {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid #ecc018;
  background: rgba(236, 192, 24, .08);
  color: #b45309;
  font-size: 11px;
  line-height: 1.6;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.q77-voice svg { width: 10px; height: 10px; flex: 0 0 auto; }
.q77-voice em { font-style: normal; }
.q77-voice.q77-voice-on {
  background: linear-gradient(90deg, #f5d565, #ecc018);
  color: #3d2e08;
  border-color: transparent;
}

/* 礼物全屏特效 */
.q77-fx {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 2147483500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  animation: q77FxFade 4.1s ease-out forwards;
}
.q77-fx-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 192, 24, .3) 0%, rgba(245, 213, 101, .12) 42%, rgba(236, 192, 24, 0) 68%);
  animation: q77Aura 1.5s ease-out forwards;
}
.q77-fx-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 112px;
  margin: -56px 0 0 -56px;
  border-radius: 50%;
  border: 2px solid rgba(236, 192, 24, .45);
  animation: q77Ring 1.2s ease-out forwards;
}
.q77-fx-core {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: q77Core 3.6s cubic-bezier(.2, .85, .3, 1) forwards;
}
.q77-fx-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(236, 192, 24, .3));
}
.q77-fx-emoji {
  width: 104px;
  height: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff7dc, #ffe9a8);
  color: #b45309;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  filter: drop-shadow(0 8px 18px rgba(236, 192, 24, .3));
}
.q77-fx-sparks { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 1; }
.q77-spark {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  animation: q77Spark 1.15s ease-out forwards;
  opacity: 0;
}
.q77-fx-card {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  padding: 8px 18px;
  border-radius: .75rem;
  text-align: center;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
  opacity: 0;
  animation: q77FxText 3.4s ease-out .15s forwards;
}
.q77-fx-send { font-size: .6875rem; color: #9ca3af; }
.q77-fx-send b { color: #6b7280; font-weight: 500; }
.q77-fx-name { margin-top: 2px; font-size: .9375rem; font-weight: 600; color: #111; }
.q77-fx-name b { color: #b45309; font-weight: 600; }

@keyframes q77FxFade {
  0% { opacity: 0; }
  7% { opacity: 1; }
  74% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes q77Aura {
  0% { opacity: 0; transform: scale(.4); }
  25% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.5); }
}
@keyframes q77Ring {
  0% { opacity: .8; transform: scale(.4); }
  100% { opacity: 0; transform: scale(2.4); }
}
@keyframes q77Core {
  0% { opacity: 0; transform: scale(.3) translateY(40px); }
  13% { opacity: 1; transform: scale(1.12) translateY(0); }
  22% { transform: scale(1); }
  62% { opacity: 1; transform: scale(1.01) translateY(-14px); }
  100% { opacity: 0; transform: scale(1.02) translateY(-80px); }
}
@keyframes q77Spark {
  0% { opacity: 0; transform: translate(0, 0) scale(.4); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.9); }
}
@keyframes q77FxText {
  0% { opacity: 0; transform: translateY(10px); }
  12% { opacity: 1; transform: translateY(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}
@keyframes q77Pop {
  0% { transform: scale(.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
