/* ================= Base & Reset ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    /* 背景底色漸層由左到右 */
    background: linear-gradient(to right, #2f0a30, #62103c);
    color: #ffffff;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}


body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%; /* 確保覆蓋整個畫面 */
    background: url('../images/bg.jpg') top center no-repeat;
    background-size: auto; /* 1比1呈現，不放大縮小 */
    z-index: -1;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 0;
}

/* ================= 動態效果 ================= */
@keyframes slideDownFade {
    0% { opacity: 0; transform: translateY(-80px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-layer {
    opacity: 0;
    animation: slideDownFade 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}


.layer-1 { animation-delay: 0.1s; } /* 社長 */
.layer-2 { animation-delay: 0.6s; } /* 標題 */
.layer-3 { animation-delay: 1.1s; } /* 講座內容 */
.layer-4 { animation-delay: 1.6s; } /* 講師陣容 */
.layer-5 { animation-delay: 2.1s; } /* 贈品報名 */
.layer-6 { animation-delay: 2.6s; } /* 頁尾 */

/* 圖片切換 (width: auto 圖片1比1不被強迫放大) */
.mobile-img { display: none; width: auto; }
.desktop-img { display: block; max-width: 100%; width: auto; height: auto; }


/* 共用標題樣式 (講座內容、講師陣容) */
.section-title {
    font-size: 35px;
    letter-spacing: 2px;
    margin-bottom: 10px;
/* color: #ebd1a9;*/
    color: #ffffff;
    text-align: center;
}

/* ================= 主視覺 ================= */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px; 
    margin-bottom: 10px;
}

/* 將左右拆開設定對齊方式，並使用負邊距拉近 */
.hero-left {
    display: flex;
    justify-content: flex-end; /* 社長圖往右邊（中間） */
}

.hero-right {
    display: flex;
    justify-content: flex-start; /* 標題圖往左邊（中間） */
    margin-left: -60px; /* ★負邊距強制拉近 */
}

.president-img {
    max-width: 100%;
    width: auto; /* 確保1比1呈現不放大 */
    height: auto;
}

/* 講座內容 */
.content-section {
    text-align: center;
    margin-bottom: 30px;
}

.content-img {
    margin: 0 auto;
}

/* 講師陣容 */
.speakers-section {
    text-align: center;
    margin-bottom: 50px;
}

.speakers-container {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.speaker-card {
    text-align: center;
    margin-top: 15px;
}

/* 講師圓形外框與動態 */
.speaker-avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: #d29d5f;
    margin: 0 auto 10px auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    border: 1px solid transparent; 
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.speaker-avatar:hover {
    transform: scale(1.05) translateY(-8px);
    border-color: #fcebb6;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
}

.speaker-avatar img {
    width: 90%;
    height: auto;
    object-fit: contain;
}

.speaker-name {
    /* 明體字型設定 */
    font-family: 'PMingLiU', '新細明體', 'Songti TC', serif;
    font-size: 16px;
    color: #d3cdab;
    letter-spacing: 1px;
}

.speaker-name strong {
    font-size: 26px;
    color: #ffffff;
    margin: 0 3px;
}

/* 贈品與按鈕 */
.cta-section {
    text-align: center;
    margin-bottom: 50px;
}

.gift-box img {
    max-width: 100%;
    margin: 0 auto 30px;
}

.action-box {
    margin-top: 10px;
}

.price-label {
    color: #e5b85c;
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.btn-register {
    display: inline-block;
    background: linear-gradient(to right, #d29c60 0%, #d29c60 60%, #e3c29a 100%);
/* color: #420517;*/
    color: #ffffff;
    font-size: 38px;
    font-weight: bold;
    text-decoration: none;
    padding: 18px 80px;
    border-radius: 50px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.btn-register:hover {
    transform: scale(1.06);
    filter: brightness(1.1);
    box-shadow: 0 12px 25px rgba(220, 168, 66, 0.6);
}

/* 頁尾 */
.site-footer {
    background-color: #d6d8d8;
    color: #391229;
    text-align: center;
    padding: 20px 20px;
    font-size: 27px;
    font-weight: bold;
    line-height: 1.3;
}

/* =========== 手機版RWD響應式 =========== */
@media (max-width: 768px) {
    .page-container {
        padding: 5px 5px 0;
    }

    /* 手機版所有區塊動態迅速載入 */
    .animate-layer { animation-delay: 0.1s !important; }

    .desktop-img { display: none; }
    .mobile-img { display: block; margin: 0 auto; max-width: 100%; width: auto; }

    
    .hero-section {
        flex-direction: column; 
        margin-bottom: 10px;
        align-items: center;
    }

    /* order將標題資訊排在上方 */
    .info-box {
        order: 1; 
        width: 100%;
        text-align: center;
        margin-bottom: 30px; /* 與社長圖片的間距 */
        margin-left: 0; /* ★手機版務必將負邊距歸零，確保維持置中 */
        justify-content: center;
    }

    /* order將社長圖排在標題資訊下方 */
    .president-box {
        order: 2; 
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .president-img {
        max-width: 95%;
        height: auto;
        margin-top: -25px;
    }

    .section-title {
        font-size: 30px;
        margin-bottom: 0px;
    }

    .speakers-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .speaker-avatar {
        width: 220px;
        height: 220px;
        margin: 0 auto 5px auto;
    }

    .btn-register {
        width: 85%;
        max-width: 350px;
        font-size: 38px;
        padding: 10px 24px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }
    
    .gift-box img {
        max-width: 80%;
        margin: -15px auto 20px;
    }

    .site-footer {
        font-size: 20px;
        line-height: 1.5;
    }
}