.house-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: auto;
}

/* 基础样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 表格基本样式 */
.table-responsive {
  overflow-x: auto;
  margin-bottom: 20px;
}

.house-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background-color: #fff;
}

.house-table th,
.house-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #ebeef5;
  text-align: center;
}

.house-table th {
  background-color: #f5f7fa;
  color: #606266;
  font-weight: 500;
}

.house-table tr:hover {
  background-color: #f5f7fa;
}

/* 状态标签样式 */
.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.status-wait {
  background-color: #ffece1;
  color: #eb701a;
}

.status-reject {
  background-color: #ffe1e1;
  color: #eb1a1a;
}

.status-default {
  background-color: #d7f1ff;
  color: #188dec;
}

.status-available {
  background-color: #e1f3d8;
  color: #67c23a;
}

.status-sold {
  background-color: #fde2e2;
  color: #f56c6c;
}

.status-pending {
  background-color: #e9e9eb;
  color: #909399;
}

/* 操作按钮样式 */
.table-actions {
  display: flex;
  gap: 8px;
}

.btn-text {
  background: none;
  border: none;
  color: #409eff;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 14px;
}

.btn-text:hover {
  color: #66b1ff;
  text-decoration: underline;
}

.btn-text.danger {
  color: #f56c6c;
}

.btn-text.danger:hover {
  color: #f78989;
}

/* 模态框基础样式优化 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #ebeef5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 12px 12px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #303133;
}

.modal-body {
  padding: 24px;
  flex-grow: 1;
  overflow: auto;
  position: relative;
}

.close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #909399;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
}

.close:hover {
  background: #f4f4f5;
  color: #606266;
}

/* 表单样式优化 */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-group label {
  min-width: 80px;
  color: #606266;
  font-size: 14px;
  margin-bottom: 0;
  white-space: nowrap;
}

.form-group input,
.form-group select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #409eff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

input.delegate-proxy-checkbox {
  flex-grow: 0;
}
.delegate-content-outer {
  display: none;
  padding: 20px;
  border: 1px solid #ebeef5;
  color: #606266;
}
.content-fieldset {
  position: relative;
  padding: 20px 20px 0 20px;
  border: 1px solid #ebeef5;
  color: #606266;
  align-self: flex-start;
}
.notarization-field {
  padding: 20px 20px 0 20px;
  margin-bottom: 20px;
  border: 1px solid #ebeef5;
}
.notarization-field label {
  min-width: 100px;
}
.notarization-number {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notarization-number select {
  width: 100px;
  flex: none;
}
.notarization-number input {
  width: calc(100% - 108px);
  flex: none;
}
.delegate-content-outer legend {
  display: flex;
  align-items: center;
}
.delegate-content-outer .toggle-icon {
  font-size: 24px;
  color: #c5c5c5;
}
.delegate-content-outer .toggle-icon:hover {
  cursor: pointer;
  color: #8f8f8f;
}
.delegate-content-inner {
  position: relative;
  border: 1px solid #ebeef5;
  padding: 20px 20px 0 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.operater-container {
  display: none;
  position: absolute;
  z-index: 5;
  right: 20px;
  top: -15px;
  background-color: white;
  padding: 0 5px;
}
.operater-container.disabled {
  display: none !important;
}
.delegate-content-inner:hover .operater-container {
  display: block;
}
.operater-container .layui-icon {
  font-size: 26px;
}
.operater-container .layui-icon:hover {
  cursor: pointer;
}
.operater-container .layui-icon-add-circle {
  color: #61a3ff;
}
.operater-container .layui-icon-reduce-circle {
  color: #dc0000;
}

/* 按钮区域样式 */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px 24px 0;
  border-top: 1px solid #ebeef5;
}

.form-actions .btn {
  padding: 8px 20px;
  font-size: 14px;
  border-radius: 6px;
}

/* 上传区域样式 */
.upload-area {
  border: 2px dashed #dcdfe6;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: #1890ff;
}

.upload-icon {
  font-size: 24px;
  color: #909399;
  margin-bottom: 8px;
}

.upload-text {
  color: #606266;
  font-size: 14px;
}

.upload-tip {
  color: #909399;
  font-size: 12px;
  margin-top: 4px;
}

/* 分页样式优化 */
.pagination {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #ebeef5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-page {
  min-width: 32px;
  height: 32px;
  border: 1px solid #dcdfe6;
  background: #fff;
  border-radius: 4px;
  padding: 0;
  margin: 0 4px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #606266;
}

.btn-page:hover {
  color: #409eff;
  border-color: #409eff;
}

.btn-page.active {
  background: #409eff;
  color: #fff;
  border-color: #409eff;
}

.btn-page:disabled {
  cursor: not-allowed;
  color: #c0c4cc;
  background: #f4f4f5;
  border-color: #e4e7ed;
}

.icon-arrow {
  font-style: normal;
  font-size: 14px;
  line-height: 1;
}

#pageNumbers {
  display: flex;
  gap: 4px;
}

.page-size-selector {
  margin-left: 16px;
  display: flex;
  align-items: center;
}

.page-size-selector select {
  padding: 4px 24px 4px 8px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
  color: #606266;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23606266'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 16px;
  appearance: none;
  cursor: pointer;
}

.page-size-selector select:focus {
  outline: none;
  border-color: #409eff;
}

/* 房源列表标题区域 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h3 {
  color: #303133;
  font-size: 20px;
}

/* 继承之前的基础样式 */
body {
  margin: 0;
  padding: 0;
  display: flex;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
}

.sidebar {
  position: sticky;
  top: 0;
  width: 220px;
  background: #304156;
  color: #fff;
  height: 100vh;
  z-index: 1000;
}

/* 搜索和筛选区域样式 */
.filter-section {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.search-bar {
  display: flex;
  gap: 12px;
}

.search-bar input {
  padding: 10px 16px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
}

.filter-options {
  display: flex;
  gap: 16px;
}

.filter-options select {
  padding: 8px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  min-width: 120px;
  color: #606266;
}

/* 房源网格布局 */
.house-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.house-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  min-height: 120px;
}

.house-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.house-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 100px;
}

.house-title {
  font-size: 16px;
  font-weight: 500;
  color: #303133;
}

.house-status {
  display: flex;
  align-items: center;
}

.status-tag {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
}

.status-available {
  background: #f0f9eb;
  color: #67c23a;
}

.status-unavailable {
  background: #fef0f0;
  color: #f56c6c;
}

.house-actions {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
}

.btn-text {
  padding: 6px 12px;
  border: none;
  background: none;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
  color: #1890ff;
}

.btn-text:hover {
  background: #ecf5ff;
  color: #409eff;
}

.btn-text.danger {
  color: #f56c6c;
}

.btn-text.danger:hover {
  background: #fef0f0;
  color: #f56c6c;
}

/* 表单样式增强 */
.house-type-inputs,
.floor-inputs {
  display: flex;
  gap: 12px;
}

.house-type-inputs input,
.floor-inputs input {
  width: 80px;
  padding: 8px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
}

textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  resize: vertical;
  min-height: 80px;
}

/* 图片上传预览区域 */
.photo-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.photo-preview-item {
  position: relative;
  padding-top: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.photo-preview-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-item .remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .filter-options {
    flex-direction: column;
  }

  .house-grid {
    grid-template-columns: 1fr;
  }

  .house-type-inputs,
  .floor-inputs {
    flex-wrap: wrap;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .form-group {
    flex-wrap: wrap;
  }

  .form-group label {
    min-width: 100%;
    margin-bottom: 8px;
  }

  .modal-content {
    width: 95%;
    margin: 10px;
  }
}

/* 特殊处理不动产权证号输入框 */
.property-number {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-number input {
  width: 120px;
  flex: none;
}

.property-number span {
  color: #606266;
  font-size: 14px;
  white-space: nowrap;
}

.house-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #606266;
}

.detail-item .label {
  color: #909399;
  min-width: 60px;
}

.detail-tags {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.tag.warning {
  background-color: #fdf6ec;
  color: #e6a23c;
}

.tag.success {
  background-color: #f0f9eb;
  color: #67c23a;
}

.input-with-unit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-with-unit input {
  flex: 1;
}

.unit {
  color: #606266;
  font-size: 14px;
  white-space: nowrap;
}

.required::after {
  content: '*';
  color: #f56c6c;
  margin-left: 4px;
}

/* 遮罩层样式 */
#overlay {
  position: fixed; /* 固定定位，覆盖整个视口 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8); /* 半透明黑色背景 */
  display: none; /* 初始隐藏 */
  justify-content: center; /* 内容水平居中 */
  align-items: center; /* 内容垂直居中 */
  z-index: 2147483647; /* 确保遮罩层在最上层 */
}

/* 遮罩层内容样式 */
.overlay-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.overlay-content p {
  margin: 20px 0;
  font-size: 20px;

  color: #8a8a8a;
}
/* 圆球加载动画样式 */
.loader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* width: 80px;  */
  margin: 0 auto;
}

.dot {
  width: 16px;
  height: 16px;
  margin-right: 18px;

  background-color: #3498db;
  border-radius: 50%;
  opacity: 0.3;
  animation: dotPulse 1s infinite ease-in-out;
}

.dot:nth-child(1) {
  animation-delay: 0s;
}
.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}
.dot:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.5); /* 放大圆球 */
  }
}

#countdown {
  display: none;
  margin: 20px 0;
  font-size: 20px;

  color: #8a8a8a;
}
#countdown span {
  color: #3483fb;
  font-size: 24px;
  margin-right: 4px;
}

#retryBtn {
  font-size: 18px;
  color: #8a8a8a;
  background-color: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.retry-icon {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-color: #3483fb;

  color: #fff;

  padding: 10px 20px;
  border-radius: 5px;
  margin: 10px 10px;
}
.retry-icon img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}
