/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* 引入Arabic字体 */
@font-face {
    font-family: 'PFDinTextUN';
    src: url('../fonts/Arabic/PFDinTextUN-Regular(3).otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PFDinTextUN';
    src: url('../fonts/Arabic/PFDinTextUN-Medium(3).otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PFDinTextUN';
    src: url('../fonts/Arabic/PFDinTextUN-Bold(3).otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body {
    /* font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif; */
    font-family: 'PFDinTextUN', sans-serif;
    background-color: #121212;
    color: #fff;
    width: 100%;
    height: 100%;
    font-weight: bold !important;
    overflow: hidden;
    position: relative;
}

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 主容器 - 不再使用缩放 */
.landscape-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: auto;
}

div {
    font-family: 'PFDinTextUN', sans-serif;
}

button {
    font-family: 'PFDinTextUN', sans-serif;
}

span {
    font-family: 'PFDinTextUN', sans-serif;
}

label {
    font-family: 'PFDinTextUN', sans-serif;
}


/* 设备检测 - 手机设备判断 */
@media (max-width: 768px) and (orientation: landscape) {

    /* 手机横屏样式标识 */
    .landscape-container {
        --is-mobile-landscape: true;
    }

    /* 手机横屏按钮的样式 */
    .btn {
        font-size: 12px;
    }
}

@media (min-width: 769px) and (orientation: landscape) {

    /* PC端横屏样式标识 */
    .landscape-container {
        --is-pc-landscape: true;
    }
}

/* 手机横屏按钮的样式 */
.btn {
    background-color: rgb(172, 207, 48);
    border: none;
    color: rgb(0, 0, 0);
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 应用容器 - 简化结构 */
.app-container {
    width: 100%;
    height: 100%;
    position: relative;
}
/* ===================== */
/* 阿语环境下的消息提示  */
/* 仅影响 this.$message  */
/* ===================== */
html[dir="rtl"] .el-message,
html[lang^="ar"] .el-message {
    direction: rtl ;
    text-align: right ;
    position: fixed;
    right: 30px;
    left: auto;
    top: 30px;
    transform: none;
    z-index: 3000;
}

/* 横屏专用样式 */
@media (orientation: landscape) {
    .app-container {
        /* padding: 20px; */
    }
    html[dir="rtl"] .el-message,
    html[lang^="ar"] .el-message {
        /* 保留居中定位（假设原样式已有定位，这里加强居中效果） */
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* 手机样式（旋转后的效果） */
@media (orientation: portrait) {
    .app-container {
        /* padding: 15px; */
    }

    .landscape-container {
        transform: rotate(90deg) translateY(-100%);
        width: 100vh;
        height: 100vw;
        transform-origin: top left;
    }

    /* 弹框蒙版旋转 */
    .v-modal {
        transform: rotate(90deg) translateY(-100%);
        width: 100vh !important;
        height: 100vw !important;
        transform-origin: top left;
    }

    /* Element UI 消息提示 - 顶部左右居中 */
    .el-message {
        transform: rotate(90deg) !important;
        transform-origin: center center !important;
        position: fixed !important;
        left: 90% !important;
        top: 50% !important;
        margin-left: -190px !important;
        /* 消息框宽度一半，实现左右居中 */
        z-index: 3000 !important;
    }

    /* Element UI 消息框（confirm/alert）横屏适配 */
    .el-message-box__wrapper {
        transform: rotate(90deg) translateY(-100%);
        width: 100vh !important;
        height: 100vw !important;
        transform-origin: top left;
        /* 设置为flex布局，靠上左右居中 */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        /* 靠上 */
        align-items: center !important;
        /* 左右居中 */
        padding-top: 10vh !important;
        /* 距离顶部的间距 */
        text-align: center !important;
    }

    /* 重置消息框的伪元素 */
    .el-message-box__wrapper::after {
        display: none !important;
    }

    .el-message-box {
        margin: 0 !important;
        position: relative !important;
        vertical-align: top !important;
        display: block !important;
    }

    /* 通知组件 - 右上角定位 */
    .el-notification {
        transform: rotate(90deg) !important;
        transform-origin: center center !important;
        position: fixed !important;
        right: 30px !important;
        top: 30px !important;
        z-index: 2000 !important;
    }

    /* 加载中组件适配 */
    .el-loading-mask {
        transform: rotate(90deg) translateY(-100%);
        width: 100vh !important;
        height: 100vw !important;
        transform-origin: top left;
    }


    /* 手机横屏按钮的样式 */
    .btn {
        font-size: 14px;
    }


}


/* 锁定样式 */
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.lock-overlay i {
    font-size: 40px;
    color: #fff;
    opacity: 0.8;
}

/* 数字遮罩 */
.num-overlay {
    width: 80%;
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}


