/*
Theme Name: 你的主题名称
Theme URI: 主题官网地址
Description: 主题描述
Author: 作者名称
Author URI: 作者官网
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 主题文本域（用于国际化）
*/



/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /*font-family: "Microsoft YaHei", sans-serif;*/
  font-family: HarmonyOS_Regular,sans-serif!important;
}

body {
  background-color: #0f1729;
  color: #fff;
  /*line-height: 1.6;*/
  /*min-height: 100vh;*/
  /*padding-bottom: 60px;*/
}

/* 隐藏页面垂直+水平滚动条（兼容 Chrome/Edge/Safari） */
::-webkit-scrollbar {
  display: none; /* Chrome/Edge/Safari 核心：隐藏滚动条轨道和滑块 */
}

/* Firefox 核心：隐藏滚动条，保留滚动功能 */
html {
  scrollbar-width: none; /* 隐藏滚动条宽度 */
  -ms-overflow-style: none; /* IE/Edge 旧版兼容（可选） */
  margin-top: 20px!important;
}

/* 确保页面可正常滚动（默认已开启，无需额外设置） */
body {
  overflow: auto;
}


a{
    text-decoration: none;
    color: #fff;
}

button {
  /* 去除默认边框和外边框 */
  border: none;
  outline: none; /* 去除点击时的默认焦点外框（可选，需注意 accessibility） */
  
  /* 去除默认背景和内边距 */
  background: none;
  padding: 0;
  
  /* 去除默认文字样式（如字体、颜色继承父元素） */
  font: inherit;
  color: inherit;
  
  /* 去除点击时的默认高亮/阴影（部分浏览器） */
  -webkit-tap-highlight-color: transparent; /* 移动端 Safari */
  box-shadow: none;
  
  /* 鼠标悬停时显示手型指针（模拟可点击状态） */
  cursor: pointer;
  
  /* 重置盒模型（避免默认样式干扰） */
  box-sizing: border-box;
  
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 */
header {
  padding: 14px;
  text-align: center;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.logo img {
  /*width: 60px;*/
  height: 80px;
  /*margin-right: 15px;*/
}

.logo-text {
  font-size: 36px;
  font-weight: bold;
  color: #13c8ff;
}

.logo-subtitle {
  font-size: 16px;
  /*margin-bottom: 20px;*/
    max-width: 600px;
    text-align: center;
    background: -webkit-linear-gradient(80deg, #12a849 30%, #4cd13f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* 搜索框样式 */
.search-box {
  position: relative;
  max-width: 360px;
  margin: 0 auto 30px;
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 16px;
    background-color: #1e293b;
    border: 1.5px solid #40ca48;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: #13c8ff;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* 导航标签样式 */
.nav-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.tab-btn {
  padding: 6px 16px;
  background-color: #1e293b;
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  /*background-color: #13c8ff;*/
      background: -webkit-linear-gradient(80deg, #12a849 30%, #4cd13f);
  color: #0f1729;
  font-weight: bold;
}

.tab-btn:hover:not(.active) {
  background-color: #334155;
}

/* 歌曲列表样式 */
.song-grid {
  display: grid;
  /*grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));*/
  grid-template-columns: repeat(2, 1fr); 
  gap: 16px;
  margin-bottom: 40px;
}

.song-card {
  background-color: #19243c99;
  border-radius: 6px;
  padding: 14px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.song-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.song-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.song-cover {
  width: 60px;
  height: 60px;
  /*border-radius: 4px;*/
  object-fit: cover;
      border-radius: 50%;
}

.song-details {
    flex: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.song-title {
  font-weight: bold;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  color: #94a3b8;
  font-size: 13px;
}

.song-date {
  color: #64748b;
  font-size: 12px;
  margin-top: 8px;
  text-align: right;
}
















/* 搜索关键词提示栏 */
.search-query-bar {
  /*background-color: #f5f5f5;*/
  /*padding: 12px 0;*/
  margin-bottom: 16px;
}
.search-query-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.search-query-bar p {
  margin: 0;
  color: #666;
  font-size: 14px;
}
.search-query-bar .query-text {
  color: #4cd13f;
  font-weight: 600;
  margin: 0 2px;
}
.search-query-bar .result-count {
  margin: 0 2px;
  color: #999;
}
.search-query-bar .reset-search {
  color: #4cd13f;
  text-decoration: none;
  margin-left: 12px;
}
.search-query-bar .reset-search:hover {
  text-decoration: underline;
}

/* 无搜索结果卡片 */
.no-results-card {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1; /* 占满整个网格宽度 */
}
.no-results-card .icon {
  margin-bottom: 20px;
  opacity: 0.5;
}
.no-results-card h3 {
  color: #797979;
  font-size: 18px;
  margin-bottom: 12px;
}
.no-results-card p {
  color: #999;
  margin-bottom: 24px;
}


/* 分页导航（适配首页风格） */
.pagination {
  margin-top: 40px;
  text-align: center;
  grid-column: 1 / -1; /* 占满网格宽度 */
}
.pagination ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 8px;
}
.pagination li {
  margin: 0;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #eee;
  border-radius: 4px;
  color: #666;
  text-decoration: none;
  transition: all 0.3s;
}
.pagination a:hover {
  border-color: #4299e1;
  color: #4299e1;
}
.pagination .current {
  background-color: #4299e1;
  color: white;
  border-color: #4299e1;
}
.pagination .prev, .pagination .next {
  border-color: #eee;
}
.pagination .prev:hover, .pagination .next:hover {
  border-color: #4299e1;
  color: #4299e1;
}





/*=============【single start】==========*/


.nav-tabs{display: none;}

/* 音乐播放核心样式 */
.music-info{
    padding: 0 50px;
    max-width: 1250px;
    margin: 0 auto;
}
.detail{
    background: rgba(44, 47, 58, .6);
    border-radius: 30px;
    padding: 40px;
    display: flex;
    align-items: center;
    position: relative;
}

/* 封面容器 */
.pic{
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #31be43;
    position: relative;
    box-shadow: 0 0 20px rgb(50 191 68 / 50%);
}
.musicCover{
    width: 100%;
    height: 100%;
    position: relative;
    animation: rotateAni 8s infinite linear;
    animation-play-state: paused;
    animation-fill-mode: forwards;
}
@keyframes rotateAni {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.musicCover img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 播放按钮 */
.play-btn{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 111;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}
.play-btn.loading{
    pointer-events: none;
    opacity: 0.8;
}
.play-btn:hover{
    color: #31be43;
    box-shadow: 0 0 20px rgb(50 191 68);
}
.icon-container{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}
#playIcon{display: flex;}
#pauseIcon{display: none;}
#loadingIcon{display: none;}
.play-btn.playing #playIcon{display: none;}
.play-btn.playing #pauseIcon{display: flex;}
.play-btn.loading #playIcon,
.play-btn.loading #pauseIcon{display: none;}
.play-btn.loading #loadingIcon{display: flex;}
.icon-container svg,
.icon-container img{
    width: 100%;
    height: 100%;
    max-width: 30px;
    max-height: 30px;
}
@keyframes loadingRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
#loadingIcon img{
    animation: loadingRotate 1s infinite linear;
}

/* 进度条 */
.progress-container{
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 280px;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 2px;
}
.played-time, .audio-time{
    font-size: 12px;
    color: #999;
    width: 40px;
    text-align: center;
}
.pgs-total{
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.pgs-play{
    height: 100%;
    background: #3bc542;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}
.progress-handle{
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4cd13f;
    box-shadow: 0 0 5px rgb(51 191 67);
    display: none;
}
.pgs-total:hover .progress-handle{
    display: block;
}

.info{
    width: calc(100% - 395px);
    padding: 10px 30px;
}
h1{
    font-size: 25px;
    margin-bottom: 15px;
    background: -webkit-linear-gradient(80deg, #12a849 30%, #4cd13f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.title-box{
    position:relative;
    display: inline-block;
}
.geci{
    position: absolute;
    top: -4px;
    font-size: 12px;
    background: -webkit-linear-gradient(80deg, #ff0000 30%, #ff00f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-left: 2px;
    right: -26px;
}

.itinfo{
    font-size: 14px;
    display: flex;
    gap: 20px;
}
.singer-link{
    text-decoration: none;
    transition: color 0.2s;
    background: -webkit-linear-gradient(80deg, #12a849 30%, #4cd13f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.singer-link:hover{
    text-decoration: underline;
}
.singer-empty{
    color: #999;
}
.itbtn{
    margin-top: 30px;
    display: flex;
    align-content: center;
}
.itbtn button{
    padding: 0 30px;
    line-height: 40px;
    background: -webkit-linear-gradient(80deg, #12a849 30%, #4cd13f);
    color: #ffffff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-right: 10px;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
}
.itbtn button:hover{
    background: -webkit-linear-gradient(80deg, #1edb64 30%, #1c9510);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 219, 100, 0.3);
}
.ewm{
    width: 215px;
    margin-left: auto;
    text-align: center;
}
.ewm_pic{
    width: 120px;
    height: 120px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.ewm dt{
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* 歌词容器 - 核心修复：精准行高+对齐 */
.lyric-container{
    margin: 20px auto;
    height: 150px; /* 默认高度为0，不占空间 */
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    padding: 0; /* 移除内边距避免偏移 */
    backdrop-filter: blur(8px);
    
    /* 默认隐藏 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px); /* 初始向上偏移 */
    /* 动画过渡：淡入+下滑 */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, visibility 0.6s ease-out;
    display: none;
}
/* 显示歌词的激活类 */
.lyric-container.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* 回到正常位置 */
    display: block;
}
#lyric-list{
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transition: transform 0.4s ease-out; /* 更稳定的缓动 */
    transform: translateY(0);
}
.lyric-line{
    text-align: center;
    font-size: 16px;
    color: #a0aec0;
    line-height: 30px; /* 行高=容器高度/5，精准对齐 */
    height: 30px; /* 强制固定高度 */
    transition: all 0.3s ease;
    opacity: 0.7;
    box-sizing: border-box;
    padding: 0 20px; /* 内边距移到行内，不影响容器计算 */
    white-space: nowrap; /* 防止文字换行导致行高变化 */
    overflow: hidden;
    text-overflow: ellipsis;
}
.lyric-line.active{
    color: #31be43;
    font-weight: 600;
    font-size: 18px;
    opacity: 1;
    transform: scale(1.03); /* 轻微缩放避免偏移 */
    text-shadow: 0 0 10px rgba(49, 190, 67, 0.4);
}
.lyric-line.active + .lyric-line,
.lyric-line.active + .lyric-line + .lyric-line,
.lyric-line.active ~ .lyric-line:nth-last-child(2),
.lyric-line.active ~ .lyric-line:nth-last-child(3) {
    opacity: 0.9;
    color: #cbd5e0;
}
.no-lyric{
    text-align: center;
    color: #718096;
    font-size: 16px;
    line-height: 150px; /* 与容器高度一致 */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-related{
    margin-top: 30px;
}
.related-title{
    text-align: center;
    margin: 10px 0;
    font-size: 22px;
    font-weight: 700;
    background: -webkit-linear-gradient(80deg, #12a849 30%, #4cd13f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container{
    padding: 0;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .search-box {
        width: calc(100% - 0px);
        margin: 0 auto 0px;
        max-width: 100%;
    }
    .music-info{
        padding: 0 14px;
    }
    .detail{
        display: block;
        margin: 0 auto;
        padding: 20px;
        /*padding-bottom: 40px;*/
    }
    .pic{
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    .play-btn{
        width: 40px;
        height: 40px;
    }
    .icon-container svg,
    .icon-container img{
        max-width: 20px;
        max-height: 20px;
    }
    .info{
        width: 100%;
        padding: 10px 20px;
    }
    h1{
        font-size: 16px;
        text-align: center;
    }
    
    .info .title{
        text-align: center;
    }
    
    .ewm{
        display: none;
    }
    .itinfo{
        font-size: 14px;
        display: flex;
        gap: 4px;
        flex-direction: column;
        text-align: center;
    }
    .itbtn{
        flex-direction: column;
        gap: 10px;
        margin-top: 14px;
    }
    .progress-container{
        margin: 1rem auto 0;
        position: relative;
        width: 100%;
    }
    .played-time, .audio-time{
        width: 35px;
        font-size: 11px;
    }
    /* 移动端歌词容器 - 精准高度 */
    .lyric-container{
        height: 150px; /* 5行×40px */
        margin: 20px auto;
    }
    .lyric-line{
        font-size: 14px;
        height: 30px;
        line-height: 30px; /* 行高=高度，完美对齐 */
        padding: 0 10px;
    }
    .lyric-line.active{
        font-size: 16px;
    }
    .no-lyric{
        line-height: 150px;
        font-size: 14px;
    }
    
    .music-related{
        margin-top : 0px;
    }
}



/*=============【single end】==========*/



/* 响应式调整 */
@media (max-width: 768px) {
    
   html{
       margin-top: 10px;
   }
    
  .logo img {
    /*width: 50px;*/
    height: 80px;
  }
  
  .logo-text {
    font-size: 28px;
  }
  
  .song-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 10px;
  }
  
  .song-card{
      padding: 10px;
      border-bottom: 1px solid #4cd13f12;
      background-color: transparent;
  }
  
  .song-cover{
      width: 45px;
      height: 45px;
  }
}


/*=============【footer start】==========*/

/* 遮罩层样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 弹窗容器 - 绝对定位+水平垂直居中核心 */
.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 420px;
    background-color: #2c2c2c; /* 浅黑色弹窗背景 */
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalFadeIn 0.4s ease-out;
    /*border: 1px solid #39b54a; */
}

/* 弹窗头部 */
.modal-header {
    background-color: #333;
    padding: 16px 20px;
    border-bottom: 1px solid #373737; /* 绿色分割线 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: #39b54a; /* 绿色标题 */
    font-size: 18px;
    font-weight: 600;
    
    display: flex;
    align-items: center;
    gap: .2rem;
}

.close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #444;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #39b54a;
    transform: rotate(90deg);
}

/* 弹窗内容区 */
.modal-content {
    padding: 24px 20px;
    text-align: center;
}

/* 二维码容器 */
.qrcode-wrapper {
    background-color: #fff;
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.qrcode-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 提示文字 */
.modal-text {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-text strong , .modal-text a{
    color: #39b54a; /* 绿色强调文字 */
}

/* 下载按钮 (仅移动端显示) */
.download-btn {
    display: none;
    width: 100%;
    padding: 12px;
    background-color: #39b54a;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    background-color: #2d913a;
}

/* 响应式适配 - 移动端样式 */
@media (max-width: 768px) {
    .modal-container {
        width: 92%;
        max-width: 380px;
    }

    .qrcode-wrapper {
        width: 200px;
        height: 200px;
    }

    .download-btn {
        display: block;
    }
}

/* 弹窗淡入动画 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/*=============【footer end】==========*/




