﻿/* 金房快签全局样式：蓝绿体系（主色=蓝 #2073c4，标题=藏青 #163a5c，绿=顺利），布局对齐金房管家 */
:root {
  /* 蓝绿体系：蓝 #2073c4 / 藏青 #163a5c / 绿 #2e9e62 */
  --primary: #2073c4;
  --primary-dark: #1a5a9e;
  --primary-soft: #e3eefb;
  --primary-outline: #a9c8ec;
  --danger: #d93025;
  --text: #1f2733;
  --text-light: #6b7280;
  --border: #d5e0ea;
  --bg: #eef4fa;
  --card: #ffffff;
  --radius: 10px;
  --radius-sm: 6px;
  --navy: #163a5c;
  --blue: var(--primary);
  --blue-dark: var(--primary-dark);
  --blue-soft: var(--primary-outline);
  --green: #2e9e62;
  --green-dark: #268a54;
  --green-soft: #e2f4e9;
  --green-text: #1c7a34;
}
/* 金房快签 全局样式：高信息密度 + 对齐金房管家淡青蓝设计 */
* { box-sizing: border-box; }
body {
  margin: 0; font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 28px; height: 60px;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex: 0 0 auto;
}
.brand-name { font-size: 19px; font-weight: 700; white-space: nowrap; }
.brand-logo svg { width: 64%; height: 64%; display: block; }
.nav { display: flex; align-items: center; flex: 1; gap: 4px; flex-wrap: wrap; }
.nav > a {
  padding: 6px 14px; border-radius: var(--radius-sm); color: var(--text-light);
  font-size: 14px; line-height: 1.4; white-space: nowrap;
}
.nav > a:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.nav > a.active { background: var(--primary); color: #fff; }
.brand-logo-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); }
/* 顶栏下拉菜单（交易管理 / 系统设置） */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-toggle {
  display: inline-block; padding: 6px 14px; border-radius: var(--radius-sm);
  color: var(--text-light); font-size: 14px; line-height: 1.4; white-space: nowrap;
}
.nav-dropdown-toggle:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.nav-dropdown-toggle[data-active="1"] { background: var(--primary); color: #fff; }
.nav-dropdown-toggle::after { content: "▾"; font-size: 11px; margin-left: 4px; opacity: .7; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 132px; padding: 4px 0; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1); z-index: 100;
}
/* 透明桥接区：覆盖按钮与菜单间的 8px 间隙，保证 hover 不中断；不影响按钮对齐 */
.nav-dropdown-menu::before {
  content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
/* 鼠标悬停或点击展开均显示 */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav .nav-sub-item {
  display: block; margin: 0; padding: 7px 16px; color: var(--text);
  border-bottom: none; white-space: nowrap; font-size: 14px;
}
.nav .nav-sub-item:hover, .nav .nav-sub-item.active {
  background: var(--primary-soft); color: var(--primary);
  text-decoration: none;
}

.nav .nav-sub-item.active { font-weight: 600; }

.container { max-width: 1280px; width: 100%; margin: 0 auto; padding: 22px 20px; flex: 1; }

/* 首页六卡看板：2 列 × 3 行，整页不出现上下滚动条 */
/* 60px 顶栏 + 22px 上内边距 + 22px 下内边距 + 36px 页脚 = 140px */
.home-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 16px;
  height: calc(100vh - 140px);
}
.home-card {
  position: relative; display: flex; flex-direction: column;
  justify-content: center; padding: 18px 24px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: inherit; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.home-card:hover {
  text-decoration: none; border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(32, 115, 196, .10);
  transform: translateY(-2px);
}
.hc-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.hc-icon {
  width: 36px; height: 36px; border-radius: 9px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.hc-icon svg { width: 20px; height: 20px; }
.hc-blue { background: var(--primary-soft); color: var(--primary); }
.hc-green { background: #e2f4e9; color: #2e9e62; }
.hc-amber { background: #fdf3e2; color: #b7791f; }
.hc-violet { background: #f1edfb; color: #6b46c1; }
.hc-teal { background: var(--primary-soft); color: var(--primary); }
.hc-rose { background: #fdecee; color: #c53030; }
.hc-num {
  font-size: 38px; font-weight: 700; color: var(--primary-dark);
  line-height: 1.15; margin-top: 12px; white-space: nowrap;
}
.hc-num small { font-size: 14px; font-weight: 400; color: var(--text-light); margin-left: 6px; }
.hc-sub { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.hc-arrow { position: absolute; right: 22px; bottom: 14px; color: #a9b8bf; font-size: 18px; }
/* 页脚随文档流排列（body 为 flex 列 + .container flex:1，短页时页脚自然沉底），
   不使用 fixed 定位，从根本上避免遮挡表单 */
.site-footer {
  height: 36px; flex: 0 0 auto;
  line-height: 36px; text-align: center; font-size: 13px; color: var(--text-light);
}
@media (max-width: 760px) {
  .home-grid { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
}

.flashes { margin-bottom: 16px; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 8px; }
.flash-success { background: var(--green-soft); color: var(--green-text); border: 1px solid #b8e3c2; }
.flash-error { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c0; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin-bottom: 16px;
}
.card:last-child { margin-bottom: 0; }
.card h2 { margin: 0 0 14px; font-size: 16px; color: var(--primary-dark); }
.section-title {
  font-size: 15px; font-weight: 600; margin: 22px 0 12px;
  padding-left: 9px; border-left: 3px solid var(--primary); color: var(--primary-dark);
}

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar form { display: flex; gap: 8px; flex: 1; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="search"], select, textarea {
  padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; background: var(--card); color: var(--text); width: 100%;
}
/* 文本类控件统一高度（textarea 除外），避免同页输入框/下拉框高矮不一 */
input[type="text"], input[type="tel"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="search"], select {
  height: 34px;
}
textarea { resize: vertical; min-height: 60px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft);
}

.btn {
  display: inline-block; padding: 6px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-size: 14px; line-height: 1.5; cursor: pointer; white-space: nowrap;
}
.btn:hover {
  background: var(--primary-soft); color: var(--primary);
  border-color: var(--primary); text-decoration: none;
}
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
.btn-danger { background: #fdecea; color: var(--danger); border-color: #f5c2bc; }
.btn-danger:hover { background: #fbd5d0; color: var(--danger); border-color: var(--danger); }
.btn-small { padding: 4px 10px; font-size: 13px; }

table.list { width: 100%; border-collapse: collapse; background: var(--card); }
table.list th, table.list td {
  padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left;
}
table.list th { background: #f4fafb; color: var(--primary-dark); font-weight: 600; }
table.list tr:hover td { background: var(--primary-soft); }
table.list td.cell-sub { font-size: 13px; color: var(--text-light); }
table.list td.cell-ops { white-space: nowrap; }
.empty { color: var(--text-light); text-align: center; padding: 40px 0; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-item { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.form-item label { font-size: 13.5px; color: #374151; font-weight: 600; }
.req { color: var(--danger); margin-left: 2px; }
.form-item:has(textarea) { grid-column: 1 / -1; }
/* 输入框统一样式（对齐管家） */
.form-item input, .form-item select, .form-item textarea,
.form-item .multiselect-toggle {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; background: #fff; color: var(--text);
  box-sizing: border-box; height: auto; line-height: 1.5;
}
.form-item textarea { resize: vertical; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus,
.form-item .multiselect-toggle:focus {
  outline: 2px solid var(--primary-outline); border-color: var(--primary);
}
/* select 下拉箭头 */
.form-item select, select.cell-input {
  -webkit-appearance: none; appearance: none; min-width: 0; line-height: 1.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 10px 6px;
}
.form-item select { padding-right: 30px; }
select.cell-input { padding-right: 18px; background-position: right 5px center; background-size: 9px 6px; }

.radio-row { display: flex; gap: 18px; align-items: center; padding: 8px 0; }
.radio-row label { display: flex; gap: 6px; align-items: center; cursor: pointer; }

.ocr-panel {
  border: 1px dashed var(--primary-outline); background: var(--primary-soft); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 6px;
}
.ocr-status { margin-top: 8px; font-size: 13px; color: var(--text-light); }
.ocr-status.ok { color: #1c7a34; }
.ocr-status.err { color: #b3261e; }

.photo-row { display: flex; gap: 20px; flex-wrap: wrap; }
.photo-item { width: 240px; }
.photo-item img { max-width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.detail-grid dt { color: var(--text-light); }
.detail-grid dd { margin: 0; }
.detail-item { display: flex; gap: 8px; }
.detail-item .k { color: var(--text-light); width: 120px; flex-shrink: 0; font-size: 13px; }
.detail-item .v { flex: 1; min-width: 0; word-break: break-all; font-size: 14px; }

.stat-cards { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 24px; min-width: 160px;
}
.stat-card .num { font-size: 30px; font-weight: 700; color: var(--primary-dark); }
.stat-card .label { color: var(--text-light); margin-top: 4px; }

.muted { color: var(--text-light); }
.mt { margin-top: 16px; }
.actions { display: flex; gap: 10px; margin-top: 20px; }

/* ================= 当事人模块（照搬金房管家版式）================= */
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.page-head h1 { margin: 0; font-size: 22px; color: var(--primary-dark); }
.page-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-light); border-color: transparent; }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.btn-disabled { background: #eef2f4; color: #9aa7ad; border-color: var(--border); cursor: not-allowed; }

.export-path-bar { background: #e8f7fa; border: 1px solid #b8e7ef; border-radius: var(--radius-sm);
  padding: 8px 14px; margin-bottom: 14px; font-size: 13px; color: var(--primary-dark);
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap; word-break: break-all; }
.export-path-bar code { font-family: Consolas, Menlo, monospace; color: #0a6170; }
.card-export-error { flex-basis: 100%; margin-top: 8px; background: #fdecea; color: #c5221f;
  border: 1px solid #f3b9b4; border-radius: var(--radius-sm); padding: 8px 14px; font-size: 13.5px; }

.search-bar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.search-bar input[type="search"] { flex: 1; min-width: 220px; }
.search-bar select { width: auto; }

.table-card { padding: 0; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.data-table th, .data-table td {
  padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border);
  font-size: 15px; white-space: nowrap; line-height: 1.5; height: 44px; box-sizing: border-box;
}
.data-table th { background: #f4fafb; color: var(--text-light); font-weight: 600; }
.data-table tbody tr:hover { background: #effafc; }
.mono { font-family: Consolas, "Courier New", monospace; }
.strong { font-weight: 600; }
.col-actions { white-space: nowrap; }
.col-actions .btn { margin-right: 4px; }
.inline-form { display: inline; margin: 0; }
.empty-tip { color: var(--text-light); text-align: center; padding: 32px 0; }
.list-count { color: var(--text-light); font-size: 13px; }
.row-name-link { color: var(--text); }

/* 详情内嵌信息表（对齐管家） */
.inline-info-table { min-width: 0; table-layout: fixed; width: calc(100% - 2px); }
.inline-info-table td { white-space: normal; word-break: break-all; height: auto; }
.inline-info-table td.k { white-space: nowrap; font-weight: 500; color: var(--text-light); background: #f4fafb; }
.inline-info-table td.prop-addr-cell { white-space: nowrap; word-break: normal; overflow: hidden; text-overflow: ellipsis; }
.inline-info-table td:first-child { white-space: nowrap; font-weight: 500; color: var(--text-light); background: #f4fafb; }

.auto-code-bar { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.code-chip { background: #e6f7fa; border: 1px dashed #8fd3df; border-radius: var(--radius-sm); padding: 8px 14px; display: flex; align-items: center; gap: 10px; }
.code-label { color: var(--text-light); font-size: 13px; }
.code-value { font-size: 16px; font-weight: 700; color: var(--primary); }
.code-auto { font-size: 13px; font-weight: 400; color: var(--text-light); }

.form-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: start; }
.form-section { border: none; margin-bottom: 22px; }
.form-section legend { font-size: 15px; font-weight: 700; color: var(--primary-dark); padding: 4px 10px; border-left: 4px solid var(--primary); margin-bottom: 12px; }
.form-item-full { grid-column: 1 / -1; }
.form-item--inline-tip .field-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.readonly-field { background: var(--bg); color: var(--text-light); }
.field-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }

.checkbox-group { display: flex; gap: 10px 16px; flex-wrap: wrap; padding-top: 6px; }
.checkbox-item { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.checkbox-item input { width: auto; }

.id-check-tip { display: none; font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.id-check-tip.show { display: inline-block; }
.id-check-tip.info { display: inline-block; background: var(--primary-soft); color: var(--primary-dark); }
.id-check-tip.ok { background: #e6f6e9; color: #1c7a34; }
.id-check-tip.error { background: #fdecea; color: #b3261e; }
.id-confirm-box {
  display: flex; gap: 6px; align-items: center; margin-top: 6px;
  font-size: 13px; color: #b3261e; cursor: pointer;
}
.id-confirm-box input { width: auto; }

/* 证件照片：双列栅格，身份证横向（85.6:54）卡片式展示 */
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.photo-box {
  border: 1px solid var(--border); border-radius: 10px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.photo-title { font-weight: 600; font-size: 14px; }
.photo-img { width: 100%; aspect-ratio: 85.6 / 54; object-fit: cover; border-radius: 3.8% / 6%; border: 1px solid var(--border); display: block; }
.photo-empty { color: var(--text-light); font-size: 13px; border: 1px dashed var(--border); border-radius: 3.8% / 6%; aspect-ratio: 85.6 / 54; display: flex; align-items: center; justify-content: center; padding: 0; }
/* 营业执照等竖向整页截图：完整显示，不铺满裁切，浅圆角 */
.photo-grid--doc .photo-img { aspect-ratio: 3 / 4; object-fit: contain; background: #f4fafb; border-radius: 10px; }
.photo-grid--doc .photo-empty { aspect-ratio: 3 / 4; border-radius: 10px; }
.photo-clear { font-size: 13px; color: var(--danger); display: flex; align-items: center; gap: 5px; }
.photo-hint { font-size: 12px; color: var(--text-light); }
.photo-input { font-size: 13px; }
/* 删除照片按钮：默认描边红字，激活后实心红；图片同步置灰 */
.photo-clear-btn { align-self: flex-start; }
.photo-clear-btn--on { background: var(--danger); border-color: var(--danger); color: #fff; }
.photo-clear-btn--on:hover { background: #d4483e; }
.photo-box.is-deleting .photo-img {
  opacity: .35; filter: grayscale(.8); outline: 2px dashed var(--danger); outline-offset: 2px;
}
/* 新照片预览：与主图同规格 */
.photo-new-preview { margin-top: 8px; }
.photo-old-link { display: block; }

.form-actions { display: flex; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.form-actions .btn-primary { min-width: 120px; }

.risk-banner {
  background: #fdecea; color: #b3261e; border: 1px solid #f5c6c0;
  border-radius: 6px; padding: 10px 14px; margin-bottom: 16px;
}

.detail-summary { display: flex; gap: 20px; align-items: stretch; flex-wrap: wrap; }
.detail-name-box { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.detail-name { font-weight: 700; color: var(--primary-dark); }
.detail-sub { color: var(--text-light); font-size: 13px; }
.detail-chips { display: flex; gap: 12px; flex: 1; flex-wrap: wrap; align-content: center; }
.chips-equal .code-chip { flex: 1; }
.detail-card .detail-section-title { margin: 0 0 14px; font-size: 15px; color: var(--primary-dark); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 0; }
.detail-item { display: flex; gap: 8px; }
.detail-item-full { grid-column: 1 / -1; }
.detail-item dt { color: var(--text-light); width: 120px; flex-shrink: 0; font-size: 13px; }
.detail-item dd { margin: 0; flex: 1; min-width: 0; word-break: break-all; font-size: 14px; }
.detail-empty { color: #b6bfc9; }
.detail-text { white-space: pre-wrap; }

.role-tag {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary-dark); font-size: 12px;
}
.role-tag--recv { background: #e6f6e9; color: #1c7a34; }
.role-tag--pay { background: #fff4e0; color: #9a6b00; }

@media (max-width: 980px) {
  .chips-equal { display: grid; grid-template-columns: 1fr 1fr; }
  .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .form-cols-2 { grid-template-columns: 1fr; }
}

/* 推进类主行动按钮：统一主色（对齐金房管家） */
.btn-green { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-green:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; text-decoration: none; }

/* ================= 房屋信息模块（照搬金房管家版式）================= */
.page-head-right { display: flex; gap: 8px; align-items: center; }
.form-hint { font-size: 12px; color: var(--text-light); }

.status-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.status-tab {
  padding: 6px 14px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--border); color: var(--text-light); font-size: 13px;
}
.status-tab:hover { text-decoration: none; border-color: var(--primary-outline); color: var(--primary); }
.status-tab.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.tab-count { margin-left: 6px; font-size: 12px; opacity: .75; }

.house-status {
  display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px;
  background: var(--primary-soft); color: var(--primary-dark);
}
.house-status.status-vacant { background: #e6f6e9; color: var(--green-text); }
.house-status.status-rented { background: var(--primary-soft); color: var(--primary-dark); }
.house-status.status-pending { background: #fff4e0; color: #9a6b00; }
.house-status.status-self_use { background: var(--bg); color: var(--text-light); }
.house-status.status-paused { background: #fdecea; color: #b3261e; }
.col-owner { max-width: 180px; }

.detail-row { display: flex; gap: 8px; }
.detail-label { color: var(--text-light); min-width: 130px; flex-shrink: 0; }
.detail-value { word-break: break-all; }

/* ================= 登录页（极淡青底 + 左侧线稿插画 + 右侧登录卡）================= */
.login-body {
  margin: 0; min-height: 100vh;
  background: linear-gradient(155deg, #f6fbfc 0%, #eaf6f8 50%, #e3f2f6 100%);
  position: relative;
  overflow: hidden;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

/* ---- 左侧插画区 ---- */
.login-hero {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  color: var(--primary-dark);
  user-select: none;
}
.hero-art {
  width: 100%;
  height: auto;
  opacity: .88;
}
.hero-line {
  stroke: #2a8fa1;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.hero-line-strong { stroke-width: 2.2; stroke: #2073c4; }
.hero-line-text { stroke-width: 1.1; stroke: #93b8de; stroke-dasharray: none; }
.hero-line-soft { stroke-width: 1.3; stroke: #a9c6e8; }
.hero-paper-shape { stroke-width: 1.8; stroke: #3d74ad; }
.hero-stamp {
  stroke: #d94444;
  stroke-width: 1.8;
  fill: none;
  opacity: .78;
}

/* 页脚品牌语 */
.login-footer {
  position: fixed; left: 0; right: 0; bottom: 22px;
  text-align: center; font-size: 12px; color: var(--text-light); letter-spacing: 1px;
}

/* ---- 右侧登录卡 ---- */
.login-wrap {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 36px 28px;
  width: 360px;
  box-sizing: border-box;
  box-shadow: 0 14px 48px rgba(32, 115, 196, .10), 0 2px 6px rgba(32, 115, 196, .04);
  z-index: 1;
}
@media (max-width: 1100px) {
  .login-hero { display: none; }
  .login-wrap { right: auto; left: 50%; transform: translate(-50%, -50%); }
}
@media (max-width: 768px) {
  .login-wrap {
    width: calc(100% - 48px);
    padding: 28px 22px 22px;
  }
}

.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; }
.login-logo {
  width: 48px; height: 48px; border-radius: var(--radius); flex-shrink: 0;
  background: var(--primary); color: #fff; padding: 11px; box-sizing: border-box;
}
.login-logo svg { width: 100%; height: 100%; display: block; }
.login-brand-text { flex: 0 0 auto; min-width: 0; }
.login-title { font-size: 23px; font-weight: 700; line-height: 1.25; color: var(--primary-dark);
  text-align: justify; text-align-last: justify; }
.login-subtitle { font-size: 12.5px; color: var(--text-light); line-height: 1; margin-top: 6px; white-space: nowrap; }

.login-form { display: flex; flex-direction: column; gap: 6px; }
.login-label { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 10px; }
.login-form input { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px;
  background: #fbfdfd; transition: border-color .15s, background .15s, box-shadow .15s; }
.login-form input::placeholder { color: #aab6bd; }
.login-form input:focus { outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 2px var(--primary-soft); }

.login-btn { margin-top: 18px; width: 100%; padding: 10px; font-size: 14px; letter-spacing: 4px;
  background: var(--primary); border: none; color: #fff; border-radius: var(--radius-sm); cursor: pointer;
  transition: background .15s, box-shadow .15s; box-shadow: 0 2px 6px rgba(32, 115, 196,.22); }
.login-btn:hover { background: var(--primary-dark); box-shadow: 0 3px 8px rgba(32, 115, 196,.30); }
/* 登录页提示浮层：固定顶部居中，不挤占登录卡布局 */
.login-flash { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 50; box-shadow: 0 6px 18px rgba(31,39,51,.10); min-width: 280px; text-align: center; }

/* 顶栏用户区（当前登录人 + 退出） */
.nav-user { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--text-light); font-size: 13px; }
.nav-user a { color: var(--text-light); }
.nav-user a:hover { color: var(--primary); text-decoration: none; }

.owners-table-wrap { margin-bottom: 6px; }
.owners-table input, .owners-table select { width: 100%; }
.share-wrap { position: relative; }
.share-wrap .owner-share { padding-right: 26px; }
.share-suffix {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); pointer-events: none;
}

.tag {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: 12px; background: var(--primary-soft); color: var(--primary-dark);
}
.tag-utility { background: #e6f6e9; color: var(--green-text); }

.company-manager-info {
  display: none; border: 1px dashed var(--primary-outline); background: var(--primary-soft);
  border-radius: 6px; padding: 10px 14px; margin-top: 6px;
}
.cmi-title { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.cmi-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 13px; }
.cmi-label { color: var(--text-light); }
.cmi-val { color: var(--text); }

.layout-picker { display: flex; gap: 4px; align-items: center; }
.layout-picker .layout-sel { width: 64px; }
.layout-unit { color: var(--text-light); font-size: 13px; }

/* 窄屏：证件照片单列 */
@media (max-width: 680px) {
  .photo-grid { grid-template-columns: 1fr; }
}

tenant-form { max-width: 100%; }

/* 窄屏：顶栏允许换行，避免菜单被裁切 */
@media (max-width: 1000px) {
  .topbar-inner { height: auto; min-height: 60px; flex-wrap: wrap; padding: 10px 20px; gap: 10px; }
  .nav { flex: 1 1 100%; }
  .nav-user { margin-left: 0; }
}

/* ============ 多选下拉（委托事项等，照搬金房管家） ============ */
.multiselect { position: relative; }
.multiselect-toggle {
  width: 100%; height: 34px; box-sizing: border-box;
  padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 14px; font-family: inherit; color: var(--text);
}
.multiselect-toggle:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-soft);
}
.multiselect-toggle .caret { color: var(--text-light); }
.multiselect-menu {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .12); padding: 6px 0;
}
.multiselect-option {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 14px;
  font-weight: 400; margin: 0; cursor: pointer; width: 100%; box-sizing: border-box;
}
.multiselect-option:hover { background: var(--primary-soft); }
.multiselect-option input { width: auto; }
.multiselect-option .opt-text { flex: 1; }
.multiselect:not(.open) .multiselect-menu { display: none; }
