/* ============================================================
 * QANSUN 首页漂浮屏 · 最新二手车现车广告
 * 固定右下角悬浮卡片，轮播 外观→内饰→空间 图片动画。
 * 深色卡片 + 金色 QANSUN 风格。
 * ============================================================ */

.ucf {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9990;
  width: 304px;
  background: #0a1020;
  border: 1px solid rgba(232, 193, 90, .35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(232, 193, 90, .08);
  /* 漂浮漂移动画由 JS 驱动 left/top，这里声明 will-change 优化渲染；right/bottom 仅作无 JS 时的 fallback */
  will-change: left, top;
  animation: ucf-in .5s cubic-bezier(.2, .7, .3, 1);
  transition: opacity .3s ease, transform .3s ease;
}
@keyframes ucf-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.ucf--out {
  opacity: 0;
  transform: translateY(24px);
}

/* 关闭按钮（右上角） */
.ucf-close {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 6;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.ucf-close:hover { background: rgba(0, 0, 0, .82); }

/* 顶部徽章（左上角） */
.ucf-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 5;
  background: linear-gradient(135deg, #e8c15a, #c9a227);
  color: #1a1505;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 4px 11px;
  border-radius: 20px;
  pointer-events: none;
}

/* 图片轮播区 */
.ucf-stage {
  position: relative;
  height: 200px;
  background: #05080f;
  cursor: pointer;
}
.ucf-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.ucf-img.show { opacity: 1; }

/* 指示点 */
.ucf-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 4;
}
.ucf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .38);
  transition: all .3s ease;
}
.ucf-dot.active {
  width: 18px;
  border-radius: 4px;
  background: #e8c15a;
}

/* 信息区 */
.ucf-body { padding: 12px 14px 14px; }
.ucf-name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}
.ucf-price {
  font-size: 18px;
  font-weight: 900;
  color: #e8c15a;
  margin-bottom: 11px;
  letter-spacing: .01em;
}
.ucf-price .ucf-usd {
  font-size: 13px;
  font-weight: 700;
  color: #f2a154;
  margin-left: 7px;
}

/* 操作按钮 */
.ucf-actions { display: flex; gap: 8px; }
.ucf-view, .ucf-wa {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 6px;
  border-radius: 9px;
  text-decoration: none;
  transition: transform .15s ease;
}
.ucf-view {
  background: rgba(232, 193, 90, .12);
  color: #e8c15a;
  border: 1px solid rgba(232, 193, 90, .4);
}
.ucf-wa {
  background: #25d366;
  color: #062b15;
}
.ucf-view:hover, .ucf-wa:hover { transform: translateY(-1px); }

@media (max-width: 720px) {
  .ucf { width: 240px; right: 12px; bottom: 12px; }
  .ucf-stage { height: 150px; }
  .ucf-name { font-size: 14px; }
  .ucf-price { font-size: 16px; }
}
