/* 租个车 Web · 前台样式 v2
   设计基调：新能源蓝绿渐变 + 大圆角 + 柔和阴影，移动端优先 + 桌面端增强 */

:root {
  --brand: #1763ff;
  --brand-deep: #0e49d6;
  --brand-2: #00b578;               /* 新能源绿 */
  --brand-soft: #eaf1ff;
  --warn: #ff8f1f;
  --warn-soft: #fff4e6;
  --danger: #f0433e;
  --ok: #22a552;
  --ink: #0f2340;
  --text: #22304a;
  --text-2: #5d6d84;
  --text-3: #96a3b7;
  --line: #e7ecf4;
  --bg: #f3f5fa;
  --card: #ffffff;
  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 35, 95, .04), 0 8px 24px rgba(15, 35, 95, .06);
  --shadow-lg: 0 16px 40px rgba(15, 35, 95, .13);
  --tabbar-h: 58px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
::selection { background: rgba(23, 99, 255, .18); }

/* ---------- 通用文本 ---------- */
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.ok { color: var(--ok); }
.mt { margin-top: 14px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }

/* ---------- 布局 ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.main { display: block; min-height: 40vh; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid rgba(231, 236, 244, .8);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--ink); flex: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 14px rgba(23, 99, 255, .3);
}
.brand-text { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow: hidden; }
.nav a { padding: 8px 13px; border-radius: 999px; color: var(--text-2); font-size: 14px; white-space: nowrap; font-weight: 500; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a.on { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); box-shadow: 0 4px 12px rgba(23, 99, 255, .25); }
.topbar-right { display: flex; align-items: center; gap: 10px; flex: none; }
.search-mini {
  display: flex; align-items: center; background: var(--bg); border: 1px solid transparent; border-radius: 999px;
  padding: 3px 4px 3px 14px; transition: border-color .15s, background .15s;
}
.search-mini:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 99, 255, .12); }
.search-mini input { border: 0; background: transparent; outline: none; width: 150px; font-size: 13px; color: var(--text); }
.search-mini button { border: 0; background: transparent; cursor: pointer; font-size: 14px; padding: 5px 8px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .18s ease; white-space: nowrap; line-height: 1.2;
}
.btn:hover { border-color: #c8d4e4; background: #f8fafd; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(15, 35, 95, .07); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px rgba(23, 99, 255, .32);
}
.btn-primary:hover { background: linear-gradient(135deg, #2870ff, var(--brand-deep)); box-shadow: 0 8px 20px rgba(23, 99, 255, .4); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg); border-color: transparent; box-shadow: none; transform: none; }
.btn-danger { color: var(--danger); border-color: #ffd2cf; background: #fff; }
.btn-danger:hover { background: #fff3f2; border-color: #ffb3ae; }
.btn-warn { background: linear-gradient(135deg, #ffa63d, #ff8f1f); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(255, 143, 31, .32); }
.btn-warn:hover { background: linear-gradient(135deg, #ffb35e, #ff8f1f); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-xs { padding: 5px 11px; font-size: 12px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }

/* ---------- 页脚 ---------- */
.footer { background: #0f2340; color: #a8b6cc; margin-top: 48px; padding: 36px 0 30px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; }
.footer strong { color: #fff; font-size: 16px; }
.footer .muted { color: #8c9cb6; max-width: 560px; margin-top: 6px; line-height: 1.8; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.footer-links a { color: #a8b6cc; }
.footer-links a:hover { color: #fff; }
.footer .tiny { margin-top: 18px; color: #6c7c96; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 16px; }

/* ---------- 底部标签栏（移动端） ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(231, 236, 244, .9);
  box-shadow: 0 -6px 20px rgba(15, 35, 95, .06);
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: var(--text-3); gap: 3px; font-weight: 500; }
.tabbar a span { font-size: 20px; line-height: 1; transition: transform .15s; }
.tabbar a.on { color: var(--brand); font-weight: 700; }
.tabbar a.on span { transform: translateY(-2px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(12px);
  background: rgba(15, 35, 64, .94); color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: 14px; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
  max-width: 84vw; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 首页 Hero ---------- */
.hero {
  margin-top: 20px; padding: 30px 26px;
  border-radius: 20px;
  background: linear-gradient(115deg, #1557e6 0%, #1763ff 45%, #00a06c 100%);
  color: #fff; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 16px 36px rgba(23, 99, 255, .25);
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.hero::before { width: 220px; height: 220px; right: -60px; top: -90px; }
.hero::after { width: 150px; height: 150px; right: 130px; bottom: -80px; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { font-size: 27px; line-height: 1.3; color: #fff; letter-spacing: .02em; }
/* 说明小字：Hero 为蓝绿渐变底，必须显式用纯白 + 阴影，避免继承 .muted 的深灰导致对比不足 */
.hero-copy p {
  margin-top: 8px; font-size: 14.5px; line-height: 1.6;
  color: #fff; opacity: 1; font-weight: 500; letter-spacing: .01em;
  text-shadow: 0 1px 3px rgba(6, 26, 60, .45);
}
.seg { position: relative; z-index: 1; display: inline-flex; background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 4px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.seg a { padding: 8px 20px; border-radius: 999px; font-size: 14px; color: rgba(255, 255, 255, .9); font-weight: 500; }
.seg a.on { background: #fff; color: var(--brand); font-weight: 700; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }

/* ---------- 筛选 ---------- */
.filters { margin: 18px 0 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 13px; color: var(--text-2); font-weight: 500;
  transition: all .15s;
}
.chip:hover { border-color: #b9cbe4; color: var(--ink); }
.chip.on { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); border-color: transparent; color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(23, 99, 255, .28); }
.adv { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 16px; }
.adv summary { cursor: pointer; padding: 13px 0; font-size: 14px; color: var(--text-2); font-weight: 500; }
.adv summary:hover { color: var(--brand); }
.adv-form { display: flex; flex-wrap: wrap; gap: 14px; padding: 6px 0 16px; align-items: flex-end; }
.adv-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text-2); font-weight: 500; }
.adv-form input, .adv-form select {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 11px; font-size: 14px; width: 136px; background: #fff; color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.adv-form input:focus, .adv-form select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 99, 255, .12); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid #edf1f7; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-thumb {
  position: relative; aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eaf1fd, #e0f2ec); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.ph-icon { font-size: 52px; opacity: .5; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-hd h3 { font-size: 15.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--bg); color: var(--text-2); border-radius: 6px; padding: 3px 8px; font-size: 12px; white-space: nowrap; font-weight: 500;
}
.tag-vip { background: linear-gradient(135deg, #fff0d2, #ffe1ae); color: #9a5b00; font-weight: 700; }
.tag-warn { background: var(--warn-soft); color: #b35c00; }
.tag-green { background: #e7f8ee; color: #177245; }
.tag-red { background: #ffedec; color: var(--danger); }
/* 两类信息的类别标识：租赁=品牌蓝，求租=品牌绿，全站统一 */
.tag-lease { background: #e8f0ff; color: #1a4fd6; font-weight: 600; }
.tag-demand { background: #e7f8ee; color: #177245; font-weight: 600; }
.card-badges { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.card-ft { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { color: #ff5b2e; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.price-unit { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 2px; }
.card-sub { border-top: 1px dashed var(--line); padding-top: 9px; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 60px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.empty.big { margin-top: 44px; }
.empty-icon { font-size: 52px; opacity: .5; margin-bottom: 12px; }
.empty h3 { font-size: 18px; margin-bottom: 8px; }
.empty p { margin-bottom: 20px; font-size: 14px; }
.empty-line { padding: 44px; text-align: center; color: var(--text-3); }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 26px 0 8px; }

/* ---------- 搜索页 ---------- */
.searchbar { display: flex; gap: 10px; padding: 24px 0 12px; flex-wrap: wrap; }
.searchbar input {
  flex: 1; min-width: 200px; border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; font-size: 15px; background: #fff; color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.searchbar input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(23, 99, 255, .12); }
.searchbar select { border: 1px solid var(--line); border-radius: 999px; padding: 12px 14px; font-size: 14px; background: #fff; color: var(--text); outline: none; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 0 14px; }
.list-head h2 { font-size: 18px; }

/* ---------- 面板 ---------- */
.panel {
  background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px;
  border: 1px solid #f0f3f8;
}
.panel h2 { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel h2::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); flex: none; }
.panel h3 { font-size: 14px; }
.page-title { font-size: 22px; padding: 24px 0 16px; }
.sub-title { font-size: 15px; margin: 20px 0 12px; padding-left: 10px; border-left: 4px solid var(--brand); color: var(--ink); }

/* ---------- 详情页 ---------- */
.detail-head { padding: 24px 0 16px; }
.detail-head .tag { margin-bottom: 8px; }
.detail-head h1 { font-size: 23px; line-height: 1.4; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; color: var(--text-2); }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gallery { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: auto; }
.gallery.ph { display: flex; align-items: center; justify-content: center; min-height: 240px; background: linear-gradient(135deg, #eaf1fd, #e0f2ec); }
.gallery-ph { display: flex; align-items: center; justify-content: center; min-height: 260px; font-size: 72px; opacity: .4; }
.params { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
.param {
  background: linear-gradient(180deg, #f7f9fd, #f3f6fb); border-radius: var(--radius-sm); padding: 11px 13px;
  display: flex; flex-direction: column; gap: 3px; border: 1px solid #edf1f7;
}
.param .muted { font-size: 12px; }
.param strong { font-size: 15px; color: var(--ink); }
.desc { font-size: 14.5px; color: var(--text-2); line-height: 1.85; white-space: pre-wrap; }
.detail-side { display: flex; flex-direction: column; gap: 16px; }
.price-big { color: #ff5b2e; font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.side-title { font-size: 16px; margin: 18px 0 10px; padding-left: 10px; border-left: 4px solid var(--brand); color: var(--ink); }
.contact-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.contact-row:last-of-type { border-bottom: 0; }
.contact-row .muted { flex: none; width: 64px; }
.contact-row strong { flex: 1; font-size: 15px; min-width: 0; word-break: break-all; color: var(--ink); }
.side-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.notice { background: var(--brand-soft); color: #0d3f9e; border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13px; margin-top: 14px; line-height: 1.7; }
.notice.warn { background: var(--warn-soft); color: #8a4b00; }
.notice a { color: var(--brand); text-decoration: underline; font-weight: 600; }

/* ---------- 求租锁屏 ---------- */
.lock-wall { max-width: 540px; margin: 34px auto; }
.lock-card { background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow-lg); }
.lock-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lock-title { font-size: 19px; margin-bottom: 12px; }
.lock-blur { position: relative; padding: 18px 0; margin: 14px 0; }
.blur-line { height: 13px; border-radius: 7px; background: linear-gradient(90deg, #e8edf5, #d9e2ee, #e8edf5); margin-bottom: 11px; filter: blur(1px); }
.blur-line.short { width: 58%; }
.blur-mask { text-align: center; font-size: 13px; color: var(--text-3); padding-top: 6px; }
.lock-bar { height: 7px; background: var(--bg); border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.lock-bar-in { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .35s; border-radius: 999px; }
.link-center { display: block; text-align: center; margin-top: 18px; color: var(--brand); font-size: 14px; font-weight: 600; }

/* ---------- 会员中心 ---------- */
.vip-card { border-radius: 20px; padding: 22px; color: #fff; margin-bottom: 16px; position: relative; overflow: hidden; }
.vip-card.on { background: linear-gradient(135deg, #1c59d4 0%, #1763ff 50%, #00a06c 130%); box-shadow: 0 16px 36px rgba(23, 99, 255, .3); }
.vip-card.off { background: linear-gradient(135deg, #7b8799, #5d6a7e); box-shadow: var(--shadow); }
.vip-card::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .1); right: -50px; top: -70px; }
.vip-hd { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.vip-name { font-size: 19px; }
.vip-card .tiny { opacity: .9; margin-top: 4px; }
.vip-days { text-align: right; line-height: 1; }
.vip-days b { font-size: 38px; font-weight: 800; }
.vip-days span { font-size: 13px; opacity: .9; margin-left: 3px; }
/* v1.12.7：最后一天显示「今天到期」，用小字号避免 4 个字撑破会员卡 */
.vip-days b.vip-days-soon { font-size: 19px; font-weight: 700; white-space: nowrap; }
.vip-bar { height: 7px; background: rgba(255, 255, 255, .28); border-radius: 999px; overflow: hidden; margin: 16px 0 12px; }
.vip-bar div { height: 100%; background: #ffd76a; border-radius: 999px; }
.vip-tip { opacity: .92; line-height: 1.75; position: relative; z-index: 1; }
.quota-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.quota-row > div { background: linear-gradient(180deg, #f7f9fd, #f2f5fb); border: 1px solid #edf1f7; border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.quota-row span { display: block; margin-bottom: 4px; }
.quota-row b { font-size: 18px; color: var(--ink); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px dashed var(--line); }
.switch-row:first-of-type { border-top: 0; padding-top: 4px; }
.switch-row p { margin-top: 3px; }
.switch-row strong { color: var(--ink); font-size: 14.5px; }
.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #ccd6e3; border-radius: 999px; transition: background .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 2px 4px rgba(0, 0, 0, .18); }
.switch input:checked + span { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }

/* v1.12.8：自动刷新未达开通条件时的禁用态与提示条 */
.switch.is-disabled { opacity: .45; }
.switch.is-disabled span { cursor: not-allowed; }
.switch-row select:disabled { background: #f4f6fa; color: #9aa5b8; cursor: not-allowed; }
.auto-block {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: #fff8e9; border: 1px solid #ffe3b3; color: #8a5a00;
  border-radius: var(--radius-sm); padding: 10px 13px; margin: 4px 0 12px; font-size: 13px; line-height: 1.6;
}
.auto-block-link { color: #8a5a00; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.auto-note { margin-top: 12px; }
.auto-note b { color: var(--brand); }
.switch input:checked + span::after { transform: translateX(20px); }
#autoTime { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 14px; background: #fff; color: var(--text); outline: none; }
.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cmp th, .cmp td { text-align: left; padding: 11px 9px; border-bottom: 1px solid var(--line); }
.cmp th { color: var(--text-2); font-weight: 600; background: #f8fafd; border-radius: 4px; }
.cmp td:first-child { color: var(--text-2); }
.cmp tbody tr:hover { background: #fafcfe; }
.vip-cell { color: var(--brand); font-weight: 700; }
.invite-code { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(180deg, #f7f9fd, #f2f5fb); border: 1px dashed #c8d4e4; border-radius: var(--radius-md); padding: 14px 16px; }
.invite-code span { display: block; }
.invite-code strong { font-size: 24px; letter-spacing: 4px; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--brand); }
.invite-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(180deg, #f7f9fd, #f2f5fb); border: 1px solid #dbe4f0; border-radius: var(--radius-md); padding: 12px 14px; }
.invite-link-main { min-width: 0; flex: 1; }
.invite-link-main span { display: block; margin-bottom: 3px; }
.link-text { color: var(--brand); word-break: break-all; line-height: 1.5; font-size: 12.5px; }
.invite-list { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.invite-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f8fafd; border: 1px solid #edf1f7; border-radius: var(--radius-sm); padding: 11px 13px; }
.invite-item strong { color: var(--ink); }
.invite-info strong { display: block; font-size: 14.5px; }
.invite-meta { display: flex; align-items: center; gap: 8px; flex: none; }
.log-list { display: flex; flex-direction: column; }
.log-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.log-list li:last-child { border-bottom: 0; }
.log-list strong { color: var(--ink); }
.ops { display: flex; flex-wrap: wrap; gap: 9px; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.field.full { grid-column: 1 / -1; }
.field i { color: var(--danger); font-style: normal; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px;
  font-size: 15px; background: #fff; color: var(--text); outline: none; width: 100%; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 99, 255, .12); }
.field input:disabled, .field input[readonly] { background: #f2f5fa; color: var(--text-3); cursor: not-allowed; }
.field input[readonly]:focus { border-color: var(--line); box-shadow: none; }
.field-tip { font-style: normal; font-size: 12px; color: var(--brand); }
.field textarea { resize: vertical; }
.field.gated { position: relative; }
.field.gated .unlock-btn { align-self: flex-start; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text-2); margin: 18px 0; line-height: 1.7; }
.check input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--brand); }
.step-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; }

/* ---------- 发布步骤 ---------- */
.steps { display: flex; gap: 10px; margin-bottom: 16px; }
.steps li {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 8px;
  font-size: 13px; color: var(--text-3); font-weight: 600; transition: all .2s;
}
.steps li span {
  width: 22px; height: 22px; border-radius: 50%; background: var(--bg); color: var(--text-3);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; font-weight: 700;
}
.steps li.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.steps li.on span { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; }
.steps li.done { color: var(--ok); border-color: #bfe6cd; }
.steps li.done span { background: var(--ok); color: #fff; }
.step-panel[hidden] { display: none; }
/* v1.12.9：发布页图片九宫格（＋瓦片 / 删除 / 拖拽排序） */
.media-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px;
}
.media-grid-legacy { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.media-grid-legacy img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); }
.media-item {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); touch-action: manipulation;
}
.media-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item.is-dragging { opacity: .85; box-shadow: 0 8px 22px rgba(23, 99, 255, .28); border-color: var(--brand); pointer-events: none; }
.media-idx {
  position: absolute; left: 6px; top: 6px; z-index: 2; min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; background: rgba(15, 23, 42, .55); border-radius: 999px;
}
.media-idx.is-cover { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.media-del {
  position: absolute; right: 6px; top: 6px; z-index: 2; width: 22px; height: 22px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: rgba(15, 23, 42, .6); color: #fff;
  font-size: 15px; line-height: 1; cursor: pointer;
}
.media-del:hover { background: #e04b4b; }
.media-grab {
  position: absolute; right: 4px; bottom: 4px; z-index: 2; width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: rgba(15, 23, 42, .45); color: #fff; font-size: 14px;
  cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none;
}
.media-grab:active { cursor: grabbing; }
.media-add {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed #b9cbe8; border-radius: var(--radius-sm); background: #f8fafd;
  color: #7d90ad; font-size: 30px; line-height: 1; cursor: pointer; transition: .18s;
}
.media-add:hover { border-color: var(--brand); color: var(--brand); background: #f2f7ff; }
.media-hint { margin-top: 10px; font-size: 12.5px; color: var(--text-3); }
.media-hint.is-full { color: #c07a00; }
/* v1.16.0：求租扩展字段（意向车型照片 / 品牌要求 / 电池品牌 / 期望实际续航 / 押金范围） */
.panel > .field { margin-top: 16px; }
.media-field { gap: 8px; }
.media-field > span { font-size: 13px; color: var(--text-2); font-weight: 500; }
.media-grid-sm { max-width: 420px; margin-top: 4px; }
.range-row { display: flex; align-items: center; gap: 8px; }
.range-row input { min-width: 0; flex: 1 1 0; }
.range-sep { flex: none; color: var(--text-3); font-weight: 700; font-size: 15px; line-height: 1; }
.field-note { font-style: normal; font-weight: 400; font-size: 12px; color: var(--text-3); line-height: 1.6; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-item {
  display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg);
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-item:active { opacity: .9; }
#images { border: 1.5px dashed #c3cfe0; border-radius: var(--radius-md); padding: 18px; width: 100%; background: #fafcfe; font-size: 13px; cursor: pointer; transition: border-color .15s; }
#images:hover { border-color: var(--brand); }
/* v1.15.0：编辑入口与编辑页（.media-item / .media-del / .media-grab 复用上面的九宫格样式） */
.btn-edit { color: var(--brand); border-color: #c9dcff; background: #f5f9ff; }
.btn-edit:hover { background: #e9f2ff; border-color: var(--brand); }
.media-cover {
  position: absolute; left: 6px; bottom: 6px; z-index: 2; height: 22px; padding: 0 9px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: rgba(15, 23, 42, .58); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 1; cursor: pointer; transition: .15s;
}
.media-cover:hover { background: var(--brand); }
.media-cover[hidden] { display: none; }
.media-add[hidden] { display: none; }
.media-grab[hidden] { display: none; }
.edit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.edit-head .page-title { flex: 1; min-width: 0; padding-right: 0; }
.edit-head > .btn { margin-top: 26px; flex: none; }
.edit-actions { display: flex; gap: 10px; margin: 20px 0 30px; }
.edit-actions .btn { flex: 1; text-align: center; padding-top: 11px; padding-bottom: 11px; }
@media (min-width: 720px) {
  .edit-actions { justify-content: flex-end; }
  .edit-actions .btn { flex: none; min-width: 132px; }
}

/* ---------- 我的 ---------- */
.user-card { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid #f0f3f8; }
.avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #4c9aff, var(--brand) 60%, var(--brand-2));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; flex: none;
  box-shadow: 0 6px 14px rgba(23, 99, 255, .28);
}
.user-main { flex: 1; min-width: 0; }
.user-main h1 { font-size: 19px; }
.user-main p { margin-top: 3px; }
.vip-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: var(--radius); padding: 16px 18px; margin-top: 16px; color: #fff; transition: transform .15s;
}
.vip-banner:hover { transform: translateY(-1px); }
.vip-banner.on { background: linear-gradient(135deg, #1c59d4, #1763ff 55%, #00a06c 130%); box-shadow: 0 10px 26px rgba(23, 99, 255, .3); }
.vip-banner.off { background: linear-gradient(135deg, #7b8799, #5d6a7e); box-shadow: var(--shadow); }
.vip-banner strong { font-size: 16px; }
.vip-banner .tiny { opacity: .92; margin-top: 3px; }
.vip-go { font-size: 13px; flex: none; font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.stat-row a, .stat-row div {
  background: #fff; border-radius: var(--radius-sm); padding: 14px 4px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid #f0f3f8; transition: transform .15s;
}
.stat-row a:hover { transform: translateY(-2px); }
.stat-row b { display: block; font-size: 21px; color: var(--brand); font-weight: 800; }
.stat-row span { font-size: 12px; color: var(--text-3); margin-top: 2px; display: block; }
.link-list { display: flex; flex-direction: column; }
.link-list li a { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; border-bottom: 1px dashed var(--line); font-size: 15px; font-weight: 500; color: var(--ink); }
.link-list li:last-child a { border-bottom: 0; }
.link-list li a:hover { color: var(--brand); }
.link-list li a span { font-size: 13px; color: var(--text-3); font-weight: 400; }

/* ---------- 管理列表 ---------- */
.manage-list { display: flex; flex-direction: column; gap: 14px; }

/* v1.12.8：我的发布 —— 批量刷新工具条与行内勾选 */
.refresh-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #f6f9ff; border: 1px solid #e3ebf9; border-radius: var(--radius);
  padding: 11px 14px; margin-bottom: 14px;
}
.refresh-bar .rb-all { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink); font-weight: 600; cursor: pointer; }
.refresh-bar .rb-all input, .row-pick input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }
.refresh-bar .rb-tip { flex: 1; min-width: 180px; font-size: 12px; color: #6b7a94; line-height: 1.6; }
.refresh-bar .rb-tip b { color: var(--brand); }
.refresh-bar .btn[disabled] { opacity: .5; cursor: not-allowed; }
/* 行内勾选框（注意：不能叫 .pick —— 那是「发布方式」卡片的样式，会打架） */
.row-pick { flex: none; display: flex; align-items: center; justify-content: center; width: 22px; }
.row-pick-ph { width: 22px; }
.manage-item { display: flex; gap: 14px; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); border: 1px solid #f0f3f8; }
.manage-thumb {
  width: 118px; flex: none; border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(135deg, #eaf1fd, #e0f2ec); display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3;
}
.manage-thumb img { width: 100%; height: 100%; object-fit: cover; }
.manage-thumb span { font-size: 32px; opacity: .5; }
.manage-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.manage-body h3 { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.reject { background: #ffedec; color: #b0201f; border-radius: var(--radius-sm); padding: 7px 11px; font-size: 12.5px; }
.manage-body .ops { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 3px; }
.manage-body .ops form { display: inline-flex; }

/* ---------- 发布入口 ---------- */
.pick-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.pick { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: block; border: 1px solid #f0f3f8; transition: all .2s; }
.pick:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d5e1f5; }
.pick-icon {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px;
  background: linear-gradient(135deg, var(--brand-soft), #e0f2ec);
}
.pick h3 { font-size: 17px; margin: 12px 0 5px; }
.pick .card-tags { margin-top: 12px; }
.quota-line { margin-top: 12px; font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.quota-line b { color: var(--brand); font-size: 15px; }
.rules { counter-reset: r; padding-left: 0; }
.rules li { counter-increment: r; position: relative; padding-left: 30px; margin-bottom: 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.75; }
.rules li::before {
  content: counter(r); position: absolute; left: 0; top: 2px;
  width: 21px; height: 21px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* ---------- 登录 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 34px 16px; }
.auth-card { width: 100%; max-width: 430px; }
.auth-card .page-title {
  padding-top: 0; text-align: center; font-size: 24px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-card > .muted { text-align: center; display: block; margin-bottom: 18px; }
.alert { background: #ffedec; color: #b0201f; border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13px; margin-bottom: 16px; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab { padding: 11px 18px; font-size: 15px; color: var(--text-2); border-bottom: 2px solid transparent; background: transparent; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font-weight: 500; }
.tab:hover { color: var(--brand); }
.tab.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-form[hidden] { display: none; }

/* ---------- 广告弹层 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 35, 64, .55); padding: 20px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.modal[hidden] { display: none; }
.modal-card {
  background: #fff; border-radius: 20px; width: 100%; max-width: 370px; padding: 24px; text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: pop .22s ease;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-title { font-size: 18px; margin-bottom: 8px; color: var(--ink); }
.modal-body { font-size: 13.5px; color: var(--text-2); line-height: 1.75; margin-bottom: 18px; }
.ad-screen {
  height: 158px; border-radius: var(--radius-md); margin: 16px 0 14px;
  background: linear-gradient(135deg, #16233f, #2b3f66); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.ad-screen .ad-count { font-size: 38px; font-weight: 800; }
.ad-screen .ad-tip { font-size: 12px; opacity: .85; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }
.modal-field { width: 100%; margin-top: 14px; }
.modal-field select, .modal-field input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; background: #fff; color: var(--text); outline: none;
}
.modal-field select:focus, .modal-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 99, 255, .12); }

/* ---------- 桌面端增强 ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; font-size: 15.5px; }
  .tabbar { display: none; }
  .toast { bottom: 44px; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .field.full { grid-column: 1 / -1; }
  .pick-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
}

@media (min-width: 1024px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 330px; }
  .detail-side .sticky { position: sticky; top: 78px; }
  .hero-copy h1 { font-size: 32px; }
  .hero { padding: 34px 34px; }
}

@media (max-width: 767px) {
  .nav { display: none; }
  .hide-sm { display: none !important; }
  .topbar-inner { justify-content: space-between; height: 56px; }
  .search-mini { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .card-body { padding: 11px 12px 13px; gap: 7px; }
  .card-hd h3 { font-size: 14px; }
  /* 小屏收紧类别标识，避免挤压标题可读宽度 */
  .card-badges .tag { font-size: 10px; padding: 2px 5px; }
  .card-ft { flex-wrap: wrap; gap: 2px 8px; }
  .price { font-size: 17px; }
  .card-tags .tag { font-size: 11px; padding: 2px 6px; }
  .manage-thumb { width: 92px; }
  .stat-row { gap: 8px; }
  .stat-row b { font-size: 18px; }
  .hero { margin-top: 14px; padding: 22px 18px; flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-copy h1 { font-size: 22px; }
  .seg { width: 100%; }
  .seg a { flex: 1; text-align: center; }
  .steps { gap: 6px; }
  .steps li { font-size: 12px; padding: 8px 4px; }
  .steps li span { width: 19px; height: 19px; font-size: 11px; }
  .quota-row { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 16px; }
  .page-title { font-size: 20px; padding: 20px 0 14px; }
  .params { grid-template-columns: repeat(2, 1fr); }
  .detail-head h1 { font-size: 19px; }
  .price-big { font-size: 26px; }
}

@media (max-width: 374px) {
  .grid { grid-template-columns: 1fr; }
}

/* ============================================================
   实名认证（认证页 + 拦截横幅 + 证照上传）
   ============================================================ */
.notice-block {
  background: #fff6e8; border: 1px solid #ffddb0; border-left: 4px solid #f59f00;
  color: #7a4d00; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px;
}
.notice-block strong { display: block; margin-bottom: 4px; font-size: 15px; }
.notice-block p { margin: 0; }

.verify-state { display: flex; flex-direction: column; gap: 8px; border-left: 4px solid #dfe6f1; }
.verify-state.s1 { border-left-color: #f59f00; }
.verify-state.s2 { border-left-color: #12b76a; }
.verify-state.s3 { border-left-color: var(--danger); }
.verify-state-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.verify-state-hd strong { color: var(--ink); font-size: 15px; }

.vtype { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.vtype-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid #e3e9f2;
  background: #fbfcfe; cursor: pointer; text-align: left;
  font-size: 15px; font-weight: 600; color: var(--ink);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.vtype-btn span { font-size: 18px; }
.vtype-btn em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--text-2); }
.vtype-btn:hover { border-color: #b9ccf0; }
.vtype-btn.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 4px 14px rgba(23, 99, 255, .12); }
.vtype-btn.on em { color: var(--brand-deep); }

.vpanel { margin-bottom: 4px; }
.upload-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 14px; }
.upload-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-height: 120px; padding: 12px; overflow: hidden; text-align: center; cursor: pointer;
  border: 1.5px dashed #cfd9e8; border-radius: var(--radius-sm); background: #fbfcfe;
  transition: border-color .18s, background .18s;
}
.upload-card:hover { border-color: var(--brand); background: #f5f9ff; }
.upload-card input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-ph { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); }
.upload-ph b { font-size: 22px; line-height: 1; }
.upload-pv { display: none; width: 100%; max-height: 150px; object-fit: contain; border-radius: 6px; }
.upload-card.has-file { border-style: solid; border-color: #12b76a; background: #f2fdf7; }
.upload-card.has-file .upload-pv { display: block; }
.upload-card.has-file .upload-ph { display: none; }

@media (max-width: 767px) {
  .vtype { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: 1fr 1fr; }
  .upload-card { min-height: 104px; }
}

/* 车型二级分类行（一级选中后展开） */
.chips-sub { margin-top: 8px; padding-top: 10px; border-top: 1px dashed #e3e9f2; align-items: center; }
.chip-sub { font-size: 13px; padding: 5px 13px; }
@media (max-width: 767px) {
  .chip-sub { font-size: 12px; padding: 4px 11px; }
}

/* ============================================================
   车型分类主题色：一级与二级按钮共用同一套色板，
   同一分类在「一级行 / 二级行 / 搜索页」主色完全一致。
   面包车=品牌蓝　小卡=橙　轻卡=绿　冷藏=青
   ============================================================ */
.chip.cls-van { --c: #1763ff; --c-soft: #edf3ff; --c-line: rgba(23, 99, 255, .22); --c-ring: rgba(23, 99, 255, .3); }
.chip.cls-small_truck { --c: #e8622a; --c-soft: #fff3ec; --c-line: rgba(232, 98, 42, .22); --c-ring: rgba(232, 98, 42, .3); }
.chip.cls-light_truck { --c: #009e6a; --c-soft: #e9f9f2; --c-line: rgba(0, 158, 106, .22); --c-ring: rgba(0, 158, 106, .3); }
.chip.cls-cold_truck { --c: #0d8ee8; --c-soft: #e9f5ff; --c-line: rgba(13, 142, 232, .22); --c-ring: rgba(13, 142, 232, .3); }

.chip.cls-van,
.chip.cls-small_truck,
.chip.cls-light_truck,
.chip.cls-cold_truck { background: var(--c-soft); border-color: var(--c-line); color: var(--c); }

.chip.cls-van:hover,
.chip.cls-small_truck:hover,
.chip.cls-light_truck:hover,
.chip.cls-cold_truck:hover { border-color: var(--c); color: var(--c); }

.chip.cls-van.on,
.chip.cls-small_truck.on,
.chip.cls-light_truck.on,
.chip.cls-cold_truck.on {
  background: var(--c);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px var(--c-ring);
}

/* ============================================================
   实名认证 · 人脸采集
   ============================================================ */
.face-block { margin-top: 18px; padding: 16px; border: 1px solid #e3e9f2; border-radius: var(--radius-sm); background: #fbfcfe; }
.face-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.face-hd strong { font-size: 14px; color: var(--ink); }
.face-hd i { color: var(--danger); font-style: normal; }

.face-stage {
  position: relative; margin-top: 12px; width: 100%; max-width: 320px; aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm); overflow: hidden; background: #0f2340;
  display: flex; align-items: center; justify-content: center;
}
.face-stage video, .face-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face-stage [hidden] { display: none !important; }
.face-ph { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #8fa3bd; font-size: 13px; }
.face-ph span { font-size: 30px; line-height: 1; }
.face-ph em { font-style: normal; }

.face-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.face-actions .btn { cursor: pointer; }

.notice-block-green {
  background: #eafaf1; border: 1px solid #b7ebd0; border-left: 4px solid #12b76a;
  color: #0f6b43; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px;
}
.notice-block-green strong { display: block; margin-bottom: 4px; font-size: 15px; }
.notice-block-green p { margin: 0; }

@media (max-width: 767px) {
  .face-stage { max-width: 100%; }
}

/* 人脸失败后「改走人工审核」入口 */
.face-skip-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e3e9f2; }

/* hidden 必须压过 .btn 的 display，否则未触发的按钮会一直显示 */
.face-actions [hidden] { display: none !important; }

/* 证件 OCR 自动填表（只回填表单，不代表认证通过） */
.ocr-block {
  margin-top: 12px; padding: 14px 16px;
  border: 1px dashed var(--line, #d8e0ea); border-radius: var(--radius-sm);
  background: #f7fafd;
}
.ocr-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.ocr-hd strong { font-size: 14px; color: var(--ink); }
.ocr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.ocr-actions .btn { cursor: pointer; }
.ocr-block [data-ocr-status] { margin: 0; }

/* 证件文档 OCR（行驶证 / 营业执照） */
.doc-ocr { margin-top: 16px; }
.doc-ocr .ocr-hd { justify-content: space-between; }
.doc-ocr .ocr-hd .btn { margin-left: auto; }

/* 自动填充成功的字段：绿色边框 + 闪一下背景，提示用户「这几项是识别来的，要核对」 */
.doc-filled {
  border-color: #12b76a !important;
  background: #f3fdf8 !important;
  animation: docFillFlash 1.8s ease-out;
}
@keyframes docFillFlash {
  0%   { background: #b7ebd0 !important; }
  100% { background: #f3fdf8 !important; }
}

/* 摄像头实时拍照弹层（桌面端与不支持 capture 的场景走这条路） */
.cam-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(15, 35, 64, .82);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.cam-box { width: 100%; max-width: 520px; background: #fff; border-radius: var(--radius-sm); padding: 14px; }
.cam-video {
  width: 100%; aspect-ratio: 4 / 3; background: #0f2340;
  border-radius: var(--radius-sm); object-fit: cover; display: block;
}
.cam-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.cam-actions .btn { cursor: pointer; }
.cam-tip { margin: 8px 0 0; text-align: center; }

/* ============ v1.8.0 车辆详情轮播 / 灯箱 / 分享 / 卡片精简 / 导航 / 领取 / 反馈 ============ */

/* 首页导航精简：去掉上方文案，仅保留两个 tab 并居中 */
.hero-min { justify-content: center; padding: 16px 20px; }
.hero-min .seg { margin: 0 auto; }
.seg.seg-center { margin: 0 auto; }

/* 车辆详情：左右滑动轮播 */
.gal { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-slide { flex: 0 0 100%; scroll-snap-align: center; }
.gal-slide img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.gal.ph { display: flex; align-items: center; justify-content: center; min-height: 240px; background: linear-gradient(135deg, #eaf1fd, #e0f2ec); }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .35); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gal-nav.prev { left: 10px; }
.gal-nav.next { right: 10px; }
.gal-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.gal-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; display: flex; gap: 6px; }
.gal-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .15s; }
.gal-dots i.on { background: #fff; width: 16px; border-radius: 999px; }
@media (hover: none) { .gal-nav { display: none; } }

/* 灯箱：缩放 + 拖动 */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.lb-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb-img { max-width: 100%; max-height: 100%; transform-origin: center center; will-change: transform; user-select: none; -webkit-user-drag: none; cursor: grab; }
.lb-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 26px; cursor: pointer; }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(0, 0, 0, .4); padding: 3px 12px; border-radius: 999px; }

/* 首页卡片精简：仅封面/标题/租金/地区 */
.card[data-min="1"] .card-body { gap: 8px; }
.card-title { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.card[data-min="1"] .card-ft { align-items: flex-end; }
.card-region { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }

/* 领取会员弹窗 */
.claim-mask { position: fixed; inset: 0; z-index: 250; background: rgba(15, 35, 64, .55); display: flex; align-items: center; justify-content: center; padding: 22px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.claim-card { width: 100%; max-width: 340px; background: #fff; border-radius: 20px; padding: 26px 22px 20px; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: claimport .22s ease; }
@keyframes claimport { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.claim-emoji { font-size: 46px; line-height: 1; margin-bottom: 8px; }
.claim-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--ink); }
.claim-card p { margin-bottom: 16px; line-height: 1.6; }
.claim-card .btn { margin-top: 8px; }

/* 问题反馈 */
.fb-form textarea, .fb-form input[type=file] { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; background: #fff; box-sizing: border-box; }
.fb-form textarea { resize: vertical; }
.fb-list { display: flex; flex-direction: column; gap: 14px; }
.fb-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.fb-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fb-content { font-size: 14px; line-height: 1.7; white-space: pre-wrap; margin: 0 0 8px; }
.fb-reply { margin-top: 10px; background: #f6f9f7; border-left: 3px solid var(--brand-2, #00b578); border-radius: 8px; padding: 10px 12px; }
.fb-reply strong { font-size: 13px; color: var(--ink); }
.fb-reply p { font-size: 13px; line-height: 1.6; margin: 4px 0; }
.ok-alert { background: #e7f8ee; color: #177245; }

/* 邀请置于最前 */
.invite-top { border: 1px solid #e6f5ee; }
.invite-top-hd { display: flex; align-items: center; justify-content: space-between; }
.invite-top h2 { margin: 0; }

/* ============ v1.8.1 价格遮挡 / 留资线索 / 大图翻页 / 分享预览 ============ */

/* 租金遮挡：未留资时只显示部分数字 */
.price.price-locked, .price-big.locked { color: #8a94a6; letter-spacing: .5px; }
.price-big.locked { font-variant-numeric: tabular-nums; }
.price-locked::after { content: '待留资'; font-size: 11px; margin-left: 6px; color: #b0793d; background: #fff6e6; border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
.lead-tip { margin: 8px 0 12px; line-height: 1.6; }
.ok-text { color: #177245; font-weight: 600; }

/* 大图预览：左右翻页箭头（桌面端显示，触屏靠手势） */
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }
.lb-nav:hover { background: rgba(255, 255, 255, .28); }
@media (hover: none) { .lb-nav { display: none; } }

/* 分享预览卡（弹窗内） */
.share-preview { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 12px; }
.share-thumb { width: 78px; height: 58px; object-fit: cover; border-radius: 8px; background: #eef2f7; flex: 0 0 auto; }
.share-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.share-meta strong { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.modal-label { display: block; font-size: 12px; color: #6b7688; margin-bottom: 6px; }

/* 我的线索 */
.lead-list { display: flex; flex-direction: column; gap: 12px; }
.lead-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.lead-item.unread { border-color: #ffd9a8; background: #fffdf8; }
.lead-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.lead-hd strong { font-size: 16px; letter-spacing: .5px; }
.lead-hd .muted { margin-left: auto; }
.lead-post { font-size: 13px; margin-bottom: 4px; }
.lead-remark { font-size: 13px; color: #4a5568; background: #f6f8fb; border-radius: 8px; padding: 6px 10px; margin: 6px 0; }
.lead-actions { display: flex; gap: 8px; margin-top: 8px; }

/* 「收到线索」未读红点 */
.dot-badge { display: inline-block; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; margin-left: 4px; border-radius: 999px; background: #e0483a; color: #fff; font-size: 11px; font-style: normal; vertical-align: middle; }

/* ============ v1.8.2 分享海报 ============ */
.poster-box { margin: 4px 0 12px; border-radius: 14px; overflow: hidden; background: #f4f6fb; border: 1px solid var(--line); }
.poster-box img { display: block; width: 100%; max-height: 62vh; object-fit: contain; }
/* v1.18.0 点「长按保存」时让海报闪一下，明确告诉用户「长按的是这张图」 */
.poster-box img.poster-hold { animation: poster-hold 1.7s ease; }
@keyframes poster-hold {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(23, 99, 255, 0); }
  18%, 62% { box-shadow: inset 0 0 0 3px rgba(23, 99, 255, .85); }
}

/* ============ v1.8.3 AI 朋友圈文案 ============ */
.ai-body { min-height: 96px; margin: 4px 0 10px; }
.ai-loading { display: flex; align-items: center; gap: 10px; padding: 16px 4px; color: #5a6b8c; font-size: 14px; }
.ai-spin { width: 18px; height: 18px; border: 2px solid #dbe3f0; border-top-color: var(--brand); border-radius: 50%; animation: ai-spin .8s linear infinite; flex: 0 0 auto; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-result { background: #f6f9ff; border: 1px solid #e3ebf9; border-radius: 12px; padding: 12px 14px; }
.ai-text { font-size: 14px; line-height: 1.75; color: #1f2a44; white-space: pre-wrap; word-break: break-word; max-height: 46vh; overflow-y: auto; }
.ai-error { background: #fff6f5; border: 1px solid #ffd9d5; color: #a8322a; border-radius: 12px; padding: 14px; font-size: 14px; line-height: 1.6; }

/* hidden 属性必须压过 display:flex / inline-flex（否则加载行、重试按钮藏不住） */
.ai-loading[hidden], .ai-result[hidden], .ai-error[hidden], .modal-actions .btn[hidden] { display: none !important; }
.ai-text { text-align: left; }

/* ============ v1.8.4 AI 文案：列表（v1.12.0 起改为单条） ============ */
.ai-tip { font-size: 12px; font-weight: 400; color: #8a94a6; margin-left: 6px; }
.ai-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; }
.ai-item { display: flex; gap: 10px; align-items: flex-start; background: #f6f9ff; border: 1px solid #e3ebf9; border-radius: 12px; padding: 10px 12px; }
.ai-no { flex: 0 0 auto; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; margin-top: 2px; }
.ai-item-main { flex: 1 1 auto; min-width: 0; text-align: left; }
.ai-topic { display: inline-block; font-size: 11px; color: #6b7a94; background: #eaf0fb; border-radius: 6px; padding: 1px 6px; margin-bottom: 4px; }
.ai-item .ai-text { margin: 0; font-size: 14px; line-height: 1.65; color: #1f2a44; word-break: break-word; }
.ai-item .btn { flex: 0 0 auto; }

/* ============ v1.9.0 AI 文案：单条卡片（v1.12.0 起不再有序号） ============ */
.ai-stylebar { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.ai-style-label { font-size: 12px; color: #6b7a94; }
.ai-style-select { flex: 1 1 auto; height: 34px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; font-size: 13px; background: #fff; color: #1f2a44; }
.ai-item { display: block; padding: 12px 14px; }
.ai-item-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ai-style-tag { font-size: 12px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-radius: 6px; padding: 2px 8px; }
.ai-len { font-size: 11px; color: #8a94a6; }
.ai-copy-one { margin-left: auto; }
.ai-version-text { font-size: 14px; line-height: 1.85; color: #1f2a44; white-space: pre-wrap; word-break: break-word; }
.ai-images { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #e3ebf9; }
.ai-sub { font-size: 11px; color: #8a94a6; }
.ai-image-line { margin: 3px 0 0; font-size: 12px; line-height: 1.6; color: #5a6b8c; }
.ai-badge { display: inline-block; margin-top: 10px; font-size: 11px; border-radius: 6px; padding: 2px 8px; }
.ai-badge.ok { color: #177245; background: #e7f8ee; }
.ai-badge.warn { color: #8a5a00; background: #fff6e6; }
.ai-notes { margin: 6px 0 0; padding-left: 18px; color: #8a5a00; font-size: 12px; line-height: 1.6; }
.ai-list { max-height: 58vh; overflow-y: auto; }

/* ============ v1.9.1 AI 文案：字数档选择 ============ */
.ai-lenbar { margin-top: -2px; }
.ai-lenbar .ai-style-select { font-weight: 600; }

/* ============ v1.11.0 AI 文案：会员额度 / 权益卡片 ============ */
.ai-quota { font-size: 12px; color: #177245; background: #eefaf3; border: 1px solid #d5f0e2; border-radius: 8px; padding: 5px 10px; margin: 2px 0 10px; text-align: center; }
.ai-quota.low { color: #a8611b; background: #fff7ec; border-color: #ffe3c2; }
.ai-quota[hidden] { display: none !important; }

.ai-vip { padding: 4px 0 6px; text-align: center; }
.ai-vip[hidden] { display: none !important; }
.ai-vip-hd { font-size: 17px; font-weight: 700; color: #1f2a44; margin-bottom: 6px; }
.ai-vip-sub { font-size: 13px; line-height: 1.7; color: #5a6b8c; margin: 0 0 12px; }
.ai-benefits { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.ai-benefits li { display: flex; gap: 9px; align-items: flex-start; background: #f6f9ff; border: 1px solid #e3ebf9; border-radius: 10px; padding: 9px 11px; }
.ai-b-ico { font-size: 16px; line-height: 1.3; flex: 0 0 auto; }
.ai-b-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ai-b-txt b { font-size: 13px; color: #1f2a44; }
.ai-b-txt em { font-size: 12px; font-style: normal; color: #6b7a94; line-height: 1.5; }
.ai-vip-note { font-size: 11px; color: #9aa5b8; margin: 8px 0 0; }

/* v1.12.0：单条文案卡片（无序号，去掉左侧编号留白） */
.ai-item-single { padding: 14px 16px; }

/* ============ v1.12.2 「我的」：配额统计合并为单一网格 ============ */
/* 原 v1.12.1 的 .quota-row-ai / .quota-hint-text 已随「计量方式」卡一起移除；
   AI 朋友圈余量并入 .quota-row，四项统一网格（小屏 2×2 / 桌面 4 列），不再有半格空位。 */
.quota-row-mine { margin: 0 0 16px; grid-template-columns: repeat(2, 1fr); }
.quota-row-mine > div { display: flex; flex-direction: column; justify-content: center; }
/* 桌面端与上方 .stat-row 的四列严格对齐（同一 4 列轨道 + 同一 gap） */
@media (min-width: 768px) { .quota-row-mine { grid-template-columns: repeat(4, 1fr); } }
/* 邀请规则（独立邀请页） */
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li { padding: 10px 0; border-top: 1px dashed var(--line); }
.rule-list li:first-child { border-top: 0; padding-top: 2px; }
.rule-list strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 3px; }
.rule-list span { font-size: 13px; color: #6b7a94; line-height: 1.6; }

/* ---------------- 会员续费（v1.13.3） ---------------- */
.plan-list { display: flex; flex-direction: column; gap: 10px; }
.plan-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.plan-item:hover { border-color: var(--brand); box-shadow: 0 6px 16px rgba(23, 99, 255, .1); transform: translateY(-1px); }
.plan-item.on { border-color: var(--brand); background: #f5f9ff; }
.plan-item strong { font-size: 15px; }
.plan-price { font-size: 20px; font-weight: 800; color: var(--brand); flex: none; }

.pay-panel { position: relative; }
.pay-panel h2 { margin-bottom: 12px; }
.pay-badge { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.pay-line {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px;
}
.pay-line:last-of-type { border-bottom: 0; }
.pay-line span { color: var(--text-2); }
.pay-total b { font-size: 26px; font-weight: 800; color: var(--brand); }
.pay-warn {
  padding: 10px 12px; border-radius: 10px; background: #fff6e6;
  border: 1px solid #ffe0a3; color: #8a5300; font-size: 13px; line-height: 1.6;
}

/* ============ v1.19.0 分享：点一下直接出「含二维码的分享图」 ============ */
/* 弹窗一打开就是骨架，图生成好后原地替换，中间不再多一层面板 */
.share-sub { margin: 2px 0 10px; line-height: 1.6; }
.share-poster-box {
  position: relative; min-height: 240px;
  display: flex; align-items: center; justify-content: center;
}
.share-poster-box img[hidden], .share-poster-box img[hidden] { display: none !important; }
.poster-skel {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: center; color: #5a6b8c; font-size: 13px;
}
.poster-skel[hidden] { display: none !important; }
.poster-spin {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #dbe3f0; border-top-color: var(--brand, #1763ff);
  animation: poster-spin .8s linear infinite;
}
@keyframes poster-spin { to { transform: rotate(360deg); } }
.poster-skel-txt { line-height: 1.5; }

/* 长按 / 右键引导：做成可点的一行，点了图片描边闪一下指出位置 */
.share-hold-tip {
  margin: -4px 0 12px; font-size: 12px; color: #7b8798; cursor: pointer;
  text-decoration: underline dotted rgba(123, 135, 152, .55); text-underline-offset: 3px;
}
.share-hold-tip:hover { color: var(--brand, #1763ff); }

/* 「更多方式」视图：同一弹窗内切换，不叠第二层 */
.share-more-body { text-align: left; line-height: 1.75; }
.modal [data-view][hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .poster-spin, .poster-box img.poster-hold { animation: none !important; }
}

/* ============ v1.21.0 会员续费：收银台页直接出付款码 ============ */
.payqr-page { text-align: center; }
.payqr-page h2 { text-align: center; }

.payqr-order { margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; background: #f7f9fd; text-align: left; }
.payqr-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 13px; }
.payqr-row span { color: var(--text-2); flex: 0 0 auto; }
.payqr-row b { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }
.payqr-amount {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e2e8f2;
}
.payqr-amount span { font-size: 13px; color: var(--text-2); }
.payqr-amount b { font-size: 24px; font-weight: 800; color: var(--brand); }

/* 码里是本单收银台直链（约 1000 字符），码点密，所以出图 1024px、页面最大 300px 展示 */
.payqr-box {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 404px; margin: 0 auto; padding: 12px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.payqr-box img { display: block; width: 100%; max-width: 380px; height: auto; }
/* 短码（收银台直链 / 原生付款码，约 33×33 个点）：不需要占满整块，收一点更耐看，
   300px 展示时每个码点仍有 8px，实测 240px 都还能扫 */
.payqr-box.is-short { max-width: 324px; }
.payqr-box.is-short img { max-width: 300px; }
.payqr-box.is-bad { min-height: 148px; }
.payqr-box.is-bad img { display: none; }
.payqr-box.is-bad::after { content: '二维码图片未加载'; font-size: 13px; color: #98a3b6; }

.payqr-tip { margin: 12px 0 4px; font-size: 12px; color: #5a6b8c; line-height: 1.7; }
.payqr-meta { margin: 0 0 14px; font-size: 11px; color: #98a3b6; font-variant-numeric: tabular-nums; word-break: break-all; }
.payqr-actions { display: flex; gap: 10px; }
.payqr-actions .btn { flex: 1; }
.payqr-open { display: block; margin-top: 12px; font-size: 12px; color: var(--brand); text-decoration: none; }
.payqr-open[hidden] { display: none !important; }
.payqr-fallback {
  display: block; width: 100%; margin-top: 10px; padding: 6px 0; border: 0; background: none;
  font-size: 12px; color: #98a3b6; text-decoration: underline; cursor: pointer;
}
.payqr-fallback[hidden] { display: none !important; }

@media (max-width: 480px) {
  /* 手机屏上把能省的间距都省掉，让码尽量大 —— 签名地址码是 105×105 个点，
     展示宽度每小 20px，扫码成功率就掉一档（实测 340～380px 稳定可解）。
     负 margin 是拿掉面板内边距的影响，码本身是白底，贴边不影响观感。 */
  .payqr-page { padding: 12px 10px; }
  .payqr-box { max-width: 100%; padding: 2px; border-radius: 12px; }
  .payqr-box img { max-width: 100%; }
  /* 手机屏上码可能扫不动（长链接码点太密），把「直接跳转支付宝支付」做成主入口 */
  .payqr-open {
    margin-top: 14px; padding: 12px 0; border: 1px solid var(--brand); border-radius: 10px;
    font-size: 15px; font-weight: 600; text-decoration: none;
  }
}

/* ============ v1.24.0 我的店铺入口（「我的」页面） ============ */
.shop-entry {
  display: flex; align-items: center; gap: 12px;
  margin: 4px 0 14px; padding: 14px 16px;
  text-decoration: none; color: inherit;
  border: 1px solid var(--line); transition: border-color .15s ease, box-shadow .15s ease;
}
.shop-entry:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(23, 99, 255, .1); }
.shop-entry-icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: linear-gradient(135deg, #eef4ff, #e6f8f1);
}
.shop-entry-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.shop-entry-main strong { font-size: 15px; color: var(--text); }
.shop-entry-main .small { line-height: 1.5; }
.shop-entry-go { flex: 0 0 auto; color: var(--brand); font-weight: 600; }
/* 已有店铺时给一点"已完成"的视觉暗示，与未创建区分开 */
.shop-entry.has-shop .shop-entry-icon { background: linear-gradient(135deg, #e8f7ee, #dff3e6); }

/* 店铺主页头部 */
.shop-head .avatar { background: linear-gradient(135deg, #1763ff, #00b578); }

/* ============ v1.25.0 店铺头像 / 地址 / 未实名引导 ============ */
/* 表单里的头像行：左边圆角方图预览，右边文件选择 */
.shop-logo-row { flex-direction: row; align-items: center; gap: 14px; }
.shop-logo-prev {
  flex: 0 0 auto; width: 76px; height: 76px; border-radius: 20px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4c9aff, var(--brand) 60%, var(--brand-2));
  color: #fff; font-size: 28px; font-weight: 700; line-height: 1;
  box-shadow: 0 6px 16px rgba(23, 99, 255, .22);
}
.shop-logo-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-logo-field { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.shop-logo-label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.shop-logo-field input[type=file] {
  padding: 8px 10px; font-size: 13px; color: var(--text-2);
  border: 1px dashed var(--line); border-radius: var(--radius-sm); background: #fafbfe; cursor: pointer;
}
.shop-logo-field input[type=file]:hover { border-color: var(--brand); }
.shop-logo-field input[type=file]::file-selector-button {
  margin-right: 10px; padding: 6px 12px; border: 0; border-radius: 8px;
  background: #eaf1ff; color: var(--brand); font-size: 13px; font-weight: 600; cursor: pointer;
}

/* 店铺页头像：有图时撑满圆形，去掉渐变底 */
.shop-head .avatar { overflow: hidden; }
.shop-head .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 「我的」页面店铺入口：有头像时用头像替换 🏪 */
.shop-entry-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
