/* ============================================
   检验员端 - 移动端样式
   现代化UI + 流畅交互
   ============================================ */

:root {
  --primary: #00897b;
  --primary-hover: #00695c;
  --primary-bg: #e0f2f1;
  --success: #4caf50;
  --success-bg: #e8f5e9;
  --warning: #ff9800;
  --warning-bg: #fff3e0;
  --danger: #f44336;
  --danger-bg: #ffebee;
  --info: #2196f3;
  --info-bg: #e3f2fd;
  --body-bg: #f5f7fa;
  --card-bg: #fff;
  --card-shadow: 0 2px 8px rgba(0,0,0,.04);
  --card-radius: 12px;
  --border-color: #f0f0f0;
  --text-primary: #1f1f1f;
  --text-secondary: #666;
  --text-muted: #999;
  --font-stack: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --transition: all .25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: var(--font-stack);
  background: var(--body-bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }

/* ---- 登录页 ---- */
.login-page {
  display: none;
  min-height: 100vh;
  background: linear-gradient(135deg, #00695c 0%, #00897b 50%, #26a69a 100%);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  top: -150px; right: -100px;
  border-radius: 50%;
}
.login-page.active { display: flex; align-items: center; justify-content: center; }
.login-card {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 80px rgba(0,0,0,.15);
  position: relative;
  z-index: 1;
  animation: loginSlideUp .5s cubic-bezier(.4,0,.2,1);
}
@keyframes loginSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.login-icon { font-size: 52px; text-align: center; margin-bottom: 10px; }
.login-card h1 { text-align: center; font-size: 22px; margin-bottom: 4px; font-weight: 700; letter-spacing: 1px; color: var(--primary); }
.login-sub { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 28px; }
.login-version { text-align: center; color: var(--text-muted); font-size: 11px; margin-top: 20px; }
.login-announcement {
  background: var(--warning-bg); color: #e65100; padding: 10px 14px; border-radius: 10px;
  font-size: 12px; line-height: 1.6; margin-bottom: 14px; text-align: left;
  border-left: 3px solid var(--warning);
}

/* ---- 表单 ---- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: var(--text-secondary); font-size: 13px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid #e0e0e0; border-radius: 10px;
  font-size: 14px; outline: none; transition: var(--transition); background: #fafbfc;
  -webkit-appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,137,123,.1);
  background: #fff;
}

/* ---- 按钮 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border: 1px solid #d9d9d9; border-radius: 10px;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--transition); background: #fff; color: var(--text-primary);
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 8px rgba(0,137,123,.25); }
.btn-primary:active { background: var(--primary-hover); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; padding: 13px; font-size: 15px; border-radius: 10px; }
.btn:disabled { opacity: .45; pointer-events: none; }

/* ---- 主布局 ---- */
.main-app { display: flex; flex-direction: column; min-height: 100vh; background: var(--body-bg); }
.topbar {
  background: linear-gradient(135deg, var(--primary), #26a69a);
  color: #fff; padding: 0 16px; height: 50px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(0,137,123,.2);
}
.top-title { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.top-right { display: flex; align-items: center; gap: 8px; }
.top-name { font-size: 13px; opacity: .9; }

.content-wrap { flex: 1; padding-bottom: 60px; overflow-y: auto; }
.page { display: none; }
.page.active { display: block; animation: pageIn .25s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---- 底部导航 ---- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: 58px;
  background: #fff; border-top: 1px solid #eee;
  display: flex; z-index: 100;
  box-shadow: 0 -2px 12px rgba(0,0,0,.04);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; color: var(--text-muted); font-size: 10px; gap: 2px;
  cursor: pointer; transition: var(--transition);
}
.tabbar-item .tb-icon { font-size: 22px; transition: var(--transition); }
.tabbar-item.active { color: var(--primary); }
.tabbar-item.active .tb-icon { transform: scale(1.1); }

/* ---- 首页问候 ---- */
.insp-greeting {
  background: linear-gradient(135deg, var(--primary), #26a69a);
  color: #fff; padding: 24px 18px 20px;
  position: relative; overflow: hidden;
}
.greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.greeting-text { position: relative; z-index: 1; }
.greeting-text h2 { font-size: 22px; margin-bottom: 4px; font-weight: 700; }
.greeting-text p { font-size: 13px; opacity: .85; }
.greeting-avatar { font-size: 48px; opacity: .3; }

/* ---- 检验统计卡片 ---- */
.insp-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px 18px;
}
.insp-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}
.insp-stat-card:active { transform: scale(.97); }
.isc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.isc-info { flex: 1; }
.isc-num { display: block; font-size: 24px; font-weight: 700; color: var(--text-primary); }
.isc-label { font-size: 12px; color: var(--text-muted); }

/* ---- 快捷操作 ---- */
.quick-actions {
  display: flex;
  gap: 12px;
}
.qa-item {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}
.qa-item:active { transform: scale(.96); background: var(--primary-bg); }
.qa-icon { font-size: 28px; margin-bottom: 6px; }
.qa-text { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

/* ---- 区块 ---- */
.section { padding: 0 18px; margin-bottom: 18px; }
.section-title { font-size: 16px; font-weight: 600; padding: 14px 0 10px; color: var(--text-primary); }
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 10px;
}
.section-more { font-size: 13px; color: var(--primary); }

/* ---- 筛选栏 ---- */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
}
.filter-select {
  padding: 8px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  background: #fafbfc;
  min-width: 100px;
}
.filter-input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  background: #fafbfc;
}

/* ---- Tab栏 ---- */
.tab-bar {
  display: flex;
  padding: 8px 18px;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
}
.tab-bar .tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  font-weight: 500;
  position: relative;
}
.tab-bar .tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

/* ---- 工单卡片列表 ---- */
.order-list { padding: 12px 18px; }
.card-list { padding: 0 18px; }
.order-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.order-card:active { transform: scale(.99); }
.order-card .oc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.order-card .oc-no { font-weight: 700; font-size: 14px; color: var(--primary); }
.order-card .oc-status {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 500;
}
.status-pending { background: var(--warning-bg); color: #e65100; }
.status-passed { background: var(--success-bg); color: var(--success); }
.status-rejected { background: var(--danger-bg); color: var(--danger); }
.status-progress { background: var(--info-bg); color: var(--info); }
.order-card .oc-contract { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.order-card .oc-task { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.order-card .oc-product { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; line-height: 1.4; word-break: break-all; }
.order-card .oc-qty { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.order-card .oc-info { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.order-card .oc-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  color: var(--text-secondary);
}
.order-card .oc-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 10px 0;
  align-items: center;
}
.oc-route {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}
.oc-route.done { background: var(--success-bg); color: var(--success); }
.oc-route.current { background: var(--primary-bg); color: var(--primary); font-weight: 600; }
.oc-route.pending { background: #f5f5f5; color: var(--text-muted); }
.oc-route.rejected { background: var(--danger-bg); color: var(--danger); }
.oc-route.inspecting { background: var(--warning-bg); color: #e65100; }
.oc-arrow { color: #d0d0d0; font-size: 11px; }
.order-card .oc-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

/* ---- 报工记录卡片 ---- */
.record-list { padding: 12px 18px; }
.record-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.record-card:active { transform: scale(.99); }
.record-card .rc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.record-card .rc-product { font-weight: 600; font-size: 14px; }
.record-card .rc-status {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 500;
}
.record-card .rc-body { font-size: 13px; color: var(--text-secondary); line-height: 1.8; }
.record-card .rc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}
.record-card .rc-amount { font-weight: 700; color: var(--primary); font-size: 15px; }
.record-card .rc-date { font-size: 12px; color: var(--text-muted); }
.record-card .rc-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ---- 统计概览 ---- */
.stat-summary {
  display: flex;
  background: #fff;
  padding: 18px;
  margin: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  border: 1px solid var(--border-color);
}
.ss-item { flex: 1; text-align: center; }
.ss-num { display: block; font-size: 24px; font-weight: 700; color: var(--primary); }
.ss-label { font-size: 11px; color: var(--text-muted); }

/* ---- 返回栏 ---- */
.back-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
}
.back-bar .btn { background: none; border: none; font-size: 18px; color: var(--primary); padding: 0; }

/* ---- 详情卡片 ---- */
.detail-card {
  background: #fff;
  margin: 14px 18px;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  border: 1px solid var(--border-color);
}
.detail-card .dc-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
}
.detail-card .dc-row:last-child { border: none; }
.detail-card .dc-label { color: var(--text-muted); }
.detail-card .dc-value { color: var(--text-primary); font-weight: 500; }

/* ---- 我的页 ---- */
.insp-mine-header {
  background: linear-gradient(135deg, var(--primary), #26a69a);
  color: #fff;
  padding: 28px 18px;
  position: relative;
  overflow: hidden;
}
.insp-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,.3);
}
.mine-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.mine-info { flex: 1; position: relative; z-index: 1; }
.mine-info h3 { font-size: 18px; font-weight: 700; color: #fff; }
.mine-info p { font-size: 13px; opacity: .85; color: #fff; }
.mine-stats {
  display: flex;
  background: #fff;
  padding: 18px;
  margin: -16px 18px 0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  position: relative;
  z-index: 2;
  border: 1px solid var(--border-color);
}
.insp-mine-stats { background: var(--primary-bg); border: 1px solid rgba(0,137,123,.1); }
.ms-item { flex: 1; text-align: center; }
.ms-num { display: block; font-size: 22px; font-weight: 700; color: var(--primary); }
.ms-label { font-size: 11px; color: var(--text-muted); }

/* ---- 菜单 ---- */
.menu-list { background: #fff; margin: 14px 18px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); }
.menu-item {
  display: flex;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}
.menu-item:active { background: #f5f7fa; }
.menu-item:last-child { border: none; }
.menu-icon { font-size: 22px; margin-right: 14px; width: 24px; text-align: center; }
.menu-text { flex: 1; font-size: 14px; }
.arrow { color: #d0d0d0; font-size: 18px; }

/* ---- 版本信息 ---- */
.app-version {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 12px;
}

/* ---- 弹窗 ---- */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.modal-sheet {
  background: #fff;
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp .3s cubic-bezier(.4,0,.2,1);
}
.modal-handle {
  width: 40px; height: 4px; background: #ddd; border-radius: 2px;
  margin: 10px auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-color);
}
.modal-header h3 { font-size: 16px; font-weight: 600; color: var(--primary); }
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.modal-close:hover { background: #f0f0f0; }
.modal-body { padding: 18px 22px 28px; }

/* ---- 检验信息卡片 ---- */
.inspect-info-card, .audit-info-card {
  background: var(--primary-bg);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.8;
  border: 1px solid rgba(0,137,123,.15);
}
.inspect-info-card .iic-row, .audit-info-card .aic-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}
.inspect-info-card .iic-label, .audit-info-card .aic-label { color: var(--text-secondary); }
.inspect-info-card .iic-value, .audit-info-card .aic-value { font-weight: 500; }

/* ---- 单选按钮组 ---- */
.radio-group {
  display: flex;
  gap: 12px;
}
.radio-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
}
.radio-item input { display: none; }
.radio-item.pass { color: var(--success); }
.radio-item.pass.selected {
  background: var(--success-bg);
  border-color: var(--success);
}
.radio-item.reject { color: var(--danger); }
.radio-item.reject.selected {
  background: var(--danger-bg);
  border-color: var(--danger);
}

/* ---- 分页 ---- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px;
}
.pager button {
  padding: 6px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
}
.pager button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager button:disabled { opacity: .35; }
.pager-info { font-size: 13px; color: var(--text-muted); }

/* ---- Toast ---- */
.toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 28px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  z-index: 999;
  animation: fadeIn .3s;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.toast.success { background: rgba(76,175,80,.92); }
.toast.error { background: rgba(244,67,54,.92); }
.toast.info { background: rgba(0,137,123,.92); }
@keyframes fadeIn { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%); } }

/* ---- 生产流转单卡片 ---- */
.flow-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}
.flow-card:active { transform: scale(.99); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.flow-card .fc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.flow-card .fc-no {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.flow-card .fc-status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.flow-card .fc-contract,
.flow-card .fc-task {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  word-break: break-all;
}
.flow-card .fc-product {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  word-break: break-all;
  line-height: 1.5;
}
.flow-card .fc-qty {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #eee;
}
.flow-card .fc-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.flow-card .fc-route {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-all;
}
.flow-card .fc-arrow {
  color: #d0d0d0;
  font-size: 14px;
  font-weight: 300;
}

/* ---- 流转单详情 ---- */
.flow-detail-card {
  background: #fff;
  margin: 14px 18px;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  border: 1px solid var(--border-color);
}
.flow-detail-card .fd-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
  word-break: break-all;
}
.flow-detail-card .fd-row:last-child { border: none; }
.flow-detail-card .fd-label { color: var(--text-muted); flex-shrink: 0; margin-right: 12px; }
.flow-detail-card .fd-value { color: var(--text-primary); font-weight: 500; text-align: right; }

.flow-timeline {
  background: #fff;
  margin: 14px 18px;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  border: 1px solid var(--border-color);
}
.flow-timeline .ft-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.flow-timeline .ft-item {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-all;
}
.flow-timeline .ft-item:last-child { border-bottom: none; }
.flow-timeline .ft-item.done { border-left: 3px solid var(--success); padding-left: 10px; background: var(--success-bg); border-radius: 0 8px 8px 0; margin: 4px 0; }
.flow-timeline .ft-item.current { border-left: 3px solid var(--primary); padding-left: 10px; background: var(--primary-bg); border-radius: 0 8px 8px 0; margin: 4px 0; }
.flow-timeline .ft-item.inspecting { border-left: 3px solid var(--warning); padding-left: 10px; background: var(--warning-bg); border-radius: 0 8px 8px 0; margin: 4px 0; }
.flow-timeline .ft-item.rejected { border-left: 3px solid var(--danger); padding-left: 10px; background: var(--danger-bg); border-radius: 0 8px 8px 0; margin: 4px 0; }

/* ---- 空状态 ---- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 14px; }
.empty-state .empty-text { font-size: 14px; }

/* ---- 时间线 ---- */
.timeline { padding: 0 18px; }
.timeline-item {
  display: flex;
  gap: 12px;
  padding-bottom: 18px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: #e8e8e8;
}
.timeline-item:last-child::before { display: none; }
.tl-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  z-index: 1;
}
.tl-dot.done { background: var(--success-bg); color: var(--success); }
.tl-dot.current { background: var(--primary-bg); color: var(--primary); }
.tl-dot.pending { background: #f5f5f5; color: var(--text-muted); }
.tl-content { flex: 1; }
.tl-title { font-size: 14px; font-weight: 500; }
.tl-info { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ---- 平板/PC端适配 ---- */
@media (min-width: 768px) {
  body { background: #eef1f5; font-size: 15px; }
  .login-page {
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .main-app {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(0,0,0,.06);
    min-height: 100vh;
    position: relative;
    background: #fff;
  }
  .content-wrap { padding-bottom: 60px; overflow-y: auto; }
  .tabbar {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 14px 14px 0 0;
  }
  .topbar { border-radius: 0; }
  .insp-stats-grid { gap: 16px; padding: 18px; }
  .isc-num { font-size: 28px; }
  .quick-actions { gap: 16px; }
  .qa-item { padding: 20px 16px; }
  .qa-icon { font-size: 32px; }
  .section { padding: 0 18px; margin-bottom: 20px; }
  .section-title { font-size: 17px; padding: 16px 0 12px; }
  .order-list, .record-list { padding: 14px 18px; }
  .order-card, .record-card { padding: 18px 20px; border-radius: 14px; }
  .modal-sheet { border-radius: 18px; max-width: 480px; align-items: flex-end; margin: 0 auto; }
  .menu-list { margin: 16px 18px; border-radius: 14px; }
  .menu-item { padding: 18px 22px; }
  .stat-summary { margin: 16px 18px; padding: 22px; border-radius: 14px; }
  .ss-num { font-size: 28px; }
}
