/* styles.css — 逛展助手 v4 柔彩卡片 (F18)
   配色：浅紫底 + pastel 柔彩色板（青柠/粉/蓝/紫/米）
   布局：彩色大圆角卡片 + pill 标签 + 圆形箭头 + 深色悬浮胶囊导航 */
:root {
  --ink: #2E2833;
  --ink-2: #5B5261;
  --lime: #D8E79A;
  --pink: #F3CADE;
  --blue: #C6DCF2;
  --lavender: #DEC5F0;
  --cream: #F7EACD;
  --violet: #A87CC4;
  --green: #7C9A4D;
  --amber: #B98F3E;
  --red: #C4687F;
  --primary: #2E2833;
  --primary-dark: #1D1821;
  --primary-soft: #F0E9F6;
  --bg: #F4F9F6;
  --bg-warm: #F8FBF8;
  --card: #FFFFFF;
  --text: #2E2833;
  --text-2: #5B5261;
  --muted: #8B8093;
  --muted-2: #B9AFC2;
  --border: #EDE5F2;
  --border-soft: #F3EDF7;
  --green-soft: #EBF2DB;
  --amber-dark: #8F6C26;
  --amber-soft: #F8EDD3;
  --btn-disabled: #CFC6D6;
  --grad: linear-gradient(100deg, #D8E79A, #F3CADE);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 8px rgba(46,40,51,.05);
  --shadow: 0 6px 24px rgba(46,40,51,.08);
  --maxw: 480px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px; line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
#app { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: env(safe-area-inset-bottom); }

/* ===== 通用卡片 ===== */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin: 10px 14px; }

/* ===== 首页头部 ===== */
.home-head { padding: 46px 20px 18px; }
.home-head h1 { margin: 0 0 6px; font-size: 30px; font-weight: 800; letter-spacing: 0; }
.home-head h1 .accent { color: var(--violet); }
.home-head p { margin: 0; color: var(--muted); font-size: 14px; }
.home-foot { text-align: center; color: var(--muted-2); font-size: 12px; padding: 26px 0 110px; padding: 26px 0 calc(110px + env(safe-area-inset-bottom)); }

/* ===== 首页展会卡片（卡片式 · 图一） ===== */
.expo-list { padding: 4px 14px 60px; }
.expo-card { display: block; position: relative; min-width: 0; border-radius: 26px 26px 0 0; padding: 18px 18px 56px; margin-bottom: -42px; color: var(--ink); overflow: hidden; box-shadow: 0 8px 24px rgba(46,40,51,.10); transition: transform .12s; }
.expo-card:last-child { border-radius: 26px; margin-bottom: 0; }
.expo-card:active { transform: scale(.985); }
.expo-card.ended { filter: grayscale(.75) saturate(.45); }
.expo-row1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.expo-name { font-size: 19px; font-weight: 800; line-height: 1.3; flex: 1; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.expo-pct { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex-shrink: 0; line-height: 1.15; }
.expo-pct b { font-size: 15px; font-weight: 800; color: var(--ink); opacity: .7; font-variant-numeric: tabular-nums; }
.expo-pct small { font-size: 9px; font-weight: 600; color: var(--ink); opacity: .45; }
.expo-meta-line { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); opacity: .62; white-space: normal; line-height: 1.5; }
.expo-row2 { position: static; margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.expo-pill { font-size: 11.5px; font-weight: 600; color: var(--ink); padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.38); border: 1.5px solid rgba(255,255,255,.6); white-space: normal; line-height: 1.35; min-width: 0; }
.expo-arrow { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.expo-arrow .icon { width: 17px; height: 17px; }

/* ===== 底部导航（深色悬浮胶囊 · 图一） ===== */
.bottom-nav {
  position: fixed; bottom: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); left: 0; right: 0;
  width: fit-content; margin: 0 auto; display: flex; gap: 10px;
  background: var(--ink); border: none; border-radius: 999px; padding: 8px;
  box-shadow: 0 10px 30px rgba(46,40,51,.30); z-index: 50;
}
.nav-item { flex: none; display: flex; flex-direction: row; align-items: center; gap: 6px; padding: 9px 20px; border-radius: 999px; color: #CFC6DA; font-size: 12.5px; cursor: pointer; border: none; background: none; transition: .15s; }
.nav-item .icon { width: 17px; height: 17px; }
.nav-item.nav-active { background: var(--lime); color: var(--ink); font-weight: 700; padding: 9px 14px; }
.nav-item:not(.nav-active) { padding: 9px 28px; }

/* ===== 页眉（浅色大标题 · 图二） ===== */
.bar-head { padding: 18px 16px 18px; color: var(--text); border-radius: 0 0 26px 26px; position: relative; }
.bar-head.plain { background: transparent !important; border-radius: 0; padding-top: 24px; }
.bar-head .back { position: static; display: inline-flex; align-items: center; gap: 2px; background: rgba(255,255,255,.55); color: var(--text); border-radius: 999px; padding: 7px 13px 7px 9px; font-size: 13px; font-weight: 600; }
.bar-head .back .icon { width: 16px; height: 16px; }
.bar-name { font-size: 22px; font-weight: 800; margin-top: 14px; }
.bar-name .icon { width: 21px; height: 21px; vertical-align: -3px; }
.bar-meta { font-size: 12.5px; opacity: .78; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.bar-meta .icon { width: 13px; height: 13px; }

/* ===== 搜索框 ===== */
.search-box { padding: 12px 14px 0; }
.search-input { width: 100%; border: none; background: var(--card); border-radius: 999px; box-shadow: var(--shadow-sm); padding: 12px 18px; font-size: 14px; outline: none; }

/* ===== Tab（胶囊容器） ===== */
.tabs { display: flex; margin: 12px 14px 4px; padding: 5px; gap: 4px; background: var(--card); border-radius: 999px; box-shadow: var(--shadow-sm); }
.tab-item { flex: 1; border: none; background: transparent; border-radius: 999px; padding: 9px 4px; font-size: 13px; color: var(--muted); cursor: pointer; transition: .12s; }
.tab-item.tab-active { background: var(--primary); color: #fff; font-weight: 600; }

/* ===== 列表项 ===== */
.item-card { cursor: pointer; transition: .12s; padding-left: 12px; border-left: 3px solid transparent; }
.item-card:active { transform: scale(.985); }
.item-card.item-checked { border-left-color: var(--primary); background: var(--primary-soft); }
.item-head { display: flex; align-items: flex-start; gap: 10px; }
.check-box { flex-shrink: 0; width: 22px; height: 22px; border-radius: 8px; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; transition: .12s; margin-top: 1px; }
.item-checked .check-box { background: var(--primary); border-color: var(--primary); }
.check-box .icon { width: 14px; height: 14px; color: #fff; opacity: 0; transition: .12s; }
.item-checked .check-box .icon { opacity: 1; }
.item-body { flex: 1; min-width: 0; }
.item-name { font-weight: 600; font-size: 15px; }
.item-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.item-sub .icon { width: 12px; height: 12px; color: var(--muted-2); }
.item-desc { color: var(--text-2); line-height: 1.45; }
.tag-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag { font-size: 11px; background: var(--primary); color: #fff; border-radius: 999px; padding: 2px 9px; margin-left: 6px; }
.tag-soft { background: var(--primary-soft); color: var(--primary); margin-left: 0; }
.del-btn { flex-shrink: 0; width: 28px; height: 28px; border: none; background: var(--bg-warm); border-radius: 9px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); }
.del-btn .icon { width: 15px; height: 15px; }
.del-btn:active { background: var(--border); }

/* 备注按钮 */
.note-btn { flex-shrink: 0; width: 30px; height: 30px; border: none; background: var(--bg-warm); border-radius: 9px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: .12s; margin-top: 1px; }
.note-btn .icon { width: 15px; height: 15px; }
.note-btn:active { transform: scale(.92); }
.note-btn.has-note { color: var(--violet); background: #F0E4F9; }
.done-btn { flex-shrink: 0; align-self: center; border: 1.5px solid var(--primary); background: #fff; color: var(--primary); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; cursor: pointer; transition: .12s; }
.done-btn:active { transform: scale(.94); }
.done-btn.done-active { background: var(--green-soft); color: var(--green); border-color: var(--green); }
.item-done .item-name { text-decoration: line-through; opacity: .6; }
.tl-done .tl-name { text-decoration: line-through; opacity: .6; }
.tl-done .tl-sub { opacity: .65; }
/* ===== 底部操作栏（悬浮圆角条） ===== */
.footer-space { height: 96px; height: calc(96px + env(safe-area-inset-bottom)); }
.footer-bar { position: fixed; bottom: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: calc(100% - 24px); max-width: 452px; display: flex; gap: 10px; padding: 10px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: none; border-radius: 24px; box-shadow: 0 10px 30px rgba(46,40,51,.18); z-index: 20; }
.footer-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 8px; border: none; border-radius: 16px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: .12s; }
.footer-btn .icon { width: 17px; height: 17px; flex-shrink: 0; }
.footer-add { background: var(--primary-soft); color: var(--primary); }
.footer-add:active { background: #E4DAEE; }
.btn-primary { background: var(--grad); color: var(--ink); border: none; border-radius: 999px; padding: 12px 16px; font-size: 15px; font-weight: 700; cursor: pointer; transition: .12s; }
.btn-primary:active { background: linear-gradient(100deg, #C9D885, #EDBED3); }
.btn-primary:disabled { background: var(--btn-disabled); }
.footer-plan { background: var(--grad); color: var(--ink); }
.footer-plan:disabled { background: var(--btn-disabled); color: rgba(255,255,255,.85); cursor: not-allowed; }
.block { display: block; width: 100%; }

/* ===== 表单 ===== */
.form-card .field { display: block; margin-bottom: 12px; }
.setting-card .field { display: block; margin-bottom: 12px; }
.setting-card .btn-primary { margin-top: 8px; }
.field-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.ipt { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; background: var(--bg-warm); outline: none; transition: border .15s, background .15s; }
.ipt:focus { border-color: var(--primary); background: #fff; }
.seg { display: flex; gap: 4px; margin-bottom: 12px; background: var(--bg-warm); border-radius: 999px; padding: 5px; }
.seg-btn { flex: 1; border: none; background: transparent; border-radius: 999px; padding: 9px; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted); }
.seg-btn .icon { width: 15px; height: 15px; }
.seg-btn.seg-active { background: var(--primary); color: #fff; font-weight: 600; }

/* ===== 统计卡 ===== */
.stats-card { display: flex; }
.stat-item { flex: 1; text-align: center; }
.stat-num { font-size: 23px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ===== 提示卡 ===== */
.warn-card { background: var(--amber-soft); }
.warn-title { font-weight: 700; font-size: 14px; color: var(--amber-dark); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.warn-title .icon { width: 16px; height: 16px; }
.warn-item { font-size: 13px; color: var(--text-2); padding: 2px 0; }
.warn-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ===== 时间线 ===== */
.timeline { padding: 4px 14px 30px; }
.tl-item { display: flex; gap: 12px; }
.tl-minor { min-height: 0; }
.tl-time { flex: 0 0 42px; text-align: right; font-size: 12px; color: var(--muted); padding-top: 14px; font-variant-numeric: tabular-nums; }
.tl-rail { flex: 0 0 16px; display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--primary); margin-top: 16px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.tl-dot-minor { width: 5px; height: 5px; background: var(--muted-2); box-shadow: none; border: none; margin-top: 19px; }
.tl-line { flex: 1; width: 2px; background: var(--border); margin-top: 2px; min-height: 10px; }
.tl-line-minor { background: var(--border); }
.tl-content { flex: 1; padding-bottom: 10px; min-width: 0; }
.tl-card { margin: 8px 0 0; }
.tl-flex { display: flex; gap: 10px; align-items: flex-start; }
.tl-flex-main { flex: 1; min-width: 0; }
.tl-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.tl-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tl-minor-text { font-size: 11.5px; color: var(--muted-2); padding: 18px 0 0; display: flex; align-items: center; gap: 4px; }
.tl-minor-text .icon { width: 12px; height: 12px; }
.tl-end { text-align: center; font-size: 13px; color: var(--muted); padding: 16px 0; }
.got-btn { flex: 0 0 auto; border: 1.5px solid var(--primary); background: #fff; color: var(--primary); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; align-self: center; }
.got-btn.got-done { background: var(--green-soft); color: var(--green); border-color: var(--green); }

/* ===== 导出按钮 ===== */
.export-bar { padding: 0 14px 20px; display: flex; gap: 8px; }
.btn-outline { background: var(--card); color: var(--text-2); border: 1.5px solid var(--border); border-radius: 999px; padding: 11px 16px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: .12s; flex: 1; }
.btn-outline:active { background: var(--bg-warm); }
.btn-outline .icon { width: 16px; height: 16px; }

/* ===== 我的页 ===== */
.mine-head { padding: 52px 18px 16px; text-align: center; }
.mine-avatar { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 10px; background: linear-gradient(135deg, var(--lavender), var(--pink)); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.menu-card { padding: 4px 14px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: none; background: none; padding: 14px 4px; font-size: 15px; cursor: pointer; border-bottom: 1px solid var(--border); }
.menu-item:last-child { border-bottom: none; }
.menu-item .icon { width: 18px; height: 18px; color: var(--muted); }
.menu-item.danger { color: var(--red); }
.menu-item.danger .icon { color: var(--red); }

/* ===== 通用 ===== */
.tips { color: var(--muted); font-size: 12px; padding: 8px 18px; }
.tips.center { text-align: center; }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; font-size: 14px; line-height: 1.8; }
.empty.small { padding: 24px; font-size: 13px; }
.empty a { color: var(--violet); }

/* ===== toast ===== */
.toast { position: fixed; left: 50%; bottom: 108px; bottom: calc(108px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: rgba(46,40,51,.94); color: #fff; padding: 10px 22px; border-radius: 999px; font-size: 14px; z-index: 100; opacity: 0; transition: .25s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== modal ===== */
.modal-mask { position: fixed; inset: 0; background: rgba(46,40,51,.35); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 200; opacity: 0; transition: .25s; padding: 20px; }
.modal-mask.show { opacity: 1; }
.modal { background: #fff; border-radius: 22px; padding: 22px; width: 100%; max-width: 320px; transform: scale(.92); transition: .25s; }
.modal-mask.show .modal { transform: scale(1); }
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.modal-body { font-size: 14px; color: var(--text-2); margin-bottom: 18px; }
.modal-ok { margin-top: 16px; }

/* ===== 底部弹窗 (detail sheet) ===== */
.sheet-mask { position: fixed; inset: 0; background: rgba(46,40,51,.35); backdrop-filter: blur(2px); z-index: 180; opacity: 0; transition: opacity .25s; }
.sheet-mask.show { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: var(--maxw); margin: 0 auto; background: var(--card); border-radius: 26px 26px 0 0; max-height: 80vh; overflow-y: auto; z-index: 181; transform: translateY(100%); transition: transform .28s cubic-bezier(.22,.61,.36,1); padding-bottom: env(safe-area-inset-bottom); }
.sheet.show { transform: translateY(0); }
.sheet-handle { width: 38px; height: 4px; border-radius: 3px; background: var(--border); margin: 10px auto 0; }
.sheet-pad { padding: 8px 20px 28px; position: relative; }
.sheet-close { position: absolute; top: 14px; right: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-warm); border: none; display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }
.sheet-close .icon { width: 16px; height: 16px; }
.sheet-title { font-size: 18px; font-weight: 800; letter-spacing: 0; padding-right: 32px; }
.sheet-sub { font-size: 13px; color: var(--muted); margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.sheet-chip { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--bg-warm); color: var(--text-2); }
.sheet-chip .icon { width: 12px; height: 12px; }
.sheet-desc { font-size: 13px; color: var(--text-2); margin-top: 14px; line-height: 1.65; background: var(--bg-warm); border-radius: 14px; padding: 12px 14px; }
.sheet-note-label { font-size: 11px; font-weight: 700; color: var(--muted-2); margin-top: 16px; margin-bottom: 6px; letter-spacing: .4px; }
.sheet-note-box { width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 11px 13px; font-size: 13px; resize: vertical; min-height: 76px; font-family: inherit; outline: none; transition: border .15s, box-shadow .15s; line-height: 1.55; background: var(--bg-warm); }
.sheet-note-box:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: #fff; }
.sheet-actions { display: flex; gap: 8px; margin-top: 16px; align-items: center; justify-content: flex-end; }
.sheet-actions .btn-primary { flex: 1; }
.sheet-actions .btn-outline { flex: none; }

/* ===== 通用展馆地图 (F4) ===== */
.map-wrap { padding: 6px 14px 4px; }
.map-hint { text-align: center; font-size: 12px; color: var(--muted); padding: 6px 0 0; }
.vmap { width: 100%; height: auto; display: block; }
.vmap-zone-rect { fill: #F6F1FA; stroke: #E2D8EA; stroke-width: 1.5; stroke-dasharray: 4 4; transition: opacity .2s; }
.vmap-zone-rect.has-fav { fill: #F0E4F9; stroke: var(--violet); stroke-dasharray: 0; }
.vmap-zone.dimmed { opacity: .3; }
.vmap-interactive { cursor: pointer; }
.vmap-interactive:active .vmap-zone-rect { fill: #F0E4F9; stroke: var(--violet); }
.vmap-zname { fill: var(--text); font-size: 10px; font-weight: 700; }
.vmap-count { fill: var(--muted); font-size: 12px; font-weight: 600; }
.vmap-fav { fill: var(--violet); font-size: 9px; font-weight: 700; }
.vmap-route { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 6 4; stroke-linecap: round; opacity: .75; }
.vmap-badge circle { fill: var(--ink); stroke: #fff; stroke-width: 2.5; }
.vmap-num { fill: #fff; font-size: 10px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.vmap-legend-t { fill: var(--muted); font-size: 9px; }

/* 视图切换（列表 / 地图） */
.view-toggle { display: flex; gap: 4px; margin: 8px 14px 4px; padding: 5px; background: var(--card); border-radius: 999px; box-shadow: var(--shadow-sm); }
.vt-btn { flex: 1; border: none; background: transparent; border-radius: 999px; padding: 8px; font-size: 13px; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px; transition: .12s; }
.vt-btn .icon { width: 15px; height: 15px; }
.vt-btn.vt-active { background: var(--primary); color: #fff; font-weight: 600; }

/* 区域筛选条 */
.zone-filter-bar { display: flex; align-items: center; gap: 6px; padding: 0 14px 6px; flex-wrap: wrap; }
.zone-chip { font-size: 11px; font-weight: 600; border: 1px solid var(--border); background: var(--card); color: var(--muted); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.zone-chip.zc-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 数据导入区 */
.import-zone { border: 2px dashed #DCCFE6; border-radius: var(--radius); padding: 24px 16px; text-align: center; margin: 10px 14px; transition: .15s; }
.import-zone:active { border-color: var(--violet); background: var(--primary-soft); }
.import-zone .icon { width: 32px; height: 32px; color: var(--muted-2); margin: 0 auto 8px; display: block; }
.import-zone p { margin: 0; font-size: 13px; color: var(--muted); }
.import-zone strong { color: var(--violet); }
.import-preview { margin: 10px 14px; }
.import-stat { display: flex; gap: 10px; margin-bottom: 10px; }
.import-stat .stat-item { background: var(--bg-warm); border-radius: var(--radius-sm); padding: 8px; }

/* ===== 空状态引导卡 (F10) ===== */
.guide-card { background: linear-gradient(135deg, #F0E4F9, #FFFFFF); text-align: center; }
.guide-title { font-size: 16px; font-weight: 700; color: var(--violet); display: flex; align-items: center; justify-content: center; gap: 6px; }
.guide-title .icon { width: 20px; height: 20px; }
.guide-sub { font-size: 13px; color: var(--text-2); margin: 6px 0 12px; }
.guide-actions { display: flex; gap: 8px; justify-content: center; }
.guide-btn { background: var(--primary); color: #fff; border-radius: 999px; padding: 9px 20px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.guide-btn .icon { width: 16px; height: 16px; }
/* ===== 多格式导入选择器 (F5b) ===== */
.import-section { margin: 10px 14px; }
.import-section-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.import-section-title .icon { width: 17px; height: 17px; color: var(--violet); }
.import-grid { display: flex; gap: 8px; }
.import-card { flex: 1; background: var(--card); border: 1.5px solid var(--border); border-radius: 18px; padding: 14px 6px; text-align: center; cursor: pointer; transition: .12s; box-shadow: var(--shadow-sm); }
.import-card:active { border-color: var(--violet); background: var(--primary-soft); transform: scale(.97); }
.import-ic { width: 36px; height: 36px; margin: 0 auto 8px; border-radius: 12px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; }
.import-ic .icon { width: 20px; height: 20px; color: var(--primary); }
.import-card:nth-child(1) .import-ic { background: #F0E4F9; }
.import-card:nth-child(1) .import-ic .icon { color: var(--violet); }
.import-card:nth-child(2) .import-ic { background: var(--green-soft); }
.import-card:nth-child(2) .import-ic .icon { color: var(--green); }
.import-card:nth-child(3) .import-ic { background: #E3EEF9; }
.import-card:nth-child(3) .import-ic .icon { color: #6C93C4; }
.import-card:nth-child(4) .import-ic { background: #FAE9F0; }
.import-card:nth-child(4) .import-ic .icon { color: var(--red); }
.import-label { font-size: 13px; font-weight: 700; color: var(--text); }
.import-desc { font-size: 10px; color: var(--muted); margin-top: 3px; }
.import-divider { text-align: center; margin: 16px 14px 6px; position: relative; }
.import-divider span { background: var(--bg); padding: 0 14px; font-size: 12px; color: var(--muted-2); position: relative; z-index: 1; }
.import-divider::before { content: ''; position: absolute; top: 50%; left: 14px; right: 14px; height: 1px; background: var(--border); }

/* ===== 首页添加展会卡片 (F11) ===== */
.add-expo-card { display: flex; align-items: center; gap: 14px; margin: 0 14px 14px; border: 2px dashed #DCCFE6; background: var(--card); box-shadow: none; transition: .12s; border-radius: var(--radius); }
.add-expo-card:active { border-color: var(--violet); background: var(--primary-soft); transform: scale(.98); }
.add-expo-icon { width: 48px; height: 48px; border-radius: 16px; background: var(--green-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.add-expo-icon .icon { width: 24px; height: 24px; color: var(--green); }
.add-expo-text { flex: 1; }
.add-expo-title { font-size: 15px; font-weight: 700; color: var(--text); }
.add-expo-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ===== 导入可视化状态 (F13) ===== */
.imp-spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--violet); border-radius: 50%; animation: impSpin 0.8s linear infinite; margin: 0 auto 8px; }
@keyframes impSpin { to { transform: rotate(360deg); } }
.import-card.imp-card-loading { border-color: var(--violet); pointer-events: none; }
.import-card.imp-card-loading .import-label { color: var(--violet); }
.import-card.imp-card-done { border-color: #7BA88A; }
.import-card.imp-card-error { border-color: #C97B7B; }
.imp-card-status { font-size: 10px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imp-ic-ok { background: rgba(123,168,138,0.15) !important; }
.imp-ic-ok .icon { color: #7BA88A !important; }
.imp-card-done .import-label { color: #7BA88A; }
.imp-ic-err { background: rgba(201,123,123,0.15) !important; }
.imp-ic-err .icon { color: #C97B7B !important; }
.imp-card-error .import-label { color: #C97B7B; }

/* ===== 导入记录列表 (F13) ===== */
.import-history-section { margin: 14px 14px 6px; }
.import-history-title { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.import-history-empty { font-size: 12px; color: var(--muted-2); text-align: center; padding: 14px 0; }
.import-history-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border-radius: var(--radius-sm); margin-bottom: 6px; box-shadow: var(--shadow-sm); }
.imp-hist-icon { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.imp-hist-icon.success { background: rgba(123,168,138,0.15); }
.imp-hist-icon.failed { background: rgba(201,123,123,0.15); }
.imp-hist-icon .icon { width: 16px; height: 16px; }
.imp-hist-icon.success .icon { color: #7BA88A; }
.imp-hist-icon.failed .icon { color: #C97B7B; }
.imp-hist-body { flex: 1; min-width: 0; }
.imp-hist-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imp-hist-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.imp-hist-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; flex-shrink: 0; font-weight: 600; }
.imp-hist-tag.success { background: rgba(123,168,138,0.15); color: #5A8B6E; }
.imp-hist-tag.failed { background: rgba(201,123,123,0.15); color: #A86060; }

/* ===== 一键全部导入按钮 (F14) ===== */
.imp-btn-all { background: var(--card); color: var(--primary); border: 1.5px solid var(--primary); border-radius: 999px; padding: 11px 16px; font-size: 14px; font-weight: 700; cursor: pointer; transition: .12s; margin-right: 8px; }
.imp-btn-all:active { background: var(--primary-soft); transform: scale(.97); }

/* ===== 找搭子页面 (F15/F17) ===== */
.buddy-expo-info { text-align: center; padding: 8px 14px 4px; }
.buddy-expo-name { font-size: 17px; font-weight: 700; color: var(--text); }
.buddy-expo-date { font-size: 13px; color: var(--muted); margin-top: 4px; }
.buddy-seg { margin: 14px; }
.buddy-code-card { margin: 0 14px; padding: 16px; }
.buddy-code-label { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.buddy-code-label .icon { width: 17px; height: 17px; color: var(--primary); }
.buddy-code-box { width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px; font-size: 11px; font-family: monospace; color: var(--text-2); background: var(--bg-warm); resize: none; min-height: 60px; word-break: break-all; }
.buddy-code-box:focus { border-color: var(--primary); outline: none; }
.buddy-code-actions { margin-top: 10px; }
.buddy-code-tip { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.buddy-input-card { margin: 0 14px; padding: 16px; }
.buddy-input-label { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.buddy-input-label .icon { width: 17px; height: 17px; color: var(--primary); }
.buddy-error { font-size: 12px; color: #C97B7B; background: rgba(201,123,123,0.1); padding: 8px 12px; border-radius: 10px; margin: 8px 0; }
.buddy-empty { margin: 14px; padding: 30px 20px; text-align: center; }
.buddy-empty-ic { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--muted); }
.buddy-empty-ic .icon { width: 48px; height: 48px; }
.buddy-empty-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.buddy-empty-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.buddy-result-card { margin: 14px; padding: 20px 16px; text-align: center; }
.buddy-score-wrap { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.buddy-score-ring { width: 80px; height: 80px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 4px solid var(--border); }
.buddy-score-ring.high { border-color: var(--green); background: var(--green-soft); }
.buddy-score-ring.mid { border-color: var(--amber); background: var(--amber-soft); }
.buddy-score-ring.low { border-color: var(--red); background: #FAE9F0; }
.buddy-score-num { font-size: 28px; font-weight: 800; line-height: 1; }
.buddy-score-ring.high .buddy-score-num { color: var(--green); }
.buddy-score-ring.mid .buddy-score-num { color: var(--amber-dark); }
.buddy-score-ring.low .buddy-score-num { color: var(--red); }
.buddy-score-pct { font-size: 14px; font-weight: 700; }
.buddy-score-info { text-align: left; }
.buddy-score-label { font-size: 14px; font-weight: 700; color: var(--text); }
.buddy-score-level { font-size: 13px; font-weight: 600; margin-top: 2px; }
.buddy-score-level.high { color: var(--green); }
.buddy-score-level.mid { color: var(--amber-dark); }
.buddy-score-level.low { color: var(--red); }
.buddy-metrics { display: flex; gap: 8px; }
.buddy-metric { flex: 1; background: var(--bg-warm); border-radius: var(--radius-sm); padding: 10px 4px; }
.buddy-metric-num { font-size: 15px; font-weight: 700; color: var(--text); }
.buddy-metric-label { font-size: 10px; color: var(--muted); margin-top: 3px; }
.buddy-section { margin: 0 14px 10px; padding: 14px; }
.buddy-section-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.buddy-section-title .icon { width: 17px; height: 17px; color: var(--primary); }
.buddy-common-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text); }
.buddy-common-item:last-child { border-bottom: none; }
.buddy-common-item .icon { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.buddy-item-zone { margin-left: auto; font-size: 11px; color: var(--muted); background: var(--primary-soft); padding: 2px 8px; border-radius: 999px; }
.buddy-item-time { margin-left: auto; font-size: 11px; color: var(--muted); }
.buddy-suggest { border: 1.5px dashed #DCCFE6; }
.buddy-suggest-sub { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.buddy-suggest-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.buddy-suggest-item:active { background: var(--primary-soft); }
.buddy-suggest-info { flex: 1; font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.buddy-suggest-info .icon { width: 16px; height: 16px; color: var(--muted); }
.buddy-add-btn { width: 28px; height: 28px; border-radius: 9px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.buddy-add-btn .icon { width: 16px; height: 16px; color: var(--primary); }
.buddy-add-all { margin-top: 10px; border-radius: 999px; }
.footer-buddy { background: var(--amber-soft); color: var(--amber-dark); }
.footer-buddy:active { background: #F3E3BC; color: var(--amber-dark); }
/* ===== 路线匹配搭子（F17） ===== */
.buddy-my-card { margin: 10px 14px 0; }
.buddy-my-head { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; color: var(--text); margin-bottom: 10px; }
.buddy-my-head .icon { width: 18px; height: 18px; color: var(--primary); }
.buddy-my-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.buddy-my-line .icon { width: 15px; height: 15px; color: var(--muted); }
.buddy-my-line .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }
.buddy-my-sub { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.buddy-my-actions { display: flex; gap: 10px; }
.buddy-my-actions .btn-primary, .buddy-my-actions .btn-outline { flex: 1; }
.buddy-my-tip { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.buddy-paste-card { margin: 10px 14px 0; }
.buddy-paste-label { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.buddy-paste-label .icon { width: 17px; height: 17px; color: var(--primary); }
.buddy-pool-title { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--text); margin: 18px 16px 4px; }
.buddy-pool-title .icon { width: 18px; height: 18px; color: var(--primary); }
.buddy-pool-count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--primary-soft); padding: 2px 10px; border-radius: 999px; }
.buddy-pool-card { margin: 10px 14px 0; padding: 14px; }
.buddy-pool-row { display: flex; align-items: center; gap: 10px; }
.buddy-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.buddy-avatar.high { background: var(--green-soft); color: var(--green); }
.buddy-avatar.mid { background: var(--amber-soft); color: var(--amber-dark); }
.buddy-avatar.low { background: #FAE9F0; color: var(--red); }
.buddy-pool-info { flex: 1; min-width: 0; }
.buddy-pool-name { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.buddy-demo-tag { font-size: 10px; font-weight: 600; color: var(--muted); background: var(--bg-warm); border: 1px solid var(--border); padding: 1px 6px; border-radius: 999px; }
.buddy-pool-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.buddy-tag { font-size: 10.5px; background: var(--bg-warm); color: var(--muted); padding: 2px 7px; border-radius: 999px; font-weight: 600; }
.buddy-tag.same { background: var(--green-soft); color: var(--green); }
.buddy-pool-common { font-size: 12px; color: var(--text-2); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buddy-score { width: 58px; text-align: center; flex-shrink: 0; }
.buddy-score-num2 { font-size: 20px; font-weight: 800; line-height: 1; display: block; }
.buddy-score.high .buddy-score-num2 { color: var(--green); }
.buddy-score.mid .buddy-score-num2 { color: var(--amber-dark); }
.buddy-score.low .buddy-score-num2 { color: var(--red); }
.buddy-score-label2 { font-size: 10px; color: var(--muted); display: block; margin-top: 3px; }
.buddy-pool-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; border-top: 1px solid var(--border-soft); padding-top: 10px; }
.buddy-pool-actions .btn-outline.small, .buddy-pool-actions .btn-primary.small { padding: 7px 10px; font-size: 12.5px; min-height: 32px; flex: none; }
.buddy-pool-actions .btn-primary.small { display: inline-flex; align-items: center; gap: 4px; }
.buddy-pool-actions .btn-primary.small .icon { width: 14px; height: 14px; }
.buddy-del { width: 30px; height: 30px; margin-left: auto; border: none; background: var(--bg-warm); color: var(--muted); border-radius: 9px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.buddy-del .icon { width: 15px; height: 15px; }
.buddy-pool-card .buddy-result-card { margin: 12px 0 0; padding: 14px 10px; }
.buddy-pool-card .buddy-section { margin: 10px 0 0; }
.buddy-pool-card .buddy-score-ring { width: 68px; height: 68px; }
.buddy-pool-card .buddy-score-num { font-size: 23px; }

/* ===== 导入高亮 (F12) ===== */
.item-just-added { border-left: 3px solid var(--primary); background: rgba(46,40,51,.05); animation: flashNew 0.6s ease; }
@keyframes flashNew { from { background: rgba(168,124,196,.22); } to { background: rgba(46,40,51,.05); } }
