/* ========== 基础全局样式 ========== */
body { font-size: 14px; background: #f8fafc; }
.card { border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.table-responsive { -webkit-overflow-scrolling: touch; }
@media (max-width: 576px) { .container-fluid { padding-left: 10px; padding-right: 10px; } .card-body { padding: 0.75rem; } .table { font-size: 13px; } .btn { padding: 0.375rem 0.5rem; font-size: 0.875rem; } .navbar-brand { font-size: 1rem; } h2 { font-size: 1.4rem; } .modal-dialog { margin: 0.5rem; } }
.btn, .nav-link, .form-select, .form-control { min-height: 44px; }
@media (min-width: 768px) { .btn, .nav-link, .form-select, .form-control { min-height: auto; } }
canvas { max-width: 100%; height: auto !important; }

/* ========== 仅配送员页面隐藏顶部导航 ========== */
.delivery-page nav.navbar { display: none !important; }
.delivery-page main.container-fluid { padding-top: 0 !important; }

/* ========== 订单详情页专用卡片样式 ========== */
.order-detail-container { max-width: 900px; margin: 0 auto; }
.info-card { background: #fff; border-radius: 16px; padding: 20px 16px; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04); border: 1px solid #eef2f6; }
.info-card-title { font-size: 1.1rem; font-weight: 600; color: #1e293b; margin-bottom: 18px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; gap: 8px; }
.info-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.info-row { display: flex; flex-direction: column; gap: 4px; }
.info-label { font-size: 0.8rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.3px; }
.info-value { font-size: 1rem; color: #0f172a; word-break: break-word; line-height: 1.5; }
.info-row-full .info-value { font-size: 1rem; }
@media (min-width: 640px) { .info-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; } .info-row { display: grid; grid-template-columns: 110px 1fr; align-items: start; gap: 8px; } .info-label { font-size: 0.85rem; margin-bottom: 0; } .info-row-full { grid-column: span 2; } }
.followup-list { display: flex; flex-direction: column; gap: 16px; }
.followup-item { padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
.followup-item:last-child { border-bottom: none; padding-bottom: 0; }
.followup-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.followup-author { font-weight: 600; color: #334155; }
.followup-time { font-size: 0.75rem; color: #94a3b8; }
.followup-text { color: #475569; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.empty-state { text-align: center; padding: 30px 20px; color: #94a3b8; background: #f8fafc; border-radius: 12px; }
.action-bar { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ========== 状态徽章颜色辅助 ========== */
.badge.bg-warning { background-color: #f59e0b !important; }
.badge.bg-info { background-color: #0ea5e9 !important; }
.badge.bg-primary { background-color: #3b82f6 !important; }
.badge.bg-danger { background-color: #ef4444 !important; }
.badge.bg-success { background-color: #10b981 !important; }

/* ========== 配送员移动端订单页专用样式 ========== */
.delivery-mobile-header { background-color: #ffffff; padding: 16px; border-bottom: 1px solid #f0f0f0; }
.delivery-mobile-header .search-wrapper { margin-top: 12px; }
.delivery-mobile-header .search-wrapper .search-icon { left: 12px; color: #9ca3af; }
.delivery-mobile-header .search-wrapper input { padding-left: 40px; border-radius: 30px; background-color: #f8fafc; border: 1px solid #e2e8f0; }
.status-tabs-container { margin-bottom: 1rem; }
.status-tabs { display: flex; flex-wrap: nowrap; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.status-tabs::-webkit-scrollbar { display: none; }
.status-filter-btn { flex: 0 0 auto; padding: 0.5rem 1rem; border-radius: 50px; border: none; font-weight: 600; font-size: 0.9rem; white-space: nowrap; background-color: #f1f3f5; color: #6c757d; transition: all 0.2s; }
.status-filter-btn.active { background-color: #0d6efd !important; color: white !important; }
.status-count { margin-left: 4px; display: inline-block; }
.drawer-status-tab { cursor: pointer; transition: all 0.2s; color: #6c757d; }
.drawer-status-tab.active { background-color: #e7f1ff !important; color: #0d6efd; font-weight: 500; }
.drawer-status-tab.active i { display: inline-block !important; }
.offcanvas-bottom { border-radius: 20px 20px 0 0; }
.existing-images img { height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid #dee2e6; }
.image-upload-area { transition: background-color 0.2s; }
.image-upload-area:hover { background-color: #e9ecef; }

/* ========== 底部导航激活状态 ========== */
.bottom-nav .active { color: #0d6efd !important; }
.bottom-nav a { transition: color 0.2s; }
.bottom-nav a:hover { color: #0d6efd !important; }

/* ========== 移动端筛选栏横向滑动 ========== */
.row.flex-nowrap::-webkit-scrollbar { display: none; }
.row.flex-nowrap .col-auto { min-width: 140px; }