.audio-player {
    position: relative;
    width: 100%;
    padding-bottom: 45%; /* 保持宽高比 */
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 10px;
    user-select: none;
    -webkit-tap-highlight-color: transparent; /* 移除点击阴影 */
    --background-image: url('https://via.placeholder.com/150'); /* 默认背景图片 */
}

.audio-player.player-1 {
    --background-image: url('https://gavin-pic-1302578220.cos.ap-beijing.myqcloud.com/202406232141479.jpg');
}

.audio-player.player-2 {
    --background-image: url('https://gavin-pic-1302578220.cos.ap-beijing.myqcloud.com/202406232141458.jpg');
}

.audio-player {
    background-image: var(--background-image);
}

.audio-player audio {
    display: none;
}

.audio-player .controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.audio-player .progress-container {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    height: 5px;
    border-radius: 2.5px;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
}

.audio-player .progress {
    height: 100%;
    background-color: rgb(47, 61, 106);
    width: 0;
    transition: width 0.2s ease;
}

.audio-player .play-pause {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.audio-player .play-pause img {
    width: 20%;
    height: auto;
}

.audio-player .time {
    font-size: 12px;
    color: #F0EDE4;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.audio-player .text-overlay {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    text-align: center;
    color: #F0EDE4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.audio-player .text-overlay h2 {
    color: #F0EDE4;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.audio-player .text-overlay p {
    margin: 5px 0 0;
    font-size: 14px;
}
