/* 企微二维码加客服弹层（2026-12-01） */
.wkq-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, .45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.wkq-mask.is-open { display: flex; }

.wkq-card {
  position: relative;
  width: min(560px, 94vw);
  max-height: 90vh;
  overflow: auto;
  padding: 26px 22px 20px;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
}
.wkq-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2f4f8;
  color: #6b7684;
  cursor: pointer;
}
.wkq-close:hover { background: #e6ebf2; color: #1f2530; }

.wkq-title {
  margin: 2px 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: #1f2530;
}
.wkq-sub {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7684;
}

.wkq-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.wkq-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 12px 12px;
  border: 1.5px solid #e6ebf2;
  border-radius: 14px;
  background: #fff;
}
.wkq-item.is-main {
  border-color: #2f6bff;
  box-shadow: 0 8px 20px rgba(47, 107, 255, .12);
}
.wkq-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  padding: 2px 10px;
  border-radius: 999px;
  background: #2f6bff;
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  font-style: normal;
  white-space: nowrap;
  transform: translateX(-50%);
}
.wkq-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.wkq-item b {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: #1f2530;
}
.wkq-item small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #9aa4b2;
}

.wkq-btn {
  display: block;
  max-width: 360px;
  margin: 16px auto 0;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(140deg, #2ad673 0%, #07c160 60%, #06ad56 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(7, 193, 96, .28);
}
.wkq-btn:hover { color: #fff; filter: brightness(1.04); }

.wkq-tip {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #9aa4b2;
}

/* 暗色主题 */
html[data-theme="dark"] .wkq-card { background: #1b2230; color: #e8edf3; }
html[data-theme="dark"] .wkq-title { color: #e8edf3; }
html[data-theme="dark"] .wkq-sub { color: #8b96a7; }
html[data-theme="dark"] .wkq-item { background: #202838; border-color: #2a3444; }
html[data-theme="dark"] .wkq-item.is-main { border-color: #4d7dff; }
html[data-theme="dark"] .wkq-item b { color: #e8edf3; }
html[data-theme="dark"] .wkq-close { background: #2a3444; color: #b9c3d1; }
html[data-theme="dark"] .wkq-img { background: #fff; }

/* 小屏 */
@media (max-width: 480px) {
  .wkq-card { padding: 22px 14px 16px; }
  .wkq-title { font-size: 18px; }
  .wkq-grid { gap: 8px; }
  .wkq-item { padding: 12px 8px 10px; }
  .wkq-item b { font-size: 14px; }
}