/* 整合工具列 */
.integrated-toolbar {
		position: fixed;
		bottom: 20px;
		right: 20px;
		z-index: 1000;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 10px;
}
/* 主工具按鈕 */
.toolbar-main-btn {
		width: 56px;
		height: 56px;
		border-radius: 50%;
		background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
		color: white;
		border: none;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 1.5rem;
		transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
		position: relative;
		z-index: 1001;
}
.toolbar-main-btn:hover {
		transform: scale(1.1);
		box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.toolbar-main-btn.active {
		transform: rotate(45deg);
		background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
/* 工具選單容器 */
.toolbar-menu {
		position: absolute;
		bottom: 70px;
		right: 0;
		display: flex;
	 padding: 1rem;
	 border-radius: 1rem;
	 background-color: RGBA(0,0,0,.75);
		flex-direction: column;
		gap: 10px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(20px);
		transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toolbar-menu.active {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
}
/* 工具項目 */
.toolbar-item {
		display: flex;
		align-items: center;
		gap: 10px;
		animation: slideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toolbar-item:nth-child(1) {
		animation-delay: 0.05s;
}
.toolbar-item:nth-child(2) {
		animation-delay: 0.1s;
}
.toolbar-item:nth-child(3) {
		animation-delay: 0.15s;
}
@keyframes slideIn {
		from {
				opacity: 0;
				transform: translateY(10px) scale(0.8);
		}
		to {
				opacity: 1;
				transform: translateY(0) scale(1);
		}
}
/* 工具標籤 */
.toolbar-label {
		background: rgba(0, 0, 0, 0.8);
		color: white;
		padding: 8px 12px;
		border-radius: 6px;
		font-size: 0.875rem;
		white-space: nowrap;
		backdrop-filter: blur(10px);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
/* 工具按鈕 */
.toolbar-btn {
		width: 48px;
		height: 48px;
		border-radius: 50%;
		background: white;
		color: #667eea;
		border: none;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 1.25rem;
		transition: all 0.3s;
}
.toolbar-btn:hover {
		transform: scale(1.1);
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
		background: #667eea;
		color: white;
}
/* 字級控制面板 */
.font-size-panel {
		background: white;
		border-radius: 12px;
		padding: 12px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
		display: flex;
		align-items: center;
		gap: 8px;
}
.font-size-panel .btn {
		width: 36px;
		height: 36px;
		padding: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		border-color: #dee2e6;
		color: #6c757d;
		transition: all 0.3s;
}
.font-size-panel .btn:hover {
		background: #667eea;
		color: white;
		border-color: #667eea;
}
.font-size-panel .font-size-label {
		font-size: 0.875rem;
		color: #6c757d;
		min-width: 80px;
		text-align: center;
}
/* 說明工具面板 */
.help-tools-panel {
		background: white;
		border-radius: 12px;
		padding: 8px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
		display: flex;
		gap: 8px;
}
.help-tools-panel .help-tool-btn {
		width: 40px;
		height: 40px;
		border-radius: 8px;
		background: white;
		color: #667eea;
		border: 1px solid #dee2e6;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 1.25rem;
		transition: all 0.3s;
}
.help-tools-panel .help-tool-btn:hover {
		background: #667eea;
		color: white;
		border-color: #667eea;
		transform: scale(1.05);
}
/* 響應式設計 */
@media (max-width: 768px) {
		.integrated-toolbar {
				bottom: 15px;
				right: 15px;
		}
		.toolbar-main-btn {
				width: 50px;
				height: 50px;
				font-size: 1.25rem;
		}
		.toolbar-btn {
				width: 44px;
				height: 44px;
				font-size: 1.1rem;
		}
		.toolbar-label {
				font-size: 0.8rem;
				padding: 6px 10px;
		}
		.font-size-panel {
				padding: 10px;
		}
		.font-size-panel .btn {
				width: 32px;
				height: 32px;
		}
		.font-size-panel .font-size-label {
				min-width: 70px;
				font-size: 0.8rem;
		}
}
/* 深色模式支援 */
@media (prefers-color-scheme: dark) {
		.toolbar-label {
				background: rgba(255, 255, 255, 0.9);
				color: #333;
		}
		.font-size-panel, .help-tools-panel {
				background: #2d3748;
				border: 1px solid #4a5568;
		}
		.font-size-panel .btn, .help-tools-panel .help-tool-btn {
				background: #374151;
				color: #e5e7eb;
				border-color: #4a5568;
		}
		.font-size-panel .btn:hover, .help-tools-panel .help-tool-btn:hover {
				background: #667eea;
				color: white;
		}
		.font-size-panel .font-size-label {
				color: #e5e7eb;
		}
}
/* 工具說明圖示 */
.help-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 20px;
		height: 20px;
		border-radius: 50%;
		background: #0d6efd;
		color: white;
		font-size: 12px;
		font-weight: bold;
		cursor: pointer;
		margin-left: 5px;
		transition: all 0.2s;
		vertical-align: middle;
}
.help-icon:hover {
		background: #0b5ed7;
		transform: scale(1.1);
}
/* 原有的說明遮罩樣式保持不變 */
.help-overlay {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.7);
		display: flex;
		align-items: center;
		justify-content: center;
		opacity: 0;
		z-index: -1;
		pointer-events: none;
}
.help-overlay.active {
		animation: fadeIn 0.3s ease;
		opacity: 1;
		pointer-events: painted;
		z-index: 2200;
}
@keyframes fadeIn {
		from {
				opacity: 0;
		}
		to {
				opacity: 1;
		}
}
.help-content {
		background: white;
		border-radius: 12px;
		padding: 25px;
		max-width: 500px;
		width: 90%;
		box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
		position: relative;
		animation: slideUp 0.3s;
}
@keyframes slideUp {
		from {
				transform: translateY(30px);
				opacity: 0;
		}
		to {
				transform: translateY(0);
				opacity: 1;
		}
}
.help-content-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 15px;
		padding-bottom: 15px;
		border-bottom: 2px solid #e9ecef;
}
.help-content-title {
		font-size: 1.25rem;
		font-weight: 600;
		color: #0d6efd;
		margin: 0;
		display: flex;
		align-items: center;
		gap: 10px;
}
.help-content-close {
		background: none;
		border: none;
		font-size: 1.5rem;
		color: #6c757d;
		cursor: pointer;
		width: 32px;
		height: 32px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 50%;
		transition: all 0.2s;
}
.help-content-close:hover {
		background: #f8f9fa;
		color: #333;
}
.help-content-body {
		color: #495057;
		line-height: 1.6;
}
.help-content-body p {
		margin-bottom: 10px;
}
.help-content-body ul {
		margin-left: 20px;
		margin-bottom: 10px;
}
.help-content-footer {
		margin-top: 20px;
		padding-top: 15px;
		border-top: 1px solid #e9ecef;
		text-align: right;
}
/* 高亮目標元素 */
.help-highlight {
		position: relative;
		z-index: 2001;
		box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.5);
		border-radius: 4px;
}
/* 說明指示箭頭 */
.help-pointer {
		position: fixed;
		z-index: 2001;
		pointer-events: none;
}
.help-pointer-arrow {
		width: 0;
		height: 0;
		border-left: 15px solid transparent;
		border-right: 15px solid transparent;
		border-bottom: 20px solid white;
		filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}