body {
    background-color: rgba(248, 249, 250, 0.3); /* 背景色的透明度 */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    animation: fadeIn 1.5s ease-in-out;
}

/* SVG背景透明度调整 */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/舞龙戏狮庆团圆.svg') no-repeat center center;
    background-size: cover;
    opacity: 0.3; /* 调整透明度 */
    pointer-events: none; /* 防止影响页面交互 */
    z-index: -1; /* 保证SVG背景在内容下面 */
}

/* 头部项目卡片的悬浮动画 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-15px) scale(1.05); /* 向上浮动并放大 */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2); /* 增加阴影，提升层次感 */
}

/* 按钮悬浮效果 */
.btn-primary {
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.1);
    background-color: #0056b3;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* 页脚动画效果 */
.footer {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #6c757d;
    animation: footerFadeIn 1.5s ease-in-out;
}

.footer a {
    text-decoration: none;
    color: #007bff;
}

.footer a:hover {
    text-decoration: underline;
}

/* 渐变加载动画 */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* 页脚的淡入动画 */
@keyframes footerFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* 卡片容器 */
/* 卡片底部线条 */
.card {
    border: 6px double #00796b; /* 之前设置的粗边框 */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
    position: relative;
    padding-bottom: 1rem; /* 增加底部内边距以避免遮挡 */
}

.card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px; /* 底部线条粗细 */
    background-color: #00796b; /* 绿色底部线条 */
}


.card:hover {
    transform: translateY(-10px); /* 悬停时轻微上移 */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15); /* 悬停时更强的阴影 */
}

/* 卡片内部文字动画 */
.card-body {
    opacity: 0;
    animation: cardTextFadeIn 1.5s ease-in-out forwards;
}

.card-body h5,
.card-body p {
    opacity: 0;
    animation: cardTextFadeIn 1.5s ease-in-out forwards;
    animation-delay: 0.5s;
}

/* 文字淡入动画 */
@keyframes cardTextFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* 遮罩层 */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 245, 248, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

/* 可爱的小猫 */
.loading-cat {
    font-size: 32px;
    color: #ff6b81;
    animation: catJump 1s infinite alternate ease-in-out;
}

/* 爱心旋转 */
.loading-cat::after {
    content: " ❤️";
    display: inline-block;
    animation: rotateHeart 1s infinite linear;
}

/* 旋转爱心 */
@keyframes rotateHeart {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes catJump {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-8px);
    }
}

/* 加载文字 */
.loading-text {
    font-size: 20px;
    font-weight: bold;
    color: #ff4081;
    margin-top: 10px;
    animation: textBlink 1.5s infinite alternate;
}

/* 文字闪烁 */
@keyframes textBlink {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

/* 进度条 */
.loading-bar {
    width: 200px;
    height: 8px;
    background: #ffd1dc;
    border-radius: 5px;
    margin-top: 15px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: #ff6b81;
    border-radius: 5px;
    animation: progressGrow 2s ease-in-out forwards;
}

/* 进度条增长 */
@keyframes progressGrow {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* 漂浮泡泡 */
.bubble-container {
    position: absolute;
    bottom: 10px;
    width: 100%;
    height: 100px;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -20px;
    width: 25px;
    height: 25px;
    background-color: rgba(255, 99, 132, 0.4);
    border-radius: 50%;
    animation: bubbleUp 3s infinite ease-in-out;
}

/* 让泡泡随机上升 */
.bubble:nth-child(1) {
    left: 10%;
    animation-duration: 3.5s;
    width: 12px;
    height: 12px;
}

.bubble:nth-child(2) {
    left: 30%;
    animation-duration: 4s;
    width: 18px;
    height: 18px;
}

.bubble:nth-child(3) {
    left: 50%;
    animation-duration: 3s;
}

.bubble:nth-child(4) {
    left: 70%;
    animation-duration: 4.2s;
    width: 20px;
    height: 20px;
}

.bubble:nth-child(5) {
    left: 90%;
    animation-duration: 3.8s;
    width: 16px;
    height: 16px;
}

.bubble:nth-child(6) {
    left: 45%;
    animation-duration: 5s;
    width: 26px;
    height: 26px;
}

.bubble:nth-child(7) {
    left: 36%;
    animation-duration: 6s;
    width: 36px;
    height: 36px;
}

/* 泡泡上升 */
@keyframes bubbleUp {
    0% {
        transform: translateY(0);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

/* 加载完成后隐藏 */
.hidden {
    opacity: 0;
    visibility: hidden;
}

:root {
    --color2: #56d5fc;
    --color4: #def700;
    --color6: #fa3195;
}

.clock_box {
    position: relative;
    width: 380px;
    height: 80px;
    border-radius: 10px;
    background-image: linear-gradient(135deg, var(--color2), var(--color4), var(--color6));
    display: flex;
    justify-content: center;
    align-items: center;
    animation: animate 4s linear infinite;
    margin: 20px auto; /* 保持居中 */
}

.clock_box::after, .clock_box::before {
    position: absolute;
    content: "";
    background-image: inherit;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: 10px;
    filter: blur(15px);
}

.clock_box::before {
    filter: blur(100px);
}

.clock {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 10px;
    bottom: 10px;
    background-color: #2b2a2a;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock p {
    font-size: 50px;
    font-weight: bold;
    color: transparent;
    letter-spacing: 2px;
    background-image: linear-gradient(135deg, var(--color2), var(--color4), var(--color6));
    background-clip: text;
    -webkit-background-clip: text;
    line-height: 80px; /* 让文字垂直居中，并稍微向下 */
    padding-top: 10px; /* 让文字向下移动 */
}

@keyframes animate {
    100% {
        filter: hue-rotate(360deg);
    }
}

/* 按钮样式 */
.button {
    display: inline-block;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-decoration: none;
    font-family: sans-serif;
    font-weight: 600;
    font-size: 1em; /* 调整为和原按钮大小一致 */
    padding: 0.5em 1em; /* 调整为和原按钮大小一致 */
    color: #027a6c; /* 设置按钮文本颜色 */
    border: 0.15em solid #027a6c; /* 设置边框颜色 */
    border-radius: 2em;
    transition: 2s; /* 缩短过渡时间，使动画更平滑 */
}

.button:before, .button:after {
    content: "";
    text-decoration: none;
    position: absolute;
    top: -1.5em;
    z-index: -1;
    width: 200%;
    aspect-ratio: 1;
    border: none;
    border-radius: 40%;
    background-color: rgba(2, 122, 108, 0.25); /* 设置背景颜色 */
    transition: 2s;
}

.button:before {
    left: -80%;
    transform: translate3d(0, 5em, 0) rotate(-340deg);
}

.button:after {
    right: -80%;
    transform: translate3d(0, 5em, 0) rotate(390deg);
}

.button:hover .button:focus {
    color: white;
}

.button:hover:before, .button:hover:after, .button:focus:before, .button:focus::after {
    transform: none;
    text-decoration: none;
    background-color: rgba(2, 122, 108, 0.75); /* 设置背景颜色 */
}
