* {
	/*margin: 0;*/
	/*padding: 0;*/
	/*box-sizing: border-box;*/
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	background-color: #f5f7fa;
	color: #333;
	/*line-height: 1.6;*/
}

.media-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

header {
	text-align: center;
	margin-bottom: 30px;
	padding: 20px 0;
	border-bottom: 1px solid #eaeaea;
}

h1 {
	color: #2c3e50;
	margin-bottom: 10px;
}

.filters {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
	gap: 15px;
}

.filter-btn {
	padding: 8px 16px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.3s;
}

.filter-btn.active {
	background: #3498db;
	color: white;
	border-color: #3498db;
}

.content-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 25px;
	margin-bottom: 40px;
}

.card {
	background: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s, box-shadow 0.3s;
	cursor: pointer;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
	width: 100%;
	height: 180px;
	object-fit: cover;
	transition: transform 0.3s;
}

.card:hover .card-image {
	transform: scale(1.05);
}

.card-video-container {
	position: relative;
	width: 100%;
	height: 180px;
	overflow: hidden;
}

.card-video-thumbnail {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.card:hover .card-video-thumbnail {
	transform: scale(1.05);
}

.play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s;
}

.play-button:hover {
	background: rgba(0, 0, 0, 0.9);
	transform: translate(-50%, -50%) scale(1.1);
}

.play-button::after {
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-left: 15px solid white;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	margin-left: 5px;
}

.card-content {
	padding: 15px;
}

.card-title {
	font-size: 1.1rem;
	margin-bottom: 8px;
	color: #2c3e50;
	font-weight: 600;
}

.card-description {
	font-size: 0.9rem;
	color: #7f8c8d;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 30px;
	gap: 10px;
}

.pagination button {
	padding: 8px 15px;
	background: white;
	border: 1px solid #ddd;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
	background: #3498db;
	color: white;
	border-color: #3498db;
}

.pagination button.active {
	background: #3498db;
	color: white;
	border-color: #3498db;
}

.pagination button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.page-info {
	margin: 0 15px;
	font-size: 0.9rem;
	color: #7f8c8d;
}

/* 视频弹窗样式 */
.video-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	z-index: 1000;
	align-items: center;
	justify-content: center;
}

.video-modal.active {
	display: flex;
}

.video-modal-content {
	position: relative;
	width: 80%;
	max-width: 900px;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 30px;
	height: 30px;
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
}

.video-modal-close:hover {
	background: rgba(0, 0, 0, 0.8);
}

.video-modal-player {
	width: 100%;
	height: 0;
	padding-bottom: 56.25%; /* 16:9 宽高比 */
	position: relative;
}

.video-modal-player video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.video-modal-info {
	padding: 15px 20px;
	background: #fff;
}

.video-modal-title {
	font-size: 1.2rem;
	margin-bottom: 8px;
	color: #2c3e50;
}

.video-modal-description {
	font-size: 0.95rem;
	color: #7f8c8d;
}

/* 图片弹窗样式 */
.image-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 1000;
	align-items: center;
	justify-content: center;
}

.image-modal.active {
	display: flex;
}

.image-modal-content {
	position: relative;
	width: 90%;
	max-width: 1000px;
	max-height: 90vh;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
}

.image-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #eee;
	background: #fff;
}

.image-modal-title {
	font-size: 1.3rem;
	color: #2c3e50;
	font-weight: 600;
	margin: 0;
}

.image-modal-close {
	width: 36px;
	height: 36px;
	background: #f8f9fa;
	color: #6c757d;
	border: none;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s;
}

.image-modal-close:hover {
	background: #e9ecef;
	color: #495057;
}

.image-modal-body {
	flex: 1;
	display: flex;
	overflow: hidden;
}

.image-modal-viewer {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px;
	background: #f8f9fa;
	overflow: auto;
}

.image-modal-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s;
}

.image-modal-sidebar {
	width: 300px;
	padding: 25px;
	background: #fff;
	border-left: 1px solid #eee;
	overflow-y: auto;
}

.image-modal-description {
	font-size: 1rem;
	color: #495057;
	line-height: 1.6;
	margin-bottom: 20px;
}

.image-modal-meta {
	border-top: 1px solid #eee;
	padding-top: 20px;
}

.meta-item {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
	font-size: 0.9rem;
}

.meta-label {
	color: #6c757d;
	font-weight: 500;
}

.meta-value {
	color: #495057;
}

.image-modal-zoom-controls {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.zoom-btn {
	padding: 8px 16px;
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: all 0.3s;
}

.zoom-btn:hover {
	background: #e9ecef;
	border-color: #adb5bd;
}

.loading {
	text-align: center;
	padding: 30px;
	font-size: 1.1rem;
	color: #7f8c8d;
}

.error {
	text-align: center;
	padding: 30px;
	color: #e74c3c;
	background: #ffeaea;
	border-radius: 8px;
	margin: 20px 0;
}

.retry-btn {
	margin-top: 15px;
	padding: 8px 16px;
	background: #e74c3c;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

/* 移动端适配 */
@media (max-width: 768px) {
	.content-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 15px;
	}

	.filters {
		flex-wrap: wrap;
	}

	.card-image, .card-video-container {
		height: 150px;
	}

	.pagination {
		flex-wrap: wrap;
	}

	.video-modal-content {
		width: 95%;
	}

	.play-button {
		width: 50px;
		height: 50px;
	}

	.image-modal-content {
		width: 95%;
		flex-direction: column;
		max-height: 95vh;
	}

	.image-modal-body {
		flex-direction: column;
	}

	.image-modal-sidebar {
		width: 100%;
		border-left: none;
		border-top: 1px solid #eee;
	}
}

@media (max-width: 480px) {
	.content-grid {
		grid-template-columns: 1fr;
	}

	.media-container {
		padding: 10px;
	}

	.video-modal-content {
		width: 98%;
	}

	.image-modal-content {
		width: 98%;
	}
}