/* ===== 设计规范：外圆角20 = 内圆角16 + 4px填充；组件间距16px；蓝白灰；标题深色加粗 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #eef1f5; color: #46536a; min-height: 100vh;
}

/* ===== 搜索页 ===== */
.home-hero {
  background: linear-gradient(160deg, #307FE2 0%, #1B5FC4 100%);
  padding: 52px 16px 36px; color: #fff; text-align: center;
}
.home-hero h1 { font-size: 1.4rem; font-weight: 700; color: #fff; letter-spacing: 1px; }
.home-hero p { margin-top: 8px; font-size: 0.85rem; color: rgba(255,255,255,.85); }

/* 搜索模块：外20，内16+4 */
.search-wrap {
  margin: 16px 16px 0; padding: 4px;
  display: flex; gap: 4px;
  background: #fff; border-radius: 20px;
  box-shadow: 0 1px 6px rgba(22,32,46,.06);
}
.search-wrap input {
  flex: 1; height: 52px; border: none; border-radius: 16px; padding: 0 16px;
  font-size: 1rem; background: #eef1f5; color: #16202e; outline: none;
}
.search-wrap button {
  height: 52px; padding: 0 22px; border: none; border-radius: 16px;
  background: #307FE2; color: #fff; font-size: 1rem; font-weight: 600;
}
.search-wrap button:active { background: #000000; }

.section { max-width: 560px; margin: 16px auto 0; padding: 0 16px; }
.section-title { font-size: 0.85rem; color: #8a94a6; font-weight: 600; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 16px; }
.chip {
  padding: 8px 16px; background: #fff; border-radius: 16px;
  font-size: 0.85rem; font-weight: 600; color: #16202e;
  box-shadow: 0 1px 4px rgba(22,32,46,.06);
}

/* 产品卡片：外20 */
.card {
  background: #fff; border-radius: 20px; padding: 16px; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 1px 6px rgba(22,32,46,.05);
}
.card .name { font-size: 1rem; font-weight: 700; color: #16202e; }
.card .meta { margin-top: 6px; font-size: 0.8rem; color: #8a94a6; }
.card .arrow { color: #c3ccd9; font-size: 1.2rem; }
.empty { text-align: center; color: #8a94a6; padding: 40px 0; font-size: 0.9rem; }

/* ===== 详情页 ===== */
.topbar {
  position: sticky; top: 0; z-index: 10; height: 52px; display: flex; align-items: center;
  background: #fff; box-shadow: 0 1px 4px rgba(22,32,46,.08); padding: 0 16px;
}
.topbar .back { font-size: 1.4rem; color: #16202e; text-decoration: none; width: 36px; }
.topbar .title { flex: 1; text-align: center; font-size: 1rem; font-weight: 700; color: #16202e; margin-right: 36px; }

/* 3D 窗口模块：外20 */
.viewer-box {
  position: relative; height: 52vh; min-height: 320px;
  margin: 16px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #f0f3f8 0%, #dde4ee 100%);
}
.viewer-box canvas { display: block; }
.viewer-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; color: #8a94a6;
  background: linear-gradient(180deg, #f0f3f8 0%, #dde4ee 100%);
}
.spinner {
  width: 32px; height: 32px; border: 3px solid #c3ccd9; border-top-color: #307FE2;
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.viewer-tools { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 16px; z-index: 4; }
/* 苹果风格圆形毛玻璃图标按钮 */
.vbtn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(22,32,46,.12);
  color: #16202e; cursor: pointer; padding: 0;
  transition: transform .12s ease;
}
.vbtn:active { transform: scale(.9); background: rgba(255,255,255,.92); }
.vbtn svg { width: 14px; height: 14px; }
#pauseBtn svg, #ipause svg { fill: #16202e; }
#fsBtn svg, #ifs svg { stroke: #16202e; }
.viewer-hint {
  position: absolute; left: 16px; bottom: 16px; font-size: 0.72rem;
  color: #8a94a6; background: rgba(255,255,255,.85);
  padding: 6px 12px; border-radius: 16px;
}

.params { padding: 0 16px 32px; }
.params .pname { font-size: 1.15rem; font-weight: 700; color: #16202e; }
.params .poem { margin-top: 6px; font-size: 0.9rem; color: #307FE2; font-weight: 600; }

/* 参数表模块：外20，行内16+4 */
.spec-table {
  margin-top: 16px; background: #fff; border-radius: 20px; padding: 4px;
  box-shadow: 0 1px 6px rgba(22,32,46,.05);
}
.spec-row { display: flex; padding: 13px 12px; font-size: 0.9rem; border-radius: 16px; }
.spec-row + .spec-row { border-top: 1px solid #eef1f5; }
.spec-row .k { width: 110px; color: #8a94a6; flex-shrink: 0; }
.spec-row .v { flex: 1; color: #16202e; font-weight: 500; word-break: break-all; }

/* ===== 标注 ===== */
.ann-overlay { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.ann-marker {
  position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px;
  border-radius: 50%; background: #307FE2; color: #fff; font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: 0 1px 5px rgba(22,32,46,.4);
  pointer-events: auto; cursor: pointer;
}
.ann-marker.ann-dot { width: 12px; height: 12px; background: #ff7a1a; }
.ann-label {
  position: absolute; transform: translate(-50%, -160%); white-space: nowrap;
  background: rgba(22,32,46,.85); color: #fff; font-size: 0.72rem;
  padding: 4px 10px; border-radius: 8px;
}
.ann-bubble {
  position: absolute; z-index: 6; background: #fff; border-radius: 16px;
  padding: 12px 16px; font-size: 0.85rem; max-width: 72%; color: #16202e;
  box-shadow: 0 4px 16px rgba(22,32,46,.25); transform: translate(-50%, -115%);
}

/* ===== 数据后台 ===== */
.editor-bar { padding: 16px; background: #fff; box-shadow: 0 1px 4px rgba(22,32,46,.06); }
.editor-bar select {
  width: 100%; height: 48px; font-size: 0.95rem; color: #16202e;
  border: none; border-radius: 16px; padding: 0 16px; background: #eef1f5; outline: none;
}
.editor-modes { display: flex; gap: 16px; padding: 16px; }
.editor-modes button {
  flex: 1; height: 44px; border: none; border-radius: 16px;
  background: #fff; font-size: 0.88rem; font-weight: 600; color: #46536a;
  box-shadow: 0 1px 4px rgba(22,32,46,.06);
}
.editor-modes button.active { background: #307FE2; color: #fff; }
.editor-list { padding: 0 16px 100px; }
.editor-item {
  background: #fff; border-radius: 20px; padding: 16px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 16px; font-size: 0.88rem;
  box-shadow: 0 1px 4px rgba(22,32,46,.05);
}
.editor-item .grow { flex: 1; word-break: break-all; color: #16202e; }
.editor-item .del { color: #e05252; border: none; background: none; font-size: 1rem; flex-shrink: 0; }
.editor-item .op {
  color: #307FE2; border: none; background: #eef1f5; font-weight: 600;
  border-radius: 12px; padding: 6px 12px; font-size: 0.78rem; flex-shrink: 0;
}
.editor-save {
  position: fixed; left: 16px; right: 16px; bottom: 16px; height: 52px;
  border: none; border-radius: 16px; background: #307FE2; color: #fff;
  font-size: 1rem; font-weight: 700; box-shadow: 0 4px 14px rgba(23,25,28,.4);
}
.editor-tip { padding: 0 16px 16px; font-size: 0.78rem; color: #8a94a6; }

/* ===== VIN 拍照识别 ===== */
.vin-btns { display: flex; gap: 16px; }
.vin-btns button {
  flex: 1; height: 48px; border: none; border-radius: 16px;
  background: #fff; color: #16202e; font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 1px 4px rgba(22,32,46,.06);
}
.vin-btns button:active { background: #eef1f5; }
#vinStatus {
  margin-top: 16px; background: #fff; border-radius: 16px; padding: 13px 16px;
  font-size: 0.88rem; color: #46536a; box-shadow: 0 1px 4px rgba(22,32,46,.05);
}

/* ===== PC 端模拟手机布局（调试用） ===== */
@media (min-width: 768px) {
  html { background: #dde3ea; }
  body {
    max-width: 420px; margin: 0 auto;
    box-shadow: 0 0 24px rgba(22,32,46,.15);
  }
  /* 固定底栏跟随手机框宽度 */
  .editor-save { left: 50%; right: auto; width: 388px; transform: translateX(-50%); }
}

/* ===== 初始朝向调节面板 ===== */
.rot-panel { padding: 0 16px 16px; }
.rot-panel label {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
  font-size: 0.85rem; color: #46536a; font-weight: 600; white-space: nowrap;
}
.rot-panel input[type=range] { flex: 1; accent-color: #307FE2; }
.rot-panel button {
  width: 100%; height: 44px; border: none; border-radius: 16px;
  background: #fff; color: #16202e; font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 1px 4px rgba(22,32,46,.06);
}

/* ===== 对话式首页：灵动岛 + Gemini 风格聊天 ===== */
.chat-page { background: #f6f6f7; }

/* 灵动岛（黑色一体 · 果冻特效） */
.island {
  position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 50;
  margin: 0;
  width: min(388px, calc(100vw - 24px)); max-width: 220px;
  background: #0d1117; border-radius: 28px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(13,17,23,.3);
  transition: max-width .55s cubic-bezier(.34,1.56,.64,1);
}
.island.open {
  max-width: min(388px, calc(100vw - 24px));
}
.pill {
  height: 44px; display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 0 8px; font-size: 0.85rem; font-weight: 600;
  color: #fff; cursor: pointer; white-space: nowrap;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.island-body {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .55s cubic-bezier(.34,1.56,.64,1), opacity .3s;
}
.island.open .island-body { max-height: 72vh; opacity: 1; }
.island-viewer {
  height: 40vh; min-height: 280px; position: relative; overflow: hidden;
  border-radius: 20px; margin: 0 4px;
  background: linear-gradient(180deg, #f0f3f8 0%, #dde4ee 100);
  background: linear-gradient(180deg, #f0f3f8 0%, #dde4ee 100%);
}
.island-info {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px 14px;
}
.i-name { font-size: 0.95rem; font-weight: 700; color: #fff; }
.i-oem { margin-top: 2px; font-size: 0.78rem; color: #8a94a6; }
.i-detail { font-size: 0.82rem; font-weight: 600; color: #307FE2; text-decoration: none; flex-shrink: 0; }

/* 聊天流 */
.chat { padding: calc(88px + env(safe-area-inset-top)) 16px 110px; }
.msg { display: flex; margin-bottom: 16px; }
.msg.user { justify-content: flex-end; }
.msg .bubble {
  max-width: 82%; padding: 12px 16px; font-size: 0.92rem; line-height: 1.55;
  background: #307FE2; color: #fff; border-radius: 20px 20px 4px 20px;
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%; background: #eef1f5;
  display: flex; align-items: center; justify-content: center;
  color: #307FE2; font-size: 14px; margin-right: 10px; flex-shrink: 0;
}
.bot-body { flex: 1; min-width: 0; font-size: 0.92rem; line-height: 1.6; color: #16202e; padding-top: 4px; }

/* 产品卡片 */
.pcard {
  background: #fff; border: 1px solid #eef1f5; border-radius: 20px;
  padding: 16px; margin-top: 8px; cursor: pointer; max-width: 88%;
  box-shadow: 0 1px 6px rgba(22,32,46,.05);
}
.pcard .pc-name { font-weight: 700; color: #16202e; font-size: 0.95rem; }
.pcard .pc-meta { margin-top: 4px; font-size: 0.8rem; color: #8a94a6; }
.pcard:active { background: #f6f8fa; }

/* 输入栏（Gemini 风格药丸） */
.inputbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  z-index: 60;
  width: min(420px, 100%); padding: 12px 16px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, #f6f6f7 35%);
}
.ibox {
  display: flex; align-items: center; gap: 4px;
  background: #fff; border-radius: 24px; border: 1px solid #eef1f5;
  box-shadow: 0 6px 24px rgba(22,32,46,.14); padding: 6px 6px 6px 8px;
}
.ibox .icon {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: transparent; font-size: 18px; color: #46536a; flex-shrink: 0;
}
.ibox input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 0.95rem; padding: 0 8px; color: #16202e;
}
.ibox .send {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid #fff;
  background: #307FE2; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(22,32,46,.05), 0 2px 8px rgba(48,127,226,.35);
}
.ibox .send:active { background: #000000; }

/* 岛内 3D 窗口的加载层复用 */
.island-viewer .viewer-loading { border-radius: 20px; }
.island-viewer .viewer-tools { right: 12px; bottom: 12px; }

/* ===== 扫码遮罩 ===== */
.scan-frame {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 220px; height: 220px; border-radius: 24px;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 0 0 2000px rgba(0,0,0,.45);
}
.scan-tip {
  position: absolute; left: 0; right: 0; bottom: 18%;
  text-align: center; color: rgba(255,255,255,.85); font-size: 0.85rem;
}
#scanClose {
  position: absolute; top: 20px; right: 20px; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.15); color: #fff; font-size: 1rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ===== ＋ 抽屉面板（Kimi 风格） ===== */
.plus-sign {
  display: inline-block; font-size: 20px; line-height: 1;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
#plusBtn.open .plus-sign { transform: rotate(45deg); }
#plusBtn { background: #fff; border: 1px solid #eef1f5; }
#sheet .drawer-handle {
  width: 36px; height: 5px; border-radius: 999px;
  background: #d8dce3; margin: 8px auto 4px;
}
.drawer-mask {
  position: fixed; inset: 0; background: rgba(13,17,23,.35);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 80;
}
.drawer-mask.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; left: 50%; bottom: 0; z-index: 81;
  width: min(420px, 100%);
  transform: translate(-50%, calc(100% + 24px));
  visibility: hidden;
  background: #fff; border-radius: 28px 28px 0 0;
  padding: 0 16px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 40px rgba(22,32,46,.18);
  transition: transform .35s cubic-bezier(.22,1,.36,1), visibility 0s .35s;
}
.drawer.show {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform .35s cubic-bezier(.22,1,.36,1), visibility 0s 0s;
}
.drawer-grid { display: flex; gap: 12px; padding: 16px 0 4px; }
.drawer-grid button {
  flex: 1; border: none; background: none; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; color: #16202e;
}
.drawer-grid .tile {
  width: 56px; height: 56px; border-radius: 16px;
  background: #f0f1f3; display: flex; align-items: center; justify-content: center;
}
.drawer-grid button:active .tile { background: #e4e7eb; }

/* ===== 扫码遮罩 ===== */
.scan-frame {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 220px; height: 220px; border-radius: 24px;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 0 0 2000px rgba(0,0,0,.45);
}
.scan-tip {
  position: absolute; left: 0; right: 0; bottom: 18%;
  text-align: center; color: rgba(255,255,255,.85); font-size: 0.85rem;
}
#scanClose {
  position: absolute; top: 20px; right: 20px; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.15); color: #fff; font-size: 1rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ===== ＋ 动作面板（悬浮卡片） ===== */
.plus-sign {
  display: inline-block; font-size: 20px; line-height: 1;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
#plusBtn.open .plus-sign { transform: rotate(45deg); }

/* ===== 气泡复制按钮 ===== */
.copy-btn {
  display: inline-block; margin-top: 8px; padding: 4px 12px;
  font-size: 0.72rem; color: #8a94a6; font-weight: 600;
  background: #fff; border: 1px solid #eef1f5; border-radius: 999px;
}
.copy-btn:active { background: #f0f3f8; color: #16202e; }

/* ===== 气泡操作按钮组 ===== */
.msg-actions { display: flex; gap: 8px; margin-top: 8px; }
.msg-actions .copy-btn { margin-top: 0; }
.rate-btn {
  padding: 4px 10px; font-size: 0.75rem;
  background: #fff; border: 1px solid #eef1f5; border-radius: 999px;
}
.rate-btn:active { background: #f0f3f8; }
.rate-btn.active { background: #307FE2; border-color: #307FE2; }

/* 岛内画布始终填满容器（动画期间防露边），动画结束由 JS 重算真实分辨率 */
.island-viewer canvas { width: 100% !important; height: 100% !important; }

/* ===== 顶栏操作 ===== */
.top-actions { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }
.top-actions a { font-size: 0.82rem; color: #46536a; font-weight: 600; cursor: pointer; }
.topbar .title { margin-right: 0; flex: 1; }

/* ===== 气泡操作按钮 SVG 图标统一 ===== */
.copy-btn svg, .rate-btn svg { stroke: #8a94a6; vertical-align: -2px; }
.copy-btn svg { margin-right: 4px; }
.copy-btn { display: inline-flex; align-items: center; }
.rate-btn { display: inline-flex; align-items: center; justify-content: center; }
.rate-btn.active svg { stroke: #fff; }
#sheet button svg { flex-shrink: 0; }

/* ===== 胶囊两侧按钮 ===== */
.pill { justify-content: space-between; }
.pill-btn {
  width: 28px; height: 28px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,255,255,.14); display: flex; align-items: center;
  justify-content: center; cursor: pointer; flex-shrink: 0;
}
.pill-btn:active { background: rgba(255,255,255,.3); }

/* ===== 头像流光特效（谷歌 AI 风） ===== */
.avatar .spark {
  background: linear-gradient(90deg, #307FE2 20%, #9dc2ff 50%, #307FE2 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: sparkflow 2.2s linear infinite;
  display: inline-block;
}
@keyframes sparkflow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== 分享提示 toast ===== */
.toast {
  position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%);
  background: rgba(13,17,23,.85); color: #fff; font-size: 0.82rem;
  padding: 10px 20px; border-radius: 999px; z-index: 99;
  animation: toastin .25s ease;
}
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ===== 胶囊文字截断 ===== */
#pillText {
  max-width: 130px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; vertical-align: middle;
}
#pillFold { display: inline-flex; align-items: center; }


/* ===== 拖入上传遮罩（Kimi 风格） ===== */
#dropMask {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(246,246,247,.92);
  align-items: center; justify-content: center;
}
#dropMask.show { display: flex; }
.drop-box {
  margin: 24px; padding: 60px 40px; width: min(420px, calc(100vw - 48px));
  border: 2px dashed #307FE2; border-radius: 24px; background: #fff;
  text-align: center; box-shadow: 0 16px 48px rgba(48,127,226,.12);
}
.drop-title { margin-top: 16px; font-size: 1.05rem; font-weight: 700; color: #16202e; }
.drop-sub { margin-top: 8px; font-size: 0.8rem; color: #8a94a6; }

/* ===== 上传进度卡片 ===== */
#upCard {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 16px; width: min(388px, calc(100vw - 32px)); z-index: 91;
  background: #fff; border-radius: 20px; padding: 16px;
  box-shadow: 0 12px 32px rgba(22,32,46,.18);
}
.up-name { font-size: 0.85rem; font-weight: 600; color: #16202e; margin-bottom: 10px; }
.up-bar {
  height: 8px; border-radius: 999px; background: #eef1f5; overflow: hidden;
}
.up-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #307FE2, #5a9fff);
  background-size: 200% 100%;
  animation: upshine 1.2s linear infinite;
  transition: width .2s ease;
}
@keyframes upshine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.up-pct { margin-top: 8px; font-size: 0.78rem; color: #8a94a6; text-align: right; }

/* ===== 上传区按钮与文件清单 ===== */
.up-btns { display: flex; gap: 16px; }
.ubtn {
  flex: 1; height: 44px; border-radius: 16px; font-size: 0.85rem; font-weight: 600;
  border: 1px solid #d5e4fa; background: #fff; color: #307FE2;
}
.ubtn:active { background: #f0f6ff; }
.ubtn.primary { background: #307FE2; border-color: #307FE2; color: #fff; }
.up-bar2 {
  height: 8px; border-radius: 999px; background: #eef1f5;
  overflow: hidden; margin-top: 16px;
}
.file-row {
  display: flex; align-items: center; gap: 12px;
  background: #f6f7f8; border-radius: 16px; padding: 10px 14px; margin-top: 8px;
  font-size: 0.82rem;
}
.fr-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #16202e; }
.fr-status { color: #8a94a6; flex-shrink: 0; font-size: 0.78rem; }
.fr-status.fr-ok { color: #34A853; font-weight: 600; }
.fr-status.fr-bad { color: #e05252; }
.fr-size { color: #8a94a6; font-size: 0.75rem; flex-shrink: 0; }
.fr-del { border: none; background: none; color: #e05252; font-size: 0.9rem; flex-shrink: 0; padding: 2px 4px; }

/* ===== 开场引导词条 ===== */
.guide-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.guide-chip {
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid #d5e4fa;
  color: #307FE2; font-size: 0.85rem; font-weight: 600;
}
.guide-chip:active { background: #f0f6ff; }

/* ===== 产品卡片紧凑化 + 适配信息 ===== */
.pcard { padding: 12px 16px; }
.pcard .pc-name { font-size: 0.92rem; }
.pcard .pc-fit {
  margin-top: 4px; font-size: 0.8rem; color: #307FE2; font-weight: 600;
}
.pcard .pc-meta { margin-top: 4px; }

/* ===== ICP 备案页脚 ===== */
.icp-footer {
  text-align: center; padding: 24px 0 8px;
  font-size: 0.72rem; color: #b0b8c4;
}
.icp-footer a { color: #b0b8c4; text-decoration: none; }

/* ===== ICP 备案页脚 ===== */
.icp-footer {
  text-align: center; padding: 24px 0 8px;
  font-size: 0.72rem; color: #b0b8c4;
}
.icp-footer a { color: #b0b8c4; text-decoration: none; }


/* ===== 岛内查看器高度可调 ===== */
.island-viewer {
  height: 40vh; min-height: 280px;
  transition: height .35s cubic-bezier(.22,1,.36,1);
}
.island-viewer.expanded { height: 78vh; }
.island.open .island-body { max-height: 92vh; }
#dragHandle {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  display: flex; align-items: center; justify-content: center;
  cursor: ns-resize; touch-action: none; z-index: 5;
}
#dragHandle span {
  width: 36px; height: 5px; border-radius: 999px;
  background: rgba(70,85,105,.35);
}
#dragHandle:active span { background: rgba(48,127,226,.6); }

/* ===== 欢迎区照片入口 ===== */
.img-chip { display: inline-flex; align-items: center; gap: 6px; }

/* ===== 新会话淡出 & 打字机特效 ===== */
.chat { transition: opacity .22s ease; }
.chat.chat-fade { opacity: 0; }
.loading-dots { display: inline-flex; gap: 6px; padding: 4px 2px; }
.loading-dots i {
  width: 7px; height: 7px; border-radius: 50%; background: #307FE2;
  animation: dotpulse 1s ease infinite;
}
.loading-dots i:nth-child(2) { animation-delay: .18s; }
.loading-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes dotpulse {
  0%, 100% { opacity: .25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}
.type-cursor {
  display: inline-block; width: 8px; height: 1.05em; margin-left: 2px;
  background: #307FE2; border-radius: 2px; vertical-align: -0.15em;
  animation: cursorblink .7s step-end infinite;
}
@keyframes cursorblink { 50% { opacity: 0; } }

/* ===== 侧边栏 ===== */
#menuBtn {
  position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 16px; z-index: 60;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.85); box-shadow: 0 2px 8px rgba(22,32,46,.12);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
#menuBtn:active { background: #eef1f5; }
#drawerMask {
  position: fixed; inset: 0; background: rgba(13,17,23,.35);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 70;
}
#drawerMask.show { opacity: 1; pointer-events: auto; }
#drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 71;
  width: min(300px, 84vw); background: #fff;
  border-radius: 0 24px 24px 0; box-shadow: 8px 0 32px rgba(22,32,46,.18);
  transform: translateX(-105%); transition: transform .32s cubic-bezier(.22,1,.36,1);
  padding: calc(20px + env(safe-area-inset-top)) 20px 24px;
  overflow-y: auto;
}
#drawer.open { transform: translateX(0); }
.drawer-user {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: #f6f7f8; border-radius: 20px; margin-bottom: 16px;
}
.du-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #307FE2, #6ea8ff); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.du-name { font-size: 0.95rem; font-weight: 700; color: #16202e; }
.du-sub { margin-top: 2px; font-size: 0.72rem; color: #8a94a6; }
.ds-title { font-size: 0.95rem; font-weight: 700; color: #16202e; margin-bottom: 4px; }
.ds-hint { font-size: 0.72rem; color: #8a94a6; font-weight: 400; margin-left: 6px; }
.ds-label { margin: 16px 0 8px; font-size: 0.8rem; color: #8a94a6; font-weight: 600; }
.ds-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-chips span {
  padding: 7px 14px; border-radius: 999px; font-size: 0.82rem; cursor: pointer;
  background: #fff; border: 1px solid #e3e8ef; color: #46536a;
}
.ds-chips span.on { background: #307FE2; border-color: #307FE2; color: #fff; font-weight: 600; }

/* ===== 查询额度条（Kimi 风格） ===== */
.quota-card {
  margin-top: 24px; padding: 14px 16px;
  background: #f6f7f8; border-radius: 20px;
  position: sticky; bottom: 0;
}
.quota-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: #46536a; font-weight: 600; margin-bottom: 10px;
}
.quota-top #quotaText { color: #307FE2; font-weight: 700; }
.quota-bar {
  height: 6px; border-radius: 999px; background: #e3e8ef; overflow: hidden;
}
.quota-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #307FE2, #6ea8ff);
  transition: width .4s cubic-bezier(.22,1,.36,1);
}
.quota-fill.warn { background: linear-gradient(90deg, #f5a623, #e05252); }

/* ===== 车辆信息卡规格网格 ===== */
.vin-grid {
  margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 0.78rem; color: #46536a;
}
.vin-grid div span {
  color: #8a94a6; margin-right: 4px;
}
.vin-grid div span::after { content: "："; }
