.social-contact {
  position: fixed;
  right: 20px;
  bottom: 120px;
  z-index: 99;
  width: 56px;
  padding: 30px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border: 1px solid #fff;
  border-radius: 40px;
  background: linear-gradient(179deg, #f3f8ff, #fff 56%, #f3f8ff 99%);
  box-shadow: 0 4px 10px rgba(49, 131, 255, .3);
  color: rgba(0, 0, 0, .88);
  font-family: 'Source Han Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.social-contact, .social-contact * { box-sizing: border-box; }
.social-contact-item { position: relative; width: 24px; height: 47px; flex-shrink: 0; }
.social-contact-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 47px;
  margin-left: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color .3s ease, transform .3s ease;
}
.social-contact-icon { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.social-contact-trigger:hover { transform: scale(1.05); }
.social-contact-trigger:hover, .social-contact-trigger[aria-expanded="true"], .social-contact a:hover { color: #3569fd; }
.social-contact :focus-visible { outline: 2px solid #3569fd; outline-offset: 4px; }
.social-contact-panel {
  position: absolute;
  right: calc(100% + 30px);
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
  max-width: calc(100vw - 104px);
  padding: 28px 32px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 4px 4px 10px rgba(121, 170, 255, .3);
  font-size: 14px;
  line-height: 1.5;
}
.social-contact-panel::after {
  content: '';
  position: absolute;
  left: 100%;
  top: calc(50% - 5px);
  border: 5px solid transparent;
  border-left-color: #fff;
}
.social-contact-panel p { margin: 0; text-align: center; }
.social-contact-panel a { color: inherit; text-decoration: none; }
.social-contact-phone a { display: flex; align-items: center; justify-content: center; gap: 6px; }
.social-contact-panel .social-contact-icon { width: 16px; height: 16px; }
.social-contact-hours { margin-top: 20px !important; font-size: 12px; color: rgba(0, 0, 0, .65); }
.social-contact-wechat { padding: 28px 32px; }
.social-contact-wechat img { display: block; width: 150px; height: 150px; max-width: 100%; margin: 0 auto 12px; object-fit: contain; }
.social-contact-phone .social-contact-hours { margin-top: 12px !important; color: rgba(0, 0, 0, .45); }
.social-contact [hidden] { display: none; }

@media (max-width: 1260px) {
  .social-contact { right: 10px; bottom: 100px; }
}
@media (max-width: 600px) {
  .social-contact { bottom: max(24px, env(safe-area-inset-bottom)); }
  .social-contact-panel { padding: 20px; }
}
@media (max-height: 480px) {
  .social-contact { bottom: 12px; padding-top: 16px; padding-bottom: 16px; gap: 12px; }
  .social-contact-wechat { top: 0; transform: translateY(-25%); }
}
@media (prefers-reduced-motion: reduce) {
  .social-contact-trigger { transition: none; }
}
