html {
  font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', 'Microsoft YaHei', 'PingFang SC',
    'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
    'Fira Sans', 'Droid Sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif,
    'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
}
body {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: subpixel-antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 70px;
}
a {
  -webkit-transition: all .3s;
  transition: all .3s;
}
.about {
  background: #fff;
  color: #7f8c8d;
  flex: 1;
}
.about-color {
  color: #34495e;
}
.about-title {
  font-size: 180%;
  text-align: center;
}
.main {
  margin: 60px 0;
}
.music-tabs > li > a {
  padding: 0.5em 1em;
  cursor: pointer;
}
.music-main {
  display: none;
}
.music-main input {
  text-overflow: ellipsis;
}
.music-main input:focus,
.music-main input:hover {
  background: #eee;
  border-color: #ccc;
  color: #222;
}
.music-type .am-radio-inline,
.music-type label {
  color: #f00;
  font-weight: bold;
}
.music-type .am-icon-unchecked,
.music-type .am-icon-checked {
  color: #0e90d2;
}
.music-tips {
  margin-top: 50px;
}
.music-tips blockquote {
  font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 14px;
  margin-top: 30px;
}
.music-tips p span {
  display: inline-block;
  min-width: 50px;
}
.music-tips p b {
  font-weight: 500;
  color: #c7254e;
}
.music-overflow {
  max-height: 200px;
  overflow: hidden;
}
.music-more {
  padding: 10px;
  text-align: center;
  font-size: 14px;
  color: #666;
  background: #eee;
  cursor: pointer;
}
:root {
  --width: 780px;
  --header-bg: #ffffff66;
}

@media(prefers-color-scheme: dark) {
  :root {
    --header-bg: #00000066;
  }
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.header-content {
  height: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content h1 {
  flex: 1;
  margin: 0;
  font-size: 1em;
  font-weight: bold;
}

.header-content h1 a {
  font-weight: bold;
}

.header-content .nav {
  order: 2;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav li {
  margin-left: 20px;
}

.nav a {
  display: block;
  padding: 20px 0;
  color: var(--text-color);
  font-weight: bold;
  transition: color .3s ease;
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
  color: var(--link-color);
}

.title:hover {
  color: var(--text-color);
  text-decoration: none;
}

.site-title {
  transition: opacity .3s ease;
}

.glass-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 8px 32px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(255,255,255,.1), inset 0 0 0 0 rgba(255,255,255,0);
  position: relative;
  overflow: hidden;
}

@media(max-width: 779px) {
  .header-content .nav {
    margin: 15px 0;
    order: 2;
  }
  
  .header-content .nav ul {
    justify-content: center;
  }
  
  .nav li {
    margin: 0 10px;
  }
  
  nav ul li:nth-child(n+4) {
    display: none;
  }
}
.footer {
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}
.footer p {
  color: #ffffff;
  margin: 0;
  padding: 15px;
  text-align: center;
  background: #2d3e50;
  font-size: 12px;
}
.footer p a {
  color: #ffffff;
}
.footer p a:hover {
  color: #bbb;
}
.footer a {
  text-decoration: underline;
}
.am-alert {
  display: none;
}
.am-popup-bd {
  height: 100%;
}
.aplayer {
  padding: 10px !important;
  margin: 0 !important;
  border: 1px solid #ccc;
}
.aplayer .aplayer-info .aplayer-music .aplayer-title,
.aplayer .aplayer-info .aplayer-music .aplayer-author {
  font-size: 16px !important;
  color: #555 !important;
}

.aplayer .aplayer-list ol li .aplayer-list-index {
  display: inline-block;
  width: 20px;
  text-align: right;
}
.aplayer .aplayer-lrc p {
  color: #0e90d2 !important;
}
.aplayer .aplayer-more {
  position: relative;
  font-size: 12px;
  padding: 8px 10px;
  margin-top: 10px;
  text-align: center;
  color: #888;
  cursor: pointer;
  -webkit-transition: color .3s;
  transition: color .3s;
}
.aplayer .aplayer-more:hover,
.aplayer .aplayer-more:active {
  color: #0e90d2;
}

.aplayer.aplayer-withlrc .aplayer-pic {
  width: 120px !important;
  height: 120px !important;
  -webkit-box-shadow: inset 0 0 3px 0 rgba(0, 0, 0, .5);
  box-shadow: inset 0 0 3px 0 rgba(0, 0, 0, .5);
}
.aplayer.aplayer-withlrc .aplayer-info {
  margin-left: 120px !important;
  height: 120px !important;
}
.aplayer.aplayer-withlist .aplayer-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  border-bottom: 0 !important;
}
.aplayer.aplayer-withlist .aplayer-list {
  height: auto !important;
  padding-top: 20px;
  -webkit-transition: none;
  transition: none;
}
.aplayer.aplayer-withlist .aplayer-list-hide {
  padding: 0;
}
/* 搜索结果列表宽度与搜索框一致，并确保对齐 */
#j-songs.am-list-static {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none;
  border-top: none !important;
}
#j-songs .am-list-item-desced {
  margin: 0 !important;
  padding: 12px 0 !important;
  border-bottom: none !important;
  border-top: none !important;
}
#j-songs .am-list-item-desced + .am-list-item-desced {
  border-top: 1px solid #ddd !important;
  padding-top: 12px !important;
}
#j-songs .am-list-item-desced:first-child {
  padding-top: 0 !important;
  border-top: none !important;
}
#j-songs .am-list-item-desced:last-child {
  padding-bottom: 0 !important;
  border-bottom: none !important;
}
#j-songs .am-list-item-desced .am-list-main {
  padding: 0 !important;
  margin: 0 !important;
}
#j-songs .am-list-item-desced .am-u-sm-12 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#j-songs .am-list-item-hd {
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
}
#j-songs .am-list-item-text {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5;
}
#j-status {
  display: none;
  text-align: center;
  margin-bottom: 15px;
  font-size: 14px;
  color: #888;
}
#j-status.is-success {
  color: #1abc9c;
}
#j-status.is-error {
  color: #e74c3c;
}
.skeleton-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: none;
}
.skeleton-item {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}
.skeleton-title,
.skeleton-meta {
  height: 14px;
  border-radius: 4px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(0,0,0,0.05), rgba(255,255,255,0.2));
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}
.skeleton-meta {
  width: 60%;
  margin-bottom: 0;
}
@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.backtop-btn {
  position: fixed;
  right: 20px;
  bottom: 30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(14,144,210,0.9);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: none;
  z-index: 999;
  transition: transform .3s ease;
}
.backtop-btn:hover {
  transform: translateY(-4px);
}
