/* ============================================================
   漂浮大图咨询卡（专为专测设计）
   - 整体为浮动右侧大卡
   - 顶部大图为点击区：点击任何位置 → 易聊
   - 右上有 X 关闭按钮
   ============================================================ */

/* === 关键帧 === */
@keyframes float-bob {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 10px)); }
}

@keyframes float-shadow-pulse {
  0%, 100% { box-shadow: 0 24px 60px rgba(10, 62, 176, 0.22), 0 8px 20px rgba(10, 62, 176, 0.10); }
  50% { box-shadow: 0 32px 80px rgba(10, 62, 176, 0.30), 0 12px 28px rgba(10, 62, 176, 0.14); }
}

@keyframes shine-sweep {
  0% { transform: translateX(-100%) skewX(-18deg); }
  60%, 100% { transform: translateX(220%) skewX(-18deg); }
}

@keyframes glow-breath {
  0%, 100% { opacity: 0.40; transform: scale(1); }
  50% { opacity: 0.70; transform: scale(1.10); }
}

@keyframes hint-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

@keyframes tick-pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes cta-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

@keyframes cta-shine {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes ring-ripple {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.70); }
  100% { box-shadow: 0 0 0 16px rgba(251, 191, 36, 0); }
}

@keyframes logo-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(2deg); }
}

/* === 主容器 === */
.float-card {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 90;
  width: 680px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  font-family: var(--font-body);
  transform-origin: center center;
  transform: translate(-50%, -50%);
  animation: float-bob 4s ease-in-out infinite, float-shadow-pulse 3.5s ease-in-out infinite;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.float-card.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
  pointer-events: none;
}

/* === 外发光（呼吸光晕） === */
.float-card-glow {
  position: absolute;
  inset: -24px;
  background: radial-gradient(circle at 50% 30%, rgba(28, 100, 242, 0.22) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
  animation: glow-breath 3.5s ease-in-out infinite;
  border-radius: 28px;
  filter: blur(2px);
}

/* === 关闭按钮（始终醒目可见，置顶右上） === */
.float-card-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.30);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.float-card-close svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.8;
}

.float-card-close:hover {
  background: #e11d48;
  border-color: #e11d48;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.45);
}

.float-card-close:active {
  transform: scale(0.95) rotate(90deg);
}

/* === 顶部品牌信息区（无图片，纯文字+图标） === */
.float-card-image {
  position: relative;
  display: block;
  width: 100%;
  height: 168px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  background:
    linear-gradient(135deg, #0a3eb0 0%, #1c64f2 60%, #2a7ef0 100%);
  transition: filter var(--t-fast);
}

.float-card-image::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 70%;
  height: 220%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.float-card-image:hover {
  filter: brightness(1.08);
}

/* 文字叠层 */
.float-card-image-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.float-card-image-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.float-card-image-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.30);
  animation: logo-bob 3.5s ease-in-out infinite;
}

.float-card-image-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.float-card-image-text {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.float-card-image-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.10em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.float-card-image-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-extrabold);
  line-height: 1.25;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  letter-spacing: -0.01em;
}

/* 点击提示条 */
.float-card-image-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #fff;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  animation: hint-bob 2.4s ease-in-out infinite;
  transition: background var(--t-fast);
}

.float-card-image:hover .float-card-image-hint {
  background: rgba(255, 255, 255, 0.32);
}

.float-card-image-hint svg {
  width: 14px;
  height: 14px;
  color: var(--color-gold);
}

.float-card-image-arrow {
  width: 12px;
  height: 12px;
  margin-left: 2px;
  animation: arrow-nudge 1.5s ease-in-out infinite;
}

/* === 顶部显著电话条 === */
.float-card-hotline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 20px;
  background: linear-gradient(95deg, #fff5e6 0%, #ffe9c8 50%, #ffd9a3 100%);
  border-bottom: 1px solid rgba(212, 165, 116, 0.30);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background var(--t-fast);
}

.float-card-hotline::after {
  content: "立即联系";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  color: #b45309;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(212, 165, 116, 0.50);
  letter-spacing: 0.04em;
  transition: transform var(--t-fast), background var(--t-fast);
}

.float-card-hotline:hover {
  background: linear-gradient(95deg, #fff0d6 0%, #ffdfa8 50%, #ffc97a 100%);
}

.float-card-hotline:hover::after {
  transform: translateY(-50%) translateX(-2px);
  background: #fff;
}

.float-card-hotline-icon {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.30);
}

.float-card-hotline-icon svg {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 2;
}

/* 电话图标外圈光晕脉冲 */
.float-card-hotline-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(234, 88, 12, 0.55);
  animation: hotline-ring 2.2s ease-out infinite;
}

.float-card-hotline-ring-delay {
  animation-delay: 1.1s;
}

@keyframes hotline-ring {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.float-card-hotline-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.float-card-hotline-label {
  font-size: 0.75rem;
  color: #b45309;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.10em;
  margin-bottom: 2px;
}

.float-card-hotline-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--fw-extrabold);
  color: #c2410c;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* === 内容区（宽卡：左信息右按钮双列） === */
.float-card-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.75rem;
  align-items: center;
  padding: 22px 28px 24px;
}

.float-card-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-card-subtitle {
  font-size: 1.0625rem;
  color: var(--color-primary);
  margin: 0 0 0.875rem;
  line-height: 1.5;
  font-weight: var(--fw-bold);
  letter-spacing: 0.01em;
  padding-bottom: 0.625rem;
  border-bottom: 1px dashed rgba(28, 100, 242, 0.22);
  position: relative;
}

.float-card-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 36px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* === 优势清单（1 列竖排，每项带序号+打勾+文字） === */
.float-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  counter-reset: adv-num;
}

.float-card-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text);
  font-weight: var(--fw-semibold);
  padding: 7px 11px 7px 7px;
  background: linear-gradient(90deg, rgba(28, 100, 242, 0.07) 0%, rgba(28, 100, 242, 0.02) 100%);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
  counter-increment: adv-num;
  transition: background var(--t-fast), transform var(--t-fast);
}

.float-card-list li::before {
  content: counter(adv-num, decimal-leading-zero);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: var(--fw-extrabold);
  color: var(--color-primary);
  background: #fff;
  border: 1px solid rgba(28, 100, 242, 0.25);
  border-radius: 5px;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 3px rgba(28, 100, 242, 0.10);
}

.float-card-list li:hover {
  background: linear-gradient(90deg, rgba(28, 100, 242, 0.14) 0%, rgba(28, 100, 242, 0.05) 100%);
  transform: translateX(3px);
}

.float-card-tick {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #ea580c 100%);
  color: #fff;
  box-shadow:
    0 4px 12px rgba(245, 158, 11, 0.55),
    0 0 0 3px rgba(251, 191, 36, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: tick-pop 0.5s ease-out backwards, ring-ripple 2.4s ease-out infinite;
}

.float-card-list li:nth-child(1) .float-card-tick { animation-delay: 0.1s, 0.8s; }
.float-card-list li:nth-child(2) .float-card-tick { animation-delay: 0.2s, 1.4s; }
.float-card-list li:nth-child(3) .float-card-tick { animation-delay: 0.3s, 2.0s; }
.float-card-list li:nth-child(4) .float-card-tick { animation-delay: 0.4s, 2.6s; }

.float-card-tick svg {
  width: 13px;
  height: 13px;
}

/* === 主 CTA 按钮（独立列，纵向居中）— 鲜艳诱饵色 === */
.float-card-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 110px;
  padding: 18px 20px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff1744 0%, #ff5722 45%, #ff9100 100%);
  color: #fff;
  text-decoration: none;
  overflow: visible;
  font-weight: var(--fw-extrabold);
  box-shadow:
    0 10px 24px rgba(255, 23, 68, 0.45),
    0 4px 12px rgba(255, 87, 34, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  animation: cta-pulse 1.8s ease-in-out infinite;
}

/* 按钮周围红色脉冲光晕（吸睛） */
.float-card-cta::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 23, 68, 0.35), rgba(255, 145, 0, 0.35));
  filter: blur(10px);
  z-index: -1;
  opacity: 0.7;
  animation: cta-glow 1.8s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.04); }
}

.float-card-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: cta-shine 2.4s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.float-card-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 16px 36px rgba(255, 23, 68, 0.55),
    0 6px 16px rgba(255, 87, 34, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
  animation: none;
}

.float-card-cta > svg {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: #fff;
  margin-bottom: 2px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.20));
  position: relative;
  z-index: 2;
}

.float-card-cta-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.float-card-cta-main {
  font-size: 1.375rem;
  font-weight: var(--fw-extrabold);
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.float-card-cta-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
}

.float-card-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.30);
  margin-top: 4px;
  animation: arrow-nudge 1.2s ease-in-out infinite;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.float-card-cta-arrow svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

/* === HOT 角标（引诱性） === */
.float-card-cta-flag {
  position: absolute;
  top: -10px;
  right: -8px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 9px;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: var(--fw-extrabold);
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, #ffeb3b 0%, #ff9100 100%);
  border-radius: 11px;
  box-shadow:
    0 3px 8px rgba(255, 145, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  animation: flag-bob 1.6s ease-in-out infinite;
}

.float-card-cta-flag::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 235, 59, 0.65);
  animation: flag-pulse 1.6s ease-out infinite;
  pointer-events: none;
}

@keyframes flag-bob {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(-8deg) scale(1.08); }
}

@keyframes flag-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* === 响应式 === */
@media (max-width: 1280px) {
  .float-card {
    width: 600px;
  }
  .float-card-image {
    height: 150px;
  }
}

@media (max-width: 1024px) {
  .float-card {
    width: 520px;
  }
  .float-card-image {
    height: 140px;
  }
  .float-card-image-title {
    font-size: 1.125rem;
  }
}

@media (max-width: 880px) {
  .float-card {
    width: calc(100vw - 32px);
  }
  .float-card-image {
    height: 130px;
  }
  .float-card-body {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 20px 20px;
  }
  .float-card-cta {
    min-height: 80px;
    flex-direction: row;
    gap: 12px;
  }
  .float-card-cta > svg {
    width: 24px;
    height: 24px;
    margin: 0;
  }
  .float-card-cta-text {
    align-items: flex-start;
  }
  .float-card-cta-main {
    font-size: 1.125rem;
  }
  .float-card-cta-arrow {
    margin: 0;
  }
  .float-card-hotline {
    padding: 12px 18px;
    gap: 12px;
  }
  .float-card-hotline-num {
    font-size: 1.25rem;
  }
  .float-card-hotline::after {
    font-size: 0.6875rem;
    padding: 3px 8px;
    right: 14px;
  }
  .float-card-subtitle {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  .float-card-list {
    gap: 7px;
  }
  .float-card-list li {
    font-size: 0.875rem;
    padding: 6px 10px 6px 6px;
    gap: 10px;
  }
  .float-card-list li::before {
    min-width: 24px;
    height: 20px;
    font-size: 0.6875rem;
  }
  .float-card-tick {
    width: 24px;
    height: 24px;
  }
  .float-card-tick svg {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 640px) {
  .float-card {
    display: none;
  }
}
