/* 多功能画板样式 */
.paintboard-container { width: 100%; height: calc(100vh - 60px); position: relative; background: #f5f5f5; overflow: hidden; display: flex; flex-direction: column; }
.paintboard-canvas { flex: 1; cursor: crosshair; -webkit-user-select: none; -moz-user-select: none; user-select: none; pointer-events: auto; display: block; }
.tool-panel { position: fixed; top: 80px; left: 20px; background: white; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); padding: 20px; z-index: 1000; max-height: 75vh; overflow-y: auto; min-width: 260px; }
.tool-section { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.tool-section:last-child { border-bottom: none; margin-bottom: 0; }
.tool-section h3 { margin: 0 0 10px 0; font-size: 14px; font-weight: 600; color: #333; }
.tool-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-btn { padding: 8px 12px; border: 1px solid #ddd; background: white; border-radius: 6px; cursor: pointer; font-size: 12px; transition: all 0.2s; }
.tool-btn:hover { background: #f0f0f0; }
.tool-btn.active { background: #007bff; color: white; border-color: #007bff; }
.tool-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.color-picker { width: 40px; height: 30px; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; }
.slider-container { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.slider { flex: 1; height: 4px; border-radius: 2px; background: #ddd; outline: none; cursor: pointer; }
.slider-value { min-width: 30px; font-size: 12px; color: #666; }
.bottom-toolbar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: white; border-radius: 50px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); padding: 10px 20px; z-index: 1000; display: flex; gap: 15px; align-items: center; min-width: 600px !important; }
.toolbar-btn { width: 40px; height: 40px; border: none; background: #f8f9fa; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 16px; }
.toolbar-btn:hover { background: #e9ecef; transform: scale(1.1); }
.toolbar-btn.active { background: #007bff; color: white; }
.toolbar-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.panel-toggle-btn { position: fixed; top: 80px; left: 20px; width: 40px; height: 40px; border-radius: 50%; background: #4F46E5; color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); transition: all 0.3s ease; z-index: 1001; }
.panel-toggle-btn:hover { background: #4338CA; transform: scale(1.1); }
.zoom-info { background: #f0f0f0; padding: 5px 10px; border-radius: 15px; font-size: 12px; cursor: pointer; transition: background 0.2s ease; }
.zoom-info:hover { background: #e0e0e0; }
.main-operations { display: flex; gap: 5px; flex: 1; justify-content: center; }
.zoom-controls { display: flex; gap: 5px; }
.board-config-panel { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: white; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); z-index: 1002; width: 450px; max-height: 80vh; overflow-y: auto; }
.config-header { background: linear-gradient(135deg, #4F46E5, #7C3AED); color: white; padding: 15px 20px; border-radius: 15px 15px 0 0; display: flex; justify-content: space-between; align-items: center; }
.config-header h3 { margin: 0; font-size: 18px; }
.close-btn { background: none; border: none; color: white; font-size: 20px; cursor: pointer; padding: 5px; border-radius: 50%; transition: background 0.2s ease; }
.close-btn:hover { background: rgba(255, 255, 255, 0.2); }
.config-content { padding: 20px; }
.config-section { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.config-section:last-child { border-bottom: none; margin-bottom: 0; }
.config-section h4 { margin: 0 0 15px 0; color: #333; font-size: 16px; }
.config-item { margin-bottom: 15px; }
.config-item label { display: block; margin-bottom: 8px; font-weight: 500; color: #555; }
.color-opacity-control { display: flex; align-items: center; gap: 15px; }
.opacity-control { display: flex; align-items: center; gap: 8px; flex: 1; }
.apply-btn { padding: 8px 15px; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; transition: all 0.2s ease; background: #3B82F6; color: white; width: 100%; }
.apply-btn:hover { background: #2563EB; }
.size-controls { display: flex; flex-direction: column; gap: 15px; }
.size-item { display: flex; align-items: center; gap: 10px; }
.size-item input[type="number"] { width: 100px; padding: 8px; border: 1px solid #ddd; border-radius: 6px; }
.color-picker-input { width: 40px; height: 32px; border: 2px solid #ddd; border-radius: 6px; cursor: pointer; padding: 0; background: none; }
.color-picker-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-picker-input::-webkit-color-swatch { border: none; border-radius: 4px; }
.preset-colors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; flex: 1; }
.preset-color { width: 24px; height: 24px; border-radius: 4px; cursor: pointer; transition: all 0.2s ease; border: 2px solid transparent; }
.preset-color:hover { transform: scale(1.1); border-color: #4F46E5; }
.preset-color.active { border-color: #4F46E5; transform: scale(1.1); box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3); }
.color-item { width: 20px; height: 20px; border-radius: 4px; cursor: pointer; transition: all 0.2s ease; border: 2px solid transparent; }
.color-item:hover { transform: scale(1.1); border-color: #4F46E5; }
.color-item.active { border-color: #4F46E5; transform: scale(1.1); box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3); }
.no-context-menu { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.help-section { border-bottom: none !important; }
.help-toggle { cursor: pointer; display: flex; align-items: center; justify-content: space-between; user-select: none; }
.help-arrow { font-size: 10px; opacity: 0.5; transition: transform 0.2s; }
.help-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.help-content.active { max-height: 500px; }
.help-item { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; font-size: 12px; border-bottom: 1px solid #f0f0f0; }
.help-item:last-child { border-bottom: none; }
.help-key { min-width: 70px; font-weight: 600; color: #4a5568; flex-shrink: 0; }
.help-desc { color: #718096; line-height: 1.4; }
.membership-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 2000; }
.membership-modal { background: white; padding: 40px; border-radius: 12px; text-align: center; max-width: 400px; }
.membership-modal h2 { color: #333; margin-bottom: 15px; }
.membership-modal p { color: #666; margin-bottom: 25px; }
.upgrade-btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; padding: 12px 30px; border-radius: 25px; font-size: 16px; cursor: pointer; transition: transform 0.2s; }
.upgrade-btn:hover { transform: translateY(-2px); }
@media (max-width: 768px) {
    .tool-panel { position: fixed; top: 70px; left: 10px; right: 10px; max-height: 200px; min-width: auto; padding: 15px; }
    .bottom-toolbar { bottom: 10px; padding: 8px 15px; gap: 10px; min-width: auto !important; }
    .toolbar-btn { width: 35px; height: 35px; font-size: 14px; }
}
