/* ============ 金日租车 H5 ============ */
:root{
  --brand:#1f6bff;
  --brand-2:#4d97ff;
  --brand-ink:#0b2a6f;
  --red:#ff3b30;
  --orange:#ff8a1f;
  --ink:#12151c;
  --ink-2:#3c4250;
  --muted:#8b92a3;
  --line:#eceff5;
  --bg:#f4f6fa;
  --white:#fff;
  --radius:16px;
  --shadow:0 6px 18px rgba(16,24,40,.07);
  --shadow-lg:0 12px 30px rgba(16,24,40,.12);
  --safe-b:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  background:#e9ecf3;color:var(--ink);font-size:15px;line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:0;background:none;color:inherit}
input,select,textarea{font-family:inherit;font-size:15px;color:var(--ink)}
img{display:block;max-width:100%}

.phone{
  position:relative;max-width:460px;min-height:100vh;margin:0 auto;background:var(--bg);
  box-shadow:0 0 60px rgba(15,23,42,.16);overflow:hidden;padding-bottom:calc(64px + var(--safe-b));
}

/* ---------- 顶栏 ---------- */
.topbar{
  position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;
  gap:10px;padding:12px 14px;background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid var(--line);
}
.logo{display:flex;align-items:center;gap:8px;font-weight:800;letter-spacing:.2px}
.logo-mark{width:26px;height:26px;color:var(--brand);display:grid;place-items:center}
.logo-mark svg{width:26px;height:26px}
.logo-text{font-size:19px;background:linear-gradient(120deg,#1f6bff,#5aa4ff);-webkit-background-clip:text;background-clip:text;color:transparent}
.logo-text em{font-style:normal;font-size:13px;vertical-align:super}
.topnav{display:flex;align-items:center;gap:14px;font-size:14px;color:var(--ink-2)}
.topnav a:active{opacity:.6}
.avatar{width:32px;height:32px;border-radius:50%;background:#eef3ff;color:#7f9bd6;display:grid;place-items:center}
.avatar svg{width:22px;height:22px}

/* ---------- 通用 ---------- */
.view{min-height:60vh}
.sec{padding:0 14px}
.sec-head{display:flex;align-items:center;justify-content:space-between;margin:18px 0 10px}
.sec-title{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:800}
.sec-title i{display:inline-block;width:4px;height:15px;border-radius:2px;background:linear-gradient(180deg,#1f6bff,#6fb1ff)}
.sec-more{font-size:13px;color:var(--muted)}
.card{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow)}
.pill{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px;border-radius:11px;font-size:11px;font-weight:600}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:46px;padding:0 18px;border-radius:23px;font-size:15px;font-weight:700}
.btn-primary{background:linear-gradient(135deg,#1f6bff,#4d97ff);color:#fff;box-shadow:0 8px 20px rgba(31,107,255,.28)}
.btn-ghost{background:#eef3ff;color:var(--brand)}
.btn-line{border:1px solid var(--line);color:var(--ink-2);background:#fff}
.btn:active{transform:translateY(1px);opacity:.92}
.btn[disabled]{opacity:.5;box-shadow:none}
.hide{display:none!important}

/* ---------- 首页 hero ---------- */
.hero{
  position:relative;padding:16px 14px 22px;color:#fff;overflow:hidden;
  background:radial-gradient(120% 100% at 100% 0%,#3d7bff 0%,#1f5bdb 42%,#122a63 100%);
  border-radius:0 0 22px 22px;
}
.hero::after{
  content:"";position:absolute;right:-40px;top:-30px;width:200px;height:200px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.22),transparent 62%);
}
.hero-badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:4px 10px;border-radius:20px;background:rgba(255,255,255,.16);backdrop-filter:blur(4px)}
.hero h1{margin:10px 0 4px;font-size:23px;letter-spacing:.3px;line-height:1.25}
.hero h1 span{color:#ffd66b}
.hero p{margin:0;font-size:13px;color:rgba(255,255,255,.78)}
.searchbar{
  position:relative;z-index:2;display:flex;align-items:center;gap:8px;margin-top:14px;background:#fff;
  border-radius:14px;padding:0 14px;height:48px;box-shadow:0 10px 24px rgba(6,20,60,.22);
}
.searchbar svg{width:19px;height:19px;color:var(--muted);flex:none}
.searchbar input{border:0;outline:0;flex:1;height:100%;background:transparent;font-size:15px}
.searchbar input::placeholder{color:#adb4c4}
.searchbar .go{font-size:13px;font-weight:700;color:var(--brand);padding-left:10px;border-left:1px solid var(--line)}

.hero-stats{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px}
.hero-stats div{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:8px 6px;text-align:center}
.hero-stats b{display:block;font-size:16px}
.hero-stats span{font-size:11px;color:rgba(255,255,255,.72)}

/* ---------- 公告 ---------- */
.notice{
  position:relative;z-index:3;display:flex;align-items:center;gap:8px;margin:-14px 14px 0;padding:10px 12px;
  background:#fff;border-radius:12px;box-shadow:var(--shadow);overflow:hidden;
}
.notice-ico{width:26px;height:26px;border-radius:8px;background:linear-gradient(135deg,#ff4d4f,#ff8a1f);display:grid;place-items:center;flex:none;color:#fff}
.notice-ico svg{width:16px;height:16px}
.marquee{flex:1;overflow:hidden;font-size:13px;color:var(--ink-2)}
.mq-track{display:inline-flex;white-space:nowrap;animation:scroll 16s linear infinite}
.mq-track span{padding-right:70px}
@keyframes scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---------- 分类 ---------- */
.chips{display:flex;gap:8px;overflow-x:auto;padding:14px 14px 4px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{
  flex:none;height:34px;padding:0 14px;border-radius:17px;font-size:13px;font-weight:600;color:var(--ink-2);
  background:#fff;border:1px solid var(--line);display:inline-flex;align-items:center;gap:6px;white-space:nowrap;
}
.chip.active{background:linear-gradient(135deg,#1f6bff,#4d97ff);color:#fff;border-color:transparent;box-shadow:0 6px 14px rgba(31,107,255,.25)}
.chip b{font-weight:700}

/* ---------- 车辆卡片 ---------- */
.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px 14px 0}
.car{
  position:relative;background:#fff;border-radius:14px;overflow:hidden;box-shadow:var(--shadow);
  transition:transform .18s ease,box-shadow .18s ease;
}
.car:active{transform:scale(.985)}
.car-fig{position:relative;aspect-ratio:4/3;overflow:hidden}
.car-fig .sky{position:absolute;inset:0}
.car-fig .glow{position:absolute;inset:auto 0 0 0;height:55%;background:linear-gradient(180deg,transparent,rgba(0,0,0,.28))}
.car-fig svg.car-art{position:absolute;left:6%;bottom:12%;width:88%;height:auto;filter:drop-shadow(0 8px 12px rgba(0,0,0,.35))}
.car-fig .badge{position:absolute;left:8px;top:8px;background:rgba(9,16,32,.6);color:#fff;backdrop-filter:blur(6px);font-size:11px;padding:3px 7px;border-radius:6px}
.stock{
  position:absolute;right:8px;bottom:8px;background:rgba(255,255,255,.92);color:#a2731b;
  font-size:11px;font-weight:700;padding:3px 8px;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.fav{position:absolute;right:6px;top:6px;width:28px;height:28px;display:grid;place-items:center;color:#fff;opacity:.85}
.fav svg{width:20px;height:20px}
.fav.on{color:#ff4d6d}
.car-body{padding:9px 10px 11px}
.car-name{font-size:14px;font-weight:800;line-height:1.3;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.car-sub{display:flex;align-items:center;gap:5px;margin-top:5px;font-size:11px;color:var(--muted);min-height:16px}
.car-sub i{width:14px;height:14px;border-radius:50%;background:linear-gradient(135deg,#cfe0ff,#8fb6ff);display:inline-block;flex:none}
.car-sub em{font-style:normal;color:#2f7bff}
.price-row{display:flex;align-items:flex-end;justify-content:space-between;margin-top:7px}
.price{color:var(--red);font-weight:900;font-size:17px;letter-spacing:-.2px}
.price small{font-size:11px;font-weight:700;margin-right:1px}
.price span{font-size:10px;color:var(--muted);font-weight:500;margin-left:2px}
.tagset{display:flex;gap:4px;flex-wrap:wrap;margin-top:7px}
.tagset b{font-size:10px;font-weight:600;color:#3b74d8;background:#edf3ff;border-radius:5px;padding:2px 5px}

/* 横向大卡（空档推荐） */
.feature{
  position:relative;margin:0 14px;border-radius:18px;overflow:hidden;color:#fff;
  background:linear-gradient(120deg,#0f1b3d,#22407f 55%,#0d1830);box-shadow:var(--shadow-lg);
}
.feature .fc-body{position:relative;z-index:2;padding:16px 128px 16px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.feature h3{margin:0;font-size:16px}
.feature p{margin:4px 0 0;font-size:12px;color:rgba(255,255,255,.72)}
.feature .fc-btn{flex:none;height:34px;padding:0 14px;border-radius:17px;background:#fff;color:#1b3d8f;font-size:13px;font-weight:800}
.feature .fc-art{position:absolute;right:-6px;bottom:-10px;width:168px;z-index:1;opacity:.95;pointer-events:none}

/* ---------- 店铺信息 / 页脚 ---------- */
.shop{margin:18px 14px 0;padding:14px;display:flex;gap:12px;align-items:center;background:#fff;border-radius:14px;box-shadow:var(--shadow)}
.shop-ava{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#1f6bff,#7fb4ff);color:#fff;display:grid;place-items:center;font-weight:900;flex:none}
.shop h4{margin:0;font-size:14px}
.shop p{margin:2px 0 0;font-size:12px;color:var(--muted)}
.shop .follow{margin-left:auto;height:30px;padding:0 12px;border-radius:15px;background:#eef3ff;color:var(--brand);font-size:12px;font-weight:700}
.foot{margin:18px 14px 0;padding:14px;background:#fff;border-radius:14px;box-shadow:var(--shadow);display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}
.foot b{color:var(--ink-2)}
.dot{width:3px;height:3px;border-radius:50%;background:#cfd5e2;display:inline-block;margin:0 6px;vertical-align:middle}
.copyright{text-align:center;font-size:11px;color:#aab1c0;padding:16px 14px 8px;line-height:1.7}

/* 悬浮客服 */
.fab{
  position:fixed;right:calc(50% - 230px + 14px);bottom:calc(78px + var(--safe-b));z-index:45;
  width:52px;height:52px;border-radius:50%;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.18);
  display:grid;place-items:center;color:#1f6bff;border:1px solid #eef2fb;
}
.fab svg{width:26px;height:26px}
.fab small{position:absolute;bottom:-2px;font-size:9px;color:#8b92a3;transform:translateY(100%)}
@media(max-width:480px){.fab{right:14px}}

/* ---------- 详情页 ---------- */
.gallery{position:relative;background:#0b0f19}
.gallery .shots{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.gallery .shots::-webkit-scrollbar{display:none}
.gallery .shot{flex:0 0 100%;scroll-snap-align:center;aspect-ratio:4/3;position:relative}
.gallery .shot svg{position:absolute;left:4%;bottom:10%;width:92%}
.gallery .dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:5px}
.gallery .dots i{width:5px;height:5px;border-radius:50%;background:rgba(255,255,255,.4)}
.gallery .dots i.on{width:14px;border-radius:3px;background:#fff}
.back{
  position:absolute;left:12px;top:12px;z-index:5;width:34px;height:34px;border-radius:50%;
  background:rgba(9,14,26,.5);backdrop-filter:blur(6px);color:#fff;display:grid;place-items:center;
}
.back svg{width:18px;height:18px}
.detail-head{padding:14px 14px 0}
.d-title{font-size:19px;font-weight:900;line-height:1.3}
.d-price{display:flex;align-items:baseline;gap:6px;margin-top:8px}
.d-price b{color:var(--red);font-size:26px;font-weight:900}
.d-price b small{font-size:13px}
.d-price span{font-size:12px;color:var(--muted)}
.d-price .dep{margin-left:auto;font-size:12px;color:var(--ink-2);background:#f5f7fc;border-radius:8px;padding:4px 8px}
.spec-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.spec-grid div{background:#f7f9fd;border-radius:10px;padding:8px;text-align:center}
.spec-grid b{display:block;font-size:13px}
.spec-grid span{font-size:11px;color:var(--muted)}
.block{margin:12px 14px 0;padding:14px;background:#fff;border-radius:14px;box-shadow:var(--shadow)}
.block h3{margin:0 0 8px;font-size:15px;display:flex;align-items:center;gap:8px}
.block p{margin:0;font-size:13px;color:var(--ink-2);line-height:1.75}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;text-align:center}
.steps div{font-size:11px;color:var(--ink-2)}
.steps b{display:grid;place-items:center;width:28px;height:28px;margin:0 auto 6px;border-radius:50%;background:#eef3ff;color:var(--brand);font-size:12px}
.rulelist{margin:0;padding:0;list-style:none;font-size:13px;color:var(--ink-2)}
.rulelist li{position:relative;padding-left:16px;margin:6px 0;line-height:1.6}
.rulelist li::before{content:"";position:absolute;left:4px;top:8px;width:5px;height:5px;border-radius:50%;background:#b9c6de}
.buybar{
  position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:460px;z-index:50;
  display:flex;align-items:center;gap:10px;padding:10px 14px calc(10px + var(--safe-b));
  background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-top:1px solid var(--line);
}
.buybar .sum{flex:none}
.buybar .sum b{color:var(--red);font-size:18px;font-weight:900}
.buybar .sum span{display:block;font-size:10px;color:var(--muted)}
.buybar .act{flex:1;display:flex;gap:8px}
.buybar .act .btn{flex:1;height:44px;border-radius:22px}

/* ---------- 表单 ---------- */
.form{margin:12px 14px 0;background:#fff;border-radius:14px;box-shadow:var(--shadow);overflow:hidden}
.field{display:flex;align-items:center;gap:10px;padding:13px 14px;border-bottom:1px solid var(--line)}
.field:last-child{border-bottom:0}
.field label{width:76px;flex:none;font-size:13px;color:var(--ink-2);font-weight:600}
.field input,.field select,.field textarea{
  flex:1;border:0;outline:0;background:transparent;font-size:14px;min-width:0;color:var(--ink);
}
.field textarea{min-height:96px;resize:vertical;line-height:1.6;padding-top:2px}
.field.col{display:block}
.field.col label{display:block;width:auto;margin-bottom:6px}
.field .unit{font-size:12px;color:var(--muted);flex:none}
.field.err{background:#fff6f6}
.hint{font-size:11px;color:var(--muted);padding:8px 16px 0}
.summary{margin:12px 14px 0;background:#fff;border-radius:14px;box-shadow:var(--shadow);padding:14px}
.summary .row{display:flex;justify-content:space-between;font-size:13px;color:var(--ink-2);padding:5px 0}
.summary .row.total{border-top:1px dashed var(--line);margin-top:8px;padding-top:10px;font-size:14px;color:var(--ink);font-weight:700}
.summary .row.total b{color:var(--red);font-size:20px;font-weight:900}

/* ---------- 列表/订单 ---------- */
.pagetitle{padding:16px 14px 4px}
.pagetitle h2{margin:0;font-size:20px;font-weight:900}
.pagetitle p{margin:4px 0 0;font-size:12px;color:var(--muted)}
.order{margin:12px 14px 0;background:#fff;border-radius:14px;box-shadow:var(--shadow);overflow:hidden}
.order .o-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
.order .o-head b{color:var(--ink);font-size:13px}
.st{font-size:11px;font-weight:800;padding:3px 8px;border-radius:8px;background:#eef3ff;color:#2f6bdd}
.st.wait{background:#fff6e8;color:#c07b12}
.st.delivering{background:#f3ecff;color:#7a3fd8}
.st.renting{background:#eaf1ff;color:#2f6bdd}
.st.done{background:#eaf8ef;color:#1f9254}
.st.cancel{background:#f2f4f8;color:#8b92a3}
.order .o-body{display:flex;gap:10px;padding:12px 14px}
.o-thumb{width:74px;height:56px;border-radius:10px;overflow:hidden;position:relative;flex:none}
.o-thumb svg{position:absolute;left:4%;bottom:16%;width:92%}
.o-main{flex:1;min-width:0}
.o-main h4{margin:0;font-size:14px;font-weight:800}
.o-main p{margin:3px 0 0;font-size:12px;color:var(--muted)}
.order .o-foot{display:flex;gap:8px;justify-content:flex-end;padding:0 14px 12px}
.order .o-foot .btn{height:34px;padding:0 14px;border-radius:17px;font-size:12px}
.empty{margin:40px 14px;text-align:center;color:var(--muted);font-size:13px}
.empty svg{width:96px;height:96px;opacity:.5;margin-bottom:10px}

/* ---------- 我的 ---------- */
.me-hero{
  margin:0;padding:22px 16px 26px;color:#fff;border-radius:0 0 22px 22px;
  background:radial-gradient(120% 120% at 0% 0%,#3d7bff,#173b8f 60%,#0e1f4a);
  display:flex;align-items:center;gap:12px;
}
.me-hero .ava{width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,.2);display:grid;place-items:center;font-size:22px;font-weight:900}
.me-hero h3{margin:0;font-size:17px}
.me-hero p{margin:2px 0 0;font-size:12px;color:rgba(255,255,255,.72)}
.menu{margin:14px;background:#fff;border-radius:14px;box-shadow:var(--shadow);overflow:hidden}
.menu a{display:flex;align-items:center;gap:10px;padding:14px;border-bottom:1px solid var(--line);font-size:14px}
.menu a:last-child{border-bottom:0}
.menu a span{margin-left:auto;color:#c3c9d6;font-size:13px}
.menu svg{width:20px;height:20px;color:var(--brand)}

/* ---------- tabbar ---------- */
.tabbar{
  position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:460px;z-index:60;
  display:grid;grid-template-columns:repeat(4,1fr);background:rgba(255,255,255,.97);
  backdrop-filter:blur(12px);border-top:1px solid var(--line);padding-bottom:var(--safe-b);
}
.tabbar a{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 0 7px;font-size:10px;color:#9aa1b1}
.tabbar svg{width:22px;height:22px}
.tabbar a.active{color:var(--brand);font-weight:700}

/* ---------- toast ---------- */
.toast{
  position:fixed;left:50%;top:50%;transform:translate(-50%,-50%) scale(.96);z-index:999;
  max-width:78%;padding:11px 16px;border-radius:12px;background:rgba(18,22,31,.9);color:#fff;
  font-size:13px;line-height:1.5;text-align:center;opacity:0;pointer-events:none;transition:.2s ease;
}
.toast.show{opacity:1;transform:translate(-50%,-50%) scale(1)}

/* ---------- PWA 安装提示 ---------- */
.install-tip{
  position:fixed;left:50%;transform:translate(-50%,140%);bottom:calc(76px + env(safe-area-inset-bottom));
  width:calc(100% - 28px);max-width:420px;z-index:80;
  display:flex;align-items:center;gap:10px;padding:12px 14px;
  background:rgba(16,24,40,.94);color:#fff;border-radius:16px;
  box-shadow:0 16px 38px rgba(8,15,30,.42);backdrop-filter:blur(10px);
  transition:transform .32s cubic-bezier(.32,.72,0,1);opacity:.98;
}
.install-tip.show{transform:translate(-50%,0)}
.install-tip .it-ico{
  width:38px;height:38px;border-radius:10px;flex:none;
  background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;
  display:grid;place-items:center;font-weight:800;font-size:17px;
}
.install-tip .it-main{flex:1;min-width:0;line-height:1.35}
.install-tip .it-main b{display:block;font-size:13px}
.install-tip .it-main span{display:block;font-size:11px;color:rgba(255,255,255,.66);margin-top:2px}
.install-tip .it-btn{
  flex:none;height:32px;padding:0 14px;border-radius:16px;border:0;
  background:#fff;color:#1d4ed8;font-size:12.5px;font-weight:700;
}
.install-tip .it-close{
  flex:none;width:24px;height:24px;border:0;background:transparent;
  color:rgba(255,255,255,.55);font-size:18px;line-height:1;
}
/* ---------- 支付 ---------- */
.pay-tag{
  margin-left:auto;font-size:11px;font-weight:700;padding:3px 8px;border-radius:8px;
  background:#eaf8ef;color:#1f9254;
}
.pay-tag.unpaid{background:#fff6e8;color:#c07b12}
.pay-way{
  display:flex;align-items:center;gap:12px;padding:14px 4px;border-bottom:1px solid var(--line);
  cursor:pointer;
}
.pay-way:last-child{border-bottom:0}
.pay-way input{margin-left:auto;accent-color:#1f6bff}
.pay-way .pw-ico{
  width:34px;height:34px;border-radius:9px;flex:none;display:grid;place-items:center;
  background:#e8f8ee;color:#12a150;font-weight:800;font-size:14px;
}
.pay-way .pw-ico.pw-ali{background:#e9f0ff;color:#1677ff}
.pay-way .pw-main{flex:1;min-width:0;line-height:1.35}
.pay-way .pw-main b{display:block;font-size:14px}
.pay-way .pw-main i{display:block;font-style:normal;font-size:11px;color:#8b92a3;margin-top:2px}
.pay-way.disabled{opacity:.55}
/* ---------- 实拍图 ---------- */
.car-photo{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  transition:transform .35s ease;
}
.car:active .car-photo{transform:scale(1.02)}
.shot-photo{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
}
/* ---------- 在线客服 ---------- */
.chat-layer{position:fixed;inset:0;z-index:90}
.chat-mask{position:absolute;inset:0;background:rgba(10,18,32,.42);opacity:0;transition:.24s}
.chat-layer.show .chat-mask{opacity:1}
.chat-panel{
  position:absolute;left:50%;bottom:0;transform:translate(-50%,102%);
  width:100%;max-width:460px;height:78vh;display:flex;flex-direction:column;
  background:#f4f6fa;border-radius:18px 18px 0 0;
  box-shadow:0 -20px 50px rgba(10,20,40,.28);
  transition:transform .3s cubic-bezier(.32,.72,0,1);
}
.chat-layer.show .chat-panel{transform:translate(-50%,0)}
.chat-head{
  flex:none;display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;background:#fff;border-radius:18px 18px 0 0;border-bottom:1px solid #eceff5;
}
.chat-head b{font-size:15px}
.chat-head i{display:block;font-style:normal;font-size:11px;color:#8b92a3;margin-top:2px}
.chat-close{width:30px;height:30px;border:0;background:transparent;font-size:20px;color:#8b92a3}
.chat-body{flex:1;overflow-y:auto;padding:14px 14px 6px;-webkit-overflow-scrolling:touch}
.chat-tip{background:#fff;border-radius:12px;padding:10px 12px;font-size:12px;color:#6b7688;line-height:1.6;margin-bottom:14px}
.chat-msg{display:flex;flex-direction:column;margin-bottom:12px}
.chat-msg.me{align-items:flex-end}
.chat-msg.cs{align-items:flex-start}
.chat-msg .bubble{
  max-width:78%;padding:10px 12px;border-radius:12px;font-size:14px;line-height:1.55;
  background:#fff;color:#12151c;word-break:break-word;
}
.chat-msg.me .bubble{background:linear-gradient(135deg,#1f6bff,#4d97ff);color:#fff}
.chat-msg .time{font-size:10px;color:#aab1c0;margin-top:4px}
.chat-quick{flex:none;display:flex;gap:8px;overflow-x:auto;padding:8px 14px;scrollbar-width:none}
.chat-quick::-webkit-scrollbar{display:none}
.chat-quick button{
  flex:none;height:30px;padding:0 12px;border-radius:15px;border:1px solid #dfe6f3;
  background:#fff;color:#3c4250;font-size:12px;
}
.chat-input{
  flex:none;display:flex;gap:8px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));
  background:#fff;border-top:1px solid #eceff5;
}
.chat-input input{
  flex:1;height:40px;border:1px solid #e3e9f3;border-radius:20px;padding:0 14px;
  background:#fbfcfe;outline:0;font-size:14px;
}
.chat-input button{
  flex:none;height:40px;padding:0 18px;border-radius:20px;border:0;
  background:linear-gradient(135deg,#1f6bff,#4d97ff);color:#fff;font-size:14px;font-weight:600;
}
/* ---------- 信任条 ---------- */
.trust{
  position:relative;z-index:2;display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;
}
.trust span{
  font-size:11px;color:rgba(255,255,255,.82);background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);border-radius:20px;padding:4px 10px;
}
.trust span::before{content:"✓ ";color:#7ee2a8;font-weight:700}
