/* 长岭城际拼车 - 移动端样式 */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
               "Microsoft YaHei", sans-serif;
  background: #f5f6f8;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}

a { color: inherit; text-decoration: none; }
ul, li { list-style: none; }
img { max-width: 100%; display: block; }
input, textarea, select { font-family: inherit; font-size: 14px; outline: none; border: none; }

.container { max-width: 750px; margin: 0 auto; min-height: 100vh; background: #f5f6f8; }

/* ---------- 顶部栏 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: #2d6cd4; color: #fff;
  height: 48px; line-height: 48px; text-align: center;
  font-size: 16px; max-width: 750px; margin: 0 auto;
}
.navbar .back {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
}
.navbar .title { font-weight: 500; }

/* ---------- 搜索卡片 ---------- */
.search-card {
  background: #2d6cd4;
  padding: 0 14px 16px;
  max-width: 750px; margin: 0 auto;
}
.search-card .inner {
  background: #fff; border-radius: 10px; padding: 14px 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}
.route-line {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #f0f2f5;
}
.route-line:last-of-type { border-bottom: 0; }
.route-line .dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
}
.dot.green { background: #28a745; }
.dot.orange { background: #ff6b35; }
.route-line input {
  flex: 1; border: none; font-size: 15px; height: 28px; background: transparent;
}
.route-line input::placeholder { color: #c0c6cf; }

.search-btn {
  width: 100%; height: 42px; margin-top: 12px;
  background: #2d6cd4; color: #fff; border-radius: 21px;
  font-size: 15px; letter-spacing: 2px; border: none;
}
.search-btn:active { background: #2559b0; }

/* ---------- 快捷线路 ---------- */
.quick-routes {
  background: #fff; padding: 12px 0 14px; margin-bottom: 10px;
}
.quick-title { font-size: 13px; color: #6b7280; padding: 0 16px 10px; }
.quick-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 2px;
  scrollbar-width: none;
}
.quick-scroll::-webkit-scrollbar { display: none; }
.quick-item {
  flex: none; padding: 7px 14px; background: #f3f6fb; color: #374151;
  border-radius: 16px; font-size: 13px; white-space: nowrap;
}
.quick-item.active { background: #2d6cd4; color: #fff; }

/* ---------- Tab ---------- */
.tabs {
  display: flex; background: #fff; border-bottom: 1px solid #eef0f3;
  position: sticky; top: 0; z-index: 50;
}
.tabs .tab {
  flex: 1; text-align: center; padding: 12px 0; font-size: 14px;
  color: #6b7280; position: relative;
}
.tabs .tab.active { color: #2d6cd4; font-weight: 500; }
.tabs .tab.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 28px; height: 2px;
  background: #2d6cd4; border-radius: 1px;
}

/* ---------- 车讯卡片 ---------- */
.card-list { padding: 0 12px; }
.card {
  background: #fff; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 12px; line-height: 18px;
}
.badge.car { background: #e8f3ff; color: #2d6cd4; }
.badge.people { background: #fff3e6; color: #d97d1a; }
.badge.top { background: #ffeaea; color: #e13c3c; }
.badge.urgent { background: #fff1e6; color: #ff6b35; }

.card-route { display: flex; align-items: center; margin-bottom: 12px; }
.card-route .from, .card-route .to { font-size: 17px; font-weight: 500; color: #1f2937; }
.card-route .arrow {
  margin: 0 12px; color: #c0c6cf; font-size: 15px; position: relative;
  padding-bottom: 4px;
}
.card-route .arrow::after {
  content: ''; position: absolute; left: -6px; right: -6px; bottom: 0;
  height: 1px; background: #d8dde5;
}

.card-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #6b7280; }
.card-meta span { display: flex; align-items: center; }

.card-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed #eef0f3;
}
.price { color: #e13c3c; font-size: 19px; font-weight: 500; }
.price small { font-size: 12px; font-weight: 400; }
.card-time { font-size: 12px; color: #9ca3af; }

/* ---------- 详情页 ---------- */
.detail-card { background: #fff; padding: 18px 16px; margin-bottom: 10px; }
.detail-route {
  display: flex; align-items: center; justify-content: center;
  padding: 6px 0 18px; border-bottom: 1px solid #f0f2f5; margin-bottom: 16px;
}
.detail-route .place { text-align: center; flex: 1; }
.detail-route .place .name { font-size: 20px; font-weight: 500; }
.detail-route .place .area { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.detail-route .mid { padding: 0 18px; text-align: center; }
.detail-route .mid .arrow { color: #c0c6cf; font-size: 13px; }
.detail-route .mid .dist { font-size: 11px; color: #9ca3af; }

.info-row {
  display: flex; padding: 11px 0; border-bottom: 1px solid #f5f6f8; font-size: 14px;
}
.info-row:last-child { border-bottom: 0; }
.info-row .label { width: 76px; color: #9ca3af; flex: none; }
.info-row .value { flex: 1; color: #374151; word-break: break-all; }
.info-row .value.mask { color: #6b7280; }

.contact-box {
  background: #f8fafd; border-radius: 8px; padding: 14px 16px; margin: 4px 0;
}
.contact-box .name { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.contact-box .phone { font-size: 16px; color: #2d6cd4; letter-spacing: .5px; }

.notice {
  background: #fff8e6; border-left: 3px solid #e6a23c;
  padding: 12px 14px; font-size: 12px; color: #8a6d3b; line-height: 1.8;
  margin: 10px 12px; border-radius: 0 6px 6px 0;
}

/* ---------- 按钮 ---------- */
.btn-block {
  display: block; width: calc(100% - 24px); margin: 14px 12px;
  height: 46px; line-height: 46px; text-align: center;
  background: #2d6cd4; color: #fff; border-radius: 23px; font-size: 16px;
  border: none;
}
.btn-block:active { background: #2559b0; }
.btn-block.orange { background: #ff6b35; }
.btn-block.orange:active { background: #e85a28; }
.btn-block.plain {
  background: #fff; color: #374151; border: 1px solid #d8dde5;
}

/* ---------- 表单 ---------- */
.form-card { background: #fff; margin-bottom: 10px; }
.form-item {
  display: flex; align-items: center; padding: 0 16px;
  border-bottom: 1px solid #f5f6f8; min-height: 50px;
}
.form-item:last-child { border-bottom: 0; }
.form-item .label { width: 88px; color: #6b7280; flex: none; font-size: 14px; }
.form-item input, .form-item textarea, .form-item select {
  flex: 1; border: none; font-size: 14px; padding: 12px 0; background: transparent;
  color: #1f2937; width: 100%;
}
.form-item textarea { resize: none; min-height: 70px; line-height: 1.6; }
.form-item input::placeholder, .form-item textarea::placeholder { color: #c0c6cf; }
.form-item .unit { color: #9ca3af; font-size: 13px; flex: none; padding-left: 6px; }

.segment { display: flex; gap: 8px; flex: 1; }
.segment .seg {
  flex: 1; text-align: center; padding: 7px 0; font-size: 13px;
  background: #f3f6fb; color: #6b7280; border-radius: 6px;
}
.segment .seg.active { background: #2d6cd4; color: #fff; }

/* ---------- 底部 Tab ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  display: flex; background: #fff; border-top: 1px solid #eef0f3;
  max-width: 750px; margin: 0 auto; padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .item {
  flex: 1; text-align: center; padding: 7px 0 6px; color: #9ca3af; font-size: 11px;
}
.tabbar .item .icon { font-size: 21px; line-height: 1; margin-bottom: 3px; }
.tabbar .item.active { color: #2d6cd4; }

/* ---------- 其他 ---------- */
.empty {
  text-align: center; padding: 60px 20px; color: #b0b7c3; font-size: 14px;
}
.empty .icon { font-size: 42px; margin-bottom: 12px; color: #d8dde5; }

.load-more {
  text-align: center; padding: 16px 0 26px; color: #9ca3af; font-size: 13px;
}

.toast {
  position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .78); color: #fff; padding: 12px 20px;
  border-radius: 6px; font-size: 14px; z-index: 999; max-width: 80%;
  text-align: center; line-height: 1.6;
}

.user-header {
  background: linear-gradient(160deg, #2d6cd4, #4a86e8);
  padding: 30px 20px 34px; color: #fff;
}
.user-header .avatar {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .25);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 10px;
}
.user-header .name { font-size: 17px; }
.user-header .sub { font-size: 12px; opacity: .85; margin-top: 3px; }

.wx-login-btn {
  display: block; text-align: center; margin: 12px 16px 0;
  background: #07c160; color: #fff; font-size: 15px; font-weight: 500;
  padding: 12px 0; border-radius: 10px; text-decoration: none;
  box-shadow: 0 4px 12px rgba(7,193,96,.25);
}
.wx-login-btn:active { opacity: .9; }
.menu-item.logout { color: #e54d42; justify-content: center; }
.menu-item.logout .arrow { display: none; }

.menu-list { background: #fff; margin-bottom: 10px; }
.menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px; border-bottom: 1px solid #f5f6f8; font-size: 14px;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item .arrow { color: #c0c6cf; }
.menu-item .val { color: #9ca3af; font-size: 13px; }
