/**
 * Copyright (c) 河南锅锅岛科技有限公司
 * Website: ggdao.net | VX: IJG55555
 */

/* 统一弹窗组件样式，前台/后台共用（配合 static/js/modal.js） */

.ui-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

.ui-modal-overlay.show {
    display: flex;
}

.ui-modal-box {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: ui-modal-pop 0.15s ease-out;
}

@keyframes ui-modal-pop {
    from { transform: scale(0.94); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.ui-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2329;
    margin-bottom: 10px;
}

.ui-modal-message {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.ui-modal-input {
    width: 100%;
    margin-top: 12px;
    padding: 9px 12px;
    border: 1px solid #e0e2e6;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.ui-modal-input:focus {
    border-color: #4b7bec;
}

.ui-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.ui-modal-btn {
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.ui-modal-btn-cancel {
    background: #f0f1f3;
    color: #333;
}

.ui-modal-btn-ok {
    background: #4b7bec;
    color: #fff;
}

/* 通用小表单弹窗（设置昵称、修改密码等场景复用），配合 id="xxxModal" + class="nick-modal" 使用 */

.nick-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

.nick-modal.show {
    display: flex;
}

.nick-modal-box {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    width: 100%;
    max-width: 340px;
    animation: ui-modal-pop 0.15s ease-out;
}

.nick-modal-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1f2329;
}

.nick-modal-box .form-item {
    margin-bottom: 14px;
}

.nick-modal-box .form-item label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.nick-modal-box input {
    width: 100%;
    border: 1px solid #e0e2e6;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
}

.nick-modal-box input:focus {
    border-color: #4b7bec;
}

.nick-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.nick-modal-actions button {
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

#nickCancel,
#pwdCancel {
    background: #f0f1f3;
    color: #333;
}

#nickConfirm,
#pwdSubmit {
    background: #4b7bec;
    color: #fff;
}
