:root {
  --bg: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #3b82f6;
  --primary-2: #60a5fa;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: #1f2937;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #21386c 0%, var(--bg) 50%, var(--bg) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
.container {
  max-width: 960px; margin: 0 auto; padding: 24px 16px 64px;
}
.card {
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  overflow: hidden;
}
header {
  display: flex; gap: 16px; align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.logo {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(145deg, #2563eb, #06b6d4);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 28px; letter-spacing: 1px;
  box-shadow: inset 0 0 12px rgba(255,255,255,0.3), 0 12px 30px rgba(37, 99, 235, 0.35);
  user-select: none;
}
.logo-img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: inset 0 0 12px rgba(255,255,255,0.15), 0 12px 30px rgba(37, 99, 235, 0.25);
  user-select: none;
}
.title { flex: 1; }
.title h1 {
  margin: 0; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(59,130,246,0.15);
  color: #cfe2ff;
  border: 1px solid rgba(59,130,246,0.35);
  border-radius: 999px; padding: 4px 10px; font-size: 12px;
}
.subtitle { margin: 6px 0 0 0; color: var(--muted); font-size: 13px; }

.grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px;
  padding: 16px;
}
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
}

.section {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
}
.section h2 { margin: 0 0 10px; font-size: 16px; }

.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
button.btn {
  appearance: none; border: 1px solid var(--border); background: rgba(255,255,255,0.05);
  color: var(--text); padding: 10px 16px; border-radius: 10px; font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s ease; outline: none;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.2); }
.btn.primary { background: linear-gradient(180deg, var(--primary), var(--primary-2)); border-color: rgba(255,255,255,0.2); color: #fff; }
.btn.success { background: linear-gradient(180deg, var(--success), #16a34a); color: #fff; border-color: rgba(255,255,255,0.15); }
.btn.warning { background: linear-gradient(180deg, var(--warning), #d97706); color: #111; border-color: rgba(0,0,0,0.2); }
.btn .emoji { font-size: 18px; line-height: 1; }

.kv { display: grid; grid-template-columns: 100px auto; gap: 8px; font-size: 14px; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--text); }

.qrcode-box { display: grid; place-items: center; gap: 12px; padding: 12px; }
.qrcode {
  width: 200px; height: 200px; border-radius: 12px; overflow: hidden;
  background: #fff; border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.qr-tip { font-size: 12px; color: var(--muted); text-align: center; }

.notes { margin: 8px 0 0; padding-left: 18px; }
.notes li { margin: 6px 0; }

.banner {
  margin: 12px 16px; padding: 10px 12px;
  border-radius: 10px; border: 1px dashed rgba(255,255,255,0.25);
  font-size: 13px; color: #fff;
  display: none;
}
.banner.wechat { background: rgba(59,130,246,0.2); }
.banner.qq { background: rgba(16,185,129,0.2); }

.helper {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.75);
  align-items: center; justify-content: center; padding: 16px;
}
.helper .panel {
  max-width: 520px; width: 100%; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
}
.helper .panel h3 { margin: 0 0 8px; }
.helper .panel p { margin: 8px 0; color: var(--muted); font-size: 14px; }
.helper .panel .steps { padding-left: 18px; }
.helper .panel .steps li { margin: 6px 0; }
.helper .panel .close { margin-top: 12px; }

footer {
  text-align: center; color: var(--muted); font-size: 12px; padding: 16px;
}

.toast {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: rgba(0,0,0,0.85); color: #fff; font-size: 13px; padding: 10px 14px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.toast.show { opacity: 1; pointer-events: auto; }

@media (max-width: 640px) {
  .btns {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 两列栅格 */
    gap: 12px;
    margin-bottom: 14px;
  }
  button.btn {
    width: 100%;
    justify-content: center; /* 文案与图标居中 */
    padding: 12px 14px;
    font-size: 15px;
  }
  .btn .emoji { font-size: 16px; }
}
/* 超小屏下（如 360 宽机型）降级为单列，避免挤压 */
@media (max-width: 380px) {
  .btns { grid-template-columns: 1fr; }
}