<template>
    <div class="tradTea">
        <div class="tradTeaArea1">
            <ranking />
            <div class="DataDiv">
                <div class="DataTitle">课程分布</div>
                <div class="imgArea">
                    <img src="../../../assets/img/BaseData5.png" alt="">
                </div>
            </div>
        </div>
        <div class="tradTeaArea2">
            <ranking />
            <countPercentage :title="'AI辅助设计分析'" />
            <div class="DataDiv">
                <div class="DataTitle"> 使用分析</div>
                <div class="aiUseCount">
                    <div class="aiUseArea">
                        <div class="aiUseItem">
                            <div class="useColor" style="background-color: #3681fc;"></div>
                            <div>高频</div>
                            <div>45%</div>
                            <div>(40-80人)</div>
                        </div>
                        <div class="aiUseItem">
                            <div class="useColor" style="background-color:#1f94ff;"></div>
                            <div>中高频</div>
                            <div>30%</div>
                            <div>(0-25人)</div>
                        </div>
                    </div>
                    <div class="aiUseArea">
                        <div class="aiUseItem">
                            <div class="useColor" style="background-color:#8979ff;"></div>
                            <div>中频</div>
                            <div>45%</div>
                            <div>(0-25人)</div>
                        </div>
                        <div class="aiUseItem">
                            <div class="useColor" style="background-color:#f4cf3b;"></div>
                            <div>低频</div>
                            <div>45%</div>
                            <div>(0-25人)</div>
                        </div>
                    </div>


                </div>
                <div class="imgArea">
                    <img src="../../../assets/img/BaseData6.png" alt="">
                </div>
            </div>
        </div>
        <div class="DataDiv" style="width: 100%;">
            <div class="DataTitle">AI与教学融合度</div>

            <div class="imgArea" style="display: flex;align-items: center;">
                <img src="../../../assets/img/BaseData7.png">
                <img src="../../../assets/img/BaseData8.png">
            </div>
        </div>
        <div class="classArea">
            <div class="DataDiv">
                <div class="DataTitle">课堂模块占分析</div>
                <div class="classDiv">
                    <div class="imgArea" style="padding: 41px 68px;">
                        <img src="../../../assets/img/BaseData3.png">
                    </div>
                    <div class="useCount">
                        <div class="useItem">
                            <div class="useColor" style="background-color: #3681fc;"></div>
                            <div>高频</div>
                            <div>45%</div>
                            <div>(40-80人)</div>
                        </div>
                        <div class="useItem">
                            <div class="useColor" style="background-color:#1f94ff;"></div>
                            <div>中高频</div>
                            <div>30%</div>
                            <div>(0-25人)</div>
                        </div>
                        <div class="useItem">
                            <div class="useColor" style="background-color:#8979ff;"></div>
                            <div>中频</div>
                            <div>45%</div>
                            <div>(0-25人)</div>
                        </div>
                        <div class="useItem">
                            <div class="useColor" style="background-color:#f4cf3b;"></div>
                            <div>低频</div>
                            <div>45%</div>
                            <div>(0-25人)</div>
                        </div>

                    </div>
                </div>

            </div>
            <div class="DataDiv">
                <div class="DataTitle">课堂观察综合结果</div>
                <div class="classView">
                    <div class="imgArea">
                        <img src="../../../assets/img/BaseData9.png">
                    </div>
                    <div class="useCountArea">
                        <div class="useCount">
                            <div class="useItem">
                                <div class="useColor" style="background-color: #3681fc;"></div>
                                <div>高频</div>
                                <div>45%</div>
                                <div>(40-80人)</div>
                            </div>
                            <div class="useItem">
                                <div class="useColor" style="background-color:#1f94ff;"></div>
                                <div>中高频</div>
                                <div>30%</div>
                                <div>(0-25人)</div>
                            </div>
                            <div class="useItem">
                                <div class="useColor" style="background-color:#8979ff;"></div>
                                <div>中频</div>
                                <div>45%</div>
                                <div>(0-25人)</div>
                            </div>
                            <div class="useItem">
                                <div class="useColor" style="background-color:#f4cf3b;"></div>
                                <div>低频</div>
                                <div>45%</div>
                                <div>(0-25人)</div>
                            </div>

                        </div>
                        <div class="allRating">
                            <div class="ratingText1">总体评价</div>
                            <div class="ratingText2">综合得分：7.7</div>
                            <div class="ratingText2">状态：良好</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</template>
<script>
import ranking from './ranking.vue'
import countPercentage from './countPercentage.vue'
export default {
    name: 'RegularTeaching',
    components: {
        ranking,
        countPercentage
    },
}
</script>
<style scoped>
.tradTea {
    display: flex;
    flex-wrap: wrap;
    gap: 41px;
}

.tradTeaArea1 {
    display: grid;
    grid-template-columns: 326px auto;
    width: 100%;
    gap: 20px;
}
.tradTeaArea2 {
    display: grid;
    grid-template-columns: 326px auto auto;
    width: 100%;
    gap: 20px;
}
.DataDiv {
    background-color: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0px 4px 29px rgba(0, 0, 0, 0.1);
}

.DataDiv img {
    width: 100%;
    height: 100%;
}

.DataTitle {
    font-weight: bold;
    font-size: 17px;
}

.imgArea {
    padding: 41px;
}

.aiUseCount {
    display: flex;
    gap: 28px;
}

.aiUseArea {
    margin-top: 10px;
}

.aiUseItem {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-top: 5px;
}

.useColor {
    width: 11px;
    border-radius: 10px;
    height: 11px;
}

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

.useCountArea {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 26px;
}

.useCount {
    display: grid;
    justify-content: end;
    gap: 5px;
}

.useItem {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.useColor {
    width: 11px;
    border-radius: 10px;
    height: 11px;
}

.allRating {
    background-color: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0px 4px 29px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ratingText1 {
    color: #0663fe;
}

.ratingText2 {
    font-size: 14px;
    color: #969ba3;
}

.classArea {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    width: 100%;
    gap: 26px;
    background-color: #ededed;
    padding: 30px;
    border-radius: 20px;
}

.classView {
    display: flex;
}
</style>