/* 侧边栏公告容器 */
#sideBar #blog-news {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2ebf2 100%); /* 薄荷绿渐变背景 */
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* 柔和阴影 */
    font-family: 'Lato', sans-serif; /* 引入Google Fonts */
    transition: all 0.3s ease; /* 动画过渡效果 */
}

/* 公告标题 */
#sideBar #blog-news h3 {
    color: #009688; /* 深薄荷绿 */
    font-size: 22px;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

/* 公告内容 */
#sideBar #blog-news p {
    color: #444;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 20px;
}

/* 趣味分隔线 */
#sideBar #blog-news hr {
    border: none;
    height: 3px;
    background: repeating-linear-gradient(
        to right,
        #e0f2f1,
        #e0f2f1 10px,
        #b2ebf2 10px,
        #b2ebf2 20px
    );
    margin: 20px 0;
}

/* 鼠标悬停效果 */
#sideBar #blog-news:hover {
    transform: translateY(-5px); /* 微微上浮 */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

button {
  background: #009688;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}
button:hover {
  background: #00796b;
  transform: translateY(-2px);
}

/* 自定义 APlayer 播放器样式 - 完全独立，无外部依赖 */
.cnblog-music-player {
    font-family: "Microsoft YaHei", sans-serif;
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 播放器主体 */
.music-player-body {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 专辑封面 */
.music-cover {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
    position: relative;
}
.music-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 播放状态指示 */
.music-cover .play-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: none;
    align-items: center;
    justify-content: center;
}
.music-cover:hover .play-indicator {
    display: flex;
}
.play-indicator .play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
}

/* 音乐信息 */
.music-info {
    flex-grow: 1;
    min-width: 0;
}
.music-title {
    font-size: 16px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}
.music-author {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

/* 进度条控制区 */
.music-controls {
    width: 100%;
}
.progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    margin-bottom: 8px;
}
.progress-loaded {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #ccc;
    border-radius: 2px;
}
.progress-played {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #2c7ad6; /* 博客园蓝，可自定义 */
    border-radius: 2px;
}
.progress-thumb {
    position: absolute;
    right: -6px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    background: #fff;
    border: 2px solid #2c7ad6;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
    transform: scale(0);
    transition: transform 0.2s;
}
.progress-bar:hover .progress-thumb {
    transform: scale(1);
}

/* 时间和按钮区 */
.control-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
}
.time-display {
    display: flex;
    gap: 5px;
}
.current-time {
    color: #333;
}
.control-buttons {
    display: flex;
    gap: 15px;
}
.btn {
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}
.btn:hover {
    color: #2c7ad6;
}
.play-btn {
    font-size: 18px;
}

/* 播放列表 */
.music-list {
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}
.music-list.show {
    max-height: 300px;
}
.music-list ol {
    list-style: none;
    padding: 0;
    margin: 0;
}
.music-list li {
    padding: 8px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
}
.music-list li:hover {
    background: #f0f0f0;
}
.music-list li.active {
    background: #e8f0fe;
    color: #2c7ad6;
}
.list-info {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}