/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: #1a1a1a;
	/* background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); */
    min-height: 100vh;
    color: #f0f0f0;
}

.container {
    display: flex;
    flex-direction: row;
	justify-content: center;
	align-items: center;
    min-height: 100dvh;
    /* 移除外层B框的样式 */
}

/* 头部样式 */
header {
    text-align: right;
	color: #707070;
    padding: 20px;
    /* background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(10px);*/
	display: flex;
    align-items: center;
    justify-content: right;
	gap: 10px;
	top: 20px;
	position: fixed;
	width: 80%;
	z-index:9999;
}

.home a:link, a:visited {color: #707070 !important;}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #888, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    color: #ccc;
    font-size: .8em;
}

/* 主要内容区域 */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
}

.map-container {
    position: relative;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    /* max-width: 1000px; */
    width: 100%;
	height: 100%;
	/* background: rgba(30, 30, 30, 0.95); padding: 20px; */
}

/* ECharts地图容器样式 */
#china-map {
    width: 100% !important;
    height: 100dvh !important;
    min-height: 500px !important;
    background: #1a1a1a;
    border-radius: 10px;
    display: block !important;
    position: relative !important;
    overflow: hidden;
	/* border: 1px solid #444; */
}

/* 提示框样式 */
.tooltip {
    position: absolute;
    background: rgba(30, 30, 30, 0.98);
	border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 2000;
    max-width: 300px;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    user-select: none;
    color: #f0f0f0;
}

.tooltip-header h3 {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 1.2em;
    border-bottom: 2px solid #555;
    padding-bottom: 5px;
}

.tooltip-content ul {
    list-style: none;
}

.tooltip-content li {
    padding: 8px 0;
    border-bottom: 1px solid #444;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 5px;
    padding-left: 10px;
    margin-bottom: 5px;
    user-select: none;
    pointer-events: auto;
    color: #f0f0f0;
}

.tooltip-content li:hover {
    background: #333;
    color: #fff;
    transform: translateX(5px);
}

.tooltip-content li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* 播放控件样式 */
.player-controls {
    background: rgba(20, 20, 20, 0.95);
    color: #b8b8b8;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.4);
	bottom: 20px;
	position: fixed;
	width: 80%;
	/*border: 1px solid rgba(255, 107, 107, 0.4);*/
	border-radius: 10px;
}

.player-info {
    flex: 1;
    min-width: 200px;
}

.song-info {
    display: flex;
    flex-direction: column;
}

.song-info a:link, a:visited {
  color: #b8b8b8;
  text-decoration: none;
}

#current-song {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

#current-artist {
    font-size: 0.6em;
    opacity: 0.8;
}

.player-buttons {
    display: flex;
    gap: 15px;
    margin: 0 30px;
}

.control-btn {
    background: rgba(100, 100, 100, 0.3);
    border: 0px;
    color: #f0f0f0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: .8em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bootstrap 图标优化 */
.control-btn i {
    font-size: 14px;
    line-height: 1;
}

/* 歌词按钮特殊样式 */
#lyrics-btn {
    font-size: 12px;
    font-weight: bold;
    font-family: 'Microsoft YaHei', sans-serif;
    width: 32px;
    height: 32px;
}

.control-btn:hover {
    background: rgba(150, 150, 150, 0.4);
    transform: scale(1.1);
}

.play-btn {
    background: rgba(200, 200, 200, 0.9);
    color: #1a1a1a;
}

.play-btn:hover {
    background: #f0f0f0;
}

.player-progress {
    display: flex;
	flex: 2;
    gap: 5px;
    margin: 0 30px;
	align-items: center;
    justify-content: center;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    opacity: 0.9;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(100, 100, 100, 0.3);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: #f0f0f0;
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 3px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 清除音量条默认样式 */
input[type='range'] {
  -webkit-appearance: none;
}

#volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(100, 100, 100, 0.6);
    outline: none;
    border-radius: 2px;
}

#volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
}

#volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .player-controls {
        flex-direction: column;
		justify-content: center;
		align-items: center;
        gap: 15px;
        padding: 15px;
		bottom: 20px;
		position: fixed;
    }
	
	.player-info {
		justify-content: center;
		align-items: center;
	}
	
	.player-info a, #current-song, #current-artist {
		text-align: center;
	}
	
	.time-info {
	display: none;
	}
    
    .player-progress {
        margin: 0;
        width: 100%;
    }
    
    .player-buttons {
        margin: 0;
    }
    
    .volume-control {
        display: none;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .map-container {
        padding: 20px;
    }
}

/* 歌词弹窗特殊样式 */
.lyrics-info {
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    background: rgba(255, 107, 107, 0.05);
}

.lyrics-song-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#lyrics-song-name {
    color: #f0f0f0;
    font-weight: bold;
    font-size: 16px;
}

#lyrics-song-artist {
    color: #ff6b6b;
    font-size: 13px;
}

.lyrics-body {
    /* 歌词区域的滚动条样式与全局列表保持一致 */
    flex: 1;
    overflow-y: auto;
    padding: 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 107, 0.6) rgba(255, 255, 255, 0.1);
    scrollbar-gutter: stable;
}

.lyrics-body::-webkit-scrollbar {
    width: 8px;
}

.lyrics-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 5px;
}

.lyrics-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        rgba(255, 107, 107, 0.8) 0%, 
        rgba(255, 107, 107, 0.6) 50%, 
        rgba(255, 107, 107, 0.4) 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    transition: all 0.3s ease;
}

.lyrics-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        rgba(255, 107, 107, 1) 0%, 
        rgba(255, 107, 107, 0.8) 50%, 
        rgba(255, 107, 107, 0.6) 100%);
    border-color: rgba(255, 107, 107, 0.4);
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
}

.lyrics-content {
    padding: 20px;
    line-height: 1.8;
    font-size: 14px;
    color: #f0f0f0;
    white-space: pre-line;
    word-wrap: break-word;
}

.no-lyrics {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 20px;
    font-size: 16px;
}

/* 动画效果 */
@keyframes glow {
    0% { fill: #4caf50; }
    50% { fill: #66bb6a; }
    100% { fill: #4caf50; }
}

.city-dot.playing {
    animation: glow 2s infinite;
    fill: #4caf50;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 全局歌曲列表弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: rgba(30, 30, 30, 0.98);
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 15px;
    padding: 0;
    width: 400px;
    max-width: 90vw;
    max-height: 80vh;
    margin-right: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #ccc;
    font-size: 1.2em;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn i {
    font-size: 16px;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-controls {
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.play-all-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.play-all-btn i {
    font-size: 12px;
}

.play-all-btn:hover {
    background: linear-gradient(45deg, #ff5252, #ff7979);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

#total-songs-count {
    color: #999;
    font-size: 0.9em;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    /* 平滑滚动效果 */
    scroll-behavior: smooth;
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 107, 0.6) rgba(255, 255, 255, 0.1);
    /* Firefox 滚动条优化 */
    scrollbar-gutter: stable;
}

/* Webkit浏览器（Chrome、Safari、Edge）的滚动条样式 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 5px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        rgba(255, 107, 107, 0.8) 0%, 
        rgba(255, 107, 107, 0.6) 50%, 
        rgba(255, 107, 107, 0.4) 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    transition: all 0.3s ease;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        rgba(255, 107, 107, 1) 0%, 
        rgba(255, 107, 107, 0.8) 50%, 
        rgba(255, 107, 107, 0.6) 100%);
    border-color: rgba(255, 107, 107, 0.4);
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
}

.modal-body::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, 
        rgba(255, 82, 82, 1) 0%, 
        rgba(255, 82, 82, 0.9) 50%, 
        rgba(255, 82, 82, 0.7) 100%);
}

/* 滚动条角落的样式 */
.modal-body::-webkit-scrollbar-corner {
    background: transparent;
}

.global-song-list {
    list-style: none;
    padding: 0;
    margin: 0;
    /* 优化滚动性能 */
    transform: translateZ(0);
}

.global-song-item {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* 滚动时的视觉优化 */
    will-change: transform, background-color;
    position: relative;
}

.global-song-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(3px);
    /* 添加微妙的右侧边框效果 */
    box-shadow: inset 3px 0 0 rgba(255, 107, 107, 0.3);
}

.global-song-item.playing {
    background: rgba(255, 107, 107, 0.1);
    border-left: 3px solid #ff6b6b;
    /* 播放状态下的轻微发光效果 */
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.2);
}

.song-title {
    color: #f0f0f0;
    font-weight: bold;
    font-size: 1em;
}

.song-details {
    color: #999;
    font-size: 0.85em;
    display: flex;
    justify-content: space-between;
}

.song-city {
    color: #ff6b6b;
}

/* 移动端适配改进 */
@media (max-width: 768px) {
    .modal {
        justify-content: center;
        padding: 20px;
    }
    
    .modal-content {
        margin-right: 0;
        width: 100%;
        max-width: 400px;
    }
}

/* shareaholic社交分享按钮在小屏底部不显示 */
#shr_canvas2{
	display:none;
}