/* 前台底部悬浮询盘引导条：通栏绿底，内层 .quote-bar__in.wrap 对齐站点内容宽度（与 .nav-in wrap 一致） */
.quote-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background: #0e7c52;
  color: #fff;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.2);
  font-family: inherit;
  padding-bottom: env(safe-area-inset-bottom);
}

.quote-bar[hidden] {
  display: none;
}

/* 内层容器复用站点 .wrap：桌面 1440px 居中、≤1100px 内缩 24px；此处只给垂直内边距 */
.quote-bar__in {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.quote-bar__text {
  flex: 1 1 auto;
  min-width: 0;
}

/* 广告词前置插图：透明底插画，绿色条上直接展示，随条高等比缩放 */
.quote-bar__img {
  flex: 0 0 auto;
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.quote-bar__title {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
}

/* 移动端短主文案、品类行、移动信任锚：默认隐藏，仅 ≤600px 显示 */
.quote-bar__title--mini,
.quote-bar__cats,
.quote-bar__sub-m {
  display: none;
}

.quote-bar__sub {
  font-size: 14px;
  margin-top: 3px;
  color: #c9e6da;
}

.quote-bar__btn {
  flex: 0 0 auto;
  background: #fff;
  color: #0e7c52;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

.quote-bar__btn:hover {
  background: #e6f4ee;
}

.quote-bar__close {
  flex: 0 0 auto;
  background: none;
  border: 0;
  padding: 0 4px;
  color: #fff;
  opacity: 0.7;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.quote-bar__close:hover {
  opacity: 1;
}

/* 迷你态卡片：关闭后常驻左下角，点击可再展开 */
.quote-bar__mini {
  display: none;
  align-items: center;
  gap: 8px;
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 1051;
  background: #0e7c52;
  color: #fff;
  border: 0;
  padding: 12px 18px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  max-width: 70vw;
}

.quote-bar__mini-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 折叠迷你卡内的插图：缩小以贴合胶囊尺寸 */
.quote-bar__mini .quote-bar__img {
  height: 28px;
  border-radius: 6px;
}

.quote-bar__mini-arrow {
  font-weight: 700;
  flex: 0 0 auto;
}

/* mini 态：隐藏主条内容（内层），仅显示左下角迷你卡片 */
.quote-bar--mini {
  background: transparent;
  box-shadow: none;
  padding-bottom: 0;
}

.quote-bar--mini .quote-bar__in {
  display: none;
}

.quote-bar--mini .quote-bar__mini {
  display: inline-flex;
}

/* 移动端：短主文案 + 品类行 + 信任锚 + 全宽按钮 */
@media (max-width: 600px) {
  .quote-bar__in {
    flex-wrap: wrap;
    gap: 6px;
  }

  .quote-bar__title--full,
  .quote-bar__sub {
    display: none;
  }

  .quote-bar__title--mini {
    display: block;
    font-size: 17px;
    font-weight: 700;
  }

  .quote-bar__cats {
    display: block;
    font-size: 14px;
    color: #c9e6da;
    margin-top: 1px;
  }

  .quote-bar__sub-m {
    display: block;
    font-size: 13px;
    color: #c9e6da;
    margin-top: 1px;
  }

  .quote-bar__text {
    flex: 1 1 auto;
  }

  .quote-bar__img {
    height: 40px;
  }

  .quote-bar__mini .quote-bar__img {
    height: 24px;
  }

  .quote-bar__close {
    order: -1;
  }

  .quote-bar__btn {
    flex: 1 1 100%;
    text-align: center;
    margin-top: 6px;
    padding: 14px 20px;
    font-size: 17px;
  }

  .quote-bar--mini .quote-bar__mini {
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    max-width: 90vw;
  }
}
