/* ============================================================
   newaiservice 顾客端 PC 浮窗 & 聊天面板完整样式
   参考 spa_prototype.html 原型
   ============================================================ */

/* ----- 浮窗按钮（右下角圆形）----- */
#newai-float .nai-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #1989fa, #0d6efd);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(25,137,250,0.4);
  transition: transform 0.15s;
  position: relative; cursor: pointer;
}
#newai-float:hover .nai-circle { transform: scale(1.08); }
#newai-float .nai-icon { font-size: 26px; color: #fff; }
#newai-float .nai-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: #ee0a24; color: #fff;
  border-radius: 10px; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.newai-cs-btn:hover { background: #0d6efd !important; }
.newai-cs-btn:active { transform: scale(0.95); }

/* 浮窗"联系客服"文字 */
#newai-float .nai-label {
  font-size: 11px; color: #999;
  margin-top: 4px; white-space: nowrap;
  transition: color .15s;
}
#newai-float:hover .nai-label { color: #1890ff; }

/* ----- 全屏遮罩 overlay ----- */
.nai-overlay {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,.35); z-index: 100000;
  align-items: center; justify-content: center;
}
.nai-overlay.show { display: flex; }

/* ----- 主面板（800×580）----- */
.nai-panel {
  width: 820px; height: 580px; max-height: 85vh;
  background: #fff; border-radius: 12px;
  display: flex; overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,.2);
  animation: naiPanelIn .25s ease-out;
}
@keyframes naiPanelIn {
  from { transform: translateY(24px) scale(.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* ===== 左侧商家列表 ===== */
.nai-sidebar {
  width: 220px; min-width: 220px;
  background: #f8f8f8; border-right: 1px solid #eee;
  display: flex; flex-direction: column;
}
.nai-sidebar-header {
  padding: 14px 14px; font-size: 14px; font-weight: 600;
  border-bottom: 1px solid #eee; color: #333;
}
.nai-sidebar-search {
  padding: 8px 10px 4px; border-bottom: 1px solid #f0f0f0;
}
.nai-sidebar-search input {
  width: 100%; padding: 7px 10px; border: 1px solid #ddd;
  border-radius: 16px; font-size: 12px; outline: none;
  box-sizing: border-box; background: #fff;
}
.nai-sidebar-search input:focus { border-color: #1890ff; }

/* 商家列表项 */
.nai-shop-list {
  flex: 1; overflow-y: auto;
  padding: 4px 0;
}
.nai-shop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer;
  transition: background .12s;
  position: relative;
  border-right: 3px solid transparent;
}
.nai-shop-item:hover { background: #f0f0f0; }
.nai-shop-item.active {
  background: #fff;
  border-right-color: #1890ff;
}
.nai-shop-item.active .nai-shop-name {
  color: #1890ff; font-weight: 600;
}

/* 头像 */
.nai-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-weight: 500;
}
.nai-avatar-small {
  width: 32px; height: 32px; border-radius: 50%;
  color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.nai-shop-name {
  flex: 1; font-size: 13px; color: #333;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nai-unread {
  min-width: 18px; height: 18px; padding: 0 5px;
  background: #e4393c; color: #fff; font-size: 11px;
  border-radius: 9px; display: flex; align-items: center;
  justify-content: center; font-weight: 600;
}
.nai-sidebar-footer {
  padding: 10px 14px; color: #bbb; font-size: 12px;
  border-top: 1px solid #eee; display: flex; justify-content: space-between;
}

/* ===== 右侧聊天区 ===== */
.nai-chat-area {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden; min-width: 0;
  position: relative; /* 为内部 absolute 定位的订单弹层提供定位参考 */
}

/* 标题栏 */
.nai-chat-header {
  padding: 12px 50px 12px 16px;
  border-bottom: 1px solid #eee;
  display: flex; align-items: center;
  gap: 10px; position: relative;
  flex-shrink: 0;
}
.nai-chat-title {
  font-size: 15px; font-weight: 600; color: #333;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nai-status {
  font-size: 12px; color: #52c41a; white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}
.nai-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #52c41a; display: inline-block;
}
.nai-close-btn {
  position: absolute; top: 8px; right: 12px;
  background: none; border: none; font-size: 22px;
  cursor: pointer; color: #999; z-index: 10;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; line-height: 1;
}
.nai-close-btn:hover { background: #f0f0f0; color: #333; }

/* 商品卡片 */
.nai-goods-card {
  margin: 12px 16px 0; padding: 10px 12px;
  background: #f9f9f9; border: 1px solid #eee; border-radius: 8px;
  display: flex; gap: 10px; align-items: center;
  flex-shrink: 0;
}
.nai-goods-img {
  width: 48px; height: 48px; border-radius: 6px;
  background: #f0f0f0; display: flex; align-items: center;
  justify-content: center; font-size: 10px; color: #999;
  flex-shrink: 0;
}
.nai-goods-info { flex: 1; min-width: 0; }
.nai-goods-name {
  font-size: 13px; color: #333; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nai-goods-price {
  font-size: 14px; color: #e4393c; font-weight: 600;
}
.nai-goods-link {
  padding: 4px 10px; font-size: 12px;
  background: #1890ff; color: #fff; border-radius: 4px;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.nai-goods-link:hover { background: #40a9ff; color: #fff; }

/* 消息区 */
.nai-msg-wrap {
  flex: 1; overflow-y: auto; padding: 16px;
  background: #fafafa; overflow-x: hidden;
}
.nai-msg-area { min-height: 100%; }

/* 欢迎语 / 提示 */
.nai-welcome, .nai-error, .nai-loading, .nai-tip {
  text-align: center; font-size: 13px; padding: 30px 20px;
}
.nai-welcome { color: #999; }
.nai-error { color: #e4393c; }
.nai-loading { color: #1890ff; }
.nai-tip {
  font-size: 11px; color: #bbb; margin: 8px 0;
}

/* 消息行 */
.nai-msg-row {
  display: flex; gap: 8px; margin-bottom: 14px;
  max-width: 78%;
}
.nai-msg-row.me {
  flex-direction: row-reverse;
  margin-left: auto;
}

/* 气泡 */
.nai-bubble {
  padding: 10px 14px; border-radius: 12px;
  font-size: 14px; line-height: 1.6; word-break: break-word;
  background: #fff; color: #333;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  text-align: left; /* 强制左对齐，防止居中错乱 */
}
.nai-msg-row.me .nai-bubble {
  background: #1890ff; color: #fff;
  border-bottom-right-radius: 4px;
}
.nai-msg-row:not(.me) .nai-bubble {
  border-bottom-left-radius: 4px;
}

/* AI 回复中的 Markdown/HTML 元素样式 */
.nai-bubble p { margin: 0 0 6px 0; }
.nai-bubble p:last-child { margin-bottom: 0; }
.nai-bubble ul, .nai-bubble ol { margin: 4px 0; padding-left: 20px; }
.nai-bubble li { margin-bottom: 2px; }
.nai-bubble strong { font-weight: 600; }
.nai-bubble blockquote { margin: 4px 0; padding-left: 10px; border-left: 3px solid #ddd; color: #666; }
.nai-bubble code { background: #f5f5f5; padding: 1px 4px; border-radius: 3px; font-size: 13px; font-family: monospace; }
.nai-bubble pre { background: #f8f8f8; padding: 8px; border-radius: 6px; overflow-x: auto; margin: 4px 0; }
.nai-bubble pre code { background: none; padding: 0; }

/* 快捷推荐 */
.nai-quick-bar {
  padding: 8px 16px; display: flex; gap: 8px; flex-wrap: wrap;
  background: #fafafa; border-top: 1px solid #eee;
  flex-shrink: 0;
}
.nai-tag {
  display: inline-block; padding: 4px 12px;
  border-radius: 4px; font-size: 12px;
  background: #e6f7ff; color: #1890ff;
  border: 1px solid #91d5ff;
  cursor: pointer; transition: all .12s;
}
.nai-tag:hover { background: #1890ff; color: #fff; border-color: #1890ff; }

/* 输入区 */
.nai-input-bar {
  padding: 10px 16px; border-top: 1px solid #eee;
  display: flex; align-items: flex-end; gap: 10px;
  position: relative; flex-shrink: 0;
}
.nai-tool-btns { display: flex; gap: 6px; }
.nai-tool-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #e8e8e8; border-radius: 6px;
  cursor: pointer; font-size: 17px;
  transition: all .12s;
}
.nai-tool-btn:hover { border-color: #1890ff; background: #f0f7ff; }
.nai-input {
  flex: 1; padding: 8px 12px;
  border: 1px solid #ddd; border-radius: 6px;
  font-size: 14px; outline: none;
}
.nai-input:focus { border-color: #1890ff; }
.nai-send-btn {
  padding: 8px 20px; border: none; border-radius: 6px;
  font-size: 14px; background: #1890ff; color: #fff;
  cursor: pointer; font-weight: 500;
  transition: background .12s; white-space: nowrap;
}
.nai-send-btn:hover { background: #40a9ff; }
.nai-send-btn:disabled { opacity: .5; cursor: not-allowed; }

/* 表情面板 */
.nai-emoji-panel {
  display: none; position: absolute; bottom: 54px; left: 10px;
  background: #fff; border: 1px solid #e8e8e8;
  border-radius: 8px; padding: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  z-index: 50; width: 280px;
}
.nai-emoji-title { font-size: 11px; color: #999; margin-bottom: 8px; }
.nai-emoji-grid {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.nai-emoji-item {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer;
  border-radius: 4px; transition: background .1s;
}
.nai-emoji-item:hover { background: #f0f0f0; }

/* 滚动条美化 */
.nai-shop-list::-webkit-scrollbar,
.nai-msg-wrap::-webkit-scrollbar { width: 5px; }
.nai-shop-list::-webkit-scrollbar-thumb,
.nai-msg-wrap::-webkit-scrollbar-thumb {
  background: #ccc; border-radius: 3px;
}
.nai-shop-list::-webkit-scrollbar-track,
.nai-msg-wrap::-webkit-scrollbar-track { background: transparent; }

/* 响应式：手机端让面板直接占满全屏，不依赖 overlay 居中
   关键：用 100vw / 100dvh + !important 兜底，防止 iWebShop 父级
   transform/filter/will-change 把 position:fixed 困在某个 wrapper 里 */
@media (max-width: 860px) {
  /* overlay 强制全屏：即使父级有 transform，也覆盖整个视口 */
  .nai-overlay {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100vw !important; height: 100vh !important;
    background: rgba(0, 0, 0, .45) !important;
    z-index: 2147483647 !important;  /* 最大 z-index，避免被任何父级遮挡 */
    /* 注意：这里不要写 display:flex !important，否则会覆盖 .nai-overlay.show
       的开关，导致移动端面板一进页面就常驻显示。display 交给 .show 类控制。 */
    align-items: stretch !important;   /* 移动端不居中：让子元素撑满 */
    justify-content: stretch !important;
  }
  /* 面板直接占满整个视口，不要圆角、不要阴影、不要固定宽高 */
  .nai-panel {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;           /* 回退：旧浏览器（iOS<15.4）不支持 dvh */
    height: 100dvh !important;          /* 动态视口高度，避开移动浏览器地址栏 */
    max-height: 100vh !important;
    max-height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex-direction: column !important;
    margin: 0 !important;
    animation: none !important;
  }
  /* 侧边栏：横排缩略条，固定 110px 高度，占满面板宽度 */
  .nai-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    height: 110px !important;
    border-right: none !important;
    border-bottom: 1px solid #eee !important;
  }
  .nai-sidebar-header { padding: 10px 12px !important; font-size: 13px !important; }
  .nai-shop-list {
    display: flex !important;
    overflow-x: auto !important; overflow-y: hidden !important;
    white-space: nowrap !important;
    padding: 4px 8px !important; gap: 4px !important;
    -webkit-overflow-scrolling: touch !important;  /* iOS 弹性滚动 */
    scroll-snap-type: x mandatory !important;       /* 多商家时左右滑动对齐 */
    scrollbar-width: none !important;               /* 隐藏滚动条 */
  }
  .nai-shop-list::-webkit-scrollbar { display: none !important; }
  .nai-shop-list .nai-shop-item { scroll-snap-align: center !important; }
  .nai-shop-item {
    flex-direction: column !important;
    padding: 8px 8px !important;
    border-right: none !important;
    border-bottom: 3px solid transparent !important;
    min-width: 96px !important;
    max-width: 120px !important;
    border-radius: 8px !important;
    gap: 4px !important;
  }
  .nai-shop-item.active {
    border-bottom-color: #1890ff !important;
    background: #e6f4ff !important;
    box-shadow: 0 1px 4px rgba(25,137,250,.18) !important;
  }
  .nai-shop-item .nai-avatar { width: 32px !important; height: 32px !important; font-size: 12px !important; }
  .nai-shop-name {
    font-size: 11px !important;
    line-height: 1.3 !important;
    text-align: center !important;
    /* 2 行 + 省略号：避免长名字（如"佳美家居语洁厨具客服"）撑破容器或溢出 */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-all !important;
    max-width: 100% !important;
  }
  .nai-sidebar-search { display: none !important; }
  .nai-sidebar-footer { display: none !important; }

  /* 聊天区：占满侧边栏以下的所有空间 */
  .nai-chat-area {
    flex: 1 1 auto !important;
    min-height: 0 !important;     /* 关键：允许 flex 子项收缩到 0 */
    width: 100% !important;
  }
  .nai-chat-header { padding: 10px 12px !important; font-size: 13px !important; }
  .nai-msg-wrap { padding: 10px !important; }

  /* 输入区改为两行布局：第 1 行 [输入框][发送]（保证发送按钮始终可见），
     第 2 行 [表情][图片][订单] 工具栏。避免窄屏下工具按钮挤掉发送按钮 */
  .nai-input-bar {
    flex-wrap: wrap !important;
    padding: 8px 10px !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .nai-input {
    order: 1 !important;
    flex: 1 1 100px !important;     /* 可伸缩：基线 100px，可放大填满剩余空间 */
    min-width: 0 !important;        /* 关键：允许宽度收缩到小于内容尺寸 */
    padding: 8px 10px !important;
    font-size: 14px !important;
  }
  .nai-send-btn {
    order: 1 !important;
    flex: 0 0 auto !important;      /* 关键：禁止收缩，确保永远可见 */
    padding: 8px 14px !important;
    font-size: 14px !important;
  }
  .nai-tool-btns {
    order: 2 !important;
    flex: 0 0 100% !important;      /* 整行独占第 2 行 */
    justify-content: flex-start !important;
    padding-top: 4px !important;
  }
  .nai-tool-btn {
    width: 32px !important; height: 32px !important;
    font-size: 16px !important;
  }
  /* 表情面板：调整位置避免溢出 */
  .nai-emoji-panel {
    left: 8px !important; right: 8px !important; width: auto !important;
    bottom: 100px !important;
  }
}

/* ===== 消息类型差异化渲染 ===== */

/* 表情大字体 */
.nai-emoji-lg {
  font-size: 32px; line-height: 1.2;
  display: inline-block;
}

/* 聊天图片 */
.nai-chat-img {
  max-width: 220px; max-height: 280px;
  border-radius: 8px; cursor: pointer;
  display: block; transition: opacity 0.15s;
}
.nai-chat-img:hover { opacity: 0.85; }

/* 图片消息占位符（URL 无效 / 加载失败 / 内容不是真实 URL 时显示） */
.nai-img-placeholder {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 18px;
  font-size: 13px; color: #999;
  background: #f7f7f7; border-radius: 8px;
  letter-spacing: 0.5px;
}
.nai-msg-row.me .nai-img-placeholder {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
}

/* ===== 订单选择器弹层（覆盖在聊天面板之上）===== */
.nai-order-picker {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 200;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
}
.nai-order-picker-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.nai-order-picker-title {
  font-size: 15px; font-weight: 600; color: #333;
}
.nai-order-picker-close {
  font-size: 22px; cursor: pointer; color: #999;
  width: 28px; height: 28px; text-align: center; line-height: 28px;
  border-radius: 50%;
}
.nai-order-picker-close:hover { background: #f5f5f5; color: #333; }

/* 订单 Tab */
.nai-order-picker-tabs {
  display: flex; padding: 10px 16px 0; gap: 6px;
  overflow-x: auto; flex-shrink: 0;
  scrollbar-width: none;
}
.nai-order-picker-tabs::-webkit-scrollbar { display: none; }
.nai-order-tab {
  padding: 5px 14px; font-size: 13px; color: #666;
  border-radius: 14px; cursor: pointer; white-space: nowrap;
  background: #f5f5f5; transition: all .15s;
  border: none; user-select: none;
}
.nai-order-tab:hover { background: #e8f4ff; color: #1890ff; }
.nai-order-tab.active { background: #1890ff; color: #fff; }

/* 订单搜索 */
.nai-order-picker-search {
  padding: 8px 16px; flex-shrink: 0;
}
.nai-order-picker-search input {
  width: 100%; padding: 7px 12px; font-size: 13px;
  border: 1px solid #eee; border-radius: 18px; outline: none;
  box-sizing: border-box; transition: border-color .15s;
}
.nai-order-picker-search input:focus { border-color: #1890ff; }

/* 订单列表 */
.nai-order-list {
  flex: 1; overflow-y: auto; padding: 8px 16px;
  min-height: 120px; /* 确保空状态时也有可见区域 */
}

/* 订单卡片 */
.nai-order-card {
  display: flex; align-items: center;
  padding: 10px 12px; margin-bottom: 6px;
  border-radius: 10px; cursor: pointer;
  background: #fafafa; border: 1px solid #f0f0f0;
  transition: all .15s; user-select: none;
}
.nai-order-card:hover { background: #f0f7ff; border-color: #bae7ff; transform: translateY(-1px); }
.nai-order-card:active { transform: scale(.98); }
.nai-order-card-left {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden; background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  margin-right: 10px;
}
.nai-order-goods-img { width: 100%; height: 100%; object-fit: cover; }
.nai-order-goods-placeholder { font-size: 22px; opacity: .4; }
.nai-order-card-body { flex: 1; min-width: 0; }
.nai-order-card-name {
  font-size: 13px; color: #333; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.nai-order-card-meta {
  display: flex; justify-content: space-between; align-items: center;
}
.nai-order-card-no { font-size: 11px; color: #999; font-family: monospace; }
.nai-order-card-amount { font-size: 14px; color: #ee0a24; font-weight: 600; }
.nai-order-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 3px;
}
.nai-order-card-status { font-size: 11px; padding: 1px 7px; border-radius: 8px; }
.status-unpaid { background: #fff7e6; color: #fa8c16; }        /* 待支付 → 橙 */
.status-aftersale { background: #f5f5f5; color: #999; }          /* 售后 → 灰 */
.status-done { background: #f6ffed; color: #52c41a; }           /* 已完成 → 绿 */
.nai-order-card-time { font-size: 11px; color: #bbb; }
.nai-order-card-arrow { font-size: 18px; color: #ccc; margin-left: 6px; }

/* 订单列表状态 */
.nai-order-loading, .nai-order-empty, .nai-order-loading-more {
  text-align: center; padding: 30px 0; color: #999; font-size: 13px;
}
.nai-order-loading-more { cursor: pointer; padding: 12px 0; color: #1890ff; }
.nai-order-loading-more:hover { text-decoration: underline; }

/* ===== 聊天消息中的订单卡片（可点击跳转详情）===== */
.nai-msg-order-card {
  display: inline-flex; align-items: center;
  padding: 8px 12px; min-width: 180px; max-width: 260px;
  background: linear-gradient(135deg, #f0f7ff, #e6f4ff);
  border: 1px solid #bae7ff; border-radius: 10px;
  cursor: pointer; transition: all .15s; user-select: none;
}
.nai-msg-order-card:hover { background: #e6f4ff; border-color: #69c0ff; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(25,137,250,.15); }
.nai-msg-order-icon { font-size: 22px; margin-right: 8px; flex-shrink: 0; }
.nai-msg-order-info { flex: 1; min-width: 0; }
.nai-msg-order-no {
  font-size: 13px; font-weight: 600; color: #333;
  font-family: monospace; letter-spacing: .5px;
}
.nai-msg-order-hint { font-size: 11px; color: #1890ff; margin-top: 2px; }
.nai-msg-order-arrow { font-size: 18px; color: #1890ff; margin-left: 4px; }

/* ===== 自定义弹窗（替代原生 confirm/alert，z-index 高于聊天面板）===== */
.nai-dialog-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: naiDialogIn .2s ease-out;
}
@keyframes naiDialogIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
.nai-dialog-box {
  width: 340px; max-width: 85vw;
  background: #fff; border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.08);
}
.nai-dialog-title {
  padding: 18px 20px 8px;
  font-size: 16px; font-weight: 600; color: #333;
  text-align: center;
}
.nai-dialog-body {
  padding: 8px 24px 20px;
  font-size: 14px; color: #666;
  line-height: 1.6; text-align: center;
}
.nai-dialog-footer {
  display: flex; gap: 10px;
  padding: 0 20px 18px;
  justify-content: center;
}
.nai-dialog-btn {
  min-width: 88px; height: 36px;
  padding: 0 18px;
  border: none; border-radius: 8px;
  font-size: 14px; cursor: pointer;
  transition: all .15s;
  font-weight: 500;
}
.nai-dialog-btn-primary {
  background: #1989fa; color: #fff;
}
.nai-dialog-btn-primary:hover { background: #0d6efd; }
.nai-dialog-btn-primary:active { transform: scale(.96); }
.nai-dialog-btn:not(.nai-dialog-btn-primary) {
  background: #f5f5f5; color: #666;
}
.nai-dialog-btn:not(.nai-dialog-btn-primary):hover { background: #eee; color: #333; }
.nai-dialog-btn:not(.nai-dialog-btn-primary):active { transform: scale(.96); }


