.wechat-bridge {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: min(390px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(212, 166, 78, 0.34);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(216, 162, 72, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 52px rgba(12, 53, 70, 0.2);
  color: #123d4b;
  backdrop-filter: blur(18px);
}

.wechat-bridge[hidden] {
  display: none !important;
}

.wechat-bridge-inner {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
}

.wechat-bridge-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #103d51;
  color: #e7b253;
}

.wechat-bridge-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wechat-bridge-copy small {
  display: block;
  margin-bottom: 3px;
  color: #a06f20;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.wechat-bridge-copy strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.wechat-bridge-copy p {
  margin: 6px 0 0;
  color: #5b7279;
  font-size: 12px;
  line-height: 1.65;
}

.wechat-bridge-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.wechat-bridge-link,
.wechat-bridge-close {
  min-height: 44px;
  border-radius: 13px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.wechat-bridge-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: #103d51;
  color: #fff;
  text-decoration: none;
}

body .wechat-bridge .wechat-bridge-link {
  color: #fff !important;
}

body .wechat-bridge .wechat-bridge-link span {
  color: inherit !important;
}

.wechat-bridge-link:hover,
.wechat-bridge-link:focus-visible {
  background: #0b2f3f;
}

.wechat-bridge-close {
  width: 74px;
  border: 1px solid #d8e5e3;
  background: #fff;
  color: #587178;
}

.wechat-bridge-close:hover,
.wechat-bridge-close:focus-visible {
  border-color: #c9d9d6;
  color: #103d51;
}

.wechat-bridge-boundary {
  grid-column: 1 / -1;
  margin-top: 9px;
  color: #74898d;
  font-size: 10px;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .wechat-bridge {
    left: 12px;
    right: 12px;
    bottom: 76px;
    width: auto;
    padding: 12px;
    border-radius: 18px;
  }

  .wechat-bridge-inner {
    grid-template-columns: 34px 1fr;
    gap: 10px;
  }

  .wechat-bridge-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .wechat-bridge-copy strong {
    font-size: 14px;
  }

  .wechat-bridge-copy p {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wechat-bridge-link,
  .wechat-bridge-close {
    transition: none !important;
  }
}
