/* RAG 召回 · 非管理员提示（弹窗内部渐变紫，遮罩保持中性） */
.tc-rag-private-notice {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.tc-rag-private-notice.is-open {
  opacity: 1;
  pointer-events: auto;
}

.tc-rag-private-notice.is-hidden {
  display: none;
}

.tc-rag-private-notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tc-rag-private-notice__panel {
  position: relative;
  z-index: 1;
  width: min(27rem, 94vw);
  border-radius: 1.2rem;
  overflow: hidden;
  /* 弹窗内部：以渐变紫为主 */
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(167, 139, 250, 0.55), transparent 52%),
    radial-gradient(100% 80% at 0% 100%, rgba(99, 102, 241, 0.42), transparent 48%),
    linear-gradient(155deg, #ede9fe 0%, #ddd6fe 32%, #c7d2fe 68%, #e0e7ff 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 28px 64px rgba(15, 23, 42, 0.22),
    0 8px 20px rgba(99, 102, 241, 0.16);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.tc-rag-private-notice__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #818cf8 0%, #8b5cf6 45%, #a78bfa 100%);
}

.tc-rag-private-notice.is-open .tc-rag-private-notice__panel {
  transform: translateY(0) scale(1);
}

.tc-rag-private-notice__hero {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.35rem 1.4rem 0.7rem;
}

.tc-rag-private-notice__icon {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #818cf8 0%, #6366f1 48%, #7c3aed 100%);
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.35);
}

.tc-rag-private-notice__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.tc-rag-private-notice__eyebrow {
  margin: 0 0 0.18rem;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6d28d9;
}

.tc-rag-private-notice__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1e1b4b;
  line-height: 1.3;
}

.tc-rag-private-notice__body {
  padding: 0 1.4rem 0.2rem;
}

.tc-rag-private-notice__lead {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #3730a3;
  font-weight: 500;
}

.tc-rag-private-notice__note {
  margin: 0 0 0.95rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.8rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #4c1d95;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(167, 139, 250, 0.4);
}

.tc-rag-private-notice__metric {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 55%, #4f46e5 100%);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
}

.tc-rag-private-notice__metric-value {
  flex-shrink: 0;
  min-width: 3.6rem;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.tc-rag-private-notice__metric-label {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.tc-rag-private-notice__actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 1.4rem 1.3rem;
}

.tc-rag-private-notice__btn {
  min-width: 6.5rem;
  padding: 0.55rem 1.3rem;
  border: none;
  border-radius: 0.7rem;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6366f1 100%);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 6px 16px rgba(109, 40, 217, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.tc-rag-private-notice__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.1),
    0 10px 22px rgba(109, 40, 217, 0.38);
}

.tc-rag-private-notice__btn:active {
  transform: translateY(0);
}

body.tc-rag-private-notice-open {
  overflow: hidden;
}
