/* ==========================================================================
   orders.css — 订单页专用样式
   顶部用户状态条 + 5 个 tab filter + 订单卡片 + 详情弹层
   ========================================================================== */

.orders-main { padding-bottom: 100px; }

/* ---------- 顶部用户状态条 ---------- */
.od-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), #FF8A65);
  color: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.od-avatar {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.od-account-info {
  flex: 1;
  min-width: 0;
  color: #fff;
}
.od-account-info b {
  font-size: 15px;
  font-weight: 700;
  display: block;
  color: #fff;
}
.od-account-info span {
  font-size: 11px;
  opacity: .85;
  color: #fff;
}
.od-logout {
  font-size: 12px;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.od-logout:active { transform: scale(.94); }

/* ---------- tab filter ---------- */
.od-filter {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.od-filter::-webkit-scrollbar { display: none; }

/* ---------- 订单列表 ---------- */
.od-list { display: flex; flex-direction: column; gap: 12px; }

.od-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
  transition: transform var(--tx-fast);
}
.od-card:active { transform: scale(.99); }

.od-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 8px;
}
.od-no {
  font-size: 11px;
  color: var(--text-light);
  font-family: monospace;
}
.od-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--primary);
  flex-shrink: 0;
}
.od-status.s-pending { background: #FFF3E0; color: #FB8C00; }
.od-status.s-paid { background: #E3F2FD; color: #1976D2; }
.od-status.s-shipped { background: #E8F5E9; color: #43A047; }
.od-status.s-done { background: #F3E5F5; color: #8E24AA; }
.od-status.s-cancel { background: #FFEBEE; color: #E53935; }

.od-goods {
  display: flex;
  gap: 6px;
  padding: 8px 0;
}
.od-goods img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #f5f5f5;
  flex-shrink: 0;
}
.od-goods-info {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}
.od-goods-info b {
  color: var(--text);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}
.od-goods-more {
  font-size: 11px;
  color: var(--text-light);
  flex-shrink: 0;
  align-self: flex-end;
}

.od-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--text-light);
}
.od-foot b {
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
}
.od-time {
  font-size: 11px;
  color: var(--text-muted);
}

.od-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: flex-end;
}
.od-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--tx-fast);
}
.od-btn:active { transform: scale(.94); }
.od-btn.primary {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

/* ---------- 空状态 ---------- */
.od-empty {
  text-align: center;
  padding: 40px 20px;
}
.od-empty-ico {
  font-size: 56px;
  margin-bottom: 12px;
  opacity: .6;
}
.od-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.od-empty-text {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  padding: 0 20px;
}
.od-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 20px;
  border-radius: 19px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- 详情弹层 ---------- */
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.sheet-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-soft);
  color: var(--text-light);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.sheet-body {
  padding: 14px 16px;
}

.od-detail-section {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.7;
}
.od-detail-section:last-child { border-bottom: none; }
.od-detail-section b {
  color: var(--text);
  font-weight: 700;
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.od-detail-goods {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
}
.od-detail-goods img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}
.od-detail-goods-info {
  flex: 1;
  font-size: 12px;
  line-height: 1.5;
}
.od-detail-goods-info b {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}