* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #e9ecf1; }
.phone { max-width: 430px; margin: 0 auto; min-height: 100vh; background: #f5f6f8; display: flex; flex-direction: column; position: relative; }
.app-bar { background: #1989fa; color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.bar-title { font-size: 18px; font-weight: 700; }
.mode-btn { background: rgba(255,255,255,0.2); color: #fff; border: none; border-radius: 14px; padding: 5px 12px; font-size: 12px; }
.config-panel { background: #fff; padding: 12px 16px; border-bottom: 1px solid #eee; }
.config-panel label { font-size: 12px; color: #666; display: block; margin-bottom: 6px; }
.config-panel input { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 8px; font-size: 13px; }
.config-panel .hint { font-size: 11px; color: #999; margin-top: 6px; }
.hidden { display: none; }
.screen { flex: 1; overflow-y: auto; padding: 12px; }

/* 通用卡片 */
.card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.row { display: flex; justify-content: space-between; align-items: flex-start; padding: 7px 0; font-size: 14px; }
.k { color: #999; flex-shrink: 0; margin-right: 12px; }
.v { color: #333; text-align: right; }
.warn { color: #ff976a; font-weight: 600; }
.card-title { font-size: 15px; font-weight: 700; color: #333; margin-bottom: 6px; }
.amount { color: #ff5000; font-weight: 700; }

/* 登录 */
.login-wrap { padding-top: 60px; text-align: center; }
.login-logo { font-size: 40px; font-weight: 800; color: #1989fa; }
.login-sub { color: #999; font-size: 13px; margin: 8px 0 30px; }
.field { display: flex; align-items: center; background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.field input { flex: 1; border: none; outline: none; font-size: 15px; }
.code-btn { background: #1989fa; color: #fff; border: none; border-radius: 8px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.primary-btn { width: 100%; background: #1989fa; color: #fff; border: none; border-radius: 22px; padding: 12px; font-size: 16px; margin-top: 12px; }
.primary-btn:disabled { opacity: 0.6; }
.ghost-btn { width: 100%; background: #fff; color: #1989fa; border: 1px solid #1989fa; border-radius: 22px; padding: 12px; font-size: 15px; margin-top: 10px; }
.tip { color: #999; font-size: 12px; margin-top: 20px; line-height: 1.6; }

/* 顶部 banner / 提示条 */
.banner { background: linear-gradient(135deg,#1989fa,#0b62c7); color:#fff; border-radius:12px; padding:16px; margin-bottom:12px; font-size:14px; font-weight:600; text-align:center; }
.section-title { font-size:15px; font-weight:700; margin:14px 4px 8px; }
.empty { text-align:center; color:#999; margin-top:80px; font-size:14px; }

/* 派单卡片 */
.task-card { background:#fff; border-radius:12px; padding:14px; margin-bottom:12px; box-shadow:0 1px 4px rgba(0,0,0,0.04); cursor:pointer; }
.task-card .top { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.task-card .order { font-size:13px; color:#333; font-weight:600; }
.risk-badge { font-size:11px; padding:2px 8px; border-radius:10px; color:#fff; }
.risk-1 { background:#07c160; } .risk-2 { background:#ff976a; } .risk-3 { background:#ee0a24; }
.task-card .bottom { display:flex; justify-content:space-between; margin-top:8px; padding-top:8px; border-top:1px dashed #eee; font-size:12px; color:#999; }

/* 详情操作按钮 */
.actions { display:flex; gap:10px; margin-top:4px; }
.act { flex:1; border:none; border-radius:22px; padding:12px; font-size:16px; }
.act.accept { background:#1989fa; color:#fff; }
.act.reject { background:#fff; color:#ee0a24; border:1px solid #ee0a24; }

/* 弹层 */
.mask { position:fixed; inset:0; background:rgba(0,0,0,0.45); display:flex; align-items:flex-end; z-index:20; }
.sheet { width:100%; background:#fff; border-radius:16px 16px 0 0; padding:18px; }
.sheet-title { font-size:16px; font-weight:700; text-align:center; margin-bottom:14px; }
.picker { background:#f5f6f8; border-radius:10px; padding:12px; font-size:14px; color:#333; }
.ta { width:100%; border:1px solid #eee; border-radius:10px; padding:10px; font-size:14px; min-height:72px; margin-top:12px; resize:none; outline:none; }
.sheet-btn { width:100%; background:#ee0a24; color:#fff; border:none; border-radius:22px; padding:12px; font-size:15px; margin-top:14px; }
.cancel-btn { width:100%; background:#f5f6f8; color:#666; border:none; border-radius:22px; padding:12px; font-size:15px; margin-top:10px; }

/* 表单单元格 */
.cell { display:flex; align-items:center; padding:10px 0; border-bottom:1px solid #f5f6f8; }
.cell:last-child { border-bottom:none; }
.cell .label { width:76px; color:#666; font-size:14px; flex-shrink:0; }
.cell .input { flex:1; border:none; outline:none; font-size:14px; text-align:right; }
.cell .picker { background:none; padding:0; text-align:right; }

/* 人脸框 */
.face-card { text-align:center; }
.face-box { width:120px; height:120px; margin:12px auto; border:1px dashed #ccc; border-radius:12px; display:flex; align-items:center; justify-content:center; color:#999; font-size:13px; cursor:pointer; overflow:hidden; }
.face-img { width:100%; height:100%; object-fit:cover; }

/* 结果卡片 */
.result .r-title { font-size:16px; font-weight:700; text-align:center; margin-bottom:8px; }
.result .r-row { font-size:13px; color:#555; padding:4px 0; }
.result.ok .r-title { color:#07c160; }
.result.fail .r-title { color:#ee0a24; }

/* 记录块标题 */
.block-title { font-size:13px; font-weight:700; color:#1989fa; margin:10px 0 6px; }

/* 照片 */
.imgs { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.img-wrap { position:relative; }
.img { width:100%; height:80px; border-radius:8px; object-fit:cover; background:#eee; }
.img-del { position:absolute; top:-6px; right:-6px; background:#ee0a24; color:#fff; width:18px; height:18px; border-radius:50%; text-align:center; line-height:18px; font-size:12px; cursor:pointer; }
.img-add { width:100%; height:80px; border:1px dashed #ccc; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:26px; color:#999; cursor:pointer; }

/* 收入 */
.summary { display:flex; background:linear-gradient(135deg,#1989fa,#0b62c7); border-radius:12px; padding:20px 0; margin-bottom:14px; color:#fff; }
.s-item { flex:1; text-align:center; }
.s-num { font-size:20px; font-weight:700; }
.s-label { font-size:12px; opacity:0.85; margin-top:6px; }
.list-title { font-size:15px; font-weight:700; margin:6px 4px 10px; }
.rec { display:flex; justify-content:space-between; align-items:center; background:#fff; border-radius:12px; padding:13px; margin-bottom:8px; }
.rec-name { font-size:14px; color:#333; }
.rec-time { font-size:12px; color:#999; margin-top:4px; }
.rec-amount { font-size:15px; font-weight:700; color:#ff5000; text-align:right; }
.rec-status { font-size:12px; color:#999; text-align:right; margin-top:4px; }

/* 我的 */
.profile { display:flex; align-items:center; background:#fff; border-radius:12px; padding:18px 14px; margin-bottom:12px; }
.avatar { width:52px; height:52px; border-radius:50%; background:#1989fa; color:#fff; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:700; margin-right:14px; }
.info .name { font-size:17px; font-weight:700; color:#333; }
.info .uid { font-size:12px; color:#999; margin-top:4px; }
.menu { background:#fff; border-radius:12px; overflow:hidden; margin-bottom:12px; }
.menu-item { display:flex; align-items:center; padding:14px; border-bottom:1px solid #f5f6f8; cursor:pointer; }
.menu-item:last-child { border-bottom:none; }
.mi-icon { font-size:18px; margin-right:12px; }
.mi-name { flex:1; font-size:14px; color:#333; }
.mi-go { color:#ccc; }
.logout { width:100%; background:#fff; color:#ee0a24; border:none; border-radius:22px; padding:13px; font-size:15px; }

/* 底部导航 */
.bottom-nav { display:flex; background:#fff; border-top:1px solid #eee; }
.nav-btn { flex:1; background:none; border:none; padding:12px; font-size:13px; color:#999; }
.nav-btn.active { color:#1989fa; font-weight:700; }

/* toast */
.toast { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); background:rgba(0,0,0,0.75); color:#fff; padding:10px 18px; border-radius:8px; font-size:14px; z-index:99; }
