﻿/* ============================================================
 * 富春房产销售管理系统 - 管理员后台样式（test02）
 * 视觉风格：Element Plus 设计语言（主色 #e0872a、浅灰背景、
 *          白色卡片圆角 4px、细边框、浅灰表头）
 * ============================================================ */

/* ---------------- 全局基础 ---------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  color: #303133;
  background: #faf8f5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* ---------------- 登录页 ---------------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaa452 0%, #e0872a 45%, #c26d1f 100%);
  position: relative;
  overflow: hidden;
}
.login-page::before, .login-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.login-page::before { width: 480px; height: 480px; left: -120px; top: -160px; }
.login-page::after { width: 360px; height: 360px; right: -90px; bottom: -140px; }
.login-box {
  width: 420px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(31, 45, 61, 0.18);
  padding: 40px 44px 30px;
  position: relative;
  z-index: 2;
}
.login-brand { text-align: center; margin-bottom: 26px; }
.login-logo {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e0872a, #c26d1f);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(224, 135, 42, 0.35);
}
.login-brand h1 { font-size: 22px; font-weight: 600; color: #303133; margin: 0 0 6px; }
.login-brand p { font-size: 12px; color: #909399; margin: 0; }
.login-tip {
  background: #fdf4e6;
  border: 1px solid #f6dfc0;
  color: #e0872a;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.form-item { margin-bottom: 18px; }
.form-item label {
  display: block;
  font-size: 13px;
  color: #606266;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-item .input-wrap { position: relative; }
.form-item .input-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: #c0c4cc;
  font-size: 15px;
}
.form-item input {
  width: 100%;
  height: 40px;
  border: 1px solid #dcdfe6;
  border-radius: 12px;
  padding: 0 12px 0 38px;
  font-size: 14px;
  color: #606266;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.form-item input:focus {
  border-color: #e0872a;
  box-shadow: 0 0 0 2px rgba(224, 135, 42, 0.2);
}
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-row canvas {
  cursor: pointer;
  border: 1px solid #dcdfe6;
  border-radius: 12px;
}
.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #606266;
  margin-bottom: 20px;
  user-select: none;
}
.remember-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.remember-row input { width: 14px; height: 14px; accent-color: #e0872a; }
.login-btn {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: #e0872a;
  color: #fff;
  font-size: 15px;
  letter-spacing: 6px;
  cursor: pointer;
  transition: background .2s;
}
.login-btn:hover { background: #e9b37a; }
.login-footer {
  text-align: center;
  font-size: 12px;
  color: #c0c4cc;
  margin-top: 22px;
}

/* ---------------- 布局骨架 ---------------- */
.admin-body { display: flex; height: 100vh; overflow: hidden; }

/* 侧边栏（浅色 Element 风格） */
.sidebar {
  width: 220px;
  background: #fff;
  border-right: 1px solid #e4e7ed;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width .25s, margin-left .25s;
  overflow: hidden;
}
.sidebar-brand {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid #eef0f3;
  flex-shrink: 0;
}
.logo-mini {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e0872a, #c26d1f);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-brand span {
  font-size: 15px;
  font-weight: 600;
  color: #303133;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-menu { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar-menu::-webkit-scrollbar { width: 4px; }
.sidebar-menu::-webkit-scrollbar-thumb { background: #dcdfe6; border-radius: 2px; }
.menu-item { position: relative; }
.menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  color: #303133;
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.menu-link:hover { background: #faf8f5; color: #e0872a; }
.menu-link.active { background: #fdf4e6; color: #e0872a; font-weight: 500; border-radius: 12px; margin: 2px 10px; padding-left: 10px; padding-right: 10px; }
.menu-link.active::before { content: none; }
.menu-link .menu-icon { font-size: 15px; width: 18px; text-align: center; }
.menu-link .menu-text { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.menu-link .group-arrow { font-size: 12px; color: #c0c4cc; transition: transform .25s; }
.menu-item.open .group-arrow { transform: rotate(180deg); }
.sub-menu { display: none; }
.menu-item.open .sub-menu { display: block; }
.sub-menu .menu-link { padding-left: 46px; height: 38px; font-size: 13px; color: #606266; }
.sub-menu .menu-link.active { color: #e0872a; background: #fdf4e6; border-radius: 10px; margin: 0 10px; }
.sidebar-foot {
  padding: 12px 16px;
  font-size: 12px;
  color: #c0c4cc;
  border-top: 1px solid #f0f2f5;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
}
/* 折叠状态 */
.admin-body.sidebar-collapsed .sidebar { width: 64px; }
.admin-body.sidebar-collapsed .sidebar-brand span,
.admin-body.sidebar-collapsed .menu-text,
.admin-body.sidebar-collapsed .group-arrow,
.admin-body.sidebar-collapsed .sidebar-foot { display: none; }
.admin-body.sidebar-collapsed .menu-link { justify-content: center; padding: 0; }
.admin-body.sidebar-collapsed .menu-item:hover .sub-menu {
  display: block;
  position: absolute;
  left: 64px; top: 0;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: 12px;\n  width: 160px;
  z-index: 99;
}
.admin-body.sidebar-collapsed .sub-menu .menu-link { padding-left: 16px; }

/* 主区域 */
.main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* 顶栏 */
.topbar {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  flex-shrink: 0;
}
.topbar .page-title { font-size: 16px; font-weight: 600; color: #303133; }
.topbar .breadcrumb-box { font-size: 12px; color: #909399; margin-top: 2px; }
.topbar .breadcrumb-box .sep { margin: 0 6px; color: #c0c4cc; }
.topbar .breadcrumb-box .current { color: #e0872a; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 34px; height: 34px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #606266;
  font-size: 17px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: #faf8f5; color: #e0872a; }

/* 内容区 */
.content-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 20px;
}
.page-card {
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 20px;
  padding: 16px;
  margin-top: 14px;
  box-shadow: 0 2px 10px rgba(31, 45, 61, 0.04);
}
.pager-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
  gap: 8px;
}

/* ---------------- 工具栏 ---------------- */
.toolbar-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar-bar .toolbar-tip {
  font-size: 12px;
  color: #909399;
  margin-left: 4px;
}

/* ---------------- 筛选区 ---------------- */
.filter-bar { margin-top: 14px; }
/* 搜索项布局：PC 端每行 4 个，自动对齐 */
.filter-bar .filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 14px;
  align-items: center;
}
.filter-bar .filter-row .ep-select,
.filter-bar .filter-row .ep-input { width: 100%; min-width: 0; }
/* 搜索/重置按钮独立一行，靠右对齐 */
.filter-bar .filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
@media (max-width: 1199.98px) { .filter-bar .filter-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .filter-bar .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .filter-bar .filter-row { grid-template-columns: 1fr; } }
.ep-input {
  height: 32px;
  border: 1px solid #dcdfe6;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 13px;
  color: #606266;
  outline: none;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.ep-input:focus { border-color: #e0872a; box-shadow: 0 0 0 2px rgba(224, 135, 42, 0.2); }
.ep-select {
  height: 32px;
  border: 1px solid #dcdfe6;
  border-radius: 12px;
  padding: 0 8px;
  font-size: 13px;
  color: #606266;
  outline: none;
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23c0c4cc' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.ep-select:focus { border-color: #e0872a; box-shadow: 0 0 0 2px rgba(224, 135, 42, 0.2); }

/* ---------------- 表格 ---------------- */
.ep-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ep-table th {
  background: #faf8f5;
  color: #909399;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #ebeef5;
  white-space: nowrap;
}
.ep-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #ebeef5;
  color: #606266;
  white-space: nowrap;
}
.ep-table tbody tr { transition: background .2s; }
.ep-table tbody tr:hover { background: #faf8f5; }
.ep-table .td-right { text-align: right; }
/* 操作列按钮强制一行显示，避免换行凌乱 */
.ep-table td:last-child { white-space: nowrap; }
.ep-table .td-center { text-align: center; }
.ep-table .empty-cell {
  text-align: center;
  color: #909399;
  padding: 48px 0;
}
.ep-table .empty-cell .empty-icon { font-size: 40px; color: #dcdfe6; display: block; margin-bottom: 8px; }

/* 复选框 */
.ep-check { width: 14px; height: 14px; accent-color: #e0872a; cursor: pointer; vertical-align: middle; }

/* ---------------- 标签（模拟 el-tag） ---------------- */
.ep-tag {
  display: inline-block;
  padding: 0 8px;
  height: 24px;
  line-height: 22px;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid;
  white-space: nowrap;
}
.ep-tag-primary { background: #fdf4e6; border-color: #f6dfc0; color: #e0872a; }
.ep-tag-success { background: #f0f9eb; border-color: #e1f3d8; color: #67c23a; }
.ep-tag-warning { background: #fdf6ec; border-color: #faecd8; color: #e6a23c; }
.ep-tag-danger { background: #fef0f0; border-color: #fde2e2; color: #f56c6c; }
.ep-tag-info { background: #f4f4f5; border-color: #e9e9eb; color: #909399; }

/* ---------------- 详情描述 ---------------- */
.detail-item { margin-bottom: 14px; }
.detail-label {
  font-size: 12px;
  color: #909399;
  margin-bottom: 4px;
}
.detail-value { font-size: 14px; color: #303133; }

/* ---------------- 统计卡片 ---------------- */
.stat-card { border: 1px solid #ebeef5; border-radius: 12px; background: #fff; padding: 18px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(31, 45, 61, 0.04); }
.stat-card .stat-icon {
  width: 46px; height: 46px;
  border-radius: 8px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-card .stat-title { font-size: 12px; color: #909399; margin-bottom: 4px; }
.stat-card .stat-value { font-size: 22px; font-weight: 700; color: #303133; }
.stat-card .stat-foot { font-size: 12px; color: #c0c4cc; margin-left: auto; text-align: right; }

/* ---------------- 卡片容器（通用） ---------------- */
.ep-card {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 20px;
}
.ep-card .ep-card-head {
  padding: 14px 18px;
  border-bottom: 1px solid #ebeef5;
  font-size: 14px;
  font-weight: 600;
  color: #303133;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ep-card .ep-card-body { padding: 18px; }

/* ---------------- 首页待办/动态 ---------------- */
.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f2f5;
  font-size: 13px;
  color: #606266;
}
.todo-item:last-child { border-bottom: none; }
.todo-item .todo-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #f56c6c;
  color: #fff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.todo-item .todo-badge.blue { background: #e0872a; }
.todo-item .todo-badge.orange { background: #e6a23c; }
.todo-item .todo-badge.green { background: #67c23a; }
.news-item { padding: 10px 0; border-bottom: 1px solid #f0f2f5; }
.news-item:last-child { border-bottom: none; }
.news-item .dot { width: 8px; height: 8px; border-radius: 50%; background: #e0872a; display: inline-block; margin-right: 8px; }
.news-item .news-time { font-size: 12px; color: #c0c4cc; }

/* ---------------- 销控图 ---------------- */
.sell-group { margin-bottom: 20px; }
.sell-group-title { font-size: 15px; font-weight: 600; color: #303133; margin-bottom: 10px; }
.sell-building { margin-bottom: 12px; }
.sell-building-name {
  font-size: 13px;
  color: #606266;
  margin-bottom: 8px;
  font-weight: 500;
}
.sell-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.sell-room {
  width: 86px;
  height: 42px;
  border-radius: 4px;
  font-size: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  user-select: none;
}
.sell-room:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18); }
.room-0 { background: #e0872a; }   /* 未售 - 蓝 */
.room-1 { background: #f56c6c; }   /* 已售 - 红 */
.room-2 { background: #e6a23c; }   /* 保留 - 橙 */
.room-3 { background: #909399; }   /* 预定 - 灰 */
.room-legend {
  width: 14px; height: 14px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 4px;
  vertical-align: -2px;
}

/* ---------------- 在线用户卡片 ---------------- */
.online-card { border: 1px solid #ebeef5; border-radius: 20px; background: #fff; padding: 16px; margin-bottom: 14px; }
.online-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fdf4e6;
  color: #e0872a;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ---------------- 软件下载卡片 ---------------- */
.software-card { border: 1px solid #ebeef5; border-radius: 20px; background: #fff; padding: 16px; margin-bottom: 14px; }
.software-icon {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: #fdf4e6;
  color: #e0872a;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------- 进度条（报表） ---------------- */
.ep-progress {
  width: 120px;
  height: 8px;
  background: #ebeef5;
  border-radius: 4px;
  overflow: hidden;
}
.ep-progress .ep-progress-bar {
  height: 100%;
  background: #67c23a;
  border-radius: 4px;
}

/* ---------------- 分页（模拟 el-pagination） ---------------- */
.page-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  background: #fff;
  color: #606266;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.page-btn:hover:not(:disabled):not(.active) { color: #e0872a; border-color: #e0872a; }
.page-btn.active { background: #e0872a; border-color: #e0872a; color: #fff; }
.page-btn:disabled { color: #c0c4cc; cursor: not-allowed; background: #faf8f5; }
.page-total { font-size: 13px; color: #909399; margin-right: 8px; }

/* ---------------- Toast（模拟 ElMessage） ---------------- */
.ep-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  z-index: 3000;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  background: #fff;
  color: #303133;
  border: 1px solid #ebeef5;
}
.ep-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ep-toast .toast-icon { font-size: 15px; }
.ep-toast.success .toast-icon { color: #67c23a; }
.ep-toast.warning .toast-icon { color: #e6a23c; }
.ep-toast.info .toast-icon { color: #e0872a; }
.ep-toast.error .toast-icon { color: #f56c6c; }

/* ---------------- 滚动条 ---------------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #dcdfe6; border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 顶栏用户信息 ---------------- */
.user-box {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 12px;
  transition: background .2s;
}
.user-box:hover { background: #faf8f5; }
.avatar-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0872a, #c26d1f);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-text { display: flex; flex-direction: column; line-height: 1.35; }
.user-name { font-size: 14px; font-weight: 600; color: #303133; }
.user-role { font-size: 12px; color: #909399; }

/* ---------------- 审核弹窗 ---------------- */
.audit-actions { display: flex; gap: 10px; }
.audit-label {
  font-size: 13px;
  color: #606266;
  display: block;
  margin-bottom: 6px;
}

/* ---------------- 分页省略号 ---------------- */
.page-ellipsis { margin: 0 6px; color: #c0c4cc; }

/* ---------------- 通用辅助类 ---------------- */
.d-flex { display: flex; }
.me-1 { margin-right: 4px; }
.me-2 { margin-right: 8px; }
.text-primary { color: #e0872a; }
.text-success { color: #67c23a; }
.text-warning { color: #e6a23c; }
.text-danger { color: #f56c6c; }
.text-info { color: #909399; }





