/* 全局样式 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden; /* 防止滚动 */
}

/* 页面切换样式 */
.page {
    position: fixed; /* 改为 fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.page.active {
    opacity: 1;
    visibility: visible;
}

/* 封面和悬停图片样式 */
.cover-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
    pointer-events: none;
}

.hover-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
    pointer-events: none;
    opacity: 0;
}

.hover-img.active {
    opacity: 1;
}

/* 返回按钮样式 */
.back-btn {
    position: absolute;
    top: 3vh;
    left: 3vw;
    width: 8vw;
    height: 8vw;
    max-width: 80px;   /* 减小最大宽度 */
    max-height: 80px;  /* 减小最大高度 */
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s;
}

.back-btn:hover {
    transform: scale(1.1);
}

/* 音频播放区域样式 */
.audio-row {
    position: absolute;
    bottom: 15vh;
    left: 0;
    width: 100vw;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    z-index: 2;
}

.audio-img-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.audio-img {
    width: 22vw;
    max-width: 350px;
    height: auto;
    transition: transform 0.2s;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    display: block;
}

.audio-img:hover {
    transform: scale(1.05);
}

/* 修改 play-icon 样式 */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18vw;
    height: 18vw;
    max-width: 160px;  /* 减小最大宽度 */
    max-height: 160px; /* 减小最大高度 */
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.audio-img-wrap:hover .play-icon {
    opacity: 1;
}

/* 音频控件样式 */
.audio-control {
    position: fixed;
    left: 50%;
    bottom: 4vh;
    transform: translateX(-50%);
    width: 340px;
    z-index: 20;
    display: none;
}

/* 添加媒体查询，专门针对移动设备 */
@media screen and (max-width: 896px) {
    /* 调整返回按钮 */
    .back-btn {
        width: 6vw;
        height: 6vw;
        max-width: 40px;
        max-height: 40px;
    }

    /* 调整音频区域布局 */
    .audio-row {
        bottom: 15vh;
        gap: 3vw;
        padding: 0 4vw;
        justify-content: center;
    }

    .audio-img-wrap {
        width: 26vw;
    }

    .audio-img {
        width: 100%;
        height: auto;
        max-width: 140px;
    }

    /* 调整播放图标 */
    .play-icon {
        width: 12vw;
        height: 12vw;
        max-width: 50px;
        max-height: 50px;
    }
}

/* 横屏模式优化 */
@media screen and (max-width: 896px) and (orientation: landscape) {
    .audio-row {
        bottom: 12vh;
    }

    .audio-img-wrap {
        width: 20vw;
    }
}

