* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #000;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 桌面端和平板端 - 保持完整显示 */
@media (min-width: 769px) {
    .main-image {
        object-fit: contain;
    }
}

/* 手机设备 - 竖屏 */
@media (max-width: 768px) {
    html, body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .container {
        width: 100%;
        min-height: 100vh;
        height: auto;
        display: block;
        overflow: visible;
        padding: 0;
    }
    
    .main-image {
        width: 100%;
        height: auto;
        min-height: auto;
        object-fit: contain;
        object-position: center top;
        display: block;
    }
}

/* 手机设备 - 横屏 */
@media (max-width: 768px) and (orientation: landscape) {
    html, body {
        height: 100%;
        overflow-y: auto;
    }
    
    .container {
        height: auto;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .main-image {
        width: 100%;
        height: auto;
        max-height: 100vh;
        object-fit: contain;
        object-position: center;
    }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
    .main-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* 超小屏手机 */
@media (max-width: 360px) {
    .main-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

