* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background-color: #f5f7fa;
	color: #333;
	line-height: 1.6;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
}

/* 顶部导航 */

/* 搜索栏 */
.search-section {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 20px;
}

.search-box {
	display: flex;
	align-items: center;
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 8px 15px;
	width: 300px;
}

.search-box input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 14px;
	background: transparent;
}

.search-box button {
	background: none;
	border: none;
	color: #999;
	cursor: pointer;
	font-size: 16px;
}

/* 分类标签 */
.category-tabs {
	display: flex;
	align-items: center;
	gap: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 20px;
}

.category-tabs span {
	font-size: 14px;
	color: #999;
}

.category-tabs a {
	text-decoration: none;
	font-size: 14px;
	color: #666;
	padding: 8px 0;
	position: relative;
	transition: color 0.3s;
}

.category-tabs a:hover {
	color: #1165FF;
}

.category-tabs a.active {
	color: #1165FF;
	font-weight: 500;
}

.category-tabs a.active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: #1165FF;
	border-radius: 1px;
}

/* 统计信息 */
.stats-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding: 10px 0;
}

.stats-left {
	font-size: 14px;
	color: #666;
}

.stats-left strong {
	color: #1165FF;
}

/* 视频网格 */
.video-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 15px;
}

.video-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s, box-shadow 0.3s;
	cursor: pointer;
	height: 360px;
}

.video-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.video-image {
	position: relative;
	width: 100%;
	aspect-ratio: 4/3;
	background: #1478A8;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 228px;
}

.video-image .play-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background:rgb(0 0 0 / 43%);
	border: 2px solid rgba(255, 255, 255, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	transition: all 0.3s;
}

.video-image:hover .play-icon {
	background: rgb(0 0 0 / 50%);
	transform: scale(1.1);
}

.play-icon::before {
	content: '';
	width: 0;
	height: 0;
	border-left: 10px solid white;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	margin-left: 3px;
}

.video-image .time-badge {
	position: absolute;
	bottom: 8px;
	left: 8px;
	background: rgba(0, 0, 0, 0.6);
	color: white;
	font-size: 11px;
	padding: 2px 6px;
	border-radius: 3px;
}

.video-card .video-player {
	position: relative;
	width: 100%;
}

.video-card .video-controls {
	position: relative;
	padding: 8px 10px;
	background: #000;
	display: flex;
	align-items: center;
	gap: 8px;
}

.video-card .video-controls .control-btn.play {
	color: white;
	font-size: 12px;
	cursor: pointer;
	width: 20px;
	text-align: center;
}

.video-card .video-controls .progress-bar {
	flex: 1;
	height: 4px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 2px;
	position: relative;
	cursor: pointer;
}

.video-card .video-controls .progress-bar .progress-fill {
	height: 100%;
	background: #1165FF;
	border-radius: 2px;
	width: 0%;
}

.video-card .video-controls .progress-bar .progress-dot {
	position: absolute;
	top: 50%;
	left: 0%;
	transform: translate(-50%, -50%);
	width: 10px;
	height: 10px;
	background: white;
	border-radius: 50%;
}

.video-card .video-controls .time-display {
	color: white;
	font-size: 10px;
	font-family: monospace;
	min-width: 65px;
}

.video-card .video-controls .volume-control {
	display: flex;
	align-items: center;
	gap: 4px;
	color: white;
}

.video-card .video-controls .volume-control span {
	font-size: 10px;
}

.video-card .video-controls .volume-bar {
	width: 30px;
	height: 3px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 2px;
}

.video-card .video-controls .volume-bar .volume-fill {
	height: 100%;
	background: white;
	border-radius: 2px;
	width: 70%;
}

.video-card .video-controls .quality-btn {
	color: white;
	font-size: 10px;
	cursor: pointer;
}

.video-card .video-controls .fullscreen-btn {
	color: white;
	font-size: 10px;
	cursor: pointer;
}

.video-card .video-controls .time-badge {
	position: static;
	background: rgba(255, 255, 255, 0.2);
	font-size: 10px;
	padding: 2px 5px;
}

.video-image .price-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #ff4d4f;
	color: white;
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 4px;
	font-weight: 500;
}

.video-title {
	font-size: 14px;
	color: #000;
	padding: 10px 12px;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: PingFang SC, PingFang SC;
	font-weight: bold;
}

.video-tags {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 6px;
	padding: 5px 12px 8px;
	height:38px;
}

.video-tags .tag {
	background: #EDF8FB;
	padding: 2px 8px;
	border-radius: 4px;
	font-family: PingFang SC, PingFang SC;
	font-weight: 500;
	font-size: 12px;
	color: #666666;
	font-style: normal;
	text-transform: none;
}

.video-info {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	margin: 8px 12px;
	border-top: 1px solid #F5F5F5;
	line-height: 40px;
}

.video-author {
	font-size: 14px;
	color: #666;
	font-family: PingFang SC, PingFang SC;
	width: 150px;
}

.video-detail .supplier-avatar img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
}

.video-author i {
	width: 20px;
	height: 20px;
	border-radius: 4px;
	display: inline-block;
	margin-right: 4px;
	line-height: 20px;
	font-size: 12px;
	color: #2370FF;
	text-align: center;
}

.video-author i img {
	width: 20px;
	height: 20px;
	border-radius: 4px;

}

.video-views {
	font-size: 12px;
	font-family: PingFang SC, PingFang SC;
	color: #999;
	background: url(../images/Group_10372.png) no-repeat left center;
	text-indent: 14px;
	background-position: 0px 16px;
}

.video-recommend {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #F76E1D;
	color: #fff;
	font-size: 12px;
	padding: 3px 8px;
	border-radius: 4px;
	font-weight: bold;
	z-index: 1;
}

/* 页脚 */
.footer {
	background: #f8f9fa;
	padding: 40px 0;
	margin-top: 40px;
	text-align: center;
	font-size: 14px;
	color: #999;
}

/* 响应式 */
@media (max-width: 1200px) {
	.video-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 992px) {
	.video-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.navbar-left {
		gap: 10px;
	}

	.navbar-left a {
		font-size: 13px;
	}

	.search-box {
		width: 250px;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 10px;
	}

	.navbar {
		padding: 12px 15px;
	}

	.navbar-left a:not(:first-child) {
		display: none;
	}

	.search-box {
		width: 100%;
		max-width: 300px;
	}

	.category-tabs {
		overflow-x: auto;
		gap: 10px;
		padding-bottom: 10px;
	}

	.category-tabs a {
		flex-shrink: 0;
		padding: 8px 15px;
	}


}

@media (max-width: 480px) {
	.video-grid {
		grid-template-columns: 1fr;
	}

	.video-title {
		font-size: 14px;
	}

}

/* 视频详情页样式 */
.video-detail .container {
	width: 1200px;
}

.video-detail .breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 15px 0 0;
	font-size: 14px;
	color: #666;
}

.video-detail .breadcrumb a {
	text-decoration: none;
}

.video-detail .breadcrumb a:hover {
	color: #1165FF;
}

.video-detail .breadcrumb span:last-child {
	color: #333;
	font-weight: 500;
}

.video-detail .main-content {
	display: flex;
	gap: 24px;
	overflow: hidden;
}

.video-detail .video-section {
	flex: 1;
	width: 868px;
	overflow: hidden;
}

#videoContainer {
	width: 868px;
	height: 580px;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	background: #1478A8;
	border-radius: 12px;
	overflow: hidden;
	display: block;
}

.video-detail .video-player {
	position: relative;
	background: #1478A8;
	border-radius: 12px;
	overflow: hidden;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}


.video-detail .video-detail-info {
	background: white;
	border-radius: 12px;
	padding: 20px 24px;
	margin-top: 10px;
}

.video-detail .video-detail-title {
	font-size: 18px;
	font-weight: 600;
	color: #000;
	margin-bottom: 16px;
	line-height: 1.5;
	font-family: PingFang SC, PingFang SC;
	text-overflow: ellipsis;
	    display: -webkit-box;
	    -webkit-line-clamp:1;
	    -webkit-box-orient: vertical;
		overflow: hidden;
		height: 30px;
}

.video-detail .video-detail-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.video-detail .video-detail-tags .tag {
	background: #EDF8FB;
	padding: 4px 12px;
	border-radius: 15px;
	font-size: 13px;
	color: #2370FF;
	border: 1px solid #2370FF;
}

.video-detail .video-detail-desc {
	font-size: 14px;
	    color: #333;
	    line-height: 1.8;
	    margin-bottom: 16px;
	    text-align: justify;
		height:77px;
	    text-overflow: ellipsis;
	    display: -webkit-box;
	    -webkit-line-clamp: 3;
	    -webkit-box-orient: vertical;
	    overflow: hidden;
}

.video-detail .video-detail-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	color: #666;
	padding-top: 16px;
	border-top: 1px solid #f0f0f0;
}

.video-detail-meta span img {
	position: relative;
	top: 3px;
}

.video-detail .sidebar {
	width: 314px;
	flex-shrink: 0;
	overflow: hidden;
}

.video-detail .supplier-card {
	background: white;
	border-radius: 12px;
	padding: 26px 20px;
	margin-bottom: 16px;
}

.video-detail .supplier-card h4 {
	font-size: 18px;
	font-weight: 600;
	color: #000;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	align-items: center;
	font-family: PingFang SC, PingFang SC;
	/* background: url(../images/Group_10372.png) no-repeat left center; */
}

.video-detail .supplier-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.video-detail .supplier-avatar {
	width: 52px;
	height: 52px;
	/*background: #1165FF;*/
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 26px;
	font-weight: bold;
}

.video-detail .supplier-info h3 {
	font-size: 15px;
	font-weight: 600;
	color: #333;
	margin-bottom: 4px;
}

.video-detail .supplier-info .verified {
	font-size: 12px;
	color: #1165FF;
	display: flex;
	align-items: center;
	gap: 4px;
	width: 125px;
	height: 28px;
	background: url(../images/Group_1078.png) no-repeat left center;
	border-radius: 14px 14px 14px 14px;
	text-align: left;
	justify-content: center;
}

.video-detail .supplier-tags {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

.video-detail .supplier-tags .tag {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #666;
}

.supplier-tags .tag span img {
	position: relative;
	top: 3px;
}

.video-detail .supplier-tags .tag span:first-child {
	color: #1165FF;
}

.video-detail .supplier-stats {
	display: flex;
	justify-content: space-around;
	gap: 12px;
	margin-bottom: 16px;
	padding: 16px;
	background: #f8f9fa;
	border-radius: 8px;
}

.video-detail .supplier-stats i {
	width: 1px;
	height: 30px;
	background: #d9d9d9;
	display: block;
}

.video-detail .stat-item {
	text-align: center;
	display: flex;
	align-items: center;
	gap: 15px;
	;
}

.video-detail .stat-item .stat-value {
	font-size: 22px;
	font-weight: 600;
	color: #333;
	display: block;
}

.video-detail .stat-item .stat-label {
	font-size: 12px;
	color: #999;
	margin-top: 4px;
}

.video-detail .supplier-btn {
	width: 266px;
	height: 52px;
	background:#fff;
	border-radius: 6px 6px 6px 6px;
	border: 1px solid #2370FF;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.3s;
	color: #2370FF;
}


.video-detail .related-product-card {
	background: white;
	border-radius: 12px;
	padding: 0;
	overflow: hidden;
}

.video-detail .related-product-card h4 {
	font-size: 18px;
	font-weight: 600;
	color: #000;
	margin: 0;
	padding: 12px 16px;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	align-items: center;
	font-family: PingFang SC, PingFang SC;
}

.video-detail .product-item {
	display: flex;
	flex-direction: column;
	width: 265px;
	height: 328px;
	background: #FFFFFF;
	box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
	border-radius: 6px 6px 6px 6px;
	margin: 25px auto;
}

.video-detail .product-image {
	width: 220px;
	height: 220px;
	background: #e8f0fe;
	overflow: hidden;
	margin: 12px auto 0;
}

.video-detail .product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-detail .product-title {
	font-size: 13px;
	    color: #333;
	    font-weight: 500;
	    line-height: 1.5;
	    padding: 12px 16px 0;
	    margin: 0;
	    font-family: PingFang SC, PingFang SC;
	    text-overflow: ellipsis;
	    display: -webkit-box;
	    -webkit-line-clamp: 2;
	    -webkit-box-orient: vertical;
	    overflow: hidden;
}

.video-detail .product-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 16px;
}

.video-detail .product-price {
	font-size: 18px;
	font-weight: 600;
	color: #E04109;
}

.video-detail .product-unit {
	font-size: 12px;
	color: #999;
	margin-left: 4px;
}

.video-detail .product-detail-btn {
	font-size: 13px;
	color: #2370FF;
	text-decoration: none;
	font-weight: 500;
	display: flex
	;
	    align-items: center;
}

.video-detail .product-detail-btn:hover {
	text-decoration: none;
}

.video-detail .related-section {
	margin-top: 32px;
}

.video-detail .related-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}

.related-header h2 i,
.related-product-card h4 i,
.supplier-card h4 i {
	width: 4px;
	height: 16px;
	display: inline-block;
	background: #2370FF;
	margin-right: 10px;
	border-radius: 3px;
	position: relative;
	top: 1px;
}

.video-detail .related-header h2 {
	font-size: 22px;
	font-weight: 600;
	color: #000;
	display: flex;
	align-items: center;
	font-family: PingFang SC, PingFang SC;
}

.video-detail .related-tabs {
	display: flex;
	gap: 10px;
	align-items: center;
}

.video-detail .related-tabs i {
	width: 136px;
	height: 36px;
	background: #FFFFFF;
	border-radius: 18px 18px 18px 18px;
	border: 1px solid #D9D9D9;
	display: inline-block;
	line-height: 34px;
	text-align: center;
	font-family: PingFang SC, PingFang SC;
	font-weight: 500;
	font-size: 16px;
	color: #666666;
	font-style: normal;
	text-transform: none;
}

.video-detail .related-tabs a {
	font-size: 13px;
	color: #666;
	text-decoration: none;
	padding: 5px 12px;
	border-radius: 4px;
	line-height: 36px;
	display: flex
	;
	    align-items: center;
}

.video-detail .related-tabs i.active {
	background: #2370FF;
	color: white;
}

.video-detail .related-tabs a:hover:not(.active) {

	color: #2370FF;
}
