@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap');

*  
{
    /* 固定起手式：設定margin, padding為0，並設box size為border-box */ 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;   /* 點擊區塊ID會順滑的移動 */
    font-family: "Noto Serif TC", serif;

    /* 禁止滑鼠滾動 */
    /* overflow: hidden; */
}
header
{
    position: fixed;
    top: 0;
    display: flex;
    align-items: center;
    height: 80px;
    width: 100%;
    padding: 0 40px;
    z-index: 10000; /* 簡單來說就是設定一個超級大的值保證永遠在最上層 */
    /* 毛玻璃的效果，數值越大越霧 */
    /* backdrop-filter: blur(20px);  */
    overflow: hidden;
    transition: 0.7s;
}
header .logo
{
    height: 4.5vh;
    display: block;
    transition: 0.7s;
}
header .logo:nth-child(2)
{
    position: absolute;
    transform: translateY(80px);
}
header.sticky
{
    background: #fff;
}
header.sticky .logo:nth-child(1)
{
    transform: translateY(-100px);
}
header.sticky .logo:nth-child(2)
{
    transform: translateY(0px);
}
header ul
{
    position: relative;
    display: flex;
    gap: 40px;
}
header ul li
{
    list-style: none;   /* 使行頭的點點消失 */
}
header ul li a
{
    text-decoration: none;  /* 使a tag的底線效果消失 */
    color: #fff;
    font-weight: 500;
    font-size: 1.25em;
}

section
{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
#main
{
    background: #2D726B;
}
#main h2
{
    position: absolute;
    text-align: center;
    color: #2D726B;
    font-size: 2em;
    font-weight: 400;
    letter-spacing: 2px;
}
.blob
{
    position: absolute;
    width: 460px;
    height: 460px;
}
.blob:nth-child(2)
{
    filter: blur(25px);
}
.lower{
    position: absolute;
    text-align: center;
    bottom: 35px;
}
#contact
{
    position: relative;
    display: flex;
    min-height: 100vh;
    background: #ffffff;
}
#contact .conBox
{
    position: relative;
    display: flex;
    height: 220px;
    width: 800px;
    margin: 0 100px;
}
#contact .conText
{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* 如果父元件沒有指定高度或是設定為auto的話，這邊的100%就沒用了*/
    width: 100%;
}
#contact .conText h2
{
    position: relative;
    color: #2D726B;
    font-size: 2.25em;
    font-weight: 400;
    letter-spacing: 3px;
}
#contact .conText p
{
    position: relative;
    color: #2D726B;
    font-size: 1.2em;
    letter-spacing: 1px;
}
#contact .conText li
{
    position: relative;
    display: flex;
    color: #2D726B;
    margin-top: 10px;
    list-style: none;
    letter-spacing: 1px;
}
#contact .conText .conItem
{
    font-weight: 600;
    width: 30px;
    margin-right: 40px;
    font-size: 1em;
}
#contact .conQRcode
{
    display: flex;
    justify-content: flex-end;
    width: 100%;
    font-size: 1em;
}
.footer
{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 5vh;
    width: 100%;
    bottom: 0px;
    background: #ededed;
    z-index: 10000;
}
.copyrights
{
    position: relative;
    color: #8c8c8c;
    font-size: 0.9em;
}

@media screen and (max-width: 768px)
{
    .blob
    {
        width: 350px;
        height: 350px;
    }
    #main h2
    {
        font-size: 1.7em;
    }
    #contact .conBox
    {
        flex-direction: column;
        justify-content: center;
        margin: 0 37px;
        height: auto; /* 取消固定高度，讓其根據內容自動調整 */
    }
    #contact .conBox .conText
    {
        /* max-width: 370px; */
        width: auto;
        margin: 30px auto;
        height: 230px;
    }
    #contact .conBox h2
    {
        font-size: 2.25em;
    }
    #contact .conBox p
    {
        font-size: 1.2em;
    }
    #contact .conBox .conItem
    {
        margin-right: 20px;
    }
    #contact .conBox .conQRcode
    {
        margin-top: 30px;
        margin-bottom: 40px;
    }
    #contact .conBox .conQRcode img
    {
        width: 200px;
        margin: 20px auto;
    }
    #contact .footer
    {
        height: 5vh;
    }
    #contact .copyrights
    {
        font-size: 1em;
    }
}
@media screen and (max-width: 430px)
{
    header
    {
        padding: 18px 25px;
    }
    header .logo
    {
        height: 4vh;
    }
    .blob
    {
        width: 250px;
        height: 250px;
    }
    #main h2
    {
        font-size: 1.3em;
    }
    #contact .conBox .conText
    {
        height: 200px;
    }
    #contact .conBox h2
    {
        font-size: 1.7em;
        margin-bottom: 20px;
    }
    #contact .conBox p
    {
        font-size: 0.95em;
        margin-bottom: 15px;
    }
    #contact .conText li
    {
        font-size: 0.83em;
    }
    #contact .conBox .conQRcode
    {
        margin-top: 30px;
        margin-bottom: 40px;
    }
    #contact .conBox .conQRcode img
    {
        width: 170px;
    }
    #contact .copyrights
    {
        font-size: 0.85em;
    }
}
