/* 定义 CSS 变量 */ 
:root {
    --main-color: #7f5fff; /* 主色：蓝紫渐变起点 */
    --secondary-color: rgba(40, 48, 72, 0.7); /* 深蓝灰背景 */
    --highlight-color: #00e6e6; /* 高亮：青绿 */
    --text-color: #fff;
    --subtext-color: #b3b3b3;
    --glass-bg: rgba(44, 62, 80, 0.45); /* 玻璃感背景 */
    --font-family: "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 全局样式 */
* {
    touch-action: pan-y;
}

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    width: 100%;
    height: 100%;
    font: 14px/1.5 var(--font-family);
}

/* 主容器样式 */
#main {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0 auto;
}

/* 音乐列表样式 */
#musicList {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 82, 116, 0.6), rgba(26, 26, 26, 0.6));
    /* 添加背景渐变 */
}

#musicList .list_title,
#musicDetails .details_title {
    width: 100%;
    height: 65px;
    background: linear-gradient(90deg, rgba(127, 95, 255, 0.92) 0%, rgba(0, 230, 230, 0.65) 100%);
    font-size: 24px;
    line-height: 65px;
    text-align: center;
    color: #fff;
    position: absolute;
    top: 0;
    /* border-radius: 0 0 22px 22px; */
    box-shadow: 0 8px 32px 0 rgba(127,95,255,0.18), 0 1.5px 0 rgba(255,255,255,0.12) inset;
    backdrop-filter: blur(10px);
    /* letter-spacing: 2.5px; */
    /* font-weight: 700; */
    text-shadow: 0 2px 12px rgba(127,95,255,0.18), 0 1px 0 #fff;
    z-index: 5;
    transition: box-shadow 0.3s, background 0.3s;
}

#musicList .list_tip {
    width: 30px;
    height: 30px;
    background: url(../imgMc/jzwxfw.png) no-repeat center/cover;
    position: absolute;
    left: 25px;
    top: 15px;
    transition: transform 0.3s ease;
    /* 添加过渡效果 */
}

#musicList .list_tip:hover {
    transform: scale(1.1);
    /* 添加悬停效果 */
}

#musicList .list_content {
    width: 100%;
    position: absolute;
    /* top: 40px; */
    top: 65px;
    bottom: 65px;
    overflow: hidden;
}

#musicList .list_content ul {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate3d(0, 0, 0);
}

#musicList .list_content ul li {
    width: 100%;
    height: 60px;
    background: var(--glass-bg);
    border-bottom: 1.5px solid rgba(170, 6, 247, 0.18); /* 分割线更明显 */
    box-sizing: border-box;
    transition: background 0.3s;
    color: var(--text-color);
    position: relative;
}

/* 可选：高亮项左侧加色条 */
#musicList .list_content ul li.active {
    border-left: 5px solid var(--main-color);
    background: linear-gradient(90deg, rgba(127,95,255,0.25), rgba(0,230,230,0.18));
    border-bottom: 1.5px solid var(--main-color); /* 高亮项分割线更亮 */
}
#musicList .list_content ul li:hover {
    background: rgba(127, 95, 255, 0.18);
}

#musicList .list_audio {
    width: 100%;
    height: 65px;
    background: url(../imgMc/list_audioBg.png) repeat-x;
    position: absolute;
    bottom: 0;
}

#musicList .list_audioImg {
    width: 50px;
    border-radius: 50%;
    float: left;
    margin: 7px 0 0 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    /* 添加阴影 */
    transition: transform 0.3s ease;
    /* 添加过渡效果 */
}

#musicList .list_audioImg:hover {
    transform: scale(1.1);
    /* 添加悬停效果 */
}

#musicList .list_audioImg.move {
    animation: audioImgMove 4s linear infinite;
}

@keyframes audioImgMove {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#musicList .list_audioText {
    float: left;
}

#musicList .list_audioBtn {
    float: right;
    width: 32px;
    height: 32px;
    background: url(../imgMc/list_audioPlay.png) no-repeat center/cover;
    margin: 15px 15px 0 0;
    display: none;
    transition: transform 0.3s ease;
    /* 添加过渡效果 */
}

#musicList .list_audioBtn:hover {
    transform: scale(1.1);
    /* 添加悬停效果 */
}

/* 加载动画样式 */
#loading {
    width: 100%;
    height: 100%;
    background: black;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 20;
    overflow: hidden;
}

#loading .content1,
#loading .content2 {
    width: 30px;
    height: 30px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -15px;
}

#loading .content1 div,
#loading .content2 div {
    width: 8px;
    height: 8px;
    background: var(--text-color);
    position: absolute;
    border-radius: 50%;
    animation: loadingMove 2s linear infinite;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    /* 添加阴影 */
}

#loading .content1 .arc1,
#loading .content2 .arc1 { left: 0; top: 0; animation-delay: -0.1s; }
#loading .content1 .arc2,
#loading .content2 .arc2 { right: 0; top: 0; animation-delay: -0.5s; }
#loading .content1 .arc3,
#loading .content2 .arc3 { right: 0; bottom: 0; animation-delay: -0.9s; }
#loading .content1 .arc4,
#loading .content2 .arc4 { left: 0; bottom: 0; animation-delay: -1.3s; }

#loading .content2 {
    transform: rotate(45deg);
}

@keyframes loadingMove {
    0% { transform: scale(1); }
    50% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* 文本样式 */
.title {
    color: var(--text-color);
    font-size: 15px;
    padding: 10px 0 0 20px;
}

.name {
    color: var(--subtext-color);
    font-size: 13px;
    padding: 2px 0 0 20px;
}

/* 音乐详情样式 */
#musicDetails {
    width: 100%;
    height: 100%;
    background: url(../imgMc/detailsBg2.jpg) no-repeat bottom/cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background: linear-gradient(135deg, rgba(41, 171, 226, 0.6), rgba(26, 26, 26, 0.6));
    /* 添加背景渐变 */
}

#musicDetails .details_name span {
    font-size: 12px;
}

#musicDetails .details_tip {
    width: 38px;
    height: 38px;
    background: url(../imgMc/details_arrow.png) no-repeat center/60%,
                linear-gradient(135deg, rgba(41,171,226,0.85), rgba(26,150,200,0.85));
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(41,171,226,0.18), 0 1px 4px rgba(0,0,0,0.18);
    position: absolute;
    right: 25px;
    top: 13px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.92;
    z-index: 10;
}

#musicDetails .details_tip:hover {
    transform: scale(1.18) rotate(-10deg);
    box-shadow: 0 8px 32px rgba(41,171,226,0.35), 0 2px 8px rgba(0,0,0,0.25);
    opacity: 1;
    background: url(../imgMc/details_arrow.png) no-repeat center/60%,
                linear-gradient(135deg, #29abe2, #05faea);
}


/* 调整歌词区域，给控制按钮留出更多空间 */
/* 歌词区域优化 */
#musicDetails .details_lyric {
    width: 100%;
    position: absolute;
    top: 70px;
    background: url(../imgMc/bg2.jpg) no-repeat;
    background-size: cover;
    bottom: 200px;
    overflow: hidden;
    transition: 0.5s;
}

#musicDetails .details_lyric ul { 
    width: 100%;
    text-align: center;
    color: var(--subtext-color);
    font-size: 14px;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease-out;
    padding: 0;
    margin: 0;
}

#musicDetails .details_lyric li {
    height: 48px;
    line-height: 48px;
    overflow: hidden;
    /* 你可以根据实际需要调整字体大小和高度 */
}

#musicDetails .details_lyric li.active {
    color: var(--highlight-color);
    font-size: 18px;
    font-weight: bold;
    transform: scale(1.1);
}

/* 调整音频控制区域 */
#musicDetails .details_audio {
    width: 100%;
    height: 200px; /* 从150px增加到200px */
    position: absolute;
    bottom: 0;
    transition: 0.5s;
}
/* 可选：给音频控制区域添加背景遮罩 */
#musicDetails .details_audio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 15px 15px 0 0;
    z-index: -1;
}

/* 调整音频控制容器 */
#musicDetails .details_audioAll {
    width: 250px; /* 稍微增加宽度 */
    margin: 20px auto;
    position: relative;
}


#musicDetails .details_audioPro {
    width: 100%;
    height: 2px;
    background: var(--text-color);
    position: relative;
    overflow: hidden;
    border-radius: 1px;
    /* 添加圆角 */
}

#musicDetails .details_audioProUp {
    width: 0;
    height: 2px;
    background: var(--main-color);
    position: absolute;
    left: 0;
    top: 0;
    transition: width 0.3s ease;
    /* 添加过渡效果 */
}

#musicDetails .details_audioProBar {
    width: 15px;
    height: 15px;
    background: var(--main-color);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0;
    margin: -7px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    /* 添加阴影 */
    transition: left 0.3s ease;
    /* 添加过渡效果 */
}

#musicDetails .details_nowTime {
    font-size: 12px;
    color: var(--subtext-color);
    position: absolute;
    top: -8px;
    left: -40px;
}

#musicDetails .details_allTime {
    font-size: 12px;
    color: var(--subtext-color);
    position: absolute;
    top: -8px;
    right: -40px;
}

/* 通义灵码>>>>>>>>>>>>>>>>>>>>>>>> */
/* 调整控制按钮容器的边距 */
.controls_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 45px;
    position: relative;
}

#musicDetails .details_play {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--main-color), #1a96d0);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 20px rgba(41, 171, 226, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.1),
        inset 0 2px 2px rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#musicDetails .details_play:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--main-color);
}

#musicDetails .details_play:active {
    transform: scale(0.95);
}

/* 播放按钮的播放图标（三角形） */
#musicDetails .details_play::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 12px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    transform: translate(-40%, -50%);
    transition: all 0.3s ease;
}

/* 暂停状态的样式 */
#musicDetails .details_play.pause::before {
    border: 0;
    width: 16px;
    height: 16px;
    background: white;
    transform: translate(-50%, -50%);
}

/* 上一曲/下一曲按钮 */
#musicDetails .details_prev,
#musicDetails .details_next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

#musicDetails .details_prev:hover,
#musicDetails .details_next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#musicDetails .details_prev:active,
#musicDetails .details_next:active {
    transform: scale(0.95);
}

/* 上一曲按钮 */
#musicDetails .details_prev::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-right: 8px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    transform: translate(-30%, -50%);
}

#musicDetails .details_prev::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 3px;
    height: 12px;
    background: white;
    transform: translate(-150%, -50%);
}

/* 下一曲按钮 */
#musicDetails .details_next::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 8px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    transform: translate(-70%, -50%);
}

#musicDetails .details_next::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 3px;
    height: 12px;
    background: white;
    transform: translate(50%, -50%);
}

/* 进度条美化 */
#musicDetails .details_audioPro {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) inset;
}

#musicDetails .details_audioProUp {
    width: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--main-color), var(--highlight-color));
    position: absolute;
    left: 0;
    top: 0;
    transition: width 0.1s linear;
    border-radius: 3px;
    box-shadow: 0 0 8px var(--highlight-color);
}

#musicDetails .details_audioProBar {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
    cursor: pointer;
}

#musicDetails .details_audioProBar:hover {
    transform: translate(-50%, -50%) scale(1.2);
}
/* 通义灵码下面>>>>>>>>>>>>>>>>>>>>>>>> */
/* 留言区域美化 */
#musicDetails .details_message {
    width: 80%;
    position: absolute;
    top: 70px;
    bottom: 80px;
    margin-left: 9%;
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    transition: 0.5s;
    overflow-y: auto;
}

#musicDetails .details_message h3 {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 500;
}

#musicDetails .details_message label {
    display: block;
    margin: 15px 0 5px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

#musicDetails .details_message input,
#musicDetails .details_message textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(26, 26, 26, 0.3);
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#musicDetails .details_message input:focus,
#musicDetails .details_message textarea:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 10px var(--main-color);
    background: rgba(26, 26, 26, 0.5);
}

#musicDetails .details_message input {
    height: 45px;
}

#musicDetails .details_message textarea {
    height: 100px;
    resize: vertical;
    min-height: 80px;
}

/* 占位符样式 */
#musicDetails .details_message input::placeholder,
#musicDetails .details_message textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* 发表按钮美化 */
#detailsMessageBtn {
    width: 100%;
    padding: 12px;
    margin: 20px 0;
    font-size: 16px;
    font-weight: 500;
    color: white;
    background: linear-gradient(45deg, var(--main-color), #1e8bc3);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(41, 171, 226, 0.3);
}

#detailsMessageBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 171, 226, 0.5);
}

#detailsMessageBtn:active {
    transform: translateY(0);
}

/* 留言列表美化 */
#musicDetails .details_message ul {
    width: 100%;
    margin-top: 20px;
    max-height: calc(100% - 250px);
    overflow-y: auto;
}

#musicDetails .details_message li {
    background: rgba(26, 26, 26, 0.4);
    border-radius: 10px;
    padding: 15px;
    color: var(--text-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border-left: 3px solid var(--main-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#musicDetails .details_message li:hover {
    transform: translateX(5px);
    background: rgba(26, 26, 26, 0.6);
}

#musicDetails .details_message li strong {
    color: var(--highlight-color);
    display: block;
    margin-bottom: 5px;
}

/* 底部导航按钮美化 通义灵码>>>>>>>>>>>>>>>>>>>>>>>> */
/* 底部导航按钮美化 */
#musicDetails .details_btn {
    width: 100%;
    position: absolute;
    bottom: 20px; /* 从10px增加到20px，离底部更远一些 */
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 30px;
}

#musicDetails .details_btn li {
    padding: 7px 18px;         /* 缩小按钮内边距 */
    background: rgba(255, 255, 255, 0.18);
    border-radius: 18px;       /* 缩小圆角 */
    transition: all 0.3s ease;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;           /* 字体略小 */
    font-weight: 500;
}

#musicDetails .details_btn li.active,
#detailsMessageBtn {
    background: linear-gradient(90deg, var(--main-color), var(--highlight-color));
    color: #fff;
    box-shadow: 0 0 15px var(--main-color);
}

#musicDetails .details_btn li:hover:not(.active) {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}
/* 底部导航按钮美化上面 通义灵码>>>>>>>>>>>>>>>>>>>>>>>> */
