/* 通用样式 */
.navbar-text{
	margin-top: 11px !important;
	margin-bottom: 10px !important;
	color: white;
}
.navbar-text a{
	font-size: 13px !important;
	color: white;
}
.float_zc{
	float: right !important;
}
.form-group .row{
	margin-left: 0px;
}

.btn-info {
	color: #fff;
	background-color: #4E70C3;
	border-color: #4E70C3;
}
.btn-info:hover,
.btn-info:focus,
.btn-info.focus,
.btn-info:active,
.btn-info.active,
.open > .dropdown-toggle.btn-info {
  color: #fff;
  background-color: #4E70C3;
  border-color: #4E70C3;
}

.form-control:focus {
  border-color: #4E70C3;
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
		  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
}
.btn-group, .btn-group-vertical {
	position: relative;
	vertical-align: middle;
	display: none;
}
.pagination {
	display: flex;
	padding-left: 0;
	margin: 20px 0;
	border-radius: 4px;
}
.mt-0{
	font-size: 15px;
}

@media (max-width: 769px){
	.float_zc{
		margin-top: 11px !important;
		float: right;
		margin-right: 20px !important;
	}
}

/* 首页播放器及列表样式 */

/* 重置字体 */
* {
	font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* 主容器样式 */
.main-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

/* 播放器容器 - 桌面端 */
.player-container {
	flex: 1;
	min-width: 700px;
	position: relative;
	height: 580px;
	background: url('../images/videobg.png') no-repeat center center;
	background-size: cover;
	overflow: hidden;
	border-radius: 0;
	box-shadow: none;
	max-width: 700px;
	margin: 0;
}

.video-wrapper {
	position: absolute;
	top: 35px;
	left: 16px;
	width: 668px;
	height: 385px;
}

.video-wrapper iframe {
	width: 100%;
	height: 100%;
	display: block;
	border: none;
}

/* 视频列表容器 - 修改为浅灰色背景 */
.video-list-container {
	flex: 1;
	min-width: 400px;
	max-width: 480px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: space-between;
	min-height: 580px;
	/* 新增：浅灰色背景和边框 */
	background-color: #ffcccc;
	padding: 15px;
	border-radius: 8px;
	border: 5px solid #ff9900;
}

/* 视频列表项样式 */
.video-item {
	display: flex;
	gap: 10px;
	padding: 8px;
	background: #fff;
	border: 1px solid #eee;
	transition: transform 0.3s ease;
	min-height: 80px;
	align-items: center;
	flex: 1;
	max-height: 100px;
	/* 新增：圆角和阴影 */
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.video-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	border-color: #ddd;
}

/* 列表图片80×80 */
.video-thumbnail {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	overflow: hidden;
}

.video-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	height: 80px;
}

/* 标题 - 颜色加深 */
.video-title {
	font-size: 13px;
	font-weight: bold;
	margin-bottom: 4px;
	color: #2c3e50; /* 修改为更深色 */
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex-shrink: 0;
}

/* 描述文字 - 颜色加深 */
.video-description {
	font-size: 11px;
	color: #5a6c7d; /* 修改为稍深色 */
	line-height: 1.4;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	flex: 1;
}

/* Logo样式 */
.logo-container {
	position: absolute;
	top: 20px;
	right: 15px;
	z-index: 10;
	width: 120px;
	height: 60px;
	background: url('../images/enyulogo.png') no-repeat center center;
	background-size: contain;
	pointer-events: none;
	transition: transform 0.3s ease;
}

.logo-container:hover {
	transform: scale(1.05);
}

/* 中等屏幕适配（1180px以下） - 列表移到下方，但背景保持原始尺寸 */
@media (max-width: 1180px) {
	.main-container {
		flex-direction: column;
		align-items: center;
	}
	
	.player-container {
		width: 700px;
		min-width: 700px;
		height: 580px;
		flex: none;
		margin: 0 auto;
	}
	
	.video-list-container {
		width: 100%;
		min-width: unset;
		max-width: 700px;
		margin-top: 20px;
		gap: 8px;
		min-height: auto;
		/* 保持浅灰色背景 */
		background-color: #ffcccc;
		padding: 15px;
		border-radius: 8px;
		border: 5px solid #ff9900;
	}
}

/* 小屏幕适配（768px以下） - 修复视频窗口大小和位置 */
@media (max-width: 768px) {
	.main-container {
		padding: 10px;
	}
	
	.player-container {
		width: 100%;
		min-width: unset;
		max-width: 700px;
		height: auto;
		aspect-ratio: 700/580;
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center center;
	}
	
	/* 修改：修复视频窗口位置和大小（可调整以下值） */
	.video-wrapper {
		position: absolute;
		top: 8%;      /* 可调整：控制顶部距离 */
		left: 2.5%;   /* 可调整：控制左侧距离 */
		width: 95%;   /* 可调整：控制宽度 */
		height: 70%;  /* 可调整：控制高度（从66.4%改为70%） */
	}
	
	.video-list-container {
		max-width: 100%;
		/* 保持浅灰色背景 */
		background-color: #ffcccc;
		padding: 12px; /* 移动端稍小内边距 */
		border-radius: 8px;
		border: 5px solid #ff9900;
	}
	
	.video-item {
		min-height: 80px;
		padding: 8px;
		gap: 10px;
		flex: 0 0 auto;
		/* 保持圆角和阴影 */
		border-radius: 6px;
		box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	}
	
	.video-thumbnail {
		width: 80px;
		height: 80px;
	}
	
	.video-info {
		height: 80px;
	}
	
	.video-title {
		font-size: 12px;
		margin-bottom: 4px;
		color: #2c3e50; /* 保持加深色 */
	}
	
	.video-description {
		font-size: 11px;
		color: #5a6c7d; /* 保持加深色 */
	}
	
	.logo-container {
		width: 60px;
		height: 30px;
		top: 3.4%; /* 20/580=3.4% */
		right: 2.1%; /* 15/700=2.1% */
	}
	
	/* 防止页面产生水平滚动条 */
	html, body {
		overflow-x: hidden;
		width: 100%;
		position: relative;
	}
}

/* 超小屏幕适配（480px以下） */
@media (max-width: 480px) {
	.player-container {
		max-width: 100%;
	}
	
	/* 修改：超小屏幕的视频窗口调整（可调整以下值） */
	.video-wrapper {
		top: 6%;      /* 可调整：控制顶部距离 */
		left: 2.5%;   /* 可调整：控制左侧距离 */
		width: 95%;   /* 可调整：控制宽度 */
		height: 65%;  /* 可调整：控制高度（从60%改为65%） */
	}
	
	.video-list-container {
		padding: 10px; /* 超小屏幕更小内边距 */
	}
	
	.video-item {
		min-height: 70px;
		padding: 6px;
		gap: 8px;
		/* 保持圆角和阴影 */
		border-radius: 6px;
		box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	}
	
	.video-thumbnail {
		width: 60px;
		height: 60px;
	}
	
	.video-info {
		height: 60px;
	}
	
	.video-title {
		font-size: 11px;
		color: #2c3e50; /* 保持加深色 */
	}
	
	.video-description {
		font-size: 10px;
		color: #5a6c7d; /* 保持加深色 */
	}
	
	.logo-container {
		width: 50px;
		height: 25px;
		top: 2%; /* 可调整：控制顶部距离 */
		right: 2%; /* 可调整：控制右侧距离 */
	}
}