.ai-privacy {
  position: absolute;
  inset: 0;
  z-index: 10030;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  pointer-events: auto;
}

.ai-privacy.is-open {
  display: flex !important;
}

.ai-privacy.is-fixed {
  position: fixed;
}

/* 挂在 #AI-panel 下时覆盖整层（#AI-panel 自身 pointer-events: none） */
#AI-panel > .ai-privacy {
  position: fixed;
  inset: 0;
  z-index: 10040;
  pointer-events: auto;
}

.ai-privacy__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.ai-privacy__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(400px, 100%);
  padding: 0 0 16px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

.ai-privacy__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
  background: linear-gradient(
    90deg,
    rgba(1, 117, 232, 0.03) 0%,
    rgba(148, 54, 255, 0.03) 100%
  );
}

.ai-privacy__title {
  margin: 0;
  color: #6a6b6d;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.ai-privacy__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.ai-privacy__close img {
  display: block;
  width: 24px;
  height: 24px;
}

.ai-privacy__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.ai-privacy__lead {
  margin: 0;
  color: #2a2b2e;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.ai-privacy__more {
  margin: 0;
  color: #2a2b2e;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.ai-privacy__link {
  color: #e60039;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ai-privacy__link:hover {
  opacity: 0.85;
}

.ai-privacy__agree {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #6a6b6d;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
  box-sizing: border-box;
}

.ai-privacy__check {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  overflow: hidden;
}

.ai-privacy__check img {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
}

.ai-privacy__check-off {
  display: block;
}

.ai-privacy__check-on {
  display: none;
}

.ai-privacy__agree.is-checked .ai-privacy__check-off {
  display: none;
}

.ai-privacy__agree.is-checked .ai-privacy__check-on {
  display: block;
}

.ai-privacy__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 12px 40px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(90deg, #0175e8 0%, #9436ff 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
  backdrop-filter: blur(2.5px);
  box-sizing: border-box;
}

.ai-privacy__submit:hover:not(:disabled):not(.is-disabled) {
  opacity: 0.92;
}

.ai-privacy__submit.is-disabled,
.ai-privacy__submit:disabled {
  background: #e5e5e5;
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
  backdrop-filter: none;
}
