/* ============================================================
   山风设计系统 · 联系客服（Contact / Support）
   ============================================================
   规范来源：
     new.shanfeng.wang 后台右上角「客服」按钮弹出的联系客服面板
     （/www/wwwroot/new.shanfeng.wang/backend/public/admin/admin.js
       客服弹窗实现 + admin.css 的 .me-kv 样式行）

   该组件是「纯样式 + 结构」，不含任何具体联系方式 ——
   联系方式由使用方通过 CSS 变量或内容覆盖注入。

   结构：
     .sf-contact          容器
       .sf-contact__qr    二维码区（图片 + 一行提示）
       .sf-contact__list  联系方式列表
         .sf-contact__row 单行（标签 + 值 + 复制按钮）
       .sf-contact__note  底部说明

   用法见同目录 README.md 的「联系客服」章节。
   ============================================================ */

.sf-contact {
  --sf-contact-label-width: 44px;
  --sf-contact-row-padding: 10px 4px;
  --sf-contact-row-border: #f0f2f5;
  --sf-contact-label-color: #94a3b8;
  --sf-contact-value-color: #111827;
  --sf-contact-hint-color: #64748b;
  --sf-contact-qr-max-width: 220px;
  --sf-contact-qr-radius: 10px;

  font-size: 14px;
  line-height: 1.7;
  color: var(--sf-text-primary, #2c3e50);
}

/* ---------------- 二维码区 ---------------- */
.sf-contact__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.sf-contact__qr img {
  max-width: var(--sf-contact-qr-max-width);
  width: 100%;
  border-radius: var(--sf-contact-qr-radius);
  display: block;
}

.sf-contact__qr-tip {
  font-size: 13.5px;
  color: var(--sf-contact-hint-color);
}

.sf-contact__qr-tip strong {
  color: var(--sf-contact-value-color);
  font-weight: 600;
}

/* ---------------- 联系方式列表 ---------------- */
.sf-contact__list {
  margin-top: 14px;
}

.sf-contact__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--sf-contact-row-padding);
  border-bottom: 1px solid var(--sf-contact-row-border);
  font-size: 14px;
}

.sf-contact__row:last-child {
  border-bottom: 0;
}

.sf-contact__label {
  color: var(--sf-contact-label-color);
  min-width: var(--sf-contact-label-width);
  flex-shrink: 0;
}

.sf-contact__value {
  flex: 1;
  min-width: 0;
  color: var(--sf-contact-value-color);
  font-weight: 600;
  word-break: break-all;
}

.sf-contact__value a {
  color: inherit;
  text-decoration: none;
}

.sf-contact__value a:hover {
  color: var(--sf-accent, #3b82f6);
}

/* 复制按钮：白底细边的小按钮，与后台按钮语言一致 */
.sf-contact__copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 26px;
  padding: 0 12px;
  border: 1px solid var(--sf-border-light, #e8ecf1);
  border-radius: 8px;
  background: #fff;
  color: var(--sf-text-secondary, #64748b);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: var(--sf-transition, all .25s cubic-bezier(.4, 0, .2, 1));
}

.sf-contact__copy:hover {
  border-color: #bfdbfe;
  color: var(--sf-accent, #3b82f6);
  background: var(--sf-bg-page, #f5f6f8);
}

.sf-contact__copy:focus-visible {
  outline: none;
  border-color: var(--sf-accent, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

/* 复制成功后短暂变绿 */
.sf-contact__copy.is-done {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

/* ---------------- 底部说明 ---------------- */
.sf-contact__note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--sf-text-secondary, #64748b);
}

/* ---------------- 联系客服入口按钮 ----------------
   顶栏右上角等处弹出客服面板用的标准按钮：
   浅蓝底 + 主色蓝字 + 圆气泡图标，悬停加深。 */
.sf-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--sf-transition, all .25s cubic-bezier(.4, 0, .2, 1));
}

.sf-contact-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.sf-contact-btn:focus-visible {
  outline: none;
  border-color: var(--sf-accent, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.sf-contact-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ---------------- 紧凑变体（放在顶栏气泡里时用） ---------------- */
.sf-contact--compact {
  font-size: 13.5px;
}

.sf-contact--compact .sf-contact__qr img {
  --sf-contact-qr-max-width: 180px;
}

.sf-contact--compact .sf-contact__list {
  margin-top: 10px;
}
