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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow: hidden;
}

.presentation-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.progress-fill {
    height: 100%;
    width: 0;
    background-color: #4786ff;
    transition: width 0.3s ease;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 40px;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

.title-slide {
    text-align: center;
    max-width: 800px;
}

.title-slide h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.5rem;
    color: #7f8c8d;
    margin-top: 3rem;
    padding: 1rem 2rem;
    border: 2px solid #4786ff;
    border-radius: 50px;
    display: inline-block;
    background-color: rgba(71, 134, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.subtitle:hover {
    background-color: rgba(71, 134, 255, 0.2);
    transform: scale(1.05);
}

.content-slide {
    max-width: 1100px;
    width: 100%;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-height: 98vh;
    overflow-y: auto;
}

.content-slide h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 3px solid #4786ff;
    padding-bottom: 0.5rem;
}

.section-title {
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
    color: #34495e;
    font-weight: 600;
}

.subsection-title {
    font-size: 1.4rem;
    margin: 1.2rem 0 0.8rem;
    color: #4786ff;
    font-weight: 600;
}

.content-list {
    list-style-type: none;
    margin-bottom: 1.5rem;
}

.content-list li {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.content-list li:before {
    content: "•";
    color: #4786ff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.content-list li ul {
    margin-top: 0.5rem;
    margin-left: 2rem;
}

.content-list li ul li:before {
    content: "◦";
}

.content-section {
    margin-bottom: 2rem;
}

.time-block {
    background-color: rgba(71, 134, 255, 0.05);
    border-left: 4px solid #4786ff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.time-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #4786ff;
    margin-bottom: 1rem;
}

.faq-section {
    margin-top: 1.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.faq-question {
    font-weight: 600;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.faq-answer {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.footer {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #4786ff;
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid #eee;
}

/* 内容动画效果 */
.content-item[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.content-item[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

.subsection-title[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.subsection-title[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

.time-block[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.time-block[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

.faq-item[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.faq-item[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

.footer[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.footer[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 导航控制 */
.navigation {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-btn {
    background-color: #4786ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.nav-btn:hover {
    background-color: #3a6bd9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(71, 134, 255, 0.3);
}

.nav-btn:active {
    transform: translateY(0);
}

.nav-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#page-counter {
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    min-width: 80px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .slide {
        padding: 20px;
    }
    
    .title-slide h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .content-slide {
        padding: 25px;
    }
    
    .content-slide h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .subsection-title {
        font-size: 1.2rem;
    }
    
    .content-list li {
        font-size: 1.1rem;
    }
    
    .navigation {
        bottom: 20px;
        padding: 10px 20px;
    }
    
    .nav-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* 滚动条样式 */
.content-slide::-webkit-scrollbar {
    width: 8px;
}

.content-slide::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.content-slide::-webkit-scrollbar-thumb {
    background: #4786ff;
    border-radius: 10px;
}

.content-slide::-webkit-scrollbar-thumb:hover {
    background: #3a6bd9;
}

/* 左侧导航栏样式 */
.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.nav-title {
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #e9ecef;
    background-color: #fff;
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background-color: #e9ecef;
    color: #2c3e50;
}

.nav-item.active {
    background-color: #4786ff;
    color: white;
    font-weight: 500;
}

.nav-item.active:before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #3a6bd9;
}

/* 调整幻灯片容器位置，为左侧导航栏留出空间 */
.presentation-container {
    margin-left: 250px;
}

/* 调整幻灯片宽度，适应有导航栏的情况 */
.slide {
    max-width: calc(100vw - 250px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .slide {
        padding: 20px;
        max-width: 100vw;
    }
    
    .sidebar-nav {
        transform: translateX(-100%);
        width: 200px;
    }
    
    .sidebar-nav.open {
        transform: translateX(0);
    }
    
    .presentation-container {
        margin-left: 0;
    }
    
    .title-slide h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .content-slide {
        padding: 25px;
    }
    
    .content-slide h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .subsection-title {
        font-size: 1.2rem;
    }
    
    .content-list li {
        font-size: 1.1rem;
    }
    
    .navigation {
        bottom: 20px;
        padding: 10px 20px;
    }
    
    .nav-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .content-slide {
        background-color: #2c2c2c;
        color: #e0e0e0;
    }
    
    .title-slide h1,
    .content-slide h2 {
        color: #e0e0e0;
    }
    
    .section-title {
        color: #d0d0d0;
    }
    
    .navigation {
        background-color: rgba(44, 44, 44, 0.9);
    }
    
    #page-counter {
        color: #e0e0e0;
    }
    
    .faq-question {
        color: #e0e0e0;
    }
    
    .faq-answer {
        color: #b0b0b0;
    }
    
    .time-block {
        background-color: rgba(71, 134, 255, 0.1);
    }
    
    /* 导航栏暗色模式 */
    .sidebar-nav {
        background-color: #2c2c2c;
        border-right: 1px solid #444;
    }
    
    .nav-title {
        color: #e0e0e0;
        background-color: #333;
        border-bottom: 1px solid #444;
    }
    
    .nav-item {
        color: #b0b0b0;
        border-bottom: 1px solid #444;
    }
    
    .nav-item:hover {
        background-color: #444;
        color: #e0e0e0;
    }
    
    .nav-item.active {
        background-color: #4786ff;
        color: white;
    }
}