/* 弹窗背景样式 */
.modal-background {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

/* 弹窗内容样式 */
.modal-content {
    background-color: #f2f2f2; /* 统一的背景颜色 */
    position: absolute; /* 绝对定位 */
    top: 50%; /* 距离顶部50% */
    left: 50%; /* 距离左侧50% */
    transform: translate(-50%, -50%); /* 向左和向上各偏移自身宽度和高度的50% */
    padding: 20px;
    border-radius: 10px; /* 圆角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 阴影 */
    width: 300px; /* 固定宽度 */
    max-width: 450px; /* 限制最大宽度 */
    /* 其他样式保持不变 */
}

/* 关闭按钮样式 */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* 弹窗标题和内容样式 */
.modal-header,
.modal-body {
    color: #333; /* 标题和内容文本颜色 */
    background-color: transparent; /* 移除默认背景色 */
}

/* 弹窗标题 */
.modal-header {
    padding: 10px 16px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* 弹窗正文 */
.modal-body {
    padding: 15px;
}