/* ==========================================================================
   司机端（安卓 WebView）UI 精修覆盖层
   仅作用于 html[data-client="android"]，不影响 Windows 桌面壳 / Web 端。
   保留橙色品牌标识（司机端辨识色），重点提升：
   1) 信息层级：大操作卡、订单卡、统计条的视觉重量重新分配
   2) 触控体验：点击区更大、间距更松、按压反馈更明确
   3) 质感：克制阴影、统一圆角、更干净的边框
   加载顺序：必须在 style.css 与 platform.css 之后。
   ========================================================================== */

@media (prefers-reduced-motion:reduce){
  html[data-client="android"] *,html[data-client="android"] *::before,html[data-client="android"] *::after{
    animation-duration:.01ms !important;transition-duration:.01ms !important;
  }
}

html[data-client="android"] body{font-size:15.5px;line-height:1.62}

/* ---------- 顶部 App 栏 ---------- */
html[data-client="android"] .appbar,
html[data-client="android"] .topbar,
html[data-client="android"] header{
  box-shadow:0 8px 24px -18px rgba(122,43,0,.7);
}
html[data-client="android"] .nav-item{
  border-radius:14px;
  transition:background .18s var(--ease),color .18s var(--ease),transform .18s var(--ease);
}
html[data-client="android"] .nav-item:active{transform:scale(.97)}
html[data-client="android"] .nav-item.active{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16), 0 4px 14px -8px rgba(255,106,0,.9);
}

/* ---------- 三大操作卡：信息层级重排 ---------- */
html[data-client="android"] .big-actions{
  gap:12px;margin:6px 0 20px;
}
html[data-client="android"] .big-action{
  min-height:104px;padding:15px 15px 14px;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-xs), 0 10px 22px -20px rgba(24,28,32,.5);
  transition:transform .16s var(--ease),box-shadow .16s var(--ease),border-color .16s var(--ease);
}
html[data-client="android"] .big-action:active{
  transform:translateY(2px) scale(.985);
  box-shadow:var(--shadow-xs);
}
html[data-client="android"] .big-action::before{width:5px;border-radius:5px 0 0 5px}
html[data-client="android"] .big-action b{font-size:16.5px;font-weight:600;letter-spacing:-.2px}
html[data-client="android"] .big-action span{font-size:12.5px;color:var(--muted);line-height:1.55}
html[data-client="android"] .big-badge{
  font-size:22px;font-weight:600;line-height:1;
  min-width:34px;height:34px;padding:0 9px;border-radius:11px;
  display:inline-flex;align-items:center;justify-content:center;
}

/* ---------- 配送方式过滤条：更清晰的选中态 ---------- */
html[data-client="android"] .tfilter{
  gap:9px;padding:11px 13px;
  border:1px solid var(--border);border-radius:var(--radius-md);
  background:var(--card);box-shadow:var(--shadow-xs);
}
html[data-client="android"] .tfilter-group{
  padding:4px;border-radius:13px;background:var(--bg-deep);
}
html[data-client="android"] .tfilter-seg{
  padding:8px 13px;min-height:38px;border-radius:10px;
  font-size:13px;transition:background .16s var(--ease),transform .16s var(--ease);
}
html[data-client="android"] .tfilter-seg:active{transform:scale(.96)}
html[data-client="android"] .tfilter-seg.on{
  box-shadow:0 2px 8px -4px rgba(24,28,32,.35);
}

/* ---------- 推送单 / 订单卡：分组与呼吸感 ---------- */
html[data-client="android"] .push-orders{
  margin:12px 0;padding:13px 15px;
  border:1px solid var(--border);border-radius:var(--radius-md);
  background:var(--card);box-shadow:var(--shadow-xs);
}
html[data-client="android"] .biz-ord-card{
  border:1px solid var(--border);border-radius:var(--radius-md);
  box-shadow:var(--shadow-xs);
  transition:box-shadow .16s var(--ease),transform .16s var(--ease);
}
html[data-client="android"] .biz-ord-card:active{
  transform:translateY(1px);box-shadow:var(--shadow-sm);
}
html[data-client="android"] .biz-ord-route{
  font-weight:600;color:var(--text);font-size:14.5px;
}
html[data-client="android"] .biz-ord-state{
  border-radius:99px;padding:3px 10px;font-size:11.5px;font-weight:600;
}

/* ---------- 路线卡 ---------- */
html[data-client="android"] .route-card{
  border:1px solid var(--border);border-radius:var(--radius-md);
  box-shadow:var(--shadow-xs);padding:15px;
}
html[data-client="android"] .route-tabs,
html[data-client="android"] .route-toolbar{
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius-md);padding:5px;
}
html[data-client="android"] .route-chip{
  min-height:38px;padding:8px 14px;border-radius:11px;
  display:inline-flex;align-items:center;
}
html[data-client="android"] .route-chip.on{
  box-shadow:0 3px 10px -5px rgba(255,106,0,.8);
}

/* ---------- 统计条：可读性 ---------- */
html[data-client="android"] .stat-bar-track{height:16px;background:var(--bg-deep);border-radius:99px}
html[data-client="android"] .stat-bar-fill{border-radius:99px}
html[data-client="android"] .stat-bar-pct{font-size:13.5px;font-weight:600;color:var(--text-2)}

/* ---------- 卡片与按钮通用质感 ---------- */
html[data-client="android"] .card{
  border:1px solid var(--border);border-radius:var(--radius);
  box-shadow:var(--shadow-xs);
}
html[data-client="android"] .btn,
html[data-client="android"] button.btn,
html[data-client="android"] .big-action{
  -webkit-tap-highlight-color:transparent;
}
html[data-client="android"] button,
html[data-client="android"] .btn{
  border-radius:13px;
  transition:transform .16s var(--ease),filter .16s var(--ease),background .16s var(--ease);
}
html[data-client="android"] button:active:not(:disabled),
html[data-client="android"] .btn:active:not(:disabled){
  transform:scale(.975);filter:brightness(.96);
}
html[data-client="android"] input,
html[data-client="android"] select,
html[data-client="android"] textarea{
  border-radius:12px;min-height:44px;font-size:15.5px;
}
html[data-client="android"] input:focus,
html[data-client="android"] select:focus,
html[data-client="android"] textarea:focus{
  box-shadow:var(--ring);border-color:var(--primary);
}

/* ---------- 安全区底部留白 ---------- */
html[data-client="android"] main,
html[data-client="android"] .content{
  padding-bottom:calc(20px + env(safe-area-inset-bottom));
}
