

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 10px;
	padding-right: 10px;
}

/* 头部样式 */
header {
	background-color: var(--surface-color);
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 100;
	opacity: 0.9;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
}

.logo {
	font-size: 1.5rem;
	font-weight: bold;
	color: var(--primary-color);
}

nav ul {
	display: flex;
	list-style: none;
}

nav ul li {
	margin-left: 1.5rem;
}

nav ul li a {
	text-decoration: none;
	color: var(--text-color);
	font-weight: 500;
	padding: 0.5rem 0;
	position: relative;
}

nav ul li a:hover {
	color: var(--primary-color);
}


nav ul li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-color);
	transition: width 0.3s;
}

nav ul li a:hover::after {
	width: 100%;
}

nav ul li a.active {
	color: var(--primary-color) !important;
	font-weight: bold;
	position: relative;
}


nav ul li a.active::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--primary-color);
	border-radius: 2px;
}

.theme-switch {
	display: flex;
	align-items: center;
	cursor: pointer;
	padding: 0.5rem;
}



/* 主要内容区域 */
main {
	padding: 2rem 0;
	padding-bottom: 88px;
	opacity: 0.9;
}

.section {
	background-color: var(--surface-color);
	border-radius: var(--card-radius);
	padding: 2rem;
	margin-bottom: 2rem;
	box-shadow: var(--shadow);
	min-height: 70vh;
}



.section h2 {
	color: var(--primary-color);
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--border-color);
	display: flex;
	justify-content: space-between;
}

.section h2 .text {}

.section h2 .btn {
	background: var(--primary-color);
	color: #fff;
	padding: 0px 0.5rem;
	border-radius: 5px;
	font-size: 16px;
	opacity: 0.8;
	line-height: 38px;
	height: 38px;
	transform: scale(0.9);
	box-shadow: var(--shadow);
}

.section h2 .btn:hover {
	opacity: 0.7;
	cursor: pointer;
	transform: scale(0.96);
}

/* 通知区域 */
.notification {
	background-color: var(--primary-color);
	color: white;
	padding: 1rem;
	border-radius: var(--card-radius);
	margin-bottom: 1rem;
}

.notification h3 {
	margin-bottom: 0.5rem;
}

/* 文章网格 */
.articles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
}

.article-card {
	background-color: var(--background-color);
	border-radius: var(--card-radius);
	padding: 1.5rem;
	transition: transform 0.3s;
}

.article-card:hover {
	transform: translateY(-5px);
}

.article-card h3 {
	margin-bottom: 0.5rem;
	color: var(--primary-color);
}

.article-meta {
	font-size: 0.9rem;
	color: var(--secondary-color);
	margin-bottom: 1rem;
}

/* 工具网格 */
.tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.5rem;
}

.tool-card {
	background-color: var(--background-color);
	border-radius: var(--card-radius);
	padding: 1.5rem;
	text-align: center;
	transition: transform 0.3s;
}

.tool-card:hover {
	transform: scale(1.05);
}

.tool-icon {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	color: var(--primary-color);
}

/* 媒体网格 */
.media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.5rem;
}

.media-item {
	background-color: var(--background-color);
	border-radius: var(--card-radius);
	overflow: hidden;
	transition: transform 0.3s;
	max-height: 320px;
	overflow: hidden;
}


.media-item:hover {
	transform: scale(1.03);
}
.media-grid .active{
	background-color: var(--primary-color);
	color: #FFF;
}
.media-thumbnail {
	width: 100%;
	min-width: 220px;
	height: 150px;
	min-height: 150px;
	object-fit: cover;
}

.media-info {
	padding: 1rem;
}

.media-info h3 {
	font-size: 1rem;
	margin-bottom: 0.5rem;
}

.videos .media-item{
	max-height: 480px;
}
.videos .media-thumbnail{
	min-width: 150px;
	height: 320px;
	min-height: 320px;
}
.videos .media-grid {
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.videos .media-info {
	padding: 3px;
}

.videos .media-info h3 {
	font-size: 1rem;
	text-align: center;
	margin-bottom: 0.1rem;
}
.videos .media-info p {
	font-size: 14px !important;
	text-align: left;
}

footer {
	position: fixed;
	height: 88px;
	bottom: 0px;
	width: 100vw;
	left: 0px;
	background-color: var(--surface-color);
	box-shadow: var(--f-shadow);
	opacity: 0.9;
}

.music-player {
	position: relative;
	margin: 3px auto;
	width: 90%;
	max-width: 1200px;
}

.player-info {
	text-align: center;
	overflow: hidden;
}

.timer-bg {
	position: relative;
	width: 100%;
	margin: 3px auto;
	height: 5px;
	background-color: var(--secondary-color);
}

#ms-timer-fg {
	position: absolute;
	left: 0px;
	bottom: 0px;
	height: 5px;
	width: 1%;
	background-color: var(--primary-color);
}

.player-controls {
	display: flex;
	justify-content: space-between;
}

.player-controls div {
	border-radius: 50%;
	text-align: center;
	font-size: 20px;
	font-weight: bolder;
	margin: 2px 10px;
	cursor: pointer;
}

.player-controls span {
	font-size: 14px;
}

#audioCanvas {
	width: 100vw;
	height: 100vh;
	position: fixed;
	z-index: -1;
	left: 0px;
	bottom: 0px;
	opacity: 0.8;
	/* background-color: var(--secondary-color); */
}

.player-controls a {
	color: inherit;
	text-decoration: none;
	outline: none;
}

.pop-box {
	z-index: 101;
	position: fixed;
	top: 15vh;
	width: 90%;
	max-width: 1024px;
	left: 50%;
	transform: translateX(-50%);
	height: 70vh;
	overflow: hidden;
	background-color: var(--surface-color);
	box-shadow: 0px 0px 5px var(--primary-color);
	border-radius: 8px;
	opacity: 0.9;
	display: none;
}

.pop-title {
	height: 42px;
	width: 100%;
	position: relative;
	line-height: 42px;
	box-shadow: var(--shadow);
	background-color: var(--primary-color);
	color: #FFF;
}

.pop-title .text {
	width: calc(100% - 42px);
	padding: 0px 10px;
	box-sizing: border-box;
	text-align: center;
	font-weight: bolder;

}

.pop-close {
	width: 32px;
	height: 42px;
	font-weight: bolder;
	font-size: 20px;
	position: absolute;
	right: -5px;
	top: 0px;
	cursor: pointer;
}

.pop-content {
	width: 100%;
	height: calc(100% - 90px);
	overflow: hidden;
	/* overflow-y: auto; */
	position: relative;
}

.pop-footer {
	width: 100%;
	height: 48px;
	position: absolute;
	bottom: -5px;
}
/* 歌词容器 */
#musci-lrc{
	width: 100%;
	top:0px;
	left: 0px;
	position: fixed;
	z-index: 0;
	font-size: 30px;
	font-weight: bold;
	opacity: 0.9;
}
#musci-lrc .left{
	position: absolute;
	left: 10px;
	width: 1.9rem;
	top:12vh;
	height: calc(75vh);
	overflow: hidden;
}
#musci-lrc .right{
	position: absolute;
	right: 10px;
	width: 1.9rem;
	top:12vh;
	height: calc(75vh);
	overflow: hidden;
}
/* 音乐搜索弹窗 */

.so-box {
	display: flex;
	height: 42px;
	width: 100%;
	justify-content: center;
	position: absolute;
	left: 0px;
	top: 0px;
	background-color: var(--background-color);
	z-index: 9;
}

.so-box * {
	margin-top: 5px;
	height: 32px;
	border-radius: 0px;
	border: 0px;
	background: var(--primary-color);
	color: #fff;
	box-sizing: border-box;
	padding: 2px 3px;
	
}

.so-box select {
	border-top-left-radius: 3px;
	border-bottom-left-radius: 3px;
}

.so-box *:focus {
	outline: none;
	color: #fff;
}

.so-box input::placeholder {
	color: #cacaca;
	opacity: 1;
}

.so-box .btn {
	width: 4rem;
	line-height: 28px;
	height: 32px;
	text-align: center;
	background: var(--primary-color);
	color: #fff;
	cursor: pointer;
	border-top-right-radius: 3px;
	border-bottom-right-radius: 3px;
}
.so-list{
	padding-top: 50px;
	width: 96;
	height: 100%;
	margin: 0px auto;
	overflow: hidden;
	overflow-y: auto;
}
.so-list .media-grid{
	width: 96%;
	margin: 0px auto;
}

.media-item .btn-group{
	display: flex;
	flex-wrap: nowrap;
	position: absolute;
	justify-content: space-between;
	left: 0px;
	top:0px;
	width: 100%;
}
.btn-group .btn{
	width: 50%;
	font-size: 14px;
	height: 32px;
	line-height: 32px;
	cursor: pointer;
	text-align: center;
	opacity: 0.6;
	background-color: var(--background-color);
	color: var(--text-color);
}
.btn-group .btn:hover{
	opacity: 0.9;
	transform: scale(1.1);
}
/* 页脚分页 */
.pager{
	background-color: var(--background-color);
	padding-top: 3px;
	list-style: none;
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	height: 42px;
	line-height: 42px;
}
.pager li{
	width: 3rem;
	height: 32px;
	line-height: 32px;
	text-align: center;
	cursor: pointer;
	border-radius: 4px;
}
.pager .active{
	background-color: var(--primary-color);
	color: #FFF;
}




/* 响应式设计 */
@media (max-width: 768px) {
	.header-content {
		flex-direction: column;
		text-align: center;
	}

	nav ul {
		margin-top: 1rem;
		justify-content: center;
	}

	nav ul li {
		margin: 0 0.75rem;
	}

	.articles-grid,
	.tools-grid,
	.media-grid {
		grid-template-columns: 1fr;
	}
	.media-item{
		position: relative;
	} 



	.theme-switch {
		height: 42px;
		position: fixed;
		top: 15px;
		right: 5px;
		background: rgba(0, 0, 0, 0);
	}
}