/* ============================================================
 * 注入组件样式：联系客服按钮 / 访问量统计卡片 / 客服QQ设置项
 * （供 index.html 内联脚本动态创建的 DOM 使用）
 * ============================================================ */

/* ---------- 联系客服悬浮按钮 ---------- */
.cs-fab {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f6ef7, #7c5cff);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(79, 110, 247, .35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cs-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(79, 110, 247, .45);
}
.cs-fab:active { transform: translateY(0); }
.cs-fab svg { flex-shrink: 0; }

@media (min-width: 769px) {
  .cs-fab { bottom: 32px; right: 28px; }
}

/* ---------- 后台访问量统计卡片 ---------- */
.stats-grid .addon-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.stats-grid .addon-stat .stat-label {
  font-size: 13px;
  color: var(--muted);
}
.stats-grid .addon-stat .stat-value {
  font-size: 30px;
  font-weight: 700;
  margin: 6px 0;
  color: var(--text);
}
.stats-grid .addon-stat .stat-sub {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 后台设置：客服QQ ---------- */
.cs-setting {
  border-top: 1px dashed var(--border);
  margin-top: 20px;
  padding-top: 4px;
}
.cs-setting-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cs-setting-row .input {
  flex: 1;
  width: auto;
}
.cs-setting-row .btn { flex-shrink: 0; }
.cs-setting-msg {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
}
.cs-setting-msg.ok { color: #047857; }
.cs-setting-msg.err { color: #dc2626; }
