body {
    font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, Helvetica, Arial, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif;
    background-color: #f1f2f3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.search-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px;
}

.search-form {
    display: flex;
}

.search-input {
    flex-grow: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #e3e5e7;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-button {
    background-color: #00a1d6;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

.search-button:hover {
    background-color: #0086b3;
}

.decoration {
    position: fixed;
    opacity: 0.1;
    z-index: 0;
}

.circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #00a1d6;
}

.square {
    width: 80px;
    height: 80px;
    background-color: #fb7299;
    transform: rotate(45deg);
}

.triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86.6px solid #ffc800;
}

.top-left { top: 5%; left: 5%; }
.top-right { top: 5%; right: 5%; }
.bottom-left { bottom: 5%; left: 5%; }
.bottom-right { bottom: 5%; right: 5%; }

.nav-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.nav-item {
    flex: 1;
    min-width: 60px;
    margin: 5px;
    text-align: center;
    text-decoration: none;
    color: #333;
}

.nav-item img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
    margin-bottom: 5px;
    object-fit: contain;
}

.nav-item:hover img {
    transform: scale(1.1);
}

.nav-item span {
    display: block;
    font-size: 12px;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.title-image-container {
    position: relative;
    margin-right: 20px;
    z-index: 5;
}

.title-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    object-fit: cover;
}

.love-title {
    font-family: 'Zhi Mang Xing', cursive;
    font-size: 64px;
    background: linear-gradient(45deg, #fb7299 50%, #00a1d6 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin: 0;
    padding: 0;
    position: relative;
}

.heart {
    position: fixed;
    font-size: 20px;
    color: #ff4081;
    opacity: 0;
    z-index: 10;
}

.heart-up {
    animation: floatUp 5s ease-in-out;
}

.heart-surround {
    position: absolute;
    animation: surroundImage 3s ease-in-out forwards;
}

@keyframes floatUp {
    0% { 
        transform: translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% { 
        transform: translateY(-100vh);
        opacity: 0;
    }
}

@keyframes surroundImage {
     0% {
        transform: translate(var(--start-x), var(--start-y));
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--end-x), var(--end-y));
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .search-container {
        padding: 15px;
    }
    .search-input {
        font-size: 14px;
    }
    .search-button {
        padding: 10px 15px;
        font-size: 14px;
    }
    .nav-bar {
        padding: 5px;
        justify-content: space-around;
    }
    .nav-item {
        margin: 2px;
        min-width: 40px;
    }
    .nav-item img {
        width: 24px;
        height: 24px;
    }
    .nav-item span {
        font-size: 10px;
    }
    .decoration {
        display: none;
    }
    .title-container {
        flex-direction: column;
    }
    .title-image-container {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .love-title {
        font-size: 48px;
    }
}

/* 在文件末尾添加以下样式 */
#xf-MusicPlayer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.heart-floating {
    animation: floatUp 5s ease-in-out;
}
