<template>
    <div class="bck">
        <div class="box">
            <div class="box_L">
                <div class="L_top">
                    <div class="pic">
                        <img src="@/assets/rank/tx.png" />
                    </div>
                    <div class="font_box">
                        <div class="font_name">熊初墨</div>
                        <div class="font_sch">柯桥实验小学元培学院</div>
                    </div>
                </div>
                <div class="L_mid">
                    <div class="mid_item">
                        <div>
                            <span class="strong_font">23</span>
                            <span>分</span>
                        </div>
                        <div class="grey_font">已完成题数</div>
                    </div>
                    <div class="mid_item">
                        <div>
                            <span class="strong_font">50</span>
                            <span>%</span>
                        </div>
                        <div class="grey_font">正确率</div>
                    </div>
                </div>
                <div class="yellowFont">*积分可用于兑换各种福利</div>
            </div>

            <div class="box_R">
                <div class="box_R_item">
                    <div class="title">
                        <div>排行榜</div>
                        <span>RANKS</span>
                    </div>
                    <div class="imgBox">
                        <img src="@/assets/rank/jb.png" />
                    </div>
                </div>
                <div class="box_R_item">
                    <div class="title">
                        <div>刷题记录</div>
                        <span>RECORD</span>
                    </div>
                    <div class="imgBox">
                        <img src="@/assets/rank/qz.png" />
                    </div>
                </div>
            </div>
        </div>

        <div class="card">

        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {};
    },
};
</script>

<style lang="scss" scoped>
.bck {
    position: absolute;
    width: 100vw;
    min-height: 100vh;
    background-image: url("../../assets/rank/red_rank.png");
    -moz-background-size: 100% 100%;
    background-size: 100% 100%;

    .box {
        display: flex;
        justify-content: space-between;
        margin: 5vw 3vw;

        .box_L {
            width: 45vw;
            height: 350px;
            background-color: #fff;
            border-radius: 30px;
            padding: 3vw 2vw;
            box-sizing: border-box;
            display: flex;
            flex-wrap: wrap;
            align-content: space-between;

            .L_top {
                width: 100%;
                display: flex;
                justify-content: space-between;

                .pic {
                    display: flex;
                    align-items: center;

                    img {
                        width: 13vw;
                        height: 13vw;
                    }
                }
                .font_box {
                    width: 25vw;
                    display: flex;
                    align-content: space-between;
                    flex-wrap: wrap;

                    .font_name {
                        font-size: 30px;
                        color: #333333;
                    }
                    .font_sch {
                        font-size: 27px;
                        color: #999;
                        white-space: nowrap; //文本强制不换行；
                        text-overflow: ellipsis; //文本溢出显示省略号；
                        overflow: hidden; //溢出的部分隐藏；
                    }
                }
            }

            .L_mid {
                width: 100%;
                display: flex;
                justify-content: space-between;

                .mid_item {
                    width: 100%;
                    text-align: center;
                    font-size: 25px;

                    .grey_font {
                        color:#999;
                        font-size: 25px;
                        margin-top: 5px;
                    }

                    .strong_font {
                        font-size: 50px;
                        font-weight: bold;
                    }
                }
            }

            .yellowFont {
                width: 100%;
                font-size: 24px;
                color: #ff7a1c;
                text-align: center;
            }
        }
        .box_R {
            width: 45vw;
            height: 350px;
            display: flex;
            flex-wrap: wrap;
            align-content: space-between;

            .box_R_item {
                width: 100%;
                height: 170px;
                border-radius: 30px;
                display: flex;
                justify-content: space-between;
                padding: 20px 30px;
                box-sizing: border-box;

                .title {
                    font-size: 30px;
                    color: #000000;

                    span {
                        color: #999999;
                        font-size: 22px;
                    }
                }

                .imgBox {
                    display: flex;
                    align-items: center;

                    img {
                        width: 110px;
                        height: 110px;
                    }
                }
            }
        }
    }

    .card {
       width: 100%;
       min-height: 800px;
       background-color: #fff;
       border-radius: 30px; 
       padding: 2vw;
       box-sizing: border-box;
    }
}
</style>