/* --- 基本設定 --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;700;900&display=swap');

body {
    margin: 0;
    font-family: 'Noto Sans TC', sans-serif;
    color: #231815;
    overflow-x: hidden;
    background-color: #e6c5b0;
}


.index_bg{
  background: url(../images/coin-bg.png) no-repeat;
  background-position: top center; 
  width: 100%;
  height: auto;
  animation: pulse-background 10s ease-in-out infinite alternate;
}

@keyframes pulse-background {
    from { transform: scale(1); }
    to { transform: scale(1.01); }
}



/* --- 主要容器與排版 --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem 0.5rem 1.5rem;
    position: relative;
    z-index: 1;
    margin-bottom: -5px;
}

header { 
    text-align: center; 
    margin-bottom: 2rem; 
}


/* --- 內文 --- */
.intro {
    padding: 1.5rem 0;
    margin-top: -70px;
    margin-bottom: 1.5rem;
    padding-left: 180px;
    line-height: 1.5;
    font-size: 1.2rem;
}

.intro .mt{
    margin-top: -10px;
}

/* --- 講者區塊 --- */
.speakers {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: -50px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.speaker-card {
    text-align: center;
    padding: 1rem 0;
    transition: transform 0.3s ease;
}

.speaker-card:hover { transform: translateY(-10px); }
.speaker-card img { width: 300px; height: auto; object-fit: cover; margin-bottom: -3rem; }
.speaker-card h2 { margin: 0.1rem 0; font-size: 1.5rem; color: #231815; }
.speaker-card h3 { margin: 0; font-size: 1.2rem; font-weight: 400; color: #231815; }


/* --- 活動資訊：台北場、高雄場 --- */
.event-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.event-location {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
    min-height: 330px;
    background: rgba(255, 255, 255, 0.7);
    background-repeat: no-repeat;
    background-size: 100% auto; /* 調整背景圖尺寸維持正確比例 */
    background-position: left top;
}

.event-location:first-child { background-image: url('../images/taipei-bg.png'); }
.event-location:last-child { background-image: url('../images/kaohsiung-bg.png'); }

.event-header {
    position: absolute;
    top: 48px;
    left: 160px;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.event-body {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
}

.event-date { 
    font-size: 1.5rem;
    color: #9f4e27;
    font-weight: bold;
    margin: 10px 0px 0px -30px; 
}

.event-date strong { 
    font-size: 2.8rem;
    color: #9f4e27; 
}

.event-time { 
    margin: 0; 
    color: #9f4e27; 
    font-size: 1.3rem;
    font-weight: bold;  
}

.venue { 
    font-size: 1.5rem; 
    line-height: 1.5; 
    margin-bottom: -3.5rem; 
}

.btn-register {
    display: inline-block;
    color: #ffffff;
    padding: 12px 30px;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 60px;
}

.btn-register:hover { transform: scale(1.05); }
.btn-register { background-color: #f66528; box-shadow: 0 4px 15px rgba(201, 71, 0, 0.3); }
.btn-register:hover { background-color: #e06d2d; }
.btn-blue { background-color: #0077b6; box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3); }
.btn-blue:hover { background-color: #028fdb; }



/* --- 講座議程 --- */
.agenda {
    background: transparent;
    padding: 1.5rem 0;
    border: none;
    box-shadow: none;
    margin-bottom: 2.5rem;
}

.agenda h2 { 
    text-align: center; 
    margin-top: -10px; 
    font-size: 1.8rem; 
    margin-bottom: 1rem; 
}

.agenda-layout { 
    display: flex; 
    gap: 1.5rem; 
    align-items: stretch;
    margin-top: -50px;
}


/* 議程區塊樣式 */
.agenda-item {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 25px;
    color: #000000;
    background: rgba(255, 255, 255, 0.3);
   /* background: transparent; */
    border: none;
}

/* 邊框層 (唯一背景層) */
.agenda-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1; /* 放在文字底下 */
    background: linear-gradient(to right, #C88A56 60%, transparent);
    border-radius: 25px;
    padding: 2px; /* 邊框寬度 */
    -webkit-mask: /* 關鍵：這會將中間挖空，只留下邊框 */
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}


.agenda-item:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); 
}

.speaker-title p {
    display: flex;
    margin: 0.3rem 0;
    font-size: 1.3rem;
}

.speaker-title p > span:first-child {
    flex-shrink: 0;
    white-space: nowrap;
}

.agenda-item span {  
    font-weight: 700; 
}

.highlight { 
    color: #d90429; 
    font-size: 1.5rem; 
    font-weight: 900; 
}

/* --- 白色底板 --- */
.footer-wrapper { 
    background-color: #ffffff; 
    padding: 1.5rem 0; 
    width: 100%; 
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05); 
}

.inner-container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 0 1.5rem; 
}

/* --- 注意事項 --- */
.notes { 
    line-height: 1.8; 
}

.notes h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 0;
    color: #ae131b;
    font-size: 28px;
    margin-bottom: 0.5rem;
}

.notes h2 span:first-child::after {
    content: '|';
    font-size: 1.7rem;
    font-weight: 100;
    color: #ae131b;
    margin: 0 1rem;
}

.notes ol { 
    padding-left: 20px; 
    margin-top: 0;
}

.notes ol li{ 
    font-size: 1.3rem;
}

.notes ol li{ 
    font-size: 1.3rem;
}

.notes ol li span{ 
    color: #ae131b;
    font-weight: bold;
}


/* --- 頁尾 LOGO --- */
footer { 
    text-align: center; 
    margin-top: 1.5rem; 
    padding-top: 2rem; 
    border-top: 1px solid #e0d9d1; 
}

.organizers-container { display: flex; justify-content: center; align-items: center; gap: 2rem; flex-wrap: wrap; }
.organizers-group { display: flex; align-items: center; gap: 1rem; }
.organizers-group p { margin: 0; font-size: 1rem; }
.organizers-group img { height: 50px; }


/* ========== SCROLL ANIMATION (滾動動畫) ========== */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.slide-in-left { transform: translateY(-100px); }
.animate-on-scroll.slide-in-right { transform: translateY(100px); }

.intro, .speakers, .agenda, .footer-wrapper, .agenda-item {
    transform: translateY(50px);
}

.agenda-item:nth-child(2) { transition-delay: 0.2s; }
.agenda-item:nth-child(3) { transition-delay: 0.4s; }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}


/* --- RWD響應式設計 --- */
@media (max-width: 768px) {
    .container { 
        padding-left: 0.7rem; 
        padding-right: 0.7rem;
        margin-bottom: 30px; 
    }

    .inner-container { padding: 0 1rem; }
    header img { max-width: 100%; height: auto; }

    .intro { 
        margin-top: -55px; 
        font-size: 1.1rem; 
        padding-left: 0.7rem; 
        padding-right: 0.7rem; 
    }

    .speakers { 
        margin-top: -20px; 
        gap: 1rem; 
    }

    .speaker-card img { 
        width: 270px; 
        margin-bottom: -3rem; 
        margin-top: -30px; 
    }
    
    .event-info { 
        flex-direction: column; 
        margin-top: -80px; 
    }

    .event-date strong { 
        font-size: 1.8rem; 
    }

    .event-header { 
        left: auto; 
        right: 1.5rem; 
        top: 30px; 
    }

    .event-date { 
        margin: 10px 0px 0px -60px;
        margin-left: 50px; 
    }

    .event-time { 
        font-size: 1.1rem; 
    }
    
    .animate-on-scroll.slide-in-left,
    .animate-on-scroll.slide-in-right {
        transform: translateY(50px);
    }


    .venue { 
        font-size: 1.5rem; 
        margin-bottom: -1.8rem; 
    }

    .agenda-layout { 
        flex-direction: column; 
        gap: 1rem;
        margin-top: -65px; 
    }

    .agenda h2 {
       margin-top: 15px;   
    }

    .highlight { 
        font-size: 1.5rem; 
    }
    
    .footer-wrapper { 
        padding: 2rem 0; 
    }

    .organizers-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .organizers-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .organizers-group p { 
        margin: 0; 
        font-size: 1.2rem;
    }

    .notes h2 {
        margin-top: -15px;
    }

    .notes ol li{ 
        font-size: 1.2rem;
    }
    
    .logo-row {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .logo-row img { 
        height: 35px; 
    }

}