/* 横屏提示层 */
.orientation-notice {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../封面页/竖屏提示bg.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* 防止内容溢出 */
}

/* 仅在竖屏模式下显示提示 */
@media (orientation: portrait) {
    .orientation-notice {
        display: flex; /* 竖屏时显示 */
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        height: 100vh;
        width: 100vw;
        justify-content: flex-end; /* 内容底部对齐 */
        align-items: center;
        margin: 0;
        padding: 0 0 45px 0; /* 底部内边距100px，确保内容不紧贴底部 */
        background-attachment: fixed;
        box-sizing: border-box;
        overflow: hidden; /* 防止内容溢出 */
        position: fixed; /* 固定定位，确保覆盖整个屏幕 */
        z-index: 99997; /* 最高层级，确保在最上层 */
    }

    /* 重置默认的body滚动行为 */
    body {
        overflow: hidden;
        height: 100vh;
        position: fixed;
    }
    
    .orientation-notice img {
        width: 100px; /* 旋转手机图标大小 */
        height: auto;
        margin-bottom: 10px;
    }
    
    .orientation-notice p {
        font-size: 16px;
        margin-bottom: 0px;
        margin-top: 2px;
        color: white;
        text-shadow: 0 0 8px rgba(0, 0, 0, 0.8); /* 增加文字可读性 */
    }
}

/* 非竖屏模式下隐藏元素特定样式 */
.orientation-notice img {
    width: 80px; /* 旋转手机图标大小 */
    height: auto;
}

.orientation-notice p {
    font-size: 18px;
}
