/* CSS Document */

/* 全局样式 */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    width: 250px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.logo {
    display: block;
    margin: 40px auto 20px auto;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

nav {
    margin-top: 40px;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    margin: 20px 0;
    padding-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

nav ul li a.active {
    color: #000;
    font-weight: bold;
}

/* 主内容区样式 */
.main-content {
    margin-left: 250px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* 幻灯片容器样式 */
.slideshow-container {
    position: center;
    width: 100%;
    max-width: 95%;
    margin: auto;
    overflow: hidden; /* 防止图片溢出 */
}

/* 幻灯片样式 */
.mySlides {
    display: none;
}

/* 幻灯片图片样式 */
.slide-img {
    width: 100%;
    height: auto; /* 保持图片宽度自适应，高度自动 */
    max-height: 100vh; /* 限制图片最大高度为80%的视口高度 */
    object-fit: contain; /* 保持图片比例 */
}

/* 幻灯片导航按钮样式 */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none; /* 防止文本被选中 */
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8); /* 按钮悬停时的背景颜色 */
}

.footer {
            text-align: center;
            padding: 10px; 
            background-color: #f1f1f1; 
            position: relative;
            font-size: 10px;
            color: gray; 
        }

/* 幻灯片动画效果 */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* 返回按钮样式 */
.back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.back-button:hover {
    background: #0056b3;
}
