*{
	margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, sans-serif;
    min-height: 100vh;
	background-color: rgb(66, 29, 37);
}

a{
	text-decoration: none;
	color: white;
}

a:visited{
	text-decoration: none;
	color: white;
}

.container{
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* 电脑端侧边栏 */
.sidebar{
    width: 250px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    position: fixed;
    left: -250px;
    height: 100vh;
    transition: 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
}

.sidebar.active{
    left: 0;
}

/* 侧边栏底部内容 */
.sidebar-footer{
    color: white;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-icons{
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

/* 导航菜单 */
.nav-list{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-item a{
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 18px;
    padding: 10px;
    display: block;
    transition: 0.3s;
    border-radius: 6px;
    backdrop-filter: blur(5px);
}

.nav-item a:hover{
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 主内容区域 */
.main-content{
    flex: 1;
    position: relative;
}

/* 模糊背景 */
.background-container{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.blur-background{
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
}

/* 文字内容 */
.content{
    position: relative;
    z-index: 1;
    padding: 40px;
    color: white;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 移动端底部导航栏 */
.mobile-nav{
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-nav-list{
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.mobile-nav-item a{
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.3s;
}

.mobile-nav-item a:hover{
    background: rgba(255, 255, 255, 0.1);
}

/* 触发按钮 */
.toggle-btn{
    position: fixed;
    left: 20px;
    top: 20px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 500;
    display: none;
    backdrop-filter: blur(5px);
    padding: 10px;
    border-radius: 20%;
    background: rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px){
.mobile-nav{
    display: block;
}

.sidebar{
    display: none;
}

.content{
    padding-bottom: 80px;
}
}

@media (min-width: 769px){
.toggle-btn{
    display: block;
}

.content{
    padding-left: 80px;
	adding-bottom: 120px !important;
}
}

/* 图片容器 */
.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
	padding-bottom: 80px;
    margin-top: 20px; /* 防止图片离顶点太近 */
}

/* 图片项 */
.image-item {
    position: relative;
    width: calc(33.33% - 20px); /* 每张图片占33.33%的宽度，减去间距 */
    min-width: 300px; /* 设置一个最小宽度，防止图片过小 */
    height: 300px;
    margin: 10px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.1); /* 添加卡片轮廓 */
    backdrop-filter: blur(5px);
}

/* 在小屏幕上调整图片宽度 */
@media (max-width: 768px) {
    .image-item {
        width: calc(50% - 20px); /* 在小屏幕上，每张图片占50%的宽度，减去间距 */
    }
	.image-info {
	        opacity: 1 !important; /* 强制显示信息 */
	        background: rgba(0, 0, 0, 0.7); /* 增强背景可读性 */
	    }
}

/* 图片 */
.image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.3s;
}

/* 图片信息 */
.image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

/* 鼠标悬停效果 */
.image-item:hover .image-info {
    opacity: 1;
}

/* 作者和日期 */
.author, .date {
    margin: 5px 0;
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0.8)}
    to {transform: scale(1)}
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #ff6347; /* 修改为喜欢的颜色，例如橙色 */
    font-size: 36px; /* 增大字体大小 */
    font-weight: bold;
    transition: 0.3s;
    z-index: 2001;
    background: none;
    border: none;
}

.close-btn:hover {
    color: #ff8c69; /* 鼠标悬停时颜色渐变 */
}