﻿.trigger-btn {
    padding: 10px 20px;
    font-size: 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 20px;
}

    .trigger-btn:hover {
        background: #0056b3;
    }

/* 遮罩层 - 使用 fixed 定位，覆盖全屏 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* 弹窗内容 */
.modal-content {
    background: white;
    padding: 24px;
    border-radius: 8px;
    width: 320px;
    max-width: 90vw;
    text-align: left;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #333;
}
.modal-content p {
    font-size:13px;
    color:#666;
}
    .modal-buttons {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        margin-top: 16px;
    }

.modal-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.confirm-btn {
    background: #ffd000;
    color: white;
}

.cancel-btn {
    background: #6c757d;
    color: white;
}

.confirm-btn:hover {
    background: #f9bc00;
}

.cancel-btn:hover {
    background: #545b62;
}





/* 弹出层遮罩 */
.form-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    z-index: 10000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    
}

    .form-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* 弹窗内容 */
.form-modal-content {
    background: white;
    border-radius: 10px;
    width: 400px;
    max-width: 95vw;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.form-modal-overlay.active .form-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.form-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
}

    .form-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: bold;
        color: #444;
    }

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
.form-textarea {    
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 2px solid #e1e5eb;
    border-radius: 12px;
    font-size:14px;
    resize: vertical;
    transition: all 0.3s;
    line-height: 1.5;
}
    .form-control:focus {
        outline: none;
        border-color: #17a2b8;
        box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.2);
    }

/* 用地面积：包裹单位 */
.area-input-wrapper {
    display: flex;
    align-items: center;
}

    .area-input-wrapper input {
        flex: 1;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

.area-unit {
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-left: none;
    padding: 10px 12px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    color: #666;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.submit-btn {
    background: #ffd000;
    color: #333;
}

.cancel-btn {
    background: #6c757d;
    color: white;
}

.submit-btn:hover {
    background: #f9bc00;
}

.cancel-btn:hover {
    background: #545b62;
}