/* 右下角浮动展示卡样式 */
.float-card-container {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 9999;
  animation: floatCardSlideIn 0.5s ease-out;
}

@keyframes floatCardSlideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.float-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  min-width: 220px;
  max-width: 280px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.float-card.float-card-image-mode {
  padding: 0;
  min-width: 240px;
  max-width: 320px;
}

.float-card:hover {
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* 图片模式样式 */
.float-card-image-wrapper {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.float-card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.float-card-image-mode:hover .float-card-image {
  transform: scale(1.02);
}

.float-card-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  padding: 20px 16px 16px;
  border-radius: 0 0 12px 12px;
}

.float-card-image-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.float-card-image-btn {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #a61b29 0%, #c42838 100%);
  color: #ffffff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.float-card-image-btn:hover {
  background: linear-gradient(135deg, #8a1620 0%, #a61b29 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(166, 27, 41, 0.4);
  color: #ffffff;
}

.float-card-image-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #ffffff;
  font-size: 16px;
  z-index: 10;
}

.float-card-image-close:hover {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
}

.float-card-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #666;
  font-size: 14px;
}

.float-card-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
}

.float-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.5;
  padding-right: 24px;
}

.float-card-subtitle {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.6;
}

.float-card-btn {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #a61b29 0%, #c42838 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.float-card-btn:hover {
  background: linear-gradient(135deg, #8a1620 0%, #a61b29 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(166, 27, 41, 0.3);
  color: #ffffff;
}

.float-card-btn:active {
  transform: translateY(0);
}

.float-card-btn i {
  font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .float-card-container {
    bottom: 18px;
    right: 16px;
  }

  .float-card {
    min-width: 180px;
    max-width: 220px;
    padding: 16px;
  }

  .float-card.float-card-image-mode {
    min-width: 200px;
    max-width: 280px;
  }

  .float-card-title {
    font-size: 14px;
  }

  .float-card-btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .float-card-image-title {
    font-size: 14px;
  }

  .float-card-image-btn {
    padding: 6px 16px;
    font-size: 13px;
  }
}

/* 隐藏状态 */
.float-card-container.hidden {
  display: none;
}
