/* ============================================================
   我的出租房列表 - 独立样式文件
   政务风格，深蓝（藏青蓝）主色调，亮蓝色点缀，白色背景
   CSS REM 布局，根 100px，最小文字 0.22rem
   ============================================================ */

/* ---------- 全局重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: #f0f2f5;
  color: #333;
  min-height: 100vh;
  font-size: 0.22rem;
}

a { text-decoration: none; color: inherit; }

/* ---------- 顶部导航栏（政务风格） ---------- */
.gov-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: 0.8rem; line-height: 0.8rem;
  background: linear-gradient(135deg, #0d2137 0%, #1a3a5c 40%, #1e4a6e 100%);
  color: #fff; z-index: 999;
  display: flex; align-items: center;
  box-shadow: 0 0.02rem 0.12rem rgba(13,33,55,.35);
}
.gov-header .back-btn {
  width: 0.5rem; text-align: center; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.gov-header .back-btn:active { opacity: .7; }
.gov-header .back-btn svg { width: 0.4rem; height: 0.4rem; fill: none; stroke: #fff; stroke-width: 3; }
.gov-header h1 {
  flex: 1; font-size: 0.22rem; font-weight: 600; letter-spacing: 0.02rem;
  text-align: center; padding-right: 0.5rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gov-header::after {
  content: ''; display: block;
  position: absolute; bottom: 0; left: 0; right: 0; height: 0.02rem;
  background: linear-gradient(90deg, #2196F3, #64B5F6, #2196F3);
}

/* ---------- 主体 ---------- */
.main-body {
  padding-top: 1rem; padding-bottom: 0.3rem; max-width: 6rem; margin: 0 auto;
}

/* ---------- 报备新房屋按钮 ---------- */
.add-section {
  padding: 0.14rem 0.14rem 0.06rem;
}
.btn-add {
  display: flex; align-items: center; justify-content: center; gap: 0.06rem;co
  width: 100%; height: 0.48rem;
  background: linear-gradient(135deg, #1565C0 0%, #1976D2 50%, #2196F3 100%);
  color: #fff!important; border-radius: 0.08rem;
  font-size: 0.22rem; font-weight: 700; letter-spacing: 0.03rem;
  box-shadow: 0 0.04rem 0.12rem rgba(25,118,210,.3);
  transition: all .2s ease;
}
.btn-add:active {
  transform: translateY(0.01rem);
  box-shadow: 0 0.02rem 0.06rem rgba(25,118,210,.25);
}
.btn-add svg { width: 0.2rem; height: 0.2rem; fill: none; stroke: #fff; stroke-width: 2.5; }

/* ---------- 空状态 ---------- */
.empty-state {
  text-align: center; padding: 0.8rem 0.2rem;
}
.empty-state .empty-icon {
  width: 0.6rem; height: 0.6rem; margin: 0 auto 0.16rem;
  background: #e8edf3; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.empty-state .empty-icon svg { width: 0.3rem; height: 0.3rem; fill: none; stroke: #90a4ae; stroke-width: 2; }
.empty-state p { font-size: 0.22rem; color: #90a4ae; margin-bottom: 0.12rem; }
.empty-state .empty-link {
  display: inline-block; padding: 0.08rem 0.24rem;
  background: linear-gradient(135deg, #1565C0, #2196F3);
  color: #fff; border-radius: 0.06rem;
  font-size: 0.22rem; font-weight: 500;
}

/* ---------- 房屋卡片 ---------- */
.house-card {
  margin: 0 0.14rem 0.14rem;
  background: #fff; border-radius: 0.1rem;
  box-shadow: 0 0.02rem 0.08rem rgba(0,0,0,.06);
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.house-card:active {
  box-shadow: 0 0.02rem 0.04rem rgba(0,0,0,.08);
}

/* 卡片头部：地址 + 状态 */
.house-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.14rem 0.16rem;
  border-bottom: 0.01rem solid #f0f3f7;
}
.house-addr {
  flex: 1; font-size: 0.22rem; font-weight: 600; color: #1a3a5c;
  line-height: 1.4; word-break: break-all;
}
.house-status {
  flex-shrink: 0; margin-left: 0.1rem;
}

/* 状态标签 */
.status-tag {
  display: inline-block; padding: 0.03rem 0.1rem;
  border-radius: 0.04rem; font-size: 0.22rem; font-weight: 500;
  white-space: nowrap;
}
.status-tag.tag-ok { background: #e8f5e9; color: #2e7d32; }
.status-tag.tag-wait { background: #fff3e0; color: #e65100; }
.status-tag.tag-no { background: #ffebee; color: #c62828; }
.status-tag.tag-cancel { background: #eceff1; color: #546e7a; }

/* 卡片内容 */
.house-card-body {
  padding: 0.1rem 0.16rem;
  border-bottom: 0.01rem solid #f0f3f7;
}
.house-info-row {
  display: flex; align-items: center;
  padding: 0.04rem 0;
  font-size: 0.22rem; color: #546e7a;
  line-height: 1.5;
}
.house-info-row .info-label {
  color: #90a4ae; flex-shrink: 0;
  margin-right: 0.08rem;
}
.house-info-row .info-value {
  color: #333;
}

/* 卡片底部操作按钮 */
.house-card-footer {
  display: flex; background: #fafbfd;
}
.house-card-footer .footer-btn {
  flex: 1; text-align: center;
  padding: 0.1rem 0;
  font-size: 0.22rem; color: #455a64;
  transition: background .2s ease;
  border-right: 0.01rem solid #f0f3f7;
  cursor: pointer;
}
.house-card-footer .footer-btn:last-child { border-right: none; }
.house-card-footer .footer-btn:active { background: #eef2f7; }
.house-card-footer .footer-btn.btn-danger { color: #c62828; }
.house-card-footer .footer-btn.btn-primary { color: #1565C0; font-weight: 600; }

/* ---------- 编辑弹窗 ---------- */
.dialog-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.dialog-box {
  width: 85%; max-width: 4.5rem;
  background: #fff; border-radius: 0.12rem;
  overflow: hidden; box-shadow: 0 0.08rem 0.3rem rgba(0,0,0,.2);
}
.dialog-title {
  padding: 0.18rem 0.16rem 0.12rem;
  font-size: 0.22rem; font-weight: 700; color: #1a3a5c;
  text-align: center; border-bottom: 0.01rem solid #eef2f7;
}
.dialog-body {
  padding: 0.16rem;
}
.dialog-field {
  margin-bottom: 0.12rem;
}
.dialog-field:last-child { margin-bottom: 0; }
.dialog-label {
  display: block; font-size: 0.22rem; color: #546e7a;
  margin-bottom: 0.04rem; font-weight: 500;
}
.dialog-input {
  width: 100%; height: 0.42rem!important;
  padding: 0 0.1rem; border: 0.015rem solid #dde4ec;
  border-radius: 0.06rem; font-size: 0.22rem; color: #333;
  outline: none; background: #fafbfd; transition: all .2s ease;
  appearance: auto; -webkit-appearance: menulist;
}
.dialog-input:focus {
  border-color: #2196F3; box-shadow: 0 0 0 0.03rem rgba(33,150,243,.12);
  background: #fff;
}
select.dialog-input { cursor: pointer; }
.dialog-footer {
  display: flex; border-top: 0.01rem solid #eef2f7;
}
.dialog-btn {
  flex: 1; height: 0.46rem; border: none;
  font-size: 0.22rem; font-weight: 600; cursor: pointer;
  transition: background .2s ease;
}
.dialog-btn-cancel { background: #f5f5f5; color: #666; }
.dialog-btn-cancel:active { background: #e8e8e8; }
.dialog-btn-ok {
  background: linear-gradient(135deg, #1565C0, #2196F3);
  color: #fff;
}
.dialog-btn-ok:active { opacity: .85; }
