/* 帮助与工具组件样式 */

#help-tools-modal {
    z-index: 10001;
}

#help-tools-modal:not(.hidden) {
    display: flex;
}

#help-tools-modal-content {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#help-tools-modal.show #help-tools-modal-content {
    transform: scale(1);
    opacity: 1;
}

/* 标签切换按钮样式 */
.help-tab-btn {
    transition: all 0.2s ease;
}

/* 常用工具图标本地化 (暂存方案) */
.tool-icon {
    width: 32px;
    height: 32px;
    background-color: #fee2e2; /* bg-red-100 */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
    color: #ef4444; /* text-red-500 */
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #fecaca;
}
.tool-icon::before {
    content: 'T'; /* 默认文字占位 */
}
.icon-pixabay::before { content: 'Px'; }
.icon-pexels::before { content: 'Pe'; }
.icon-ailv::before { content: 'Ai'; }
.icon-chatvideo::before { content: 'Cv'; }
.icon-zhuque::before { content: 'Zq'; }

.help-tab-btn.active {
    color: #ff2442;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 移动端适配 */
@media (max-width: 640px) {
    #help-tools-modal-content {
        width: 100%;
        height: 85vh;
        max-height: 85vh;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        position: absolute;
        bottom: 0;
        transform: translateY(100%);
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
    }

    #help-tools-modal.show #help-tools-modal-content {
        transform: translateY(0);
    }
}

/* 隐藏滚动条但保留功能 */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #e5e5e5;
}
