﻿ 
:root {
	--sidebar-width: 64px;
	--sidebar-gap: 14px;
	--sidebar-bg: #ffffff;
	--sidebar-border: #e5e6eb;
	--icon-color: #c0c4cc;
	--icon-color-hover: #07c160;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.sidebar {
	position: fixed;
	top: 45vh;
 
	left: calc((100vw - 1200px) / 2 - 80px);

	width: var(--sidebar-width);
	background: var(--sidebar-bg);
	border: 1px solid var(--sidebar-border);
	border-radius: 999px;
	padding: 14px 0;
 
	display: flex;
	flex-direction: column;
	align-items: center;
	

	box-shadow: var(--shadow);
	z-index: 10;
}

.sidebar .btn {
	display: inline-flex;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 0;
	border: none;
	padding: 0;
	background: transparent;
	cursor: pointer;
	color: var(--icon-color);
	transition: color .2s ease, background .2s ease, transform .15s ease;
}

.sidebar .btn:hover {
	color: var(--icon-color-hover);
	background: transparent;
	transform: none;
}


.sidebar .sep {
	width: 36px;
	height: 1px;
	background: #e5e6eb;

	
	margin: 6px 0;

	opacity: 0.75;
}

.icon {
	font-size: 20px;
	line-height: 1;
	pointer-events: none;
}

.icon-img {
	display: block;
	width: 28px;
	height: 28px;
	filter: grayscale(1) saturate(0) brightness(0.75);
	transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}

.sidebar .btn:hover .icon-img,
.sidebar .btn:focus-visible .icon-img {
	filter: none;
	transform: scale(1.08);
}

/* ===== 分组结构 ===== */
.group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.group.secondary {
	display: flex;
	flex-direction: column;
	align-items: center;

	/* ✅ 更紧凑 */
	gap: 10px;

	/* ✅ 减少上下留白 */
	padding: 2px 0;
}

/* ===== 主功能 ===== */
.group.primary .btn {
	width: 42px;
	height: 42px;
	border-radius: 50%;
}

.group.primary .icon-img {
	width: 30px;
	height: 30px;
}

/* ===== 次功能 ===== */
.group.secondary .btn {
	width: 42px;
	height: 42px;
	border-radius: 50%;
}

.group.secondary .icon-img {
	width: 30px;
	height: 30px;
}

/* ✅ 小屏隐藏 */
@media (max-width: 1024px) {
	.sidebar { display: none; }
}