<template>
    <div class="KanBan">
        <div class="KanBan_top">
            <div class="top_textArea">
                <div class="top_title">
                    欢迎使用<div>深圳市荔园教育集团</div>综合看板！
                </div>
                <div style="color: #4b5563;">高效管理平台资源，提升教育管理效率</div>
            </div>
            <div class="imgArea">
                <img src="../assets/KanBan.png" />
            </div>
        </div>
        <div class="buttonArea">
            <div class="btnDiv" :class="{ active: isActive === 1 }" @click="setActive(1)">数据看板</div>
            <div class="btnDiv" :class="{ active: isActive === 2 }" @click="setActive(2)">校区特色</div>
            <div class="btnDiv" :class="{ active: isActive === 3 }" @click="setActive(3)">快捷入口</div>
        </div>
        <div class="mainArea">
            <div class="sidebar" v-if="isActive === 1 || isActive === 2">
                <schoolArea />
            </div>

            <div class="right_content">
                <div class="kanban_content" v-if="isActive === 1">
                    <div class="right_top">
                        <div class="count_content">
                            <div class="count_left">
                                <div class="countTitle">总用户数</div>
                                <div class="countNumber">1,254</div>
                                <div class="countRecord"><i class="el-icon-top"></i>较上月增长 5.3%</div>
                            </div>

                            <div class="count_right">
                                <img src="../assets/user.png" />
                            </div>

                        </div>
                        <div class="count_content">
                            <div class="count_left">
                                <div class="countTitle">内容总数</div>
                                <div class="countNumber">3,721</div>
                                <div class="countRecord"><i class="el-icon-top"></i>较上月增长 5.3%</div>
                            </div>

                            <div class="count_right">
                                <img src="../assets/content.png" />
                            </div>
                        </div>
                        <div class="count_content">
                            <div class="count_left">
                                <div class="countTitle">系统状态</div>
                                <div class="countNumber">正常</div>
                                <div class="countRecord"><i class="el-icon-success"></i>所以服务运行正常</div>
                            </div>

                            <div class="count_right">
                                <img src="../assets/system.png" />
                            </div>
                        </div>
                    </div>
                    <div class="right_bottom">
                        <div class="bottom_title">最近活动</div>
                        <div class="bottomArea">
                            <div class="botContent">
                                <div class="bot_left">
                                    <img src="../assets/personalFile.png" />
                                </div>
                                <div class="bot_right">
                                    <div class="userInfo">张老师 更新了个人资料</div>
                                    <div class="updaTime">今天 09:45</div>
                                </div>
                            </div>
                            <div class="botContent">
                                <div class="bot_left">
                                    <img src="../assets/uploadFile.png" />
                                </div>
                                <div class="bot_right">
                                    <div class="userInfo">李老师 上传了新的教学资料</div>
                                    <div class="updaTime">今天 09:45</div>
                                </div>
                            </div>
                            <div class="botContent">
                                <div class="bot_left">
                                    <img src="../assets/addUser.png" />
                                </div>
                                <div class="bot_right">
                                    <div class="userInfo">系统管理员 添加了5名新用户</div>
                                    <div class="updaTime">今天 08:30</div>
                                </div>
                            </div>
                            <div class="botContent">
                                <div class="bot_left">
                                    <img src="../assets/setup.png" />
                                </div>
                                <div class="bot_right">
                                    <div class="userInfo">系统管理员 更新了系统设置</div>
                                    <div class="updaTime">昨天 16:20</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="school_well" v-if="isActive === 2">
                    <div class="schWell_top">
                        <div class="schTop">
                            <div class="schTitle">集团总览</div>
                            <div class="schIndro">集团简介</div>
                            <div class="schText">深圳市荔园教育集团是一所现代化、智能化的示范性办学团体，
                                致力于为学生提供优质的教育资源和创新的学习环境。我们采用先进的教学理念和方法，
                                培养学生的综合素质和创新能力。</div>
                        </div>
                        <div class="schIndro">办学特色</div>
                        <div class="midArea">
                            <div class="midDiv">
                                <div class="midTitle">
                                    <img src="../assets/smartTeach.png">
                                    <div class="title_text">智能教育</div>
                                </div>
                                <div class="midText">引入AI技术，打造智能化学习环境，提供个性化教学服务。</div>
                            </div>
                            <div class="midDiv">
                                <div class="midTitle">
                                    <img src="../assets/user.png">
                                    <div class="title_text">小班教学</div>
                                </div>
                                <div class="midText">采用小班制教学模式，确保每个学生都能得到充分关注。</div>
                            </div>
                            <div class="midDiv">
                                <div class="midTitle">
                                    <img src="../assets/worldLook.png">
                                    <div class="title_text">国际视野</div>
                                </div>
                                <div class="midText">引入AI技术，打造智能化学习环境，提供个性化教学服务。</div>
                            </div>
                            <div class="midDiv">
                                <div class="midTitle">
                                    <img src="../assets/art.png">
                                    <div class="title_text">艺术教育</div>
                                </div>
                                <div class="midText">引入AI技术，打造智能化学习环境，提供个性化教学服务。</div>
                            </div>
                        </div>
                        <div class="schIndro">师资力量</div>
                        <div class="schText">集团拥有一支高素质的教师团队，90%以上教师具有硕士及以上学历，多人获得市级以上教学奖项。</div>
                        <div class="teaPowArea">
                            <div class="teaPow">
                                <div class="teaPow_count">120+</div>
                                <div>专职教师</div>
                            </div>
                            <div class="teaPow">
                                <div class="teaPow_count">90%</div>
                                <div>硕士及以上</div>
                            </div>
                            <div class="teaPow">
                                <div class="teaPow_count">30+</div>
                                <div>市级奖项</div>
                            </div>
                            <div class="teaPow">
                                <div class="teaPow_count">15+</div>
                                <div>特级教师</div>
                            </div>
                        </div>
                    </div>
                    <div class="schWell_bottom">
                        <div class="schIndro">特色应用</div>
                        <div class="schbotArea">
                            <div class="sbotTop">
                                <div class="leftDiv">
                                    <img src="../assets/robot.png">
                                    <div>
                                        <div>AI智能教学系统</div>
                                        <div class="leftD_text">个性化学习方案</div>
                                    </div>
                                </div>
                                <div class="rightDiv">
                                    <div class="rightD_text">基于人工智能技术，为每位学生提供个性化的学习路径和教学内容。
                                        系统能够实时分析学习数据，调整教学策略，确保学习效果最大化。
                                        包含智能题目推荐、错题分析、知识图谱等功能。</div>
                                    <i class="el-icon-edit-outline"></i>
                                </div>
                            </div>
                            <div class="sbotBottom">
                                <div class="leftDiv2">
                                    <img src="../assets/liveVideo.png">
                                    <div>
                                        <div>在线课堂直播</div>
                                        <div class="leftD_text">多班级同步直播</div>
                                    </div>

                                </div>
                                <div class="rightDiv">
                                    <div class="rightD_text">支持多个班级同时在线直播，教师可以实时与学生互动，进行课堂提问和讨论。
                                        系统提供课堂录制、课件共享、在线答疑等功能，确保线上教学质量。</div>
                                    <i class="el-icon-edit-outline"></i>
                                </div>
                            </div>

                        </div>
                        <div class="addDiv">
                            <i class="el-icon-plus"></i>
                            <div class="addText">添加应用</div>
                        </div>
                    </div>
                </div>
                <div class="fast_enterArea" v-if="isActive === 3">

                    <div class="priS_enter">
                        <div class="priS_title">
                            <img src="../assets/primarySch.active.png">
                            <div class="schIndro">小学部</div>
                        </div>
                        <div class="priSDiv">
                            <div class="priS_content">
                                <div class="priS_img">
                                    <img src="../assets/school.png">
                                </div>
                                <div>通信岭校区</div>
                            </div>
                            <div class="priS_content">
                                <div class="priS_img">
                                    <img src="../assets/school.png">
                                </div>
                                <div>通信岭校区</div>
                            </div>
                            <div class="priS_content">
                                <div class="priS_img">
                                    <img src="../assets/school.png">
                                </div>
                                <div>通信岭校区</div>
                            </div>
                            <div class="priS_content">
                                <div class="priS_img">
                                    <img src="../assets/school.png">
                                </div>
                                <div>通信岭校区</div>
                            </div>
                        </div>
                    </div>
                    <div class="midSch_enter">
                        <div class="midS_title">
                            <img src="../assets/primarySch.active.png">
                            <div class="schIndro">初中部</div>
                        </div>
                        <div class="midSDiv">
                            <div class="midS_content">
                                <div class="midS_img">
                                    <img src="../assets/school.png">
                                </div>
                                
                                <div>通信岭校区</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>


    </div>
</template>
<script>
import schoolArea from '../components/schoolArea.vue';
export default {
    name: 'KanBan',
    components: {
        schoolArea: schoolArea
    },
    data() {
        return {
            isActive: 1
        }
    },
    methods: {
        setActive(Index) {
            this.isActive = Index; // 设置激活的按钮
        }
    }
}
</script>
<style scoped>
.KanBan {
    background-color: #fff;
    padding-top: 20px;
    min-height: 100vh;
    /* 设置高度为视口高度 */
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.KanBan_top {
    border-radius: 10px;
    width: 69vw;
    height: 144px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin: 0px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top_textArea {
    margin-left: 23px;
}

.top_title {
    font-size: 30px;
    font-weight: bold;
    display: flex;
    margin-bottom: 8px;
}

.top_title div {
    color: #0354d7;
    margin: 0 7px;
}

.imgArea {
    margin-right: 23px;
}

.imgArea img {
    width: 96px;
    height: 96px;
}

.buttonArea {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btnDiv {
    width: 112px;
    height: 48px;
    background-color: #d9dbdfc4;
    border-radius: 7px;
    text-align: center;
    line-height: 48px;
    margin-left: 15px;
    cursor: pointer;
}

.btnDiv:hover {
    background-color: #d6d6e0;
}

.btnDiv.active {
    background-color: #0354d7;
    color: #fff;
}

.mainArea {
    display: flex;
    width: 69vw;
    margin: 0 auto;
}

.sidebar {
    margin-top: 20px;
}

.right_content {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.right_top {
    display: flex;
}

.kanban_content {
    margin-top: 10px;
    margin-left: 20px;
}

.count_content {
    width: 16vw;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-right: 25px;
    display: flex;
    justify-content: space-between;
    padding: 23px
}

.count_left div {
    margin-bottom: 5px;
}

.count_right {
    background-color: #e6f0ff;
    height: 25px;
    padding: 13px;
    border-radius: 7px;
}

.count_right img {
    width: 25px;
}

.countTitle {
    color: #6b7280;
    font-size: 14px;
}

.countNumber {
    font-size: 30px;
    font-weight: bold;
    color: #1f2937;
}

.countRecord {
    font-size: 14px;
    color: #22c55e;
}

.el-icon-top {
    font-size: 15px;
    font-weight: bold;
}

.right_bottom {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-top: 20px;
    padding-bottom: 20px;
    width: 57.8vw;
}

.bottom_title {
    font-size: 18px;
    color: #1f2937;
    font-weight: bold;
    margin-left: 22px;
    padding-top: 16px;
}

.botContent {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-left: 22px;
}

.bot_right {
    display: flex;
    flex-direction: column;
    margin-left: 17px;
}

.bot_left {
    background-color: #e6f0ff;
    height: 25px;
    padding: 7px;
    border-radius: 7px;
}

.bot_left img {
    width: 25px;
}

.schWell_top {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-top: 10px;
    padding: 13px 20px;
    width: 55.8vw;
    margin-left: 20px;
}

.schTitle {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0px;
}

.schIndro {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
}

.schText {
    color: #4b5563;
    font-size: 16px;
    margin: 10px 0;
}

.midArea {
    display: flex;
    flex-wrap: wrap;
}

.midDiv {
    background-color: #e6f0ff;
    padding: 29px;
    width: 23vw;
    border-radius: 10px;
    margin: 10px 18px 10px 0px;
}

.midTitle {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
}

.midTitle img {
    width: 25px;
    margin-right: 8px
}

.title_text {
    font-size: 18px;
}

.midText {
    color: #4b5563;
}

.teaPowArea {
    display: flex;
}

.teaPow {
    background-color: #e6f0ff;
    padding: 29px;
    width: 10vw;
    border-radius: 10px;
    margin: 10px 18px 10px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.teaPow_count {
    font-size: 24px;
    color: #0354d7;
    font-weight: bold;
}

.updaTime {
    color: #6b7280;
    font-size: 14px;
}

.schWell_bottom {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-top: 20px;
    padding: 8px 20px;
    width: 57vw;
    margin-bottom: 60px;
    margin-left: 20px;
}


.sbotTop,
.sbotBottom {
    display: flex;
}

.leftDiv,
.leftDiv2 {
    display: flex;
    margin-top: 20px;
    margin-bottom: 30px;
    border: 1px solid #ebeef5;
    padding: 16px 15px;
    min-width: 14vw;
    border-radius: 10px;
}

.leftD_text {
    font-size: 12px;
    color: #687280;
    margin-top: 5px;
}

.leftDiv img {
    width: 25px;
    background-color: #e6f0ff;
    border-radius: 23px;
    padding: 10px;
    margin-right: 13px;
}

.leftDiv2 img {
    width: 25px;
    background-color: #dcfce7;
    border-radius: 23px;
    padding: 10px;
    margin-right: 13px;
}

.rightDiv {
    display: flex;
    align-items: center;
    margin-bottom: 47px;
    margin-left: 24px;
    margin-right: 5px;
}

.rightD_text {
    font-size: 14px;
    color: #4b5563;
}

.rightDiv i {
    font-size: 20px;
}

.addDiv {
    text-align: center;
    cursor: pointer;
    border: 1px solid #ebeef5;
    padding: 32px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}
.addDiv:hover{
    box-shadow: 0 2px 7px rgba(156, 157, 167, 0.57);
}
.el-icon-plus {
    background-color: #f3f4f6;
    padding: 16px;
    border-radius: 24px;
}

.addText {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

.el-icon-edit-outline {
    font-weight: bold;
    color: #4b5563;
    margin-top: 21px
}

.el-icon-edit-outline:hover {
    color: #0354d7;
}

.priS_enter {
    margin-top: 10px;
}

.priS_title {
    display: flex;
    align-items: center;
}

.priS_title img {
    width: 30px;
    margin-right: 5px;
}

.priSDiv,
.midSDiv {
    display: flex;
    margin-top: 10px;
}

.priS_content {
    width: 7vw;
    box-shadow: 0 1px 4px rgb(188 191 213 / 57%);
    border-radius: 10px;
    margin-right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

.priS_content:hover {
    box-shadow: 0 2px 7px rgba(156, 157, 167, 0.57);
}
.priS_img,.midS_img{
    padding: 13px;
    background-color: #e6f0ff;
    border-radius: 25px;
    margin-bottom: 10px;
}
.priS_img img,
.midS_img img{
    width: 25px;
}

.midSch_enter {
    margin-top: 10px;
}

.midS_title {
    display: flex;
    align-items: center;
}

.midS_title img {
    width: 30px;
    margin-right: 5px;
}

.midS_content {
    width: 7vw;
    box-shadow: 0 1px 4px rgb(188 191 213 / 57%);
    border-radius: 10px;
    margin-right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;

}

.midS_content:hover {
    box-shadow: 0 2px 7px rgba(156, 157, 167, 0.57);
}
</style>