/* 基础样式 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Arial', sans-serif;
	background-color: #f5f7fa;
	color: #333;
	line-height: 1.6;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* 头部样式 */
header {
	background-color: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index:9999999;
}

.header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
	border-bottom: 1px solid #eee;
}

.logo {
	display: flex;
	align-items: center;
}

.logo img {
	height: 50px;
	margin-right: 10px;
}

.search-box {
	display: flex;
}

.search-box input {
	flex: 1;
	padding: 10px 15px;
	border: 2px solid #165DFF;
	border-right: none;
	border-radius: 4px 0 0 4px;
	font-size: 14px;
	outline: none;
}

.search-box input:focus {
	border-color: #0E42D2;
}

.search-box .button {
	background-color: #165DFF;
	color: white;
	border: none;
	padding: 0 20px;
	border-radius: 0 4px 4px 0;
	cursor: pointer;
	transition: background-color 0.3s;
}

.search-box .button:hover {
	background-color: #0E42D2;
}

/* 导航样式 */
nav {
	background-color: #165DFF;
}

.nav-list {
	display: flex;
	list-style: none;
}

.nav-list li {
	position: relative;
}

.nav-list a {
	display: block;
	color: white;
	text-decoration: none;
	padding: 15px 20px;
	transition: background-color 0.3s;
}

.nav-list a:hover {
	background-color: #0E42D2;
}

.nav-list .active {
	background-color: #0E42D2;
}

/* Banner样式 */
.banner {
	position: relative;
	height: 400px;
	margin: 20px 0;
	overflow: hidden;
	border-radius: 8px;
}

.banner-slides {
	display: flex;
	height: 100%;
	transition: transform 0.5s ease;
}

.banner-slide {
	min-width: 100%;
	height: 100%;
	position: relative;
}

.banner-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.banner-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
	color: white;
	padding: 30px;
}

.banner-title {
	font-size: 28px;
	margin-bottom: 10px;
}

.banner-desc {
	font-size: 16px;
	opacity: 0.9;
	margin-bottom: 15px;
}

.banner-btn {
	display: inline-block;
	background-color: #165DFF;
	color: white;
	padding: 8px 20px;
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.3s;
}

.banner-btn:hover {
	background-color: #0E42D2;
}

.banner-dots {
	position: absolute;
	bottom: 15px;
	right: 20px;
	display: flex;
	gap: 10px;
}

.banner-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background-color 0.3s;
}

.banner-dot.active {
	background-color: white;
}

/* 最新更新列表样式 */
.section-title {
	font-size: 22px;
	margin: 30px 0 20px;
	color: #333;
	display: flex;
	align-items: center;
}

.section-title::after {
	content: '';
	flex: 1;
	height: 2px;
	background-color: #165DFF;
	margin-left: 15px;
}

.movie-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 25px;
	margin-bottom: 40px;
}

.movie-card {
	background-color: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s, box-shadow 0.3s;
}

.movie-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.movie-poster {
	position: relative;
	height: 280px;
	overflow: hidden;
}

.movie-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.movie-card:hover .movie-poster img {
	transform: scale(1.05);
}

.movie-rating {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: rgba(255, 153, 0, 0.9);
	color: white;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: bold;
}

.movie-info {
	padding: 15px;
}

.movie-title  a{
	color:#000;
	font-size: 16px;
	margin-bottom: 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-decoration:none;
}
.movie-title  a:hover{
	color:#165DFF
}
.movie-meta {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #666;
}

/* 友情链接样式 */
.links {
	background-color: white;
	padding: 20px 0;
	margin: 30px 0;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.links-list {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.links-list a {
	color: #666;
	text-decoration: none;
	padding: 5px 10px;
	border: 1px solid #eee;
	border-radius: 4px;
	transition: all 0.3s;
}

.links-list a:hover {
	color: #165DFF;
	border-color: #165DFF;
}

/* 页脚样式 */
footer {
	background-color: #165DFF;
	color: white;
	padding: 40px 0 20px;
	margin-top: 50px;
}

.footer-content {
	margin-bottom: 30px;
	text-align:center;
}

.footer-content a , .footer-content p {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.3s;
}

.footer-content a:hover {
	color: white;
}

.copyright {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
}
.copyright a{
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
}

/* 响应式样式 */
@media (max-width: 1200px) {
	.container {
		width: 95%;
	}
}

@media (max-width: 992px) {
	.movie-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	}
	
	.movie-poster {
		height: 220px;
	}
}

@media (max-width: 768px) {
	.header-top {
		flex-direction: column;
		gap: 15px;
		padding: 15px 0;
	}
	
	.search-box {
		width: 100%;
	}
	
	.banner {
		height: 300px;
	}
	
	.banner-title {
		font-size: 22px;
	}
	
	.banner-desc {
		font-size: 14px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	
	/* 移动端导航 */
	.nav-container {
		position: relative;
	}
	
	.menu-toggle {
		display: block;
		background: none;
		border: none;
		color: white;
		font-size: 24px;
		padding: 15px;
		cursor: pointer;
	}
	
	.nav-list {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: #165DFF;
		box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
	}
	
	.nav-list.active {
		display: flex;
	}
	
	.footer-content {
		flex-direction: column;
		gap: 20px;
	}
}

@media (min-width: 769px) {
	.menu-toggle {
		display: none;
	}
}

@media (max-width: 576px) {
	.movie-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}
	
	.movie-poster {
		height: 180px;
	}
	
	.banner {
		height: 220px;
	}
	
	.section-title {
		font-size: 18px;
	}
	.pagination{
		flex-wrap: wrap;
	}
	.pagination li {
		margin: 5px !important;
	}
	.pagination a {
		padding: 6px 10px;
		font-size: 14px;
	}
}

 /* 分页样式 */
.pagination {
	display: flex;
	justify-content: center;
	margin: 40px 0;
	list-style: none;
}

.pagination li {
	margin: 0 5px;
}

.pagination a , .pagination  span{
	display: block;
	padding: 8px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #333;
	text-decoration: none;
	transition: all 0.3s;
}

.pagination a:hover {
	border-color: #165DFF;
	color: #165DFF;
}

.pagination .active a {
	background-color: #165DFF;
	color: white;
	border-color: #165DFF;
}

.pagination .disabled a , .pagination .disabled span{
	color: #999;
	pointer-events: none;
	background-color: #f5f5f5;
}

/* 二级筛选栏样式 */
.filter-bar {
	background-color: white;
	padding: 15px 0;
	margin: 20px 0;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}


.filter-category {
	display: flex;
    align-items: center;
	border-bottom: 1px solid #eee;
}

.filter-title {
	text-align:center;
	flex: 0 0 5%;
	font-weight: bold;
	color: #333;
	cursor: pointer;
	transition: background-color 0.3s;
}

.filter-title:hover {
	background-color: #f5f7fa;
}

.filter-title.active {
	color: #165DFF;
}
.filter-options{
	padding: 10px;
	list-style:none;
	display: inline-block;
}
.filter-options li{
	display: inline-block;
}
.filter-options.active {
	display: block;
}

.filter-options a {
	color: #666;
	font-size:14px;
	text-decoration: none;
	padding: 6px 10px;
	border-radius: 4px;
	transition: all 0.3s;
	white-space: nowrap;
	display: inline-block;
}

.filter-options a:hover {
	background-color: #e9f0ff;
	color: #165DFF;
}

.filter-options .active a{
	background-color: #165DFF;
	color: white;
}


	
/* 播放区域样式 */
.play-container {
	display: flex;
	gap: 25px;
	margin: 20px 0 40px;
}

.player-wrapper {
	flex: 3;
}

.video-player {
	background-color: #000;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	padding-top: 56.25%; /* 16:9 比例 */
}

.video-player .MacPlayer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.player-controls {
	background-color: white;
	padding: 15px;
	border-radius: 8px;
	margin-top: 15px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.episode-tabs {
	display: flex;
	gap: 10px;
	margin-top: 15px;
	flex-wrap: wrap;
	list-style:none;
}

.episode-tab {
	padding: 6px 15px;
	background-color: #f5f7fa;
	border: 1px solid #eee;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s;
	font-size: 14px;
	color:#000;
	text-decoration:none;
}

.episode-tab:hover {
	background-color: #e9f0ff;
	border-color: #165DFF;
	color: #165DFF;
}

.episode-tab.active {
	background-color: #165DFF;
	color: white;
	border-color: #165DFF;
}

/* 影片信息区域 */
.movie-info-sidebar {
	flex: 1;
	min-width: 250px;
}

.movie-poster-large {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
}

.movie-poster-large img {
	width: 100%;
	display: block;
}

.movie-details {
	background-color: white;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.movie-title-large {
	font-size: 22px;
	margin-bottom: 15px;
	color: #333;
}

.movie-meta-detail {
	margin-bottom: 10px;
	font-size: 14px;
}

.movie-meta-detail strong {
	display: inline-block;
	width: 70px;
	color: #666;
}

.movie-description {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px dashed #eee;
}

.movie-description h3 {
	font-size: 16px;
	margin-bottom: 10px;
	color: #333;
}

.movie-description p {
	font-size: 14px;
	line-height: 1.8;
	color: #555;
}


/* 推荐影片区域 */
.section-title {
	font-size: 22px;
	margin: 30px 0 20px;
	color: #333;
	display: flex;
	align-items: center;
}

.section-title::after {
	content: '';
	flex: 1;
	height: 2px;
	background-color: #165DFF;
	margin-left: 15px;
}

.related-movies {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 15px;
	margin-bottom: 40px;
}

.related-movie-card {
	background-color: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s, box-shadow 0.3s;
}

.related-movie-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.related-movie-poster {
	position: relative;
	height: 220px;
	overflow: hidden;
}

.related-movie-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.related-movie-card:hover .related-movie-poster img {
	transform: scale(1.05);
}

.related-movie-title {
	padding: 10px;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.related-movie-title a{
 font-size: 14px;
 color:#000;
 text-decoration:none;
}

/* 评论区域 */
.comments-section {
	background-color: white;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 40px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comment-form {
	margin-bottom: 30px;
}

.comment-form textarea {
	width: 100%;
	padding: 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	min-height: 100px;
	font-family: inherit;
	margin-bottom: 10px;
	resize: vertical;
}

.comment-form button {
	background-color: #165DFF;
	color: white;
	border: none;
	padding: 8px 20px;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.comment-form button:hover {
	background-color: #0E42D2;
}

.comment-item {
	padding: 15px 0;
	border-bottom: 1px solid #eee;
}

.comment-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
	font-size: 14px;
}

.comment-author {
	font-weight: bold;
	color: #333;
}

.comment-time {
	color: #999;
}

.comment-content {
	font-size: 14px;
	color: #555;
	line-height: 1.8;
}