/* 初始状态 - 深灰色背景 */
body {
    background-color: #333; /* 图片加载前的深灰色 */
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 背景图片层 - 同时包含模糊效果 */
/* 背景图片层 - 同时包含模糊效果 */
/* 主背景层 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色覆盖 */
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    animation: fadeInBackground 1s 1s ease-in-out forwards;
}

/* 模糊背景层 */
body::after {
    content: '';
    position: fixed;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    background-image: url('images/background/background.jpg?t=<?php echo time(); ?>');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(15px) brightness(0.75); /* 更强模糊效果 */
    opacity: 0;
    z-index: -2;
    pointer-events: none;
    animation: fadeInBackground 0.8s 0.3s ease-in-out forwards;
}
/* 容器样式 */
.container {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    margin: 20px auto;

}

/* 背景渐入动画 */
@keyframes fadeInBackground {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* 容器渐入动画 */
@keyframes fadeInContainer {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}