/* 头部背景图片和渐变背景样式 */
.header {
    background: linear-gradient(to bottom, rgb(255 255 255 / 0%), rgb(255 255 255 / 96%)), 
                url(https://lansedh.cc/mimi/bj12.webp);
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 500px; /* 你可以根据需要调整头部的高度 */
}

/* 适应不同设备的媒体查询 */
@media (max-width: 768px) {
    .header {
        height: 200px; /* 在移动设备上调整头部的高度 */
    }
}

/* 中部图片容器样式 */
.center-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0; /* 根据需要调整上/下边距 */
}

/* 中部图片样式 */
.center-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* 居中对齐 */
}
/* 颜色选择器样式 */
.color-picker {
    text-align: center;
    margin: 20px 20px;
}

body {
    overflow-x: hidden; /* 只隐藏水平滚动条 */
    transition: background-color 0.3s, color 0.3s;
    background-color: #ffffff; /* 白天模式背景色 */
    color: #000000; /* 白天模式文字色 */
}

body.night-mode {
    background-color: #121212; /* 黑夜模式背景色 */
    color: #ffffff; /* 黑夜模式文字色 */
}

.animal {
    position: fixed; /* 让小动物固定在视窗内 */
    width: 100px;
    height: 100px;
    background-color: #b5616161;
    border-radius: 50%;
    display: none; /* 默认隐藏 */
    z-index: 999; /* 确保在最上层 */
    text-align: center;
    line-height: 100px;
    font-size: 50px;
    cursor: pointer;
}

.animal::before {
    content: '🐰'; /* 这里可以换成其他表情符号 */
}

.speech-bubble {
    position: fixed; /* 让气泡固定在视窗内 */
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    max-width: 200px;
    display: none; /* 默认隐藏 */
    word-wrap: break-word;
    z-index: 1000;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px;
    border-style: solid;
    border-color: #fff transparent transparent transparent; /* 透明的底边 */
}

.mode-toggle {
    position: fixed;
    bottom: 75px;
    right: 18px;
    background-color: #fff;
    border: none;
    border-radius: 79%;
    width: 39px;
    height: 39px;
    font-size: 22px;
    cursor: pointer;
    z-index: 1001; /* 确保按钮在最上层 */
}

body.night-mode .mode-toggle {
    background-color: #444444;
}
