/* ===== PC端悬浮卡片 ===== */
.floating-entrance-pc {
  display: none;
}

@media (min-width: 769px) {
  .floating-entrance-pc {
    display: block;
  }
  .floating-entrance-mobile {
    display: none;
  }
}

.floating-card {
  position: fixed;
  top: 360px;
  z-index: 50;
  width: 240px;
  height: 380px;
  border-radius: 28px;
  background: #fffafa;
  border: 1px solid #f3cfcf;
  box-shadow: 0 12px 36px rgba(160, 90, 90, 0.08);
  padding: 44px 12px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.floating-card--left {
  left: max(80px, calc((100vw - var(--content-width, 760px)) / 2 - 340px));
}

.floating-card--right {
  right: max(80px, calc((100vw - var(--content-width, 760px)) / 2 - 340px));
}

/* 图标 */
.floating-card__icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 1px solid #f6b7c8;
  background: #fff;
  box-shadow: 0 8px 20px rgba(230, 120, 150, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.floating-card__icon-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.floating-card__icon-placeholder {
  width: 50px;
  height: 50px;
}

/* 文字 */
.floating-card__title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 500;
  color: #6b3a2f;
  margin-top: 32px;
  margin-bottom: 0;
}

.floating-card__subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: #7a564d;
  margin-top: 12px;
  margin-bottom: 0;
}

/* 按钮 */
.floating-card .floating-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 180px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7aa0 0%, #ef4f82 100%);
  box-shadow: 0 10px 20px rgba(239, 79, 130, 0.22);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-top: 34px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.floating-card .floating-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(239, 79, 130, 0.28);
}

.floating-card .floating-card__btn svg{
  width: 9px;
  transform: rotate(180deg);
}

/* ===== 手机端底部双按钮 ===== */
.floating-entrance-mobile {
  width: 100%;
}

@media (min-width: 1200px) {
  .floating-entrance-mobile {
    display: none;
  }
}

.floating-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 9999;
  height: calc(58px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #fff5f6 0%, #ffe7ec 100%);
  border: 1px solid #ff9bb5;
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -6px 18px rgba(231, 92, 132, 0.12);
  display: flex;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
}

.floating-mobile-bar__btn {
  width: 50%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: background 0.2s;
}

.floating-mobile-bar__btn:active {
  background: rgba(255, 210, 220, 0.45);
}

.floating-mobile-bar__divider {
  width: 1px;
  height: 30px;
  background: #f3c5cc;
}

.floating-mobile-bar__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffd6df;
  border: 1px solid #ffc0ce;
  box-shadow: 0 4px 10px rgba(239, 95, 140, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.floating-mobile-bar__icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.floating-mobile-bar__icon-placeholder {
  width: 17px;
  height: 17px;
}

.floating-mobile-bar__text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: #e94f82;
}

/* 小屏PC适配 769px - 1440px */
@media (min-width: 769px) and (max-width: 1440px) {
  .floating-card {
    width: 210px;
    height: 340px;
    border-radius: 24px;
  }
  .floating-card .floating-card__btn{
    margin-top: 24px;
  }
  .floating-card__title{
    margin-top: 22px;
  }
}