.modal {
    display: none; /* 初始隐藏 */
    position: fixed;
    z-index: 1000; /* 提高层级 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* 防止背景滚动 */
    
    /* 背景变暗核心 */
    background-color: rgba(0, 0, 0, 0.6); 
    
    /* 布局 */
    display: none; /* 由 JS 控制切换为 flex */
    justify-content: center;
    align-items: center;

    /* 动画 */
    animation: modalopen 0.4s ease;
}
.modal-form {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 50%;
    max-width: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    box-shadow: 0 2px 2px rgb(0 0 0 / 10%), 
                0 4px 4px rgb(0 0 0 / 5%), 
                0 8px 8px rgb(0 0 0 / 5%), 
                0 16px 16px rgb(0 0 0 / 5%), 
                0 32px 32px rgb(0 0 0 / 5%);
    border-radius: 5px;
    padding: 20px;
    animation-name: modalopen;
    animation-duration: 0.3s;
}

@keyframes modalopen {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-body {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    vertical-align: middle;
    letter-spacing: 0;
    text-indent: 0;
    padding: 20px;
}
.modal-body form {
    width: 100%;
}

.modal-body span {
    font-size: 1rem;
    margin: auto;
}

.modal-header {
    min-height: 40px;
    display: flex;
    justify-content: space-between;
}
.modal-title {
    display: flex;
    margin: auto;
    text-align: center;
    justify-content: center;
}
.modal-title h2 {
    font-size: 1.1rem;
    font-weight: 300;
    color: #343a40;
    /* color: #555; */
    text-shadow: 0px 0px 1px #333;
    text-transform: capitalize;
}
.modal-title h2.language-zh {
    letter-spacing: 0.4rem;
    text-indent: 0.4rem;
}
.modal-title h2.language-en {
    letter-spacing: 0;
    text-indent: 0;
}
#modal-close {
    position: absolute;
    display: flex;
    top: 30px;
    right: 20px;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    vertical-align: center;
}
#modal-close i:hover {
    color: #333;
}

.form-group {
    width: 100%;
    margin-bottom: 20px;
    font-size: 18px !important;
    line-height: 1.4 !important;
    color: #838383 !important;
}
.form-group:last-child {
    margin-bottom: 0;
}

.form-control {
    display: block;
    font-size: 1rem;
    line-height: 1.4;
    color: #555;
    width: 100%;
    height: 51px;
    padding: 12px 18px;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ddd;
    border-radius: 2px;
    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    -webkit-transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

textarea.form-control {
    height: auto;
}

.form-control:focus {
    border-color: #bcbfc2;
    outline: 0;
    box-shadow: 0 0 8px #bcbfc2;
}

::placeholder {
    color: #bcbfc2;
}

.modal-footer {
    display: flex;
    width: 100%;
    /* height: 40px; */
    align-items: center;
    vertical-align: middle;
    justify-content: center;
}
.modal-footer button {
    width: 100px;
    height: 36px;
    border: none;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2rem;
    font-size: 1rem;
    cursor: pointer;
    margin: 0;
    transition: all 0.3s ease-in-out;
    margin: 10px;
}
.modal-footer button:hover {
    text-decoration: none;
    color: #6c757d;
    background: rgba(0, 0, 0, 0.1);
}
.modal-footer button.language-zh {
    letter-spacing: 0.2rem;
    text-indent: 0.2rem;
}
.modal-footer button.language-en {
    letter-spacing: 0;
    text-indent: 0;
}
.modal-footer button.btn-ok {
    color: #fff;
    background-color: #3283f6;
    border-color: #3283f6;
    box-shadow: 0 0 0 rgba(50, 131, 246, .5);
}
.modal-footer button.btn-ok:hover {
    background-color: #095cd2;
    border-color: #095cd2;
}

.modal i.noti-icon {
  color: #ff9800; /* 橙色警告感 */
}