* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #f4f5f8; color: #252f4a; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
.app { height: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.scroll { flex: 1; overflow-y: auto; padding: 12px 12px 20px; }
.head { background: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #eceef2; flex: none; }
.head h1 { margin: 0; font-size: 16px; flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head button { border: 0; background: none; color: #5d87ff; min-width: 40px; text-align: left; padding: 0; }
.head span { min-width: 40px; }
.hero { border-radius: 14px; padding: 16px; color: #fff; background: linear-gradient(135deg, #5d87ff, #49a8ff); margin-bottom: 12px; }
.hero small { opacity: .85; } .hero b { display: block; font-size: 26px; margin: 2px 0 10px; }
.hero div.kv { display: flex; gap: 24px; } .hero div.kv b { font-size: 16px; margin: 0; }
.card { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.card h2 { margin: 0 0 6px; font-size: 14px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 6px; }
.quick div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; }
.tile { width: 38px; height: 38px; flex: none; border-radius: 11px; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #f1f2f4; }
.row:first-of-type { border-top: 0; }
.main { flex: 1; min-width: 0; }
.title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { color: #99a1b7; font-size: 12px; }
.right { text-align: right; flex: none; }
.tag { display: inline-block; border-radius: 4px; padding: 0 6px; font-size: 12px; line-height: 20px; white-space: nowrap; }
.success { background: #e7f8f1; color: #0f9d6b; } .warning { background: #fff4e0; color: #c47b06; } .danger { background: #feecec; color: #e04848; } .info { background: #f0f1f4; color: #78829d; } .primary { background: #eff3ff; color: #4a6ccc; }
.seg { display: flex; background: #e9ebf0; border-radius: 9px; padding: 3px; margin-bottom: 12px; }
.seg button { flex: 1; border: 0; background: none; padding: 6px 0; border-radius: 7px; color: #78829d; }
.seg button.on { background: #fff; color: #252f4a; font-weight: 600; }
.kvs { display: flex; gap: 10px; padding: 5px 0; } .kvs span { width: 68px; flex: none; color: #99a1b7; } .kvs div { flex: 1; min-width: 0; }
.bar { height: 6px; background: #edeff3; border-radius: 3px; overflow: hidden; margin-top: 6px; } .bar i { display: block; height: 100%; background: #5d87ff; }
.step { position: relative; padding: 0 0 14px 20px; }
.step::before { content: ''; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #d5d9e2; }
.step::after { content: ''; position: absolute; left: 4px; top: 18px; bottom: 0; width: 1px; background: #e6e8ee; }
.step:last-child::after { display: none; }
.step.approved::before { background: #13b981; } .step.pending::before { background: #f59e0b; } .step.rejected::before { background: #f56c6c; }
.foot { flex: none; background: #fff; border-top: 1px solid #eceef2; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
.btn { flex: 1; border: 1px solid #d9dde6; background: #fff; border-radius: 10px; height: 42px; }
.btn.pri { background: #5d87ff; border-color: #5d87ff; color: #fff; }
.btn.red { color: #e04848; border-color: #f5c2c2; }
.btn.mini { flex: none; height: 28px; padding: 0 10px; font-size: 12px; color: #5d87ff; border-color: #cedbff; }
.tabbar { flex: none; display: flex; background: #fff; border-top: 1px solid #eceef2; padding-bottom: env(safe-area-inset-bottom); }
.tabbar button { flex: 1; border: 0; background: none; padding: 8px 0; color: #99a1b7; font-size: 12px; position: relative; }
.tabbar button b { display: block; font-size: 18px; font-weight: 400; }
.tabbar button.on { color: #5d87ff; font-weight: 600; }
.badge { position: absolute; top: 4px; left: calc(50% + 8px); background: #f56c6c; color: #fff; border-radius: 9px; font-size: 11px; min-width: 18px; line-height: 18px; font-style: normal; }
label { display: block; margin-bottom: 10px; } label span { display: block; color: #78829d; font-size: 12px; margin-bottom: 4px; }
input, select, textarea { width: 100%; border: 1px solid #e1e4eb; border-radius: 9px; padding: 9px 10px; background: #fff; }
.empty { text-align: center; color: #99a1b7; padding: 28px 0; }
.toast { position: absolute; left: 50%; top: 42%; transform: translateX(-50%); background: rgba(20, 24, 36, .86); color: #fff; padding: 9px 16px; border-radius: 9px; white-space: nowrap; z-index: 9; }
.ok { color: #0f9d6b; } .red-text { color: #e04848; }
