/* 固定引流：桌面用顶栏按钮；手机底栏 Download + Panduan */

:root {
  --ur35ob-cta-bottom-h: 72px;
  --ur35ob-cta-z: 1100;
}

.ur35ob-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  text-decoration: none !important;
  border-radius: var(--radius-lg, 0.75rem);
  padding: 0.65rem 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  flex: 1 1 0;
  min-width: 0;
}

.ur35ob-cta-btn--primary {
  background: #059669;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

.ur35ob-cta-btn--primary:hover,
.ur35ob-cta-btn--primary:focus-visible {
  background: #047857;
  transform: translateY(-1px);
  outline: none;
}

.ur35ob-cta-btn--ghost {
  background: #fff;
  color: #059669 !important;
  border: 2px solid #059669;
}

.ur35ob-cta-btn--ghost:hover,
.ur35ob-cta-btn--ghost:focus-visible {
  background: #f0fdf4;
  outline: none;
}

.ur35ob-cta-btn svg {
  flex-shrink: 0;
}

/* 手机：底部固定双按钮 */
.ur35ob-cta-bottom {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--ur35ob-cta-z);
  padding: 0.65rem max(1rem, env(safe-area-inset-right, 0px)) calc(0.65rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.ur35ob-cta-bottom__inner {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* 手机显示底栏；桌面靠顶栏 header 按钮 */
@media (max-width: 768px) {
  .ur35ob-cta-bottom {
    display: block;
  }

  body.has-ur35ob-cta {
    padding-bottom: calc(var(--ur35ob-cta-bottom-h) + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* 手机底栏已有按钮，隐藏顶栏重复按钮 */
  body.has-ur35ob-cta .glass-f450 {
    display: none !important;
  }

  body.has-ur35ob-cta #back-to-top,
  body.has-ur35ob-cta .ur35ob-back-top {
    bottom: calc(var(--ur35ob-cta-bottom-h) + 1rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 380px) {
  .ur35ob-cta-btn {
    font-size: 0.82rem;
    padding: 0.6rem 0.5rem;
    gap: 0.3rem;
  }

  .ur35ob-cta-btn svg {
    width: 14px;
    height: 14px;
  }
}
