
:root {
    --primary-blue: #004577;
    --accent-blue: #1e3a6e;
    --text-gold: #cba163;
    --highlight-red: #e74c3c;
    --btn-orange: #f39c12;
    --text-white: #ffffff;
    --nav-height: 70px;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #0561a6;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* 導航選單 */
.navbar {
    background-color: #d7edfd;
    height: var(--nav-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 1.1rem;
    color: #38393a;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-link:hover {
    color: #064573;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #064573;
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}


/* 主視覺 */
#hero {
    position: relative;
    padding-top: var(--nav-height);
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 35px;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/kv_bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: left;
}

.hero-body {
    margin-left: 30px;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
    padding: 0;
    font-weight: 500;
}

.fade-in-down {
    opacity: 0;
    transform: translateY(-50px);
    animation: fadeInDown 1.2s ease-out forwards;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: 0.3s; }


/* 講者 */
#speakers {
    padding: 0px 0px 50px 0px;
    background: linear-gradient(to bottom, var(--primary-blue), #0f2b5a);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 25px;
    color: #ffffff;
    letter-spacing: 2px;
}

.carousel-container {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
}

.carousel-mask {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.speaker-card {
    min-width: 100%;
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 40px;
}

.speaker-img img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--text-gold);
}

.speaker-info {
    flex: 1;
    text-align: left;
}

.speaker-info h3 { font-size: 1.8rem; color: var(--text-white); margin-bottom: 10px; }
.speaker-info .position { font-size: 1rem; color: #ffffff; margin-left: 10px; }
.speaker-info .details { font-size: 0.9rem; color: #ccc; margin-bottom: 5px; }
.speaker-info .company { font-size: 1.1rem; color: #ffffff; margin-bottom: 15px; }
.speaker-info hr { border: 0; height: 1px; background: rgba(255,255,255,0.2); margin: 15px 0; }
.speaker-info h4 { color: #fff100; font-size: 1.5rem; line-height: 1.4; font-weight: 400; }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-blue);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.carousel-btn:hover {
    background-color: var(--btn-orange);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: -25px; }
.next-btn { right: -25px; }


/* 活動資訊 */
#event-info {
    padding: 50px 0;
    background-color: #0460A6;
}

.text-center { text-align: center; }

.info-block {
    display: inline-block;
    text-align: left;
    max-width: 100%;
}

.info-block p { margin-bottom: 5px; }

.date {
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff100;
    line-height: 1.1;
    font-family: Arial, sans-serif;
}

.day { font-size: 2rem; color: #fff; font-weight: 400; }
.time { font-size: 2.2rem; font-weight: bold; margin-bottom: 15px; }
.sub-text { font-size: 1.2rem; font-weight: normal; color: #ffffff; }
.location-title { font-size: 1.5rem; font-weight: bold; margin-top: 15px; }
.location-address { font-size: 1.2rem; color: #ffffff; }

.contact {
    margin-top: 25px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff100;
    font-family: Arial, sans-serif;
}


/* 報名 */
#registration {
    padding: 20px 30px 60px 20px;
}

.live-banner {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.btn-glass {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    background: #f08300;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    transition: all 0.3s;
}

.btn-glass:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.6);
}


/* 贈品 */
#gifts {
    padding: 0px 0;
    margin-bottom: 35px;
}

.gift-box {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 30px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 750px;
    margin: 0 auto;
    justify-content: center;
    gap: 20px;
}

.gift-img { flex: 1; }
.gift-img img { width: 100%; height: auto; object-fit: cover; display: block; }

.gift-text { flex: 1; padding: 20px; }

.gift-text h3 {
    font-size: 1.5rem;
    color: #fff100;
    margin-bottom: 20px;
    border-bottom: 2px solid #fff100;
    display: inline-block;
}
.gift-text ul li { margin-bottom: 10px; font-size: 1.1rem; list-style-type: disc; margin-left: 20px; }
.gift-note { margin-top: 10px; font-size: 1rem; color: #ffffff; }


/* 注意事項 */
#notes {
    padding: 30px 0;
    color: #21262a;
    font-size: 1.1rem;
    text-align: center;
    background-color: #e7eaeb;
}

.notes-wrapper {
    display: inline-block;
    max-width: 800px;
    text-align: left;
    margin: 0 auto;
}

#notes h3 {
    color: #21262a;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}
#notes ul li { list-style-type: disc; margin-left: 20px; margin-bottom: 8px; }


/* 交通資訊 */
#transport {
    padding: 40px 0;
    background-color: #e7eaeb;
}

.transport-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.map-container {
    flex: 1;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #ffffff;
}

.transport-info { flex: 1; }
.transport-info h2 { font-size: 2rem; margin-bottom: 10px; color: #394793; }
.trans-date, .trans-loc, .trans-addr { font-size: 1.2rem; margin-bottom: 5px; color: #394793; }

.trans-btns {
    font-size: 20px;
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0460A6;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.btn-outline:hover {
    background-color: #034577;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}


footer {
    background-color: #cbcfd1;
    padding: 20px 0;
    text-align: center;
}

footer p { font-size: 20px; color: #21262a; font-weight: bold; }

.organizers {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

.organizers img { height: 80px; padding: 5px; border-radius: 5px; }


/* 全站層層動態效果 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* 手機版 RWD */
@media (max-width: 768px) {
    /* 選單 */
    .menu-toggle { display: block; }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .nav-menu {
        position: fixed; left: 0; top: var(--nav-height); flex-direction: column;
        width: 100%; text-align: center; padding: 0px 0; max-height: 0;
        overflow: hidden; transition: max-height 0.5s ease-out; gap: 0;
        background-color: #d7edfd;
/*        box-shadow: 0 5px 10px rgba(0,0,0,0.2);*/
    }

    .nav-menu.active { max-height: 300px; }
    .nav-menu li { margin: 15px 0; }

    
    #hero { 
        display: block;
        min-height: auto; 
        padding-bottom: 0;
        background: #0561a6;
    }
    
    .hero-bg { 
        position: relative;
        width: 100%;
        
        /* 正方形圖設 100vw，長方形圖(像手機桌布)設 150vw，扁長圖設 70vw */
        height: 55vw; 
        
        background-image: url('../images/kv_bg_m.jpg'); 
        background-size: 100% auto; /* 寬度 100% 滿版，高度自動，確保不被裁切 */
        background-repeat: no-repeat;
        background-position: center top;
        z-index: 8;
    }
    
    .hero-content {
        width: 100%;
        padding: 20px 20px;
        background-color: #004577;
        z-index: 0;
    }

    .hero-body { 
        margin-left: 0;
        font-size: 0.8px; 
        text-align: left; 
        padding: 0;
    }
    
    .hero-text {
        text-shadow: none;
        font-size: 18px; 
    }



    /* 講者 */
    .carousel-container { margin: 0 25px; width: auto; }
    .speaker-info h4 {
        font-size: 1.2rem;  
    }

    .speaker-card { 
        flex-direction: column; 
        text-align: center; 
        padding: 15px 10px;
        gap: 10px;
    }

    #speakers {
        padding: 0px 0px 30px 0px;
    }

    .speaker-info { text-align: center; }
    .speaker-img img { width: 200px; height: 200px; }
    .carousel-btn { width: 40px; height: 40px; font-size: 1rem; top: 50%; opacity: 1; }
    .prev-btn { left: -20px; }
    .next-btn { right: -20px; }


    .date {
        font-size: 1.5rem;
    }

    .day {
        font-size: 1.1rem;
    }

    .live-banner {
        margin-bottom: 20px;
        margin-top: -40px;
    }

    .btn-group {
        gap: 15px;
    }

    .btn-glass {
        display: inline-block;
        padding: 5px 10px;
        font-size: 2rem;
        width: 300px;   
    }

    /* 贈品 */
    .gift-box { flex-direction: column; gap: 0; text-align: center; }
    .gift-img { 
        width: 100%; 
        display: flex; 
        justify-content: center;  
    }

    .gift-img img { width: auto; height: 200px; }
    .gift-text { width: 100%; padding: 20px; text-align: left; }
    .gift-text ul li {
        margin-bottom: 0px; 
        font-size: 1rem;
        list-style-type: disc;
        margin-left: 15px;
    }

    #registration {
        padding: 10px 30px 30px 20px;
    }


    /* 活動資訊手機版字體 */
    .section-title {   
        margin-bottom: 10px;
        margin-top: -30px;
    } 

    .date { 
        font-size: 2rem; 
        line-height: 1.2; 
    }

    .time { font-size: 1.5rem; }
    .location-title { font-size: 1.3rem; }
    .contact { font-size: 1.8rem; }

    /* 注意事項 */
    #notes {
      padding: 25px 0px 0px 0px;   
    }

    #notes ul li {
        font-size: 16px;
    }

    /* 交通資訊 */
    #transport {
        padding: 20px 0;
    }
    
    .transport-grid { flex-direction: column; }
    .map-container { width: 100%; height: 320px; flex: none; }
    .transport-info { 
        width: 100%; 
        text-align: center;
        margin-top: -20px; 
    }

    .trans-btns { 
        justify-content: center; 
        flex-direction: column;
        width: 300px;
        margin: 0 auto; 
    }

    .organizers img {
        height: 65px;
    }

}

