* { box-sizing: border-box; }
body { margin:0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background:#f5f6f8; color:#222; }
a { color:#07c160; text-decoration:none; }

/* ---------- H5 房源页 ---------- */
.h5 { max-width: 640px; margin: 0 auto; padding-bottom: 30px; }
.hero { position: relative; height: 220px; background:#ddd; overflow:hidden; }
.hero img { width:100%; height:100%; object-fit:cover; display:block; }
.hero-empty { height:100%; display:flex; align-items:center; justify-content:center; color:#999; }
.badge { position:absolute; top:12px; left:12px; padding:3px 10px; border-radius:12px; font-size:12px; color:#fff; }
.badge.ok { background:#07c160; }
.badge.off { background:#999; }
.card { background:#fff; margin:10px; padding:14px; border-radius:10px; }
.title { font-size:18px; margin:0 0 8px; }
.price { color:#fa5151; font-size:24px; font-weight:700; }
.price span { font-size:13px; color:#999; font-weight:400; }
.addr { color:#888; font-size:13px; margin-top:6px; }
.h2 { font-size:15px; margin:0 0 10px; }
.grid { display:grid; grid-template-columns:1fr 1fr; gap:10px 8px; }
.grid div { background:#fafafa; border-radius:8px; padding:8px; font-size:13px; }
.grid span { color:#999; display:block; font-size:12px; margin-bottom:2px; }
.intro { color:#555; font-size:13px; line-height:1.7; margin:12px 0 0; }
.vr-btn { display:block; margin:10px; padding:14px; text-align:center; background:#1a1a1a; color:#fff; border-radius:10px; font-size:15px; }
.call-btn { width:100%; padding:14px; border:0; border-radius:10px; background:#07c160; color:#fff; font-size:16px; }
.tip { color:#999; font-size:12px; margin:8px 0 0; }
.appt { display:flex; gap:8px; }
.appt input { flex:1; padding:12px; border:1px solid #e5e5e5; border-radius:8px; font-size:14px; }
.appt button { padding:0 16px; border:0; border-radius:8px; background:#07c160; color:#fff; font-size:14px; }
.foot { text-align:center; color:#bbb; font-size:12px; margin:18px 0 0; }

/* ---------- 后台 ---------- */
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; background:#f0f2f5; }
.login-box { width:320px; background:#fff; padding:26px; border-radius:12px; }
.login-box h1 { font-size:18px; margin:0 0 18px; text-align:center; }
.login-box input { width:100%; padding:11px; margin-bottom:12px; border:1px solid #ddd; border-radius:8px; font-size:14px; }
.login-box button { width:100%; padding:12px; border:0; border-radius:8px; background:#07c160; color:#fff; font-size:15px; }
.err { color:#fa5151; font-size:13px; margin:0 0 10px; }

.admin { max-width:1100px; margin:0 auto; padding:14px; }
.topbar { display:flex; justify-content:space-between; align-items:center; background:#fff; padding:12px 14px; border-radius:10px; margin-bottom:12px; font-size:14px; }
.stats { display:flex; gap:10px; margin-bottom:12px; }
.stat { flex:1; background:#fff; border-radius:10px; padding:14px; text-align:center; }
.stat em { display:block; font-size:24px; font-weight:700; font-style:normal; color:#07c160; }
.stat span { color:#999; font-size:12px; }
.actions { margin-bottom:12px; display:flex; gap:10px; }
.btn { display:inline-block; padding:9px 14px; background:#07c160; color:#fff; border:0; border-radius:8px; font-size:14px; cursor:pointer; }
.tbl { width:100%; background:#fff; border-collapse:collapse; border-radius:10px; overflow:hidden; font-size:13px; margin-bottom:18px; }
.tbl th, .tbl td { padding:9px 8px; border-bottom:1px solid #f0f0f0; text-align:left; }
.tbl th { background:#fafafa; color:#888; font-weight:500; }
.tbl .link { background:none; border:0; color:#07c160; cursor:pointer; padding:0; font-size:13px; }
.form { background:#fff; padding:16px; border-radius:10px; max-width:640px; }
.form label { display:block; margin-bottom:12px; font-size:13px; color:#555; }
.form input, .form select, .form textarea { width:100%; margin-top:5px; padding:10px; border:1px solid #ddd; border-radius:8px; font-size:14px; }
.qrlist { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:12px; margin-bottom:18px; }
.qrcard { background:#fff; border-radius:10px; padding:12px; display:flex; gap:12px; }
.qrcard img { width:110px; height:110px; }
.qinfo { font-size:13px; line-height:1.7; }
.qinfo .small { color:#999; font-size:12px; word-break:break-all; }
