/* ===========================================================================
   支持站长 · 样式（右下角悬窗 + 页脚通栏）
   依赖 style.css 中的变量：--brand --ink --ink-soft --line --radius --shadow
   =========================================================================== */

/* ---------- 页脚通栏 ---------- */
.support-strip {
  display: flex; align-items: center; gap: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 28px;
}
.support-strip .qr {
  width: 84px; height: 90px; flex: 0 0 auto;
  border-radius: 8px; background: #fff; display: block;
}
.support-strip h4 {
  display: flex; align-items: center; gap: 7px;
  color: #fff; font-size: 15px; margin: 0 0 7px;
}
.support-strip h4 svg { flex: 0 0 auto; }
.support-strip p { margin: 0; color: #94a3b8; font-size: 13px; line-height: 1.65; }
.support-strip .hint { color: #64748b; font-size: 12px; margin-top: 7px; }

/* ---------- 右下角悬窗按钮 ---------- */
#sp-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink, #1f2937);
  background: #fff;
  border: 1px solid var(--line, #e5e9f0);
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#sp-fab:hover { transform: translateY(-1px); box-shadow: 0 9px 28px rgba(15, 23, 42, 0.2); }
#sp-fab svg { flex: 0 0 auto; }

/* ---------- 弹窗 ---------- */
#sp-mask {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease;
}
#sp-mask.open { opacity: 1; pointer-events: auto; }

#sp-modal {
  width: 100%; max-width: 380px;
  max-height: calc(100vh - 40px); overflow: auto;
  background: #fff; border-radius: 16px;
  padding: 20px 22px 18px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
  transform: translateY(8px);
  transition: transform 0.18s ease;
}
#sp-mask.open #sp-modal { transform: translateY(0); }

.sp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sp-head strong { font-size: 17px; color: var(--ink, #1f2937); }
.sp-close {
  margin-left: auto; width: 30px; height: 30px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: 8px;
  font-size: 22px; line-height: 1; color: #94a3b8; cursor: pointer;
}
.sp-close:hover { background: #f1f5f9; color: var(--ink, #1f2937); }

.sp-text { margin: 0 0 16px; font-size: 14px; line-height: 1.7; color: var(--ink-soft, #5b6675); }

.sp-qr { display: flex; align-items: center; gap: 16px; }
.sp-qr img {
  width: 132px; height: 140px; flex: 0 0 auto; display: block;
  border: 1px solid var(--line, #e5e9f0); border-radius: 10px; background: #fff;
}
.sp-qr-tip { min-width: 0; }
.sp-qr-tip p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink, #1f2937); }
.sp-qr-tip p.muted { margin-top: 4px; font-size: 12px; color: #94a3b8; }

.sp-foot {
  margin: 16px 0 0; padding-top: 12px;
  border-top: 1px solid var(--line, #e5e9f0);
  font-size: 12px; color: #94a3b8; text-align: center;
}

/* ---------- 响应式 ---------- */
@media (max-width: 820px) {
  .support-strip { flex-direction: column; align-items: flex-start; gap: 12px; }
  .support-strip .qr { width: 76px; height: 81px; }
  #sp-fab { right: 12px; bottom: 12px; padding: 9px 14px; font-size: 13px; }
  #sp-modal { padding: 18px; }
  .sp-qr img { width: 112px; height: 119px; }
}

/* ---------- 打印 ---------- */
@media print {
  #sp-fab, #sp-mask, .support-strip { display: none !important; }
}
