/* 栖邻 H5 样式（移动端优先，主色青绿——栖邻品牌色） */
:root {
  --primary: #0F6E56;
  --primary-light: #E1F5EE;
  --text: #1A1A1A;
  --text-2: #666;
  --text-3: #999;
  --bg: #F5F7F6;
  --card: #FFF;
  --danger: #C0392B;
  --warning: #B7791F;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5;
  padding-bottom: 60px; /* tabbar 高度 */
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

.page { padding: 12px; }
.page-title { font-size: 17px; font-weight: 600; padding: 12px 4px; }

.card { background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }

.btn {
  display: block; width: 100%; padding: 12px; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: 16px; text-align: center;
}
.btn:active { opacity: .85; }
.btn.disabled { background: #bbb; }
.btn-sm { display: inline-block; width: auto; padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-danger { background: var(--danger); }
.btn-warn { background: var(--warning); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #ddd; border-radius: 10px; background: #fff;
}
.field textarea { min-height: 90px; resize: vertical; }

.row { display: flex; align-items: center; justify-content: space-between; }
.list-item { padding: 13px 4px; border-bottom: 1px solid #f0f0f0; }
.list-item:last-child { border-bottom: none; }

.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 20px; }
.tag-green { background: var(--primary-light); color: var(--primary); }
.tag-orange { background: #FDF0E0; color: var(--warning); }
.tag-red { background: #FCEBEB; color: var(--danger); }
.tag-gray { background: #f0f0f0; color: var(--text-2); }

.empty { text-align: center; color: var(--text-3); padding: 40px 0; font-size: 14px; }
.money { color: var(--danger); font-weight: 600; }

/* tabbar */
.ql-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 56px;
  background: #fff; border-top: 1px solid #eee; display: flex; z-index: 100;
}
.ql-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-3); }
.ql-tab.active { color: var(--primary); }
.ql-tab-icon { font-size: 20px; line-height: 1; }
.ql-tab-name { font-size: 11px; margin-top: 2px; }

/* toast */
.ql-toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(10px);
  background: rgba(0,0,0,.75); color: #fff; padding: 9px 18px; border-radius: 8px;
  font-size: 14px; opacity: 0; transition: all .25s; z-index: 999; max-width: 80%;
}
.ql-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 头部 */
.hero {
  background: linear-gradient(135deg, #0F6E56, #1D9E75); color: #fff;
  border-radius: var(--radius); padding: 18px 16px; margin-bottom: 12px;
}
.hero .hello { font-size: 13px; opacity: .9; }
.hero .house { font-size: 18px; font-weight: 600; margin-top: 4px; }

/* 宫格 */
.grid { display: flex; flex-wrap: wrap; background: #fff; border-radius: var(--radius); padding: 8px 0; }
.grid-item { width: 25%; display: flex; flex-direction: column; align-items: center; padding: 12px 0; }
.grid-item .gi-icon { font-size: 26px; }
.grid-item .gi-name { font-size: 12px; color: var(--text-2); margin-top: 6px; }

/* 二维码 */
.qr-wrap { background: #fff; border-radius: var(--radius); padding: 24px; text-align: center; }
.qr-wrap img, .qr-wrap canvas { margin: 0 auto; }
.qr-code-text { font-size: 18px; font-weight: 600; letter-spacing: 2px; margin-top: 10px; color: var(--primary); }

/* 顶栏 */
.navbar {
  position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #eee;
  display: flex; align-items: center; height: 46px; padding: 0 12px;
}
.navbar .back { font-size: 20px; padding: 4px 8px; margin-left: -8px; color: var(--text); }
.navbar .title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; margin-right: 30px; }

.img-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.img-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
