/* 微信内引导去小程序的弹层。
   底部横条太容易被无视，改成进来就弹的居中卡片 —— 这提示一天只出现一次，
   出现那一次就该被看见，否则等于没做。 */
.yq-weapp-mask {
  /* 不用 inset 简写：iOS 14.5 以前的 WKWebView 不认，蒙层会塌成一小块 */
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9999; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.yq-weapp-card {
  background: #fff; border-radius: 18px; padding: 28px 24px 20px;
  width: 100%; max-width: 320px; text-align: center;
}
.yq-weapp-h { font-size: 19px; font-weight: 700; color: #1a1d26; line-height: 1.4; }
.yq-weapp-ul {
  margin: 14px 0 0; padding: 0; list-style: none;
  font-size: 14px; color: #6b7280; line-height: 1.9; text-align: left;
}
.yq-weapp-ul li { padding-left: 18px; position: relative; }
.yq-weapp-ul li::before {
  content: ''; position: absolute; left: 4px; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: #3d5afe;
}
.yq-weapp-go {
  margin-top: 20px; padding: 13px 0; border-radius: 999px;
  background: #3d5afe; color: #fff; font-size: 16px; font-weight: 600;
}
.yq-weapp-qr {
  width: 150px; height: 150px; display: block; margin: 18px auto 0;
  border-radius: 10px; transition: transform .2s, box-shadow .2s;
}
/* 开放标签拉不起来时，点按钮把二维码亮一下，指明该走哪条路 */
.yq-weapp-qr-hl { transform: scale(1.08); box-shadow: 0 0 0 4px rgba(61,90,254,.35); }
.yq-weapp-qtip { margin-top: 8px; font-size: 12px; color: #9ca3af; }
.yq-weapp-x { margin-top: 16px; padding: 8px; font-size: 14px; color: #9ca3af; }

/* 「小程序里也有」的标记。挂在工具卡右上角 ——
   那个位置原来是个写死的"在线"，没有信息量；换成只有真有小程序版才出现的标记。 */
.yq-weapp-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; cursor: pointer;
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857;
  font-size: 12px; font-weight: 600; line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  white-space: nowrap;
}
.yq-weapp-badge:hover { background: #d1fae5; border-color: #6ee7b7; }
.yq-weapp-badge::before {
  content: ''; width: 12px; height: 12px; flex: none;
  background: currentColor;
  -webkit-mask: var(--yq-wx) center/contain no-repeat;
  mask: var(--yq-wx) center/contain no-repeat;
}
:root {
  /* 一个简化的小程序码轮廓，纯图形，不用微信的官方标识 */
  --yq-wx: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 3h7v7H3zM14 3h7v7h-7zM3 14h7v7H3zM14 14h3v3h-3zM19 19h2v2h-2z'/></svg>");
}
