/* ============================================================
   房东中心首页 - 独立样式文件
   政务风格，深蓝（藏青蓝）主色调，亮蓝色点缀，白色背景
   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: 2.2; }
.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;
}

/* ---------- 用户信息卡片 ---------- */
.user-card {
  margin: 0.14rem 0.14rem 0.1rem;
  padding: 0.18rem 0.2rem;
  background: linear-gradient(135deg, #1a3a5c, #234b73);
  border-radius: 0.1rem; color: #fff;
  display: flex; align-items: center; gap: 0.14rem;
  box-shadow: 0 0.03rem 0.1rem rgba(26,58,92,.25);
}
.user-card .user-avatar {
  width: 0.5rem; height: 0.5rem;
  background: rgba(255,255,255,.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.24rem; font-weight: 700; flex-shrink: 0;
}
.user-card .user-info { flex: 1; }
.user-card .user-info .user-name {
  font-size: 0.22rem; font-weight: 700; line-height: 1.4;
}
.user-card .user-info .user-mobile {
  font-size: 0.22rem; color: rgba(255,255,255,.65); margin-top: 0.04rem;
}

/* ---------- 功能菜单网格 ---------- */
.menu-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.1rem; margin: 0 0.14rem 0.14rem;
}
.menu-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0.2rem 0.1rem;
  background: #fff; border-radius: 0.1rem;
  box-shadow: 0 0.02rem 0.06rem rgba(0,0,0,.04);
  transition: all .2s ease; cursor: pointer;
}
.menu-item:active { transform: translateY(0.01rem); box-shadow: 0 0.01rem 0.03rem rgba(0,0,0,.06); }

.menu-item .menu-icon {
  width: 0.46rem; height: 0.46rem; border-radius: 0.1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.08rem;
}
.menu-item .menu-icon svg { width: 0.22rem; height: 0.22rem; fill: none; stroke: #fff; stroke-width: 2.5; }
.menu-item .menu-icon.icon-blue { background: linear-gradient(135deg, #1565C0, #2196F3); }
.menu-item .menu-icon.icon-green { background: linear-gradient(135deg, #2e7d32, #43a047); }
.menu-item .menu-icon.icon-orange { background: linear-gradient(135deg, #e65100, #fb8c00); }
.menu-item .menu-icon.icon-gray { background: linear-gradient(135deg, #546e7a, #78909c); }

.menu-item .menu-label {
  font-size: 0.22rem; color: #333; font-weight: 500;
}

/* ---------- 出租房列表 ---------- */
.house-section {
  margin: 0 0.14rem;
}
.house-section-title {
  padding: 0.1rem 0.16rem;
  font-size: 0.22rem; font-weight: 700; color: #1a3a5c;
  border-bottom: 0.01rem solid #eef2f7;
}

.house-card {
  display: block; background: #fff; border-radius: 0.1rem;
  box-shadow: 0 0.02rem 0.06rem rgba(0,0,0,.04);
  margin-bottom: 0.1rem; overflow: hidden;
  transition: box-shadow .2s ease;
}
.house-card:active { box-shadow: 0 0.01rem 0.03rem rgba(0,0,0,.06); }

.house-card-body {
  padding: 0.12rem 0.16rem;
  display: flex; align-items: flex-start; gap: 0.1rem;
}
.house-card .house-status-col {
  flex-shrink: 0;
}
.house-card .house-info-col { flex: 1; min-width: 0; }
.house-card .house-addr {
  font-size: 0.22rem; font-weight: 600; color: #333;
  line-height: 1.4; word-break: break-all;
}
.house-card .house-contact {
  font-size: 0.22rem; color: #78909c; margin-top: 0.04rem;
}

.house-card .house-arrow {
  flex-shrink: 0; display: flex; align-items: center;
  color: #b0bec5;
}
.house-card .house-arrow svg { width: 0.16rem; height: 0.16rem; fill: none; stroke: #b0bec5; stroke-width: 2; }

/* 状态标签 */
.status-tag {
  display: inline-block; padding: 0.02rem 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; }

/* ---------- 空状态 ---------- */
.empty-state {
  text-align: center; padding: 0.5rem 0.2rem;
  background: #fff; border-radius: 0.1rem;
  margin: 0 0.14rem;
}
.empty-state p { font-size: 0.22rem; color: #90a4ae; margin-bottom: 0.12rem; }
.empty-state .empty-link {
  display: inline-block; padding: 0.08rem 0.2rem;
  background: linear-gradient(135deg, #1565C0, #2196F3);
  color: #fff; border-radius: 0.06rem;
  font-size: 0.22rem; font-weight: 500;
}
