* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

/* 图片容器样式 */
.image-container {
    margin: 0;
    text-align: center;
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 日期显示样式 - 悬浮在图片上方，看起来像图片的一部分 */
/* 日期显示样式 - 更加清晰可见，显示在同一行 */
/* 日期显示样式 - 更新为分行显示 */
.date-container {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    padding: 10px;
}

#current-date {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.date-line {
    font-size: 32px;
    font-weight: 600;
}

.weekday-line {
    font-size: 28px;
    font-weight: 500;
}

/* 日期显示样式 - 悬浮在图片上方，看起来像图片的一部分 */
/* 日期显示样式 - 更加清晰可见，显示在同一行 */
.date-container {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    padding: 10px;
    white-space: nowrap; /* 确保日期显示在同一行 */
}

#current-date {
    font-size: 28px;
    font-weight: 600;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1.5px;
    padding: 5px 15px;
    border-radius: 30px;
    position: relative;
    display: inline-block;
}

/* 运势按钮样式 - 位置和样式调整 */
/* 运势按钮样式 - 使用图片并添加动画 */
.fortune-button-container {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 200px;  /* 增加按钮容器尺寸 */
    height: 200px; /* 增加按钮容器尺寸 */
}

#fortune-button {
    width: 100%;
    height: 100%;
    background: url('./qian.png') no-repeat center center;
    background-size: contain;
    border: none;
    cursor: pointer;
    position: relative;
    animation: pulse-grow 2s infinite alternate ease-in-out;
    box-shadow: none;
    text-indent: -9999px;
    padding: 0;
}

@keyframes pulse-grow {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15); /* 增加放大比例 */
    }
}

#fortune-button:hover {
    animation-play-state: paused;
}

#fortune-button:active {
    transform: scale(0.95);
}

/* 移除之前的按钮伪元素样式 */
#fortune-button::before,
#fortune-button::after {
    display: none;
    content: none; /* 确保伪元素不显示 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    #current-date {
        font-size: 22px;
        letter-spacing: 1px;
    }
    
    .fortune-button-container {
        width: 85%;
    }
    
    #fortune-button {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .fortune-container,
    .fortune-container {
        width: 80%;
    }
    
    #fortune-button {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .fortune-result {
        padding: 15px;
        font-size: 20px;
    }
}


/* 运势结果容器样式 */
.fortune-container {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 80%;
    max-width: 300px;
    margin: 0;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none; /* 初始隐藏 */
}

.fortune-container h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
}

/* 运势结果样式 */
.fortune-result {
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 10px;
}

/* 添加滚动动画效果 */
@keyframes fortune-scroll {
    0% { transform: translateY(100%); opacity: 0; }
    10% { transform: translateY(0); opacity: 1; }
    90% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}

/* 添加动画效果 */
.fortune-result.animate {
    animation: fortune-pulse 1s ease;
}

.fortune-result.scrolling {
    animation: fortune-scroll 0.3s linear;
}

@keyframes fortune-pulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

/* 不同运势类型的样式 */
.label-happy {
    background-color: #FFD700;
    color: #333;
}

.label-rest {
    background-color: #87CEEB;
    color: #333;
}

.label-play {
    background-color: #FF6B6B;
    color: white;
}

.label-confused {
    background-color: #9370DB;
    color: white;
}

.label-task {
    background-color: #32CD32;
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #current-date {
        font-size: 22px;
        letter-spacing: 1px;
    }
    
    .fortune-button-container {
        width: 150px;
        height: 150px;
    }
    
    .fortune-container {
        width: 85%;
        max-width: 280px;
    }
    
    .fortune-result {
        padding: 15px;
        font-size: 20px;
    }
}

/* 添加到CSS文件末尾 */

/* 粒子效果容器 */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

/* 单个粒子样式 */
.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.8;
    animation: particle-float 1.5s ease-out forwards;
}

/* 粒子动画 */
@keyframes particle-float {
    0% {
        transform: scale(0) translate(0, 0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: scale(1) translate(var(--tx, 50px), var(--ty, -50px));
        opacity: 0;
    }
}

/* 闪光效果 */
.sparkle-effect {
    animation: sparkle 2s ease-in-out infinite !important;
    box-shadow: 0 0 15px 5px rgba(255, 215, 0, 0.6) !important;
}

@keyframes sparkle {
    0%, 100% {
        box-shadow: 0 0 15px 5px rgba(255, 215, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(255, 215, 0, 0.8);
    }
}

/* 为"快乐日"添加额外的样式 */
.label-happy.animate {
    animation: fortune-pulse 1s ease, happy-glow 2s infinite alternate ease-in-out !important;
}

@keyframes happy-glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
    }
}