﻿/* ============================================================
 * 富春房产销售系统 - 销售端 App 样式（test02）
 * 移动端 Element Plus 风格：手机外框 390x790、蓝色渐变登录、
 * 白色圆角卡片、主色 #e0872a
 * ============================================================ */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background: #e8eaed;
  color: #303133;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; outline: none; }

/* ==================== 手机外框 ==================== */
.phone-stage {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 30px 0;
}
.phone-frame {
  width: 390px;
  height: 790px;
  background: #14161a;
  border-radius: 48px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(20, 22, 26, 0.35), 0 4px 14px rgba(20, 22, 26, 0.18);
  position: relative;
  flex-shrink: 0;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: #f5f7fa;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
/* 顶部状态栏（模拟） */
.phone-status {
  height: 30px;
  background: #e0872a;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  flex-shrink: 0;
}
.phone-status .status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  margin-right: 4px;
  vertical-align: 1px;
}
/* 页面内容滚动区 */
.page-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}
.page-scroll::-webkit-scrollbar { width: 0; }
/* 底部 TabBar */
.tabbar {
  height: 58px;
  background: #fff;
  border-top: 1px solid #e4e7ed;
  display: flex;
  flex-shrink: 0;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: #909399;
  cursor: pointer;
  transition: color .2s;
}
.tab-item .tab-icon { font-size: 20px; line-height: 1; }
.tab-item.active { color: #e0872a; }
/* 手机底部指示条 */
.phone-home-bar {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
}
/* 侧边说明（桌面端展示用，不在手机内） */
.stage-note { max-width: 300px; color: #606266; }
.stage-note h2 { font-size: 20px; color: #303133; margin: 0 0 10px; }
.stage-note p { font-size: 13px; line-height: 1.7; margin: 0 0 10px; color: #909399; }
.stage-note .note-card {
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.stage-note .note-title { font-weight: 600; color: #e0872a; margin-bottom: 4px; }
.stage-note code { background: #fdf4e6; color: #e0872a; padding: 1px 6px; border-radius: 4px; font-size: 12px; }

/* ==================== 登录页 ==================== */
.login-screen { background: #f5f7fa; }
.login-head {
  background: linear-gradient(150deg, #e0872a 0%, #c26d1f 60%, #b5611f 100%);
  padding: 48px 30px 56px;
  text-align: center;
  color: #fff;
  border-radius: 0 0 36px 36px;
  position: relative;
  flex-shrink: 0;
}
.login-head::after {
  content: '';
  position: absolute;
  left: -40px; bottom: -30px;
  width: 180px; height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.login-logo {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.login-title { font-size: 20px; font-weight: 600; letter-spacing: 2px; }
.login-sub { font-size: 12px; opacity: 0.85; margin-top: 6px; letter-spacing: 1px; }
.login-form {
  padding: 28px 26px 0;
  margin-top: -22px;
  position: relative;
  z-index: 2;
}
.login-tip {
  background: #fdf4e6;
  border: 1px solid #f6dfc0;
  color: #e0872a;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 18px;
  text-align: center;
}
.field {
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  margin-bottom: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field:focus-within {
  border-color: #e0872a;
  box-shadow: 0 0 0 2px rgba(224, 135, 42, 0.2);
}
.field .field-icon { font-size: 16px; margin-right: 10px; }
.field input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #303133;
  height: 100%;
}
.field input::placeholder { color: #c0c4cc; }
.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #909399;
  margin: 2px 2px 16px;
}
.remember-row label { display: flex; align-items: center; gap: 5px; }
.remember-row input { width: 14px; height: 14px; accent-color: #e0872a; }
.login-btn {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #e0872a, #c26d1f);
  color: #fff;
  font-size: 16px;
  letter-spacing: 6px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(224, 135, 42, 0.35);
  transition: opacity .2s;
}
.login-btn:active { opacity: 0.85; }
.login-footer {
  text-align: center;
  font-size: 11px;
  color: #c0c4cc;
  padding: 26px 0 30px;
}

/* ==================== 页面导航头 ==================== */
.page-nav {
  height: 48px;
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
  display: flex;
  align-items: center;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-back {
  font-size: 22px;
  color: #303133;
  width: 28px;
  cursor: pointer;
  line-height: 1;
}
.nav-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.nav-right { font-size: 22px; color: #e0872a; width: 28px; text-align: right; cursor: pointer; line-height: 1; }
.nav-right .nav-right-text { font-size: 13px; }

/* ==================== 首页 ==================== */
.home-banner {
  background: linear-gradient(150deg, #e0872a 0%, #c26d1f 70%);
  padding: 22px 20px 30px;
  color: #fff;
  border-radius: 0 0 26px 26px;
}
.greet { font-size: 12px; opacity: 0.85; margin-bottom: 4px; }
.hi { font-size: 20px; font-weight: 600; }
.banner-card {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(3px);
}
.bc-icon { font-size: 30px; }
.bc-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.bc-desc { font-size: 12px; opacity: 0.85; }
.home-section { padding: 16px 14px; }
.home-stats { display: flex; gap: 10px; }
.home-stat {
  flex: 1;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
}
.home-stat .num { font-size: 22px; font-weight: 700; color: #e0872a; }
.home-stat .label { font-size: 12px; color: #909399; margin-top: 4px; }
.home-card {
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 10px;
  margin-top: 12px;
  padding: 14px;
}
.hc-title {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.hc-title .hc-more { font-size: 12px; font-weight: 400; color: #909399; cursor: pointer; }
.hc-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #606266;
  padding: 7px 0;
  line-height: 1.5;
}
.hc-item .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e0872a;
  margin-top: 5px;
  flex-shrink: 0;
}
.hc-item .small { font-size: 11px; color: #c0c4cc; }

/* ==================== 工作台 ==================== */
.work-head {
  background: linear-gradient(150deg, #e0872a 0%, #c26d1f 70%);
  padding: 34px 20px 44px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border-radius: 0 0 26px 26px;
}
.work-body { padding: 0 14px; margin-top: -18px; position: relative; z-index: 2; }
.work-group {
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 12px;
  padding: 16px;
}
.wg-title { font-size: 13px; color: #909399; margin-bottom: 14px; }
.work-grid { display: flex; flex-wrap: wrap; }
.work-item {
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  cursor: pointer;
}
.work-item .wi-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #fdf4e6;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-item:nth-child(2) .wi-icon { background: #f0f9eb; }
.work-item:nth-child(3) .wi-icon { background: #fdf6ec; }
.work-item:nth-child(4) .wi-icon { background: #fef0f0; }
.work-item .wi-text { font-size: 12px; color: #606266; }

/* ==================== 列表页 ==================== */
.list-page { min-height: 100%; }
.list-search { padding: 12px 14px; background: #fff; border-bottom: 1px solid #e4e7ed; }
.search-box {
  background: #f5f7fa;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
}
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #303133;
}
.search-box input::placeholder { color: #c0c4cc; }
.list-wrap { padding: 12px 14px; }
.list-card {
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 10px;
  padding: 13px 14px;
  margin-bottom: 10px;
}
.lc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lc-name { font-size: 15px; font-weight: 600; color: #303133; }
.lc-info { font-size: 13px; color: #606266; line-height: 1.8; }
.lc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #c0c4cc;
}
.lc-actions { display: flex; gap: 8px; margin-top: 10px; }
.mini-btn {
  flex: 1;
  height: 30px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 12px;
  cursor: pointer;
  transition: opacity .2s;
}
.mini-btn:active { opacity: 0.8; }
.mini-btn.blue { background: #fdf4e6; color: #e0872a; border-color: #f6dfc0; }
.mini-btn.green { background: #f0f9eb; color: #67c23a; border-color: #e1f3d8; }
.mini-btn.gray { background: #f4f4f5; color: #606266; border-color: #e9e9eb; }
.mini-btn.red { background: #fef0f0; color: #f56c6c; border-color: #fde2e2; }
/* 标签 */
.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 18px;
}
.tag-primary { background: #fdf4e6; color: #e0872a; }
.tag-success { background: #f0f9eb; color: #67c23a; }
.tag-warning { background: #fdf6ec; color: #e6a23c; }
.tag-danger { background: #fef0f0; color: #f56c6c; }
.tag-info { background: #f4f4f5; color: #909399; }
/* 空状态 */
.empty { text-align: center; padding: 60px 0; color: #c0c4cc; }
.empty .big { font-size: 44px; margin-bottom: 10px; }

/* ==================== 销控查询 ==================== */
.ctrl-legend {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
  font-size: 12px;
  color: #606266;
}
.ctrl-legend span { display: flex; align-items: center; gap: 4px; }
.legend-box {
  width: 12px; height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.status-0 { background: #e0872a; } /* 未售 */
.status-1 { background: #f56c6c; } /* 已售 */
.status-2 { background: #e6a23c; } /* 保留 */
.status-3 { background: #909399; } /* 预定 */
.ctrl-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
}
.ctrl-filter select {
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  height: 32px;
  font-size: 13px;
  color: #606266;
  padding: 0 8px;
  background: #fff;
}
.ctrl-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}
.ctrl-room {
  width: 15.5%;
  height: 38px;
  border-radius: 6px;
  font-size: 11px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s;
}
.ctrl-room:active { transform: scale(0.94); }

/* ==================== 我的 ==================== */
.mine-head {
  background: linear-gradient(150deg, #e0872a 0%, #c26d1f 70%);
  padding: 40px 20px 46px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  border-radius: 0 0 26px 26px;
}
.mine-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mine-name { font-size: 18px; font-weight: 600; }
.mine-role { font-size: 12px; opacity: 0.85; margin-top: 4px; }
.mine-body { padding: 0 14px; margin-top: -16px; position: relative; z-index: 2; }
.mine-group {
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.mine-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  font-size: 14px;
  color: #303133;
  border-bottom: 1px solid #f0f2f5;
  cursor: pointer;
}
.mine-item:last-child { border-bottom: none; }
.mine-item .mi-icon { font-size: 17px; }
.mine-item .mi-arrow { margin-left: auto; font-size: 12px; color: #c0c4cc; }
.mine-item.logout { justify-content: center; color: #f56c6c; }
.mine-ver { text-align: center; color: #c0c4cc; font-size: 11px; padding: 10px 0 16px; }

/* ==================== 表单页 ==================== */
.form-page { min-height: 100%; background: #f5f7fa; }
.form-wrap { padding: 12px 14px; }
.form-item {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.form-item label {
  flex: 0 0 76px;
  font-size: 13px;
  color: #606266;
}
.form-item input, .form-item select, .form-item textarea {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #303133;
  resize: none;
}
.form-item select { appearance: none; -webkit-appearance: none; }
.form-item input::placeholder, .form-item textarea::placeholder { color: #c0c4cc; }
.form-submit {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: #e0872a;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  margin-top: 8px;
}
.form-submit:active { opacity: 0.85; }

/* ==================== 弹窗（App 内） ==================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}
.overlay.show { display: flex; }
.overlay-box {
  width: 320px;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
}
.overlay-title {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
  color: #303133;
}
.overlay-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.overlay-actions .btn-cancel, .overlay-actions .btn-confirm {
  flex: 1;
  height: 38px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  cursor: pointer;
}
.overlay-actions .btn-cancel { background: #f4f4f5; color: #606266; }
.overlay-actions .btn-confirm { background: #e0872a; color: #fff; }
.overlay-detail p { font-size: 13px; line-height: 2; margin: 0; color: #606266; }
.overlay-detail b { color: #303133; }

/* ==================== 提示 Toast ==================== */
.app-tip {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 1200;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  max-width: 80%;
  text-align: center;
}
.app-tip.show { opacity: 1; transform: translateX(-50%) scale(1); }



