* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #231815;
    line-height: 1.6;
}

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 共用類別：圖片 1:1，不放大且置中 */
.img-original-size {
    width: auto !important;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 背景設定 (多重背景應用) --- */
.main-bg-wrapper {
    background-color: #dcedfb;

    background-image: 
        url('../images/bg.jpg'),

        /* 第2層 (中間)：藍色漸層基礎。 
           這層會向左右無限延伸，並作為PNG底圖的襯底。
        */
        linear-gradient(to bottom, #8abbed 0%, #dcedfb 400px, #dcedfb 100%);
    background-position: center top, top center; 
    background-repeat: no-repeat, no-repeat;
    
    background-size: 2200px auto; 

    padding-top: 0px;
    padding-bottom: 0.1px;
}
 
/* --- 動態由上而下顯示 --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.step-1 { animation-delay: 0.1s; }
.step-2 { animation-delay: 0.3s; }
.step-3 { animation-delay: 0.5s; }
.step-4 { animation-delay: 0.7s; }
.step-5 { animation-delay: 0.9s; }
.step-6 { animation-delay: 1.1s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- 標題 --- */
.title-header {
    text-align: center;
    margin-bottom: 20px;
}

/* --- 內文 --- */
.intro-text {
    color: #231815;
    max-width: 800px;
    margin: 18px auto; 
    font-size: 1.4rem;
    text-align: justify;
    line-height: 1.5;
}

.intro-text p {
    margin-bottom: 0px;
}

/* --- 講者 --- */
.speakers {
    display: flex;
    justify-content: center;
    max-width: 1100px; 
    margin: 0 auto 50px auto; 
}

.speaker {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

/* --- 場次 --- */
.sessions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 1000px; 
    margin: 0 auto 30px auto; 
}

.session-card {
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.session-card picture {
    display: block;
    width: 100%;
    text-align: center;
}

/* --- 按鈕 --- */
.btn-wrapper {
    margin-top: 5px; 
    z-index: 2; 
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    margin-bottom: 20px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 2rem;
    border-radius: 50px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.15); 
    transition: transform 0.2s ease, filter 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-taipei { background: linear-gradient(to right, #299ad7, #34bce9); }
.btn-taichung { background: linear-gradient(to right, #ec671e, #f0853b); }
.btn-hsinchu { background: linear-gradient(to right, #9e4897, #ca98c4); }
.btn-kaohsiung { background: linear-gradient(to right, #6b60a8, #7761a8); }


.footer-white-section {
    background-color: #ffffff;
    padding: 20px 0;
}

/* 注意事項 */
.notes-layout {
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto 35px auto;
}

/* 圓框 */
.notes-title {
    width: 80px;
    height: 80px;
    border: 1px solid #231815;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.3;
    flex-shrink: 0;
}

.notes-content ul {
    list-style: none;
    font-size: 1.3rem;
    line-height: 1.5;
}

.notes-content li {
    margin-bottom: 5px;
    color: #231815;
}

.notes-content a {
    color: #231815;
    text-decoration: underline;
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}
.logo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* --- 免責聲明小字 --- */
.disclaimer-section {
    background: linear-gradient(to right, #01358c, #035fad); 
    padding: 30px 0;
}
/* 置中區塊，內文齊左 */
.disclaimer-center {
    display: flex;
    justify-content: center;
}

.disclaimer-text {
    text-align: left;
    max-width: 1100px;
}

.disclaimer-text p {
    color: #ffffff;
    font-size: 15px;
    line-height: 24px;
}

.desktop-space { display: inline; }
.mobile-block { display: inline; }


/* 手機版響應式 */
@media (max-width: 768px) {
    .container {
        padding: 20px 10px 0px 10px;
    }
    
    /* .img-original-size {
        padding-top: 30px;
    }*/

    .title-header {
        margin-bottom: 0px;
    }

    .main-bg-wrapper {
        background-image: url(../images/bg.jpg),
        linear-gradient(to bottom, #8abbed 0%, #2c9cd6 400px, #2998d6 100%);   
    }
     
    .intro-text { 
        padding: 0px 10px;
        font-size: 1rem; 
    }

    .speakers {
        display: block;
         margin: 0 auto 30px auto;  
    }
    
    .sessions {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .btn {
        margin-bottom: -10px;
        font-size: 1.8rem;  
    }

    .notes-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin: 0 auto 15px auto;
    }

    .notes-title {
        width: auto;
        height: auto;
        border: none;
        border-radius: 0;
        display: block;
        font-size: 1.3rem;
        color: #0056b3; 
        border-left: 4px solid #0056b3;
        padding-left: 10px;
        text-align: left;
    }
    
    .notes-content ul { 
        padding: 0 5px;
        font-size: 1.1rem;
        line-height: 1.5; 
    }

    .desktop-br {
        display: none;
    }

    .notes-title {
        margin-top: -15px;
        
    }

    .logos {
        flex-direction: column;
        gap: 25px;
    }
    
    .logos img {
        height: 60px;
    }

    .logo-item {
        flex-direction: column;
        text-align: center;
    }

    .disclaimer-text p {
        line-height: 1.6;
    }

    .desktop-space {
        display: none; 
    }

    .disclaimer-section {
        padding: 0px 0px 20px 0px;
    }

    .mobile-block {
        display: block; 
        margin-top: 5px;
    }
}