/* 试点版补充样式：沿用原型设计变量与视觉语言 */

.lf-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--danger-soft);
  color: #a25a51;
  font-size: 12.5px;
  line-height: 1.5;
}

.pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
  text-decoration: none;
}

.pager a:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.pager a.on {
  background: var(--olive-100);
  border-color: #d4ddca;
  color: var(--olive-700);
  font-weight: 600;
}

.form-card {
  max-width: 960px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.field-error {
  font-size: 11.5px;
  color: var(--danger);
  margin-top: -2px;
}

.input.has-error,
.select.has-error,
.textarea.has-error {
  border-color: #dcc0ba;
  background: #fdf8f7;
}

.follow-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

.follow-form .form-grid {
  gap: 14px 18px;
}

.timeline .tl-item:last-child {
  padding-bottom: 0;
}

.tl-card {
  margin-top: 8px;
}

.tl-card .row-between {
  gap: 8px;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

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

.nowrap {
  white-space: nowrap;
}

.table a.cell-link {
  color: var(--text);
  font-weight: 500;
}

.table a.cell-link:hover {
  color: var(--olive-700);
}

.topbar-form {
  display: inline-flex;
}

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--bg);
}

.error-card {
  width: min(520px, 100%);
  padding: 40px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}

.error-code {
  font-family: var(--font-num);
  font-size: 64px;
  line-height: 1;
  color: var(--olive-600);
}

.error-card h1 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

.error-card p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.error-card .btn {
  margin-top: 24px;
}

@media (max-width: 1100px) {
  .dash-grid,
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 照片缩略图 ---------- */
.thumb-link {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  flex: none;
}

.thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  display: block;
  background: var(--bg);
}

.photo-preview {
  margin-top: 10px;
}

.photo-preview img {
  max-width: 260px;
  max-height: 200px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
  object-fit: cover;
}

/* ---------- 移动端（置业顾问手机访问） ---------- */
/* 仅手机显示的元素，PC 端默认隐藏 */
.pc-mnav,
.topbar-more,
.topbar-brand-mobile { display: none; }

@media (max-width: 720px) {
  body.pc { padding-bottom: 72px; }

  /* PC 侧栏在手机上完全隐藏，改用独立底部标签栏 */
  .pc-sidebar { display: none !important; }

  .pc-mnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: stretch;
    height: calc(60px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .pc-mnav a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 6px 2px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-3);
    font-size: 12px;
    line-height: 1.15;
  }

  .pc-mnav a .i { width: 24px; height: 24px; }
  .pc-mnav a span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pc-mnav a.on { color: var(--olive-700); font-weight: 600; }
  .pc-mnav a.on .i { color: var(--olive-700); }

  .mob-panel {
    margin: 14px 14px 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
  }
  .mob-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 10px;
  }
  .mob-panel-head h3 { font-size: 15px; }
  .mob-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 12px 16px;
    border-top: 1px solid var(--line-soft, var(--line));
    color: var(--text);
  }
  .mob-row .mob-ico {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--olive-50, #f3f4ec);
    color: var(--olive-700);
  }
  .mob-row .mob-ico .i { width: 20px; height: 20px; }
  .mob-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .mob-txt strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mob-txt em { font-style: normal; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mob-txt em, .mob-row .badge { flex: 0 0 auto; }
  .mob-row .chev { color: var(--text-3); flex: 0 0 auto; }
  .mob-empty { padding: 18px 16px; font-size: 13px; color: var(--text-3); }
  .mob-tip { margin: 14px 20px 8px; font-size: 12px; line-height: 1.7; color: var(--text-3); }
  .mob-link-panel { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; }
  .mob-logout { padding: 0; }
  .mob-logout .mob-row { border-top: 0; }
  .page-head h2 { font-size: 20px; }
  .page-head p { font-size: 12px; line-height: 1.6; }
  .filter-bar { flex-wrap: wrap; gap: 8px; }
  .filter-bar .input, .filter-bar .select { flex: 1 1 140px; min-width: 0; }
  .detail-grid, .stack, .card { min-width: 0; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table { min-width: 640px; }
  .btn { min-height: 40px; }
  .icon-btn { min-width: 44px; min-height: 44px; }

  .pc-main { margin-left: 0; min-height: auto; }
  .topbar-more { display: inline-flex; }
  .topbar-brand-mobile { display: block; font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
  .topbar-title { display: none; }
  .topbar-logout { display: none; }

  .pc-topbar {
    height: auto;
    min-height: 56px;
    padding: 8px 14px;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .pc-topbar .topbar-logo { display: none; }
  .pc-topbar .topbar-title h1 { font-size: 16px; }
  .pc-topbar .crumb { display: none; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .global-search { display: none; }
  .topbar-actions .btn { padding: 7px 10px; font-size: 12px; }

  .pc-content { padding: 16px 14px 28px; }

  .page-head { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 16px; }
  .page-head h2 { font-size: 20px; }
  .page-head .head-actions { width: 100%; flex-wrap: wrap; }
  .page-head .head-actions .btn { flex: 1 1 auto; justify-content: center; }

  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 24px; }

  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip .item { padding: 12px 14px; }
  .stat-strip .item .v { font-size: 22px; }

  .filter-bar { flex-wrap: wrap; gap: 8px; padding: 12px; }
  .filter-bar .search-box { flex: 1 1 100%; width: 100%; }
  .filter-bar .select { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .filter-bar .spacer { display: none; }

  .dash-grid,
  .dash-grid-2,
  .dash-grid-3,
  .detail-grid { grid-template-columns: minmax(0, 1fr); }

  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 720px; }
  .list-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pager { flex-wrap: wrap; }

  .detail-hero { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; }
  .detail-actions { width: 100%; flex-wrap: wrap; }
  .detail-actions .btn { flex: 1 1 auto; justify-content: center; }
  .info-grid { grid-template-columns: minmax(0, 1fr); }

  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .col-2 { grid-column: auto; }
  .form-card { padding: 16px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; justify-content: center; }

  .modal { width: calc(100% - 24px); max-height: 88vh; }
  .modal-head,
  .modal-foot { padding: 14px 16px; }
  .modal-body { padding: 16px; }

  .card-head { flex-wrap: wrap; gap: 8px; }
  .card-body { padding: 14px 16px; }

  .error-page { padding: 16px; }
  .error-card { padding: 26px 20px; }
  .error-code { font-size: 52px; }

  .login-form-side { padding: 24px 18px; }
}

/* 分页保持原型按钮视觉（真实渲染使用 a 标签） */
.pager a {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pager a:hover { border-color: var(--line-strong); color: var(--text); }
.pager a.on { background: var(--olive-100); border-color: #d4ddca; color: var(--olive-700); font-weight: 600; }

a.chip { display: inline-flex; align-items: center; justify-content: center; }


/* 粘贴识别报备 */
.paste-item { border:1px solid var(--line); border-radius:14px; padding:16px; background:var(--surface); }
.paste-item + .paste-item { margin-top:14px; }
.paste-item-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; font-size:13px; }
.paste-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; }
.paste-field { display:flex; flex-direction:column; gap:5px; min-width:0; }
.paste-field > span { font-size:11px; color:var(--text-3); }
.paste-field-wide { grid-column:1 / -1; }
.paste-warn { margin-top:12px; padding:10px 12px; border-radius:10px; background:#fdf6e8; border:1px solid rgba(179,146,79,.35); font-size:11.5px; color:#8a6a2c; line-height:1.7; }
.paste-warn p { margin:0; }
.paste-warn p + p { margin-top:4px; }
.paste-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; flex-wrap:wrap; }
.paste-empty { padding:22px 0; text-align:center; font-size:12.5px; color:var(--text-3); }
.input.is-invalid { border-color:#c0392b !important; background:#fdf3f2 !important; }
.input.is-missing { border-color:#c9a227 !important; background:#fdf9ee !important; }
@media (max-width: 760px) { .paste-grid { grid-template-columns:1fr 1fr; } .paste-item { padding:13px; } }

