/* 基礎樣式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow: hidden;
    height: 100vh;
}

/* 投影片控制器 */
.presentation-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 25px;
    border-radius: 50px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.control-btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.control-btn:hover {
    background: #fff;
    color: #333;
    transform: scale(1.1);
}

.slide-counter {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    min-width: 80px;
    text-align: center;
}

/* 投影片容器 */
.presentation-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.slide-content {
    max-width: 1200px;
    width: 90%;
    padding: 40px;
    text-align: center;
}

/* 標題投影片 */
.title-slide {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
}

.title-slide h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-slide h2 {
    font-size: 2rem;
    color: #7f8c8d;
    margin-bottom: 40px;
    font-weight: 400;
}

.title-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.title-meta p {
    color: #34495e;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-meta i {
    color: #667eea;
}

/* 一般投影片樣式 */
.slide:not(.title-slide) .slide-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
}

.slide h2 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 600;
}

/* 課程大綱樣式 */
.agenda {
    display: grid;
    gap: 30px;
    text-align: left;
}

.agenda-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.agenda-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.agenda-number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agenda-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.agenda-content p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* 重要性網格 */
.importance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.importance-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.importance-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.importance-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.importance-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.importance-card p {
    color: #7f8c8d;
    font-size: 1rem;
    line-height: 1.6;
}

/* 統計數據樣式 */
.stats-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.stat-large {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-large .stat-number {
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 15px;
}

.stat-large p {
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 500;
}

.attack-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    width: 100%;
}

.example-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.example-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.example-item i {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

.example-item h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.example-item p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* OWASP 樣式 */
.owasp-intro {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.owasp-logo {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.owasp-logo i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 20px;
}

.owasp-logo h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.owasp-logo p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.top10-preview {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.top10-preview h4 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.top10-preview p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* Top 10 列表樣式 */
.top10-list {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.top10-item {
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.top10-item:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vulnerability h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 600;
}

.vulnerability p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .title-slide h1 {
        font-size: 2.5rem;
    }
    
    .title-slide h2 {
        font-size: 1.5rem;
    }
    
    .slide h2 {
        font-size: 2rem;
    }
    
    .title-meta {
        flex-direction: column;
        gap: 20px;
    }
    
    .agenda-item {
        flex-direction: column;
        text-align: center;
    }
    
    .importance-grid {
        grid-template-columns: 1fr;
    }
    
    .presentation-controls {
        bottom: 20px;
        padding: 10px 20px;
    }
    
    .control-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .stats-container {
        gap: 30px;
    }
    
    .attack-examples {
        grid-template-columns: 1fr;
    }
    
    .top10-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .setup-steps {
        gap: 20px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
}

/* 環境介紹樣式 */
.environment-intro {
    text-align: center;
}

.environment-intro h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 600;
}

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

.reason-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.reason-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.reason-item i {
    font-size: 2.5rem;
    color: #27ae60;
    margin-bottom: 20px;
}

.reason-item p {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 工具介紹樣式 */
.tool-intro {
    max-width: 900px;
    margin: 0 auto;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.tool-header i {
    font-size: 4rem;
    color: #3498db;
    flex-shrink: 0;
}

.tool-info h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.tool-info p {
    color: #7f8c8d;
    font-size: 1.2rem;
    line-height: 1.5;
}

.tool-features {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.feature {
    text-align: center;
    padding: 20px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-3px);
}

.feature h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature p {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 架設步驟樣式 */
.setup-steps {
    display: grid;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #3498db, #2980b9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.step-content p {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.step-content code {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    display: inline-block;
}

/* 工具概述樣式 */
.tools-overview {
    text-align: center;
}

.tools-overview h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 600;
}

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

.benefit-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.benefit-item i {
    font-size: 2.5rem;
    color: #f39c12;
    margin-bottom: 20px;
}

.benefit-item h4 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.benefit-item p {
    color: #7f8c8d;
    font-size: 1rem;
    line-height: 1.6;
}

/* 安裝指南樣式 */
.installation-guide {
    display: grid;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.install-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.install-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.install-section h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.install-section h3 i {
    color: #3498db;
}

.install-steps p {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 預告內容樣式 */
.preview-content {
    max-width: 800px;
    margin: 0 auto;
}

.preview-header {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.preview-header i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

.preview-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 600;
}

.preview-items {
    display: grid;
    gap: 20px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.preview-item:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.preview-item i {
    font-size: 2rem;
    color: #e74c3c;
    flex-shrink: 0;
}

.preview-item h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 600;
}

.preview-item p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* 總結樣式 */
.summary-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.summary-section, .next-steps {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.summary-section h3, .next-steps h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.summary-list {
    list-style: none;
    padding: 0;
}

.summary-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.5;
}

.summary-list i {
    color: #27ae60;
    font-size: 1.2rem;
}

/* Q&A 樣式 */
.qa-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.qa-icon {
    margin-bottom: 30px;
}

.qa-icon i {
    font-size: 5rem;
    color: #3498db;
}

.qa-content h3 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.qa-content p {
    font-size: 1.3rem;
    color: #7f8c8d;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.contact-item i {
    color: #3498db;
    font-size: 1.3rem;
}