/**
 * 底部同意提示条：复用现有深色变量，不遮挡页面，无遮罩、无滚动锁定。
 * 手机端位于 .tabbar（z-index 50）上方，按钮 ≥44px 触控目标。
 */
.consent-banner {
  position: fixed;
  z-index: 80;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-body);
}

.consent-banner .consent-body {
  margin: 6px 0 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
}

.consent-banner h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
}

.consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.consent-btn {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  background: var(--bg-1);
  color: var(--text-1);
  border: 1px solid var(--text-2);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

.consent-btn-accept {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.consent-btn-accept:hover {
  background: var(--brand-hot);
  border-color: var(--brand-hot);
}

.consent-btn:hover {
  border-color: var(--text-1);
  background: var(--bg-2);
}

.consent-btn:focus-visible {
  outline: 2px solid var(--brand-hot);
  outline-offset: 2px;
}

.consent-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-2);
  text-decoration: underline;
}

.consent-link:hover { color: var(--text-1); }

.consent-link:focus-visible {
  outline: 2px solid var(--brand-hot);
  outline-offset: 2px;
}

/* 手机端：位于底部导航上方，避免遮住 tabbar */
@media (max-width: 640px) {
  .consent-banner {
    left: 12px;
    right: 12px;
    max-width: none;
    bottom: calc(68px + env(safe-area-inset-bottom));
  }
}

/* 减少动效偏好下不添加任何过渡 */
@media (prefers-reduced-motion: reduce) {
  .consent-banner { transition: none; }
}
