<template>
    <div class="screen-container">
        <div class="container">
            <div class="screen-title">
                居家养老服务数据展示
            </div>
            <div class="screen-content">
                <div>
                    <div>
                        <div class="card-title">服务对象人口统计</div>
                        <div class="card-content"></div>
                    </div>
                    <div>
                        <div class="card-title">服务对象人口统计</div>
                        <div class="card-content"></div>
                    </div>
                    <div>
                        <div class="card-title">服务对象人口统计</div>
                        <div class="card-content"></div>
                    </div>
                </div>
                <div>
                    <div>
                        <MapWidthMarkers />
                    </div>
                    <div>
                        <div class="card-title">服务对象人口统计</div>
                        <div class="card-content">
                            <borderBox1 />
                        </div>
                    </div>
                </div>
                <div>
                    <div>
                        <div class="card-title">服务对象人口统计</div>
                        <div class="card-content"></div>
                    </div>
                    <div>
                        <div class="card-title">服务对象人口统计</div>
                        <div class="card-content"></div>
                    </div>
                    <div>
                        <div class="card-title">服务对象人口统计</div>
                        <div class="card-content"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
<script setup>
import { ref } from 'vue'
import MapWidthMarkers from '@/components/MapWithMarkers/index.vue'
import { borderBox1 } from '@jiaminghi/data-view'
Vue.use(borderBox1)
const config1 = ref(
    {

        radius: '40%',
        activeRadius: '45%',
        data: [
            {
                name: '周口',
                value: 55
            },
            {
                name: '南阳',
                value: 120
            },
            {
                name: '西峡',
                value: 78
            },
            {
                name: '驻马店',
                value: 66
            },
            {
                name: '新乡',
                value: 80
            }
        ],
        digitalFlopStyle: {
            fontSize: 20
        },
        showOriginValue: true
    }
)
</script>
<style scoped lang="less">
.screen-container {
    width: 100%;
    height: 100vh;
    background-image: url(./../../assets/imgs/screenbg.png);
    background-size: 100% 100%;

    .container {
        width: 100%;
        height: 100%;
        background-image: url(./../../assets/imgs/bg2.png);
        background-size: 100% 100%;

        .screen-title {
            font-size: clamp(2rem, 3vw, 3rem);
            /* 自适应字体大小 */
            width: 100%;
            height: 10vh;
            /* 高度根据内容自动调整 */
            line-height: 8vh;
            /* 调整行高以适应不同字体大小 */
            text-align: center;
            pointer-events: none;
            background-size: cover;
            /* 假设背景图片应该覆盖整个元素 */
            font-family: ZhenyanG-Flash, sans-serif;
            /* 添加备用字体 */
            color: #fff;
            text-shadow: 0 0 35px rgba(22, 165, 255, .75);
        }

        .screen-content {
            height: 90vh;
            display: flex;
            gap: 5px;
            /* 元素之间的间距，推荐现代写法 */
            padding: 0 15px 15px 15px;
            box-sizing: border-box;

            /* 第一个子元素：左侧，占 1 份 */
            &>div:first-child {
                flex: 1;
                height: 100%;
                // background: black;
                display: flex;
                flex-direction: column;
                gap: 5px;

                &>div {
                    flex: 1;
                    width: 100%;
                    background-color: rgba(69, 117, 147, .2);
                }
            }

            /* 第二个子元素：中间，占 2 份 */
            &>div:nth-child(2) {
                flex: 2;
                height: 100%;
                // background: black;
                display: flex;
                flex-direction: column;
                gap: 5px;

                &>div:first-child {
                    flex: 2;
                    width: 100%;
                }

                &>div:last-child {
                    flex: 1;
                    width: 100%;
                    background-color: rgba(69, 117, 147, .2);
                }
            }

            /* 第三个子元素：右侧，占 1 份 */
            &>div:last-child {
                flex: 1;
                height: 100%;
                // background: black;
                display: flex;
                flex-direction: column;
                gap: 5px;

                &>div {
                    flex: 1;
                    width: 100%;
                    background-color: rgba(69, 117, 147, .2);
                }
            }

            .card-title {
                color: #fff;
                font-size: 1.33333rem;
                height: 4.16667rem;
                // margin: 0 24px;
                line-height: 4.16667rem;
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                border-bottom: 1px solid hsla(0, 0%, 60%, .1);
                position: relative;

                &::before {
                    content: "";
                    width: 2.58333rem;
                    height: 1.91667rem;
                    margin: auto 3px auto 0;
                    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAACrRJREFUaEPtWXtwVOUV/53v3r27bHaTyCMQaFARITyqKAaSgApaFakoKC+p8lA0iAGk8rDjtM1M20ExEhEEI5qQAMJAtYjiAI62VkECOFUElacoSANiks1rs3vv/U65u5u4CQm7GybTccb7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Ha3xeC9gpEcemelYLFssYavW+P7UbuQZ3XmETB6glALhrVsMsMHrjAAAXe0/pA0foBe+3JpyvD8q0cu801nviXexGxFykyLQQZOA/yiy6asi7R1iMRMxBjwFA1ZB+buRPCzyT6IFr+kWN+bAlFBpnnKL73/6DB9/zZLgdBn1rFCcr+ACxIfFSTfdKrqh9H2PC0BiQggkgX+3/d/AfALA5dogf8Bpa+jbRiHVfsAAAAASUVORK5CYII=) no-repeat 50%;
                    background-size: 50%;
                }
            }
        }

    }
}
</style>