/* 全局样式，设置页面主题为浅灰色 */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    padding-top: 60px; /* 为固定导航栏留出空间 */
    color: #333;
}

/* 幻灯片容器 - 左右布局 */
.slideshow-container {
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    height: 500px;
    gap: 15px;
}

/* 左侧主幻灯片区域 */
.main-slide {
    flex: 3;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 右侧缩略图区域 */
.thumbnail-container {
    flex: 1;
    background: #f8f9fa;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 隐藏图片默认 */
.mySlides {
    display: none;
    position: relative;
    height: 100%;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 上一张、下一张按钮 */
.prev, .next {
    display: none; /* 隐藏左右切换按钮 */
}

/* 文本样式 */
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

/* 数字文本 */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* 缩略图样式 */
.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 280px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.thumbnail {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.thumbnail.active {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
}

.thumbnail-image {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.thumbnail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* 缩略图进度条样式 */
.thumbnail-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 0 0 6px 6px;
    transition: width 6s linear;
    z-index: 10;
}

.thumbnail.active .thumbnail-progress {
    width: 100%;
}

.thumbnail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.thumbnail-title {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.thumbnail-description {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thumbnail-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.tag {
    padding: 2px 6px;
    font-size: 10px;
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    font-weight: 500;
}

/* 淡入动画 */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* 导航栏样式，添加玻璃效果 */
.navbar {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.7) 50%, 
        rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.navbar li {
    /* float: left; */
}

.navbar li a {
    display: block;
    color: #333;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar li a:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

/* 内容区域样式 */
.content-section {
    padding: 40px 0;
    background: white;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: 300;
}

.content-section p {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 600;
}

.feature p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding-top: 50px; /* 移动端减少顶部边距 */
    }
    
    .slideshow-container {
        margin: 10px;
        border-radius: 4px;
        flex-direction: column;
        height: auto;
        gap: 15px;
    }
    
    .main-slide {
        height: 300px;
    }
    
    /* 幻灯片内容响应式 */
    .slide-content {
        padding: 20px 15px 15px;
    }
    
    .slide-title {
        font-size: 1.8em;
        margin-bottom: 10px;
    }
    
    .slide-description {
        font-size: 0.9em;
        margin-bottom: 15px;
    }
    
    .slide-buttons {
        gap: 10px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .thumbnails {
        width: 100%;
        padding: 15px;
        gap: 10px;
    }
    
    .thumbnail {
        padding: 10px;
        gap: 10px;
    }
    
    .thumbnail-image {
        width: 80px;
        height: 50px;
    }
    
    .thumbnail-progress {
        height: 2px;
    }
    
    .thumbnail-title {
        font-size: 13px;
    }
    
    .thumbnail-description {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }
    
    .tag {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .navbar ul {
        flex-direction: column;
    }
    
    .navbar li a {
        padding: 10px 16px;
    }
    
    .content-section {
        margin: 10px;
        padding: 20px 0;
    }
    
    .content-section h2 {
        font-size: 2em;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature {
        padding: 20px 15px;
    }
}

/* 幻灯片内容样式 */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 40px 30px 30px;
    border-radius: 0 0 8px 8px;
    transform: translateY(100%);
    transition: transform 0.8s ease;
}

.mySlides.active .slide-content {
    transform: translateY(0);
}

.slide-title {
    margin: 0 0 15px 0;
    font-size: 2.5em;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.2s;
}

.mySlides.active .slide-title {
    opacity: 1;
    transform: translateY(0);
}

.slide-description {
    margin: 0 0 25px 0;
    font-size: 1.1em;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.4s;
}

.mySlides.active .slide-description {
    opacity: 1;
    transform: translateY(0);
}

.slide-buttons {
    display: flex;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.6s;
}

.mySlides.active .slide-buttons {
    opacity: 1;
    transform: translateY(0);
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}