/* 收藏页面样式 */
.page-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    border: none;
    background: none;
    padding: 0;
    margin-right: 15px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.page-title {
    font-size: 18px;
    color: #333;
    flex: 1;
}

.favorite-list {
    background: #fff;
    margin-bottom: 60px; /* 为底部导航留出空间 */
}

.favorite-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s;
}

.favorite-item:active {
    background-color: #f5f5f5;
}

.song-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.song-title {
    font-size: 16px;
    color: #333;
}

.song-artist {
    font-size: 14px;
    color: #999;
}

.song-artist::before {
    content: "-";
    margin: 0 4px;
    color: #999;
}

.favorite-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.favorite-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.favorite-btn img {
    width: 100%;
    height: 100%;
}

.arrow-right {
    color: #999;
    font-size: 20px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 加载状态样式 */
.loading-state {
    text-align: center;
    padding: 20px;
    color: #999;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误状态样式 */
.error-state {
    text-align: center;
    padding: 20px;
    color: #ff4444;
    display: none;
}

.error-state button {
    margin-top: 10px;
    padding: 8px 16px;
    background: #007AFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
