body {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: subpixel-antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 30px;
  padding-bottom: 60px;
}
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;
}
.quark-tip {
  margin-top: 8px;
  font-size: 13px;
  color: #e67e22;
  line-height: 1.5;
}
.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;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
}
.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: 0px !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);
}

/* Logo样式 */
.logo-container {
  margin-bottom: 30px;
}
.logo-img {
  max-width: 300px;
  height: auto;
}

/* 推荐列表样式 */
.recommended-songs {
  margin-top: 0px;
  padding: 0px 0;
}
.page-player .recommended-songs {
  margin-top: 30px;
}
.recommended-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}
.recommended-list {
  margin: 0 auto;
}
.recommended-columns {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}
.recommended-column {
  flex: 1;
  min-width: 400px;
  max-width: 500px;
}
.recommended-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 4px;
  transition: background-color 0.2s;
  font-size: 14px;
  background-color: #f5f5f5;
}
.recommended-item:hover {
  background-color: #e8e8e8;
}
.song-num {
  display: inline-block;
  min-width: 1px;
  color: #999;
  font-size: 13px;
  margin-right: 12px;
  text-align: right;
}
.song-title {
  flex: 1;
  color: #333;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 12px;
}
.song-title:hover {
  color: #0e90d2;
  text-decoration: underline;
}
.song-size {
  color: #999;
  font-size: 12px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .recommended-columns {
    flex-direction: column;
  }
  .recommended-column {
    min-width: 100%;
    max-width: 100%;
  }
}

/* 播放页下载输入框样式 */
.download-input-readonly {
  color: #999;
  user-select: none;
}

/* 夸克详情页资源信息样式 */
.quark-detail-info {
  margin-top: 15px;
}
.quark-detail-item {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 6px;
  border-radius: 4px;
  background-color: #f5f5f5;
  font-size: 14px;
  transition: background-color 0.2s;
}
.quark-detail-item:hover {
  background-color: #e8e8e8;
}
.info-label {
  display: inline-block;
  min-width: 80px;
  color: #666;
  font-weight: 500;
  margin-right: 12px;
}
.info-value {
  flex: 1;
  color: #333;
  word-break: break-all;
}
.quark-detail-url {
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.info-url-btn {
  padding: 8px 20px;
  background: #0e90d2;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.info-url-btn:hover {
  background: #0d7db8;
}
.info-url-btn-primary {
  background: #0e90d2;
}
.info-url-btn-primary:hover {
  background: #0d7db8;
}
@media (max-width: 640px) {
  .info-url-group {
    flex-direction: column;
  }
  .info-url-btn {
    width: 100%;
  }
}
/* 减少搜索框和歌曲信息之间的空白，保留少量间距 */
.page-quark .am-container > .am-u-lg-12.am-padding-vertical:first-of-type {
  padding-bottom: 1px !important;
}
.page-quark .am-container > .am-u-lg-12.am-padding-vertical:last-of-type {
  padding-top: 1px !important;
}
.page-quark #j-search-form.am-margin-bottom-lg {
  margin-bottom: 1px !important;
}
.page-quark hr {
  display: none;
}
.player-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  color: #666;
  flex-wrap: wrap;
}
.player-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 640px) {
  .player-meta {
    font-size: 12px;
    gap: 12px;
  }
}
.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
  width: 100%;
}

.am-container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}
.song-card {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 0px;
  padding: 5px;
  gap: 12px;
  transition: box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.song-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.song-cover {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.song-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.song-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-artist {
  font-size: 14px;
  font-weight: 600;
  color: #666666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.play-btn {
  cursor: pointer;
  transition: color 0.2s ease;
  flex-shrink: 0;
  color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.play-btn:hover {
  color: #ff4081;
}
#j-search-input {
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
}
#j-search-input:focus {
  pointer-events: auto !important;
}
#j-search-input:disabled {
  pointer-events: none !important;
  opacity: 0.6;
}



.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 15px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.modal-close {
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 15px 20px 20px;
}

.song-info-modal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.modal-song-cover {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.modal-song-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.modal-song-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-song-artist {
  font-size: 13px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

.download-option-card:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
  background: #fafbff;
}

.download-icon-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  flex-shrink: 0;
}

.download-icon-box i {
  color: #ffffff;
  font-size: 20px;
}

.download-info {
  flex: 1;
  min-width: 0;
}

.download-title-row {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.download-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.download-desc {
  font-size: 13px;
  color: #999;
  margin: 0;
}

.download-arrow {
  color: #ccc;
  flex-shrink: 0;
}

.download-arrow i {
  font-size: 18px;
}