body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);
}

body::-webkit-scrollbar {
	display: none;
} /*隐藏页面滚动条*/

* {
	font-family: "youyuan";
	text-decoration: none;
}

@font-face {
	font-family: "youyuan";
	src: url("../../font/SIMYOU.TTF") format("opentype");
	font-weight: normal;
	font-style: normal;
}

/* header {
    position: sticky;
    top: 0;
    background-image: linear-gradient(to top, #30cfd0 0%, #330867 0%);
} */ /*固定顶部 暂时不用*/

.nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	max-height: 50px;
	/* background-color: #3fc1c9; */
}

.site:hover {
	cursor: pointer;
}

.logo-left {
	width: 100px;
	max-height: 50px;
	padding: 10px 0 5px 15px;
}

/* .search-box input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 50px;
} */ /*是为搜索框，待视频丰富之后再添加*/

.logo-right {
	width: 150px;
}

.site-section {
	white-space: nowrap;
	padding: 4px;
	margin-right: 0;
	border-radius: 0px;
	box-shadow: 0px 3px 0px #7e15ff80;
}

.website {
	text-decoration: none;
	/* font-family: '演示斜黑体',sans-serif; */ /*用这个字体的话，margin调成0 5px*/
	font-size: 18px;
	color: white;
	/* font-weight: bold; */
	margin: 0 3px;
	white-space: nowrap;
	transition: 0.3s;
}

.website:hover {
	color: #7e15ff;
}

.website:active {
	font-size: 95%;
}

/* @media (max-width: 768px) {
    .category-bar, .video-container {
        padding-left: 10px;
        padding-right: 10px;
        margin-left: 0;
        margin-right: 0;
    }
    .submit-button {
        right: 10px;
    }
    .video-card {
        flex: 0 1 calc(100% - 20px); 
    }
} */ /*通过媒体查询调整合适宽度间距*/

.category-bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start; /*优化按钮定位，修改内容：sticky->flex,增加二三行*/
	top: 0;
	padding: 10px;
	padding-left: 150px;
	padding-right: 150px;
	box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.3);
	white-space: nowrap; /* 防止换行 */
	overflow-x: auto; /* 如果内容超出，允许横向滚动 */
}

.category-title {
	font-weight: bold;
	font-size: 2em;
	margin-right: 20px;
	color: azure;
}

.category-item {
	margin-right: 15px;
	cursor: pointer;
}

.category-item:hover {
	color: rgb(0, 218, 218);
}

.category-item:active {
	font-size: 85%;
}

/* 按钮样式 */
.submit-button {
	display: inline-block;
	padding: 10px 20px;
	background-color: green;
	color: whitesmoke;
	border-radius: 50px;
	text-decoration: none;
	margin-left: 0;
	transition: background-color 0.3s;
}

.submit-button:hover {
	background-color: darkgreen;
}

.filter-container {
	position: relative;
	display: flex;
	align-items: center;
	margin-left: auto;
}

.filter-container label {
	margin-right: 10px;
	cursor: pointer;
}

/* 隐藏默认的单选框 */
.custom-radio input[type="radio"] {
	display: none;
}

/* 设置自定义圆角矩形 */
.custom-radio {
	display: inline-block;
	position: relative;
	padding: 8px 18px; /*调节单选框尺寸*/
	margin-right: 15px;
	border: 2px solid #007bff; /* 默认边框颜色 */
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.3s ease;
}

/* 默认情况下的文字样式 */
.custom-radio span {
	font-size: 14px;
	color: #007bff;
	transition: color 0.3s ease;
}

/* 选中时改变矩形的填充颜色和文字颜色 */
.custom-radio input[type="radio"]:checked + span {
	color: aqua; /* 选中时文字变色 */
}

/* 选中时的背景色变化 */
.custom-radio input[type="radio"]:checked + span::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #007bff; /* 选中时的填充颜色 */
	border-radius: 20px;
	z-index: -1; /* 确保背景在文字后面 */
}

/* 鼠标悬停时改变边框颜色 */
.custom-radio:hover {
	border-color: #0056b3; /* 悬停时边框颜色变深 */
}

/* 鼠标悬停时改变文字颜色 */
.custom-radio:hover span {
	color: #0056b3;
}

main {
	padding-bottom: 120px;
	/*background-color: #f9f7f7;此处应与video container的背景色相同*/
}

.video-container {
	display: flex;
	flex-wrap: wrap;
	padding: 20px 0;
	padding-left: 140px;
	padding-right: 140px;
	min-height: 527px; /*防止内容过少时container过小导致body的色彩重复*/
}

.video-card {
	background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%);
	border-radius: 8px;
	margin: 10px;
	padding: 10px;
	flex: 0 1 calc(25% - 20px);
	box-sizing: border-box;
	max-width: 290px;
	min-width: 280px;
	max-height: 242px; /*防止视频卡片过高*/
	transition: 0.3s;
	box-shadow: 0 10px 40px -10px rgba(0, 64, 128, 0.2);
	cursor: pointer;
}

@media (max-width: 1200px) {
	.video-card {
		flex: 0 1 calc(33.33% - 20px); /* 中等屏幕显示三列 */
	}
}

@media (max-width: 768px) {
	.video-card {
		flex: 0 1 calc(50% - 20px); /* 小屏幕显示两列 */
	}
}

@media (max-width: 480px) {
	.video-card {
		flex: 0 1 calc(100% - 20px); /* 超小屏幕单列显示 */
	}
}

.video-card:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

.video-card img {
	/*width: 100%;*/
	/*height: auto;*/
	/* max-height: 160px;
	max-width: 256px; */
	width: 256px;
	height: 160px;
	/*object-fit: cover;*/
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /*阴影框线*/
	border-radius: 0px;
}

.video-title {
	font-weight: bold;
	margin: 10px 0 5px;
}

.video-info {
	margin-bottom: 0;
	color: gray;
	font-size: 0.9em;
}

footer {
	padding: 20px;
	text-align: center;
}

.footer-content {
	color: black;
}

.footer-nav a {
	color: black;
	text-decoration: none;
}

.footer-nav a:hover {
	text-decoration: underline;
}
