:root{
  --primary:#0A6CFF; --primary-dark:#0858D6; --bg:#F2F4F7; --card:#fff;
  --text:#1F2329; --sub:#6B7280; --line:#ECEFF3;
  --green:#16A34A; --red:#E5484D; --amber:#F59E0B;
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent;}
html,body{margin:0;padding:0;}
body{background:#dfe3e8; font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; color:var(--text); font-size:15px; line-height:1.5;}
#app{max-width:480px; margin:0 auto; background:var(--bg); min-height:100vh; position:relative; padding-bottom:64px; box-shadow:0 0 24px rgba(0,0,0,.08);}
.hidden{display:none !important;}

.appbar{background:linear-gradient(135deg,var(--primary),#2E9BFF); color:#fff; padding:14px 16px; position:sticky; top:0; z-index:10;}
.appbar-inner{display:flex; align-items:center; justify-content:space-between;}
.appbar-title{font-size:17px; font-weight:600;}
.appbar-badge{font-size:11px; background:rgba(255,255,255,.25); padding:2px 8px; border-radius:10px;}

.content{padding:14px;}
.page{min-height:60vh;}

.hero{background:linear-gradient(135deg,var(--primary),#2E9BFF); color:#fff; border-radius:14px; padding:20px 18px;}
.hero-title{font-size:20px; font-weight:700;}
.hero-sub{font-size:13px; opacity:.9; margin-top:6px;}

.notice{display:flex; align-items:center; background:#fff; border-radius:12px; padding:10px 14px; margin-top:12px; box-shadow:0 2px 8px rgba(0,0,0,.04);}
.notice-icon{margin-right:8px;}
.notice-text{font-size:13px; color:var(--sub); flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}

.grid{display:flex; flex-wrap:wrap; gap:12px; margin-top:12px;}
.grid-card{width:calc(50% - 6px); background:#fff; border-radius:12px; padding:18px 14px; box-shadow:0 2px 8px rgba(0,0,0,.04); display:flex; flex-direction:column; align-items:flex-start;}
.grid-icon{font-size:30px;}
.grid-label{margin-top:8px; font-size:14px;}

.card{background:#fff; border-radius:12px; padding:14px; box-shadow:0 2px 8px rgba(0,0,0,.04); margin-bottom:12px;}
.card-title{font-size:15px; font-weight:600; margin-bottom:10px;}
.stat-row{display:flex;}
.stat{flex:1; text-align:center;}
.stat-num{font-size:26px; font-weight:700; color:var(--primary);}
.stat-label{font-size:12px; color:var(--sub); margin-top:4px;}

.list-header{display:flex; align-items:center; justify-content:space-between; margin-bottom:12px;}
.list-title{font-size:17px; font-weight:600;}
.empty{text-align:center; color:var(--sub); font-size:13px; padding:30px 0;}

.repair-item{cursor:pointer;}
.repair-top{display:flex; align-items:center; justify-content:space-between;}
.repair-title{font-size:15px; font-weight:600;}
.repair-meta{font-size:13px; color:var(--sub); margin-top:6px;}
.repair-time{font-size:12px; color:#9aa0a6; margin-top:4px;}
.badge{font-size:12px; padding:2px 8px; border-radius:10px;}
.badge-pending{background:#FFF1E6; color:#D9730D;}
.badge-done{background:#E8F7EE; color:var(--green);}

.form-item{margin-bottom:12px;}
.label{display:block; font-size:13px; color:var(--sub); margin-bottom:6px;}
.input,.textarea,.search-input{width:100%; border:1px solid var(--line); border-radius:8px; padding:10px 12px; font-size:14px; background:#fff; color:var(--text); outline:none;}
.textarea{height:80px; resize:none;}
.btn-primary{background:var(--primary); color:#fff; border:none; border-radius:10px; padding:12px; width:100%; font-size:15px; font-weight:600; cursor:pointer;}
.btn-primary.sm{width:auto; padding:6px 14px; font-size:13px;}
.btn-primary:active{background:var(--primary-dark);}

.insp-item .insp-top{display:flex; justify-content:space-between; align-items:center;}
.insp-item .insp-result{font-size:12px; padding:2px 8px; border-radius:10px;}
.insp-result.good{background:#E8F7EE; color:var(--green);}
.insp-result.bad{background:#FDECEC; color:var(--red);}
.insp-result.amber{background:#FFF7E6; color:var(--amber);}
.insp-meta{font-size:13px; color:var(--sub); margin-top:6px;}
.insp-note{font-size:13px; color:#9aa0a6; margin-top:4px;}

.profile{display:flex; align-items:center; background:#fff; border-radius:12px; padding:18px; margin-bottom:12px; box-shadow:0 2px 8px rgba(0,0,0,.04);}
.avatar{width:52px; height:52px; border-radius:50%; background:linear-gradient(135deg,var(--primary),#2E9BFF); display:flex; align-items:center; justify-content:center; font-size:26px; color:#fff; margin-right:14px;}
.profile-name{font-size:17px; font-weight:600;}
.profile-company{font-size:13px; color:var(--sub); margin-top:4px;}
.menu{background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.04);}
.menu-item{display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--line); font-size:15px;}
.menu-item:last-child{border-bottom:none;}
.menu-item:active{background:#f6f8fa;}
.arrow{color:#c4c9d0; font-size:18px;}
.footer{text-align:center; color:#9aa0a6; font-size:12px; margin-top:18px;}

.tabbar{position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:480px; height:56px; background:#fff; display:flex; border-top:1px solid var(--line); z-index:20;}
.tab-btn{flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#9aa0a6; font-size:11px; cursor:pointer;}
.tab-btn.active{color:var(--primary);}
.tab-ico{font-size:20px;}

.overlay{position:fixed; top:0; left:50%; transform:translateX(-50%); width:100%; max-width:480px; height:100%; background:var(--bg); z-index:30; display:flex; flex-direction:column; animation:slideIn .2s ease;}
@keyframes slideIn{from{opacity:0; transform:translateX(-50%) translateY(10px);} to{opacity:1; transform:translateX(-50%) translateY(0);}}
.overlay-head{display:flex; align-items:center; padding:12px 14px; background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0;}
.overlay-close{background:none; border:none; font-size:18px; color:#6b7280; cursor:pointer; margin-right:10px;}
.overlay-title{font-size:16px; font-weight:600;}
.overlay-body{flex:1; overflow:auto; padding:14px;}

.sop-item{display:flex; align-items:center; cursor:pointer;}
.sop-icon{font-size:26px; margin-right:12px;}
.sop-body{flex:1;}
.sop-title{font-size:15px; font-weight:600;}
.sop-desc{font-size:13px; color:var(--sub); margin-top:4px;}
.detail-content{font-size:14px; line-height:1.8; white-space:pre-wrap;}

.contact-item .contact-name{font-size:15px; font-weight:600;}
.contact-item .contact-meta{font-size:13px; color:var(--sub); margin-top:4px;}
.contact-phone{display:inline-block; margin-top:8px; color:var(--primary); font-size:14px; text-decoration:none;}

.search-input{margin-bottom:12px;}

/* 拍照水印 */
.btn-ghost{background:#fff; color:var(--primary); border:1px solid var(--primary); border-radius:10px; padding:12px; width:100%; font-size:15px; font-weight:600; cursor:pointer;}
.btn-ghost.sm{width:auto; padding:6px 12px; font-size:12px;}
.btn-ghost:active{background:#eef4ff;}
.btn-col{display:flex; flex-direction:column; gap:10px; margin-top:4px;}
.switch-row{display:flex; align-items:center; justify-content:space-between; padding:6px 0; font-size:14px;}
.wm-field{display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:8px 0; border-top:1px solid var(--line);}
.wm-field .check{display:flex; align-items:center; gap:6px; font-size:14px; min-width:64px;}
.wm-field .check input{width:16px; height:16px;}
.wm-auto{font-size:12px; color:var(--sub);}
.input.mini{flex:1; min-width:120px; padding:8px 10px; font-size:13px;}
.preview-img{width:100%; border-radius:10px; display:block; background:#000;}

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

/* 拍照上传留痕 */
.log-hint{font-size:12px; color:var(--sub); background:#fff; border-radius:10px; padding:10px 12px; margin-bottom:12px; box-shadow:0 2px 8px rgba(0,0,0,.04);}
.log-filter{background:#fff; border-radius:10px; padding:12px; margin-bottom:12px; box-shadow:0 2px 8px rgba(0,0,0,.04); display:flex; flex-direction:column; gap:8px;}
.log-filter-row{display:flex; gap:8px; align-items:center; flex-wrap:wrap;}
.log-filter .input.mini{flex:1; min-width:0;}
.log-filter input[type="date"].mini{flex:1.4;}
.log-filter .btn-ghost.sm{flex:0 0 auto;}
.log-item .log-top{display:flex; justify-content:space-between; align-items:center;}
.log-item .log-who{font-size:15px; font-weight:600;}
.log-item .log-result{font-size:12px; padding:2px 8px; border-radius:10px;}
.log-item .log-result.ok{background:#E8F7EE; color:var(--green);}
.log-item .log-result.fail{background:#FDECEC; color:var(--red);}
.log-item .log-meta{font-size:13px; color:var(--sub); margin-top:6px;}
.log-item .log-msg{font-size:12px; color:#9aa0a6; margin-top:4px; word-break:break-all;}

@media (max-width:480px){ body{background:var(--bg);} #app{box-shadow:none;} }
