.app-dialog-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20000;
}

.app-dialog-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 430px;
    max-width: 90%;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 20001;
    font-family: "Microsoft YaHei", sans-serif;
}

.app-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.app-dialog-close {
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.app-dialog-body {
    padding: 24px 22px;
    color: #495057;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.app-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid #e8ecf1;
    background: #f8f9fc;
}

.app-dialog-button {
    min-width: 72px;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.app-dialog-cancel {
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
}

.app-dialog-confirm {
    border: 1px solid #667eea;
    background: #667eea;
    color: #fff;
}

.app-dialog-confirm:hover { background: #5a6fd6; }
.app-dialog-modal:focus { outline: none; }
