/* my-alert.css */
.ca-mask {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 999999;
    font-family: "Microsoft YaHei", "微软雅黑", STHeiti, sans-serif;
    -webkit-transition: background 0.3s ease;
    transition: background 0.3s ease;
}

.ca-mask.active { background: rgba(0, 0, 0, 0.6); }

.ca-box {
    position: relative; /* 必须为 relative，因为按钮是 absolute */
    background: #f5f5f5;
    height: 150px;
    border-radius: 6px;
    width: 230px;
    text-align: center;
    -webkit-box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    opacity: 0;
    -webkit-transform: scale(0.8) translateY(-20px);
    transform: scale(0.8) translateY(-20px);
    -webkit-transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ca-mask.active .ca-box {
    opacity: 1;
    -webkit-transform: scale(1) translateY(0);
    transform: scale(1) translateY(0);
}

.ca-mask.fade-out { background: rgba(0, 0, 0, 0) !important; transition: background 0.2s ease; }
.ca-mask.fade-out .ca-box { opacity: 0; -webkit-transform: scale(0.9) translateY(10px); transform: scale(0.9) translateY(10px); transition: all 0.2s ease; }

.ca-msg {
    color: #333333;
    font-size: 16px;
    position: relative;
    top: 34px;
    line-height: 1.5;
    padding: 0 15px;
}

/* 在之前的 CSS 后面添加 */
.ca-input {
    position: relative;
    top: 30px; /* 配合 ca-msg 的位置 */
    width: 190px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
    outline: none;
    display: block;
    margin: 0 auto;
    -webkit-appearance: none;
}

.ca-input:focus {
    border-color: #0044ff;
}

/* 调整有输入框时的消息间距 */
.ca-box-prompt .ca-msg {
    top: 20px;
    font-size: 15px;
}
/* 按钮组容器 */
.ca-btn-group {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 45px;
    display: flex;
    border-top: 1px solid #e4e3e3;
}

.ca-btn {
    flex: 1;
    height: 100%;
    background: transparent;
    color: #0044ff;
    border: none;
    cursor: pointer;
    font-size: 15px;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    outline: none;
}

/* 只有确认按钮时的圆角处理 */
.ca-btn-solo { border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; }

/* 双按钮时的处理 */
.ca-btn-cancel { 
    color: #666; 
    border-right: 1px solid #e4e3e3; 
    border-bottom-left-radius: 6px; 
}
.ca-btn-confirm { 
    font-weight: bold; 
    border-bottom-right-radius: 6px; 
}

.ca-btn:hover { background: rgba(216, 216, 216, 0.425); }