:root {
  --semi-color-primary: #7c5cff !important;
  --semi-color-primary-hover: #8f73ff !important;
  --semi-color-primary-active: #6848f5 !important;
  --semi-color-link: #5aa7ff !important;
}
.semi-button-primary, button[class*="primary"] {
  background: linear-gradient(135deg, #5aa7ff, #8b5cf6) !important;
  border: none !important;
}
.semi-navigation-item-selected, .semi-navigation-item-active {
  background: linear-gradient(90deg, rgba(66, 96, 168, .18), rgba(111, 70, 220, .16)) !important;
  border-radius: 12px !important;
}
#jin-api-brand-badge {
  position: fixed; left: 18px; top: 14px; z-index: 9999;
  display: flex; align-items: center; gap: 9px;
  padding: 7px 11px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(14,19,35,.90), rgba(24,31,55,.82));
  border: 1px solid rgba(91, 126, 220, .32);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  color: #eef3ff; font: 800 16px/1.1 Inter, "Microsoft YaHei", sans-serif;
  pointer-events: none;
}
#jin-api-brand-badge .mark { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, #5aa7ff, #9b6bff); }

/* WeChat QR support card for wallet page */
#jin-wechat-card {
  margin: 28px 24px 10px 24px;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 55%, #f0f7ff 100%);
  border: 1px solid rgba(80, 112, 180, .16);
  box-shadow: 0 12px 36px rgba(38, 60, 120, .10);
  display: flex; align-items: center; gap: 24px;
  max-width: 760px;
}
#jin-wechat-card .qr-wrap { width: 220px; height: 220px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px #edf1f7, 0 10px 26px rgba(0,0,0,.08); flex: 0 0 auto; }
#jin-wechat-card img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; display:block; }
#jin-wechat-card .wechat-info h3 { margin: 0 0 10px; font-size: 22px; color: #111827; }
#jin-wechat-card .wechat-info p { margin: 7px 0; color: #4b5563; line-height: 1.7; font-size: 15px; }
#jin-wechat-card .wechat-badge { display: inline-flex; align-items:center; gap:8px; margin-top: 12px; padding: 9px 13px; border-radius: 999px; color: #fff; font-weight: 700; background: linear-gradient(135deg,#22c55e,#16a34a); box-shadow: 0 8px 18px rgba(34,197,94,.24); }
@media (max-width: 900px) { #jin-wechat-card { flex-direction: column; align-items:flex-start; } }


/* Smaller Jin API header brand */
body a[href="/"]:has(span),
body a[href="/"]:has(img),
body header a[href="/"],
body nav a[href="/"] {
  transform: scale(.82) !important;
  transform-origin: left center !important;
}
body header a[href="/"] span,
body nav a[href="/"] span {
  font-size: 15px !important;
}
body header a[href="/"] img,
body nav a[href="/"] img,
body header a[href="/"] svg,
body nav a[href="/"] svg {
  max-width: 24px !important;
  max-height: 24px !important;
}
#jin-api-brand-badge {
  transform: scale(.82) !important;
  transform-origin: right bottom !important;
}


/* Remove extra injected Jin API floating logo/badge */
#jin-api-brand-badge { display: none !important; }

/* Remove decorative logo icon/mark around Jin API header brand, keep layout compact */
header a[href="/"] img,
nav a[href="/"] img,
header a[href="/"] svg,
nav a[href="/"] svg,
header a[href="/"] .mark,
nav a[href="/"] .mark {
  display: none !important;
}
header a[href="/"], nav a[href="/"] {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 8px !important;
  transform: none !important;
}
header a[href="/"] span, nav a[href="/"] span {
  font-size: 16px !important;
  color: #111827 !important;
  font-weight: 700 !important;
}
