/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #ffffff; /* 设置全局字体颜色为白色 */
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: url('/static/picture/wind.gif')no-repeat center center fixed;
    background-size: cover;
    color: #ffffff; /* 确保 HTML 和 Body 的字体颜色为白色 */
    font-family: Arial, sans-serif;
}



/* 页面内容样式 */
.content {
    padding: 20px;
    font-size: 18px;
    color: #ffffff;
}

/* 页面切换动画覆盖层 */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* 半透明黑色背景 */
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease; /* 渐变效果 */
    display: none; /* 初始状态隐藏 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    flex-direction: column; /* 子元素垂直排列 */
}

/* Loading 文字样式 */
.loading-container {
    text-align: center;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px; /* 文字与加载图标之间的间距 */
}

/* 加载动画图标（SVG 旋转效果） */
.spinner {
    animation: spin 1s linear infinite;
}

/* 旋转动画 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 页面标题 */
h1 {
    margin-bottom: 20px;
}



/* 导航栏容器 */
#appMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent !important; /* 背景透明 */
    backdrop-filter: blur(10px); /* 模糊效果 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 底部边框 */
    z-index: 1000;
    transition: all 0.3s ease; /* 平滑过渡效果 */
}

/* 导航栏菜单样式 */
.el-menu-demo {
    background-color: transparent !important; /* 去掉默认背景 */
    border: none !important; /* 去掉边框 */
    padding: 0 20px; /* 左右内边距 */
}
/* 导航栏菜单项 */
.el-menu--horizontal {
    height: 70px !important; /* 增加导航栏整体高度 */
    min-height: 70px !important;
}
.el-menu-item,
.el-sub-menu__title {
    color: #ffffff !important; /* 文字颜色为白色 */
    font-size: 26px; /* 字体大小 */
    padding: 15px 20px; /* 上下左右内边距 */
    transition: all 0.3s ease; /* 平滑过渡效果 */
}

/* 菜单项悬停效果 */
.el-menu-item:hover,
.el-sub-menu__title:hover {
    background-color: rgba(255, 255, 255, 0.1) !important; /* 微弱高亮 */
    color: #ffeb3b !important; /* 高亮文字颜色 */
}

/* 当前激活的菜单项 */
.el-menu-item.is-active {
    background-color: rgba(255, 255, 255, 0.1) !important; /* 微弱高亮 */
    color: #ffeb3b !important; /* 高亮文字颜色 */
    border-bottom: 3px solid #ffeb3b; /* 底部边框 */
}

/* 子菜单样式 */
.el-sub-menu__title {
    font-weight: bold; /* 加粗标题 */
}

.el-sub-menu .el-menu-item {
    font-size: 18px; /* 子菜单字体稍小 */
    padding-left: 40px !important; /* 增加左边距 */
}

/* 统计数字样式 */
.el-statistic__number {
    background-color: transparent !important; /* 透明背景 */
    color: #ffffff; /* 白色文字 */
    font-size: 24px; /* 字体大小 */
    font-weight: bold; /* 加粗 */
}

/* 显示导航栏 */
#appMenu:not(.hidden) {
    top: 0; /* 显示导航栏 */
}

/* 隐藏导航栏 */
#appMenu.hidden {
    top: -40px; /* 隐藏导航栏 */
}

.success {
    color: green;
}

.error {
    color: red;
}


/* 音乐播放器样式 */
#musicPlayer {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
}

.music-player {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 10px;
    padding: 15px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.music-player.collapsed {
    width: 120px;
    padding: 10px;
}

.music-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.music-toggle, .collapse-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.music-toggle:hover, .collapse-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.music-content {
    color: white;
}

.music-info {
    text-align: center;
    margin-bottom: 10px;
}

.song-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #ff6b6b;
}

.song-artist {
    font-size: 12px;
    color: #ccc;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 10px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #667eea);
    border-radius: 2px;
    transition: width 0.1s ease;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.control-buttons button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.control-buttons button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.control-buttons button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.playlist {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #ccc;
}

.playlist-header button {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 12px;
}

.playlist-items {
    font-size: 12px;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2px;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.playlist-item.active {
    background: rgba(102, 126, 234, 0.3);
    color: #667eea;
}

.song-number {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    font-size: 10px;
    color: #999;
}

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

.song-duration {
    font-size: 10px;
    color: #999;
    margin-left: 8px;
}

/* 滚动条样式 */
.playlist::-webkit-scrollbar {
    width: 4px;
}

.playlist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.playlist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
