/* ============================================================
   租客入住报备页 - 独立样式文件
   政务风格，深蓝（藏青蓝）主色调，亮蓝色点缀，白色背景
   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;
}

/* ---------- 房屋信息摘要 ---------- */
.room-summary {
  margin: 0.14rem 0.14rem 0.12rem;
  padding: 0.14rem 0.16rem;
  background: linear-gradient(135deg, #1a3a5c, #234b73);
  border-radius: 0.1rem; color: #fff;
  box-shadow: 0 0.03rem 0.1rem rgba(26,58,92,.25);
}
.room-summary .sum-row {
  font-size: 0.22rem; line-height: 1.6;
  color: rgba(255,255,255,.85);
}
.room-summary .sum-row em {
  font-style: normal; color: #64B5F6; font-weight: 600;
}

/* ---------- 表单卡片 ---------- */
.form-card {
  margin: 0 0.14rem;
  background: #fff; border-radius: 0.1rem;
  box-shadow: 0 0.02rem 0.06rem rgba(0,0,0,.04);
  overflow: hidden;
}

.form-item {
  display: flex; align-items: center;
  padding: 0.12rem 0.16rem;
  border-bottom: 0.01rem solid #f0f3f7;
  min-height: 0.52rem;
}
.form-item:last-child { border-bottom: none; }
.form-item .label {
  width: 1.5rem; flex-shrink: 0;
  font-size: 0.22rem; color: #455a64; font-weight: 500;
  display: flex; align-items: center; gap: 0.02rem;
}
.form-item .label .required { color: #e53935; font-size: 0.22rem; font-weight: 700; }
.form-item .input-wrap { flex: 1; display: flex; align-items: center; }
.form-item input {
  flex: 1; width: 100%; height: 0.36rem; 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;
}
.form-item input:focus {
  border-color: #2196F3; box-shadow: 0 0 0 0.03rem rgba(33,150,243,.12);
  background: #fff;
}
.form-item input[type="date"] { appearance: auto; -webkit-appearance: menulist; cursor: pointer; }

/* ---------- 提交按钮 ---------- */
.submit-section { padding: 0.2rem 0.14rem 0; }
.btn-submit {
  width: 100%; height: 0.48rem; border: none; border-radius: 0.1rem;
  font-size: 0.22rem; font-weight: 700; letter-spacing: 0.04rem; color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #1565C0 0%, #1976D2 50%, #2196F3 100%);
  box-shadow: 0 0.04rem 0.14rem rgba(25,118,210,.35);
  transition: all .2s ease;
}
.btn-submit:active { transform: translateY(0.01rem); box-shadow: 0 0.02rem 0.08rem rgba(25,118,210,.3); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
