/* ============================================================
   阳光驾校 · 代理端样式（独立移动端布局，daili 子域名专用）
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f7fa; color: #333; font-size: 15px; }
a { text-decoration: none; color: inherit; }
.page { max-width: 640px; margin: 0 auto; min-height: 100vh; background: #f5f7fa; padding-bottom: 70px; }
.page-head { background: linear-gradient(135deg, #1e6fff, #0a4fd8); color: #fff; padding: 16px 16px 14px; position: sticky; top: 0; z-index: 100; }
.page-head h1 { font-size: 17px; font-weight: 600; }
.page-head .sub { font-size: 12px; opacity: .8; margin-top: 2px; }
.page-head .right { float: right; font-size: 13px; opacity: .9; }

/* 底部导航 */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #e8e8e8; display: flex; max-width: 640px; margin: 0 auto; z-index: 100; }
.tabbar a { flex: 1; text-align: center; padding: 8px 0 10px; font-size: 11px; color: #999; }
.tabbar a .icon { font-size: 20px; display: block; margin-bottom: 2px; }
.tabbar a.active { color: #1e6fff; }

/* 卡片 */
.card { background: #fff; border-radius: 10px; margin: 10px 12px; padding: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.card-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: #444; }

/* 统计卡 */
.stat-row { display: flex; gap: 10px; margin: 10px 12px; }
.stat-card { flex: 1; background: #fff; border-radius: 10px; padding: 12px 8px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.stat-card .num { font-size: 22px; font-weight: 700; color: #1e6fff; }
.stat-card .label { font-size: 12px; color: #888; margin-top: 2px; }

/* 按钮 */
.btn { display: block; width: 100%; text-align: center; border: none; border-radius: 8px; padding: 13px; font-size: 16px; font-weight: 600; cursor: pointer; }
.btn-primary { background: #1e6fff; color: #fff; }
.btn-primary:active { background: #0a4fd8; }
.btn-ghost { background: #fff; color: #1e6fff; border: 1px solid #1e6fff; }
.btn-small { display: inline-block; padding: 6px 14px; font-size: 13px; border-radius: 6px; }
.btn-block + .btn-block { margin-top: 10px; }
.btn[disabled] { opacity: .5; }

/* 表单 */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 13px; color: #666; margin-bottom: 5px; }
.form-group label .req { color: #f00; }
.form-control { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 11px 12px; font-size: 15px; background: #fff; outline: none; }
.form-control:focus { border-color: #1e6fff; }
select.form-control { appearance: none; -webkit-appearance: none; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }
.form-tip { font-size: 12px; color: #999; margin-top: 4px; }
.checkbox-line { display: flex; align-items: center; gap: 6px; font-size: 14px; }

/* 折叠条（固定信息） */
.fold-bar { background: #f0f5ff; border: 1px dashed #b8d0ff; border-radius: 8px; padding: 8px 12px; font-size: 12px; color: #5a7bb8; margin-bottom: 12px; cursor: pointer; }
.fold-body { display: none; background: #fafcff; border: 1px solid #e3ecff; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }

/* 列表 */
.reg-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f0f0f0; padding: 12px 0; }
.reg-item:last-child { border-bottom: none; }
.reg-item .main { flex: 1; min-width: 0; }
.reg-item .name { font-size: 15px; font-weight: 600; }
.reg-item .info { font-size: 12px; color: #888; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reg-item .right { text-align: right; font-size: 12px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.badge-green { background: #e6f7e6; color: #1a9e1a; }
.badge-yellow { background: #fff7e0; color: #c08a00; }
.badge-red { background: #ffecec; color: #e03131; }
.badge-gray { background: #f0f0f0; color: #888; }
.badge-blue { background: #e8f0ff; color: #1e6fff; }
.badge-purple { background: #f0e8ff; color: #7b2fd0; }
.dot-high { color: #e03131; }
.dot-mid { color: #f0a000; }
.dot-low { color: #aaa; }

/* 楼栋视图 */
.building-group { margin-bottom: 6px; }
.building-name { font-weight: 700; font-size: 14px; padding: 6px 0; color: #1e6fff; }
.floor-name { font-size: 13px; font-weight: 600; color: #555; padding: 4px 0 4px 8px; }
.room-name { font-size: 12px; color: #777; padding: 3px 0 3px 16px; }
.bed-line { font-size: 12px; color: #999; padding: 2px 0 2px 24px; display: flex; justify-content: space-between; }

/* 时间线 */
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: #e5e9f0; }
.tl-item { position: relative; padding-bottom: 14px; }
.tl-item::before { content: ''; position: absolute; left: -16px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #1e6fff; }
.tl-item .tl-head { font-size: 13px; font-weight: 600; color: #333; }
.tl-item .tl-time { font-size: 11px; color: #aaa; margin: 2px 0; }
.tl-item .tl-body { font-size: 13px; color: #555; white-space: pre-wrap; }
.tl-item .tl-proof { font-size: 12px; color: #1e6fff; margin-top: 4px; }
.tl-item .tl-proof a { color: #1e6fff; word-break: break-all; }

/* 须知弹层 */
.notice-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999; display: none; align-items: center; justify-content: center; padding: 20px; }
.notice-box { background: #fff; border-radius: 12px; padding: 18px; width: 100%; max-width: 420px; max-height: 80vh; overflow-y: auto; }
.notice-box h3 { font-size: 16px; margin-bottom: 10px; text-align: center; }
.notice-box ul { font-size: 13px; line-height: 1.8; color: #555; padding-left: 18px; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 900; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-box { background: #fff; border-radius: 12px; padding: 18px; width: 100%; max-width: 420px; max-height: 82vh; overflow-y: auto; }
.modal-box h3 { font-size: 15px; margin-bottom: 10px; }
.modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.modal-actions .btn { flex: 1; }

/* 提示条 */
.tip-bar { background: #fff8e6; border: 1px solid #ffe3a3; color: #9a6b00; font-size: 12px; border-radius: 8px; padding: 8px 12px; margin: 10px 12px; }
.tip-bar-danger { background: #ffecec; border-color: #ffc9c9; color: #c0392b; }
.tip-bar-green { background: #e6f7e6; border-color: #b8e6b8; color: #1a7a1a; }

.empty { text-align: center; color: #aaa; padding: 40px 0; font-size: 14px; }
.empty .big { font-size: 40px; margin-bottom: 8px; }

/* 帮助页 */
.help-list { font-size: 13px; color: #555; line-height: 1.9; }
.help-list b { color: #333; }
