Files
RE-Amachiromaker/static/css/modal.css
2025-11-04 10:55:50 +08:00

98 lines
2.2 KiB
CSS

.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
z-index: 1000; /* 确保在最上层 */
}
.modal-overlay.active {
opacity: 1;
visibility: visible;
}
.modal-content {
background: rgba(240, 244, 248, 0.521); /* 半透明浅蓝色背景 */
padding: 30px;
border-radius: 15px;
width: 90%;
max-width: 500px;
text-align: center;
transform: scale(0.9);
transition: transform 0.3s ease;
box-shadow: 0 8px 25px rgba(0,0,0,0.2);
border: 1px solid rgba(118, 170, 255, 0.801); /* 半透明边框 */
backdrop-filter: blur(10px); /* 模糊效果 */
}
.modal-overlay.active .modal-content {
transform: scale(1);
}
.modal-content h2 {
margin-top: 0;
color: #333;
font-size: 24px;
font-weight: 600;
}
.modal-content p {
margin: 20px 0;
color: #555; /* 深灰色字体 */
font-size: 16px;
line-height: 1.6;
}
.modal-content p strong {
color: #991641; /* 突出显示重要内容 */
}
.modal-buttons {
display: flex;
justify-content: center;
gap: 15px;
margin-top: 30px;
}
.modal-button {
padding: 12px 25px;
border: none;
border-radius: 25px; /* 更圆的按钮 */
cursor: pointer;
font-size: 16px;
font-weight: 600; /* 字体加粗 */
transition: all 0.3s ease;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
text-transform: uppercase; /* 字母大写 */
letter-spacing: 1px; /* 增加字母间距 */
}
.modal-button-agree {
background: linear-gradient(45deg, #44d661, #cfffdf); /* 绿色渐变 */
color: white;
}
.modal-button-agree:hover {
background-color: #218838;
transform: translateY(-3px) scale(1.05);
box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.modal-button-disagree {
background: linear-gradient(45deg, #ff487f, #e4e8f0); /* 粉色渐变w */
color: #ffffff;
}
.modal-button-disagree:hover {
background-color: #c82333;
transform: translateY(-3px) scale(1.05);
box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}