* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    height: 100vh;
    overflow: hidden;
    color: #333;
}

#mapDiv {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 30, 60, 0.92);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 25px;
    z-index: 10;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-right: 20px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto;
}

.stats-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* 侧边栏样式 */
.sidebar {
    position: absolute;
    top: 60px;
    left: 0;
    width: 300px;
    height: calc(100% - 60px);
    background: rgba(255, 255, 255, 0.9);
    z-index: 5;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #e0e6f0;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.search-box button {
    padding: 10px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.polygon-list-container {
    flex: 1;
    overflow-y: auto;
}

.polygon-list {
    padding: 10px;
}

.polygon-item {
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 4px solid #3498db;
    cursor: pointer;
    transition: all 0.2s;
}

.polygon-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.polygon-item.selected {
    border-left: 4px solid #da1b1b;
    background: #fffafa;
}
/* 已编辑完成的房产 */
.polygon-item.agent-done {
    background: #b7cdf3;
    border-left: 4px solid #151bab;
}

.polygon-item.agent-done .done-mark {
    font-size: 12px;
    color: #27ae60;
    margin-top: 4px;
}

.polygon-info {
    flex: 1;
}

.polygon-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.polygon-price {
    color: #e74c3c;
    font-size: 14px;
}

.polygon-actions {
    display: flex;
    gap: 8px;
}

.polygon-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    padding: 5px;
    color: #b01d1d;
}

.empty-list {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.controls {
    position: absolute;
    top: 60px;
    right: 0;
    width: 300px;
    height: calc(100% - 60px);
    z-index: 5;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    padding: 18px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.controls-header {
    font-size: 18px;
    font-weight: 700;
    color: #1a2980;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e6f0;
}

.controls-section {
    margin: 10px 0;
}

.section-title {
    font-size: 14px;
    color: #3498db;
    font-weight: 600;
    margin-bottom: 10px;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    padding: 10px 15px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 100px;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.btn:active {
    transform: translateY(1px);
}

.btn.create {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.btn.edit {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.btn.delete {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.btn.save {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.btn.preview {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}

.btn.cancel {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 14px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    color: white;
    padding: 18px 25px;
    font-size: 20px;
    font-weight: 700;
}

.modal-body {
    padding: 30px 25px 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.form-group input {
    width: 100%;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: white;
}

.modal-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid #eaeaea;
}

.btn-cancel, .btn-confirm {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.btn-cancel {
    background: #db1500;
    color: white;
}

.btn-confirm {
    background: #0c4fc8;
    color: white;
}

.btn-cancel:hover {
    background: #c0392b;
}

.btn-confirm:hover {
    background: #2980b9;
}

.notification {
    position: fixed;
    top: 25px;
    right: 25px;
    padding: 18px 28px;
    background: rgba(46, 204, 113, 0.95);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transform: translateX(150%);
    transition: transform 0.4s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: rgba(231, 76, 60, 0.95);
}

.mode-indicator {
    position: absolute;
    top: 85px;
    left: 370px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mode-indicator.editing {
    background: rgba(155, 89, 182, 0.15);
    color: #8e44ad;
    border-left: 4px solid #8e44ad;
}

.mode-indicator.creating {
    background: rgba(52, 152, 219, 0.15);
    color: #2980b9;
    border-left: 4px solid #2980b9;
}

/* 「拖拽模式」样式 */
.mode-indicator.relocating {
    background: rgba(243, 156, 18, 0.15);
    color: #d35400;
    border-left: 4px solid #d35400;
}
#relocateConfirm {
    pointer-events: none;   /* 按钮本身不再拦截鼠标事件 */
}
#relocateConfirm button {
    pointer-events: auto;   /* 但按钮仍可点 */
}

 /* 开关容器 */
.switch-item{
  display:flex;
  align-items:center;
  gap: 10px;
  margin:10px 0;
  font-size:14px;
}

/* Element-UI 开关 */
.el-switch{
  position:relative;
  display:inline-block;
  width:40px;
  height:20px;
}
.el-switch input{
  opacity:0;
  width:0;
  height:0;
}
.el-switch__core{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:#c0c4cc;
  border-radius:10px;
  cursor:pointer;
  transition:.3s;
}
.el-switch__core:before{
  content:'';
  position:absolute;
  height:16px;
  width:16px;
  left:2px;
  bottom:2px;
  background:#fff;
  border-radius:50%;
  transition:.3s;
}
.el-switch input:checked + .el-switch__core{
  background:#409eff;
}
.el-switch input:checked + .el-switch__core:before{
  transform:translateX(20px);
}

.bottom-switch {
    position: absolute;
    bottom: 15px;
    left: 18px;
    right: 18px;
    padding: 10px 0;
    background: rgba(255,255,255,0.9);
    border-top: 1px solid #e0e6f0;
}