/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --primary-color: #0071e3;
    --secondary-color: #34c759;
    --text-color: #333;
    --light-text: #666;
    --extra-light-text: #999;
    --background-color: #f5f5f7;
    --slide-bg: #fff;
    --control-bg: rgba(255, 255, 255, 0.8);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition-time: 0.3s;
    --side-padding: 10%;  /* 统一侧边距变量 */
    --heading-gradient: linear-gradient(45deg, #0071e3, #00c7ff);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow: hidden;
}

.presentation-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 幻灯片主视图 */
.main-view {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--slide-bg);
    overflow: hidden;
    transition: transform var(--transition-time) ease;
}

/* 所有幻灯片的通用样式 */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 60px var(--side-padding);
    opacity: 0;
    transform: translateX(100%);
    transition: opacity var(--transition-time), transform var(--transition-time);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-image: linear-gradient(to bottom right, rgba(0, 113, 227, 0.05), rgba(0, 199, 255, 0.02));
    background-size: cover;
    border-left: 6px solid transparent;
    border-image: var(--heading-gradient);
    border-image-slice: 1;
}

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

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

/* 所有幻灯片的通用标题样式 */
.slide h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--heading-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 113, 227, 0.1);
}

/* 所有幻灯片的内容区域通用样式 */
.slide .content {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    flex: 1;
}

/* 标题幻灯片 */
.slide-title {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 150px; 
}

.slide-title h1 {
    font-size: 4.5rem;
    border-bottom: none;
    margin-bottom: 2rem;
    padding: 0.5rem 2rem;
    position: relative;
    display: inline-block;
}

.slide-title h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--heading-gradient);
    border-radius: 2px;
}

.slide-title .content {
    font-size: 2rem;
    margin-bottom: 3rem;
    max-width: 80%;
    line-height: 1.4;
    position: relative;
    padding: 1rem;
    color: var(--light-text);
}

.slide-title .content::before,
.slide-title .content::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--heading-gradient);
    opacity: 0.5;
}

.slide-title .content::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.slide-title .content::after {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.slide-title .author {
    font-size: 1.3rem;
    color: var(--extra-light-text);
    margin-top: 5rem;
    padding: 1rem 2rem;
    border-radius: 30px;
    background: rgba(0, 113, 227, 0.05);
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s ease;
    display: none;
}

.slide-title .author:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.slide-toc ul {
    font-size: 1.3rem;
    list-style-type: none;
}

.slide-toc ul li {
    margin: 1rem 0;
    padding: 0.8rem 1.2rem;
    border-left: 3px solid var(--primary-color);
    background-color: rgba(0, 113, 227, 0.05);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.slide-toc ul li:hover {
    background-color: rgba(0, 113, 227, 0.1);
    transform: translateX(5px);
}

/* 详情幻灯片 */
.slide-detail {
    max-width: 100%;
    margin: 0 auto;
}

.slide-detail h2 {
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(0, 113, 227, 0.1);
    padding-bottom: 0.3rem;
}

.slide-detail h3 {
    font-size: 1.4rem;
    margin: 1rem 0 0.5rem;
    color: var(--light-text);
}

.slide-detail ul, .slide-detail ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    list-style-type: none;
}

.slide-detail li {
    margin: 0.7rem 0;
    position: relative;
}

.slide-detail li::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: -1rem;
    top: 0.6rem;
}

.slide-detail ol li::before {
    display: none;
}

.slide-detail .slogan {
    margin: 1.5rem 0 1rem; 
    font-size:25px; 
    font-weight:bold; 
    color:var(--primary-color);
}

.slide-detail table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.slide-detail th, .slide-detail td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.slide-detail th {
    background-color: rgba(0, 113, 227, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.slide-detail tr:hover {
    background-color: rgba(0, 113, 227, 0.05);
}

.slide-detail tr:last-child td {
    border-bottom: none;
}


.slide-video .video-container {
    width: 100%;
    max-width: 1200px;
    /* margin: 0 auto; */
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.slide-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 代码块样式 */
pre {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 1.2rem;
    overflow-x: auto;
    margin: 1.2rem 0;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
}

/* 导航控制 */
.controls {
    position: fixed;
    bottom: 30px;
    right: 20px;
    left: auto;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(5px);
    z-index: 100;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.controls:hover {
    opacity: 1;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: background-color 0.2s;
}

.nav-btn:hover {
    background-color: rgba(0, 113, 227, 0.1);
}

.nav-btn:active {
    transform: scale(0.95);
}

.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 4px rgba(0, 113, 227, 0.5);
}

/* 缩略图导航面板 - 隐藏 */
.thumbnails-panel {
    display: none; /* 隐藏缩略图预览 */
}

/* 统一的页面底部标记 */
.slide::after {
    content: "";
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-image: var(--heading-gradient);
    opacity: 0.1;
    border-radius: 50%;
    pointer-events: none;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .main-view {
        width: 90%;
    }
    
    .thumbnails-panel {
        width: 80%;
    }
}

@media (max-width: 900px) {
    .slide {
        padding: 30px;
    }
    
    .slide-title h1 {
        font-size: 3rem;
    }
}

/* 加载指示器 */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 113, 227, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--light-text);
    font-size: 1.1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 全屏按钮样式 */
.fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(5px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    z-index: 1000;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.fullscreen-btn:active {
    transform: scale(0.95);
}

.fullscreen-btn svg {
    width: 18px;
    height: 18px;
}

/* 全屏模式下的按钮样式 */
.fullscreen-btn.exit-fullscreen svg {
    transform: rotate(180deg);
} 