/**
 * 导航栏与 APlayer 样式
 * 设计风格：现代玻璃拟态 + 渐变光效
 * 特性：悬停动画、响应式布局、阴影、模糊背景等
 */

/* ========== 页面基础布局清除 ========== */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

/* iframe 内容区域（主框架） */
#contentFrame {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    border: none;
}

/* 播放器浮动容器 */
#aplayer {
    position: fixed;
    left: 20px;
    z-index: 9999;
    width: 75%;
    max-width: 365px;
    min-width: 250px;
}

/* ==================== 导航栏 ==================== */
/* 导航栏主体：固定在顶部，带毛玻璃效果 */
.navbar {
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 999;
}

/* 导航栏容器：设置内部布局 */
.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 2rem;
	max-width: 1200px;
	margin: 0 auto;
}

/* Logo样式：包含图标和文字 */
.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.5rem;
	font-weight: bold;
	color: #f88888;
	cursor: pointer;
}

.logo:hover {
    opacity: 0.8;
}

/* Logo图片样式 */
.logo img {
	height: 36px;
	width: auto;
	border-radius: 8px;
	object-fit: contain;
}

/* 导航菜单：水平排列 */
.nav-menu {
	display: flex;
	list-style: none;
	gap: 2rem;
}

/* 导航链接基础样式 */
.nav-menu a {
	text-decoration: none;
	color: #333;
	font-weight: 500;
	transition: all 0.3s ease;
	position: relative;
}

/* 导航链接下划线效果 */
.nav-menu a::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background: #f88888;
	transition: width 0.3s ease;
}

/* 悬停和激活状态的下划线动画 */
.nav-menu a:hover::after,
.nav-menu a.active::after {
	width: 100%;
}

/* 悬停和激活状态的文字颜色 */
.nav-menu a:hover,
.nav-menu a.active {
	color: #f88888;
}

/* 汉堡菜单按钮：默认隐藏，移动端显示 */
.hamburger {
	display: none;
	flex-direction: column;
	cursor: pointer;
}

/* 汉堡菜单的线条样式 */
.hamburger span {
	width: 25px;
	height: 3px;
	background: #333;
	margin: 3px 0;
	transition: 0.3s;
}

/* ========== 播放器主容器 ========== */
.aplayer {
    bottom: 90px !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* 顶部流光装饰条 */
.aplayer::before {
    content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, #87ceeb, transparent);
	animation: shimmer 2s infinite;
}

/* 播放器内容区域 */
.aplayer-body {
    padding: 20px;
}

/* ========== 专辑封面区域 ========== */
.aplayer-pic {
    height: 80px !important;
    width: 80px !important;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.aplayer-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* ========== 音乐信息区域 ========== */
.aplayer-music {
    text-align: center;
}

/* ========== 动画定义 ========== */
/* 顶部流光动画 */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
