/* ==============================================================================
   腾龙发科 AI 元宇宙 · V95 前台通用自绘弹窗组件
   static/css/tl-dialog-v95.css      前缀 td95- · 零第三方依赖
   ------------------------------------------------------------------------------
   用途：替换浏览器原生 alert / confirm / prompt（项目规范禁用原生弹窗）
   风格：近黑蓝玻璃拟态 + 蓝紫青渐变，与前台/后台保持一致
   加载：由 static/js/app.js 的 ensureDialogCss() 自动注入，页面无需改动
   ============================================================================== */

.td95-mask {
  position: fixed; inset: 0; z-index: 10050;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(3, 6, 16, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .18s ease;
}
.td95-mask.on { display: flex; opacity: 1; }

.td95-box {
  width: 100%; max-width: 380px;
  box-sizing: border-box;
  background: linear-gradient(160deg, rgba(18, 25, 50, .98), rgba(11, 17, 34, .98));
  border: 1px solid rgba(0, 212, 255, .28);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  padding: 22px 22px 18px;
  transform: translateY(10px) scale(.97);
  transition: transform .18s ease;
}
.td95-mask.on .td95-box { transform: translateY(0) scale(1); }

.td95-ico { font-size: 28px; line-height: 1; margin-bottom: 10px; }
.td95-title {
  margin: 0 0 8px; font-size: 16px; font-weight: 700; color: #e8f0ff;
  letter-spacing: .5px;
}
.td95-msg { font-size: 13.5px; line-height: 1.7; color: #93a4c6; margin: 0 0 4px; }

.td95-fields { margin: 14px 0 4px; }
.td95-field { margin-bottom: 12px; }
.td95-field label { display: block; font-size: 12.5px; color: #93a4c6; margin-bottom: 6px; }
.td95-inp {
  width: 100%; box-sizing: border-box;
  padding: 9px 12px; font-size: 13.5px; font-family: inherit;
  color: #e8f0ff; background: rgba(8, 12, 26, .8);
  border: 1px solid rgba(148, 163, 184, .22); border-radius: 8px;
  outline: none; transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none; appearance: none;
}
.td95-inp:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, .14);
}
.td95-inp::placeholder { color: #5c6b8a; }
textarea.td95-inp { min-height: 76px; resize: vertical; }

.td95-err { color: #ef4444; font-size: 12px; min-height: 16px; margin-top: 4px; }

.td95-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.td95-btn {
  padding: 9px 20px; font-size: 13.5px; font-family: inherit;
  border-radius: 9px; cursor: pointer; border: 1px solid rgba(148, 163, 184, .24);
  background: rgba(255, 255, 255, .05); color: #cfe0ff;
  transition: all .18s ease;
}
.td95-btn:hover { border-color: rgba(0, 212, 255, .5); color: #fff; }
.td95-btn.pri {
  border-color: transparent;
  background: linear-gradient(135deg, #00d4ff, #7c5cff);
  color: #fff; font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 212, 255, .28);
}
.td95-btn.pri:hover { filter: brightness(1.08); }
.td95-btn.danger {
  border-color: transparent;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff; font-weight: 600;
}
.td95-btn:active { transform: translateY(1px); }

.td95-toast-host { z-index: 10060; }

@media (max-width: 480px) {
  .td95-box { max-width: 100%; padding: 18px 16px 14px; border-radius: 12px; }
  .td95-btns { flex-direction: column-reverse; }
  .td95-btn { width: 100%; }
}
