/* ============ 微信活码 - 落地页样式（移动优先） ============ */
:root {
  --bg: #f7f8fa;
  --card: #fff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #eef0f2;
  --accent: #07c160;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ---- 顶部安全条 ---- */
.safe-bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 7px;
  padding: 11px 16px;
  font-size: 12.5px; color: #15803d;
  background: rgba(240,253,244,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #d1fae5;
}
.safe-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}

/* ---- 容器 ---- */
.lp-wrap {
  min-height: calc(100vh - 44px);
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 18px 50px;
  background:
    radial-gradient(900px 340px at 50% -120px, rgba(7,193,96,.09), transparent 70%),
    var(--bg);
}

.lp-card {
  width: 100%; max-width: 400px;
  background: var(--card);
  border-radius: 18px;
  padding: 28px 22px 26px;
  box-shadow: 0 10px 40px rgba(17,24,39,.07);
  text-align: center;
}

.lp-title {
  font-size: 19px; font-weight: 700; letter-spacing: -.01em;
  line-height: 1.4; word-break: break-word;
}
.lp-sub { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---- 二维码 ---- */
.qr-box {
  width: 232px; max-width: 78%;
  margin: 22px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(17,24,39,.07);
}
.qr-box img { width: 100%; height: auto; display: block; border-radius: 8px; }

/* ---- 长按提示 ---- */
.lp-hint {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px; padding: 8px 18px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #15803d; font-size: 13.5px; font-weight: 600;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  animation: pulse 1.7s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.75); }
}

/* ---- 群主微信区 ---- */
.lp-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 26px 0 18px;
  font-size: 12.5px; color: #9ca3af;
}
.lp-divider::before, .lp-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

.owner-box {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 18px 16px;
  background: #fafbfc; border: 1px solid var(--line);
  border-radius: 12px; text-align: center;
}
.owner-qr {
  width: 136px; height: 136px; flex-shrink: 0;
  padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
}
.owner-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.owner-info { width: 100%; min-width: 0; }
.owner-label { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }

/* ---- 微信号复制按钮 ---- */
.wxid-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; max-width: 100%;
  padding: 10px 14px;
  background: #fff; border: 1px solid #bbf7d0;
  border-radius: 9px;
  font-size: 13px; color: var(--ink);
  cursor: pointer; transition: .15s;
  font-family: inherit;
}
.wxid-btn:hover { border-color: var(--accent); background: #f0fdf4; }
.wxid-btn:active { transform: scale(.98); }
.wxid-btn > span:first-child { flex-shrink: 0; color: var(--muted); }
.wxid-btn b {
  color: var(--accent); font-weight: 700;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wxid-btn.wide { margin-top: 18px; padding: 12px; }
.copy-tag {
  flex-shrink: 0;
  padding: 2px 8px; border-radius: 5px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600;
}

/* ---- 文本渠道内容 ---- */
.text-content {
  margin-top: 20px; padding: 16px;
  background: #fafbfc; border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14.5px; line-height: 1.85;
  color: #374151; text-align: left;
  word-break: break-word;
  max-height: 60vh; overflow-y: auto;
}

/* ---- 状态页 ---- */
.status-card { padding-top: 44px; padding-bottom: 44px; }
.status-icon {
  font-size: 34px; margin-bottom: 12px;
  color: #d1d5db;
}
.home-link {
  display: inline-block; margin-top: 20px;
  padding: 9px 22px; border-radius: 9px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600;
}

/* ---- Toast ---- */
.toast {
  position: fixed; left: 50%; top: 42%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 13px 26px;
  background: rgba(17,24,39,.82);
  color: #fff; font-size: 14px; font-weight: 600;
  border-radius: 11px;
  backdrop-filter: blur(6px);
  animation: toastIn .18s ease-out;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---- 深色模式 ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --card: #171a1f;
    --ink: #e8eaed;
    --muted: #9aa0a6;
    --line: #262a30;
  }
  .safe-bar { background: rgba(20,45,32,.9); border-bottom-color: #1e3a29; color: #6ee7a0; }
  .qr-box, .owner-qr { background: #fff; border-color: #2a2f36; }
  .lp-hint { background: rgba(7,193,96,.12); border-color: rgba(7,193,96,.3); color: #6ee7a0; }
  .owner-box { background: #1b1f24; border-color: var(--line); }
  .wxid-btn { background: #1f242a; border-color: rgba(7,193,96,.3); color: var(--ink); }
  .wxid-btn:hover { background: rgba(7,193,96,.12); }
  .text-content { background: #1b1f24; border-color: var(--line); color: #cfd3d8; }
  .status-icon { color: #4b5563; }
}

@media (max-width: 380px) {
  .lp-card { padding: 22px 16px; }
  .qr-box { width: 210px; }
  .owner-box { flex-direction: column; text-align: center; }
  .owner-info { width: 100%; }
}
