* {
    margin: 0;
    padding: 0;
    /* 设置自动内减 */
    box-sizing: border-box;
    /* 设置所有文本标签的样式为none */
    text-decoration: none;
}

:root {
    --color-font: #000000;
    --color-bg-progress-b: #6b6b6b;
    --color-bg-progress-l: #a0a0a0;
    --color-bg-progress-m: #ffffff;
}

html {
    color: var(--color-font);
}

.music-content-bg {
    height: 100vh;
    background-image: url('../image/白鹿.jpg');
    background-size: cover;
}

/* --------------------头部导航栏-------------------- */
.box-head {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    margin: 10px 10px;
    padding: 0 20px;
    color: #fff;
    background-color: rgba(60, 60, 60, 0.4);
    border-radius: 20px;
    align-items: center;

    z-index: 9999;
}

.userFM {
    width: 15%;
}

.userFM img {
    vertical-align: middle;
    border-radius: 50%;
    width: 60px;
}

.userFM span {
    padding: 0 5px;
    font-weight: 600;
}

/* 搜索 */
.box-head .search {
    width: 35%;
}

.box-head .search .search-box {
    padding: 0 15px;
    width: 360px;
    height: 40px;
    font-size: 15px;
    border-radius: 10px;
    background-color: rgba(250, 250, 250, 0.2);
    border: 2px solid #ccc;
    outline: none;
    color: white;
    /* 光标颜色 */
    caret-color: white;
}

.box-head .search .search-box:hover {
    background-color: rgba(250, 250, 250, 0.4);
}

.box-head .search .search-btn {
    width: 80px;
    height: 40px;
    color: #fff;
    border-radius: 10px;
    background-color: rgba(250, 250, 250, 0.4);
    border: 2px solid #ccc;
}

.box-head .search .search-btn:hover {
    background-color: rgba(250, 250, 250, 0.6);
}

/* 导航栏 */
.nav {
    width: 50%;
    line-height: 80px;
    text-align: right;
}

.nav a {
    display: inline-block;
    width: 100px;
    color: #fff;
    text-align: center;
    line-height: 40px;
    margin-left: 15px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .2s;
}

.nav .nav-login {
    background-color: rgba(0, 162, 255, 0.5);
}

.nav-head {
    border-bottom: 4px solid #ffff12;
}

.nav a:hover {
    transform: scale(.9);
    box-shadow: 1px 2px 10px 5px rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.4);
}

.nav .nav-login:hover {
    transform: scale(.9);
    box-shadow: 1px 2px 10px 5px rgba(1, 145, 255, 0.5);
    background-color: rgba(0, 145, 255, 0.5);
}


/* --------------------内容-------------------- */
.music-content {
    height: 100%;
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.music-content h1 {
    color: #fff;
}

.music-box {
    flex: none;
    width: 400px;
    height: 200px;
    margin: 50px auto;
    border-radius: 30px;
    box-sizing: border-box;
    background-color: rgb(232, 232, 232, 0.7);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    box-shadow: inset 0px 0px 10px 2px rgb(255, 255, 255, 0.5);
    user-select: none;
}

/* music-box 上部分 */
.music-box>article {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: flex-start;
}

/* 图片部分 */
.m-img-box {
    flex: none;
    width: 100px;
    height: 100px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.25),
        0px 0px 8px 0px inset rgba(0, 0, 0, 0.05);
}

.m-img-content {
    width: 100%;
    height: 100%;
    transform: translateY(-100%);
}

.m-img-content.tran {
    transition: transform 0.4s linear 0.3s;
}

.m-img-content>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transform: scale(1);
}

.m-img-content>img.anim {
    animation: img-anim 1s linear forwards;
}

@keyframes img-anim {
    30% {
        transform: scale(0.6);
    }

    70% {
        transform: scale(0.6);
    }

    100% {
        transform: scale(1);
    }
}

/* 描述部分 */
.m-description-content {
    position: relative;
    margin-left: 25px;
    width: 0;
    flex: 1;
}

.m-description-content>article {
    opacity: 1;
}

.m-description-content>article.anim {
    animation: desc-cont-anim 1s ease-in forwards;
}

@keyframes desc-cont-anim {
    30% {
        opacity: 0;
        transform: var(--transform-translateY);
    }

    70% {
        opacity: 0;
        transform: translateY(0);
    }

    100% {
        opacity: 1;
    }
}

.m-title {
    font-size: 18px;
    font-weight: 500;
    height: 30px;
    line-height: 30px;
}

.m-author {
    font-size: 15px;
    font-weight: 400;
    color: #2f2f2f;
}

.m-title,
.m-author {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.m-btn-box {
    position: absolute;
    bottom: 0;
    width: 180px;
    display: flex;
    justify-content: space-between;
}

.m-btn-box>button {
    background: none;
    border: none;
    outline: none;
    width: 22px;
    height: 22px;
}

.icon {
    width: 100%;
    height: 100%;
    vertical-align: middle;
    fill: var(--color-font);
    overflow: hidden;
}

.m-btn-box>button:active>.icon {
    width: 20px;
    height: 20px;
}

/* music-box 下部分 */
.music-box>section {
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    box-sizing: border-box;
}

.m-progress-bar {
    width: 200px;
    height: 6px;
    background-color: var(--color-bg-progress-b);
    border-radius: 3px;
    overflow: hidden;
}

.m-progress-main {
    float: left;
    height: 100%;
    width: 20%;
    background-color: var(--color-bg-progress-m);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.m-progress-btn {
    position: absolute;
    transform: translateX(50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-bg-progress-m);
    transition: width 0.1s linear, height 0.1s linear;
}

.m-progress-btn:active {
    width: 14px;
    height: 14px;
}

.m-progress-load {
    height: 100%;
    width: 50%;
    background-color: var(--color-bg-progress-l);
}

/* --------------------侧边滚动条-------------------- */
/* 设置滚动条的宽度和背景色 */
::-webkit-scrollbar {
    width: 0px;
    margin-bottom: 20px;
    background-color: #27486a;
}

/* 设置滚动条的滑块颜色和形状 */
::-webkit-scrollbar-thumb {
    background-color: #041028;
    border-radius: 10px;
}