#consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 14, 22, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

#consent-banner {
  width: 100%;
  max-width: 420px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #1f2937;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 文字区：负责上下滚动 */
#consent-banner .consent-text {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 24px 12px;
}

#consent-banner .consent-title {
  font-weight: 700;
  font-size: 18px;
  color: #111827;
  margin: 0 0 10px 0;
}

#consent-banner .consent-body {
  line-height: 1.7;
  font-size: 14px;
  color: #4b5563;
  margin: 0;
}

#consent-banner .consent-body a {
  color: #4f46e5;
  text-decoration: underline;
}

/* 按钮区：固定底部，不随文字滚动 */
#consent-banner .consent-actions {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 20px 18px;
  border-top: 1px solid #f0f0f0;
}

#consent-banner .consent-actions button {
  cursor: pointer;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}

#consent-banner .consent-accept {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

#consent-banner .consent-accept:hover {
  background: #4338ca;
}

#consent-banner .consent-reject {
  background: transparent;
  color: #374151;
  border-color: #d1d5db;
}

#consent-banner .consent-reject:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

@media (max-width: 640px) {
  #consent-backdrop {
    padding: 14px;
  }

  #consent-banner .consent-actions button {
    flex: 1;
  }
}