body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    height: 95vh;
    display: flex;
    flex-direction: column;
}
h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
}
.tools {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}
.controls {
    margin: 5px 0;
}
#map-container {
    flex: 1;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
}
#map {
    width: 100%;
    height: 100%;
}
button {
    padding: 8px 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}
button i {
    margin-right: 5px;
}
button:hover {
    background: #45a049;
}
.clear-btn {
    background: #f44336;
}
.clear-btn:hover {
    background: #d32f2f;
}
.tool-btn {
    background: #2196F3;
}
.tool-btn.active {
    background: #0b7dda;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}



/* 标记模态框样式 */
.help-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 500;
    background-color: #eda400;
    color: white;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.help-btn:hover {
    background-color: #5a6268;
}

.help-btn i {
    margin-right: 5px;
}

/* 模态框通用样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed; /* 固定定位 */
    z-index: 1001; /* 确保在最上层 */
    left: 0;
    top: 0;
    width: 100%; /* 全屏 */
    height: 100%; /* 全屏 */
    overflow: auto; /* 允许滚动 */
    background-color: rgba(0,0,0,0.4); /* 半透明背景 */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto; /* 居中 */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* 宽度 */
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 10px;
    top: 5px;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#marker-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#marker-modal .modal-content {
    background: white;
    padding: 15px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    position: relative;
}

#marker-id,
#marker-status,
#marker-remark,
#marker-images,
#family-name,
#family-address,
#family-phone,
#family-id-card,
#family-relationship {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
#marker-status { padding: 0 8px;}

#marker-remark {
    height: 80px;
}

#image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

#save-marker-btn {
    background: #4CAF50;
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}

#cancel-marker-btn {
    margin-top: 15px;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.form-row .form-group {
    flex: 1;
}

.form-row label {
    width: 100%;
    margin-bottom: 5px;
    display: block;
}

.form-row input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

#delete-marker-btn {
    background: #f44336;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}
#delete-marker-btn { position: absolute; bottom: 20px; right: 20px;}
#cancel-marker-btn { background: #2196F3;}