/* ==================== 房屋管家 — 橙色主题 ==================== */

:root {
  --primary: #FF6B35;        /* 活力橙 */
  --primary-light: #F7931E;  /* 浅橙 */
  --primary-dark: #E85A1A;   /* 深橙 */
  --bg-warm: #FFF8F0;        /* 暖白背景 */
  --bg-white: #FFFFFF;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --success: #52B788;
  --warning: #F4A261;
  --danger: #E76F51;
  --border: #EEE5DD;
  --shadow: rgba(255, 107, 53, 0.08);
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background-color: var(--bg-warm);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-warm);
  position: relative;
}

/* ==================== 顶部栏 ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 2px 8px var(--shadow);
}
.header-title {
  font-size: 18px;
  font-weight: 600;
}
.header-link {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  text-decoration: none;
}
.header-link:active {
  opacity: 0.7;
}

/* ==================== 主内容区 ==================== */
.main {
  padding: 16px;
  padding-bottom: 80px;
}

/* ==================== 未登录提示 ==================== */
.login-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}
.login-icon {
  font-size: 56px;
  margin-bottom: 20px;
}
.login-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ==================== 按钮 ==================== */
.btn {
  display: inline-block;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  -webkit-user-select: none;
  user-select: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 500;
}
.btn-primary:active {
  opacity: 0.85;
  transform: scale(0.98);
}
.btn-lg {
  min-width: 200px;
}

/* ==================== 欢迎卡片（已登录）==================== */
.welcome-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  padding: 24px 20px;
  color: white;
  margin-bottom: 20px;
}
.welcome-text {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}
.welcome-sub {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 12px;
}
.status-tags {
  display: flex;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.tag-orange {
  background: rgba(255,255,255,0.25);
  color: white;
}
.tag-green {
  background: var(--success);
  color: white;
}

/* ==================== 区块标题 ==================== */
.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-left: 2px;
}

/* ==================== 功能模块网格 ==================== */
.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.module-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 1px 4px var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.module-card:not(.disabled):active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px var(--shadow);
}
.module-card.disabled {
  opacity: 0.55;
}
.module-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.module-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.module-desc {
  font-size: 11px;
  color: var(--text-light);
}

/* ==================== 通用工具类 ==================== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* 加载动画 */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  font-size: 14px;
}
.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== 登录页 ==================== */
.login-page {
  display: flex;
  flex-direction: column;
}
.login-header {
  text-align: center;
  padding: 60px 20px 30px;
}
.login-logo {
  font-size: 64px;
  margin-bottom: 12px;
}
.login-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.login-subtitle {
  font-size: 13px;
  color: var(--text-light);
}

/* 表单区域 */
.form-section {
  padding: 0 20px;
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  padding-left: 2px;
}
.form-input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-white);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}
.form-input::placeholder {
  color: #bbb;
}
.form-error {
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 10px;
  padding-left: 2px;
}

.btn-block {
  width: 100%;
  height: 46px;
  line-height: 46px;
  padding: 0;
  font-size: 16px;
}
.btn-block:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-text {
  background: transparent;
  color: var(--text-secondary);
  height: 40px;
  line-height: 40px;
  padding: 0;
  font-size: 14px;
}
.btn-text:active {
  color: var(--primary);
}

.form-switch {
  text-align: center;
  padding: 16px 0 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.form-switch a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.form-switch a:active {
  opacity: 0.7;
}

/* 微信登录区域 */
.wechat-login-area {
  padding: 8px 20px 32px;
}
.divider {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--text-light);
  font-size: 12px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider span {
  padding: 0 14px;
}
.btn-wechat {
  background: #07C160;
  color: white;
  height: 46px;
  line-height: 44px;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-wechat:active {
  opacity: 0.85;
}
.wechat-icon {
  font-size: 20px;
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px 20px;
  width: 100%;
  max-width: 340px;
}
.modal-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.modal-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* ==================== 顶部导航栏（右侧带用户入口）==================== */
.top-nav {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 14px 16px; box-shadow: 0 2px 8px var(--shadow);
}
.nav-content {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 600px; margin: 0 auto;
}
.nav-back {
  color: white; text-decoration: none; font-size: 15px;
  white-space: nowrap; min-width: 50px;
}
.nav-back:active { opacity: 0.7; }
.nav-title {
  color: white; font-size: 17px; font-weight: 600;
  flex: 1; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-btn {
  background: transparent; border: none; cursor: pointer;
  font-size: 14px; color: white; min-width: 50px; text-align: right;
}
.nav-user-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 16px; line-height: 1;
  -webkit-tap-highlight-color: transparent; transition: background 0.15s;
  flex-shrink: 0;
}
.nav-user-icon:active { background: rgba(255,255,255,0.4); }

/* ==================== 主内容区 ==================== */
.main-content {
  max-width: 600px; margin: 0 auto; padding-bottom: 24px;
}

/* ==================== TabBar（隐藏） ==================== */
.tabbar { display: none !important; }

/* ==================== 统计卡片 ==================== */
.stats-section { padding: 16px 20px 12px; }
.stats-header {
  display: flex; align-items: stretch; gap: 12px;
}
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; flex: 1; }
.stat-card {
  background: var(--bg-white); border-radius: var(--radius);
  padding: 14px 10px; text-align: center;
  border: 1px solid var(--border); box-shadow: 0 1px 3px var(--shadow);
}
.stat-num { font-size: 24px; font-weight: 700; color: var(--primary); line-height: 1.3; }
.stat-label { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* ==================== 筛选栏 ==================== */
.filter-bar { padding: 0 20px 12px; }
.filter-tabs { display: flex; gap: 8px; }
.filter-tab {
  height: 32px; line-height: 32px; padding: 0 16px;
  border-radius: 16px; font-size: 13px; font-weight: 500;
  background: var(--bg-white); border: 1.5px solid var(--border);
  color: var(--text-secondary); cursor: pointer;
  transition: all 0.2s; -webkit-tap-highlight-color: transparent;
}
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: white; }
.filter-tab:active:not(.active) { background: #f5f5f5; }

/* ==================== 房产卡片列表（双列大卡片） ==================== */
.house-list-section { padding: 0 16px; }
.house-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.house-card {
  display: flex; flex-direction: column;
  background: var(--bg-white); border-radius: 14px;
  border: 1px solid var(--border); overflow: hidden; text-decoration: none;
  color: inherit; transition: transform 0.15s, box-shadow 0.15s;
  padding: 16px 14px;
}
.house-card:active { transform: scale(0.97); box-shadow: 0 4px 14px rgba(0,0,0,0.1); }

/* 用途标签 */
.house-card-tag {
  display: inline-flex; align-self: flex-start; margin-bottom: 8px;
  padding: 3px 11px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white;
}
.tag-rent { background: linear-gradient(135deg, #52B788, #74c69d) !important; }
.tag-sell { background: linear-gradient(135deg, #E76F51, #f4a261) !important; }
.tag-idle { background: linear-gradient(135deg, #999, #bbb) !important; }

/* 小区名 */
.house-card-title { font-size: 17px; font-weight: 700; color: var(--text-primary); line-height: 1.35; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 信息行 */
.house-card-info {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px;
  font-size: 13px; color: var(--text-secondary);
}
.house-card-info span {
  background: linear-gradient(135deg, #FFF8F0, #fff);
  padding: 2px 8px; border-radius: 6px; white-space: nowrap; font-weight: 500;
}

/* 地址 */
.house-card-addr {
  font-size: 12px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 添加房屋按钮（统计栏右侧） */
.btn-add-house {
  flex-shrink: 0;
  width: 50px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(255,107,53,0.35);
  transition: all 0.2s;
  gap: 1px; line-height: 1.15; text-align: center;
}
.btn-add-house .add-icon { font-size: 20px; font-weight: 300; }
.btn-add-house .add-text-top { font-size: 12px; font-weight: 500; }
.btn-add-house .add-text-bottom { font-size: 12px; font-weight: 500; }
.btn-add-house:active { transform: scale(0.95); opacity: 0.85; }

/* ==================== 空状态 ==================== */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-light); }
.empty-state .empty-icon { font-size: 52px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; margin-bottom: 16px; }
.empty-state a.btn-primary.btn-sm { padding: 10px 24px; font-size: 14px; }

/* ==================== 小区选择器 ==================== */
.point-selector {
  display: flex; align-items: center; justify-content: space-between;
  height: 46px; padding: 0 14px; border: 1.5px solid var(--border);
  border-radius: 10px; background: var(--bg-white);
  cursor: pointer; transition: border-color 0.2s;
}
.point-selector:active { border-color: var(--primary); }
.point-selector .placeholder { color: #bbb; font-size: 14px; }
.point-selector .selected-point { font-size: 14px; color: var(--text-primary); font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrow-right { color: #ccc; font-size: 18px; font-weight: 300; }

/* ==================== 表单页扩展 ==================== */
.form-page { padding-top: 8px; }
.form-row { display: flex; gap: 10px; }
.flex-1 { flex: 1; }
.form-textarea {
  height: auto; resize: vertical; min-height: 72px; padding: 10px 14px; line-height: 1.5;
  border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px;
  outline: none; transition: border-color 0.2s; width: 100%;
}
.form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,0.1); }
.required { color: var(--danger); }
.bottom-spacer { height: 30px; }

/* 用途选择 */
.purpose-options { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.purpose-option input { display: none; }
.purpose-box {
  display: block; text-align: center; padding: 12px 6px; border-radius: 10px;
  background: var(--bg-white); border: 1.5px solid var(--border);
  font-size: 13px; transition: all 0.2s; cursor: pointer;
}
.purpose-option input:checked + .purpose-box {
  border-color: var(--primary); background: #FFF4ED; color: var(--primary); font-weight: 600;
}
.purpose-box:active { opacity: 0.75; }

/* 图片上传（参照 cityka upload-grid 风格） */
.photo-upload-area { display: flex; gap: 10px; align-items: flex-start; }
.photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1;
}
.photo-preview {
  aspect-ratio: 1; border-radius: 8px; overflow: hidden; position: relative;
  border: 1px solid var(--border);
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-delete-btn {
  position: absolute; top: 4px; right: 4px; z-index: 2;
  width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,0.55); color: white;
  border: none; font-size: 12px; line-height: 20px; text-align: center;
  padding: 0; cursor: pointer;
}
.photo-add-btn {
  aspect-ratio: 1; border-radius: 8px; border: 2px dashed #ccc;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; color: #bbb; font-size: 26px; background: #fafafa; transition: all 0.2s;
}
.photo-add-btn:active { border-color: var(--primary); color: var(--primary); background: #FFF4ED; }

/* ==================== 房屋照片卡片（详情页）==================== */
.house-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.house-photo-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  transition: opacity 0.15s;
}
.house-photo-thumb:active { opacity: 0.75; }

/* ==================== 县区列表（小区选择页）==================== */
.district-list { padding: 0 20px; }
.district-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 10px;
  cursor: pointer; transition: all 0.15s; -webkit-tap-highlight-color: transparent;
}
.district-item:active { border-color: var(--primary); background: #FFF8F0; }
.district-name { font-size: 15px; font-weight: 500; color: var(--text-primary); }

/* 搜索栏 */
.search-bar-wrap { padding: 12px 20px 8px; }
.search-bar {
  display: flex; align-items: center; height: 42px; background: var(--bg-white);
  border: 1.5px solid var(--border); border-radius: 22px; padding: 0 16px;
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--primary); }
.search-icon { font-size: 15px; margin-right: 8px; flex-shrink: 0; }
.search-input {
  flex: 1; border: none; outline: none; font-size: 14px; background: transparent; color: var(--text-primary);
}
.search-input::placeholder { color: #bbb; }
.search-clear {
  width: 22px; height: 22px; border-radius: 50%; background: #ddd; color: white; border: none;
  font-size: 14px; line-height: 22px; text-align: center; cursor: pointer; flex-shrink: 0;
}

.selected-district-tip {
  padding: 8px 20px; font-size: 13px; color: var(--text-secondary);
}
.selected-district-tip a { color: var(--primary); text-decoration: none; }

/* 小区结果项 */
.point-result-list { padding: 0 20px; }
.point-item {
  display: flex; align-items: center; padding: 12px 10px;
  border-bottom: 1px solid #f5f0eb; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background 0.15s;
}
.point-item:active { background: #fafafa; }
.point-item-img {
  width: 50px; height: 50px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #f0f0f0;
}
.point-item-noimg {
  width: 50px; height: 50px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f5f0eb; font-size: 22px;
}
.point-item-info { flex: 1; margin-left: 12px; min-width: 0; }
.point-item-name { font-size: 15px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.point-item-addr { font-size: 12px; color: var(--text-light); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check-icon { color: var(--success); font-size: 18px; font-weight: 700; flex-shrink: 0; margin-left: 10px; opacity: 0; transition: opacity 0.15s; }
.point-item:active .check-icon { opacity: 1; }

/* ==================== 房产详情页 ==================== */
.photo-swiper {
  width: 100%; height: 280px; background: linear-gradient(135deg, #2d2d3a 0%, #1a1a2e 100%);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; display: flex; align-items: center;
  scrollbar-width: none; -ms-overflow-style: none;
  position: relative;
}
.photo-swiper::-webkit-scrollbar { display: none; }
.swiper-wrapper { display: flex; width: 100%; height: 100%; }
.swiper-slide {
  width: 100%; flex-shrink: 0; scroll-snap-align: center; display: flex; align-items: center; justify-content: center;
}
.no-photo-slide {
  flex-direction: column; gap: 12px; color: rgba(255,255,255,0.45); font-size: 14px;
  background: linear-gradient(135deg, #FF6B3520, transparent);
}
.no-photo-slide span { font-size: 48px; opacity: 0.4; }
.photo-slide { width: 100%; height: 100%; position: relative; }
.photo-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swiper-counter {
  position: absolute; bottom: 14px; right: 18px; z-index: 5;
  background: rgba(0,0,0,0.6); color: white; padding: 4px 12px;
  border-radius: 12px; font-size: 12px; font-weight: 500; pointer-events: none;
  backdrop-filter: blur(4px);
}

/* 详情主体 — 卡片式 */
.detail-section {
  margin: 16px 20px 0; padding: 20px;
  background: var(--bg-white); border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* 小区名 + 用途标签 */
.detail-header-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.detail-point-name {
  font-size: 20px; font-weight: 700; color: var(--text-primary); flex: 1;
  line-height: 1.3;
}

/* 地址行（县区·小区地址）*/
.detail-address {
  font-size: 13px; color: var(--text-light); margin-bottom: 18px;
  display: flex; align-items: center; gap: 6px;
}
.detail-address::before {
  content: '📍'; font-size: 13px; flex-shrink: 0;
}

/* 信息网格 */
.detail-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 10px;
  padding-top: 14px; border-top: 1px solid #f5f0eb;
}
.detail-grid-item {
  background: linear-gradient(135deg, #FFF8F0, #FFFDF9);
  border-radius: 10px; padding: 12px 10px; text-align: center;
  border: 1px solid rgba(255,107,53,0.06);
  transition: transform 0.15s, box-shadow 0.15s;
}
.detail-grid-item:active { transform: scale(0.97); }
.dg-label {
  font-size: 11px; color: var(--text-light); display: block; margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.dg-value {
  font-size: 16px; font-weight: 600; color: var(--primary-dark);
}
.dg-full {
  grid-column: 1 / -1; text-align: left;
  display: flex; align-items: center; gap: 8px;
}
.dg-full .dg-label { flex-shrink: 0; }
.dg-full .dg-value { font-size: 14px; font-weight: 500; color: var(--text-primary); }

/* 备注 */
#remarkSection {
  margin: 12px 20px 0; padding: 16px 18px;
  background: var(--bg-white); border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-left: 3px solid var(--primary-light);
}
#remarkSection .section-title {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--primary); margin-bottom: 8px;
}
#remarkSection .section-title::before { content: '📝'; }
.detail-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; word-break: break-all; }

/* 底部操作栏 — 固定悬浮 */
.action-buttons {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 100; display: flex; gap: 10px; padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
  max-width: 600px; margin: 0 auto;
}
.btn-action {
  flex: 1; min-width: 80px; height: 46px; border-radius: 12px;
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 4px;
}
.btn-action:active { transform: scale(0.96); opacity: 0.85; }
.btn-edit {
  background: #f8f8f8; border: 1.5px solid #e5e5e5; color: var(--text-primary);
}
.btn-edit:active { background: #efefef; }
.btn-publish {
  background: linear-gradient(135deg, var(--primary), #ff8c42); color: white;
  box-shadow: 0 3px 12px rgba(255,107,53,0.35);
}
.btn-danger { background: #fef2f2; border: 1.5px solid #fecaca; color: var(--danger); }
.btn-danger:active { background: #fee2e2; }

/* ==================== 自定义确认弹窗 ==================== */
.confirm-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45); z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: fadeIn 0.2s ease;
}
.confirm-overlay.fade-out { animation: fadeOut 0.2s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

.confirm-box {
  width: 100%; max-width: 300px;
  background: var(--bg-white); border-radius: 16px;
  padding: 24px 20px 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.confirm-title { font-size: 17px; font-weight: 700; color: var(--text-primary); text-align: center; margin-bottom: 10px; }
.confirm-msg { font-size: 14px; color: var(--text-secondary); line-height: 1.6; text-align: center; margin-bottom: 22px; }
.confirm-btns { display: flex; gap: 10px; }
.confirm-btn {
  flex: 1; height: 42px; border-radius: 11px; border: none;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.cancel-btn { background: #f5f5f5; color: var(--text-secondary); }
.cancel-btn:active { background: #eee; }
.ok-btn { background: var(--danger); color: white; box-shadow: 0 3px 10px rgba(231,111,81,0.35); }
.ok-btn:active { opacity: 0.85; }

/* ==================== Toast ==================== */
.toast {
  position: fixed; top: 40%; left: 50%; transform: translateX(-50%) scale(0.9);
  background: rgba(51,51,51,0.88); color: white; padding: 10px 24px;
  border-radius: 8px; font-size: 14px; z-index: 999; pointer-events: none;
  opacity: 0; transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) scale(1); }

/* ==================== Spinner（加载中） ==================== */
.loading-spinner { text-align: center; padding: 32px; }
.spinner {
  width: 28px; height: 28px; border: 3px solid #eee; border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.6s linear infinite; display: inline-block;
}

/* 底部固定提交栏 */
.form-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08); z-index: 200;
}
.form-submit-btn {
  width: 100%; height: 48px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 17px; font-weight: 600; cursor: pointer;
}
.form-submit-btn:active { opacity: 0.85; }
.form-submit-btn:disabled { opacity: 0.5; }

/* ==================== 个人中心 ==================== */
.profile-card {
  background: var(--bg-white); border-radius: 16px;
  margin: 16px; padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.profile-header {
  display: flex; align-items: center; gap: 16px;
}
.avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; font-size: 28px; font-weight: 700;
}
.profile-info { flex: 1; min-width: 0; }
.profile-info h2 {
  font-size: 19px; font-weight: 700; color: var(--text-primary);
  margin: 0 0 4px;
}
.profile-info p {
  font-size: 13px; color: var(--text-secondary); margin: 0 0 6px;
}
.role-badge {
  display: inline-block; padding: 3px 11px; border-radius: 12px;
  font-size: 11px; font-weight: 600;
  background: linear-gradient(135deg, #667eea, #764ba2); color: white;
}

/* 功能菜单 */
.menu-section {
  margin: 8px 16px; background: var(--bg-white);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 4px var(--shadow);
}
.menu-item {
  display: flex; align-items: center; padding: 14px 16px;
  text-decoration: none; color: var(--text-primary);
  transition: background 0.15s; border-bottom: 1px solid #f5f0eb;
  -webkit-tap-highlight-color: transparent;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: #fafafa; }
.menu-icon { font-size: 20px; flex-shrink: 0; margin-right: 12px; }
.menu-text { flex: 1; font-size: 15px; font-weight: 500; }
.menu-arrow { color: #ccc; font-size: 22px; font-weight: 300; }
.menu-tag {
  padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 600;
}
.tag-unbound { background: #f0f0f0; color: #999; }
.tag-bound { background: #e8f8ee; color: #07C160; }

/* 退出登录 */
.logout-section { margin-top: 24px; box-shadow: none; background: transparent; }
.btn-logout {
  width: 100%; height: 46px; border: none; border-radius: 14px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  background: #fef2f2; color: var(--danger);
  transition: all 0.15s;
}
.btn-logout:active { background: #fee2e2; }

/* ==================== 详情卡片内操作按钮 ==================== */
.detail-actions {
  display: flex; justify-content: flex-end; gap: 12px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid #f5f0eb;
}
.detail-action-link {
  font-size: 13px; color: var(--text-secondary); text-decoration: none;
  font-weight: 500; transition: color 0.15s;
}
.detail-action-link:active { color: var(--primary); }
.btn-danger-text { color: var(--danger); }
.btn-danger-text:active { color: #c0392b; }

/* ==================== 房屋日志区域 ==================== */
.log-section {
  margin: 16px 20px 0; padding: 18px 20px;
  background: var(--bg-white); border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.log-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.log-header .section-title { margin-bottom: 0; }
.btn-add-log {
  flex-shrink: 0; height: 32px; padding: 0 14px; border-radius: 16px;
  border: none; background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,107,53,0.25);
  transition: all 0.2s;
}
.btn-add-log:active { opacity: 0.85; transform: scale(0.96); }

/* 日志列表 */
.log-list { display: flex; flex-direction: column; gap: 12px; }

/* 单条日志卡片 */
.log-card {
  background: #FAF8F5; border-radius: 12px; padding: 14px 16px;
  border: 1px solid #f0ebe3;
}
.log-card-date {
  font-size: 12px; color: var(--text-light); margin-bottom: 6px;
}
.log-card-content {
  font-size: 14px; color: var(--text-primary); line-height: 1.65;
  word-break: break-all;
}

/* 日志照片 */
.log-card-photos {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.log-photo-img {
  width: 72px; height: 72px; border-radius: 8px; object-fit: cover;
  cursor: pointer; transition: transform 0.15s;
}
.log-photo-img:active { transform: scale(0.95); }

/* 日志卡片底部操作 */
.log-card-actions {
  display: flex; justify-content: flex-end; gap: 16px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed #eee5dd;
}
.log-card-btn {
  font-size: 13px; color: var(--text-light); cursor: pointer;
  transition: color 0.15s;
}
.log-card-btn:active { color: var(--primary); }
.log-delete { color: var(--danger); }
.log-delete:active { color: #c0392b; }

/* 空状态 */
.log-empty { text-align: center; padding: 28px 0; color: var(--text-light); font-size: 14px; }

/* ==================== 写日志弹窗 ==================== */
.log-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.log-modal {
  width: 100%; max-width: 600px;
  background: var(--bg-white); border-radius: 20px 20px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  animation: slideUpLog 0.3s ease;
}
@keyframes slideUpLog {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.log-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.log-modal-title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.log-modal-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: #f5f5f5; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: all 0.15s;
}
.log-modal-close:active { background: #eee; }
.log-modal-body { margin-bottom: 16px; }

/* 日志文本框 */
.log-textarea {
  width: 100%; min-height: 100px; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 14px; line-height: 1.6; resize: vertical;
  outline: none; transition: border-color 0.2s;
  font-family: inherit; background: #fafafa;
}
.log-textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(255,107,53,0.08); }
.log-textarea::placeholder { color: #bbb; }

/* 日志照片上传区 */
.log-photo-area {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px;
  align-items: flex-start;
}
.log-photo-add {
  width: 72px; height: 72px; border-radius: 10px;
  border: 1.5px dashed #ccc; background: #fafafa;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 26px; color: #bbb; transition: all 0.2s;
}
.log-photo-add:active { border-color: var(--primary); color: var(--primary); background: #FFF4ED; }

.log-photo-preview {
  width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
  position: relative; border: 1px solid var(--border); flex-shrink: 0;
}
.log-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.log-photo-preview button {
  position: absolute; top: -6px; right: -6px; z-index: 1;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--danger); color: white; border: none;
  font-size: 12px; line-height: 20px; text-align: center;
  padding: 0; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* 弹窗底部按钮 */
.log-modal-footer { display: flex; gap: 12px; }
.btn-log-cancel {
  flex: 1; height: 44px; border-radius: 12px; border: none;
  background: #f5f5f5; color: var(--text-secondary);
  font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.btn-log-cancel:active { background: #eee; }
.btn-log-submit {
  flex: 1; height: 44px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 3px 10px rgba(255,107,53,0.3); transition: all 0.15s;
}
.btn-log-submit:active { opacity: 0.85; transform: scale(0.97); }
