/* =========================================================
   铺记 · 商铺租赁管理
   设计基调：暖纸色、深松绿、琥珀金；克制、清爽、适合手机
   ========================================================= */

:root {
  --paper: #f4f1e9;
  --paper-deep: #ece7db;
  --surface: #fffdf8;
  --surface-soft: #f9f6ef;
  --ink: #20332a;
  --ink-soft: #44564c;
  --muted: #7a857d;
  --line: #e5dfd1;
  --line-strong: #d6cebd;
  --green: #1f6b4b;
  --green-deep: #173a2d;
  --green-mid: #2f7d5c;
  --green-soft: #e5efe7;
  --amber: #b87a24;
  --amber-soft: #f7ecd6;
  --red: #b44a3b;
  --red-soft: #f8e6e1;
  --blue: #426b83;
  --blue-soft: #e5eef3;
  --violet: #6e6186;
  --violet-soft: #eee9f4;
  --shadow-sm: 0 2px 8px rgba(45, 55, 45, 0.04);
  --shadow: 0 18px 45px rgba(40, 50, 40, 0.07);
  --shadow-lg: 0 30px 80px rgba(25, 40, 30, 0.18);
  --radius: 20px;
  --radius-sm: 13px;
  --sidebar: 244px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", Georgia,
    serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--green);
  text-decoration: none;
}

img {
  max-width: 100%;
}

::selection {
  background: #d7e8db;
  color: var(--green-deep);
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.tnum,
.money,
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none !important;
}

/* ---------- 启动画面 ---------- */

.boot-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 253, 248, 0.9), transparent 48%),
    var(--paper);
}

.boot-logo {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: var(--green-deep);
  color: #f8f3e5;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  box-shadow: 0 16px 32px rgba(23, 58, 45, 0.2);
}

.boot-name {
  font-size: 20px;
  letter-spacing: 0.22em;
  font-weight: 700;
  margin-top: 4px;
}

.boot-line {
  width: 90px;
  height: 2px;
  border-radius: 2px;
  background: var(--line-strong);
  overflow: hidden;
}

.boot-line span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--green);
  animation: boot-slide 1.1s ease-in-out infinite;
}

.boot-screen p {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

@keyframes boot-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.btn-primary {
  background: linear-gradient(180deg, #287a57, var(--green));
  color: #fffdf8;
  box-shadow: 0 8px 18px rgba(31, 107, 75, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 12px 24px rgba(31, 107, 75, 0.26);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
}

.btn-soft {
  background: var(--green-soft);
  color: var(--green);
}

.btn-ghost {
  color: var(--ink-soft);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--surface-soft);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-danger-soft {
  background: var(--red-soft);
  color: var(--red);
}

.btn-amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.btn-sm {
  min-height: 32px;
  padding: 0 11px;
  font-size: 12.5px;
  border-radius: 9px;
}

.btn-sm svg {
  width: 14px;
  height: 14px;
}

.btn-block {
  width: 100%;
}

.btn-link {
  border: 0;
  background: none;
  color: var(--green);
  font-weight: 600;
  padding: 4px 0;
  font-size: 13px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  display: inline-grid;
  place-items: center;
  color: var(--ink-soft);
  transition: 0.16s ease;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface-soft);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn.bare {
  border-color: transparent;
  background: transparent;
}

.icon-btn.sm {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.icon-btn.sm svg {
  width: 15px;
  height: 15px;
}

/* ---------- 登录 / 初始化 ---------- */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(460px, 0.92fr);
  background: var(--paper);
}

.auth-brand {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(227, 186, 108, 0.17), transparent 32%),
    radial-gradient(circle at 85% 80%, rgba(130, 178, 151, 0.2), transparent 38%),
    linear-gradient(145deg, #214c3b, #123126 70%);
  color: #f5f0e2;
  padding: 52px 58px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 239, 224, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 224, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(150deg, #000 10%, transparent 78%);
  pointer-events: none;
}

.auth-brand::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -150px;
  bottom: -160px;
  border: 1px solid rgba(244, 239, 224, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(244, 239, 224, 0.035),
    0 0 0 130px rgba(244, 239, 224, 0.02);
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f6efdd;
  color: var(--green-deep);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.56;
  margin-top: 2px;
}

.auth-hero {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 6vh 0;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #d8c59c;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.auth-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: #d8c59c;
}

.auth-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}

.auth-hero h1 em {
  font-style: normal;
  color: #e4c988;
}

.auth-hero p {
  color: rgba(245, 240, 226, 0.68);
  font-size: 14px;
  line-height: 1.9;
  max-width: 390px;
  margin: 0;
}

.auth-points {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.auth-point {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(245, 240, 226, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(245, 240, 226, 0.75);
  font-size: 11.5px;
}

.auth-point svg {
  width: 14px;
  height: 14px;
  color: #d8c59c;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 40px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  animation: rise 0.5s ease both;
}

.auth-card h2 {
  font-size: 27px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.auth-card > p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-foot {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.auth-foot svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--green);
}

.auth-mobile-brand {
  display: none;
}

/* ---------- 表单 ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > label,
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.field > label .req {
  color: var(--red);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 43px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffefa;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  font-size: 14px;
}

.textarea {
  min-height: 86px;
  resize: vertical;
  line-height: 1.65;
}

.input::placeholder,
.textarea::placeholder {
  color: #abb2ac;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(47, 125, 92, 0.1);
}

.input[type="date"],
.input[type="month"] {
  min-height: 43px;
}

.input-icon {
  position: relative;
}

.input-icon svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.input-icon .input {
  padding-left: 36px;
}

.input-wrap-suffix {
  position: relative;
}

.input-wrap-suffix .suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}

.input-wrap-suffix .input {
  padding-right: 48px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-grid .span-2 {
  grid-column: span 2;
}

.form-note {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.form-error {
  display: none;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  line-height: 1.5;
}

.form-error.show {
  display: block;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.check-row input {
  margin-top: 2px;
  accent-color: var(--green);
}

/* ---------- 应用骨架 ---------- */

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 26px 17px 18px;
  color: #f2eddf;
  background:
    radial-gradient(circle at 10% 8%, rgba(213, 176, 101, 0.11), transparent 35%),
    linear-gradient(165deg, #1e4a38 0%, #143329 66%, #112d23 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 58px;
  mask-image: linear-gradient(#000, transparent 80%);
  pointer-events: none;
}

.sidebar-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px 25px;
}

.sidebar-brand .brand-mark {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  font-size: 21px;
}

.sidebar-brand .brand-name {
  font-size: 16px;
  letter-spacing: 0.18em;
}

.sidebar-brand .brand-sub {
  font-size: 9px;
  letter-spacing: 0.14em;
}

.org-chip {
  position: relative;
  margin: 0 4px 24px;
  padding: 11px 12px;
  border: 1px solid rgba(245, 240, 226, 0.11);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.org-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9bd7d;
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(217, 189, 125, 0.1);
}

.org-chip span {
  font-size: 11.5px;
  color: rgba(245, 240, 226, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-label {
  position: relative;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: rgba(245, 240, 226, 0.34);
  padding: 0 12px 9px;
}

.nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(245, 240, 226, 0.67);
  font-size: 13.5px;
  text-align: left;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #f2eddf;
}

.nav-item.active {
  background: #f5efdf;
  color: var(--green-deep);
  font-weight: 650;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.nav-item.active svg {
  opacity: 1;
}

.nav-item .nav-count {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.nav-item.active .nav-count {
  background: var(--red);
}

.sidebar-foot {
  position: relative;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(245, 240, 226, 0.1);
}

.user-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
  min-width: 0;
}

.user-mini .avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.user-mini .meta {
  min-width: 0;
  flex: 1;
}

.user-mini .meta strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-mini .meta span {
  display: block;
  font-size: 10px;
  color: rgba(245, 240, 226, 0.45);
}

.user-mini .logout {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(245, 240, 226, 0.5);
  display: grid;
  place-items: center;
}

.user-mini .logout:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.user-mini .logout svg {
  width: 16px;
  height: 16px;
}

.main {
  min-height: 100vh;
  margin-left: var(--sidebar);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 253, 248, 0.95), transparent 38%),
    var(--paper);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 74px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(244, 241, 233, 0.83);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(214, 206, 189, 0.45);
}

.topbar-title h1 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.topbar-title p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.bell-wrap {
  position: relative;
}

.bell-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  border: 2px solid var(--paper);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-deep);
  color: #f6efdd;
  font-size: 14px;
  font-weight: 600;
  flex: 0 0 auto;
  letter-spacing: 0.02em;
}

.avatar.soft {
  background: var(--green-soft);
  color: var(--green);
}

.page {
  max-width: 1320px;
  padding: 27px 34px 54px;
  margin: 0 auto;
  animation: page-in 0.32s ease both;
}

.mobile-header,
.bottom-nav {
  display: none;
}

/* ---------- 页面标题与工具条 ---------- */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.page-head h1 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.2;
}

.page-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.page-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 330px;
}

.search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  height: 40px;
  padding: 0 13px 0 37px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  outline: none;
  font-size: 13px;
  transition: 0.16s ease;
}

.search-box input:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(47, 125, 92, 0.08);
}

.chips {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px;
  background: #ece7db;
  border-radius: 11px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.15s ease;
}

.chip:hover {
  color: var(--ink);
}

.chip.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 7px rgba(40, 50, 40, 0.09);
}

.toolbar-right {
  margin-left: auto;
  color: var(--muted);
  font-size: 11.5px;
}

/* ---------- 卡片与 KPI ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.card-pad {
  padding: 22px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.card-head h2,
.card-head h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.card-head p {
  margin: 3px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}

.card-head .head-link {
  font-size: 11.5px;
  color: var(--green);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 2px 0;
}

.card-head .head-link svg {
  width: 14px;
  height: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 25px 27px;
  border: 1px solid #ded6c4;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 18%, rgba(224, 193, 128, 0.2), transparent 31%),
    linear-gradient(120deg, #fffdf7, #f7f1e2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero::after {
  content: "租";
  position: absolute;
  right: 25px;
  bottom: -37px;
  font-family: var(--serif);
  font-size: 116px;
  line-height: 1;
  color: rgba(31, 107, 75, 0.055);
  pointer-events: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.13em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-kicker .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

.hero h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.hero h1 span {
  color: var(--green);
}

.hero p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 12.5px;
}

.hero p strong {
  color: var(--ink);
  font-weight: 650;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 20px;
}

.kpi {
  position: relative;
  overflow: hidden;
  padding: 18px 19px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow-sm);
  min-height: 134px;
  display: flex;
  flex-direction: column;
}

.kpi::after {
  content: "";
  position: absolute;
  top: 0;
  left: 19px;
  right: 19px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--green-soft);
}

.kpi.accent-red::after { background: var(--red-soft); }
.kpi.accent-amber::after { background: var(--amber-soft); }
.kpi.accent-blue::after { background: var(--blue-soft); }

.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 550;
}

.kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
}

.kpi-icon svg {
  width: 15px;
  height: 15px;
}

.kpi.accent-red .kpi-icon { background: var(--red-soft); color: var(--red); }
.kpi.accent-amber .kpi-icon { background: var(--amber-soft); color: var(--amber); }
.kpi.accent-blue .kpi-icon { background: var(--blue-soft); color: var(--blue); }

.kpi-value {
  margin-top: 13px;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.kpi-value .unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 3px;
  letter-spacing: 0;
}

.kpi-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.4;
}

.kpi-foot .up { color: var(--red); font-weight: 650; }
.kpi-foot .good { color: var(--green); font-weight: 650; }
.kpi-foot .warn { color: var(--amber); font-weight: 650; }

.occupancy {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.ring {
  --p: 0;
  --ring-color: var(--green);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: conic-gradient(var(--ring-color) calc(var(--p) * 1%), #ece7db 0);
  display: grid;
  place-items: center;
  position: relative;
}

.ring::before {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  position: absolute;
}

.ring span {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.occupancy .kpi-value {
  margin: 0;
  font-size: 25px;
}

.progress {
  height: 5px;
  width: 100%;
  background: #ece7db;
  border-radius: 4px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 4px;
  transition: width 0.45s ease;
}

.progress.red > span { background: var(--red); }
.progress.amber > span { background: var(--amber); }

/* ---------- 仪表盘 ---------- */

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.85fr);
  gap: 14px;
  margin-bottom: 14px;
}

.dash-grid.equal {
  grid-template-columns: 1fr 1fr;
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 9px;
  border-radius: 11px;
  transition: background 0.15s ease;
  min-width: 0;
}

.todo-item:hover {
  background: var(--surface-soft);
}

.todo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  flex: 0 0 auto;
}

.todo-icon svg {
  width: 17px;
  height: 17px;
}

.todo-icon.red { background: var(--red-soft); color: var(--red); }
.todo-icon.amber { background: var(--amber-soft); color: var(--amber); }
.todo-icon.blue { background: var(--blue-soft); color: var(--blue); }
.todo-icon.violet { background: var(--violet-soft); color: var(--violet); }

.todo-main {
  min-width: 0;
  flex: 1;
}

.todo-main strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.todo-main p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.todo-main p b {
  color: var(--red);
  font-weight: 650;
}

.todo-main p b.amber { color: var(--amber); }
.todo-main p b.green { color: var(--green); }

.todo-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.todo-amount {
  text-align: right;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.todo-amount small {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 1px;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 150px;
  padding: 8px 3px 0;
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
  min-width: 0;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 116px;
  width: 100%;
}

.chart-bar {
  width: 42%;
  max-width: 17px;
  min-height: 2px;
  border-radius: 4px 4px 2px 2px;
  background: #dcd5c5;
  position: relative;
  transition: height 0.4s ease;
}

.chart-bar.paid {
  background: var(--green);
}

.chart-bar:hover {
  filter: brightness(0.93);
}

.chart-label {
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 10px;
  color: var(--muted);
}

.chart-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  margin-right: 4px;
}

.chart-legend .billed { background: #dcd5c5; }
.chart-legend .paid { background: var(--green); }

.due-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.due-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.due-row .label {
  width: 62px;
  flex: 0 0 auto;
  font-size: 10.5px;
  color: var(--muted);
}

.due-row .progress {
  flex: 1;
}

.due-row .value {
  width: 24px;
  text-align: right;
  font-size: 10.5px;
  color: var(--ink-soft);
  font-weight: 600;
}

.mini-shop-list {
  display: flex;
  flex-direction: column;
}

.mini-shop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.mini-shop:last-child {
  border-bottom: 0;
}

.mini-shop .thumb {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.mini-shop .meta {
  flex: 1;
  min-width: 0;
}

.mini-shop .meta strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-shop .meta span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- 状态标签 ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  line-height: 1;
}

.pill::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.pill.no-dot::before {
  display: none;
}

.pill.vacant { background: #efebe1; color: #887960; }
.pill.maintenance { background: var(--blue-soft); color: var(--blue); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.gray { background: #efebe1; color: #7f7c72; }
.pill.violet { background: var(--violet-soft); color: var(--violet); }
.pill.lg {
  height: 27px;
  padding: 0 10px;
  font-size: 10.5px;
}

/* ---------- 表格 ---------- */

.table-card {
  overflow: hidden;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

th {
  padding: 11px 15px;
  text-align: left;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #faf7f0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee9dd;
  vertical-align: middle;
  font-size: 12.5px;
}

tbody tr {
  transition: background 0.13s ease;
}

tbody tr:hover {
  background: #fdfbf6;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td.right,
th.right {
  text-align: right;
}

td.nowrap,
th.nowrap {
  white-space: nowrap;
}

.cell-main {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.cell-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.shop-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
}

.thumb {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  flex: 0 0 auto;
  background: linear-gradient(145deg, #e6eee7, #d8e5db);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
  border: 1px solid rgba(31, 107, 75, 0.06);
}

.thumb.lg {
  width: 46px;
  height: 46px;
  border-radius: 11px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb.vacant {
  background: linear-gradient(145deg, #f0ece2, #e8e2d5);
  color: #9a8c72;
}

.money {
  font-weight: 650;
  white-space: nowrap;
}

.money small {
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 400;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.row-actions .btn {
  min-height: 29px;
  padding: 0 9px;
  font-size: 11px;
}

.row-actions .icon-btn {
  width: 29px;
  height: 29px;
}

.row-actions .icon-btn svg {
  width: 14px;
  height: 14px;
}

.table-empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
}

.table-empty strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 4px;
}

.table-empty p {
  margin: 0 0 14px;
  font-size: 11.5px;
}

/* ---------- 移动卡片列表 ---------- */

.m-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.m-card {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.m-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.m-card-head .meta {
  flex: 1;
  min-width: 0;
}

.m-card-head strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
}

.m-card-head p {
  margin: 2px 0 0;
  font-size: 10.5px;
  color: var(--muted);
}

.m-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid #eee9dd;
  border-bottom: 1px solid #eee9dd;
}

.m-card-grid .item span {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
}

.m-card-grid .item strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
}

.m-card-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.m-card-foot .btn {
  flex: 1;
}

/* ---------- 空状态 ---------- */

.empty {
  padding: 56px 22px;
  text-align: center;
}

.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 13px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  color: var(--green);
}

.empty-icon svg {
  width: 25px;
  height: 25px;
}

.empty h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.empty p {
  margin: 0 auto 16px;
  max-width: 330px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.onboarding {
  padding: 7px 2px 3px;
}

.onboarding-copy {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 17px;
  padding: 14px;
  border-radius: 13px;
  background: linear-gradient(120deg, #f3f8f2, #faf5e9);
  border: 1px solid #dfe9dc;
}

.onboarding-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface);
  color: var(--green);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #dfe9dc;
}

.onboarding-copy h3 {
  margin: 0 0 3px;
  font-size: 14px;
}

.onboarding-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.onboarding-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.onboarding-step {
  position: relative;
  min-height: 109px;
  padding: 13px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  text-align: left;
  transition: 0.16s ease;
}

.onboarding-step:hover {
  border-color: var(--green-mid);
  background: #fbfdf9;
  transform: translateY(-1px);
}

.onboarding-step .step-no {
  position: absolute;
  top: 10px;
  right: 11px;
  font-size: 9px;
  color: #b4ac9c;
  letter-spacing: 0.08em;
}

.onboarding-step .step-ico {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 10px;
}

.onboarding-step strong {
  display: block;
  font-size: 11.5px;
  line-height: 1.4;
}

.onboarding-step small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

/* ---------- 抽屉 ---------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(18, 34, 26, 0.35);
  backdrop-filter: blur(3px);
  animation: fade 0.2s ease both;
}

.drawer {
  position: fixed;
  z-index: 71;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100%);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: slide-in 0.26s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.drawer-head {
  position: relative;
  padding: 20px 22px;
  background: var(--green-deep);
  color: #f5f0e2;
  flex: 0 0 auto;
  overflow: hidden;
}

.drawer-head::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  right: -130px;
  top: -150px;
  border: 1px solid rgba(245, 240, 226, 0.18);
  box-shadow: 0 0 0 45px rgba(245, 240, 226, 0.03);
}

.drawer-head-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-head .shop-title {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.drawer-head .shop-title .thumb {
  width: 49px;
  height: 49px;
  border-color: rgba(255, 255, 255, 0.16);
}

.drawer-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.drawer-head .sub {
  margin-top: 3px;
  font-size: 11px;
  color: rgba(245, 240, 226, 0.55);
}

.drawer-head .icon-btn {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f0e2;
}

.drawer-head .icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.drawer-head .drawer-tags {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 7px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.drawer-head .pill {
  background: rgba(255, 255, 255, 0.11);
  color: #f5f0e2;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 36px;
  -webkit-overflow-scrolling: touch;
}

.drawer-section {
  margin-bottom: 17px;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.drawer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.drawer-section-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.drawer-section-head .btn {
  min-height: 28px;
  padding: 0 9px;
  font-size: 10.5px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}

.info-item span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 2px;
}

.info-item strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}

.contract-spotlight {
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(120deg, #f4f8f3, #edf3ec);
  border: 1px solid #dce8dd;
}

.contract-spotlight .tenant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.contract-spotlight .tenant strong {
  font-size: 14px;
}

.contract-spotlight .terms {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #dce8dd;
}

.contract-spotlight .terms span {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
}

.contract-spotlight .terms strong {
  font-size: 11.5px;
  font-weight: 600;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item .del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 23px;
  height: 23px;
  border: 0;
  border-radius: 7px;
  background: rgba(20, 33, 25, 0.64);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: 0.15s ease;
}

.gallery-item:hover .del {
  opacity: 1;
}

.gallery-item .del svg {
  width: 12px;
  height: 12px;
}

.gallery-add {
  aspect-ratio: 1 / 1;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 9.5px;
  transition: 0.16s ease;
}

.gallery-add:hover {
  border-color: var(--green-mid);
  color: var(--green);
}

.gallery-add svg {
  width: 19px;
  height: 19px;
}

.history-list {
  display: flex;
  flex-direction: column;
}

.history-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #eee9dd;
  min-width: 0;
}

.history-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.history-row .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
}

.history-row .dot.red { background: var(--red); }
.history-row .dot.amber { background: var(--amber); }
.history-row .dot.gray { background: #b6afa0; }

.history-row .meta {
  flex: 1;
  min-width: 0;
}

.history-row .meta strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-row .meta span {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 1px;
}

.history-row .side {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(12, 20, 15, 0.9);
  display: grid;
  place-items: center;
  padding: 25px;
  animation: fade 0.2s ease both;
}

.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
}

/* ---------- 弹窗 ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 34, 26, 0.42);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade 0.18s ease both;
}

.modal {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 19px;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.24s cubic-bezier(0.22, 0.9, 0.3, 1) both;
  overflow: hidden;
}

.modal.wide {
  max-width: 760px;
}

.modal.slim {
  max-width: 430px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.modal-head h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.modal-head p {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.modal-close {
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-close svg {
  width: 15px;
  height: 15px;
}

.modal-body {
  padding: 19px 22px;
  overflow-y: auto;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  flex: 0 0 auto;
}

.modal-foot .left {
  margin-right: auto;
}

.modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.confirm-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: var(--red);
  margin-bottom: 12px;
}

.confirm-icon svg {
  width: 21px;
  height: 21px;
}

.confirm-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.confirm-text strong {
  color: var(--ink);
}

/* ---------- 收租 / 催缴 ---------- */

.bill-summary {
  padding: 13px 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 16px;
}

.bill-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bill-summary-top strong {
  font-size: 13px;
}

.bill-summary .big-money {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.bill-summary .big-money small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

.bill-summary-grid {
  display: flex;
  gap: 22px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
}

.bill-summary-grid b {
  display: block;
  color: var(--ink);
  font-size: 12px;
  margin-top: 2px;
}

.reminder-msg {
  width: 100%;
  min-height: 150px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbf8f1;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
  resize: vertical;
}

.channel-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.channel-option {
  position: relative;
}

.channel-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.channel-option span {
  display: inline-flex;
  align-items: center;
  height: 33px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
}

.channel-option input:checked + span {
  border-color: var(--green-mid);
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 190px;
  overflow-y: auto;
}

.log-item {
  display: flex;
  gap: 9px;
  font-size: 11px;
  color: var(--ink-soft);
}

.log-item .time {
  flex: 0 0 92px;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.log-item .what {
  flex: 1;
}

.log-item .what b {
  font-weight: 600;
}

/* ---------- 设置页 ---------- */

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 14px;
  align-items: start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.settings-card {
  padding: 21px 22px;
  min-width: 0;
}

.settings-card h2 {
  margin: 0 0 3px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.settings-card > p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.settings-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 17px 0;
}

.qr-panel {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.remote-access-panel {
  padding: 12px;
  border: 1px solid #cfe1d4;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4faf4, #fbf8ee);
}

.remote-access-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.remote-access-head strong {
  font-size: 12px;
}

.remote-access-head > span:last-child {
  margin-left: auto;
  color: var(--muted);
  font-size: 9.5px;
}

.remote-access-off {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 11px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.remote-access-off svg { flex: 0 0 auto; margin-top: 1px; }
.remote-access-off b { color: var(--ink-soft); }

.qr-box {
  width: 116px;
  height: 116px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.qr-box img {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-info {
  min-width: 0;
  flex: 1;
}

.qr-info strong {
  display: block;
  font-size: 12.5px;
  margin-bottom: 2px;
}

.qr-info p {
  margin: 0 0 9px;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.5;
}

.url-box {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px 7px 11px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
}

.url-box code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 10.5px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.url-box .icon-btn {
  width: 29px;
  height: 29px;
  border-radius: 7px;
  flex: 0 0 auto;
}

.url-box .icon-btn svg {
  width: 14px;
  height: 14px;
}

.member-list {
  display: flex;
  flex-direction: column;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.member-row:last-child {
  border-bottom: 0;
}

.member-row .meta {
  flex: 1;
  min-width: 0;
}

.member-row .meta strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.member-row .meta span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}

.member-row .tag {
  font-size: 9.5px;
  color: var(--muted);
}

.data-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.data-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  text-align: left;
  transition: 0.16s ease;
}

.data-action:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.data-action .ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.data-action .ico.amber { background: var(--amber-soft); color: var(--amber); }
.data-action .ico.blue { background: var(--blue-soft); color: var(--blue); }
.data-action .ico.violet { background: var(--violet-soft); color: var(--violet); }

.data-action .ico svg {
  width: 15px;
  height: 15px;
}

.data-action .txt {
  min-width: 0;
}

.data-action strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
}

.data-action span {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 1px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  max-height: 320px;
  overflow-y: auto;
}

.activity-row {
  display: flex;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid #f0ece3;
  font-size: 10.5px;
}

.activity-row:last-child {
  border-bottom: 0;
}

.activity-row .time {
  flex: 0 0 82px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.activity-row .who {
  flex: 0 0 auto;
  color: var(--ink-soft);
}

.activity-row .what {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ---------- 提醒中心 ---------- */

.reminder-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.reminder-stat {
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.reminder-stat span {
  font-size: 10px;
  color: var(--muted);
  display: block;
}

.reminder-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  margin-top: 4px;
  letter-spacing: -0.04em;
}

.reminder-stat.red strong { color: var(--red); }
.reminder-stat.amber strong { color: var(--amber); }
.reminder-stat.blue strong { color: var(--blue); }

.reminder-group {
  margin-bottom: 14px;
  overflow: hidden;
}

.reminder-group-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbf8f1;
}

.reminder-group-head .ico {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: var(--red);
}

.reminder-group-head .ico.amber { background: var(--amber-soft); color: var(--amber); }
.reminder-group-head .ico.blue { background: var(--blue-soft); color: var(--blue); }

.reminder-group-head .ico svg {
  width: 14px;
  height: 14px;
}

.reminder-group-head h3 {
  margin: 0;
  font-size: 13px;
}

.reminder-group-head .count {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}

.reminder-items {
  display: flex;
  flex-direction: column;
}

.reminder-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid #f0ece3;
}

.reminder-item:last-child {
  border-bottom: 0;
}

.reminder-item .meta {
  flex: 1;
  min-width: 0;
}

.reminder-item .meta strong {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
}

.reminder-item .meta p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.reminder-item .meta p b {
  color: var(--red);
  font-weight: 650;
}

.reminder-item .meta p b.amber { color: var(--amber); }

.reminder-item .side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.reminder-item .amount {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- 导入 ---------- */

.dropzone {
  position: relative;
  padding: 30px 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--surface-soft);
  text-align: center;
  transition: 0.16s ease;
  cursor: pointer;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--green-mid);
  background: #f3f8f3;
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}

.dropzone .dz-icon {
  width: 47px;
  height: 47px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
}

.dropzone .dz-icon svg {
  width: 22px;
  height: 22px;
}

.dropzone strong {
  display: block;
  font-size: 13px;
}

.dropzone p {
  margin: 4px 0 0;
  font-size: 10.5px;
  color: var(--muted);
}

.import-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.import-stat {
  padding: 9px;
  border-radius: 9px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  text-align: center;
}

.import-stat span {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
}

.import-stat strong {
  display: block;
  font-size: 18px;
  margin-top: 2px;
}

.import-preview {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
  max-height: 310px;
}

.import-preview table {
  min-width: 620px;
}

.import-preview th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 9px;
  padding: 8px 10px;
}

.import-preview td {
  padding: 8px 10px;
  font-size: 10.5px;
}

.import-row-error {
  background: #fdf4f1;
}

.import-msg {
  font-size: 9.5px;
  color: var(--red);
  line-height: 1.4;
}

.import-msg.warn {
  color: var(--amber);
}

.steps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}

.step .n {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 9px;
  background: var(--surface);
}

.step.active {
  color: var(--green);
  font-weight: 600;
}

.step.active .n {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.step-line {
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}

/* ---------- Toast ---------- */

.toast-root {
  position: fixed;
  z-index: 120;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 30px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 11px;
  background: var(--green-deep);
  color: #f7f2e5;
  font-size: 12px;
  box-shadow: 0 12px 30px rgba(20, 40, 30, 0.28);
  animation: toast-in 0.25s ease both;
  max-width: 100%;
}

.toast.error {
  background: #8d3b30;
}

.toast.warn {
  background: #8b641f;
}

.toast svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.toast.leaving {
  animation: toast-out 0.22s ease both;
}

/* ---------- 动画 ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(6px); }
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner.dark {
  border-color: rgba(31, 107, 75, 0.18);
  border-top-color: var(--green);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(90deg, #eee9dd 25%, #f7f3e9 37%, #eee9dd 63%);
  background-size: 400% 100%;
  animation: skeleton 1.3s ease infinite;
  border-radius: 8px;
}

@keyframes skeleton {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------- 街区地图 ---------- */

.map-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.map-stat {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.map-stat span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.map-stat strong {
  display: block;
  margin-top: 3px;
  font-size: 24px;
  letter-spacing: -0.04em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.map-stat small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}

.map-stat.red strong { color: var(--red); }
.map-stat.amber strong { color: var(--amber); }

.street-card {
  padding: 19px 21px 14px;
  margin-bottom: 14px;
}

.street-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.street-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.street-kicker svg { width: 13px; height: 13px; }

.street-head h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.street-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.street-tools .chips { background: #eee9dd; }

.map-zoom {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.map-zoom .icon-btn {
  border: 0;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

.map-zoom .icon-btn:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.map-zoom-label {
  min-width: 38px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.map-building-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.map-building-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 10.5px;
  transition: 0.15s ease;
}

.map-building-chip span {
  font-weight: 700;
  font-size: 11px;
}

.map-building-chip small {
  color: var(--muted);
  font-size: 9px;
}

.map-building-chip .dot {
  width: 5px;
  height: 5px;
}

.map-building-chip.active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.map-building-chip.active small { color: var(--green); }

.map-building-chip:hover {
  border-color: var(--line-strong);
}

.map-scroll {
  margin-top: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf6;
  max-height: 560px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.map-scroll.dragging {
  cursor: grabbing;
  user-select: none;
}

.map-scroll.dragging * {
  cursor: grabbing !important;
}

.map-stage {
  position: relative;
  min-width: 1100px;
}

.map-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.map-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.building-pin {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 58px;
  padding: 5px 8px;
  pointer-events: auto;
  border: 1.5px solid var(--green);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 5px 14px rgba(38, 48, 39, 0.14);
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.building-pin:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 8px 20px rgba(38, 48, 39, 0.22);
}

.building-pin strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.building-pin span {
  color: var(--green);
  font-size: 8.5px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}

.building-pin.has-overdue {
  border-color: var(--red);
  background: #fff9f7;
}

.building-pin.has-overdue span { color: var(--red); }

.building-pin.all-vacant {
  border-color: #b9b09e;
  background: rgba(249, 247, 240, 0.94);
}

.building-pin.all-vacant span { color: #8b806c; }

.building-pin.no-data {
  border-style: dashed;
  border-color: #c9c1b2;
  opacity: 0.62;
  cursor: default;
  box-shadow: none;
}

.building-pin.no-data strong { color: #7f7667; }
.building-pin.no-data span { color: #9a907f; }

.building-pin.active {
  z-index: 3;
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(31, 107, 75, 0.16), 0 8px 20px rgba(38, 48, 39, 0.18);
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  padding: 10px 2px 0;
  color: var(--muted);
  font-size: 9.5px;
}

.map-legend span { display: inline-flex; align-items: center; gap: 4px; }

.map-legend .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.map-legend .dot.green { background: var(--green); }
.map-legend .dot.gray { background: #b5ac9b; }
.map-legend .dot.red { background: var(--red); }
.map-legend .dot.amber { background: var(--amber); }

.map-hint {
  margin-left: auto;
  color: #a29a8b;
}

.map-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.map-building-card { padding: 19px 21px 21px; }

.map-building-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.map-building-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.building-badge {
  width: 47px;
  height: 47px;
  border-radius: 13px;
  background: var(--green-deep);
  color: #f6efdd;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
  flex: 0 0 auto;
}

.map-building-title h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.map-building-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.map-floor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.map-filter {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: #eee9dd;
}

.chip.mini {
  height: 27px;
  padding: 0 9px;
  font-size: 10px;
  border-radius: 6px;
}

.floor-strip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px 11px;
  color: var(--muted);
  font-size: 10px;
}

.floor-strip .red { color: var(--red); font-weight: 650; }

.unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 8px;
}

.unit-tile {
  position: relative;
  min-height: 119px;
  padding: 11px 11px 10px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 11px;
  background: var(--surface);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}

.unit-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(38, 48, 39, 0.09);
  border-color: var(--line-strong);
}

.unit-tile.state-vacant {
  border-left-color: #b8ae9c;
  background: #fbf9f3;
}

.unit-tile.state-overdue {
  border-left-color: var(--red);
  background: #fffaf8;
}

.unit-tile.state-expiring {
  border-left-color: var(--amber);
  background: #fffdf7;
}

.unit-tile.state-maintenance {
  border-left-color: var(--blue);
  background: #f9fbfc;
}

.unit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 4px;
}

.unit-code {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.unit-state {
  font-size: 8.5px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 2px 6px;
  line-height: 1.2;
  white-space: nowrap;
}

.state-vacant .unit-state { color: #857962; background: #efebe1; }
.state-overdue .unit-state { color: var(--red); background: var(--red-soft); }
.state-expiring .unit-state { color: var(--amber); background: var(--amber-soft); }
.state-maintenance .unit-state { color: var(--blue); background: var(--blue-soft); }

.unit-tile > strong {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unit-meta {
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unit-tenant {
  font-size: 9.5px;
  color: var(--ink-soft);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unit-alert {
  margin-top: 5px;
  font-size: 10px;
  color: var(--red);
  font-weight: 700;
}

.unit-note {
  font-size: 9.5px;
  color: var(--amber);
}

.map-empty {
  grid-column: 1 / -1;
  padding: 27px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  font-size: 11px;
}

.map-empty svg { color: var(--green); margin-bottom: 2px; }
.map-empty strong { color: var(--ink); font-size: 12px; }

.map-side-card { padding: 17px 18px; }

.map-alert-list {
  display: flex;
  flex-direction: column;
}

.map-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 2px;
  border: 0;
  border-bottom: 1px solid #eee9dd;
  background: transparent;
  text-align: left;
}

.map-alert:last-child { border-bottom: 0; }
.map-alert:hover { background: var(--surface-soft); }
.map-alert .dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.map-alert .dot.red { background: var(--red); }
.map-alert .dot.amber { background: var(--amber); }
.map-alert .meta { min-width: 0; flex: 1; }
.map-alert .meta strong { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-alert .meta small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.map-alert svg { color: var(--muted); flex: 0 0 auto; }

.offsite-list { display: flex; flex-direction: column; }

.offsite-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 2px;
  border: 0;
  border-bottom: 1px solid #eee9dd;
  background: transparent;
  text-align: left;
}

.offsite-row:last-child { border-bottom: 0; }
.offsite-row:hover { background: var(--surface-soft); }

.offsite-code {
  min-width: 53px;
  padding: 4px 5px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 650;
  text-align: center;
  white-space: nowrap;
}

.offsite-row .meta { min-width: 0; flex: 1; }
.offsite-row .meta strong { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offsite-row .meta small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.offsite-row svg { color: var(--muted); flex: 0 0 auto; }

.map-help-card p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.street-overview-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 18px;
  border-color: #dfe9dc;
  background: linear-gradient(120deg, #f5f9f2, #fbf6e9);
}

.street-overview-left {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  flex: 0 0 auto;
}

.street-overview-left strong { font-size: 12px; }
.street-overview-note p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.6; }

.cad-modal-scroll {
  overflow: auto;
  max-height: 68vh;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf6;
}

.cad-modal-scroll img {
  display: block;
  width: 1400px;
  max-width: none;
  height: auto;
}



/* ---------- 铺记助手 ---------- */

.assistant-fab {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: var(--green-deep);
  color: #f9f3e3;
  box-shadow: 0 10px 28px rgba(18, 48, 36, 0.28);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.assistant-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(18, 48, 36, 0.35);
}

.assistant-fab svg { color: #e8cc8d; }

body.chat-open .assistant-fab { display: none; }
body.chat-open { overflow: hidden; }

.chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 109;
  background: rgba(20, 30, 24, 0.32);
  backdrop-filter: blur(2px);
}

.chat-panel {
  position: fixed;
  z-index: 110;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100vw);
  display: flex;
  flex-direction: column;
  background: #f7f3e9;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 50px rgba(20, 32, 24, 0.18);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  background: var(--green-deep);
  color: #f8f1df;
}

.chat-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #e8cc8d;
}

.chat-brand strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.chat-brand span {
  display: block;
  margin-top: 2px;
  color: rgba(248, 241, 223, 0.62);
  font-size: 9.5px;
}

.chat-head .icon-btn {
  color: rgba(248, 241, 223, 0.8);
}

.chat-head .icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.chat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 15px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-welcome { padding: 14px 4px; }

.chat-welcome-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 12px;
}

.chat-welcome h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.chat-welcome p {
  margin: 5px 0 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-suggestions button {
  text-align: left;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.8);
  color: var(--ink-soft);
  font-size: 11px;
  transition: 0.15s ease;
}

.chat-suggestions button:hover {
  border-color: var(--green);
  color: var(--green);
  background: #fffdf8;
}

.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 94%;
}

.chat-msg.user {
  align-self: flex-end;
  justify-content: flex-end;
}

.chat-msg.assistant { align-self: flex-start; }

.chat-avatar {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  margin-top: 2px;
}

.chat-bubble {
  position: relative;
  padding: 10px 12px 8px;
  border-radius: 12px;
  background: #fffdf7;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.72;
  word-break: break-word;
}

.chat-msg.user .chat-bubble {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fbf6e8;
  border-bottom-right-radius: 4px;
}

.chat-msg.assistant .chat-bubble { border-bottom-left-radius: 4px; }

.chat-bubble small {
  display: block;
  margin-top: 6px;
  color: #a29a8b;
  font-size: 8.5px;
  line-height: 1.3;
}

.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 35px;
}

.chat-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a8a08f;
  animation: chat-dot 1.1s infinite ease-in-out;
}

.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes chat-dot {
  0%, 70%, 100% { opacity: 0.35; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-2px); }
}

.chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 13px 8px;
  border-top: 1px solid var(--line);
  background: #fbf8f0;
}

.chat-compose textarea {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
  resize: none;
  padding: 10px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-size: 11.5px;
  line-height: 1.5;
  outline: none;
}

.chat-compose textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 107, 75, 0.08);
}

.chat-send {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
}

.chat-send:hover { background: var(--green-deep); }
.chat-send:disabled { opacity: 0.45; }

.chat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 15px 10px;
  color: #a29a8b;
  font-size: 8.5px;
  background: #fbf8f0;
}

.chat-foot button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 9px;
  padding: 2px;
}

.ai-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  margin: 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
}

.ai-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b7ad9b;
}

.ai-status.on {
  border-color: #c9dfd0;
  background: var(--green-soft);
  color: var(--green);
}

.ai-status.on .dot { background: var(--green); }
.ai-status strong { font-size: 10.5px; }
.ai-status span:last-child { margin-left: auto; font-size: 9px; }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-grid.equal { grid-template-columns: minmax(0, 1fr); }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { min-height: 100vh; padding: 30px 24px; }
  .auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 38px;
  }
  .auth-mobile-brand .brand-mark {
    background: var(--green-deep);
    color: #f6efdd;
  }
  .auth-mobile-brand .brand-name { font-size: 16px; }
  .auth-mobile-brand .brand-sub { color: var(--muted); }
  .auth-card { max-width: 400px; }
}

@media (max-width: 820px) {
  :root { --sidebar: 0px; }
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .topbar { display: none; }
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 25;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(244, 241, 233, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(214, 206, 189, 0.55);
  }
  .mobile-header .brand {
    gap: 9px;
  }
  .mobile-header .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--green-deep);
    color: #f6efdd;
    font-size: 18px;
    box-shadow: none;
  }
  .mobile-header .brand-name {
    font-size: 14px;
    letter-spacing: 0.16em;
  }
  .mobile-header .brand-sub { display: none; }
  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .mobile-header .icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: transparent;
    border-color: var(--line);
  }
  .mobile-header .bell-count {
    border-color: var(--paper);
  }
  .page {
    padding: 17px 15px calc(88px + env(safe-area-inset-bottom));
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }
  .page-head h1 { font-size: 23px; }
  .page-head p { font-size: 11.5px; }
  .page-head .page-actions { width: 100%; }
  .page-head .page-actions .btn { flex: 1; }
  .hero {
    padding: 20px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .hero h1 { font-size: 23px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .kpi-grid { gap: 9px; }
  .kpi { padding: 15px; min-height: 124px; }
  .kpi-value { font-size: 23px; }
  .kpi-head { font-size: 10.5px; }
  .kpi-icon { width: 25px; height: 25px; }
  .ring { width: 52px; height: 52px; }
  .ring::before { width: 40px; height: 40px; }
  .occupancy .kpi-value { font-size: 22px; }
  .card-pad { padding: 17px; }
  .card-head { margin-bottom: 14px; }
  .session-card { padding: 16px; }
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
  .toolbar {
    gap: 9px;
    margin-bottom: 12px;
  }
  .search-box { max-width: none; flex-basis: 100%; }
  .toolbar-right { display: none; }
  .chips { width: 100%; }
  .bottom-nav {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(62px + env(safe-area-inset-bottom));
    padding: 6px 6px env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 253, 248, 0.94);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(214, 206, 189, 0.65);
  }
  .bottom-nav button {
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--muted);
    font-size: 9.5px;
    position: relative;
    border-radius: 9px;
  }
  .bottom-nav button svg { width: 20px; height: 20px; }
  .bottom-nav button.active { color: var(--green); font-weight: 650; }
  .bottom-nav button.active::before {
    content: "";
    position: absolute;
    top: 1px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--green);
  }
  .bottom-nav .bn-dot {
    position: absolute;
    top: 5px;
    right: calc(50% - 15px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    border: 1px solid var(--surface);
  }
  .drawer { width: 100%; }
  .drawer-head { padding: 17px 17px; }
  .drawer-body { padding: 14px 14px 32px; }
  .drawer-section { padding: 15px; border-radius: 14px; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal {
    max-width: none;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    animation: sheet-in 0.28s cubic-bezier(0.22, 0.9, 0.3, 1) both;
  }
  .modal.wide { max-width: none; }
  .modal.slim { max-width: none; }
  .modal-head { padding: 17px 17px 13px; }
  .modal-body { padding: 16px 17px; }
  .modal-foot {
    padding: 12px 17px calc(12px + env(safe-area-inset-bottom));
  }
  .modal-foot .btn { flex: 1; }
  .modal-foot .left { flex: 0 0 auto; }
  .form-grid { grid-template-columns: 1fr; gap: 13px; }
  .form-grid .span-2 { grid-column: span 1; }
  .reminder-summary { grid-template-columns: repeat(2, 1fr); }
  .reminder-item {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 14px;
    gap: 9px;
  }
  .reminder-item .side {
    width: 100%;
    justify-content: space-between;
    padding-left: 0;
  }
  .reminder-item .side .btn { flex: 0 0 auto; }
  .reminder-group-head { padding: 13px 14px; }
  .reminder-stat { padding: 12px; }
  .reminder-stat strong { font-size: 21px; }
  .map-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .map-stat { padding: 12px; }
  .map-stat strong { font-size: 21px; }
  .street-card { padding: 15px 13px 12px; }
  .street-head { flex-direction: column; gap: 10px; }
  .street-head h2 { font-size: 14px; }
  .street-tools { width: 100%; justify-content: space-between; }
  .street-tools .chips { flex: 1; }
  .map-scroll { max-height: 58vh; }
  .map-stage { min-width: 1000px; }
  .map-hint { width: 100%; margin-left: 0; }
  .map-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .map-building-card { padding: 15px 14px 16px; }
  .map-building-head { flex-wrap: wrap; }
  .map-building-actions { margin-left: auto; }
  .map-floor-bar { align-items: flex-start; }
  .map-filter { width: 100%; overflow-x: auto; }
  .unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .unit-tile { min-height: 112px; padding: 10px 9px 9px 11px; }
  .map-side-card { padding: 15px 14px; }
  .street-overview-note { flex-direction: column; align-items: flex-start; gap: 6px; padding: 13px 14px; }
  .cad-modal-scroll img { width: 1100px; }
  .assistant-fab {
    right: 14px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    height: 42px;
    padding: 0 14px;
    font-size: 11px;
  }
  .chat-panel {
    width: 100%;
    border-left: 0;
    padding-top: env(safe-area-inset-top);
  }
  .chat-body { padding: 14px 13px 6px; }
  .chat-foot { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .chat-compose textarea { min-height: 40px; font-size: 12px; }
  .settings-card { padding: 17px; }
  .qr-panel { flex-direction: column; align-items: flex-start; }
  .data-actions { grid-template-columns: 1fr; }
  .import-summary { grid-template-columns: repeat(2, 1fr); }
  .toast-root { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .chart { gap: 6px; height: 135px; }
  .chart-bars { height: 102px; }
  .chart-bar { max-width: 14px; }
  .todo-side .btn { display: none; }
  .todo-item { padding: 10px 4px; }
  .onboarding-actions { grid-template-columns: 1fr; }
  .onboarding-step {
    min-height: 0;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .onboarding-step .step-ico { margin: 0; flex: 0 0 auto; }
  .onboarding-step .step-no { position: static; order: 3; margin-left: auto; }
  .onboarding-step small { display: none; }
  .onboarding-copy { padding: 12px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@keyframes sheet-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (max-width: 430px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi { min-height: 119px; padding: 13px; }
  .kpi-value { font-size: 21px; }
  .kpi-foot { font-size: 9.5px; }
  .occupancy { gap: 9px; }
  .ring { width: 45px; height: 45px; }
  .ring::before { width: 34px; height: 34px; }
  .ring span { font-size: 11px; }
  .occupancy .kpi-value { font-size: 19px; }
  .hero h1 { font-size: 21px; }
  .page-head h1 { font-size: 22px; }
  .modal-head h2 { font-size: 16px; }
  .info-grid { gap: 12px 8px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .bill-summary-grid { gap: 12px; flex-wrap: wrap; }
  .chart-label { font-size: 8.5px; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
