*{
    box-sizing: border-box;
}



html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}
/*背景 */
.mainfull{
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #000;
    background-image: url(../img/background4.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/*背景 */

/* 台头 */
/* 台头盒子 */
.index1{
  width: 100%;
  min-height: 600px;
  z-index: 1;
  display: flex;
  flex-direction: row;
    align-items: center;
    justify-content: center; 
    gap: 60px;
position: relative;
}



/* 左上角链接容器 */
/* 左上角链接容器盒子 */
.link {
    display: flex;
    position: fixed; 
    top: 20px;           
    left: 20px;          
    z-index: 10;        
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
    border-radius: 20px;
    gap: 8px;
    flex-direction: column 
}

/* 左上角链接容器两个盒子 */
.linklive,.linkpersonal{
   display: flex;
   flex-direction: column;

}

/* 分割线 */
.divider{ 
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 1);}

/* 两个链接内部 */
.linklive a,.linkpersonal a{
    display: flex; 
    flex-direction: column;     
    align-items: center; 
    gap: 10px;           
    text-decoration: none; 
    font-weight:100;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: #03000f;      
    font-size: 25px;
    /* font-weight: bold; */
    transition: color 0.3s;
}

/*  文字链接鼠标悬停变色 */
.link a:hover {
    color: #002FA7;      
}

/* 直播间小图标样式 */
.link a img {
    width: 100px;         
    height: 100px;
    border-radius: 50%;  
    object-fit: cover;
}
/* 左上角链接容器 */



/* 头像和标题 */
/* 滑块触发盒子 */
.profile{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70%;
    height: 70%;
    position: relative;
    
}

/* 整体 */
.profile-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;          
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.profile:hover .profile-left {
    transform: translateX(-220px); 
}

/* 头像盒子 */
.headpicture{
    width: 250px;
    height: 250px;
    align-items: center;
    display: flex;
    position: relative;
}

/* 头像 */
.logo{
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #6881a1;
    display: flex ;
   justify-content: center;
   align-items: center;
}

/* 头像图片 */
.logo img{
    object-fit: cover;
     width: 100%; 
    height: 100%;
}

/* 标题盒子 */
.headtitle{
    text-align: center;
    margin-top: 16px;
    
}

/* 标题 */
.headtitle h1{
    font-size: 60px;
    color: #f5f2f2;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 100;
    text-shadow: 0 0 10px #000;
    margin: 10px 0;
}

/* 规则文本框 */
.rule-box {
    position: absolute;
    background: rgba(255, 255, 255, 0.726); 
    border: 3px solid #6881a1;
    border-radius: 20px;
    padding: 10px 25px 10px 25px;
    min-width: 500px;
    min-height: 250px;
    font-size: 20px;
    line-height: 1;
    color: #0e0d0d;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    align-items: center;
    justify-content: center;
 
    opacity: 0;
    transform: translateX(-30px);
    pointer-events: none; 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}


.profile:hover .rule-box{
    opacity: 1;             
    transform: translateX(250px); 
    pointer-events: auto;    
}


.rule-content{
   
    display: flex;
    flex-direction: row;        
    align-items: center;        
    gap: 15px;                  
    justify-content: space-between; 
}

.rule-text{
    width: 400px;  
    height: 400px;

}

.rule-text p {
    margin: 0;     
    margin-bottom: 15px; 
    line-height: 1.2;     
}

.rule-picture {
    width: 400px;  
    height: 400px;
}

.rule-picture img{
     width: 100%;       
    height: 100%;
    object-fit: cover;
    
}
/* 台头 */

/* 搜索栏 */
/* 搜索栏盒子 */
.searchbox{
    width: 100%;
    min-height: 350px;
    display: flex;
    padding: 30px ;
    align-items: center;
    flex-direction: column; 
}
/* 搜索栏边框 */
.search{
    width: 75%;
    min-height: 50%;
    align-items: center;
    background-color: rgba(248, 247, 247, 0.774);
    border: 5px solid #6881a1;
    padding: 30px;
    border-radius: 20px;
    z-index: 2;
    

    
}
/* 搜索栏内容*/
.search h2{
    font-size: 40px;
    color: #c77373;
    font-weight: bold;
    text-shadow: 0 0 10px #6881a1;
    margin: -10px 0px 10px 0px;
}
.search-inputtext{
    width: 100%;
    border:3px solid #6881a1;
    padding: 5px 10px 5px 10px  ;
    background: #fdfcfc;
    border-radius: 20px;
    font-size:30px;
}
/* 选择栏 */
.filter-group{
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;          /* 允许换行，防止溢出 */
    gap: 12px;               /* 下拉框之间的间距 */
}
/* 选择栏内容 */
.filter{
    flex: 1;
    min-width:300px;
    height: 50px;
    background-color: #fdfcfc;
    border:3px solid #6881a1;
    border-radius: 20px;
    font-size:20px;
}

/* 随机选歌按钮 */
.randomselect{
    margin-top: 20px ;
    width: 100px;
    height: 50px ;
    background-color: #fdfcfc;
    border:3px solid #6881a1;
    border-radius: 20px;
    font-size:20px;
}
/* 搜索栏 */


/* 歌单盒子 */
.listbox{
     width: 100%;
    min-height: 500px;
    display: flex;
    padding: 30px;
    align-items: center;
    flex-direction: column;
}
/* 歌单边框 */
.list{
    width: 75%;
    height: 100%;
    align-items: center;
    background-color: rgba(246, 247, 247, 0.747);
    border: 5px solid #6881a1;
    padding: 30px ;
    border-radius: 20px;
    z-index: 2;
}
/* 自动排列卡片 */
.playlist.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill/* 浏览器根据网页大小自动计算一行可以排列多少卡片 */, minmax(200px, 1fr));/* 规定每一个歌单卡片最小宽度是 200px，如果屏幕还有多余的宽度，就平均分配（1fr 代表 1 份） */
    gap: 0.9rem;
    

}

/* 卡片 */

/* 卡片规格 */
.playlist.grid-view li
 {
   
    background: #ffffff;
    border: 3px solid #6881a1;
    border-radius: 20px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.2s cubic-bezier(0.25,0.8,0.2,1);
    will-change:transform;
    cursor: pointer;
}

/* 卡片变化 */
.playlist.grid-view li:hover{
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); 
    border-color: #e22b0b; 
}

/* 去除圆点 */
.playlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 卡片内容 */
.song-info{
    flex: 1;
    min-width: 0;
}

/* 标题 */
.song-title{
    font-size: 20px;
    margin-bottom: 0.15rem;    
    font-weight: 1000;
    color: #000;

     padding-bottom: 5px;      /* 文字和线条之间的距离 */
    border-bottom: 2px solid #6881a1; /* 线条颜色和粗细（颜色可以自己换） */
    display: flex;           /* 确保线条贯穿整个卡片的宽度 */
    justify-content: space-between; /* 歌名在左，标签在右 */
    align-items: center;            /* 歌名和标签垂直居中 */
}



/* 歌手 */
.song-singer{
    font-size: 15px;
    margin-bottom: 0.15rem; 
    font-weight: 500;
    color: #000;
}

/* 元素 */
.song-meta{
    font-size: 15px;
    margin-bottom: 0.15rem; 
    font-weight: 500;
    color: #000;
}

/* 点歌花费边框 */
.access-mi{
    background: #00a740;
    color: #023d18;
}
/* 原有的绿色（保持不变） */
.access-mi{
    background: #00a740;
    color: #023d18;
}

/* 根据不同标签设置不同颜色 */
.tag-free { background: #7bc296; color: #023d18; }   /* 免费：绿色 */
.tag-15box { background: #8e44ad; color: #ffffff; }  /* 15盲盒：紫色 */
.tag-5box { background: #f39c12; color: #ffffff; }   /* 5盲盒：橙色 */
.tag-30sc { background: #e74c3c; color: #ffffff; }   /* 30SC：红色 */

/* 点歌花费内容 */
.access-tag{
    display: inline-block;
    padding: 0.2rem 0.52rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.4rem;
}

/* 歌单 */

/* 返回顶部按钮 */
.back-top {
    /* 盒子放在左下角 */
    position: fixed;       
    bottom: 30px;          
    right: 30px;           
    z-index: 999;          
    
    /* 生成圆形边框 */
    width: 50px;
    height: 50px;
    border-radius: 50%;    
    background: rgba(255, 255, 255, 0.623); 
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    
    /* 里面的箭头在中间 */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    
    /* 设置箭头 */
    font-size: 24px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
    
    /* 初始隐藏 */
    opacity: 0;            
    visibility: hidden;    
    transform: translateY(20px); 
}

/* 鼠标放上去的反馈 */
.back-top:hover {
    background: rgba(255, 255, 255, 1);
    color: #010102; 
}

/* JS 触发这后，变为可见 */
.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 随机选歌弹窗样式 */
/* 随机选歌页面遮罩和格式 */
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* 随机选歌弹窗 */
.modal-content {
    background: #ffffff;
    width: 420px;
    padding: 25px 30px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

/* 入场动画 */
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 随机顶部选歌标题和关闭按钮格式 */
.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

/* 随机选歌标题 */
.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

/* 关闭按钮 */
.close-icon {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.close-icon:hover { color: #333; }

/* 歌名框 */
.modal-song-name {
    background: #e6f7ff;
    color: #333;
    padding: 18px 15px;
    text-align: center;
    border-radius: 16px;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 内容框 */
.modal-song-details {
    background: #fff2f8; 
    padding: 15px 20px;
    border-radius: 16px;
    font-size: 14px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.8;
}
.modal-song-details div {
    margin: 5px 0;
}

/* 底部按钮组 */
/* 按钮排列 */
.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* 按钮规格 */
.btn {
    padding: 10px 30px;
    border-radius: 30px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
/* 关闭按钮 */
.btn-close {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    color: #333;
}
.btn-close:hover { background: #9b9898; }

/* 复制按钮 */
.btn-copy {
    background: #e6f7ff;
    border: 1px solid #9ecbec;
    color: #0056b3;
}
.btn-copy:hover { background: #d4f0ff; }




/* @media (max-width: 1200px) and (min-width: 769px) {
    .link {
        max-width: 100px;
        padding: 10px 14px;
        border-radius: 16px;
        gap: 4px;
    }
    .linklive a, .linkpersonal a {
        font-size: 18px;
        gap: 4px;
    }
    .divider {
        height: 2px;
    }
} */

@media (max-width: 768px) {
    /* ----- 布局容器 ----- */
 .mainfull {
        background-image: url(../img/background3.png); /* 换成你的手机专用图路径 */
        /* 如果还想调整大小或位置，可以同时覆盖这些属性 */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
 }

    .index1 {
        flex-direction: column;      /* 头像和规则框纵向排列 */
        gap: 20px;
        min-height: auto;            /* 去掉最小高度限制 */
        padding: 20px 10px;
        align-items: center;
    }

    /* ----- 左上角链接 ----- */
    .link {
        position: static;            /* 取消固定定位，随页面滚动 */
        flex-direction: row;         /* 水平排列两个链接 */
        justify-content: center;
        background: rgba(255,255,255,0.9);
        padding: 10px 15px;
        border-radius: 30px;
        width: 90%;
        margin: 0 auto 10px;
        gap: 5px;
        flex-wrap: wrap;
    }
    .linklive, .linkpersonal {
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }
    .link a {
        font-size: 16px !important;  /* 文字缩小 */
    }
    .link a img {
        width: 50px !important;
        height: 50px !important;
    }
    .divider {
        width: 2px;
        height: 30px;
        background: #000;
    }

    /* ----- 头像和标题 ----- */
    .profile {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
    .profile-left {
        transform: none !important;   /* 移除 hover 位移，手机无 hover */
        transition: none;
    }
    .headpicture {
        width: 150px;
        height: 150px;
    }
    .logo {
        width: 150px;
        height: 150px;
        border-width: 3px;
    }
    .headtitle h1 {
        font-size: 32px;
        margin: 5px 0;
    }

    /* ----- 规则框----- */
    .rule-box {
        position: static;            
        opacity: 1 !important;       
        transform: none !important;
        pointer-events: auto !important;
        min-width: 0;
        width: 90%;
        min-height: auto;
        padding: 15px;
        background: rgba(255,255,255,0.85);
        margin-top: 10px;
        font-size: 15px;
    }
    .rule-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .rule-text {
        width: 100%;
        height: auto;
    }
    .rule-picture {
        display: none;              
    }

    /* ----- 搜索栏 ----- */
    .searchbox {
        height: auto;
        padding: 10px;
    }
    .search {
        width: 100%;
        min-height: auto;
        padding: 15px;
    }
    /* .search h2 {
        font-size: 24px;
        margin: 0 0 10px 0;
    } */
    .search-inputtext {
        font-size: 20px;
        padding: 8px 12px;
    }
    .filter-group {
        flex-direction: column;      
        gap: 8px;
        margin-top: 10px;
        
    }
    .filter {
        min-width: 0;
        width: 100%;
        height: 60px;
        font-size: 22px;
    }
    .randomselect {
        width: 100%;
        height: 45px;
        font-size: 18px;
        margin-top: 15px;
    }

    /* ----- 歌单列表 ----- */
    .listbox {
        padding: 10px;
        min-height: 300px;
    }
    .list {
        width: 100%;
        padding: 10px 15px;
    }
    /* 卡片网格：手机一列 */
    .playlist.grid-view {
        grid-template-columns: 1fr !important;   /* 单列 */
        gap: 4px;
    }
    /* 卡片内部 */
    .playlist.grid-view li {
        padding: 2px 10px 2px 10px;
        gap: 0
        
    }

    .song-title,.song-singer,.song-meta {
    vertical-align: middle;
    display: inline-flex;
    align-items: center;    
    margin-bottom: 0;        
    margin-top: 0;           
}


    .song-info {
        display: flex;
        flex-wrap: nowrap;          /* 强制不换行 */
        align-items: center;
        gap: 4px 8px;               /* 行间距4px，列间距8px */
        font-size: 14px;
        overflow: hidden;           /* 溢出隐藏 */
        width: 100%;
         margin-top: 0 ;
        padding-top: 0 ;
         gap: 0 4px;
    }

    .song-title {
        font-size: 16px;
        font-weight: 700;
        border-bottom: none;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;        /* 歌名内部不换行 */
        flex-shrink: 0;             /* 歌名尽量不收缩 */
        max-width: 50%;             /* 限制宽度，防止挤占太多 */
        overflow: hidden;
        text-overflow: ellipsis;    /* 歌名太长用... */
         margin-top: 0;
        padding-top: 0 ;
        padding-bottom: 0;
    }

    .song-singer,.song-meta {
        font-size: 13px;
        font-weight: 400;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;             /* 允许收缩 */
        min-width: 0;               /* 允许收缩到0 */
    }

    /* 标签（如“免费”） */
    .access-tag {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
        flex-shrink: 0;             /* 标签不收缩 */
        margin-left: 0;
    }

    /* 如果有分隔符（比如你加的 · ），可以调整颜色 */
    .song-singer::before {
        content: " · ";
        color: #999;
        flex-shrink: 0;
    }
    .song-meta::before {
        content: " · ";
        color: #999;
        flex-shrink: 0;
    }


    /* ----- 随机弹窗 ----- */
    .modal-content {
        width: 90%;
        padding: 20px;
        margin: 0 10px;
    }
    .modal-song-name {
        font-size: 18px;
        padding: 14px;
    }
    .modal-song-details {
        font-size: 13px;
        padding: 12px 15px;
    }

    /* ----- 返回顶部按钮 ----- */
    .back-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 20px;
    }
}