/* 确保消息框固定在页面顶部 */
#message-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    z-index: 1050;
}

/* Bootstrap 风格增强 */
.flash-message {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 15px;
    font-size: 14px;
    animation: fadeIn 0.5s ease-in-out;
}

/* 颜色自定义 */
.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger, .alert-error {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* 淡入淡出动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

html, body {
    /* 让 html 和 body 占满整个视口（viewport），即页面的高度始终为 100%。 */ 
    height: 100%;
    /* 去掉默认的外边距，避免页面出现额外的空隙。 */
    margin: 0;
    /* 将 body 设为弹性盒子（Flexbox 布局），这样可以更好地控制子元素的排列方式。 */
    display: flex;
    /* 让 body 内部的内容垂直排列（默认是横向 row） */
    flex-direction: column;
}

.container-wrapper {
    flex: 1; /* 让这个区域占据剩余空间，确保 footer 在底部 */
    display: flex;
    /* 让 .content 里面的内容也是垂直排列的。 */
    flex-direction: column;
}

footer {
    /* background: #343a40;  */
    color: white;
    text-align: center;
    padding: 10px 0;
}
