/* --- 全局設定 --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans TC', "Microsoft JhengHei", sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    color: #333;
    position: relative;
    background: linear-gradient(180deg, #d0180a 0%, #ed6c00 100%);
    background-attachment: fixed;
}

.kv-web{display:inline-block;}
.kv-mobile{display:none;}


/* --- 背景底圖疊加層 --- */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bg.png') no-repeat;
    background-position: center; 
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

/* --- 內容 --- */
.main-container {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;   
}

.content-body {
    padding: 30px 10px 20px 10px;
}

.flex-layout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 30px;
    margin-top: 60px;
}

/* 左欄：講師區塊 (寬度35%) */
.left-col {
    flex: 0 0 35%;
    text-align: center;
}

.speaker-photo img {
    max-width: 410px;
    width: 100%;
    margin-top: -100px;   
}

.speaker-bio {
    text-align: left;
    color: #fff;
    margin-top: -80px;
    padding-left: 20px; 
    margin-left: 10px; 
    position: relative;
    z-index: 2;
}

.speaker-bio h3 {
    color: #fff100;
    font-size: 1.3rem;
    padding-bottom: 5px;
    text-align: left;
    font-weight: 900;
}

.speaker-bio small {
    font-size: 1rem;
    font-weight: normal;
    color: #fff;
}

.speaker-bio ul {
    list-style: none;
}

.speaker-bio li {
    margin-bottom: 5px;
    font-size: 0.9rem;
    line-height: 1.2;
    text-indent: -1.3em;
    padding-left: 1.3em;
}

/* 右欄：主要內容 */
.right-col {
    flex: 1;
}

/* 動畫設定 */
@keyframes slideDownFade {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.anim-item {
    opacity: 0;
    animation: slideDownFade 0.8s ease-out forwards;
}

.delay-0 { animation-delay: 0.1s; }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.5s; }
.delay-3 { animation-delay: 0.7s; }
.delay-4 { animation-delay: 0.9s; }
.delay-5 { animation-delay: 1.1s; }
.delay-6 { animation-delay: 1.3s; }

/* 標題大圖 */
.banner-header {    
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;  
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;  
}

/* 重點區塊 */
.highlights {
    padding: 5px 20px 5px 40px;
    margin-bottom: 15px;
}

.highlights ul { 
    list-style: none; 
}

.highlights li {
    font-size: 1.6rem;
    margin-bottom: 15px;
    padding-left: 1.4em;
    position: relative;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.3;
}

.highlights .star {
    position: absolute; 
    left: 0; 
    color: #fff100; 
    font-size: 1.5rem; 
    top: 2px;
}

/* 活動資訊 */
.event-info { 
    margin-bottom: 30px; 
    padding-left: 40px; 
}

.info-row { 
    display: flex; 
    margin-bottom: 15px; 
    align-items: flex-start; 
}

/* 標籤容器 */
.label-wrapper {
    width: 140px; 
    flex-shrink: 0;
    /* 調整標籤跟右邊的字對齊 */
    padding-top: 0; 
    margin-top: 15px;
}

.mt{
    margin-top: 5px;
}

.label-badge { 
    display: block;
    width: 100%;
    /* 紫色(#8e2de2)到透明 */
    background: linear-gradient(90deg, #8e2de2 0%, rgba(142, 45, 226, 0) 100%);
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 5px 0 5px 15px; 
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    text-align: left;
    line-height: 1.2;
}

.info-row .content { 
    flex-grow: 1; 
    font-weight: 700; 
    font-size: 1.7rem; 
    color: #fff100;
    line-height: 1.4;
}

.date-big {
    font-size: 3rem;
    color: #fff100;
    font-weight: 900;
    margin: 0 5px;
    vertical-align: middle;
}

.day-circle {
    display: inline-block;
    background-color: #fff100;
    color: #000;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: bold;
    vertical-align: middle;
    margin-left: -10px;
}

.time-small {
    font-size: 1.3rem;
    color: #fff;
    display: block;
    margin-top: -10px;
}

.info-row .note { 
    font-size: 1rem; 
    color: #ffffff; 
    font-weight: normal;
}

/* 週刊贈品區塊 */
.magazine-section {
    display: flex;
    align-items: center;
    justify-content: center; 
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    gap: 30px;   
}

.mag-img img {
    max-width: 180px;
    height: auto;   
}

.mag-text h3 { 
    font-size: 1.8rem; 
    color: #ffffff;
    margin-bottom: 10px; 
    line-height: 1.4; 
}

/* 強調「免費」兩字 */
.highlight-free {
    color: #fff100;
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0 2px;
    text-shadow: 0 0 10px rgba(255, 241, 0, 0.4); /* 增加一點光暈 */
}

.mag-text p {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: bold;
}

.highlight-phone { 
    font-size: 3rem; 
    color: #ffffff; 
    font-weight: 900; 
    font-family: Arial, sans-serif; 
    display: block; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-top: -15px;
}

/* 按鈕區塊 */
.cta-buttons { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }


.btn {
    display: inline-block;
    padding: 15px 30px; 
    min-width: 280px;
    border-radius: 60px;
    text-decoration: none;
    margin: -20px 20px 0px 20px;
    
    /* 字體設定 */
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    
    /* --- 水晶按鈕樣式 --- */
    /* 背景漸層：從亮藍到深藍 */
    background: linear-gradient(180deg, #3da9ff 0%, #007bff 50%, #0062cc 100%);
    
    /* 光澤與陰影效果 */
    box-shadow: 
    inset 0 15px 12px -5px rgba(255,255,255,0.3), /* 上半部的白色反光 (Gloss) */
    text-shadow: 0 2px 3px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-3px); /* 微微浮起 */
    filter: brightness(1.1);     /* 變亮一點 */
}




/* 注意事項 */
footer {
    background-color: #601986;
    padding: 30px 20px;
}

.notice-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.notice { 
    font-size: 1.1rem; 
    color: #ffffff; 
}

.notice h4 { 
    margin-bottom: 10px; 
    color: #ffffff;
    font-size: 1.3rem;
}

.notice ul { 
    padding-left: 20px; 
}

.notice li { 
    margin-bottom: 8px; 
}




/* --- 手機響應式 --- */
@media (max-width: 768px) {
    .kv-web{display:none;}
    .kv-mobile {
        display: block;
        width: 100%;
        height: auto;
    }
    
    body { padding: 0; } 

    .main-container { width: 100%; border-radius: 0; }
    .content-body { 
        padding: 5px 10px; 
    }

    .flex-layout {
        display: flex;
        flex-direction: column; /* 垂直排列 */
        gap: 0;
        margin-top: 10px;
    }

    /* 利用 display: contents 讓 .right-col 的子元素可以被釋放出來
       用order屬性把它們跟 .left-col 混合排序 
    */
    .right-col {
        display: contents;
    }

    /* 1. 條列式重點 */
    .highlights { 
        order: 1; 
        padding: 0 5px; 
        margin-bottom: 10px; 
    }

    /* 2. 講師區塊 */
    .left-col { 
        order: 2;
        width: 100%; 
        flex: auto; 
        margin-bottom: 40px; 
        /* 重置 display: contents 的影響，確保 left-col 還是個區塊 */
        display: block; 
    }

    /* 3. 活動資訊 */
    .event-info {
        order: 3;
        padding-left: 0;
    }

    /* 4. 雜誌區塊 */
    .magazine-section {
        order: 4;
        flex-direction: column; 
        text-align: center; 
        gap: 15px;
        margin-top: -30px; 
    }

    /* 講師區塊 */
    .speaker-photo img { 
        max-width: 280px; 
        margin-top: -20px; 
    }
    
    .speaker-bio {
        margin-top: -100px;
        margin-left: 0;
        text-align: center;
    }

    .speaker-bio h3 { 
        text-align: center; 
        font-size: 1.5rem; 
    }

    .speaker-bio li { 
        text-align: left; 
        font-size: 0.9rem;  
    }

    
    .highlights li { 
        font-size: 1.1rem; 
    }

    .highlights .star {
        font-size: 1.1rem; 
    }

    /* 資訊欄位：手機版改為上下排列 */
    .info-row { 
        flex-direction: column; 
        margin-bottom: 25px;
        align-items: center; 
        text-align: center;
    }

    .label-wrapper {
        width: 100%; 
        max-width: 200px;
        margin-bottom: 10px;
        margin-top: -10px;
    }

    /* 手機版標籤 */
    .label-badge {
        font-size: 1.3rem;
        text-align: center; 
        padding-left: 0;
        background: linear-gradient(90deg, rgba(142, 45, 226, 0) 0%, #8e2de2 30%, #8e2de2 70%, rgba(142, 45, 226, 0) 100%);
        border-radius: 0;
    }

    .date-big { 
        font-size: 2.4rem;
        font-weight: bold;
        display: inline-block; 
        margin: 5px 0; 
    }

    .day-circle { width: 36px; height: 36px; line-height: 36px; font-size: 1.1rem; }
    .time-small { font-size: 1.2rem; }
    .info-row .content { font-size: 1.3rem; }

    .highlight-phone { font-size: 2.5rem; color: #fff100; }

    .cta-buttons { 
        flex-direction: column; 
        gap: 35px;
        margin-top: -40px;

    }

    .btn { 
        padding: 15px; 
        font-size: 1.8rem; 
    }

    footer {
        padding: 20px 15px;
   }


}