<template>
    <div style="width: 100%;">
        <div style="color: #1f2937;font-weight: 600;font-size: 20px;margin-bottom: 16px;">
            热门应用
        </div>

        <div class="conBlock">
            <div style="display: flex;justify-content: space-between;margin-bottom: 16px;">
                <div style="color: #1f2937;font-weight: 600;font-size: 18px;margin-bottom: 16px;">项目式学习</div>
                <div style="color: #0354d7;font-size: 14px;cursor: pointer;">查看全部</div>
            </div>
            <div style="display: grid;grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));gap: 16px;">
                <div v-for="(item,index) in tab" class="tabCon" :key="index" style="min-width: 308px;">
                        <div style="flex-wrap: wrap;display: flex;justify-content: space-between;border: 1px rgb(243 244 246 / var(--tw-border-opacity, 1)) solid;border-radius: 10px;padding: 16px;box-sizing: border-box;">
                            <img style="width: 48px;border-radius: 50%;" src="../assets/date.png" alt="">
                            <div style="flex: 1;margin-left: 12px;display: flex;flex-direction: column;justify-content: center;">
                                <div style="color: #1f2937;font-size: 16px;height: 24px;line-height: 24px;">{{ item.name }}</div>
                                <div style="color: #6b7280;font-size: 12px;height: 16px;line-height: 16px;">{{ item.bir }}</div>
                            </div>
                            <div>
                                <img style="width: 20px;" src="../assets/startIcon.svg" alt="">
                            </div>
                    </div>
                </div>
                
            </div>
        </div>

        <div class="conBlock">
            <div style="display: flex;justify-content: space-between;margin-bottom: 16px;">
                <div style="color: #1f2937;font-weight: 600;font-size: 18px;margin-bottom: 16px;">项目式学习</div>
                <div style="color: #0354d7;font-size: 14px;cursor: pointer;">查看全部</div>
            </div>
            <div style="display: grid;grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));gap: 16px;">
                <div v-for="(item,index) in tab" class="tabCon"  :key="index" style="min-width: 308px;">
                        <div style="flex-wrap: wrap;display: flex;justify-content: space-between;border: 1px rgb(243 244 246 / var(--tw-border-opacity, 1)) solid;border-radius: 10px;padding: 16px;box-sizing: border-box;">
                            <img style="width: 48px;border-radius: 50%;" src="../assets/date.png" alt="">
                            <div style="flex: 1;margin-left: 12px;display: flex;flex-direction: column;justify-content: center;">
                                <div style="color: #1f2937;font-size: 16px;height: 24px;line-height: 24px;">{{ item.name }}</div>
                                <div style="color: #6b7280;font-size: 12px;height: 16px;line-height: 16px;">{{ item.bir }}</div>
                            </div>
                            <div>
                                <img style="width: 20px;" src="../assets/startIcon.svg" alt="">
                            </div>
                    </div>
                </div>
                
            </div>
        </div>

        <div class="conBlock">
            <div style="display: flex;justify-content: space-between;margin-bottom: 16px;">
                <div style="color: #1f2937;font-weight: 600;font-size: 18px;margin-bottom: 16px;">项目式学习</div>
                <div style="color: #0354d7;font-size: 14px;cursor: pointer;">查看全部</div>
            </div>
            <div style="display: grid;grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));gap: 16px;">
                <div v-for="(item,index) in tab" class="tabCon"  :key="index" style="min-width: 308px;">
                        <div style="flex-wrap: wrap;display: flex;justify-content: space-between;border: 1px rgb(243 244 246 / var(--tw-border-opacity, 1)) solid;border-radius: 10px;padding: 16px;box-sizing: border-box;">
                            <img style="width: 48px;border-radius: 50%;" src="../assets/date.png" alt="">
                            <div style="flex: 1;margin-left: 12px;display: flex;flex-direction: column;justify-content: center;">
                                <div style="color: #1f2937;font-size: 16px;height: 24px;line-height: 24px;">{{ item.name }}</div>
                                <div style="color: #6b7280;font-size: 12px;height: 16px;line-height: 16px;">{{ item.bir }}</div>
                            </div>
                            <div>
                                <img style="width: 20px;" src="../assets/startIcon.svg" alt="">
                            </div>
                    </div>
                </div>
                
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                tab:[
                    {name:'PBL课程设计',icon:'',bir:'项目式学习课程规划'},
                    {name:'课堂活动设计',icon:'',bir:'互动教学活动规划'},
                    {name:'教案编写',icon:'',bir:'教案智能生成'},

                ]
            }
        },
    }
</script>

<style scoped>
.conBlock{
    background-color: #fff;
    padding: 24px;
    box-sizing: border-box;
    margin-bottom: 24px;
    border-radius: 10px;
}
.tabCon{
    transition: all 0.3s ease; /* 统一过渡效果 */
    border-radius: 10px;
}
.tabCon:hover{
    transform: translateY(-5px); /* 向上位移 */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
</style>