:root {
  --ink: #14211f;
  --ink-2: #3d4f4b;
  --muted: #788a86;
  --line: #e4eae8;
  --bg: #f3f6f5;
  --card: #ffffff;
  --primary: #11695c;
  --primary-dark: #0b4f45;
  --primary-soft: #e6f1ee;
  --accent: #e07b39;
  --accent-soft: #fdf0e5;
  --danger: #c94a4a;
  --danger-soft: #fbeaea;
  --warn: #b8860b;
  --warn-soft: #fdf5e0;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 33, 31, .04), 0 8px 24px rgba(20, 33, 31, .06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
a { color: inherit; text-decoration: none; }
.hide { display: none !important; }

/* ---------- 登录 ---------- */
.login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 15% 10%, #e8f3f0 0%, #f3f6f5 45%, #eef2f1 100%);
  padding: 24px;
}
.login-card {
  width: 940px; max-width: 100%; background: var(--card); border-radius: 20px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 380px 1fr; overflow: hidden;
}
.login-side {
  background: linear-gradient(160deg, #0f5f53 0%, #11695c 55%, #1b7a6b 100%);
  color: #fff; padding: 44px 36px; display: flex; flex-direction: column; justify-content: space-between;
}
.login-side .logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 17px; }
.login-side h1 { font-size: 30px; line-height: 1.35; margin: 26px 0 14px; font-weight: 700; }
.login-side p { color: rgba(255,255,255,.72); line-height: 1.8; font-size: 13px; }
.login-side .side-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.side-tags span { font-size: 12px; padding: 5px 10px; border-radius: 20px; background: rgba(255,255,255,.13); }
.login-form { padding: 46px 52px; }
.login-form h2 { font-size: 19px; margin-bottom: 6px; }
.login-form .sub { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; letter-spacing: .5px; }
.field input {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fbfdfc; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(17,105,92,.1); background: #fff; }
.btn-primary {
  width: 100%; height: 46px; border-radius: 10px; background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: 1px; transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: translateY(1px); }
.role-picks { display: flex; gap: 8px; margin-top: 20px; }
.role-picks button {
  flex: 1; padding: 9px 6px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px;
  color: var(--ink-2); background: #fbfdfc; transition: all .15s;
}
.role-picks button:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.login-tip { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ---------- 管理端框架 ---------- */
.admin { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: 64px; background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 18px; padding: 0 22px; position: sticky; top: 0; z-index: 30;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.topbar .brand small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 2px; }
.topbar .brand .logo-mark { background: var(--primary-soft); color: var(--primary); }
.switch-btn {
  display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--line); background: #fbfdfc; font-size: 13px; color: var(--ink-2); max-width: 330px;
}
.switch-btn:hover { border-color: var(--primary); background: var(--primary-soft); }
.switch-btn .pill { font-size: 11px; background: var(--primary-soft); color: var(--primary); padding: 2px 7px; border-radius: 5px; }
.switch-btn .caret { color: var(--muted); margin-left: 2px; }
.topbar .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 6px 10px 6px 6px; border-radius: 9px; }
.user-chip:hover { background: #f4f7f6; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.user-chip .uname { font-size: 13px; line-height: 1.25; }
.user-chip .urole { font-size: 11px; color: var(--muted); }
.link-btn { font-size: 12px; color: var(--muted); padding: 6px 10px; border-radius: 7px; }
.link-btn:hover { color: var(--danger); background: var(--danger-soft); }

.admin-body { flex: 1; display: flex; min-height: 0; }
.sidebar { width: 214px; background: var(--card); border-right: 1px solid var(--line); padding: 14px 12px; overflow-y: auto; }
.nav-group { margin-bottom: 6px; }
.nav-group .gtitle { font-size: 11px; color: #a2b1ad; padding: 10px 10px 6px; letter-spacing: 1px; }
.nav-item {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 9px;
  font-size: 13.5px; color: var(--ink-2); text-align: left; margin-bottom: 1px; position: relative;
}
.nav-item .ico { width: 20px; text-align: center; font-size: 15px; }
.nav-item:hover { background: #f4f7f6; }
.nav-item.on { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.nav-item .soon { margin-left: auto; font-size: 10px; color: #a2b1ad; background: #f3f6f5; padding: 1px 5px; border-radius: 4px; }

.main { flex: 1; padding: 22px 26px 40px; overflow-y: auto; min-width: 0; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-head h2 { font-size: 21px; letter-spacing: .5px; }
.page-head .desc { color: var(--muted); font-size: 12.5px; margin-top: 6px; line-height: 1.6; max-width: 720px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.ghost { background: #f6f9f8; }
.btn:disabled { opacity: .55; cursor: not-allowed; border-color: var(--line); color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(20,33,31,.03); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15px; }
.card-head .more { font-size: 12px; color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat-card .k { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat-card .v { font-size: 27px; font-weight: 700; margin-top: 10px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat-card .v small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.stat-card .foot { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.stat-card .foot b { color: var(--primary); font-weight: 600; }

.grid-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.badge { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 5px; line-height: 1.6; white-space: nowrap; }
.b-green { background: var(--primary-soft); color: var(--primary-dark); }
.b-orange { background: var(--accent-soft); color: #a8561e; }
.b-red { background: var(--danger-soft); color: var(--danger); }
.b-gray { background: #f0f3f2; color: var(--muted); }
.b-yellow { background: var(--warn-soft); color: var(--warn); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 11px 14px; background: #fafcfb; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tbl td { padding: 12px 14px; border-bottom: 1px solid #eff3f2; vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: #fbfdfc; }
.num { font-variant-numeric: tabular-nums; }

.tabs { display: flex; gap: 4px; margin-bottom: 16px; background: #eef2f1; padding: 4px; border-radius: 9px; width: fit-content; }
.tabs button { padding: 7px 16px; font-size: 13px; border-radius: 7px; color: var(--ink-2); }
.tabs button.on { background: #fff; color: var(--primary-dark); font-weight: 600; box-shadow: 0 1px 3px rgba(20,33,31,.07); }

.progress { height: 6px; border-radius: 4px; background: #edf1f0; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #1b8a79, #2fa896); border-radius: 4px; }

.timeline { position: relative; padding-left: 18px; }
.timeline:before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 2px; background: #e6eeec; }
.tl-item { position: relative; padding: 0 0 16px 6px; }
.tl-item:before { content: ""; position: absolute; left: -17px; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); }
.tl-item .d { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-item .t { font-size: 13px; font-weight: 600; margin-top: 2px; }
.tl-item .x { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.6; }

.vote-row { padding: 16px 20px; border-bottom: 1px solid #eff3f2; }
.vote-row:last-child { border-bottom: 0; }
.vote-row .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vote-row .title { font-size: 14.5px; font-weight: 600; }
.vote-bars { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.vb { display: grid; grid-template-columns: 96px 1fr 64px; align-items: center; gap: 10px; font-size: 12.5px; }
.vb .track { height: 8px; background: #f0f4f3; border-radius: 5px; overflow: hidden; }
.vb .track i { display: block; height: 100%; background: #cfdcd8; border-radius: 5px; }
.vb .track i.lead { background: linear-gradient(90deg, #2f9c86, #38b39a); }
.vb .cnt { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.club-card { padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.club-card .h { display: flex; align-items: center; gap: 10px; }
.club-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--primary-soft); display: grid; place-items: center; font-size: 20px; }
.club-card .n { font-size: 14.5px; font-weight: 600; }
.club-card .l { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.club-card .d { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; margin: 12px 0; min-height: 44px; }
.club-card .f { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); border-top: 1px solid #eff3f2; padding-top: 10px; }

.post-item { padding: 15px 20px; border-bottom: 1px solid #eff3f2; }
.post-item:last-child { border-bottom: 0; }
.post-item .meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.post-item .pt { font-size: 14px; font-weight: 600; margin: 7px 0 5px; display: flex; align-items: center; gap: 8px; }
.post-item .pc { font-size: 12.5px; color: var(--ink-2); line-height: 1.75; }
.post-item .replies { margin-top: 10px; padding: 10px 12px; background: #f7faf9; border-radius: 9px; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.post-item .replies .r { margin-bottom: 6px; }
.post-item .replies .r:last-child { margin-bottom: 0; }
.post-item .foot { display: flex; gap: 14px; align-items: center; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.post-item .foot button { color: var(--primary); font-size: 11.5px; }

.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty .ico { font-size: 34px; opacity: .5; display: block; margin-bottom: 12px; }
.empty p { font-size: 13px; line-height: 1.8; }

.soon-card { padding: 40px 32px; text-align: center; }
.soon-card .ico { font-size: 42px; }
.soon-card h3 { font-size: 17px; margin: 14px 0 8px; }
.soon-card p { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 560px; margin: 0 auto; }
.soon-card .chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.soon-card .chips span { font-size: 12px; color: var(--ink-2); background: #f4f7f6; padding: 5px 10px; border-radius: 6px; }

/* 小区切换 */
.mask { position: fixed; inset: 0; background: rgba(14, 26, 24, .42); z-index: 90; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 20px 20px; overflow-y: auto; }
.switcher { width: 760px; max-width: 100%; background: var(--card); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.22); overflow: hidden; }
.sw-head { padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.sw-head h3 { font-size: 17px; }
.sw-head p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.sw-search { margin-top: 14px; display: flex; align-items: center; gap: 8px; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: #fbfdfc; }
.sw-search input { flex: 1; border: 0; outline: none; background: transparent; }
.sw-body { padding: 18px 24px 24px; }
.city-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.city-tabs button { padding: 7px 16px; border-radius: 8px; font-size: 13px; background: #f2f6f5; color: var(--ink-2); }
.city-tabs button.on { background: var(--primary); color: #fff; }
.districts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.districts button { font-size: 12px; padding: 5px 12px; border-radius: 20px; border: 1px solid var(--line); color: var(--ink-2); }
.districts button.on { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.sw-hint { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 12px; }
.sw-card { text-align: left; border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; background: #fff; transition: all .15s; }
.sw-card:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(17,105,92,.1); transform: translateY(-1px); }
.sw-card.on { border-color: var(--primary); background: var(--primary-soft); }
.sw-card .cn { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.sw-card .ca { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.sw-card .cm { font-size: 11.5px; color: var(--ink-2); margin-top: 8px; display: flex; gap: 10px; }
.sw-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; background: #fbfdfc; }
.sw-foot .tip { font-size: 11.5px; color: var(--muted); }
.sw-foot button { padding: 8px 18px; border-radius: 8px; background: #f0f4f3; font-size: 13px; }

/* ---------- 业主端（手机 App 样式） ---------- */
.mobile-stage { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #e9f1ef, #f3f6f5 60%, #e8efed); padding: 28px 16px; }
.phone {
  width: 392px; height: 812px; background: #0d1a18; border-radius: 42px; padding: 10px;
  box-shadow: 0 30px 70px rgba(13, 26, 24, .28); position: relative; flex: none;
}
.phone-screen { width: 100%; height: 100%; background: var(--bg); border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.statusbar { height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-size: 12px; font-weight: 600; color: #fff; background: var(--primary); flex: none; }
.statusbar .icons { display: flex; gap: 5px; font-size: 10px; letter-spacing: .5px; }
.m-header { background: var(--primary); color: #fff; padding: 2px 18px 20px; flex: none; }
.m-header .row { display: flex; align-items: center; justify-content: space-between; }
.m-header .cname { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.m-header .cname span { font-size: 11px; opacity: .8; }
.m-header .bell { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 15px; }
.m-body { flex: 1; overflow-y: auto; padding: 16px 16px 14px; -webkit-overflow-scrolling: touch; }
.m-body::-webkit-scrollbar { width: 0; }
.m-card { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(20,33,31,.04); }
.m-card .ch { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.m-card .ch h3 { font-size: 14.5px; }
.m-card .ch button { font-size: 11.5px; color: var(--muted); }
.m-hero { background: linear-gradient(135deg, #12695c, #1d8574); color: #fff; border-radius: 18px; padding: 18px; margin-bottom: 12px; position: relative; overflow: hidden; }
.m-hero:after { content: ""; position: absolute; right: -30px; top: -40px; width: 140px; height: 140px; background: rgba(255,255,255,.08); border-radius: 50%; }
.m-hero .lab { font-size: 11.5px; opacity: .78; }
.m-hero .amount { font-size: 30px; font-weight: 700; letter-spacing: -.5px; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.m-hero .amount small { font-size: 13px; font-weight: 400; opacity: .8; margin-left: 3px; }
.m-hero .detail { font-size: 11.5px; opacity: .8; line-height: 1.7; }
.m-hero .pay { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-hero .pay button { flex: 1; height: 44px; border-radius: 12px; background: #fff; color: var(--primary-dark); font-size: 14px; font-weight: 600; }
.m-hero .pay button:disabled { background: rgba(255,255,255,.65); color: var(--primary-dark); opacity: .9; cursor: default; font-size: 13px; }
.m-hero .pay .hint { font-size: 10.5px; opacity: .8; width: 134px; line-height: 1.5; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quick { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 4px; border-radius: 12px; background: #f7faf9; }
.quick .qi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: #fff; }
.quick .ql { font-size: 11.5px; color: var(--ink-2); }

.notice-item { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f0f4f3; }
.notice-item:last-child { border-bottom: 0; padding-bottom: 0; }
.notice-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex: none; }
.notice-item .nt { font-size: 13px; line-height: 1.5; }
.notice-item .nd { font-size: 11px; color: var(--muted); margin-top: 4px; }

.m-vote { border: 1px solid #e9efee; border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.m-vote .t { font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.m-vote .s { font-size: 11px; color: var(--muted); margin-top: 5px; }
.m-vote .opt, .opt { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.m-vote .opt button, .opt button { height: 42px; border-radius: 10px; border: 1px solid #dfe9e6; font-size: 13px; color: var(--ink-2); background: #fbfdfc; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; width: 100%; }
.m-vote .opt button:active, .opt button:active { background: var(--primary-soft); border-color: var(--primary); }
.m-vote .opt button b, .opt button b { font-size: 12px; font-weight: 600; color: var(--primary); }

.bill-line { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #f0f4f3; }
.bill-line:last-child { border-bottom: 0; }
.bill-line .bl { font-size: 13px; }
.bill-line .bs { font-size: 11px; color: var(--muted); margin-top: 3px; }
.bill-line .ba { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.bill-line .ba .st { display: block; font-size: 10.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }

.m-section-title { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 10px; }
.m-section-title h3 { font-size: 14.5px; }
.m-section-title span { font-size: 11.5px; color: var(--muted); }

.m-post { padding: 12px 0; border-bottom: 1px solid #f0f4f3; }
.m-post:last-child { border-bottom: 0; }
.m-post .a { font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.m-post .tt { font-size: 13.5px; font-weight: 600; margin: 5px 0 4px; }
.m-post .cc { font-size: 12px; color: var(--ink-2); line-height: 1.65; }

.m-club { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f0f4f3; }
.m-club:last-child { border-bottom: 0; }
.m-club .ci { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; font-size: 20px; flex: none; }
.m-club .cn { font-size: 13.5px; font-weight: 600; }
.m-club .cd { font-size: 11px; color: var(--muted); margin-top: 3px; }
.m-club .cm { margin-left: auto; font-size: 11px; color: var(--primary); background: var(--primary-soft); padding: 4px 9px; border-radius: 6px; }

.tabbar { height: 62px; flex: none; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: 4px; }
.tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; color: #8b9a96; }
.tabbar button .ti { font-size: 19px; line-height: 1; }
.tabbar button.on { color: var(--primary); font-weight: 600; }

.m-profile-head { display: flex; align-items: center; gap: 12px; padding: 6px 0 16px; }
.m-profile-head .pa { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 18px; font-weight: 600; }
.m-profile-head .pn { font-size: 15px; font-weight: 600; }
.m-profile-head .ph { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.mrow { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #f0f4f3; font-size: 13.5px; }
.mrow:last-child { border-bottom: 0; }
.mrow .r { color: var(--muted); font-size: 12px; }
.m-note { font-size: 11.5px; color: var(--muted); text-align: center; padding: 14px 0 4px; line-height: 1.7; }

@media (max-width: 900px) {
  .login-card { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .login-form { padding: 34px 26px; }
  .sidebar { width: 168px; }
  .grid-2 { grid-template-columns: 1fr; }
  .main { padding: 18px 16px 30px; }
  .topbar { gap: 10px; padding: 0 14px; }
  .topbar .brand small { display: none; }
}
@media (max-width: 860px) {
  .admin-body { flex-direction: column; }
  .sidebar { width: 100%; display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-group { display: flex; gap: 4px; margin: 0; }
  .nav-group .gtitle { display: none; }
  .nav-item { white-space: nowrap; padding: 8px 12px; margin: 0; }
  .nav-item .soon { display: none; }
}
@media (max-width: 480px) {
  .mobile-stage { padding: 0; align-items: stretch; }
  .phone { width: 100%; height: 100vh; border-radius: 0; padding: 0; box-shadow: none; }
  .phone-screen { border-radius: 0; }
  .statusbar { display: none; }
  table.tbl { font-size: 12px; }
}

/* ---- v0.3 新增：流程条 / 楼栋筛选 / 档案键值 / 业主端房屋卡 ---- */
.stepper{display:flex;gap:0;margin:14px 0 2px;overflow-x:auto;padding-bottom:2px}
.step{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:74px;position:relative}
.step .dot{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:11px;
  background:#f1f4f3;color:#93a4a0;border:1px solid #e3ebe8;font-weight:600}
.step .lb{font-size:10.5px;color:#93a4a0;white-space:nowrap}
.step.done .dot{background:var(--primary-soft);color:var(--primary);border-color:#cfe6de}
.step.done .lb{color:var(--ink-2)}
.step.cur .dot{background:var(--primary);color:#fff;border-color:var(--primary);box-shadow:0 0 0 3px rgba(15,110,90,.12)}
.step.cur .lb{color:var(--primary);font-weight:600}
.chip-btn{height:32px;padding:0 11px;border-radius:16px;border:1px solid var(--line);background:#fff;font-size:12px;color:var(--ink-2);cursor:pointer}
.chip-btn.on{background:var(--primary);border-color:var(--primary);color:#fff}
.kv{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px dashed #eef4f2;font-size:12.5px}
.kv:last-child{border-bottom:none}
.kv span{color:var(--muted);flex:none}
.kv b{font-weight:500;color:var(--ink);text-align:right;line-height:1.6;word-break:break-all}
.m-house .hh{font-size:16px;font-weight:700;letter-spacing:.3px}
.m-house .ha{margin-top:8px;font-size:12px;color:var(--muted)}
.m-house .ha b{font-size:22px;color:var(--primary);font-weight:700;margin-right:2px}
.m-house .hs{margin-top:9px;display:flex;gap:8px}
.m-house .hs span{font-size:10.5px;color:var(--ink-2);background:#f4f8f6;border-radius:6px;padding:3px 8px}
.m-file{display:inline-flex;align-items:center;gap:5px;margin-top:7px;font-size:11px;color:var(--primary);
  background:#f1faf6;border:1px solid #d7ece3;border-radius:7px;padding:4px 8px;text-decoration:none;max-width:100%}
.m-file span,.m-file{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- v0.5 扫码登记 ---------- */
.join-page{min-height:100vh;background:linear-gradient(160deg,#0f5c51,#11695c 45%,#0b4a43);display:flex;align-items:center;justify-content:center;padding:20px 14px}
.join-card{width:100%;max-width:430px;background:#fff;border-radius:18px;box-shadow:0 18px 46px rgba(4,30,27,.28);overflow:hidden}
.join-head{background:linear-gradient(135deg,#11695c,#0d5549);color:#fff;padding:22px 22px 18px}
.join-head .logo{color:#fff;font-size:15px}
.join-head .logo-mark{background:#fff;color:#11695c}
.join-sub{font-size:19px;font-weight:700;margin-top:12px;letter-spacing:.5px}
.join-addr{font-size:12px;opacity:.78;margin-top:6px;line-height:1.7}
.join-body{padding:20px 22px 24px}
.join-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.join-body .field{margin-bottom:13px}
.join-body .field label{display:block;font-size:12px;color:#4b5f5b;margin-bottom:6px}
.join-body .field input,.join-body .field select{width:100%;height:44px;border:1px solid #d8e2df;border-radius:10px;padding:0 12px;font-size:14px;background:#fbfdfc;outline:none;color:#16211f}
.join-body .field input:focus,.join-body .field select:focus{border-color:#11695c;background:#fff}
.join-body .field select:disabled{background:#f2f5f4;color:#9aa8a4}
.join-agree{display:flex;gap:9px;align-items:flex-start;font-size:12px;color:#4b5f5b;line-height:1.7;margin:6px 0 14px}
.join-agree label{flex:1}
.join-tip{font-size:11.5px;color:#8b9a96;line-height:1.8;text-align:center;margin-top:12px}
.join-ok{width:64px;height:64px;line-height:64px;border-radius:50%;background:#e7f5f1;color:#11695c;font-size:32px;margin:0 auto}
@media(max-width:420px){.join-row{grid-template-columns:1fr}}
/* ---------- v0.5 扫码登记 · 修版 ---------- */
.join-page{width:100%;box-sizing:border-box}
.join-card{max-width:430px;min-width:0}
.join-row>*{min-width:0}
.join-body .field input,.join-body .field select{min-width:0;max-width:100%}
/* v0.5 修版2：避免 flex 容器被内容撑宽 */
.join-page{display:block;padding:16px 12px}
.join-card{margin:0 auto}
/* v0.5 修版3：直接限制页面宽度 */
.join-page{max-width:454px;margin:0 auto}
.join-card{width:auto;max-width:none}

/* ================= v0.6 邻里沟通 / 俱乐部 / 投票 / 业主首页 ================= */
/* 桌面端消息流 */
.msg{display:flex;gap:12px;padding:14px 4px;border-bottom:1px solid #f0f4f3}
.msg:last-child{border-bottom:0}
.msg .av{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#1d8574,#12695c);color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:600;flex:none}
.msg .body{flex:1;min-width:0}
.msg .mh{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12.5px;color:var(--ink-2)}
.msg .mh b{color:var(--ink);font-size:13px}
.msg .mh .hh{color:var(--muted);font-size:11px}
.msg .mh .tm{margin-left:auto;color:var(--muted);font-size:11px}
.msg .mt{font-size:13px;font-weight:600;margin-top:7px}
.msg .mc{font-size:13px;line-height:1.8;color:var(--ink-2);margin-top:5px;white-space:pre-wrap;word-break:break-word}
.msg .mf{display:flex;align-items:center;gap:12px;margin-top:9px;font-size:11.5px;color:var(--muted);flex-wrap:wrap}
.msg .mf button{color:var(--primary);font-size:11.5px}
.msg .mrep{margin-top:9px;background:#f7faf9;border-radius:10px;padding:8px 11px;font-size:12px;line-height:1.8;color:var(--ink-2)}
.msg-media{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}
.msg-media img{width:104px;height:104px;object-fit:cover;border-radius:10px;border:1px solid var(--line)}
.msg-media video{width:180px;border-radius:10px;background:#000}
.prop-tag{font-style:normal;font-size:10px;color:#b06a00;background:#fff8ec;border-radius:4px;padding:1px 4px;margin-left:5px}
.emoji-btn{width:32px;height:32px;border-radius:8px;background:#f5f9f8;font-size:16px;line-height:1}
.emoji-btn:hover{background:#e7f2ef}
.up-btn{display:inline-flex;align-items:center;gap:5px;height:34px;padding:0 12px;border:1px dashed #cfe0dc;border-radius:9px;background:#fbfdfc;font-size:12.5px;color:var(--ink-2);cursor:pointer}
.up-btn:hover{border-color:var(--primary);color:var(--primary)}
.up-prev{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.up-prev .pv{position:relative;width:86px;height:86px;border-radius:10px;background:#f3f8f6;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;overflow:hidden}
.up-prev .pv img{width:100%;height:100%;object-fit:cover}
.up-prev .pv b{position:absolute;left:0;right:0;bottom:0;background:rgba(0,0,0,.55);color:#fff;font-size:9.5px;font-weight:400;padding:2px 4px;text-align:center;white-space:nowrap;overflow:hidden}
.up-prev .pv button{position:absolute;right:3px;top:3px;width:18px;height:18px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:11px;line-height:1}
.up-prev .pv>span{font-size:28px}

/* 业主首页 */
.m-cover{height:168px;border-radius:16px;margin-bottom:12px;background:linear-gradient(135deg,#12695c,#2a9d86 60%,#5bbfa6);background-size:cover;background-position:center;position:relative;overflow:hidden}
.m-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,42,36,.05),rgba(6,42,36,.72))}
.mc-mask{position:absolute;left:0;right:0;bottom:0;padding:14px 16px;color:#fff;z-index:2}
.mc-name{font-size:20px;font-weight:700;letter-spacing:.5px}
.mc-sub{font-size:11px;opacity:.85;margin-top:5px}
.mc-tags{display:flex;gap:6px;margin-top:9px;flex-wrap:wrap}
.mc-tags span{font-size:10px;background:rgba(255,255,255,.2);border-radius:6px;padding:2px 7px;backdrop-filter:blur(2px)}
.m-intro .mi-t{font-size:12px;color:var(--primary);font-weight:600;margin-bottom:6px}
.m-intro .mi-c{font-size:12px;line-height:1.8;color:var(--ink-2)}
.m-intro .mi-f{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;font-size:10.5px;color:var(--muted)}
.m-ticker .tk-window{max-height:112px;overflow:hidden;position:relative}
.m-ticker .tk-item{display:flex;gap:8px;padding:7px 0;border-bottom:1px dashed #eef4f2}
.m-ticker .tk-item:last-child{border-bottom:0}
.m-ticker .dot{width:7px;height:7px;border-radius:50%;background:#cbd8d5;flex:none;margin-top:5px}
.m-ticker .dot.hot{background:#e0574b}
.m-ticker .tk-t{font-size:12.5px;line-height:1.5}
.m-ticker .tk-d{font-size:10px;color:var(--muted);margin-top:2px}
.m-section-title{display:flex;align-items:center;justify-content:space-between;padding:6px 4px 8px}
.m-section-title h3{font-size:14px;font-weight:600}
.m-section-title span,.m-section-title button{font-size:11px;color:var(--muted)}
.m-vote-card .t{font-size:13.5px;font-weight:600;line-height:1.5}
.m-vote-card .s{font-size:10.5px;color:var(--muted);margin-top:5px}
.m-bars{margin-top:9px}
.m-bars .mb{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.m-bars .lb{width:86px;font-size:11.5px;color:var(--ink-2);flex:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-bars .tr{flex:1;height:7px;border-radius:4px;background:#eef4f2;overflow:hidden}
.m-bars .tr i{display:block;height:100%;background:linear-gradient(90deg,#1d8574,#5bbfa6);border-radius:4px}
.m-bars .ct{font-size:10px;color:var(--muted);width:64px;text-align:right;flex:none}
.m-vote-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;flex-wrap:wrap}
.m-news .nn{font-size:12.5px;line-height:1.6;font-weight:600}
.m-news .nd{font-size:10.5px;color:var(--muted);margin:3px 0 10px}
.m-news:last-child .nd{margin-bottom:0}
.m-vol{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px dashed #eef4f2}
.m-vol:last-child{border-bottom:0}
.m-vol .vi{width:34px;height:34px;border-radius:10px;background:#f2f8f6;display:flex;align-items:center;justify-content:center;font-size:17px;flex:none}
.m-vol .vt{font-size:12.5px;font-weight:600}
.m-vol .vd{font-size:10.5px;color:var(--muted);margin-top:3px}
.m-vol .vj{font-size:10px;color:var(--primary);margin-top:2px}
.m-vol button{font-size:11px;color:var(--primary);border:1px solid #cfe0dc;border-radius:14px;padding:5px 11px;flex:none}

/* 手机邻里群 */
.m-tb{padding:2px 2px 10px}
.m-tb .seg{display:flex;gap:6px;background:#fff;border-radius:12px;padding:5px;box-shadow:0 2px 10px rgba(18,48,44,.06)}
.m-tb .seg button{flex:1;height:34px;border-radius:9px;font-size:12px;color:var(--ink-2)}
.m-tb .seg button.on{background:var(--primary);color:#fff;font-weight:600}
.m-tb .seg span{font-size:9px;opacity:.7}
.m-club-bar{display:flex;gap:7px;overflow-x:auto;padding:2px 2px 10px;scrollbar-width:none}
.m-club-bar::-webkit-scrollbar{display:none}
.club-pill{flex:none;height:30px;padding:0 11px;border-radius:15px;background:#fff;border:1px solid var(--line);font-size:11px;color:var(--ink-2);white-space:nowrap}
.club-pill.joined{border-color:#bfded7;background:#f2faf7;color:var(--primary)}
.m-chat{padding-bottom:6px}
.m-chat .msg{padding:11px 2px}
.m-chat .msg .av{width:32px;height:32px;border-radius:9px;font-size:13px}
.m-chat .msg .mc{font-size:12.5px}
.m-chat .msg .mh{font-size:11.5px}
.m-chat .msg .mh .tm{font-size:10px}
.m-chat .msg .mrep{font-size:11.5px}
.m-chat .msg-media img{width:84px;height:84px}
.m-chat .msg-media video{width:150px}
.m-composer{position:sticky;bottom:0;padding:8px 0 2px;background:linear-gradient(180deg,rgba(246,250,249,0),#f6faf9 35%)}
.m-composer button{width:100%;height:42px;border-radius:21px;background:#fff;border:1px solid var(--line);color:var(--muted);font-size:12.5px;text-align:left;padding:0 16px;box-shadow:0 2px 8px rgba(18,48,44,.05)}
.m-tb .row-b{display:flex;align-items:center;gap:8px;justify-content:space-between}
.m-tb .row-b button{font-size:12px;color:var(--primary)}
.m-tb .row-b b{font-size:13.5px}
.m-tb .row-b span{display:block;font-size:10px;color:var(--muted);margin-top:2px}
.m-talk-preview .mtp{display:flex;gap:9px;padding:6px 0}
.m-talk-preview .mtp .av{width:28px;height:28px;border-radius:8px;background:#e7f2ef;color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;flex:none}
.m-talk-preview .mtp-h{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}
.m-talk-preview .mtp-h b{color:var(--ink);font-size:11.5px}
.m-talk-preview .mtp-c{font-size:12px;color:var(--ink-2);line-height:1.6;margin-top:2px}

/* v0.6 修版：五项标签栏 + 公告栏高度 */
.tabbar{display:flex;padding:0 4px 4px}
.tabbar button{flex:1;min-width:0}
.m-ticker .tk-window{max-height:150px}

/* 长截图模式：?full=1（仅用于生成预览图） */
html.shot .mobile-stage{align-items:flex-start;padding:0;background:#f6faf9;min-height:0}
html.shot .phone{width:430px;height:auto;padding:0;border-radius:0;box-shadow:none;background:transparent}
html.shot .phone-screen{height:auto;border-radius:0;overflow:visible}
html.shot .m-body{overflow:visible;flex:none;padding:14px 14px 10px}
html.shot .statusbar{display:none}
html.shot .tabbar{position:sticky;bottom:0;background:#fff}
html.shot .m-composer{position:static}

/* v0.6 修版2：投票方案标签加宽 */
.m-bars .lb{width:112px}
.m-bars .ct{width:74px}

/* v0.6 修版3：管理端投票条加宽标签与票数列 */
.vote-bars .vb{grid-template-columns:minmax(200px,32%) 1fr 118px}
.vote-bars .vb>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vote-bars .vb .cnt{white-space:nowrap;font-size:11.5px}
.vote-bars .vb .track{min-width:80px}

.member-chip{display:inline-flex;align-items:center;gap:6px;background:#f4faf8;border:1px solid #dfeae7;border-radius:14px;padding:4px 8px;font-size:11.5px;color:var(--ink-2)}
.member-chip button{font-size:10.5px;color:#b03a3a}
.m-chat .msg .ct{white-space:nowrap}

/* v0.6.2 备案合规信息行：登录页、手机端、管理侧栏各挂一处 */
.legal-line{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center;color:var(--muted);font-size:11px;line-height:1.8;text-align:center}
.legal-line a{color:var(--muted);text-decoration:none}
.legal-line a:hover{color:var(--primary);text-decoration:underline}
.legal-line .dot{opacity:.45}
.login .legal-line{margin-top:18px}
.mobile-stage .legal-line{padding:12px 16px 18px}
.join-card .legal-line{padding:0 18px 16px}
/* 管理端侧栏备案信息块 */
.side-legal{padding:16px 10px 6px;font-size:10.5px;color:#a2b1ad;line-height:1.7}
.side-legal .legal-line{justify-content:flex-start;text-align:left;font-size:10.5px;color:#a2b1ad;margin-top:4px}
.side-legal .legal-line a{color:#a2b1ad}
.side-legal .legal-line a:hover{color:#fff}
.side-legal .legal-line{display:block;text-align:left;font-size:10.5px;color:#a2b1ad;margin-top:4px}
.side-legal .legal-line .dot{display:none}
.side-legal .legal-line>span,.side-legal .legal-line>a{display:block;line-height:1.65}
