﻿/* ============================================================
   通城快的 新版 UI 设计系统（按 2016 设计稿还原）
   主色 #12a5f1 / 深色顶栏 / 卡片式列表 / 底部弹层选择器
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", Helvetica, Arial, sans-serif;
    background: #ebebeb;
    color: #333;
    font-size: 16px;
}
.cl { clear: both; }
a { text-decoration: none; color: #12a5f1; }
button, input, select { font-family: inherit; outline: none; }

/* ---------- 页面框架 ---------- */
.app {
    max-width: 480px; min-height: 100vh; margin: 0 auto;
    background: #fff; position: relative;
    padding-bottom: 30px;
}

/* ---------- 深色顶栏 ---------- */
.topbar {
    background: #2b2e2c; height: 46px; line-height: 46px;
    color: #fff; font-size: 18px; text-align: center;
    position: relative; user-select: none;
}
.topbar .tb-back {
    position: absolute; left: 0; top: 0; width: 46px; height: 46px;
    color: #fff; font-size: 22px; line-height: 46px; text-align: center;
}
.topbar .tb-back::before { content: "\2715"; font-style: normal; }
.tb-user {
    position: absolute; right: 14px; top: 54px; width: 36px; height: 28px;
    line-height: 28px; border: 1px solid #d9d9d9; border-radius: 4px;
    background: #fff; color: #12a5f1; font-size: 16px; text-align: center; z-index: 5;
}
.tb-sub { position: absolute; right: 14px; top: 0; color: #fff; font-size: 16px; }

/* 预约主界面：无顶栏，小人放左上角（无边框） */
.tb-user-left { left: 14px; right: auto; top: 12px; border: none; background: transparent; }
/* 主界面右上角登录按钮（未登录时显示） */
.tb-login {
    position: absolute; right: 14px; top: 9px;
    color: #12a5f1; font-size: 15px; line-height: 1;
    border: 1px solid #12a5f1; border-radius: 15px;
    padding: 6px 16px; text-decoration: none; z-index: 5;
}

/* 全站统一蓝色顶栏：50px 高 / 19px 标题 / 左侧「返回」/ 右侧图标同位置同尺寸 */
.topbar-blue {
    background: #12a5f1;
    height: 45px; line-height: 45px;
    font-size: 18px; font-weight: 500; letter-spacing: .5px;
}
.topbar-blue .tb-back { height: 45px; line-height: 45px; font-size: 19px; }
/* 文字返回按钮（覆盖 ✕ 图标样式） */
.topbar .tb-back-txt { width: auto; padding: 0 16px; font-size: 17px; }
.topbar .tb-back-txt::before { content: none; }
.tb-user-onbar {
    top: 9px; background: transparent; border-color: rgba(255,255,255,.75);
    color: #fff;
}
/* 顶栏右侧图标（个人中心 / 回主界面）统一位置与尺寸 */
.topbar-blue .tb-user,
.topbar-blue .tb-user-onbar {
    top: 8.5px; right: 12px; width: 28px; height: 28px; line-height: 28px;
    border: none; background: transparent; padding: 0;
}
.topbar-blue .tb-home { right: 12px; top: 11.5px; transform: none; width: 22px; height: 22px; }
/* 顶栏右侧主页图标 */
.tb-home {
    position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; display: block;
}
.tb-home svg { display: block; width: 100%; height: 100%; fill: #fff; }
/* list-bar（flex 布局）内主页图标改为文档流，与返回并排 */
.list-bar .tb-home { position: static; transform: none; }

/* ---------- LOGO ---------- */
.logo-cloud { text-align: center; padding: 34px 0 46px; }
.logo-cloud img { width: 110px; }

/* ---------- 输入框 ---------- */
.fld {
    margin: 0 4%; position: relative; margin-bottom: 18px;
}
.fld input[type=text], .fld input[readonly] {
    width: 100%; height: 46px; line-height: 46px;
    border: 1px solid #d9d9d9; border-radius: 5px;
    padding: 0 12px 0 40px; font-size: 17px; color: #333; background: #fff;
}
/* 填入地址后：边框不变色，文字变蓝 */
.fld input.filled { border-color: #d9d9d9; color: #12a5f1; }
.fld input.filled ~ .ico { stroke: #9a9a9a; }
.fld input:focus { border-color: #2aa7f0; }
.fld .ico {
    position: absolute; left: 12px; top: 12px; width: 20px; height: 20px;
    fill: none; stroke: #9a9a9a; stroke-width: 1.6;
}
/* 始发地：预留定位按钮+提示的空间，防止文字过长重叠；填入后隐藏提示并缩短预留 */
#BeginCity { padding-right: 132px; }
#BeginCity.filled { padding-right: 46px; }
.fld input.filled ~ .loc-tip { display: none; }
.fld .unit {
    position: absolute; right: 12px; top: 0; height: 46px; line-height: 46px;
    color: #b8b8b8; font-size: 16px;
}
.fld .btn-loc {
    position: absolute; right: 8px; top: 8px; width: 30px; height: 30px;
    border-radius: 50%; background: #12a5f1;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 3px rgba(18,165,241,.35);
    cursor: pointer;
}
/* 图标四周扩展 9px 可点区域，避免必须精确点在圆点上 */
.fld .btn-loc::before {
    content: ""; position: absolute; left: -9px; right: -9px; top: -9px; bottom: -9px;
    border-radius: 50%;
}
.fld .btn-loc svg {
    width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.8;
    stroke-linecap: round;
}
.fld .btn-loc:active { background: #0d8fd4; }
.fld .loc-tip {
    position: absolute; right: 44px; top: 0; height: 46px; line-height: 46px;
    padding-left: 10px;
    font-size: 13px; color: #12a5f1; cursor: pointer;
    user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.fld .btn-loc.locating { opacity: .55; pointer-events: none; }
.fld .btn-loc.locating::before { display: none; }

/* ---------- 行内选择行（出发时间） ---------- */
.rowline {
    margin: 0 4%; height: 46px; border-bottom: 1px solid #e5e5e5;
    display: flex; align-items: center; color: #9a9a9a; font-size: 17px;
    position: relative; margin-bottom: 6px; cursor: pointer;
}
.rowline .ico { width: 20px; height: 20px; margin-left: 12px; margin-right: 8px; stroke: #9a9a9a; stroke-width: 1.6; fill: none; }
.rowline .val { color: #333; }
/* 时间行右侧补充信息：愿出总价 + 可接受容差（小字浅色） */
.rowline .t-extra {
    margin-left: auto; font-size: 12.5px; color: #b7bdc4; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 58%;
}
.rowline .arrow { position: absolute; right: 4px; color: #c9c9c9; font-size: 14px; display: none; }

/* ---------- 价格说明 ---------- */
.price-note {
    margin: 4px 4% 0; text-align: right; color: #9a9a9a; font-size: 15px;
}
.price-note a { color: #9a9a9a; }

/* ---------- 主按钮 ---------- */
.btn-main {
    display: block; width: 92%; margin: 26px auto 0;
    height: 48px; line-height: 48px; text-align: center;
    background: #12a5f1; color: #fff; font-size: 19px;
    border: none; border-radius: 5px; cursor: pointer;
}
.btn-main:active { background: #0d92da; }
.btn-main[disabled] { background: #b8dcf1; }
.btn-pill {
    display: inline-block; padding: 4px 14px; height: 30px; line-height: 22px;
    border: 1px solid #2aa7f0; color: #12a5f1; background: #fff;
    border-radius: 4px; font-size: 15px; cursor: pointer;
}
.btn-pill:active, .btn-pill.on { background: #12a5f1; color: #fff; }

/* ---------- 底部大图 ---------- */
.bottom-road { text-align: center; padding-top: 14px; }
.bottom-road img { width: 100%; display: block; }

/* 主界面：底部公路图对齐页面底部 */
.app.page-home { display: flex; flex-direction: column; padding-bottom: 0; padding-top: 64px; }
.app.page-home .bottom-road { margin-top: auto; }

/* ============================================================
   底部弹层（时间/地点选择器）
   ============================================================ */
.sheet-mask {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 100; display: none;
}
.sheet-mask.show { display: block; }
.sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 101;
    max-width: 480px; margin: 0 auto; background: #fff;
    transform: translateY(100%); transition: transform .25s ease;
    border-top: 1px solid #e8ebef;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .08);
    /* 内容超出屏幕时整体可上下滑动 */
    max-height: 80vh; overflow-y: auto; scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
.sheet.show { transform: translateY(0); }
.sheet .sh-top {
    height: 44px; display: flex; align-items: center; padding: 0 5%;
    border-bottom: 1px solid #f0f0f0; font-size: 17px;
}
.sheet .sh-cancel { flex: 1; text-align: center; color: #12a5f1; cursor: pointer; }
.sheet .sh-ok { flex: 1; text-align: center; color: #12a5f1; font-weight: bold; cursor: pointer; }
.sheet .sh-cols {
    display: flex; border-bottom: 1px solid #e5e5e5; background: #fafafa;
}
.sheet .sh-col { flex: 1; height: 158px; overflow-y: auto; padding: 4px 0; scrollbar-width: none; }
.sheet .sh-col::-webkit-scrollbar { display: none; }
/* 日期列文字较长，放宽一档 */
.sheet .sh-col.c-day { flex: 1.25; }
.sheet .sh-col .opt {
    text-align: center; line-height: 38px; font-size: 15px; color: #b0b0b0; cursor: pointer;
}
.sheet .sh-col .opt.sel { color: #12a5f1; font-size: 17px; font-weight: bold; }
.sheet .sh-extra { padding: 18px 4% 14px; font-size: 15px; color: #333; }
.sheet .sh-extra .sh-lb {
    display: block; width: auto; text-align: left;
    margin-bottom: 8px; font-size: 13px; color: #9aa0a6;
}
.sheet .sh-extra .chip-row { display: flex; gap: 8px; margin-left: 0; }
/* 时间弹层内的时间容差按钮：等分排列，适度加大点击区 */
.sheet .sh-extra .chip-row .chip {
    flex: 1 1 0; text-align: center; margin: 0;
    padding: 8px 2px; font-size: 13px; line-height: 17px;
    border-radius: 18px; border-color: rgba(18, 165, 241, .42); background: #fff;
}
.sheet .sh-extra .chip-row .chip:active { background: #eaf7ff; }
.sheet .sh-extra .chip-row .chip.sel { background: #12a5f1; color: #fff; border-color: #12a5f1; }
/* 乘客「愿出总价」输入框（时间弹窗内） */
.sheet .sh-extra .fee-input { display: inline-block; vertical-align: middle; margin-left: 6px; }
.sheet .sh-extra .fee-input input {
    width: 84px; height: 34px; line-height: 34px; text-align: center;
    border: 1px solid #e2e6ea; border-radius: 6px; background: #fff;
    font-size: 16px; color: #12a5f1; font-weight: bold; font-family: inherit;
}
.sheet .sh-extra .fee-input input:focus { border-color: #12a5f1; }
.chip {
    display: inline-block; padding: 2px 9px; margin: 0 3px 5px;
    border: 1px solid #2aa7f0; color: #12a5f1; border-radius: 3px; cursor: pointer;
    font-size: 13px;
}
.chip.sel { background: #12a5f1; color: #fff; }
.sheet .sh-price {
    padding: 6px 4% 14px; text-align: right; color: #333; font-size: 15px;
}
.sheet .sh-price b { color: #12a5f1; font-size: 18px; font-weight: normal; }
/* 旧版底部按钮已移至顶部（sh-top） */

/* 地点选择（全屏：左列城市 + 右侧区县宫格，仿设计稿 03） */
.area-mask {
    position: fixed; inset: 0; background: rgba(0,0,0,.2);
    z-index: 150; display: none;
}
.area-mask.show { display: block; }
.area-panel {
    position: fixed; inset: 0; z-index: 151; margin: 0 auto;
    max-width: 480px; background: #fff; display: none;
    flex-direction: column;
}
.area-panel.show { display: flex; }
/* 白底操作行：选择城市 | 取消 | 确定 */
.area-head {
    background: #fff; color: #333; height: 52px; flex-shrink: 0;
    display: flex; align-items: center; padding: 0 5%;
    border-bottom: 1px solid #f0f0f0; font-size: 18px;
}
.area-head .ah-t { flex: 1.6; }
.area-head .ah-cancel { flex: 1; text-align: center; cursor: pointer; color: #12a5f1; }
.area-head .ah-ok { flex: 1; text-align: center; cursor: pointer; color: #12a5f1; }
.area-body { flex: 1; display: flex; overflow: hidden; }
.area-city {
    width: 27%; background: #f2f2f2; overflow-y: auto; scrollbar-width: none;
}
.area-city::-webkit-scrollbar { display: none; }
.area-city .c {
    text-align: center; line-height: 80px; font-size: 18px; color: #333;
    border-bottom: 1px solid #e8e8e8; cursor: pointer;
}
.area-city .c.sel { color: #12a5f1; background: #fff; }
.area-right {
    flex: 1; overflow: hidden auto; padding: 22px 6% 20px;
}
.area-district {
    display: grid;
    grid-template-columns: repeat(3, 1fr); row-gap: 30px; column-gap: 4px;
    align-content: start;
}
.area-district .d {
    text-align: center; font-size: 17px; color: #666; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.area-district .d.sel { color: #12a5f1; }
/* 「XX市(不限区域)」放在首行，与其它选项同宫格排版，允许换行完整显示 */
.area-district .d-all { white-space: normal; line-height: 1.4; word-break: break-all; }
.area-detail { margin: 34px 0 0; position: relative; }
/* 搜索框：轻量下划线式（不做全框），蓝色放大镜 + 输入文字蓝色即可辨识 */
.area-detail input {
    width: 100%; height: 40px; border: none; border-bottom: 1px solid #e0e0e0;
    background: transparent; font-size: 15.5px; color: #0f7fd1;
    padding: 0 34px 0 30px; box-sizing: border-box;
    transition: border-color .18s;
    -webkit-appearance: none; appearance: none;
}
.area-detail input:focus {
    outline: none; border-bottom-color: #12a5f1;
}
.area-detail input::placeholder { color: #a7b3bd; font-size: 14.5px; }
/* 已输入内容时右侧的清空按钮 */
.area-detail .ad-clr {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; border-radius: 50%; background: #d6dee5;
    color: #fff; font-size: 12px; line-height: 20px; text-align: center;
    cursor: pointer; display: none;
}
.area-detail .ad-clr.on { display: block; }
/* 放大镜图标 */
.area-detail .ad-ico {
    position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
    width: 17px; height: 17px; fill: none; stroke: #12a5f1; stroke-width: 2;
    stroke-linecap: round; pointer-events: none;
}

/* 底部输入框内置地点搜索：搜索时结果列表顶替区县宫格 */
.area-right.ar-search { display: flex; flex-direction: column; overflow: hidden; }
.area-right.ar-search .area-district { display: none; }
.pl-sug { display: none; flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0 -6%; }
.area-right.ar-search .pl-sug { display: block; }
.area-right.ar-search .area-detail {
    margin-top: 10px; padding-top: 10px; flex: 0 0 auto;
    /* 与列表之间做一道渐隐分隔，提示「下面是输入区」 */
    border-top: 1px solid #eef2f5;
    box-shadow: 0 -8px 14px -10px rgba(0,0,0,.18);
}
.pl-sug .pl-it { padding-left: 6%; padding-right: 6%; }
.pl-sug .pl-hint { margin: 0; }

/* 紧凑模式（司机发布弹窗内）：底部弹起、高度收窄 */
.area-panel.area-compact {
    top: auto; height: 56%;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -6px 20px rgba(0,0,0,.15);
}
.area-compact .area-head { height: 44px; font-size: 16px; }
.area-compact .area-city .c { line-height: 52px; font-size: 15px; }
.area-compact .area-right { padding: 14px 6% 14px; }
.area-compact .area-district { row-gap: 18px; }
.area-compact .area-district .d { font-size: 15px; }
.area-compact .area-detail { margin: 14px 0 0; }
.area-compact .area-detail input { height: 36px; font-size: 15px; padding: 0 30px 0 28px; }
.area-compact .area-detail .ad-ico { left: 2px; width: 15px; height: 15px; }
.area-compact .area-detail .ad-clr { right: 8px; width: 18px; height: 18px; line-height: 18px; }
.sheet .sh-city-search {
    padding: 10px 4%; border-bottom: 1px solid #eee;
}
.sheet .sh-city-search input {
    width: 100%; height: 36px; border: 1px solid #d9d9d9; border-radius: 4px;
    padding: 0 10px; font-size: 15px;
}

/* ============================================================
   乘客等待页（5S 倒计时）
   ============================================================ */
.wait-car { text-align: center; padding-top: 60px; }
.wait-car img, .wait-car svg { width: 210px; }
.wait-tip { text-align: center; color: #9a9a9a; font-size: 17px; margin-top: 8px; }
/* 等待页倒计时 */
.wait-count { text-align: center; color: #12a5f1; font-size: 44px; font-weight: bold; margin-top: 14px; letter-spacing: 2px; }
.wait-line { border-top: 1px dotted #ccc; margin: 26px 6% 0; }
.wait-count {
    text-align: center; color: #12a5f1; font-size: 64px; font-weight: bold;
    padding: 30px 0 10px; letter-spacing: 2px;
}
.wait-cancel {
    display: block; width: 40%; margin: 50px auto 0; height: 44px; line-height: 44px;
    background: #12a5f1; color: #fff; text-align: center; font-size: 17px;
    border: none; border-radius: 5px; cursor: pointer;
}
.wait-car svg .wheel { animation: spin 1s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.wait-car { animation: bump 1.6s ease-in-out infinite; }
@keyframes bump {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ============================================================
   预约成功结果页（为您预约到）
   ============================================================ */
.res-title {
    margin: 40px 4% 0; font-size: 18px; color: #22313f;
    border-left: 5px solid #12a5f1; padding-left: 10px;
}
.res-rows { margin: 0 4%; }
.res-row {
    display: flex; align-items: center; min-height: 58px;
    border-bottom: 1px solid #eee; font-size: 17px;
}
.res-row .lbl { width: 110px; color: #22313f; }
.res-row .val { flex: 1; color: #12a5f1; font-size: 18px; }
.res-row .tel {
    display: inline-block; color: #12a5f1; font-size: 28px;
    line-height: 1; text-decoration: none; background: none;
    margin-right: 16px;
}
.res-safe {
    margin: 30px 4% 0; color: #e63030; font-size: 16px; line-height: 28px;
}
.res-share {
    display: block; width: 92%; margin: 30px auto 0; height: 46px; line-height: 46px;
    background: #12a5f1; color: #fff; text-align: center; font-size: 19px;
    border: none; border-radius: 5px; cursor: pointer;
}
.res-cancel {
    display: block; width: 40%; margin: 24px auto 0; height: 40px; line-height: 40px;
    background: #fff; color: #9a9a9a; text-align: center; font-size: 15px;
    border: 1px solid #d9d9d9; border-radius: 5px; cursor: pointer;
}

/* ============================================================
   我的行程（乘客）
   ============================================================ */
.list-bar {
    background: #12a5f1; color: #fff; padding: 10px 4%;
    font-size: 18px; display: flex; justify-content: space-between; align-items: center;
    position: relative;
}
/* 标题绝对居中，「返回」仍靠右 */
.list-bar > span { position: absolute; left: 50%; transform: translateX(-50%); }
.list-bar a { color: #fff; font-size: 16px; }
.trip-card {
    background: #fff; margin: 0 0 12px; padding: 18px 4% 20px;
    border-bottom: 1px solid #e5e5e5; position: relative; cursor: pointer;
}
.trip-card .t-time { font-size: 18px; color: #333; font-weight: bold; }
.trip-card .t-route { font-size: 16px; color: #333; margin-top: 4px; }
.trip-card .t-num { font-size: 16px; color: #333; margin-top: 4px; }
.trip-card .t-state { font-size: 16px; color: #333; margin-top: 10px; }
.trip-card .t-cancel { position: absolute; right: 4%; top: 16px; }
/* 行程卡片小胶囊按钮（取消行程/转发至） */
.pill-sm {
    display: inline-block; border: 1px solid #2aa7f0; color: #12a5f1;
    background: #fff; border-radius: 15px; font-size: 14px;
    padding: 2px 12px; line-height: 18px; cursor: pointer;
}
.pill-sm:active { background: #12a5f1; color: #fff; }
.trip-card + .trip-card { border-top: 1px solid #f0f0f0; }

/* 「我的行程」页：整页浅灰底，白色卡片之间用灰色区域分隔（与司机发布页一致） */
.app.app-mytrip { background: #f2f3f5; padding-bottom: 8px; }
.app-mytrip .trip-card { margin: 0; border-bottom: none; }
.app-mytrip .topbar + .trip-card { margin-top: 8px; }
.app-mytrip .trip-card + .trip-card { margin-top: 8px; border-top: none; }
.app-mytrip .empty { background: #fff; margin: 8px 0 0; padding: 46px 0; }

/* ============================================================
   司机端
   ============================================================ */
/* 页签导航：白底浅色页签，选中蓝字+蓝色下划线（与细蓝顶栏分离，不放大蓝色面积） */
.drv-tabs {
    display: flex; flex-wrap: nowrap; background: #fff; padding: 0;
    border-bottom: 1px solid #ececec;
}
.drv-tabs .tab {
    flex: 1; text-align: center; height: 42px; line-height: 42px;
    color: #666; font-size: 15px; cursor: pointer;
    white-space: nowrap; position: relative;
}
.drv-tabs .tab.on { color: #12a5f1; font-weight: bold; }
.drv-tabs .tab.on::after {
    content: ""; position: absolute; left: 50%; transform: translateX(-50%);
    bottom: 0; width: 34px; height: 3px; border-radius: 2px; background: #12a5f1;
}

/* 发布行程折叠弹窗内容 */
.pub-sheet { padding: 6px 4% 10px; }
.drv-hint {
    background: #ececec; color: #8a8a8a; text-align: center;
    padding: 24px 0; font-size: 16px; margin-top: 6px;
}

/* 发布优先抢单：UI 分块
   区块1 已发布行程卡片（vacList）
   区块2 灰色发布区（提示文字 + 发布行程按钮同处一个区域）
   区块3 接单信息（独立分块，带标题） */
.pub-zone {
    background: #fff;
    padding: 16px 4% 18px;
    margin-bottom: 0;
}
.pub-zone .drv-hint {
    background: none; padding: 4px 0 14px; margin: 0; color: #8a8a8a;
}
.pub-zone .btn-main { width: 100%; margin: 0; }

/* 分块之间的灰色分隔条（与订单卡片灰条风格一致） */
.sec-gap { height: 8px; background: #ececec; margin: 12px 0; }

/* 区块标题（蓝色小竖条 + 文字） */
.sec-title {
    display: flex; align-items: center;
    margin: 2px 4% 10px;
    font-size: 17px; color: #333; font-weight: bold;
}
.sec-title::before {
    content: ""; display: inline-block;
    width: 4px; height: 16px;
    background: #12a5f1; border-radius: 2px;
    margin-right: 8px;
}

/* 我的订单/顺路乘客：内容超出屏幕时在固定区域内上下滑动，隐藏滚动条保持美观 */
#tab-my, #tab-sl {
    max-height: calc(100vh - 140px);
    overflow-y: auto; scrollbar-width: none;
    padding-bottom: 20px;
}
#tab-my::-webkit-scrollbar, #tab-sl::-webkit-scrollbar { display: none; }

/* 订单卡片 */
.od-card { background: #fff; border-bottom: 8px solid #ececec; padding: 12px 4% 0; }
.od-head {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 8px;
}
.od-head .t { font-size: 17px; color: #333; }
.od-head .act { color: #12a5f1; font-size: 16px; display: flex; gap: 12px; }
.od-head .act a { cursor: pointer; }
.od-body { display: flex; border-top: 1px solid #f0f0f0; padding: 10px 0; }
.od-ava { width: 52px; text-align: center; margin-right: 12px; }
.od-ava img { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; background: #eee; }
.od-ava .nm { font-size: 13px; color: #555; margin-top: 3px; }
.od-mid { flex: 1; position: relative; }
.od-route { font-size: 16px; color: #333; line-height: 30px; }
.od-route .to { color: #666; margin: 0 6px; font-size: 15px; }
.od-sub { font-size: 15px; color: #666; margin-top: 2px; }
.od-right {
    display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between;
}
.od-right .phone { color: #12a5f1; font-size: 17px; margin-top: auto; }
.od-foot {
    display: flex; justify-content: space-between; border-top: 1px solid #eee;
    padding: 10px 0; color: #555; font-size: 15px; margin: 0 -4%;
    padding-left: 4%; padding-right: 4%;
}
.od-btn-accept {
    border: 1px solid #2aa7f0; color: #12a5f1; background: #fff;
    border-radius: 4px; padding: 3px 16px; font-size: 16px; cursor: pointer;
}
.od-btn-accept:active { background: #12a5f1; color: #fff; }
.od-status { color: #12a5f1; font-size: 16px; }
/* 可接受时间容差：顺路乘客与匹配订单统一表达（灰色小字「接受XX」） */
.ext-accept { font-size: 13.5px; color: #999999; font-weight: normal; margin-left: 6px; }
/* 顺路乘客卡片：人数（原电话位）／包车提示 */
.od-sub .od-num { font-size: 15px; color: #333333; }
.od-sub .od-bc { font-size: 13.5px; color: #999999; margin-left: 8px; }
/* 底部仅剩价格时右对齐 */
.od-foot span:only-child { margin-left: auto; }
/* 顺路乘客卡片（.od-sl）：地点／至／地点 三行；人数与愿出总价合并成一行靠左（头像正下方） */
.od-sl .od-body { align-items: flex-start; }
.od-sl .od-route { line-height: 24px; }
.od-sl .od-route-to { font-size: 13px; color: #999999; line-height: 19px; }
.od-sl .od-foot { align-items: center; justify-content: flex-end; }
.od-sl .od-foot .od-num { font-size: 15px; color: #333333; }
.od-sl .od-foot span:only-child { margin-left: 0; }
/* 状态前的最近操作日期时间（小字号） */
.od-optime { font-size: 13px; color: #999999; margin-right: 6px; }

/* 我的空位卡片（司机） */
.vac-card {
    background: #fff; border-bottom: 8px solid #ececec; padding: 14px 4%;
}
.vac-card .v-time { font-size: 17px; color: #333; }
.vac-card .v-route { font-size: 16px; color: #333; margin-top: 6px; }
.vac-card .v-acts { margin-top: 8px; text-align: right; font-size: 15px; }
.vac-card .v-acts a { margin-left: 16px; cursor: pointer; }

/* 顺路查询栏 */
.sl-search {
    display: flex; background: #f5f5f5; border-bottom: 1px solid #e0e0e0;
    align-items: center; padding: 0; height: 36px;
}
.sl-search input {
    flex: 1 1 80px; min-width: 0; border: none; background: transparent; height: 36px;
    text-align: center; color: #9a9a9a; font-size: 14px;
    border-right: 1px solid #e0e0e0;
}
.sl-search select {
    flex: 1 1 60px; min-width: 0; border: none; background: transparent; height: 36px;
    text-align: center; color: #9a9a9a; font-size: 14px;
}
/* 原生下拉文字居中（部分浏览器需 text-align-last 才生效，避免向左偏移） */
.sl-search select { text-align: center; text-align-last: center; padding: 0; }
/* 清空：右侧单按钮（始发地/目的地/日期选中后即自动查询，无需查询按钮） */
.sl-search .go { flex: 0 0 60px; color: #12a5f1; text-align: center; font-size: 14px; cursor: pointer; }
.sl-search .go.clear { color: #12a5f1; }
/* 始发地/目的地编辑中：蓝色高亮标记当前选框 */
.sl-search input.active {
    color: #12a5f1; font-weight: bold; background: #e8f6ff;
    box-shadow: inset 0 -3px 0 #12a5f1;
}
/* 日期选框：编辑中同样蓝色高亮 */
.sl-search select:focus {
    color: #12a5f1; font-weight: bold; background: #e8f6ff;
    box-shadow: inset 0 -3px 0 #12a5f1; outline: none;
}
.sl-search select.picked { color: #12a5f1; }

/* 顺路乘客搜索：城市级下拉选择（一行 3 个城市名，紧凑排版） */
.city-pop { display: none; position: absolute; left: 0; right: 0; top: 37px; background: #fff; z-index: 30; box-shadow: 0 6px 12px rgba(0,0,0,.08); }
.city-pop.show { display: block; }
.city-pop .cp-g { display: grid; grid-template-columns: repeat(3, 1fr); }
.city-pop .cp { padding: 11px 0; text-align: center; font-size: 14px; color: #333; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
/* 选中状态：蓝色背景白字标记 */
.city-pop .cp.sel { color: #fff; background: #12a5f1; font-weight: bold; }

/* ---------- 空态 ---------- */
.empty {
    text-align: center; color: #9a9a9a; font-size: 15px; padding: 30px 0;
}

/* ============================================================
   App 风格弹窗（iOS Alert 样式：圆角卡片 + 底部动作条 + 动效，无 X）
   ============================================================ */
@keyframes dlgFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dlgFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes dlgPopIn {
    from { opacity: 0; transform: translate(-50%,-50%) scale(.88); }
    to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.dlg-mask { position: fixed; inset: 0; background: rgba(15,23,32,.45); z-index: 200; display: none; }
.dlg-mask.show { display: block; animation: dlgFadeIn .2s ease both; }
.dlg-mask.out { display: block; animation: dlgFadeOut .2s ease both; }
.dlg {
    position: fixed; z-index: 201; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: 82%; max-width: 330px; background: #fff; border-radius: 16px; overflow: hidden;
    text-align: center; display: none; box-shadow: 0 18px 44px rgba(9,30,48,.22);
}
.dlg.show { display: block; animation: dlgPopIn .26s cubic-bezier(.34,1.3,.5,1) both; }
.dlg.out { display: block; animation: dlgFadeOut .2s ease both; }
.dlg .dlg-txt { color: #333; font-size: 16.5px; line-height: 1.65; padding: 26px 22px 24px; }
/* 底部动作条：单按钮通栏居中 / 双按钮各占一半，中间细分隔线 */
.dlg .dlg-act { display: flex; border-top: .5px solid #ececec; }
.dlg .dlg-act.one a { flex: 1; }
.dlg .dlg-act.two a { flex: 1; }
.dlg .dlg-act.two a + a { border-left: .5px solid #ececec; }
.dlg .dlg-act a { display: block; height: 48px; line-height: 48px; font-size: 16.5px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.dlg .dlg-act a:active { background: #f5f6f8; }
.dlg .dlg-act .d-ok { color: #12a5f1; font-weight: 600; }
.dlg .dlg-act .d-cancel, .dlg .dlg-act .d-close { color: #7a828a; }

/* ===== 转发至弹窗（乘客接单结果页 / 司机空位卡片共用） =====
   结构：标题区 + 卡片预览 + 三个图标按钮 + 底部取消 */
.dlg .shr-head { padding: 22px 24px 0; }
.dlg .shr-title { font-size: 17px; font-weight: 600; color: #1c2b36; letter-spacing: .5px; }
.dlg .shr-sub { margin-top: 7px; font-size: 12.5px; line-height: 1.5; color: #9aa4ae; }

/* 卡片图片：白卡描边 + 柔和投影，底部一句轻提示 */
.dlg .shr-card { padding: 14px 0 0; }
.dlg .shr-img {
    display: block; width: 60%; max-width: 208px; margin: 0 auto;
    border-radius: 12px; border: 1px solid #e9f0f6;
    box-shadow: 0 8px 20px rgba(16,54,88,.16);
}
.dlg .shr-save { margin-top: 9px; font-size: 11.5px; color: #b3bcc4; }

/* 三个分享项：图标方块 + 文字，等分 */
.dlg .shr-row { display: flex; padding: 16px 6px 20px; }
.dlg .shr-btn {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center;
    text-decoration: none; cursor: pointer; padding: 0;
    -webkit-tap-highlight-color: transparent; user-select: none;
}
.dlg .shr-ico {
    width: 46px; height: 46px; border-radius: 15px; background: #fff;
    border: 1px solid #e8eff5;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(16,54,88,.13);
    transition: transform .12s ease;
}
.dlg .shr-btn:active .shr-ico { transform: scale(.92); }
.dlg .shr-ico svg { width: 27px; height: 27px; display: block; }
.dlg .shr-lb { margin-top: 8px; font-size: 12px; color: #5b6670; letter-spacing: .2px; }

/* toast（深色胶囊，淡入动效） */
#toast {
    position: fixed; z-index: 300; left: 50%; bottom: 18%;
    transform: translateX(-50%); background: rgba(17,24,32,.85); color: #fff;
    padding: 12px 22px; border-radius: 12px; font-size: 15px;
    display: none; max-width: 80%; text-align: center;
}
#toast { animation: dlgFadeIn .25s ease both; }

/* ============================================================
   司机发布页（.drv-pub）版式
   整宽白底 + 灰色背景条分块；卡片不加左右边框，仅用细分隔线
   ============================================================ */
.drv-pub { background: #fff; }
/* 顶栏统一由 .topbar-blue 提供，司机页不再单独覆盖 */

/* 页签 */
.drv-pub .drv-tabs { padding-top: 2px; }
.drv-pub .drv-tabs .tab { height: 48px; line-height: 48px; font-size: 16px; }
.drv-pub .drv-tabs .tab.on::after { width: 40px; }

/* 分块：整宽灰色背景条 */
.drv-pub .sec-gap { height: 10px; background: #f2f3f5; margin: 0; }

/* 区块标题 */
.drv-pub .sec-title { font-size: 18px; margin: 0; padding: 18px 4% 8px; }
.drv-pub .sec-title::before { height: 18px; }
.drv-pub .sec-note { margin: 0; padding: 0 4% 10px; font-size: 13px; color: #9aa0a6; }

/* 行程卡片：通栏白底，卡片之间用较粗的灰色线条分隔（板块之间仍用灰条），无左右边框/圆角 */
.drv-pub .trip-card {
    background: #fff; border: none; border-radius: 0;
    margin: 0; padding: 18px 4% 16px;
}
/* 列表上下也加线条：单条行程时与上下文同样分隔（板块之间仍用灰条） */
.drv-pub #vacList:not(:empty), .drv-pub #qd:not(:empty) {
    border-top: 2px solid #e6e9ee;
    border-bottom: 2px solid #e6e9ee;
}
.drv-pub .trip-card + .trip-card { border-top: 2px solid #e6e9ee; }
/* 字号按层级排列：时间 > 线路 > 人数/乘客 > 状态 */
.drv-pub .trip-card .t-time { font-size: 18px; }
.drv-pub .trip-card .t-route { font-size: 16px; margin-top: 7px; }
.drv-pub .trip-card .t-num { font-size: 15px; margin-top: 5px; }
/* 乘客信息独立成行（另起一行，避免与状态/按钮挤在手机上） */
.drv-pub .trip-card .t-psg { margin-top: 6px; font-size: 15px; color: #666; }
.drv-pub .trip-card .t-psg .tel { color: #12a5f1; margin-left: 6px; }
.drv-pub .trip-card .t-state {
    display: flex; align-items: center; position: relative;
    margin-top: 9px; padding-top: 9px; line-height: 1.2;
    border-top: 1px solid #f4f5f7; font-size: 14px; color: #666;
}
.drv-pub .trip-card .t-ctime { float: right; font-size: 12.5px; color: #9aa0a6; font-weight: normal; }
.drv-pub .trip-card .t-state .btn-quick,
.drv-pub .trip-card .t-state .btn-share { margin-left: auto; }
.drv-pub .trip-card .t-state .tel { color: #12a5f1; margin-left: 6px; }
.drv-pub .trip-card .t-cancel { top: 18px; right: 4%; }

/* 已接单标记 / 接单按钮 */
.drv-pub .pill-sm.solid { background: #12a5f1; color: #fff; border-color: #12a5f1; margin-right: 8px; }
.drv-pub .btn-quick {
    margin-left: auto; padding: 5px 18px; border-radius: 15px;
    background: #12a5f1; color: #fff; font-size: 14px; line-height: 18px;
    box-shadow: 0 2px 6px rgba(18, 165, 241, .28); cursor: pointer;
}
.drv-pub .btn-quick:active { background: #0d92da; }

/* 发布区：白底通栏，无边框 */
.drv-pub .pub-zone { background: #fff; border: none; border-radius: 0; margin: 0; padding: 26px 4% 20px; }
.drv-pub .pub-zone .drv-hint { padding: 0 0 24px; font-size: 15px; }
.drv-pub .pub-zone .btn-main { width: 100%; margin: 0; height: 46px; line-height: 46px; font-size: 18px; border-radius: 10px; }

/* 接单信息空态：白底通栏，无边框 */

/* 发布行程弹窗：统一卡片式字段，间距重新配比 */
.pub-sheet { padding: 18px 4% 26px; }
.pub-sheet .fld { margin: 0 0 14px; }
.pub-sheet .fld input[type=text], .pub-sheet .fld input[readonly] {
    height: 52px; line-height: 52px; border-radius: 10px;
    border-color: #e3e8ee; background: #fbfcfe; font-size: 16px;
}
.pub-sheet .fld input.filled { color: #12a5f1; border-color: #bfe3f7; background: #f5fbff; }
.pub-sheet .fld .ico { top: 16px; }

/* 出发时间：与城市输入框同款卡片，视觉三行对齐 */
.pub-sheet .pub-fld {
    height: 52px; box-sizing: border-box; position: relative;
    display: flex; align-items: center;
    padding: 0 14px 0 40px; cursor: pointer;
    border: 1px solid #e3e8ee; border-radius: 10px; background: #fbfcfe;
}
.pub-sheet .pub-fld .ico { top: 50%; transform: translateY(-50%); }
.pub-sheet .pub-fld .pub-time { flex: 1; font-size: 16px; color: #9a9a9a; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pub-sheet .pub-fld .arr { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: #b9c2cb; stroke-width: 2; stroke-linecap: round; }
.pub-sheet .pub-fld.filled { border-color: #bfe3f7; background: #f5fbff; }
.pub-sheet .pub-fld.filled .pub-time { color: #12a5f1; font-weight: 500; }
.pub-sheet .pub-fld:active { background: #f0f6fa; }

/* 发布行程弹窗顶栏：灰底、居中标题，取消/发布分列两侧 */
.sheet .sh-top.sh-top-pub {
    height: 54px; padding: 0 5%; position: relative;
    background: #f4f5f7; border-bottom: 1px solid #eceef1;
    display: flex; align-items: center; justify-content: space-between;
}
.sheet .sh-top-pub .sh-t {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    font-size: 17px; font-weight: 600; color: #333; pointer-events: none;
}
.sheet .sh-top-pub .sh-cancel,
.sheet .sh-top-pub .sh-ok {
    flex: 0 0 auto; color: #12a5f1; font-size: 18px; font-weight: normal;
}
.sheet .sh-top-pub .sh-ok { font-weight: bold; }
.sheet .sh-top-pub .sh-cancel:active,
.sheet .sh-top-pub .sh-ok:active { opacity: .6; }

/* 司机端时间选择弹窗：弹性填充，高度由司机发布页按发布弹窗等高设定（不影响乘客端） */
.sheet.drv-time { display: flex; flex-direction: column; }
.sheet.drv-time .sh-cols { flex: 1; min-height: 0; }
.sheet.drv-time .sh-col { height: auto; }
.sheet.drv-time .sh-col .opt { line-height: 42px; }
.sheet.drv-time .sh-extra { padding: 20px 4% 14px; flex: 0 0 auto; }

/* ---------- 发布记录页（司机个人中心 → 发布记录） ---------- */
.hist-note { padding: 14px 4% 10px; font-size: 13px; color: #9aa0a6; background: #fff; }
.hist-list:not(:empty) { border-top: 2px solid #e6e9ee; }
.drv-pub .trip-card .hist-st {
    position: absolute; right: 4%; top: 18px;
    font-size: 13px; line-height: 18px; padding: 2px 10px; border-radius: 11px; font-weight: normal;
}
.hist-st.on { color: #12a5f1; background: #e9f6fe; }
.hist-st.over, .hist-st.cancel { color: #8b9096; background: #f2f3f5; }
.drv-pub .trip-card .t-state.hist-sub {
    margin-top: 8px; padding-top: 0; border-top: none;
    font-size: 13px; color: #9aa0a6; line-height: 1.3;
}

/* ---------- 地点搜索面板（始发地/目的地精确到街道） ---------- */
.area-panel.pl-panel { background: #f5f6f7; }
.pl-head {
    height: 52px; flex-shrink: 0; background: #fff;
    display: flex; align-items: center; padding: 0 5%;
    border-bottom: 1px solid #f0f0f0; font-size: 17px; color: #222;
}
.pl-head .pl-title { flex: 1; font-weight: 500; }
.pl-head .pl-cancel { color: #12a5f1; font-size: 15px; cursor: pointer; padding: 6px 0 6px 12px; }
.pl-search {
    flex-shrink: 0; background: #fff; padding: 10px 5% 12px; position: relative;
    display: flex; align-items: center; gap: 8px;
}
.pl-search .pl-ico {
    width: 18px; height: 18px; flex-shrink: 0;
    fill: none; stroke: #b3bac1; stroke-width: 1.9; stroke-linecap: round;
}
.pl-search input {
    flex: 1; height: 40px; border: 0; outline: none;
    background: #f2f4f6; border-radius: 10px;
    padding: 0 34px 0 12px; font-size: 15px; color: #222;
    -webkit-appearance: none;
}
.pl-search input::-webkit-search-cancel-button { display: none; }
.pl-search .pl-clear {
    position: absolute; right: 8%; width: 26px; height: 26px;
    display: none; align-items: center; justify-content: center;
    color: #b3bac1; font-size: 13px; cursor: pointer;
}
.pl-list { flex: 1; overflow-y: auto; background: #fff; -webkit-overflow-scrolling: touch; }
.pl-it { padding: 13px 5%; border-bottom: 1px solid #f4f6f8; cursor: pointer; }
.pl-it:active { background: #f2f9fe; }
.pl-it .pl-n { font-size: 15px; color: #222; line-height: 1.35; }
.pl-it .pl-s { font-size: 12.5px; color: #9aa0a6; margin-top: 3px; line-height: 1.4; }
.pl-empty { padding: 46px 5%; text-align: center; color: #9aa0a6; font-size: 13.5px; line-height: 1.9; }
.pl-foot {
    flex-shrink: 0; background: #fff; border-top: 1px solid #f0f0f0;
    padding: 14px 5%; text-align: center;
}
.pl-foot .pl-citypick { color: #12a5f1; font-size: 14px; cursor: pointer; }
.pl-hint {
    padding: 10px 5%; font-size: 12.5px; color: #c07a00;
    background: #fff8e6; line-height: 1.5;
}
