@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', 'Noto Sans SC', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
    background-color: #f5f7fa;
}

.slides-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.slide {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 2rem;
    overflow: hidden;
}

.slide-content {
    max-width: 900px;
    width: 90%;
    text-align: center;
    z-index: 2;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    color: #2c3e50;
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 0.6rem;
    font-weight: 600;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 3px;
}

p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

ul {
    text-align: left;
    font-size: 1.25rem;
    margin: 1.2rem 0 1.2rem 1rem;
    line-height: 1.8;
    list-style-type: none;
}

ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
}

ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.8rem;
    height: 0.8rem;
    background-color: #3498db;
    border-radius: 50%;
}

.slide-number {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 1rem;
    color: #95a5a6;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-buttons {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 100;
}

.nav-btn {
    padding: 0.7rem 1.2rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1c6ea4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.3s;
    z-index: 1000;
}

.icon-box {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.7;
    transform: scale(0.95);
}

.icon-item:hover {
    transform: scale(1.05);
    opacity: 1;
}

.icon-item i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 0.8rem;
}

.icon-item span {
    font-size: 1rem;
    font-weight: 500;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(173, 216, 230, 0.3);
    border-radius: 20px;
    margin: 0.3rem;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

.tag.zh, .tag.en {
    min-width: 120px;
    display: inline-block;
}

.highlight {
    color: #2980b9;
    font-weight: 500;
}

.quote-box {
    margin: 1.5rem 0;
    padding: 1.2rem;
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.quote-box::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    font-size: 3rem;
    color: rgba(52, 152, 219, 0.2);
    font-family: serif;
}

.timeline {
    position: relative;
    max-width: 90%;
    margin: 1.5rem auto;
    overflow: visible;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #3498db;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 30px;
    position: relative;
    width: 50%;
    background-color: inherit;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.slide.active .timeline-item {
    opacity: 1;
    transform: translateX(0);
}

.slide.active .timeline-item:nth-child(2) {
    transition-delay: 0.2s;
}

.slide.active .timeline-item:nth-child(3) {
    transition-delay: 0.4s;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid #3498db;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
    text-align: right;
}

.right {
    left: 50%;
    text-align: left;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 1rem;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-weight: 600;
}

.two-columns {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.column {
    flex: 1;
    position: relative;
}

.column:first-child::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 2rem;
    bottom: 2rem;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

/* 語言切換相關樣式 */
.en {
    display: none;
}

.zh {
    display: block;
}

span.zh, .tag.zh {
    display: inline-block;
}

/* 較小的說明文字 */
.small {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    font-style: italic;
}

.language-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

#toggleLang {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #3498db;
    color: #3498db;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

#toggleLang:hover {
    background-color: #3498db;
    color: white;
}

/* 背景和主題樣式 */
#slide-1 {
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.1), rgba(52, 152, 219, 0.2)), 
                url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxfDB8MXxyYW5kb218MHx8dGVjaHx8fHx8fDE2MTYyMzQ2MzQ&ixlib=rb-1.2.1&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=1080') center/cover;
}

#slide-2 {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.2)), 
                url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxfDB8MXxyYW5kb218MHx8Y29kZXx8fHx8fDE2MTYyMzQ3OTI&ixlib=rb-1.2.1&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=1080') center/cover;
}

#slide-3 {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(230, 126, 34, 0.2)), 
                url('https://images.unsplash.com/photo-1603969072881-b0fc7f3d77d7?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxfDB8MXxyYW5kb218MHx8c2VydmVyLGNsb3VkfHx8fHx8MTYxNjIzNDg1NA&ixlib=rb-1.2.1&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=1080') center/cover;
}

#slide-4 {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(142, 68, 173, 0.2)), 
                url('https://images.unsplash.com/photo-1558346490-a72e53ae2d4f?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxfDB8MXxyYW5kb218MHx8YWksdGVjaG5vbG9neXx8fHx8fDE2MTYyMzQ5MTQ&ixlib=rb-1.2.1&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=1080') center/cover;
}

#slide-5 {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.2)), 
                url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxfDB8MXxyYW5kb218MHx8dGVhbSxzdWNjZXNzfHx8fHx8MTYxNjIzNDk3Ng&ixlib=rb-1.2.1&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=1080') center/cover;
}

/* 新第四頁樣式 */
.growth-journey {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
}

.growth-stage {
    flex: 1;
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s;
}

.growth-stage:hover {
    transform: translateY(-5px);
}

.stage-icon {
    margin-bottom: 1rem;
}

.stage-icon i {
    font-size: 2.5rem;
    color: #3498db;
}

.stage-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

.stage-content p {
    font-size: 1rem;
    margin-bottom: 0;
}

.growth-keys {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0 1rem;
}

.key-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.key-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.key-item i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 0.8rem;
}

.key-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* 響應式設計 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    p, ul {
        font-size: 1rem;
    }
    
    .icon-box {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 15px;
        right: auto;
    }
    
    .left, .right {
        left: 0;
        text-align: left;
    }
    
    .two-columns {
        flex-direction: column;
        gap: 1rem;
    }
    
    .column:first-child::after {
        display: none;
    }
    
    .growth-journey {
        flex-direction: column;
    }

    .growth-stage {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .growth-keys {
        gap: 1rem;
    }
    
    .key-item {
        width: 90px;
        padding: 0.8rem;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a202c;
        color: #e2e8f0;
    }
    
    .slide-content {
        background-color: rgba(26, 32, 44, 0.85);
    }
    
    h1, h2 {
        color: #e2e8f0;
    }
    
    .slide-number {
        color: #a0aec0;
        background-color: rgba(26, 32, 44, 0.7);
    }
    
    .timeline-content {
        background-color: rgba(45, 55, 72, 0.9);
    }
    
    .timeline-content h3 {
        color: #e2e8f0;
    }
    
    .tag {
        background-color: rgba(66, 153, 225, 0.2);
        color: #63b3ed;
        border-color: rgba(66, 153, 225, 0.3);
    }
    
    #toggleLang {
        background-color: rgba(26, 32, 44, 0.8);
        color: #63b3ed;
        border-color: #63b3ed;
    }
    
    #toggleLang:hover {
        background-color: #63b3ed;
        color: #1a202c;
    }
}

/* 響應式設計調整 */
@media (max-height: 700px) {
    .slide-content {
        padding: 1rem;
        max-height: 80vh;
    }
    
    .timeline {
        margin: 1rem auto;
    }
    
    .timeline-item {
        padding: 5px 20px;
        margin-bottom: 0.5rem;
    }
}