/* =========================================================
 * 顾客扫码访问 · 后台配置页
 * ========================================================= */
.share-state {
  border: 1px solid #d8e4de; border-left: 4px solid #35816e; border-radius: 10px;
  background: #f2f8f5; padding: 14px 18px; margin-bottom: 18px;
  font-size: 13px; line-height: 1.85; color: #3c4f48;
}
.share-state b { color: #173d34; }
.share-state code {
  background: #fff; border: 1px solid #dce7e1; border-radius: 4px;
  padding: 1px 6px; font-size: 12px; color: #1c5c4c; white-space: nowrap;
}
.share-state.local { border-left-color: #c08a3e; background: #fdf8ee; border-color: #eddfc4; }
.share-state.bad { border-left-color: #c2543f; background: #fdf2f0; border-color: #f0d4ce; }

.share-base-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share-base-row input[type="text"] {
  flex: 1 1 300px; min-width: 0; height: 40px; padding: 0 12px;
  border: 1px solid #d7e0da; border-radius: 8px; font-size: 13px; color: #243b33;
  background: #fff; font-family: Consolas, "Courier New", monospace;
}
.share-base-row input[type="text"]:focus { outline: none; border-color: #35816e; box-shadow: 0 0 0 3px rgba(53,129,110,.12); }

.share-warn { margin-top: 12px; border-radius: 8px; padding: 11px 14px; font-size: 12.5px; line-height: 1.8; }
.share-warn.bad { background: #fdf2f0; border: 1px solid #f0cdc5; color: #8b3c2d; }
.share-warn.ok { background: #f0f7f3; border: 1px solid #d5e8de; color: #2c6455; }
.share-warn b { color: inherit; }

.share-qr-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin-top: 6px;
}
.share-qr-card {
  border: 1px solid #e2e9e4; border-radius: 12px; background: #fff;
  padding: 16px; text-align: center; display: flex; flex-direction: column;
  box-shadow: 0 2px 10px rgba(20, 55, 45, .04);
}
.share-qr-card:first-child { border-color: #c8a96a; box-shadow: 0 2px 14px rgba(200,169,106,.16); }
.sqr-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sqr-head b { font-size: 14px; color: #173d34; font-family: "Songti SC", "SimSun", Georgia, serif; letter-spacing: 1px; }
.sqr-tag {
  font-size: 10px; letter-spacing: 1px; color: #a8803f; background: #faf3e4;
  border: 1px solid #e8d8b4; border-radius: 999px; padding: 2px 8px;
}
.sqr-desc { font-size: 11.5px; color: #8a9690; margin: 6px 0 12px; line-height: 1.6; text-align: left; }
.sqr-img {
  width: 100%; max-width: 220px; aspect-ratio: 1; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #edf1ee; border-radius: 8px; background: #fff; overflow: hidden;
}
.sqr-canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.sqr-err { font-size: 12px; color: #b0503c; padding: 12px; }
.sqr-url {
  font-size: 11px; color: #5f7068; word-break: break-all; line-height: 1.6;
  background: #f6f9f7; border-radius: 6px; padding: 7px 8px; min-height: 34px;
}
.sqr-btns { display: flex; gap: 8px; margin-top: 12px; justify-content: center; }
.sqr-btns .btn { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; }

.share-tip-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 4px; }
.share-tip-row .field { flex: 1 1 320px; min-width: 0; }
.share-stat {
  display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 16px;
  background: #f6f9f7; border: 1px solid #e2e9e4; border-radius: 8px;
  font-size: 12.5px; color: #6b7b73; margin: 4px 0 14px;
}
.share-stat b { font-size: 20px; color: #173d34; font-family: Georgia, serif; }
.share-migrate { margin: 0 0 14px; }
.share-migrate [hidden] { display: none !important; }

@media (max-width: 720px) {
  .share-qr-grid { grid-template-columns: minmax(0, 1fr); }
  .share-base-row input[type="text"] { flex: 1 1 100%; }
  .share-state code { white-space: normal; word-break: break-all; }
}
