/* 設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(180deg, #152d7a 0%, #287fb7 100%);
    color: #ffffff;
    font-family: "PingFang TC", "Heiti TC", "微軟正黑體", sans-serif;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    padding-top: 40px;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg.png');
    background-size: 2000px auto; 
    background-repeat: no-repeat; 
    background-position: center top;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 0px;
    text-align: center;
}

.responsive-img {
    max-width: 1050px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.title-img {
    width: auto;             
    max-width: 100%;         
    height: auto;            
    margin: 0 auto 30px;     
    display: block;          
    margin-top: -35px;
}

.content-box {
    display: inline-block;
    font-weight: bold;
    text-align: left;
    margin-bottom: 20px;
    font-size: 1rem;
    margin-top: -20px;
}

.content-box p {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.mobile-text {
    display: none;
}

.flex-row {
    display: flex;
    gap: 20px; 
    justify-content: center;
    margin-bottom: 30px;
    margin-top: -20px;
}

.half-width {
    width: calc(50% - 10px);
    height: auto;
    display: block;
}

/* ★ 講者圖片壓字設定 */
.speaker-card {
    position: relative; 
    border-radius: 8px; 
    overflow: hidden;
}

.speaker-card img {
    width: 100%;
    display: block;
}

.speaker-name-label {
    position: absolute; 
    bottom: 75px; 
    left: 0;
    width: 100%; 
/*    background: rgba(0, 0, 0, 0.65); */
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 12px 0; 
    text-align: center;
    letter-spacing: 1px;
    z-index: 10;
    margin: 0;
}

/* 講題區塊 */
.topics-outer-glass {
    background: rgba(255, 255, 255, 0.25); 
    border-radius: 20px;
    padding: 12px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-top: -90px;
    position: relative;
    z-index: 5;
}

.topics-white-box {
    background: #dee9e9;
    border-radius: 12px;
    padding: 25px 15px;
    display: flex;
    align-items: center; 
    justify-content: space-between;
}

.topic-item {
/*    flex: 1;*/
    text-align: left;
    padding: 0 20px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6px;
}

.info-label {
    color: #333333;
    font-weight: bold;
    font-size: 1.2rem;
    white-space: nowrap; 
    margin-right: 4px;
}

.info-text {
    color: #333333;
    font-weight: bold;
    font-size: 1.3rem;
    line-height: 1.4;
}
.topic-text {
    color: #E60044;
    font-size: 1.5rem; 
}

/* 直線置中 */
.topic-divider {
    width: 2px;
    align-self: stretch; 
    background-color: #0055A5;
    margin: 0 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-divider::before,
.topic-divider::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #0055A5;
    left: -2px;
}

.topic-divider::before { top: 0; }
.topic-divider::after { bottom: 0; }

/* === 場次與按鈕 === */
.location-section {
    align-items: flex-start; 
}

.location-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-jelly {
    color: #ffffff;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 2.3rem;
    font-weight: bold;
    box-shadow: 
        inset 0 4px 8px rgba(255, 255, 255, 0.6), 
        0 6px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease-out;
    margin-top: -10px;
    margin-left: -20px; 
    display: inline-block;
}

.btn-green {
    background: linear-gradient(180deg, #32cd32 0%, #009900 50%, #006600 100%);
    border: 1px solid #004d00;
}
.btn-green:hover {
    background: linear-gradient(180deg, #4dff4d 0%, #00cc00 50%, #009900 100%);
    transform: translateY(-2px);
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.8), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn-peach {
    background: linear-gradient(180deg, #ff6699 0%, #e6004c 50%, #b3003b 100%);
    border: 1px solid #80002a;
}
.btn-peach:hover {
    background: linear-gradient(180deg, #ff99c2 0%, #ff1a75 50%, #cc0052 100%);
    transform: translateY(-2px);
    box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.8), 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* === 注意事項 === */
.footer-block {
    background: #f6eae2;
    color: #333333;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px; 
}

.notices-content {
    text-align: left;
    font-size: 1.3rem;
    margin-bottom: 20px; 
}

.red-text {
    color: #d71618;
    font-weight: bold;
}

.notices-content h3 {
    margin-bottom: 5px;
    font-size: 1.5rem;
    font-weight: bold;
}

.notices-content ol {
    padding-left: 20px;
    color: #555555;
    font-weight: bold;
}

.notices-content li {
    margin-bottom: 5px;
}

/* Logo */
.logos-flex {
    display: flex;
    width: 100%; 
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap; 
    margin: 30px auto 20px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap; 
}

.co-org-logos-wrap {
    display: flex;
    gap: 15px;
}

.logo-img {
    height: 60px;
    object-fit: contain;    
}

/* === 動畫效果 === */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(50px); } 
    100% { opacity: 1; transform: translateY(0); }
}

.animate-step {
    opacity: 0;
    animation: fadeInUp 1.0s 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; }


/* === 手機版響應式(RWD) === */
@media (max-width: 768px) {
    .container {
        padding: 0 15px; 
    }

    .responsive-img {
        width: 100%;
        height: auto;
    }

    .flex-row {
        flex-direction: column;
        align-items: center;
    }

    .half-width {
        width: 100%;
        margin-bottom: -30px; 
    }

    .title-img {
        width: 100%; 
        max-width: 100%; 
        margin-top: -30px; 
    }

    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: block;
    }

    .content-box p {
        font-size: 1rem; 
        padding: 0px 15px;
        margin-bottom: 0px; 
    }

    /* 手機版：壓字 */
    .speaker-name-label {
        font-size: 1.2rem;
        padding: 10px 0;
        bottom: 15px; 
    }

    .topics-outer-glass {
        padding: 12px;
        margin-top: -10px;
    }
    
    .topics-white-box {
        flex-direction: column; 
        padding: 20px 15px;
        display: block; 
    }
    
    .topic-item {
        width: 100%; 
        margin-bottom: 10px;
    }

    .topic-divider {
        width: 100%; 
        height: 2px;
        margin: 15px 0 25px 0;
        align-self: auto;
    }

    .topic-divider::before {
        top: -2px;
        left: 0;
    }

    .topic-divider::after {
        top: -2px;
        bottom: auto; 
        left: auto;   
        right: 0;     
    }

    .location-card {
        width: 100%;
        margin-bottom: 10px; 
    }
    
    .btn-jelly {
        text-align: center;
        padding: 15px 10px;
        font-size: 2.5rem;
        width: 90%;
        margin: -10px auto 0 auto; 
    }

    .footer-block {
        padding: 10px 0;
    }
    

    /* 手機版：Logo */
    .logos-flex {
        flex-direction: column; 
        gap: 30px;
        align-items: center;
        flex-wrap: wrap;
    }

    .logo-group {
        flex-direction: column; 
        align-items: center;
        gap: 5px;
        white-space: normal;
        font-size: 18px;
    }

    .co-org-logos-wrap {
        flex-direction: column; 
        align-items: center;
        gap: 15px;
    }

    /* 1.主辦單位(先探、財訊)：左右水平排列 */
    .logo-group:nth-child(1) .co-org-logos-wrap {
        flex-direction: row; 
        justify-content: center;
        gap: 10px;
    }

    .logo-group:nth-child(1) .logo-img {
        height: 60px;
        max-width: 60vw; 
    }

   /* 2.協辦單位(證交所、櫃買中心)：上下垂直排列 */
    .logo-group:nth-child(2) .co-org-logos-wrap {
        flex-direction: column; 
        align-items: center;
        gap: 15px;
    }
}