/* ═══════════════════════════════════════════
   北海康辉新微站 · 康辉VI配色 v2
   深蓝 #0B3B6B / 中蓝 #0088D4 / 翠绿 #00A688 / 金 #F5A623
   ═══════════════════════════════════════════ */

@font-face {
  font-family: 'Kanghui';
  src: url('../FZLanTYJW_Zhun.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --blue-deep: #0B3B6B;
  --blue-mid: #0088D4;
  --green-teal: #00A688;
  --gold: #F5A623;
  --gold-light: #fdf0d5;
  --bg: #f5f6f8;
  --white: #fff;
  --text: #1a1a1a;
  --text-secondary: #666;
  --text-muted: #999;
  --border: #eee;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius: 14px;
  --radius-sm: 10px;
  --font-kh: 'Kanghui', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', sans-serif;
}

html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  max-width: 450px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── 顶部栏 ── */
.top-bar {
  position: fixed; top:0; left:50%; transform:translateX(-50%);
  width:100%; max-width:450px; height:66px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  display:flex; align-items:center; padding:0 10px 0 0;
  z-index:100; box-shadow: 0 2px 8px rgba(11,59,107,.25);
}
/* ── 紧凑顶部栏（详情页） ── */
.top-bar.compact {
  height:44px !important;
  min-height:44px;
  padding:0 10px;
  justify-content:space-between;
}
.top-title {
  flex:1; min-width:0; text-align:center; color:#fff;
  font-size:16px; font-weight:600;
  display:none;
}
.top-bar.compact .top-title {
  display:flex !important;
  align-items:center;
  text-align:left;
}
.top-back {
  display:inline-flex; align-items:center; gap:4px;
  font-size:15px; font-weight:600; color:#fff;
  cursor:pointer; white-space:nowrap;
  background:rgba(255,255,255,.18);
  border-radius:8px; padding:6px 14px;
  letter-spacing:0.5px;
}

.top-logo {
  flex-shrink:0; margin-right:auto; padding:6px 0;
  display:flex; align-items:center;
}
.top-logo img { height:44px; display:block; }
.top-actions { display:flex; gap:6px; align-items:center; flex-shrink:0; }
.top-icon {
  display:flex; align-items:center; justify-content:center;
  width:38px; height:38px; cursor:pointer; opacity:.9;
}

/* ── 搜索栏 ── */
.search-bar {
  position:fixed; top:66px; left:50%; transform:translateX(-50%);
  width:100%; max-width:450px; background:var(--white);
  display:flex; align-items:center; padding:8px 16px; gap:10px;
  z-index:99; border-bottom:1px solid var(--border); transition: all .2s;
}
.search-bar.hidden { display:none; }
.search-input {
  flex:1; padding:9px 14px; border:1.5px solid var(--border); border-radius:20px;
  font-size:14px; outline:none; background:#f5f6f8;
}
.search-input:focus { border-color: var(--blue-mid); }
.search-cancel { font-size:14px; color: var(--blue-deep); cursor:pointer; white-space:nowrap; }

/* ── 内容区 ── */
.content {
  padding-top: 66px;  /* top bar */
  padding-bottom: 64px; /* bottom nav */
  min-height: 100vh;
}
.top-bar.compact ~ .content {
  padding-top:44px;
}

/* ═══ 首页 ═══ */
.home-banner {
  width:100%; height:136px; background: linear-gradient(160deg, var(--blue-deep) 0%, var(--blue-mid) 40%, var(--green-teal) 100%);
  position:relative; overflow:hidden; display:flex; flex-direction:column; align-items:flex-end; justify-content:center;
  padding:30px 30px 44px;
}
.home-banner::after {
  content:''; position:absolute; bottom:-30px; right:-30px;
  width:120px; height:120px; border-radius:50%;
  background:rgba(255,255,255,.06);
}
.banner-img {
  position:absolute; left:16px; top:50%;
  transform:translateY(calc(-50% - 0.6em));
  z-index:3; height:90px;
  opacity:.95;
}
.home-banner-text { color:#fff; text-align:right; z-index:1; }
.home-banner-text h2 { font-family:var(--font-kh); font-size:17px; margin-bottom:1px; letter-spacing:1px; white-space:nowrap; }
.home-banner-tel {
  position:absolute; right:16px; bottom:8px; display:flex; align-items:center; gap:4px;
  text-decoration:none; color:rgba(255,255,255,.8); font-size:12px; white-space:nowrap; z-index:5;
}
.home-banner-tel svg { width:14px; height:14px; }
.banner-store-bar {
  display:flex; justify-content:flex-end;
  width:100%; z-index:5; margin-top:4px;
}
.banner-store-pick {
  font-size:13px; color:#fff; background:rgba(255,255,255,.18);
  padding:5px 14px; border-radius:16px; cursor:pointer; font-weight:500;
}

/* ═══ 门店列表 ═══ */
.store-list { padding:16px; }
.store-card {
  background:var(--white); border-radius:var(--radius); padding:16px;
  margin-bottom:10px; box-shadow:var(--shadow); cursor:pointer; transition:transform .15s;
}
.store-card:active { transform:scale(.98); }
.store-card-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.store-card-name { font-size:16px; font-weight:600; }
.store-card-arrow { font-size:20px; color:#ccc; }
.store-card-addr { font-size:13px; color:var(--text-muted); margin-bottom:4px; }
.store-card-tel { font-size:13px; color:var(--blue-mid); }

/* ═══ 门店专属页 ═══ */
.store-hero {
  position:relative; overflow:hidden; padding:40px 20px 28px;
  text-align:center; color:#fff;
}
.store-hero-bg {
  position:absolute; top:0; left:0; right:0; bottom:0;
  background:linear-gradient(135deg, #1a237e, #283593, #3949ab);
}
.store-hero-info { position:relative; z-index:1; }
.store-hero-icon { font-size:48px; display:block; margin-bottom:8px; }
.store-hero-info h2 { font-size:22px; font-weight:700; font-family:var(--font-kh); margin:0 0 8px; }
.store-hero-addr { font-size:13px; opacity:.85; margin-bottom:16px; }
.store-hero-actions { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.store-hero-call {
  display:inline-block; padding:10px 24px; border-radius:24px;
  background:#fff; color:#1a237e; font-size:14px; font-weight:600;
  text-decoration:none; cursor:pointer;
}
.store-hero-share {
  display:inline-block; padding:10px 24px; border-radius:24px;
  background:rgba(255,255,255,.2); color:#fff; font-size:14px; cursor:pointer;
}

/* 分类Tab */
.cat-tabs {
  display:flex; gap:4px; padding:12px 10px; justify-content:space-evenly;
  background:var(--white); position:sticky; top:66px; z-index:10;
}
.cat-tabs::-webkit-scrollbar { display:none; }
.cat-tab {
  padding:6px 10px; border-radius:20px; font-size:13px;
  border:1.5px solid var(--border); color:var(--text-secondary); background:var(--white);
  cursor:pointer; transition:all .2s; white-space:nowrap; text-align:center;
}
.cat-tab.active {
  background:var(--blue-deep); color:#fff; border-color:var(--blue-deep);
  font-weight:600;
}

/* 线路卡片 */
.line-list { padding:0 16px; }
.line-card {
  background:var(--white); border-radius:var(--radius); overflow:hidden;
  margin-bottom:12px; box-shadow:var(--shadow); cursor:pointer; transition:transform .15s;
}
.line-card:active { transform:scale(.98); }
.line-card-img {
  width:100%; aspect-ratio:510/200; background: linear-gradient(135deg, #e0ecf6, #c8e6e0);
  background-size:contain; background-position:center; background-repeat:no-repeat; position:relative;
  cursor:pointer;
}
.line-card-badge {
  display:inline-block; padding:2px 8px; border-radius:20px; font-size:10px; font-weight:600;
  color:#fff; margin-left:4px;
}
.line-card-badge.hot { background:var(--gold); }
.line-card-badge.new { background:#00A688; }
.line-card-badge.tejia { background:#e74c3c; }
.line-card-badges {
  position:absolute; top:8px; right:8px; display:flex; flex-wrap:wrap; gap:4px;
  justify-content:flex-end;
}
.line-card-body { padding:12px 14px; }
.line-card-title { font-size:17px; font-weight:700; color:var(--text); margin-bottom:6px; cursor:pointer; }
.line-card-tags { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin-top:-5px; }
.line-card-tag {
  font-size:11px; padding:2px 8px; border-radius:10px;
  background:#e8f4fd; color:var(--blue-mid);
}
.line-card-footer { display:flex; justify-content:space-between; align-items:flex-end; gap:8px; margin-bottom:8px; }
.line-card-price { color:var(--gold); font-weight:700; flex-shrink:0; }
.line-card-price .num { font-size:20px; }
.line-card-price .unit { font-size:12px; }
.line-card-mainview {
  font-size:13px; color:var(--text-muted); line-height:1.4; margin-bottom:6px;
}
/* 加载更多 */
.load-more { text-align:center; padding:20px; color:var(--text-muted); font-size:13px; }
.load-more.spin::before { content:'⏳ '; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* 空状态 */
.empty-state { text-align:center; padding:60px 20px; color:var(--text-muted); }
.empty-state .empty-icon { font-size:48px; margin-bottom:12px; opacity:.5; }
.empty-state p { font-size:14px; }

/* ═══ 产品详情 ═══ */
/* ═══ 详情页 — 延续首页风格 ═══ */
.detail-page { background:var(--bg); min-height:calc(100vh - 176px); }
/* Hero — 首页banner渐变 + 产品图贴顶 + 标题在下 */
.detail-hero {
  width:100%; height:240px;
  background: linear-gradient(160deg, var(--blue-deep) 0%, var(--blue-mid) 40%, var(--green-teal) 100%);
  position:relative; overflow:hidden;
  display:flex; flex-direction:column;
}
.detail-hero-img {
  width:100%; flex:1 1 auto;
  object-fit:contain; object-position:top center;
  min-height:0;
}
.detail-hero-info {
  flex-shrink:0; padding:8px 16px 14px;
  color:#fff; text-align:left;
}
.detail-hero-title { font-size:18px; font-weight:700; font-family:var(--font-kh); line-height:1.3; }
.detail-hero-meta { font-size:12px; opacity:.85; margin-top:2px; }
/* Price行 */
.detail-price-row {
  display:flex; align-items:baseline; padding:14px 16px; background:var(--white);
  border-bottom:1px solid var(--border);
}
.detail-price-num { font-size:28px; font-weight:700; color:var(--gold); font-family:var(--font-kh); }
.detail-price-unit { font-size:13px; color:var(--text-muted); margin-left:2px; }
.detail-sub-prices { margin-top:3px; display:flex; flex-wrap:wrap; gap:6px; }
.detail-sub-price { font-size:11px; color:var(--text-muted); background:#f0f4f8; padding:1px 6px; border-radius:3px; white-space:nowrap; }
.detail-price-tag {
  margin-left:auto; font-size:11px; padding:3px 10px; border-radius:20px;
  background:var(--gold-light); color:var(--gold); font-weight:600;
}

/* 上车地点 */
.detail-info-row {
  display:flex; justify-content:space-between; padding:10px 16px;
  background:var(--white); font-size:12px; color:var(--text-secondary);
  border-bottom:1px solid var(--border);
}

/* 日期选择 — 同首页cat-tab胶囊风 */
.detail-date-bar { padding:10px 12px; background:var(--white); border-bottom:1px solid var(--border); }
.detail-date-scroll {
  display:flex; gap:6px; overflow-x:auto; padding-bottom:2px;
  scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
}
.detail-date-scroll::-webkit-scrollbar { display:none; }
.detail-date-chip {
  flex-shrink:0; min-width:64px; text-align:center; padding:8px 10px;
  border-radius:20px; cursor:pointer; scroll-snap-align:start;
  border:1.5px solid var(--border); background:var(--white); transition:all .2s;
}
.detail-date-chip.active { background:var(--blue-deep); border-color:var(--blue-deep); }
.detail-date-chip .dc-day { font-size:13px; font-weight:600; color:var(--text-primary); }
.detail-date-chip.active .dc-day { color:#fff; }
.detail-date-chip .dc-week { font-size:10px; color:var(--text-muted); margin-top:1px; }
.detail-date-chip.active .dc-week { color:rgba(255,255,255,.7); }
.detail-date-chip .dc-stock { font-size:11px; color:var(--gold); margin-top:1px; }
.detail-date-chip.active .dc-stock { color:var(--gold-light); }

.detail-stock-bar {
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 16px; background:var(--white); border-bottom:1px solid var(--border);
}
.detail-stock-bar .dsb-label { font-size:12px; color:var(--text-muted); }
.detail-stock-bar .dsb-val { font-size:13px; font-weight:600; color:var(--text-primary); }

/* Tab导航 — 同首页cat-tab胶囊风 */
.detail-tabs {
  position:sticky; top:66px; z-index:40;
  display:flex; gap:6px; padding:10px 12px;
  background:var(--white); border-bottom:1px solid var(--border);
  overflow-x:auto; -webkit-overflow-scrolling:touch;
}
.detail-tabs::-webkit-scrollbar { display:none; }
.detail-tab {
  flex-shrink:0; padding:7px 14px; border-radius:20px; font-size:13px;
  border:1.5px solid var(--border); color:var(--text-secondary);
  background:var(--white); cursor:pointer; transition:all .2s; white-space:nowrap;
}
.detail-tab.active { background:var(--blue-deep); color:#fff; border-color:var(--blue-deep); font-weight:600; }

/* Tab内容 — 白色卡片 */
.detail-tab-body { padding:12px 16px 80px; }
.detail-tab-panel { display:none; background:var(--white); border-radius:var(--radius); padding:16px; box-shadow:var(--shadow); }
.detail-tab-panel.active { display:block; }
.detail-tab-panel .content-html {
  font-size:14px; color:var(--text-secondary); line-height:1.8;
}
.detail-tab-panel .content-html br { display:block; content:''; margin-bottom:8px; }

/* 底部按钮 — 同首页渐变 */
.detail-actions {
  position:fixed; bottom:0; left:50%; transform:translateX(-50%);
  width:100%; max-width:450px; padding:10px 16px 20px; background:var(--white);
  display:flex; gap:10px; border-top:1px solid var(--border); z-index:50;
}
.detail-btn-phone {
  width:48px; height:48px; border-radius:14px; border:1.5px solid var(--border);
  background:var(--white); font-size:22px; display:flex;
  align-items:center; justify-content:center; cursor:pointer; text-decoration:none;
}
.detail-btn-consult {
  flex:1; height:48px; border-radius:24px; border:none;
  background:linear-gradient(135deg, var(--blue-mid), var(--green-teal));
  color:#fff; font-size:16px; font-weight:600; cursor:pointer;
  box-shadow: 0 4px 15px rgba(0,136,212,.35);
}

/* ═══ 登录 ═══ */
.login-page {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-height:calc(100vh - 112px); padding:40px 28px;
}
.login-logo-img { height:64px; margin-bottom:16px; }
.login-welcome { font-family:var(--font-kh); font-size:26px; color:var(--blue-deep); margin-bottom:4px; }
.login-hint { font-size:14px; color:var(--text-muted); margin-bottom:32px; }

.login-role-tabs { display:flex; gap:6px; margin-bottom:24px; width:100%; }
.login-role-tab {
  flex:1; padding:10px; text-align:center; border-radius:20px; font-size:13px;
  border:1.5px solid var(--border); color:var(--text-muted); background:var(--white);
  cursor:pointer; transition:all .2s;
}
.login-role-tab.active { border-color:var(--blue-mid); color:var(--blue-mid); background:#e8f4fd; font-weight:600; }

.login-field {
  width:100%; padding:14px 16px; border:1.5px solid var(--border); border-radius:var(--radius-sm);
  font-size:15px; margin-bottom:12px; outline:none; transition:border .2s;
}
.login-field:focus { border-color:var(--blue-mid); }
.login-submit {
  width:100%; padding:16px; border:none; border-radius:var(--radius);
  background:linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  color:#fff; font-size:16px; font-weight:600; cursor:pointer; margin-top:8px;
}
.login-submit:active { opacity:.85; }

/* ═══ 客资提交 ═══ */
.lead-page { padding:0 16px 100px; }
.lead-header-bar { text-align:center; padding:20px; font-size:18px; font-weight:700; color:var(--blue-deep); font-family:var(--font-kh); }
.lead-product-card {
  background:var(--white); border-radius:var(--radius); padding:14px;
  display:flex; gap:12px; align-items:center; margin-bottom:16px; box-shadow:var(--shadow);
}
.lead-product-img { width:64px; height:64px; border-radius:var(--radius-sm); background: linear-gradient(135deg, #e0ecf6, #c8e6e0); background-size:cover; background-position:center; flex-shrink:0; }
.lead-product-info { flex:1; }
.lead-product-name { font-size:15px; font-weight:600; color:var(--text); margin-bottom:4px; }
.lead-product-price { font-size:13px; color:var(--gold); }
.lead-form { background:var(--white); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); }
.lead-label { font-size:13px; color:var(--text-muted); margin-bottom:6px; display:block; }
.lead-input {
  width:100%; padding:12px 14px; border:1.5px solid var(--border); border-radius:var(--radius-sm);
  font-size:15px; margin-bottom:14px; outline:none;
}
.lead-input:focus { border-color:var(--blue-mid); }
.lead-row { display:flex; gap:10px; }
.lead-row > div { flex:1; }
.lead-textarea { resize:none; min-height:60px; }
.lead-submit {
  width:100%; padding:14px; border:none; border-radius:var(--radius);
  background:linear-gradient(135deg, var(--blue-deep), var(--green-teal));
  color:#fff; font-size:16px; font-weight:600; cursor:pointer; margin-top:4px;
}

/* ═══ 用户中心 ═══ */
.me-page { padding-bottom:20px; }
.me-header {
  background:linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  padding:24px 20px 80px; color:#fff; text-align:center;
}
.me-avatar { width:60px; height:60px; background:rgba(255,255,255,.15); border-radius:50%; margin:0 auto 12px; display:flex; align-items:center; justify-content:center; font-size:28px; }
.me-name { font-size:18px; font-weight:700; font-family:var(--font-kh); }
.me-role-tag { font-size:12px; opacity:.7; margin-top:4px; }
.me-stats {
  display:flex; justify-content:space-around; margin:-50px 16px 0; position:relative; z-index:2;
  background:var(--white); border-radius:var(--radius); padding:16px 0;
  box-shadow:var(--shadow);
}
.me-stat { text-align:center; }
.me-stat-num { font-size:22px; font-weight:700; color:var(--blue-deep); }
.me-stat-label { font-size:11px; color:var(--text-muted); margin-top:2px; }
.me-menu { margin:16px; background:var(--white); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.me-menu-item {
  display:flex; align-items:center; padding:16px 18px; gap:12px;
  border-bottom:1px solid #f5f5f5; font-size:15px; cursor:pointer;
}
.me-menu-item:last-child { border-bottom:none; }
.me-menu-item:active { background:#fafafa; }
.me-menu-icon { font-size:18px; width:28px; text-align:center; }
.me-menu-arrow { margin-left:auto; color:#ccc; }
.me-logout { margin:0 16px; padding:14px; text-align:center; color:var(--text-muted); font-size:14px; cursor:pointer; }

/* 未登录状态 */
.me-guest {
  text-align:center; padding:60px 20px;
}
.me-guest-icon { font-size:56px; margin-bottom:12px; opacity:.6; }
.me-guest p { font-size:14px; color:var(--text-muted); margin-bottom:24px; }
.me-guest-btns { display:flex; flex-direction:column; gap:12px; align-items:center; }
.me-guest .login-goto {
  display:inline-block; padding:12px 36px; border-radius:24px; min-width:220px;
  background:linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  color:#fff; font-size:15px; font-weight:600; cursor:pointer; text-align:center;
}
.me-guest .login-goto.user {
  background:linear-gradient(135deg, #ff9800, #f57c00);
}

/* ═══ 游客短信登录（清新卡片风） ═══ */
.user-login-page {
  padding:40px 20px; display:flex; justify-content:center;
}
.user-login-card {
  width:100%; max-width:360px; background:var(--white); border-radius:16px;
  box-shadow:0 4px 24px rgba(0,0,0,.06); overflow:hidden;
}
.user-login-header {
  padding:32px 24px 24px; text-align:center;
  background:linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
}
.user-login-icon { font-size:40px; display:block; margin-bottom:8px; }
.user-login-header h2 { font-size:20px; font-weight:700; color:#333; margin:0 0 6px; }
.user-login-header p { font-size:13px; color:#888; margin:0; }
.user-login-body { padding:24px 20px; }
.user-input-group {
  display:flex; align-items:center; background:#f5f7fa; border-radius:12px;
  padding:0 14px; margin-bottom:14px; transition:all .2s;
}
.user-input-group:focus-within { background:#eef1f6; box-shadow:0 0 0 2px rgba(33,150,243,.15); }
.user-input-icon { font-size:18px; margin-right:10px; opacity:.6; }
.user-input {
  flex:1; border:none; background:transparent; padding:14px 0; font-size:15px;
  outline:none; color:#333;
}
.user-input::placeholder { color:#b0b8c1; }
.user-sms-group {
  display:flex; gap:10px; align-items:center; margin-bottom:20px;
}
.user-sms-group .sms-input { flex:1; margin-bottom:0; }
.sms-btn {
  flex-shrink:0; padding:12px 16px; border-radius:10px; font-size:13px; font-weight:600;
  color:#fff; background:linear-gradient(135deg, #66bb6a, #43a047); cursor:pointer;
  white-space:nowrap; transition:all .2s; border:none;
}
.sms-btn.counting { background:#ccc; color:#888; cursor:default; }
.user-login-btn {
  width:100%; border:none; padding:14px; border-radius:12px;
  background:linear-gradient(135deg, #42a5f5, #1e88e5);
  color:#fff; font-size:16px; font-weight:700; cursor:pointer; transition:all .2s;
}
.user-login-btn:active { opacity:.85; transform:scale(.98); }
.user-login-footer {
  padding:12px; text-align:center; border-top:1px solid #f0f0f0;
  font-size:13px; color:var(--blue-mid); cursor:pointer;
}

/* ═══ 门店/销售登录（质朴稳重风） ═══ */
.sales-login-page {
  padding:40px 20px; display:flex; justify-content:center;
}
.sales-login-card {
  width:100%; max-width:360px; background:var(--white); border-radius:16px;
  box-shadow:0 4px 24px rgba(0,0,0,.06); overflow:hidden;
}
.sales-login-header {
  padding:28px 24px 20px; text-align:center;
  background:#f5f6f8; border-bottom:1px solid #eee;
}
.sales-login-icon { font-size:36px; display:block; margin-bottom:6px; }
.sales-login-header h2 { font-size:18px; font-weight:700; color:#444; margin:0 0 4px; }
.sales-login-header p { font-size:12px; color:#999; margin:0; }
.sales-login-body { padding:24px 20px; }
.sales-input-group {
  display:flex; align-items:center; background:#f5f6f8; border-radius:10px;
  padding:0 14px; margin-bottom:14px; border:1px solid transparent; transition:all .2s;
}
.sales-input-group:focus-within { background:#fff; border-color:#b0bec5; }
.sales-input-icon { font-size:16px; margin-right:10px; opacity:.5; }
.sales-input {
  flex:1; border:none; background:transparent; padding:13px 0; font-size:14px;
  outline:none; color:#333;
}
.sales-input::placeholder { color:#b0b8c1; }
.sales-login-btn {
  width:100%; border:none; padding:13px; border-radius:10px; margin-top:6px;
  background:#455a64; color:#fff; font-size:15px; font-weight:600; cursor:pointer;
  transition:all .2s; letter-spacing:2px;
}
.sales-login-btn:active { background:#37474f; transform:scale(.98); }
.sales-login-footer {
  padding:12px; text-align:center; border-top:1px solid #f0f0f0;
  font-size:13px; color:#ff9800; cursor:pointer;
}

/* 返回按钮 */
.user-back-btn {
  display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:50%; cursor:pointer;
  background:#e8f0fe; color:var(--blue-mid); margin-right:10px;
  transition:all .2s; flex-shrink:0;
}
.user-back-btn:active { background:#d0dff5; transform:scale(.92); }

/* 查询卡片（订单/保险/合同/发票） */
.query-card {
  background:var(--white); border-radius:var(--radius); padding:14px;
  margin-bottom:10px; box-shadow:var(--shadow);
}
.query-card-header {
  display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:10px;
}
.query-card-title { font-size:15px; font-weight:600; flex:1; line-height:1.4; }
.query-card-status {
  font-size:11px; padding:2px 8px; border-radius:10px; white-space:nowrap; margin-left:8px;
}
.query-card-status.status-pending { background:var(--gold-light); color:var(--gold); }
.query-card-status.status-ok { background:#e8f5e9; color:#388e3c; }
.query-card-status.status-reject { background:#ffebee; color:#d32f2f; }
.query-card-row {
  display:flex; justify-content:space-between; align-items:center;
  padding:6px 0; font-size:13px; color:var(--text-muted);
  border-bottom:1px solid #f5f5f5;
}
.query-card-row:last-child { border-bottom:none; }
.query-card-price { color:var(--blue-deep); font-weight:600; font-size:16px; }

/* 客资列表（销售端） */
.lead-list { padding:0 16px; }
.lead-litem {
  background:var(--white); border-radius:var(--radius); padding:14px;
  margin-bottom:10px; box-shadow:var(--shadow); cursor:pointer;
}
.lead-litem-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.lead-litem-name { font-size:15px; font-weight:600; }
.lead-litem-status {
  font-size:11px; padding:2px 8px; border-radius:10px;
  background:var(--gold-light); color:var(--gold); font-weight:600;
}
.lead-litem-status.followed { background:#e8f5e9; color:#388e3c; }
.lead-litem-detail { font-size:12px; color:var(--text-muted); display:flex; gap:12px; }
.lead-litem-time { font-size:11px; color:var(--text-muted); margin-top:6px; }

/* ═══ 底部导航 ═══ */
.bottom-nav {
  position:fixed; bottom:0; left:50%; transform:translateX(-50%);
  width:100%; max-width:450px; height:56px; background:var(--white);
  display:flex; justify-content:space-around; align-items:center;
  border-top:1px solid var(--border); z-index:100;
  padding-bottom:env(safe-area-inset-bottom);
}
.nav-item { display:flex; flex-direction:column; align-items:center; gap:2px; cursor:pointer; padding:6px 20px; transition:all .2s; color:var(--text-muted); }
.nav-icon {
  width:24px; height:24px; stroke:currentColor;
}
.nav-item .nav-label { font-size:10px; }
.nav-item.active { color:var(--blue-deep); }
.nav-item.active .nav-label { font-weight:700; }

/* ═══ AI客服弹窗 ═══ */
.chat-overlay {
  position:fixed; inset:0; z-index:200; background:rgba(0,0,0,.45);
  display:flex; align-items:flex-end; justify-content:center;
  animation: fadeIn .2s;
}
.chat-overlay.hidden { display:none; }
.chat-panel {
  width:100%; max-width:450px; height:85vh; max-height:680px;
  background:var(--bg); border-radius:16px 16px 0 0;
  display:flex; flex-direction:column; overflow:hidden;
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform:translateY(100%); } to { transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.chat-panel-header {
  display:flex; align-items:center; gap:12px; padding:14px 16px;
  background:var(--white); border-bottom:1px solid var(--border);
  flex-shrink:0;
}
.chat-panel-close {
  margin-left:auto; background:none; border:none; cursor:pointer;
  color:var(--text-muted); padding:4px;
}
.chat-panel-close:active { opacity:.6; }
.chat-avatar {
  width:42px; height:42px; border-radius:50%;
  background:linear-gradient(135deg, var(--blue-mid), var(--green-teal));
  display:flex; align-items:center; justify-content:center; font-size:22px;
  flex-shrink:0;
}
.chat-header-info { flex:1; min-width:0; }
.chat-header-name { font-size:16px; font-weight:700; color:var(--text); }
.chat-header-desc { font-size:11px; color:var(--text-muted); margin-top:2px; }

.chat-messages {
  flex:1; overflow-y:auto; padding:16px;
  display:flex; flex-direction:column; gap:12px;
}
.chat-msg { display:flex; }
.chat-msg.user { justify-content:flex-end; }
.chat-msg.user .chat-bubble {
  background:var(--blue-mid); color:#fff;
  border-radius:16px 16px 4px 16px;
}
.chat-msg.bot .chat-bubble {
  background:var(--white); color:var(--text);
  border-radius:16px 16px 16px 4px;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
}
.chat-bubble {
  max-width:85%; padding:12px 16px; font-size:14px; line-height:1.6;
}
.chat-bubble p { margin:0 0 6px; }
.chat-bubble p:last-child { margin-bottom:0; }
.chat-bubble ul { margin:4px 0; padding-left:18px; }
.chat-bubble ul li { margin-bottom:2px; }

.typing-dots { display:flex; gap:4px; padding:4px 0; }
.typing-dots i {
  width:7px; height:7px; border-radius:50%; background:var(--text-muted);
  animation: typeBounce 1.2s infinite;
}
.typing-dots i:nth-child(2) { animation-delay:.15s; }
.typing-dots i:nth-child(3) { animation-delay:.3s; }
@keyframes typeBounce {
  0%,60%,100% { transform:translateY(0); opacity:.4; }
  30% { transform:translateY(-6px); opacity:1; }
}

.chat-quick-asks {
  display:flex; gap:8px; padding:10px 16px; flex-wrap:wrap;
  background:var(--white); border-top:1px solid var(--border);
  flex-shrink:0;
}
.chat-quick-btn {
  padding:6px 14px; border-radius:16px; font-size:12px;
  background:var(--bg); color:var(--blue-deep); cursor:pointer;
  border:1px solid var(--border);
}
.chat-quick-btn:active { background:var(--blue-mid); color:#fff; border-color:var(--blue-mid); }

.chat-input-bar {
  display:flex; gap:8px; padding:10px 16px; background:var(--white);
  border-top:1px solid var(--border); align-items:center;
  padding-bottom:calc(10px + env(safe-area-inset-bottom));
  flex-shrink:0;
}
.chat-input {
  flex:1; padding:10px 16px; border:1px solid var(--border);
  border-radius:20px; font-size:14px; outline:none; background:var(--bg);
}
.chat-input:focus { border-color:var(--blue-mid); }
.chat-send-btn {
  width:40px; height:40px; border-radius:50%; border:none;
  background:linear-gradient(135deg, var(--blue-mid), var(--green-teal));
  color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}

/* 聊天中的线路卡片 */
.chat-line-card {
  display:flex; gap:10px; padding:8px; margin-top:8px;
  background:var(--bg); border-radius:10px; cursor:pointer;
}
.chat-line-card:active { opacity:.8; }
.chat-line-img {
  width:72px; height:54px; border-radius:6px;
  background-size:cover; background-position:center; flex-shrink:0;
  background-color:#e0ecf6;
}
.chat-line-info { flex:1; min-width:0; }
.chat-line-name { font-size:13px; font-weight:600; color:var(--text);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-line-meta { font-size:11px; color:var(--text-muted); margin-top:2px; }
.chat-line-price { font-size:13px; color:var(--gold); font-weight:700; margin-top:2px; }

/* 聊天中的 [查看线路] 链接 */
.chat-line-link {
  color:var(--blue-mid); font-weight:600; text-decoration:none;
  border-bottom:1px dashed var(--blue-mid);
}
.chat-line-link:active { opacity:.7; }

/* 聊天中的线路卡片组 */
.chat-line-cards {
  margin-top:10px; display:flex; flex-direction:column; gap:8px;
}

/* ═══ Toast ═══ */
.toast {
  position:fixed; top:80px; left:50%; transform:translateX(-50%);
  background:rgba(0,0,0,.8); color:#fff; padding:10px 20px;
  border-radius:20px; font-size:14px; z-index:200; pointer-events:none;
  transition:opacity .3s; opacity:0;
}
.toast.show { opacity:1; }

/* ═══ Loading ═══ */
.loading-overlay {
  position:fixed; top:0; left:0; right:0; bottom:0; z-index:300;
  background:rgba(255,255,255,.6); display:flex; align-items:center; justify-content:center;
}
.loading-overlay.hidden { display:none; }
.loading-spinner {
  width:40px; height:40px; border-radius:50%;
  border:3px solid var(--border); border-top-color:var(--blue-mid);
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ 海报分享弹窗 ═══ */
.poster-modal {
  position:fixed; top:0; left:0; right:0; bottom:0; z-index:500;
  display:flex; align-items:center; justify-content:center;
}
.poster-modal.hidden { display:none; }
.poster-backdrop {
  position:absolute; top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,.85);
}
.poster-container {
  position:relative; z-index:1; width:90%; max-width:380px;
  display:flex; flex-direction:column; align-items:center;
}
.poster-close {
  position:absolute; top:-36px; right:0; width:32px; height:32px;
  border-radius:50%; background:rgba(255,255,255,.2); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; cursor:pointer; z-index:2;
}
.poster-image-wrap {
  position:relative; width:100%; border-radius:12px; overflow:hidden;
  box-shadow:0 8px 32px rgba(0,0,0,.5);
}
.poster-image-wrap img { width:100%; display:block; }
.poster-qr {
  position:absolute; bottom:16px; right:16px; width:80px; height:80px;
  background:#fff; border-radius:8px; padding:4px; box-shadow:0 2px 8px rgba(0,0,0,.3);
}
.poster-qr-label {
  position:absolute; bottom:4px; right:16px; width:80px;
  text-align:center; font-size:9px; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.6);
}
.poster-actions-bar {
  display:flex; gap:12px; margin-top:16px; width:100%;
}
.poster-action-btn {
  flex:1; padding:12px; text-align:center; border-radius:24px;
  font-size:14px; font-weight:600; cursor:pointer;
  background:rgba(255,255,255,.15); color:#fff;
}

/* ═══ 隐藏类 ═══ */
.hidden { display:none !important; }

/* ═══ 响应式 ═══ */
@media (min-width: 451px) {
  .content { border-left:1px solid var(--border); border-right:1px solid var(--border); }
}
