/* 电动车回收系统 - 用户端 H5 样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f5f7fa;
  color: #333;
  padding-bottom: 62px;
}
a { text-decoration: none; color: inherit; }
input, select, textarea {
  width: 100%;
  border: 1px solid #e2e5ea;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: #16b84c; }
.btn {
  display: block;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: #16b84c;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn:disabled { opacity: 0.6; }
.btn-plain {
  background: #e8f7ee;
  color: #16b84c;
}

/* 顶部 */
.app-header {
  background: linear-gradient(135deg, #16b84c, #0e9e41);
  color: #fff;
  padding: 24px 18px 30px;
  border-radius: 0 0 20px 20px;
}
.app-header h1 { font-size: 22px; margin-bottom: 6px; }
.app-header p { font-size: 13px; opacity: 0.92; }

/* 卡片 */
.card {
  background: #fff;
  border-radius: 12px;
  margin: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }

/* 首页 */
.banner-box { margin-top: -16px; }
.feature-list { display: flex; justify-content: space-between; }
.feature-item { text-align: center; flex: 1; }
.feature-item .ic { font-size: 26px; display: block; margin-bottom: 6px; }
.feature-item span { font-size: 12px; color: #666; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-item {
  background: #f8faf9;
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
  border: 1px solid #eef1ef;
}
.cat-item .ic { font-size: 30px; display: block; margin-bottom: 6px; }
.cat-item span { font-size: 13px; }

.step-list .step { display: flex; align-items: center; padding: 8px 0; }
.step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: #16b84c; color: #fff; text-align: center;
  line-height: 26px; font-size: 13px; margin-right: 12px; flex-shrink: 0;
}
.step span { font-size: 14px; }

/* 估价 */
.estimate-result {
  background: linear-gradient(135deg, #fff7e6, #fff3d6);
  border: 1px solid #ffd591;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  margin-top: 12px;
}
.estimate-result .price { font-size: 30px; font-weight: 700; color: #fa8c16; }
.estimate-result .range { font-size: 13px; color: #8c6d3f; margin-top: 4px; }

/* 表单 */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }

/* 订单 */
.order-item { margin-bottom: 12px; }
.order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-status {
  font-size: 12px; padding: 3px 10px; border-radius: 20px;
}
.st-0 { background: #fff7e6; color: #fa8c16; }
.st-1 { background: #e6f4ff; color: #1677ff; }
.st-2 { background: #e6fffb; color: #13c2c2; }
.st-3 { background: #f6ffed; color: #52c41a; }
.st-4 { background: #f0f0f0; color: #999; }
.order-row { display: flex; justify-content: space-between; font-size: 13px; color: #666; padding: 3px 0; }
.order-row b { color: #333; }

/* 底部导航 */
.bottom-tab {
  position: fixed; bottom: 0; left: 0; right: 0; height: 58px;
  background: #fff; display: flex;
  border-top: 1px solid #eee; z-index: 100;
}
.tab-item {
  flex: 1; text-align: center; padding-top: 7px; color: #999;
  font-size: 11px; cursor: pointer;
}
.tab-item .ic { font-size: 22px; display: block; }
.tab-item.active { color: #16b84c; }

/* 空状态 */
.empty { text-align: center; padding: 40px 0; color: #bbb; font-size: 14px; }
.empty .ic { font-size: 40px; display: block; margin-bottom: 10px; }

/* 二手电车 */
.used-car-card { cursor: pointer; }
.used-car-img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; display: block; }
.used-car-title { font-size: 15px; font-weight: 600; margin-top: 10px; line-height: 1.4; }
.used-car-price { color: #fa541c; font-size: 20px; font-weight: 700; margin-top: 6px; }
.used-car-price span { font-size: 12px; color: #999; font-weight: 400; }
.used-car-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.used-car-meta .tag-mini {
  background: #f5f7f6; color: #666; font-size: 12px;
  padding: 3px 8px; border-radius: 4px;
}
.used-car-desc { font-size: 13px; color: #666; margin-top: 8px; line-height: 1.6; }
.used-car-contact {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f2f1;
}
.used-car-contact .tel { color: #16b84c; font-weight: 600; font-size: 14px; text-decoration: none; }
.used-car-contact a.tel {
  background: #e8f9ef; color: #16b84c;
  padding: 7px 14px; border-radius: 18px; font-size: 14px;
}
.car-detail-img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; display: block; }
.detail-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.detail-photos img { width: 100%; height: 80px; object-fit: cover; border-radius: 6px; }

/* 照片放大查看 */
.car-detail-img, .detail-photos img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: 94%; max-height: 85%;
  border-radius: 8px; object-fit: contain;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.18); color: #fff;
  font-size: 26px; line-height: 42px; text-align: center;
  cursor: pointer; user-select: none;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.18); color: #fff;
  font-size: 18px; line-height: 40px; text-align: center;
  cursor: pointer; user-select: none;
}
.lightbox-count {
  position: absolute; bottom: 24px; left: 0; right: 0;
  text-align: center; color: #fff; font-size: 14px;
}

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center; z-index: 200;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 14px; padding: 20px;
  width: 86%; max-width: 360px;
}
.modal h3 { font-size: 16px; margin-bottom: 12px; }
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.78); color: #fff; padding: 10px 20px;
  border-radius: 8px; font-size: 14px; z-index: 300; display: none;
}
