/* ===== 车架号AI查询 - 移动端对话界面 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --primary: #2f6bff;
  --primary-dark: #1f55d8;
  --bg: #f2f4f8;
  --bubble-user: #2f6bff;
  --bubble-ai: #ffffff;
  --text: #1a1d26;
  --text-sub: #6b7280;
  --border: #e5e7eb;
  --danger: #e5484d;
  --warn-bg: #fff8e6;
  --warn-border: #f5d78e;
  --warn-text: #8a5b00;
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: calc(14.5px * var(--ui-scale, 1));
}

/* 手机容器（桌面端居中限宽） */
.app {
  max-width: 480px;
  margin: 0 auto;
  height: 100dvh; /* JS 未加载时的兜底；运行后由 visualViewport 接管（--app 高度） */
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 24px rgba(0,0,0,.06);
}
/* 软键盘弹出：收起底部说明文字，为输入栏让出空间 */
body.kb-open .tip { display: none; }
body.kb-open .inputbar { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }

/* 顶栏 */
.header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.header .brand { flex: 1; min-width: 0; display: flex; align-items: center; cursor: pointer; padding: 2px 0; }
.header .brand img { height: 32px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.header .brand-texts { display: flex; flex-direction: column; margin-left: 10px; min-width: 0; }
.header .brand-title { font-size: calc(15px * var(--ui-scale, 1)); font-weight: 400; color: var(--text-main); line-height: 1.2; white-space: nowrap; letter-spacing: .5px; }
.header .brand-sub { font-size: calc(11px * var(--ui-scale, 1)); color: var(--text-sub); line-height: 1.3; white-space: nowrap; }
.header .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #6fa3ff);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.header .titles { flex: 1; min-width: 0; }
.header .titles h1 { font-size: calc(16px * var(--ui-scale, 1)); font-weight: 600; }
.header .titles p { font-size: calc(11px * var(--ui-scale, 1)); color: var(--text-sub); }
.header .icon-btn {
  border: none; background: none; width: 34px; height: 34px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--text-sub); font-size: 18px; cursor: pointer; flex-shrink: 0;
}
.header .icon-btn:hover { background: #f0f2f5; }
.header .icon-btn svg { width: 20px; height: 20px; }
.header .logout-btn {
  border: none; background: none; display: flex; align-items: center; justify-content: center;
  padding: 8px; border-radius: 50%; color: var(--text-sub);
  cursor: pointer; flex-shrink: 0;
}
.header .logout-btn svg { width: 18px; height: 18px; }
.header .logout-btn:hover { background: #f0f2f5; }
.header .logout-btn.logged:hover { background: #fef2f2; color: var(--danger); }
/* 默认（未登录）显示登录图标，已登录显示退出图标 */
.header .logout-btn .auth-icon-logout { display: none; }
.header .logout-btn.logged .auth-icon-logout { display: block; }
.header .logout-btn.logged .auth-icon-login { display: none; }

/* 会话区 */
.chat {
  flex: 1; overflow-y: auto; padding: 16px 14px 12px;
  display: flex; flex-direction: column; gap: 12px;
  -webkit-overflow-scrolling: touch;
}
.msg { display: flex; gap: 8px; max-width: 100%; min-width: 0; }
.msg.user { flex-direction: row-reverse; }
.msg .avatar {
  width: calc(30px * var(--ui-scale, 1)); height: calc(30px * var(--ui-scale, 1)); border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: calc(13px * var(--ui-scale, 1)); font-weight: 600; color: #fff;
}
.msg .avatar svg { width: calc(24px * var(--ui-scale, 1)); height: calc(24px * var(--ui-scale, 1)); display: block; margin: auto; }
.msg .avatar { line-height: 0; }
.msg.ai .avatar { background: linear-gradient(135deg, var(--primary), #6fa3ff); }
.msg.user .avatar { background: #9aa3b2; }
.msg .bubble {
  max-width: 82%; min-width: 0; padding: 10px 13px; border-radius: 14px;
  font-size: calc(14.5px * var(--ui-scale, 1)); line-height: 1.55;
  word-break: break-word; overflow-wrap: anywhere;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.msg.ai .bubble { background: var(--bubble-ai); border-top-left-radius: 4px; }
.msg.user .bubble { background: var(--bubble-user); color: #fff; border-top-right-radius: 4px; }
.msg.user .bubble img { display: block; max-width: 180px; max-height: 180px; border-radius: 10px; cursor: zoom-in; }

/* 点击图片放大查看原图（全屏遮罩） */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lightbox img { max-width: 94vw; max-height: 94vh; object-fit: contain; border-radius: 6px; }

/* 打字加载 */
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #b6bcc8; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .3; transform: translateY(0);} 40% { opacity: 1; transform: translateY(-3px);} }

/* 示例快捷 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  border: 1px solid var(--border); background: #fff; color: var(--text);
  font-size: calc(12.5px * var(--ui-scale, 1)); padding: 6px 11px; border-radius: 999px; cursor: pointer;
}
.chip:active { background: #eef2ff; border-color: var(--primary); color: var(--primary); }

/* 结果卡片 */
.card { background: #fff; border-radius: 12px; padding: 12px 13px; margin-top: 8px; border: 1px solid var(--border); min-width: 0; overflow-wrap: anywhere; }
.card h4 { font-size: calc(13px * var(--ui-scale, 1)); margin-bottom: 8px; color: var(--text); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card h4 .tag {
  font-size: calc(10px * var(--ui-scale, 1)); color: var(--primary); background: #eef2ff;
  padding: 2px 7px; border-radius: 999px; font-weight: 500; max-width: 100%;
}
.card h4 .tag.near-tag {
  color: var(--primary); background: #eef2ff;
}
.kv { display: grid; grid-template-columns: calc(86px * var(--ui-scale, 1)) minmax(0, 1fr); gap: 5px 8px; font-size: calc(13px * var(--ui-scale, 1)); }
.kv .k { color: var(--text-sub); }
.kv .v { color: var(--text); font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.vip { color: var(--primary); font-weight: 600; }
.note-line { font-size: calc(13px * var(--ui-scale, 1)); color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-border); padding: 8px 11px; border-radius: 10px; margin-top: 8px; overflow-wrap: anywhere; }
.note-line.note-sm { font-size: calc(12px * var(--ui-scale, 1)); }
.note-line.danger { color: var(--danger); background: #fdecec; border-color: #f5c6c6; }
.note-line.success { color: #1e7e34; background: #e8f6ec; border-color: #bfe6cb; }
/* 点击反馈给客服（浅蓝色文字，无边框，与提示文字同字号） */
.fb-link { color: #3b82f6; font-weight: 500; cursor: pointer; background: none; border: none; padding: 0; margin: 0; font-size: inherit; vertical-align: baseline; }
.fb-link:hover { text-decoration: underline; }
.fb-link:disabled { opacity: .6; cursor: default; }
.fb-link.done { color: #16a34a; text-decoration: none; }

.parts-media { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; max-width: 100%; min-width: 0; }
/* 多接头适配行：标签列与前刮 kv 对齐，接头值黑色，按钮靠最右 */
.adapt-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 4px 0; margin-top: 2px; }
.adapt-row:first-child { margin-top: 6px; }
.adapt-label { flex: 0 0 calc(86px * var(--ui-scale, 1)); font-size: calc(13px * var(--ui-scale, 1)); color: var(--text-sub); }
.adapt-no { font-size: calc(13px * var(--ui-scale, 1)); overflow-wrap: anywhere; }
.adapt-no.vip { font-weight: 600; color: var(--text); }
.adapt-toggle { margin-left: auto; border: 1px solid var(--border); background: #fff; color: #6b7280; border-radius: 999px; padding: 2px 12px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.adapt-toggle:hover { border-color: var(--primary); background: #eef2ff; }
.adapt-media { flex: 1 1 100%; display: flex; gap: 4px 8px; align-items: flex-start; }
.adapt-media[hidden] { display: none; }
.adapt-media-label { flex: 0 0 calc(86px * var(--ui-scale, 1)); font-size: calc(13px * var(--ui-scale, 1)); color: var(--text-sub); }
.adapt-media > .parts-media { flex: 1 1 auto; min-width: 0; }
.parts-media .pm-img { max-width: 100%; min-width: 0; }
.parts-media .pm-img img { max-width: 100%; max-height: 150px; height: auto; width: auto; border: 1px solid var(--border); border-radius: 10px; display: block; background: #fff; cursor: zoom-in; }
/* 图片放大弹窗 */
.image-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; visibility: hidden; opacity: 0; transition: opacity .18s ease; }
.image-modal.show { visibility: visible; opacity: 1; }
.image-modal .im-mask { position: absolute; inset: 0; background: rgba(0,0,0,.75); }
.image-modal .im-box { position: relative; max-width: 92vw; max-height: 92vh; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; }
.image-modal .im-box img { max-width: 92vw; max-height: 92vh; display: block; }
.image-modal .im-close { position: absolute; top: 8px; right: 8px; z-index: 10; width: 32px; height: 32px; border: none; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.image-modal .im-close:hover { background: rgba(0,0,0,.8); }
.parts-media .pm-video { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 999px; background: #eef2ff; color: #1d4ed8; font-size: 12px; font-weight: 600; text-decoration: none; }
.parts-media .pm-video { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 999px; background: #eef2ff; color: #1d4ed8; font-size: 12px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; font-family: inherit; }
.parts-media .pm-video:hover { background: #dbeafe; }
/* 视频弹窗 */
.video-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; visibility: hidden; opacity: 0; transition: opacity .18s ease; }
.video-modal.show { visibility: visible; opacity: 1; }
.video-modal .vm-mask { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.video-modal .vm-box { position: relative; width: min(900px, 94vw); background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.video-modal .vm-close { position: absolute; top: 8px; right: 8px; z-index: 10; width: 30px; height: 30px; border: none; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.video-modal .vm-close:hover { background: rgba(0,0,0,.8); }
.video-modal .vm-frame { position: relative; width: 100%; aspect-ratio: 16/9; }
.video-modal .vm-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; display: block; }

/* 候选列表 */
.cand { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.cand-item {
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px;
  background: #fff; cursor: pointer; text-align: left; font-size: calc(13.5px * var(--ui-scale, 1));
  min-width: 0; overflow-wrap: anywhere;
}
.cand-item:hover { border-color: var(--primary); }
.cand-item .t { font-weight: 600; color: var(--text); }
.cand-item .s { color: var(--text-sub); font-size: calc(12px * var(--ui-scale, 1)); margin-left: 6px; }
.cand-item .pfx { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 4px; margin-right: 6px; border-radius: 5px; font-size: 11px; font-weight: 700; color: #fff; line-height: 1; }
.cand-item .pfx.pfront { background: #1d4ed8; }
.cand-item .pfx.prear { background: #059669; }
.cand-item .yr { color: var(--primary); font-size: calc(12px * var(--ui-scale, 1)); white-space: nowrap; }

/* 输入区 */
.inputbar {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--border); flex-shrink: 0;
}
.inputbar .cam-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none; background: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sub); cursor: pointer; flex-shrink: 0; margin: 3px 0 3px 2px;
}
.inputbar .cam-btn:active { background: #e9edf2; }
.inputbar .cam-btn svg { width: 21px; height: 21px; }
.inputbar .input-wrap {
  flex: 1; display: flex; align-items: center; min-width: 0;
  border: 1px solid var(--border); border-radius: 22px;
  background: var(--bg); padding: 2px 6px 2px 4px;
  transition: border-color .15s, background .15s;
}
.inputbar .input-wrap:focus-within { border-color: var(--primary); background: #fff; }
.inputbar .txt {
  flex: 1; border: none; border-radius: 0; background: transparent;
  padding: 10px 10px 10px 4px; font-size: calc(14.5px * var(--ui-scale, 1)); outline: none; resize: none;
  max-height: 100px; font-family: inherit; box-shadow: none;
}
.inputbar .txt:focus { border-color: transparent; background: transparent; }
.inputbar .send {
  width: 40px; height: 40px; border-radius: 50%; align-self: center;
  border: none; cursor: pointer;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s;
}
.inputbar .send:disabled { background: #c6ccd8; }
.inputbar .send svg { width: 19px; height: 19px; }
.tip { text-align: center; font-size: calc(11px * var(--ui-scale, 1)); color: var(--text-sub); padding: 6px 0 2px; background: #fff; border-top: 1px solid var(--border); }

/* 设置页 / 数据页通用 */
.page { max-width: 560px; margin: 0 auto; padding: 16px; }
.page h2 { font-size: 18px; margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text); margin-bottom: 6px; font-weight: 500; }
.field input, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; outline: none; background: #fff;
}
.field input:focus { border-color: var(--primary); }
.hint { font-size: 12px; color: var(--text-sub); margin-top: 5px; line-height: 1.5; }
.hint.warn { color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 8px; padding: 8px 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 10px; padding: 11px 18px; font-size: 14.5px;
  background: var(--primary); color: #fff; cursor: pointer; margin-right: 8px;
}
.btn.secondary { background: #eef2ff; color: var(--primary); }
.result-box { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.result-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.result-card .tt { font-weight: 600; margin-bottom: 6px; }
.result-card.ok { border-left: 3px solid #22a06b; }
.result-card.fail { border-left: 3px solid var(--danger); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; }
table.data th, table.data td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; }
table.data th { background: #f7f8fa; position: sticky; top: 0; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 13px; text-decoration: none; }
.tabs a.on { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== 新增：输入自动大写 / 步骤加载 / VIN横幅 / 拍照弹层 ===== */
.inputbar .txt { text-transform: uppercase; } /* 输入框自动转大写（中文/数字不受影响） */

.loading-text { margin-top: 4px; font-size: 12px; color: #9aa3b2; }

/* 拍照识别：结果卡片顶部 VIN 横幅 */
.vin-banner {
  background: linear-gradient(135deg, #eef2ff, #e0ecff);
  border: 1px solid #c7d7ff; color: var(--primary-dark);
  font-size: calc(13.5px * var(--ui-scale, 1)); font-weight: 600;
  padding: 9px 12px; border-radius: 10px; margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.vin-banner .mono { letter-spacing: .5px; }

/* 手机端拍照/相册选择弹层 */
.sheet-mask {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 480px; background: #fff;
  border-radius: 16px 16px 0 0; padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
  animation: sheetUp .18s ease-out;
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
.sheet-title { text-align: center; font-size: 13px; color: var(--text-sub); padding: 8px 0 10px; }
.sheet-btn {
  display: block; width: 100%; text-align: center;
  border: none; background: #f4f6f9; color: var(--text);
  font-size: 15px; padding: 13px; border-radius: 12px; margin-bottom: 9px; cursor: pointer;
}
.sheet-btn:active { background: #e9edf2; }
.sheet-cancel { background: #fff; color: var(--text-sub); border: 1px solid var(--border); }


/* ===== 小屏适配（≤360px 与矮屏）===== */
@media (max-width: 360px) {
  .app { max-width: 100%; }
  .kv { grid-template-columns: 74px 1fr; }
  .msg .bubble { max-width: 88%; padding: 9px 11px; }
  .parts-media .pm-img img { max-width: 100%; max-height: 130px; }
  .card h4 .tag { white-space: normal; }
  .inputbar { padding: 12px 10px calc(12px + env(safe-area-inset-bottom)); }
}
/* 窄矮屏（如 320x568）进一步收紧 */
@media (max-width: 340px) and (max-height: 640px) {
  .kv { grid-template-columns: 68px 1fr; gap: 4px 6px; }
  .msg .bubble { max-width: 92%; }
  .cand-item { padding: 8px 10px; }
  .header { padding: 10px 12px; }
  .chat { padding: 12px 10px 10px; }
}
/* 大屏手机（≥430px）适度放大 */
@media (min-width: 430px) and (max-width: 479px) {
  .msg .bubble { max-width: 78%; }
}


/* ===== 会员登录弹层 ===== */
.member-mask{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;padding:20px}
.member-wrap{display:flex;flex-direction:column;align-items:center}
.member-box{background:#fff;width:100%;max-width:340px;border-radius:16px;padding:24px 22px;box-shadow:0 8px 32px rgba(0,0,0,.18)}
.member-close{margin-top:16px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(255,255,255,.92);color:#666;font-size:16px;cursor:pointer;line-height:1;transition:background .15s}
.member-close:hover{background:#fff;color:#333}
.member-title{font-size:17px;font-weight:700;text-align:center;margin-bottom:5px}
.member-sub{font-size:12px;color:var(--text-sub);text-align:center;margin-bottom:16px;line-height:1.5}
.member-box input{width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:10px;font-size:14px;margin-bottom:10px;outline:none;box-sizing:border-box}
.member-box input:focus{border-color:var(--primary)}
.member-msg{font-size:13px;color:var(--danger);min-height:18px;margin-bottom:6px;text-align:center}
.member-btns{display:flex;gap:10px}
.member-btns button{flex:1;padding:11px;border:none;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer}
.member-btn-cancel{background:#f3f4f6;color:#374151}
.member-btn-ok{background:var(--primary);color:#fff}

/* ===== 关于我们弹窗 ===== */
.about-mask{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:999;padding:24px}
.about-box{background:#fff;border-radius:16px;width:100%;max-width:340px;padding:28px 24px 22px;position:relative;box-shadow:0 10px 40px rgba(0,0,0,.18);max-height:90vh;overflow-y:auto}
.about-close{position:absolute;top:12px;right:14px;font-size:18px;color:#999;cursor:pointer;line-height:1}
.about-name{font-size:18px;font-weight:700;text-align:center;margin-bottom:16px;color:#1f2329}
.about-section{margin-bottom:12px}
.about-label{font-size:12px;color:#8a8f99;margin-bottom:4px;font-weight:600}
.about-text{font-size:14px;color:#1f2329;line-height:1.7;word-break:break-all}
.about-text a{color:#2f6bff;text-decoration:none}
.about-video-wrap{position:relative;width:100%;aspect-ratio:9/16;border-radius:10px;overflow:hidden;background:#000;margin-bottom:6px;max-height:66vh}
.about-video-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.about-banner{width:100%;border-radius:10px;margin-bottom:14px;display:block}
.about-qr{width:120px;max-width:45%;border-radius:10px;display:block;margin:6px auto 4px;border:1px solid #eee}
.about-qr-tip{text-align:center;color:#8a8f99;font-size:12px}
.limit-login{color:#2f6bff;font-weight:600;cursor:pointer}
.limit-login:active{opacity:.7}

/* 外部链接 ?cam=1 拍照引导层 */
.cam-mask{position:fixed;inset:0;z-index:200;background:rgba(15,23,42,.68);display:flex;align-items:center;justify-content:center;padding:24px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.cam-guide{background:#fff;border-radius:20px;padding:32px 28px;width:min(340px,90vw);text-align:center;box-shadow:0 24px 60px rgba(0,0,0,.28);animation:camPop .28s ease}
@keyframes camPop{from{transform:scale(.92);opacity:0}to{transform:scale(1);opacity:1}}
.cam-guide-icon{width:72px;height:72px;margin:0 auto 16px;border-radius:50%;background:linear-gradient(135deg,#2f6bff,#6d9bff);display:flex;align-items:center;justify-content:center;color:#fff}
.cam-guide-icon svg{width:34px;height:34px}
.cam-guide-title{font-size:17px;font-weight:600;color:#1a2233;margin-bottom:8px}
.cam-guide-sub{font-size:13px;color:#7b8496;margin-bottom:20px;line-height:1.5}
.cam-guide-btn{width:100%;padding:13px 0;border:none;border-radius:12px;background:linear-gradient(135deg,#2f6bff,#4a8bff);color:#fff;font-size:15px;font-weight:600;cursor:pointer;transition:opacity .15s}
.cam-guide-btn:active{opacity:.85}
.cam-guide-cancel{margin-top:14px;font-size:13px;color:#9aa3b5;cursor:pointer}
.cam-guide-cancel:active{color:#6b7488}

/* 车型查询三级菜单：年份+排量一层展开 */
.tree-level { font-size: 13px; color: #6b7280; margin: 10px 0 6px; font-weight: 600; }
.cand.tree { gap: 6px; }
.tree-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px dashed rgba(0,0,0,.06); }
.tree-year { font-size: 13px; color: #6b7280; min-width: 92px; font-weight: 600; white-space: nowrap; }
.tree-row .cand-item { padding: 6px 10px; font-size: calc(12.5px * var(--ui-scale, 1)); }
/* 无排量年款：复用排量按钮样式（cand-item） */
.tree-row-direct.tree-row-direct { font-size: calc(13px * var(--ui-scale, 1)); }
.tree-row-direct:hover { border-color: var(--primary); }

/* 车型分页 */
.tree-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; }
.pg-btn { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 5px 13px; font-size: calc(13px * var(--ui-scale, 1)); cursor: pointer; color: var(--text); }
.pg-btn:disabled { opacity: .45; cursor: default; }
.pg-info { font-size: calc(13px * var(--ui-scale, 1)); color: #6b7280; white-space: nowrap; }

/* 车型名蓝底小标签（选择年款 + 排量上方） */
.tree-title { margin-bottom: 6px; }
.blue-tag { display: inline-block; font-size: calc(12px * var(--ui-scale, 1)); color: var(--primary); background: #eef2ff; padding: 3px 10px; border-radius: 999px; font-weight: 500; }

/* 同雨刮规格去重合并标注（如「标准版 / 4 E-Hybrid 等 5 款通用」） */
.group-note { font-size: calc(12px * var(--ui-scale, 1)); color: #1a7f37; background: #e9f8ef; border: 1px solid #c5ecd4; padding: 5px 9px; border-radius: 8px; margin: 2px 0 6px; overflow-wrap: anywhere; line-height: 1.5; }
