/* ============================================================
 * 影视插件 - 顶部导航样式 (nav.css)
 * 适用页面：movie.htm / ai.htm / music.htm
 * 与 1.css 主色 #31C177 保持一致
 * ============================================================ */

.xn-movie-topnav {
	position: relative;
	margin: 0 0 15px 0;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

/* 移动端折叠按钮（默认隐藏，移动端显示） */
.xn-movie-topnav-toggle {
	display: none;
	width: 100%;
	padding: 10px 15px;
	background: #0f1856;
	color: #31C177;
	border: none;
	text-align: left;
	font-size: 15px;
	line-height: 1.5;
	cursor: pointer;
}
.xn-movie-topnav-toggle:hover,
.xn-movie-topnav-toggle:focus {
	outline: none;
	color: #fff;
}

/* 导航列表 */
.xn-movie-topnav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

.xn-movie-topnav-item {
	flex: 0 0 auto;
}

.xn-movie-topnav-item a {
	display: block;
	padding: 12px 22px;
	color: #333;
	font-size: 15px;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: all 0.2s ease;
}

.xn-movie-topnav-item a:hover {
	color: #31C177;
	background: #f6f9ff;
	text-decoration: none;
}

/* 当前页高亮 */
.xn-movie-topnav-item.active a {
	color: #31C177;
	font-weight: bold;
	border-bottom-color: #31C177;
	background: #f6f9ff;
}

/* ===================== 移动端适配 ===================== */
@media (max-width: 767px) {
	.xn-movie-topnav-toggle {
		display: block;
	}

	.xn-movie-topnav-list {
		display: none;
		flex-direction: column;
	}

	.xn-movie-topnav-list.open {
		display: flex;
	}

	.xn-movie-topnav-item {
		flex: 1 1 auto;
		border-top: 1px solid #f0f0f0;
	}

	.xn-movie-topnav-item a {
		padding: 10px 15px;
		border-bottom: none;
	}

	.xn-movie-topnav-item.active a {
		border-bottom: none;
		border-left: 3px solid #31C177;
	}
}
