:root {
	--color-primary: #4a6bff;
	--color-secondary: #6a5acd;
	--color-accent: #ff4a6b;
	--color-dark: #121212;
	--color-light: rgba(255, 255, 255, 0.9);
	--color-text: rgba(255, 255, 255, 0.85);
	--color-text-secondary: rgba(255, 255, 255, 0.6);
	--color-border: rgba(255, 255, 255, 0.12);
	--color-backdrop: rgba(0, 0, 0, 0.8);
	--glass-bg: rgba(255, 255, 255, 0.08);
	--glass-highlight: rgba(255, 255, 255, 0.15);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
	background-color: var(--color-dark);
	color: white;
}

.floating-btn-container {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 999;
}

.floating-btn {
	/* 尺寸与形状 */
	width: 56px;
	height: 56px;
	border-radius: 50%;

	/* 颜色与效果 - 简约高级风格 */
	background: var(--color-primary);
	color: white;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow:
		0 4px 6px rgba(0, 0, 0, 0.05),
		0 1px 3px rgba(0, 0, 0, 0.1);

	/* 布局 */
	display: flex;
	justify-content: center;
	align-items: center;

	/* 文字与图标 */
	font-size: 24px;
	font-weight: 300;

	/* 交互效果 */
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.37, 0, 0.63, 1);

	/* 其他效果 */
	position: relative;
	overflow: hidden;
}

/* 简约的悬停效果 */
.floating-btn:hover {
	transform: translateY(-2px);
	box-shadow:
		0 6px 12px rgba(0, 0, 0, 0.1),
		0 2px 4px rgba(0, 0, 0, 0.15);
	background: var(--color-primary-dark);
}

/* 点击效果 */
.floating-btn:active {
	transform: translateY(0);
	box-shadow:
		0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 简约的微光效果 */
.floating-btn::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.floating-btn:hover::after {
	opacity: 1;
}

/* 简约的边框动画 */
.floating-btn::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.2);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.floating-btn:hover::before {
	opacity: 1;
}



/* 播放器遮罩层 */
.player-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--color-backdrop);
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
	z-index: 1000;
	backdrop-filter: blur(20px);
}

.player-overlay.active {
	opacity: 1;
	pointer-events: all;
}

/* 播放器主体 */
.player {
	background: var(--glass-bg);
	border-radius: 24px;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
	padding: 30px;
	width: 90%;
	max-width: 380px;
	text-align: center;
	transform: translateY(20px) scale(0.95);
	transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	position: relative;
	overflow: hidden;
	border: 1px solid var(--color-border);
	backdrop-filter: blur(30px);
}

.player-overlay.active .player {
	transform: translateY(0) scale(1);
}

/* 关闭按钮 */
.close-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	background: var(--glass-bg);
	border: 1px solid var(--color-border);
	font-size: 0;
	cursor: pointer;
	color: var(--color-text);
	transition: all 0.3s ease;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.8;
	backdrop-filter: blur(5px);
}

.close-btn::before {
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}

.close-btn:hover {
	opacity: 1;
	transform: rotate(90deg) scale(1.1);
	background: var(--glass-highlight);
}

/* 专辑封面 */
.album-art {
	width: 200px;
	height: 200px;
	border-radius: 12px;
	margin: 0 auto 25px;
	background: var(--glass-bg);
	overflow: hidden;
	position: relative;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
	border: 1px solid var(--color-border);
}

.album-art:hover {
	transform: translateY(-5px) scale(1.02);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.album-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.player.playing .album-art img {
	transform: scale(1.05);
}

/* 歌曲信息 */
.song-info {
	margin-bottom: 25px;
}

.song-title {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--color-light);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 0 10px;
	transition: all 0.3s ease;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.song-title:hover {
	color: white;
	transform: translateX(3px);
}

.song-artist {
	font-size: 16px;
	color: var(--color-text-secondary);
	font-weight: 400;
	transition: all 0.3s ease;
}

.song-artist:hover {
	color: var(--color-text);
}

/* 进度条 */
.progress-container {
	width: 100%;
	height: 4px;
	background-color: var(--color-border);
	border-radius: 4px;
	margin-bottom: 15px;
	cursor: pointer;
	overflow: hidden;
	transition: height 0.2s ease;
}

.progress-container:hover {
	height: 6px;
}

.progress-bar {
	height: 100%;
	background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
	border-radius: 4px;
	width: 0%;
	transition: width 0.1s linear, background 0.3s ease;
	position: relative;
}

.time-info {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: var(--color-text-secondary);
	margin-bottom: 25px;
	transition: opacity 0.3s ease;
}

.time-info:hover {
	color: var(--color-text);
}

/* 控制按钮 */
.controls {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
	gap: 10px;
}

.control-btn {
	background: var(--glass-bg);
	border: 1px solid var(--color-border);
	font-size: 0;
	margin: 0 8px;
	cursor: pointer;
	color: var(--color-text);
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.9;
	backdrop-filter: blur(5px);
	position: relative;
}

.control-btn:hover {
	opacity: 1;
	transform: scale(1.1);
	background: var(--glass-highlight);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 自定义SVG图标 */
.control-btn::before {
	content: "";
	display: block;
	width: 24px;
	height: 24px;
	background-repeat: no-repeat;
	background-position: center;
}

#previousButton::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='19 20 9 12 19 4 19 20'%3E%3C/polygon%3E%3Cline x1='5' y1='19' x2='5' y2='5'%3E%3C/line%3E%3C/svg%3E");
}

#playButton::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='5 3 19 12 5 21 5 3'%3E%3C/polygon%3E%3C/svg%3E");
}

.player.playing #playButton::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='4' width='4' height='16'%3E%3C/rect%3E%3Crect x='14' y='4' width='4' height='16'%3E%3C/rect%3E%3C/svg%3E");
}

#nextButton::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='5 4 15 12 5 20 5 4'%3E%3C/polygon%3E%3Cline x1='19' y1='5' x2='19' y2='19'%3E%3C/line%3E%3C/svg%3E");
}

.play-pause-btn {
	background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
	color: white;
	width: 60px;
	height: 60px;
	box-shadow: 0 8px 20px rgba(74, 107, 255, 0.3);
	opacity: 1;
	border: none;
}

.play-pause-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 10px 25px rgba(74, 107, 255, 0.4);
}

/* 随机播放按钮 */
.random-btn {
	background: var(--glass-bg);
	border: 1px solid var(--color-border);
	font-size: 14px;
	cursor: pointer;
	color: var(--color-text);
	transition: all 0.3s ease;
	margin-top: 10px;
	padding: 8px 16px;
	border-radius: 20px;
	opacity: 0.9;
	backdrop-filter: blur(5px);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.random-btn::before {
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 3 21 3 21 8'%3E%3C/polyline%3E%3Cline x1='4' y1='20' x2='21' y2='3'%3E%3C/line%3E%3Cpolyline points='21 16 21 21 16 21'%3E%3C/polyline%3E%3Cline x1='15' y1='15' x2='21' y2='21'%3E%3C/line%3E%3Cline x1='4' y1='4' x2='9' y2='9'%3E%3C/line%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}

.random-btn.active {
	color: white;
	background: rgba(74, 107, 255, 0.2);
	opacity: 1;
	border-color: rgba(74, 107, 255, 0.3);
}

.random-btn:hover {
	opacity: 1;
	transform: translateY(-2px);
	background: var(--glass-highlight);
}

/* 旋转动画 */
@keyframes rotate {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.rotate {
	animation: rotate 20s linear infinite;
}

/* 脉冲动画 */
@keyframes pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 8px 20px rgba(74, 107, 255, 0.3);
	}

	50% {
		transform: scale(1.05);
		box-shadow: 0 12px 25px rgba(74, 107, 255, 0.4);
	}

	100% {
		transform: scale(1);
		box-shadow: 0 8px 20px rgba(74, 107, 255, 0.3);
	}
}

.player.playing .play-pause-btn {
	animation: pulse 2s infinite;
}

/* 加载动画 */
.loader {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	backdrop-filter: blur(5px);
}

.loader.active {
	opacity: 1;
	pointer-events: all;
}

.loader-circle {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(255, 255, 255, 0.1);
	border-top-color: white;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* 背景粒子效果 */
.player::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		radial-gradient(circle at 20% 30%, rgba(74, 107, 255, 0.1) 0%, transparent 30%),
		radial-gradient(circle at 80% 70%, rgba(106, 90, 205, 0.1) 0%, transparent 30%);
	opacity: 0;
	transition: opacity 0.6s ease;
	z-index: -1;
}

.player-overlay.active .player::before {
	opacity: 1;
}

/* 响应式调整 */
@media (max-width: 480px) {
	.player {
		padding: 25px;
		border-radius: 20px;
		max-width: 320px;
	}

	.album-art {
		width: 160px;
		height: 160px;
	}

	.song-title {
		font-size: 20px;
	}

	/* 音量控制 */
	.volume-control {
		display: flex;
		align-items: center;
		margin-top: 15px;
		gap: 10px;
	}

	.volume-icon {
		width: 20px;
		height: 20px;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'%3E%3C/polygon%3E%3Cpath d='M15.54 8.46a5 5 0 0 1 0 7.07'%3E%3C/path%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: center;
		opacity: 0.8;
		transition: opacity 0.2s ease;
	}

	.volume-slider {
		flex: 1;
		height: 4px;
		background: var(--color-border);
		border-radius: 4px;
		cursor: pointer;
		transition: height 0.2s ease;
	}

	.volume-slider:hover {
		height: 6px;
	}

	.volume-progress {
		height: 100%;
		background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
		border-radius: 4px;
		width: 80%;
		transition: width 0.1s linear;
	}

	/* 播放列表按钮 */
	.playlist-btn {
		position: absolute;
		bottom: 20px;
		right: 20px;
		background: var(--glass-bg);
		border: 1px solid var(--color-border);
		width: 36px;
		height: 36px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		opacity: 0.8;
		transition: all 0.3s ease;
	}

	.playlist-btn::before {
		content: "";
		display: block;
		width: 18px;
		height: 18px;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='8' y1='18' x2='21' y2='18'%3E%3C/line%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'%3E%3C/line%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: center;
	}

	.playlist-btn:hover {
		opacity: 1;
		transform: scale(1.1);
		background: var(--glass-highlight);
	}

	/* 播放列表面板 */
	.playlist-panel {
		position: absolute;
		top: 0;
		right: 0;
		width: 300px;
		height: 100%;
		background: var(--glass-bg);
		backdrop-filter: blur(20px);
		border-left: 1px solid var(--color-border);
		transform: translateX(100%);
		transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
		padding: 20px;
		overflow-y: auto;
		z-index: 10;
	}

	.playlist-panel.active {
		transform: translateX(0);
	}

	.playlist-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 20px;
	}

	.playlist-title {
		font-size: 18px;
		font-weight: 600;
		color: var(--color-light);
	}

	.close-playlist {
		background: none;
		border: none;
		color: var(--color-text);
		font-size: 20px;
		cursor: pointer;
		opacity: 0.7;
		transition: opacity 0.2s ease;
	}

	.close-playlist:hover {
		opacity: 1;
	}

	.playlist-items {
		list-style: none;
	}

	.playlist-item {
		padding: 12px 15px;
		border-radius: 8px;
		margin-bottom: 8px;
		background: rgba(255, 255, 255, 0.05);
		cursor: pointer;
		transition: all 0.2s ease;
		display: flex;
		align-items: center;
	}

	.playlist-item:hover {
		background: rgba(255, 255, 255, 0.1);
	}

	.playlist-item.active {
		background: rgba(74, 107, 255, 0.2);
		color: white;
	}

	.playlist-item-cover {
		width: 40px;
		height: 40px;
		border-radius: 4px;
		margin-right: 12px;
		background-size: cover;
		background-position: center;
	}

	.playlist-item-info {
		flex: 1;
	}

	.playlist-item-title {
		font-size: 14px;
		font-weight: 500;
		margin-bottom: 2px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.playlist-item-artist {
		font-size: 12px;
		color: var(--color-text-secondary);
	}

	/* 响应式调整 */
	@media (max-width: 768px) {
		.playlist-panel {
			width: 100%;
		}

		复制代码 .player {
			max-width: 90%;
		}
	}

	/* 歌词显示区域 */
	.lyrics-container {
		margin-top: 20px;
		max-height: 200px;
		overflow-y: auto;
		padding: 10px;
		background: rgba(0, 0, 0, 0.2);
		border-radius: 8px;
		scrollbar-width: thin;
		scrollbar-color: var(--color-primary) transparent;
	}

	.lyrics-container::-webkit-scrollbar {
		width: 4px;
	}

	.lyrics-container::-webkit-scrollbar-thumb {
		background-color: var(--color-primary);
		border-radius: 2px;
	}

	.lyrics-line {
		margin-bottom: 12px;
		font-size: 14px;
		color: var(--color-text-secondary);
		text-align: center;
		transition: all 0.3s ease;
	}

	.lyrics-line.active {
		color: white;
		font-size: 16px;
		font-weight: 500;
		transform: scale(1.05);
	}

	/* 波纹点击效果 */
	.ripple {
		position: absolute;
		border-radius: 50%;
		background-color: rgba(255, 255, 255, 0.4);
		transform: scale(0);
		animation: ripple 0.6s linear;
		pointer-events: none;
	}

	@keyframes ripple {
		to {
			transform: scale(4);
			opacity: 0;
		}
	}

	/* 夜间模式切换 */
	.theme-toggle {
		position: absolute;
		top: 20px;
		left: 20px;
		background: var(--glass-bg);
		border: 1px solid var(--color-border);
		width: 36px;
		height: 36px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		opacity: 0.8;
		transition: all 0.3s ease;
		backdrop-filter: blur(5px);
	}

	.theme-toggle::before {
		content: "";
		display: block;
		width: 18px;
		height: 18px;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'%3E%3C/circle%3E%3Cline x1='12' y1='1' x2='12' y2='3'%3E%3C/line%3E%3Cline x1='12

				「tokens: 2048, speed: 10.24 tokens/s」 继续生成 ' y1=' 21' x2=' 12' y2=' 23'%3E%3C/line%3E%3Cline x1=' 4.22' y1=' 4.22' x2=' 5.64' y2=' 5.64'%3E%3C/line%3E%3Cline x1=' 18.36' y1=' 18.36' x2=' 19.78' y2=' 19.78'%3E%3C/line%3E%3Cline x1=' 1' y1=' 12' x2=' 3' y2=' 12'%3E%3C/line%3E%3Cline x1=' 21' y1=' 12' x2=' 23' y2=' 12'%3E%3C/line%3E%3Cline x1=' 4.22' y1=' 19.78' x2=' 5.64' y2=' 18.36'%3E%3C/line%3E%3Cline x1=' 18.36' y1=' 5.64' x2=' 19.78' y2=' 4.22'%3E%3C/line%3E%3C/svg%3E");
 background-repeat: no-repeat;
				background-position: center;
		}

		.theme-toggle:hover {
			opacity: 1;
			transform: rotate(30deg);
			background: var(--glass-highlight);
		}

		/* 淡入淡出动画 */
		.fade-in {
			animation: fadeIn 0.5s ease forwards;
		}

		@keyframes fadeIn {
			from {
				opacity: 0;
				transform: translateY(10px);
			}

			to {
				opacity: 1;
				transform: translateY(0);
			}
		}

		/* 媒体查询 - 暗色模式 */
		@media (prefers-color-scheme: dark) {
			:root {
				--color-dark: #121212;
				--color-light: rgba(255, 255, 255, 0.9);
				--color-text: rgba(255, 255, 255, 0.85);
				--color-text-secondary: rgba(255, 255, 255, 0.6);
				--color-border: rgba(255, 255, 255, 0.12);
			}
		}

		/* 媒体查询 - 亮色模式 */
		@media (prefers-color-scheme: light) {
			:root {
				--color-dark: #f5f5f5;
				--color-light: rgba(0, 0, 0, 0.9);
				--color-text: rgba(0, 0, 0, 0.85);
				--color-text-secondary: rgba(0, 0, 0, 0.6);
				--color-border: rgba(0, 0, 0, 0.12);
				--glass-bg: rgba(255, 255, 255, 0.5);
				--glass-highlight: rgba(255, 255, 255, 0.7);
			}

			复制代码 .player {
				box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
			}

			.floating-btn {
				box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
			}
		}

		/* 微调动画 */
		.player {
			will-change: transform, opacity;
		}

		.album-art img {
			will-change: transform;
		}

		.progress-bar {
			will-change: width;
		}

		/* 性能优化 */
		*, *::before, *::after {
			backface-visibility: hidden;
			-webkit-backface-visibility: hidden;
		}