/* *{
	margin: 0;padding: 0;
}
body{
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background: black;
}
.container{
	display: flex;
	width: 200vw;
	max-width: 900px;
	height: 400px;
	overflow: hidden;
}
.item{
	position: relative;
	width: 50px;
	margin: 10px;
	cursor: pointer;
	border-radius: 25px;
	background-size: cover;
	background-position: center;
	transition: 0.5s cubic-bezier(0.05,0.61,0.41,0.95);
	overflow: hidden;
}
.item .shadow{
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100px;
	transition: 0.5s cubic-bezier(0.05,0.61,0.41,0.95);
}
.item .content{
	display: flex;
	position: absolute;
	left: 10px;
	right: 0;
	bottom: 10px;
	height: 40px;
	transition: 0.5s cubic-bezier(0.05,0.61,0.41,0.95);
}
.item .content .icon{
	min-width: 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 16px;
}
.item:nth-child(1) .zuoye11{
	color: #fc6e51;
}
.item:nth-child(2) .zuoye12{
	color: #ffce54;
}
.item:nth-child(3) .zuoye13{
	color: #2ecc71;
}
.item:nth-child(4) .zuoye14{
	color: #5d9cec;
}
.item:nth-child(5) .zuoye15{
	color: #ac92ec;
}
.item .content .text{
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-left: 10px;
	color: #fff;
	width: 100%;	
}
.item .content .text div{
	width: calc(100%-70px);
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.5s ease-out;
}
.item .content .text title{
	font-weight: bold;
	font-size: 18px;
}
.item .content .text sub{
	transition-delay: 0.1s;
}
.item.active{
	flex: 1;
	margin: 0;
	border-radius: 40px;	
}
.item.active .shadow{
	background: linear-gradient(to top, rgba(0,0,0,0.35) 65%,transparent);
}
.item.active .content{
	bottom: 20px;
	left: 20px;
}
.item.active .content .text div{
	opacity: 1;

} */

/* 原有的轮播图样式 */
/* 原有的轮播图样式 */
/* 原有的轮播图样式 */
* {
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover; /* 让背景图覆盖整个页面 */
    background-position: center;
    transition: background-image 0.5s ease; /* 添加背景图切换的过渡效果 */
    position: relative; /* 为了让子元素可以正常显示 */
}

/* 添加模糊背景层 */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit; /* 继承背景 */
    filter: blur(5px); /* 添加模糊效果 */
    z-index: -1; /* 置于底层 */
}

/* 让轮播图容器不受模糊效果影响 */
.container {
    display: flex;
    width: 80vw; /* 增大轮播图容器的宽度 */
    max-width: 1200px; /* 增大最大宽度 */
    height: 600px; /* 增大轮播图容器的高度 */
    height: calc(100vh - 100px);
    margin-top: 40px;
    overflow: hidden;
    position: relative; /* 确保层级正常 */
    z-index: 1; /* 确保在模糊层之上 */
}

.item {
    position: relative;
    width: 100px; /* 增大单个轮播项的初始宽度 */
    margin: 10px;
    cursor: pointer;
    border-radius: 25px;
    background-size: cover;
    background-position: center;
    transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
    overflow: hidden;
}

.item .shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}

.item .content {
    display: flex;
    position: absolute;
    left: 10px;
    right: 0;
    bottom: 10px;
    height: 60px;
    transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}

.item .content .icon {
    min-width: 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    /* 去掉背景颜色 */
    background-color: transparent; 
}

.item .content .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.item:nth-child(1) .zuoye11 {
    color: #fc6e51;
}

.item:nth-child(2) .zuoye12 {
    color: #ffce54;
}

.item:nth-child(3) .zuoye13 {
    color: #2ecc71;
}

.item:nth-child(4) .zuoye14 {
    color: #5d9cec;
}

.item:nth-child(5) .zuoye15 {
    color: #ac92ec;
}

.item .content .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 10px;
    color: #fff;
    width: 100%;
}

.item .content .text div {
    width: calc(100% - 70px); /* 修正宽度计算 */
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* 修改标题样式，增大字体大小 */
.item .content .text .title {
    font-family: "KaiTi", serif;
    color: rgba(240, 208, 176, 0.8); /* 有点透明的古风深棕色 */
    font-weight: bold;
    font-size: 24px; /* 增大字体大小 */
}

/* 修改注释样式，增大字体大小 */
.item .content .text .sub {
    font-family: "KaiTi", serif;
    color: rgba(240, 208, 176, 0.8); /* 有点透明的古风深棕色 */
    font-size: 20px; /* 增大字体大小 */
    transition-delay: 0.1s;
}

.item.active {
    flex: 1;
    margin: 0;
    border-radius: 40px;
}

.item.active .shadow {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 65%, transparent);
}

.item.active .content {
    bottom: 20px;
    left: 20px;
}

.item.active .content .text div {
    opacity: 1;
}

/* 新增导航栏样式 */
.header {
    width: 100%;
    height: 60px;
    background: transparent; /* 将背景设置为透明 */
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: none; /* 移除底部边框 */
    position: fixed; /* 固定在顶部 */
    top: 0;
    left: 0;
    z-index: 1000; /* 确保在最上层 */
}

.nav-center {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-logo {
    width: 50px;
    height: 50px;
    background: #b59f84;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Ma Shan Zheng', cursive;
    color: #f5efe6;
    font-size: 1.6rem;
    font-size: 1.2rem;
}

.nav-menu {
    position: absolute;
    top: 50%;
    opacity: 1;
    visibility: hidden;
    visibility: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: 20px;
    transform: translate(0, -50%) !important;
}

.nav-menu-left {
    right: 100%;
    transform: translate(-30px, -50%);
}

.nav-menu-right {
    left: 100%;
    transform: translate(30px, -50%);
}

.nav-logo:hover .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

.nav-menu a {
    font-size: 1.2rem;
    color: #100601;
    text-decoration: none;
    padding: 6px 20px;
    border: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
    background: transparent; /* 去掉背景色 */
}

/* 移除菜单项下方横线的样式 */
.nav-menu a::after {
    display: none;
}

/* 取消菜单项背景变深和上移效果 */
.nav-menu a:hover {
    background: none;
    transform: none;
    box-shadow: none;
}

/* 新增古风样式，调整星芒元素距离 */
.nav-menu a:hover::before {
    content: "✦";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #b59f84;
    font-size: 1.2rem;
}

.nav-menu a:hover::after {
    content: "✦";
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #b59f84;
    font-size: 1.2rem;
    display: block;
}