/* 由 php/tools/build-assets.cjs 生成，请勿手改。
   改动样式请改 client/src 下对应的 .vue / .css 源文件后重新执行生成脚本。
   注意：这里按组件作用域重建了选择器（等价于 Vue 的 <style scoped>），
   对应 class 已经写在各模板的根元素上，挪动模板时不要漏掉。 */

/* ---- components/ContactFloat.vue  →  作用域 .cf-float ---- */
.cf.cf-float { position: fixed; right: 0; top: 68%; transform: translateY(-50%); z-index: 60; }

/* 右侧触发竖条 */
.cf-float .cf-tab {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 58px; padding: 20px 6px 16px;
  border: none; cursor: pointer;
  background: linear-gradient(180deg, #ff2e3d 0%, var(--brand, #C8102E) 100%);
  color: #fff; border-radius: 14px 0 0 14px;
  box-shadow: -6px 6px 24px rgba(200, 16, 46, 0.35);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease;
}
.cf-float .cf-tab:hover, .cf-float .cf-tab.open { transform: translateY(-50%) scale(1.04); box-shadow: -8px 10px 30px rgba(200, 16, 46, 0.45); }
.cf-float .tab-ico { font-size: 20px; line-height: 1; }
.cf-float .tab-text {
  writing-mode: vertical-rl; letter-spacing: 3px; font-size: 13px; font-weight: 600;
  padding: 2px 0; line-height: 1;
}

/* 展开面板 */
.cf-float .cf-panel {
  position: absolute; right: 66px; top: 0; transform: translateY(-50%);
  width: 216px; padding: 18px 16px 18px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 27, 43, 0.22), 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.08);
}
.cf-float .cf-close {
  position: absolute; top: 8px; right: 10px;
  border: none; background: none; color: var(--gray, #6e6e6e);
  font-size: 18px; line-height: 1; cursor: pointer; opacity: 0.6;
}
.cf-float .cf-close:hover { opacity: 1; color: var(--brand, #C8102E); }

.cf-float .cf-head { margin-bottom: 12px; }
.cf-float .cf-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(90deg, #C8102E, #ff2e3d);
  color: #fff; font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; letter-spacing: 1px;
}
.cf-float .cf-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25); animation: blink 1.6s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.cf-float .cf-sub { margin: 8px 0 0; font-size: 12px; color: var(--gray, #6e6e6e); line-height: 1.5; }

.cf-float .cf-qr {
  border-radius: 12px; overflow: hidden; background: #f7f9fc;
  border: 1px solid var(--line, #e4eaf2);
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.cf-float .cf-qr img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-float .qr-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--gray-light, #a8a8a8); }
.cf-float .qr-ico { font-size: 42px; line-height: 1; }
.cf-float .qr-tip { font-size: 11px; }

.cf-float .cf-line { text-align: center; margin-bottom: 12px; }
.cf-float .cf-heading { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink, #141414); }
.cf-float .cf-desc { margin: 4px 0 0; font-size: 11.5px; color: var(--gray, #6e6e6e); line-height: 1.5; }

.cf-float .cf-phone { text-align: center; margin-bottom: 12px; }
.cf-float .cf-tel { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.cf-float .tel-label { font-size: 11.5px; color: var(--gray, #6e6e6e); }
.cf-float .tel-num {
  font-size: 18px; font-weight: 800; color: var(--brand, #C8102E);
  font-variant-numeric: tabular-nums; letter-spacing: 1px;
}
.cf-float .cf-tel:hover .tel-num { text-decoration: underline; }

.cf-float .cf-btn {
  display: block; text-align: center;
  background: linear-gradient(90deg, #C8102E, #ff2e3d);
  color: #fff; border-radius: 999px; font-size: 13px; font-weight: 700;
  padding: 10px 0; text-decoration: none; letter-spacing: 2px;
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cf-float .cf-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(200, 16, 46, 0.4); }

.cf-float .slide-enter-active, .cf-float .slide-leave-active { transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cf-float .slide-enter-from, .cf-float .slide-leave-to { opacity: 0; transform: translateY(-50%) translateX(12px); }

/* 手机：再收窄一档 —— 窄屏右侧空间宝贵，46px 的竖条会明显压到卡片内容。
   面板宽度用 min() 兜底，避免在极窄屏（如 320px）上横向撑破。 */
@media (max-width: 640px) {
  .cf-float .cf-tab { width: 40px; padding: 12px 3px 10px; }
  .cf-float .tab-ico { font-size: 15px; }
  .cf-float .tab-text { font-size: 11px; letter-spacing: 1.5px; }
  .cf-float .cf-panel { right: 46px; width: min(184px, calc(100vw - 62px)); padding: 14px 12px; }
  .cf-float .tel-num { font-size: 16px; }
}
