/* 小薇API：钱包页“获取兑换码”入口增强 */
#wallet-add-funds p.text-muted-foreground.text-xs:has(a[href*="qianxun1688.com"]) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 3px;
  margin-top: 14px !important;
  padding: 15px 16px !important;
  border: 1px solid #fdba74;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 55%, #fff7ed 100%);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.14);
  color: #9a3412 !important;
  font-size: 0 !important;
}

#wallet-add-funds p.text-muted-foreground.text-xs:has(a[href*="qianxun1688.com"])::before {
  content: "🎁 还没有兑换码？";
  grid-column: 1;
  grid-row: 1;
  color: #9a3412;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

#wallet-add-funds p.text-muted-foreground.text-xs:has(a[href*="qianxun1688.com"])::after {
  content: "购买后复制兑换码，在上方输入即可到账";
  grid-column: 1;
  grid-row: 2;
  color: #c2410c;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

#wallet-add-funds p.text-muted-foreground.text-xs a[href*="qianxun1688.com"] {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px !important;
  border: 1px solid #ea580c;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.28);
  color: #fff !important;
  font-size: 0 !important;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  animation: xiaowei-redeem-glow 2.6s ease-in-out infinite;
}

#wallet-add-funds p.text-muted-foreground.text-xs a[href*="qianxun1688.com"]::before {
  content: "立即获取兑换码";
  font-size: 14px;
  line-height: 1;
}

#wallet-add-funds p.text-muted-foreground.text-xs a[href*="qianxun1688.com"] svg {
  width: 14px !important;
  height: 14px !important;
  margin-left: 7px;
}

#wallet-add-funds p.text-muted-foreground.text-xs a[href*="qianxun1688.com"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(234, 88, 12, 0.34);
  filter: brightness(1.04);
}

.dark #wallet-add-funds p.text-muted-foreground.text-xs:has(a[href*="qianxun1688.com"]) {
  border-color: #9a3412;
  background: linear-gradient(135deg, #2b160c 0%, #24180d 100%);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.12);
}

.dark #wallet-add-funds p.text-muted-foreground.text-xs:has(a[href*="qianxun1688.com"])::before {
  color: #fed7aa;
}

.dark #wallet-add-funds p.text-muted-foreground.text-xs:has(a[href*="qianxun1688.com"])::after {
  color: #fdba74;
}

@keyframes xiaowei-redeem-glow {
  0%, 100% { box-shadow: 0 6px 16px rgba(234, 88, 12, 0.24); }
  50% { box-shadow: 0 8px 24px rgba(234, 88, 12, 0.42); }
}

@media (max-width: 640px) {
  #wallet-add-funds p.text-muted-foreground.text-xs:has(a[href*="qianxun1688.com"]) {
    grid-template-columns: 1fr;
    padding: 14px !important;
  }

  #wallet-add-funds p.text-muted-foreground.text-xs:has(a[href*="qianxun1688.com"])::before,
  #wallet-add-funds p.text-muted-foreground.text-xs:has(a[href*="qianxun1688.com"])::after,
  #wallet-add-funds p.text-muted-foreground.text-xs a[href*="qianxun1688.com"] {
    grid-column: 1;
  }

  #wallet-add-funds p.text-muted-foreground.text-xs a[href*="qianxun1688.com"] {
    grid-row: 3;
    width: 100%;
    margin-top: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #wallet-add-funds p.text-muted-foreground.text-xs a[href*="qianxun1688.com"] {
    animation: none;
    transition: none;
  }
}
/* Do not expose the New API implementation version in the public brand area. */
button[aria-label^='System updates, current version:'],
button[aria-label^='系统更新，当前版本：'] {
  display: none !important;
}
