/* =====================================================================
   桔子 · AI语音助手（H5 对话式）样式
   自包含，仅作用于 .assistant-app 作用域，避免影响全站其它样式
   ===================================================================== */
:root {
  --ky-red: #0e5aa7;
  --ky-red-dark: #0a4684;
  --ky-blue: #1E88E5;
  --ky-ink: #222;
  --ky-sub: #8a8f99;
  --ky-line: #ececf0;
  --ky-bg: #f4f5f7;
  --ky-card: #ffffff;
  --ky-shadow: 0 6px 24px rgba(20, 30, 60, .08);
}

.assistant-app * { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
.assistant-app {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  color: var(--ky-ink);
  background: var(--ky-bg);
  /* 100vh 在手机端含地址栏高度，会造成底部输入栏被顶出屏幕；dvh 为动态可视高度 */
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- 顶部条 ---------- */
.assistant-topbar {
  background: linear-gradient(135deg, var(--ky-red) 0%, var(--ky-red-dark) 100%);
  color: #fff;
}
.assistant-topbar .inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.assistant-topbar .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}
/* 设计稿 B · 白底承托：白色圆角方块承托品牌蓝标 */
.assistant-topbar .brand .logo-dot {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}
.assistant-topbar .brand .logo-dot img { width: 26px; height: 26px; display: block; }
.assistant-topbar .spacer { flex: 1; }
.assistant-topbar .top-links { display: flex; gap: 4px; align-items: center; }
/* 右侧图标按钮（购物车 / 返回首页） */
.assistant-topbar .top-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  opacity: .95;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, opacity .15s ease;
}
.assistant-topbar .top-icon:hover { opacity: 1; background: rgba(255, 255, 255, .18); text-decoration: none; }
.assistant-topbar .top-icon svg { display: block; }
.assistant-topbar .top-cart .cart-badge {
  position: absolute;
  top: 0;
  right: 1px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: #fff;
  color: var(--ky-red);
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

/* ---------- 聊天主区 ---------- */
.assistant-main {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 0 0 0;
  display: flex;
  flex-direction: column;
}
.assistant-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 18px 12px;
  scroll-behavior: smooth;
}
.assistant-body::-webkit-scrollbar { width: 8px; }
.assistant-body::-webkit-scrollbar-thumb { background: #d8dbe0; border-radius: 4px; }

/* ---------- 消息气泡 ---------- */
.assistant-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  animation: kyMsgIn .25s ease;
}
@keyframes kyMsgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.assistant-msg .avatar {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--ky-red), var(--ky-blue));
  margin-top: 2px;
}
.assistant-msg.user { flex-direction: row-reverse; }
.assistant-msg.user .avatar { background: #3a3f4a; font-size: 12px; }
.assistant-msg .bubble {
  max-width: 78%;
  background: var(--ky-card);
  border: 1px solid var(--ky-line);
  border-radius: 4px 14px 14px 14px;
  padding: 11px 14px;
  font-size: 14.5px;
  line-height: 1.72;
  color: #333;
  box-shadow: 0 1px 3px rgba(20,30,60,.04);
  word-break: break-word;
}
.assistant-msg.user .bubble {
  background: linear-gradient(135deg, var(--ky-red), var(--ky-red-dark));
  color: #fff;
  border: none;
  border-radius: 14px 4px 14px 14px;
}
.assistant-msg .bubble .msg-text { white-space: pre-wrap; }
.assistant-msg .bubble .msg-text a { color: var(--ky-red); }

/* 打字指示 */
.typing-dots { display: inline-flex; gap: 4px; align-items: center; padding: 4px 2px; }
.typing-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #c3c7cf; animation: kyBlink 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes kyBlink { 0%,80%,100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

/* ---------- 快捷提问 chips ---------- */
.assistant-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.assistant-chip {
  border: 1px solid #ffd7db;
  background: #eef5fd;
  color: var(--ky-red);
  border-radius: 16px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: .15s;
  line-height: 1.3;
}
.assistant-chip:hover { background: var(--ky-red); color: #fff; border-color: var(--ky-red); }

/* ---------- 商品卡片 ---------- */
.assistant-products { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.assistant-product {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--ky-line);
  border-radius: 12px;
  padding: 12px;
  transition: .15s;
}
.assistant-product:hover { box-shadow: var(--ky-shadow); transform: translateY(-1px); }
.assistant-product .thumb {
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 8px;
  background: #f2f3f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #b6bac2;
  font-size: 12px;
}
.assistant-product .thumb img { width: 100%; height: 100%; object-fit: contain; }
.assistant-product .info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.assistant-product .p-name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.45;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.assistant-product .p-name:hover { color: var(--ky-red); }
.assistant-product .p-meta { font-size: 12px; color: #8a8f99; margin-top: 5px; line-height: 1.5; }
.assistant-product .p-meta b { color: #5a606a; font-weight: 500; }
.assistant-product .p-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 8px; }
.assistant-product .p-price { font-size: 17px; font-weight: 700; color: var(--ky-red); }
.assistant-product .p-price small { font-size: 11px; font-weight: 400; color: #8a8f99; margin-left: 4px; }
.assistant-product .p-stock { font-size: 12px; color: #18a058; }
.assistant-product .p-stock.out { color: #e6a23c; }
.assistant-product .p-actions { margin-left: auto; display: flex; gap: 8px; }
.assistant-product .p-btn {
  border: 1px solid #bcd9f2;
  background: #fff;
  color: var(--ky-red);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: .15s;
  display: inline-flex;
  align-items: center;
}
.assistant-product .p-btn:hover { background: #fff0f1; }
.assistant-product .p-btn.primary { background: var(--ky-red); color: #fff; border-color: var(--ky-red); }
.assistant-product .p-btn.primary:hover { background: var(--ky-red-dark); }
.assistant-product .p-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- 订单卡片（我的订单） ---------- */
.assistant-product.order-card { flex-direction: column; align-items: stretch; gap: 0; }
.order-card .oc-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.order-card .oc-id { font-size: 12.5px; font-weight: 500; color: #5a606a; line-height: 1.5; white-space: nowrap; }
.order-card .oc-status {
  flex: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ky-red);
  border: 1px solid #bcd9f2;
  background: #eef5fd;
  border-radius: 4px;
  padding: 0 8px;
  white-space: nowrap;
}
.order-card .oc-meta { font-size: 12px; color: #8a8f99; line-height: 1.5; white-space: nowrap; }
.order-card .p-foot { margin-top: 10px; padding-top: 0; }
.order-card .p-foot .p-price { white-space: nowrap; }
.order-card .p-actions { margin-left: 0; margin-top: 10px; }

/* 更多商品链接 */
.assistant-more { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--ky-blue); text-decoration: none; }
.assistant-more:hover { text-decoration: underline; }

/* ---------- 输入区（设计稿 v2 · 一体化胶囊） ---------- */
.assistant-input-bar {
  border-top: 1px solid var(--ky-line);
  background: #fff;
  padding: 12px 14px 14px;
}
.assistant-input-bar .inner { max-width: 980px; margin: 0 auto; }
.assistant-input-bar .pill {
  min-height: 52px;
  background: #f2f3f6;
  border: 1px solid #e8eaef;
  border-radius: 26px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 6px;
}
.assistant-input-bar .ibtn {
  flex: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #3b4149;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.assistant-input-bar .ibtn:hover { background: #e7e9ee; }
.assistant-input-bar .ibtn:active { background: #dcdfe4; }
.assistant-input-bar .ibtn svg { display: block; }
.assistant-input-bar .pill-plus { background: #1f2429; color: #fff; }
.assistant-input-bar .pill-plus:hover { background: #000; }
.assistant-input-bar .vline { width: 1px; height: 18px; background: #dcdfe4; flex: none; margin: 0 4px; }
.assistant-input-bar .hold-btn {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: #1f2429;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 2px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  transition: background .12s;
}
.assistant-input-bar .hold-btn.pressing { background: #dcdee4; color: #000; }
.assistant-input-bar textarea {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  resize: none;
  padding: 8px 6px 8px 6px;
  min-height: 38px;
  font-size: 14.5px;
  font-family: inherit;
  line-height: 1.5;
  max-height: 88px;
}
.assistant-input-bar textarea::placeholder { color: #a8adb6; }
.assistant-input-bar .send-btn {
  flex: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ky-red), var(--ky-red-dark));
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .15s;
}
.assistant-input-bar .send-btn:hover { opacity: .92; }
.assistant-input-bar .send-btn:disabled { opacity: .5; cursor: not-allowed; }

/* 顺序：相机 → 说话/输入 → 竖线 → 键盘/麦克风 → 附件 → 发送 */
.assistant-input-bar #assistant-camera { order: 1; }
.assistant-input-bar .hold-btn { order: 2; }
.assistant-input-bar textarea { order: 2; }
.assistant-input-bar .vline { order: 3; }
.assistant-input-bar #assistant-mode { order: 4; }
.assistant-input-bar #assistant-plus { order: 5; }
.assistant-input-bar .send-btn { order: 6; }

/* 语音模式：相机 | 按住说话 | ⌨ | ⊕ ；键盘模式：相机 | 输入框 | 🎤 | ⊕ | ↑ */
.assistant-input-bar .inner.voice-mode .hold-btn { display: flex; align-items: center; justify-content: center; }
.assistant-input-bar .inner:not(.voice-mode) .hold-btn { display: none; }
.assistant-input-bar .inner.voice-mode textarea { display: none; }
.assistant-input-bar .inner.voice-mode .send-btn { display: none; }
.assistant-input-bar .inner:not(.voice-mode) .vline { display: none; }

.assistant-hint { max-width: 980px; margin: 0 auto; font-size: 11.5px; color: #b0b4bc; padding: 0 2px 8px; }
.assistant-hint .voice-hint { color: var(--ky-red); font-weight: 600; }

/* ---------- 按住说话 · 全屏录音层（豆包式，不显示识别文字） ---------- */
.rec-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(120% 48% at 50% -5%, #f4f9ff 0%, #bcdcff 20%, #6aacfa 44%, rgba(43,127,245,0) 76%),
    linear-gradient(180deg, #5aa6fb 0%, #2b7ff5 46%, #1668e0 100%);
}
.rec-overlay[hidden] { display: none; }
.rec-overlay .rec-tips {
  font-size: 17px;
  letter-spacing: 1.2px;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(10, 40, 90, .22);
}
.rec-overlay .rec-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 44px;
  margin-top: 34px;
}
.rec-overlay .rec-wave i {
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .92);
  animation: kyWave .82s ease-in-out infinite alternate;
}
@keyframes kyWave {
  from { height: 9px; opacity: .5; }
  to { height: 40px; opacity: 1; }
}
.rec-overlay .rec-foot {
  position: absolute;
  bottom: calc(34px + env(safe-area-inset-bottom));
  font-size: 12px;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .75);
}
.rec-overlay .rec-x {
  position: absolute;
  top: calc(50% - 172px);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 2px solid rgba(255, 255, 255, .85);
  display: none;
  align-items: center;
  justify-content: center;
}
.rec-overlay.cancel {
  background: linear-gradient(180deg, #3b8def 0%, #2b6fe0 60%, #1b57c6 100%);
}
.rec-overlay.cancel .rec-x { display: flex; }

/* ---------- 发送图片 / 文件面板 ---------- */
.attach-mask {
  position: fixed;
  inset: 0;
  z-index: 280;
  background: rgba(16, 20, 28, .32);
}
.attach-mask[hidden] { display: none; }
.attach-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 290;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 34px rgba(0, 0, 0, .16);
}
.attach-sheet[hidden] { display: none; }
.attach-sheet h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; }
.attach-sheet .st { margin: 0 0 15px; font-size: 12px; color: #9aa0a8; }
.attach-sheet .tiles { display: flex; gap: 12px; }
.attach-sheet .tile {
  flex: 1;
  background: #f6f7f9;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 16px 6px 13px;
  text-align: center;
  color: #3b4149;
  font-family: inherit;
  cursor: pointer;
  transition: .15s;
}
.attach-sheet .tile:hover { background: #eef0f4; }
.attach-sheet .tile:active { background: #e7eaef; }
.attach-sheet .tile .tico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  margin: 0 auto 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e8eaef;
}
.attach-sheet .tile span { display: block; font-size: 12.5px; font-weight: 500; }
.attach-sheet .tile em { display: block; font-style: normal; font-size: 10.5px; color: #a8adb6; margin-top: 3px; }
.attach-sheet .note {
  margin-top: 15px;
  font-size: 11.5px;
  line-height: 1.7;
  color: #9aa0a8;
  background: #f8f9fb;
  border-radius: 10px;
  padding: 10px 12px;
}

/* ---------- 对话内：用户发出的图片 / 文件气泡 ---------- */
.assistant-msg.user .bubble .bubble-media { display: block; }
.assistant-msg.user .bubble .bubble-media img {
  display: block;
  width: 168px;
  max-width: 100%;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, .55);
}
.assistant-msg.user .bubble .bubble-file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
}
.assistant-msg.user .bubble .bubble-file .fico {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  color: #0a4684;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.assistant-msg.user .bubble .bubble-file .fmeta { min-width: 0; }
.assistant-msg.user .bubble .bubble-file .fmeta b { display: block; font-size: 13px; font-weight: 600; word-break: break-all; }
.assistant-msg.user .bubble .bubble-file .fmeta small { font-size: 11px; color: rgba(255, 255, 255, .78); }

/* ---------- 清单识别结果 ---------- */
.assistant-list-lines { margin: 8px 0 0; padding: 0; list-style: none; }
.assistant-list-lines li {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  font-size: 13px;
  line-height: 1.55;
  border-top: 1px dashed #eef0f4;
}
.assistant-list-lines li:first-child { border-top: none; }
.assistant-list-lines li b { flex: none; min-width: 18px; color: var(--ky-red); }
.assistant-list-lines li .lname { font-weight: 600; }
.assistant-list-lines li .lspec { color: #6b7480; }

/* ---------- 轻提示 toast ---------- */
.ky-toast {
  position: fixed;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, .86);
  color: #fff;
  padding: 10px 18px;
  border-radius: 22px;
  font-size: 13.5px;
  line-height: 1.5;
  z-index: 120;
  max-width: 82%;
  text-align: center;
  animation: kyMsgIn .2s ease;
}

/* ---------- 场景 chip 卡 ---------- */
.assistant-scenes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.assistant-scene {
  border: 1px solid #dbeafe;
  background: #f4f9ff;
  color: #2459a6;
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: .15s;
}
.assistant-scene:hover { background: #e8f2ff; }

/* ---------- DeepSeek 物料分组 & 追问 ---------- */
.assistant-questions { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.assistant-questions .ai-q { font-size: 13.5px; color: #444; line-height: 1.6; }
.assistant-questions .ai-q b { color: #222; }
.assistant-questions .ai-q-opts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.material-groups { margin-top: 12px; display: flex; flex-direction: column; gap: 16px; }
.material-group-head {
  font-size: 14px;
  color: #222;
  padding: 2px 0 6px;
  border-bottom: 1px solid var(--ky-line);
}
.material-group-head b { color: var(--ky-red); }
.material-group-head span { color: #9aa0aa; font-size: 12px; font-weight: 400; }
.material-empty { font-size: 12.5px; color: #b0b4bc; padding: 8px 2px; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .assistant-topbar .inner { padding: 10px 12px; gap: 8px; }
  .assistant-topbar .brand { font-size: 15.5px; gap: 8px; white-space: nowrap; }
  .assistant-topbar .brand .logo-dot { width: 30px; height: 30px; border-radius: 8px; }
  .assistant-topbar .brand .logo-dot img { width: 24px; height: 24px; }
  .assistant-topbar .top-links { gap: 0; }
  .assistant-topbar .top-icon { width: 34px; height: 34px; }
  .assistant-topbar .top-links a.hide-mobile { display: none; }
  .assistant-body { padding: 16px 12px 10px; }
  .assistant-msg .bubble { max-width: 86%; font-size: 14px; }
  .assistant-product .thumb { width: 76px; height: 76px; }
  .assistant-product .p-foot { flex-wrap: wrap; }
  .assistant-product .p-actions { width: 100%; margin-left: 0; }
  .assistant-product .p-actions .p-btn { flex: 1; justify-content: center; }
  .assistant-input-bar { padding: 10px 10px calc(12px + env(safe-area-inset-bottom)); }
  .assistant-input-bar .pill { min-height: 50px; border-radius: 25px; padding: 0 5px; gap: 1px; }
  .assistant-input-bar .ibtn,
  .assistant-input-bar .send-btn { width: 38px; height: 38px; }
  .assistant-input-bar .hold-btn { height: 38px; font-size: 15.5px; letter-spacing: 2px; }
  .assistant-input-bar .vline { margin: 0 2px; }
  .assistant-input-bar textarea {
    font-size: 16px;           /* 16px 以上可避免 iOS 聚焦自动放大 */
    padding: 6px 4px;
    min-height: 38px;
    max-height: 76px;
    line-height: 1.45;
  }
  .rec-overlay .rec-tips { font-size: 16px; }
  .rec-overlay .rec-wave { gap: 2.5px; }
  .rec-overlay .rec-x { top: calc(50% - 150px); width: 66px; height: 66px; }
  .attach-sheet { border-radius: 18px 18px 0 0; }
  .assistant-hint { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .assistant-msg .avatar { width: 30px; height: 30px; font-size: 12px; }
}

/* AI 实验准备清单（与智能选品页同款信息结构） */
.assistant-checklist { margin-top: 8px; border: 1px solid #d6e6f5; border-radius: 12px; background: #f7fbff; padding: 10px 12px; }
.assistant-checklist .chk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 6px; border-bottom: 1px dashed #d6e6f5; margin-bottom: 6px; }
.assistant-checklist .chk-head b { font-size: 14px; color: var(--ky-red); }
.assistant-checklist .chk-head span { font-size: 10.5px; color: #b0b4bc; white-space: nowrap; }
.assistant-checklist .chk-sec { padding: 4px 0; }
.assistant-checklist .chk-sec b { display: block; font-size: 12.5px; margin: 4px 0 2px; }
.assistant-checklist ul { list-style: none; margin: 0; padding: 0; }
.assistant-checklist li { font-size: 12.5px; line-height: 1.7; color: #333; }
.assistant-checklist li .req { color: var(--ky-red); font-weight: 700; }
.assistant-checklist li small { color: #98a0ab; }
.assistant-checklist li em.owned { font-style: normal; font-size: 10.5px; color: #1a9e5c; border: 1px solid #bfe6d2; border-radius: 6px; padding: 0 4px; margin-left: 2px; }

/* 追问降级为可折叠可选项 */
.assistant-optional { margin-top: 6px; font-size: 12.5px; }
.assistant-optional summary { cursor: pointer; color: var(--ky-red); font-weight: 600; }
.assistant-optional .assistant-questions { margin-top: 8px; }

/* 顶栏购物车角标（样式见上方 .assistant-topbar .top-cart .cart-badge） */

/* DeepSeek 对话式回复 */
.msg-text.md { line-height: 1.75; }
.msg-text.md .md-li { display: block; padding-left: 12px; position: relative; }
.msg-text.md .md-li::before { content: '·'; position: absolute; left: 2px; color: var(--ky-red); font-weight: 700; }
.chat-goods-head { font-size: 12px; color: #98a0ab; margin: 10px 2px 4px; }

/* ---------- 欢迎语副行 / 清单候选商品 ---------- */
.assistant-msg .bubble .welcome-sub { color: #6b7480; }
.assistant-list-lines li .lcand { display: block; margin-top: 3px; font-size: 12px; color: #1a9e5c; }
.assistant-list-lines li .lcand b { color: #1a9e5c; font-weight: 700; min-width: 0; }
.p-specs{margin:5px 0 0;min-width:0}.p-specs select{display:block;width:100%;min-width:0;border:1px solid #d8e0e8;border-radius:4px;padding:5px 6px;font:inherit;font-size:12px;color:#1f3a52;background:#fff;line-height:1.5}
/* =====================================================================
   「AI采购」下拉（顶栏） + 轻提示，2026-10-06 接入
   ===================================================================== */
.assistant-topbar .ai-menu { position: relative; }
.assistant-topbar .ai-menu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32);
}
.assistant-topbar .ai-menu > summary::-webkit-details-marker { display: none; }
.assistant-topbar .ai-menu > summary:hover { background: rgba(255,255,255,.26); }
.assistant-topbar .ai-caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform .18s;
}
.assistant-topbar .ai-menu[open] > summary .ai-caret { transform: rotate(180deg); }
.assistant-topbar .ai-menu-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  min-width: 290px; padding: 8px; border-radius: 12px; background: #fff;
  box-shadow: 0 14px 40px rgba(9, 32, 60, .22); border: 1px solid #e2ebf5;
}
.assistant-topbar .ai-menu-panel a {
  display: block; padding: 9px 11px; border-radius: 9px; text-decoration: none; color: #17324f;
}
.assistant-topbar .ai-menu-panel a:hover { background: #f0f6fd; }
.assistant-topbar .ai-menu-panel a b { display: block; font-size: 14px; font-weight: 700; }
.assistant-topbar .ai-menu-panel a span { display: block; margin-top: 2px; font-size: 12px; color: #7b8ca0; }
.assistant-topbar .ai-menu-panel a.is-current { background: #e8f1fb; }
.assistant-topbar .ai-menu-panel a.is-current b::after {
  content: '当前'; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-size: 11px; font-weight: 600; color: #0e5aa7; background: #d3e5f8;
}
@media (max-width: 560px) {
  .assistant-topbar .ai-menu-panel { left: auto; right: 0; min-width: 260px; }
}

.assistant-toast {
  position: fixed; left: 50%; bottom: 110px; z-index: 90;
  transform: translate(-50%, 12px); opacity: 0; transition: opacity .22s, transform .22s;
  max-width: 78vw; padding: 10px 16px; border-radius: 999px;
  font-size: 14px; color: #fff; background: rgba(24, 42, 66, .92);
  box-shadow: 0 8px 24px rgba(10, 30, 55, .28); pointer-events: none;
}
.assistant-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 商品缩略图占位（站内商品图缺失时，用品牌占位图而不是空框） */
.assistant-product .thumb img.thumb-ph { object-fit: contain; padding: 8px; background: #f4f9ff; }
