@charset "utf-8";

/*-----------------------------------------------------整體預設架構-------------------------------------------------------------*/
:root{
    --main-color0:#ffffff;
    --main-color1:#000000;
    --main-color2:#c4ae2f;
    --main-color3:#897f43;
    --main-color4:#6a462b;
    --main-color5:#41627d;
    --main-color6:#17a2b7;
    --body-line-height: 1.6;
    --title-letter-spacing: 2px; 
    --body-letter-spacing: 0.05em; 
    --big-margin-top:60px;
    --middle-margin-top:40px;
    --small-margin-top:10px;
    --big-margin-bottom:60px;
    --middle-margin-bottom:40px;
    --small-margin-bottom:10px;
}



html {
    font-size: 100%; 
    -webkit-text-size-adjust: 100%; /* 避免縮放時文字閃爍 */
}

body{
    font-family:'Inter','Noto Sans TC',sans-serif;
    line-height: var(--body-line-height);
    letter-spacing: var(--body-letter-spacing);
    font-weight: 400; 
    text-align: left;
    color: var(--main-color1);   
    background-color: var(--main-color0);
}


/*---無法選取---*/
.no_select {
    user-select: none;
}


/*文字設定*/
h1{
    font-size: 2rem; /* 32px */
    line-height: 1.2; 
    letter-spacing: var(--title-letter-spacing);
    margin-bottom: var(--small-margin-bottom);
    font-weight: 700;
    color:  var(--main-color2);
}
h2{
    font-size: 1.25rem; /* 20px */
    line-height: 1.2; 	
    margin-bottom: 20px;
    font-weight: 600;
    color:  var(--main-color5);
}
h3{
    font-size: 1.125rem; /* 18px */
    margin-bottom: var(--small-margin-bottom);
    color:  var(--main-color3);
}
p{
    font-size: 1rem; /* 預設 16px */
    margin-bottom: var(--small-margin-bottom);
    color:  var(--main-color2);
}
.small-word{
    font-size: 0.875rem; /* 預設 14px */
    letter-spacing: 0.1em; 	
}

article{
    margin-top: 30px;
}



/*按鈕*/
.btn-link {
    display: inline-flex;    
    align-items: center;     
    justify-content: center; 
    gap: 10px;               
    padding: 15px 35px;
    background-color: var(--main-color6);
    border-radius: 5px;
    margin-top: var(--small-margin-top);
    transition: all 0.3s ease;
}
.btn-link:hover {
    background-color: var(--main-color2);;
}
.btn-link:focus {
    background-color: var(--main-color5);;
}

/* 處理內部的 h3 */
.btn-link h3 {
    margin: 0;               
    line-height: 1; 
    color: var(--main-color0);  
    font-weight: 500;       /* 確保不會撐開高度 */
}

/* 處理箭頭圖片 */
.btn-link img {
    width: 11px;             
    height: auto;
    display: block;
}



.wrapper {
    width: 100%;
    min-height: 200vh; 
    background-image: 
        url('../img/bg-1920.jpg'), 
        url('../img/full-bg-1920.jpg');  
    
    background-repeat: no-repeat;
    
    
    background-position: 
        top center,
        bottom center; 

    
    background-size: 
        1920px,
        1920px;
}

header,footer{
    width: 90%;
    max-width: 1366px;
    margin: 0 auto;
}

/*---------------------------------------------------header---------------------------------------*/

header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.logo{
    padding-top: 20px;
    max-width: 411px;
    width: 100%;
}
.banner{
    padding-left: 80px;
    max-width: 480px;
    width: 100%;
}





/*---------------------------------------------------main---------------------------------------*/
main{
    width: 90%;
    max-width: 1366px;
    margin: 0 auto;
    padding: 20px; 
    background-color: rgba(255,255,255,0.2);
    border: 1px solid var(--main-color0);
    border-radius: 10px;
}
main .container{
    width: 100%;
    max-width: 100%;
    padding: 60px 40px;
    background: #fff;
    border-radius: 10px;
}

main .title{
    text-align: center;
    margin-bottom: var(--big-margin-bottom);
}
main .title h1{
    position: relative;
    display: inline-block;
}
main .title h1:before{
    content: '';
    position: absolute;
    top: 0px;
    left: -55px;
    width: 38px;
    height: 35px;
    background-image: url(../img/icon-loudspeaker.png);
    background-size: contain;
    background-repeat: no-repeat;
}
main .title p{
    color: var(--main-color4);
    font-weight: 500;
}


section{
    margin-bottom: var(--big-margin-bottom);
}
section:last-child{
    margin-bottom: 0;
}
section p{
    text-align: left;
    color: var(--main-color1);
}




/*------------------section2------------------*/
#section2 .flex-box{
    display: flex;
    flex-wrap: wrap;
    gap: 10px 5%;
}
#section2 .decorate{
    display: inline-block;
    color: var(--main-color0);
    background-color: var(--main-color4);
    border-radius: 50px;
    padding: 3px 14px;
    margin-top: var(--small-margin-top);
}
#section2 .pic img{
    width: 120px;
}
#section2 .pic .small-word{
    color: var(--main-color4);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-align: center;
    margin-top: 5px;
}




/*------------------section3------------------*/
#section3{
    padding-top: 40px;
}
#section3 .flex-box{
    display: flex;
    justify-content: space-around;
    gap: 6%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
#section3 .flex-box .link{
    flex: 1; 
    background-color: rgba(22, 160, 182,0.1);
    padding: 80px 20px;
    border-radius: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}




/*---------------------------------------------------footer---------------------------------------*/
footer{
    padding: 60px 0;
}
footer h2,footer p{
    color: var(--main-color0);
}





/*螢幕尺寸【小於】1001時頁面顯示---平板*/
@media (max-width:1000px) {
/*-----------------------------------------------------整體預設架構-------------------------------------------------------------*/    
    html {
        font-size: 14px; /* 預設 1rem = 12px */
    }	

    .wrapper {
        background-size: 1700px, 1700px;
    }
/*---------------------------------------------------header---------------------------------------*/

    .logo{
        max-width: 350px;
        width: 100%;
        margin: 0 auto;

    }    
    .banner{
        display: none;
    }


/*---------------------------------------------------main---------------------------------------*/
    main {
        background-color: #fff;
        margin-top: 40px;
        padding: 0;
    }


    main .title h1:before {
        top: 2px;
        left: -47px;
        width: 32px;
        height: 30px;
    }    


/*------------------section2------------------*/
    #section2 .flex-box {
        gap: 10px 3%;
    }
    #section2 .pic img {
        width: 80px;
    } 


/*------------------section3------------------*/
#section3 .flex-box{
    flex-direction: column;
    gap: 20PX;
}
#section3 .flex-box .link{
    width: 100%;
    padding: 40px 20px;
}


}


/*熒幕尺寸【小於】481時頁面顯示---手機*/
@media (max-width: 480px) {
/*-----------------------------------------------------整體預設架構-------------------------------------------------------------*/
    :root{
        --big-margin-top:40px;
        --middle-margin-top:20px;
        --small-margin-top:10px;
        --big-margin-bottom:40px;
        --middle-margin-bottom:20px;
        --small-margin-bottom:5px;
    }    



    /*文字設定*/
    h1{
        font-size: 1.5rem; /* 24px */
        line-height: 1.2; 
    }
    h2 {
        margin-bottom: 10px;
    }


    .wrapper {
        background-size: 1200px, 1200px;
    }

    header,footer{
        width: 94%;
    }


/*---------------------------------------------------header---------------------------------------*/

    .logo{
        max-width: 250px;
        padding-top: 10px;
    } 


/*---------------------------------------------------main---------------------------------------*/
    main {
        width: 94%;
    }

    main .container {
        padding: 40px 20px;
    }

    main .title h1:before {
        top: 3px;
        left: -35px;
        width: 22px;
        height: 20px;
    }


/*------------------section2------------------*/
    #section2 .pic img {
        width: 60px;
    }



/*------------------section3------------------*/
    #section3{
        padding-top: 20px;
    }




/*---------------------------------------------------footer---------------------------------------*/
    footer{
        padding: 40px 0;
    }
    footer h2,footer p{
        margin-bottom: 10px;
    }
}



/*熒幕尺寸【小於】361時頁面顯示---手機*/
@media (max-width: 360px) {
/*---------------------------------------------------main---------------------------------------*/
    main .title h1:before {
        background: none;
    }
}