/* 页脚社交图标 + 二维码弹窗（后台「页脚社交图标」统一控制） */
.ydn-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
.ydn-social:empty { display: none; }

.ydn-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 3px;
  line-height: 1;
  color: #fff;
  background-color: transparent;
  transition: background-color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.ydn-social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}
.ydn-social-link:hover,
.ydn-social-link:focus {
  background-color: rgba(255, 255, 255, 0.13);
  color: #fff;
  outline: none;
}

/* CMS 详情页的深色页脚（assets/css/site.css） */
.site-footer .ydn-social-wrap { padding: 0; }
.site-footer .ydn-social { padding: 28px 0 0; }
.site-footer .ydn-social-link { color: #f0e8da; }
.site-footer .ydn-social-link svg { width: 22px; height: 22px; }

/* 二维码弹窗 */
.ydn-qr-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  z-index: 2147483000;
}
.ydn-qr-modal.is-open { display: flex; }
body.ydn-qr-lock { overflow: hidden; }

.ydn-qr-dialog {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}
.ydn-qr-img {
  display: block;
  width: 400px;
  max-width: 84vw;
  max-height: 72vh;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  background: #fff;
}
.ydn-qr-close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  color: #6b645a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}
.ydn-qr-close:hover { color: #1a1814; }

@media (max-width: 480px) {
  .ydn-qr-dialog { padding: 10px; }
  .ydn-qr-img { width: 300px; }
  .ydn-qr-close { top: -12px; right: -12px; width: 30px; height: 30px; font-size: 20px; }
  .ydn-social-link { padding: 7px; }
}
