﻿/* 文章左侧工具栏样式（迁移至 shared/css/） */
: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: 24px;
	width: var(--sidebar-width);
	background: var(--sidebar-bg);
	border: 1px solid var(--sidebar-border);
	border-radius: 999px;
	padding: 14px 0;
	
	flex-direction: column;
	align-items: center;
	gap: var(--sidebar-gap);
	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 {
	
	height: 1px;
	background: #eceef2;
	margin: 1px 0;
}

.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);
}

@media (max-width: 1024px) {
	.sidebar { display: none; }
}


 


/* ===== 分组结构 ===== */
.group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}


/* ===== 主功能（微信） ===== */
.group.primary .btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    
}

.group.primary .icon-img {
    width: 30px;
    height: 30px;
}


/* ===== 次功能（搜索/复制） ===== */

.group.secondary .btn {
padding-top:0px;
     width: 42px;
    height: 42px;
    border-radius: 50%;
}

.group.secondary .icon-img {
    width: 30px;
    height: 30px;
}
