* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
    }

.wrap {
    width: 100%;
    }

    /* 首頁區 */
.header {
    width: 100%;
    height: 300px;
    background-image: url("./img/banner1.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
     position: relative;
    }


.header .title {
    text-align: center;
    color: #080808;
    padding-top: 20px;
    font-size: 1.5rem;
    }

.header .logo {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 100px;
    }


    /* 中間選單區nav */
.nav {
    display: flex;
    justify-content: center;
    background-color: #797270;
    overflow: hidden;
    flex-wrap: wrap;
    }

        /* 設定nav選單區所有選單顯示樣式及內間距 */

.nav ul {
    display: flex;
    list-style: none;
    padding-top: 10px;
    padding-bottom: 10px;
     }
    
.nav li {
    list-style: none;
    float: left;
    }
    
    
.nav ul li {
    /* 水平排列 */
    display: inline;
     margin-bottom: 1px;
     }
    
.nav li li {
    /* 解除浮動 */
    clear: left;
    }
    
    /* * 解決menu定位推擠 */
.nav ul ul {
    position: absolute;
    display: none;
    }
        

/* 設定nav選單區內文字框的高度與寬度及背景色 */
.nav a {
    display: block;
    width: 150px;
    height: 45px;
    line-height: 30px;
    background-color: #797270;
    color: #312d2d;
    text-decoration: none;
    text-align: center;
    transition: all .3s;
    }


    /* 選單區超連結 */
.nav ul li a {
    color: #111111;
    background-color: rgb(190, 185, 185);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
     margin-left: 10px;
    }

.nav li:hover ul {
    display: block;
    }


    /* 選單區超連結被碰到時的變化 */
.nav ul li a:hover {
    background-color: rgb(99, 89, 86);
    color: #fff;
    font-size: 1rem;

    }

    /*content 區 */
.content {
     background-color: rgb(238, 235, 234);
    display: flex;
    justify-content: space-around;
    align-items: center;
    }

aside {
    width: 20%;
    order: 1;
    text-align: center;
    }


article {
    width: 68%;
    order: 2;
    }

.ad {
     order: 3;
    }
/*-------------content 內容設定------------  */
.content .box2 {
    padding-top: 20px;
    margin-bottom: 20px;
    }

/* --------------aside 開始-------------- */
.box2 .list-type {
    list-style: none;
    padding: 10px 10px;
    padding-top: 5px;
    margin-left: 40px;
    }

.list-type a {
    text-decoration: none;
    color: #432;
    padding: 10px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s;
    }

.list-type a:hover {
    color: #0bd;
    }
/* ------------index_article 設定-------------- */
#post-date {
    color: blue;
    font-size: 1.5rem;
}

#news-content-1 {
    border: rgb(167, 130, 130) solid 1px;
    padding: 10px;
    line-height: 2.5rem;
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: center;
    text-align: left;
}

/* -----------index_article 設定結束--------------- */


/* ------------demo1&2_article 設定-------------- */

#news-content-1 {
    border: rgb(167, 130, 130) solid 1px;
    padding: 10px;
    line-height: 2.5rem;
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: center;
    text-align: left;
}

#wrapper {
    width: 100%;
    margin: auto;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}


#box {
    display: inline-block;
    /*float:left; */
    background-color: rgb(238, 228, 174);
    padding: 20px;
    margin: 15px;
    margin-left: 10px;
    /* 滑鼠碰到圖片時變形 0.5sec*/
    transition: all 0.5s;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.794);
    }   

#box img {
    width: 100%;
    height: 200px;
    /* 一碰到圖片時變形 0.5sec*/
    transition: all 0.5s;
    }

#box:hover {
    /* 一碰到圖片時變大1.2倍 */
    transform: scale(1.2);
    }

/* 一碰到圖片時變形由正方形變橢圓 */
#box:hover img {
    border-radius: 50%;
    }

/* -----------demo1_article 設定結束--------------- */


/* ------------sign_up_article 設定------------------*/
#wrapper1 {
    max-width: 100%;
    border: #0bd solid;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
    padding-left: 10px;
    padding-bottom: 30px;
}
/* -----------contact_up_article 設定結束--------------- */


#discript {
    text-align: left;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 50px;
    font-size: 30px;
    font-weight: 400px;
    }


#color_type {
    margin-top: 10px;
    color: blue;
    font-weight: bold;
    }

/* ------------introduce_article 設定-------------- */
#news {
        margin-bottom: 20px;
    }

#post-title {
    margin-top: 10px;
    text-align: center;
    font-size: 2rem;
    color: blue;
    }


#news-content {
    border: rgb(167, 130, 130) solid 1px;
    padding: 10px;
    line-height: 2.5rem;
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: center;
    }

#foot-title {
    color: rgb(48, 8, 225);
    padding: 10px;
    font-size: 2rem;
    margin-top: 20px;
    margin-bottom: 20px;
    }
#pic_run {
    max-width: 100%;
    background-color: #ccc;
    padding: 5px;
    }

#pic_run img {
    width: 400px;
    height: 320px;
    margin: 5px;
    vertical-align: top;
        /*垂直對齊目的：為了將圖片下方的預設留白區平均分配在上下的位置*/
    }
/* -----------introduce_article 設定結束--------------- */

/* ------------news_article 設定----------------------- */
        /* 页面整体布局 */
#container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    border: #797270 1px solid;
     }

        /* 标题样式 */
#container h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    }

        /* 新闻列表样式 */
#news-list {
    list-style-type: none;
    }

        /* 每一条新闻项的样式 */
#news-item {
    background-color: rgb(209, 205, 205);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(243, 234, 234, 0.096);
    transition: transform 0.3s ease;
    }

#news-item:hover {
    transform: translateY(-5px);
    }

#news-item h2 {
    font-size: 1.5rem;
    color: rgb(138, 89, 89);
    margin-bottom: 10px;
    }

#news-item p {
    font-size: 1rem;
    color: #3f4444;
    }

#news-item .date {
    font-size: 0.9rem;
    color: #609ba0;
    margin-top: 10px;
     }

        /* 按钮样式 */
#read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #50667554;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    }

#read-more:hover {
    background-color: #71bff3;
    }

/* -----------------news_article 設定結束--------------- */


/* -----------------tg_13 設定結束--------------- */
#wrapper_13 {
    width: 100%;
    margin: auto;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}


#practice_13 {
    font-size: 2rem;
    color: blue;
    text-align: center;
    margin-bottom: 20px;
}



#box_13 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    border: #0bd solid;

}

#box_13 .item {
    background: #a79795;
    color: rgb(244, 244, 248);
    margin: 2px;
    padding: 5px;
    text-align: left;
}
/* -----------------tg_13 設定結束--------------- */

/* -----------------tg_32 設定開始--------------- */
#wrapper_32 {
    width: 100%;
    margin: auto;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;

}

#practice_32 {
    font-size: 2rem;
    color: blue;
    text-align: center;
    margin-bottom: 20px;
}

#box_32 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 2px;
    border: #0bd solid;
}

#box_32 .item {
    background: #a79795;
    color: #fff;
    margin: 2px;
    padding: 5px;
    text-align: left;
}
/* -----------------tg_32 設定結束--------------- */

/* -----------------tg_37 設定開始--------------- */
#wrapper_37 {
    width: 100%;
    margin: auto;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;

}


#practice_37 {
    font-size: 2rem;
    color: blue;
    text-align: center;
    margin-bottom: 20px;
}



#box_37 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 2px;
    border: #0bd solid;
    margin-bottom: 20px;
}

#box_37 .item {
    background: #a79795;
    color: #fff;
    margin: 5px;
    padding: 5px;
    text-align: left;

}
/* -----------------tg_37 設定結束--------------- */


/* -----------------tg_54 設定開始--------------- */
#wrapper_54 {
    width: 100%;
    margin: auto;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}


#practice_54 {
    font-size: 2rem;
    color: blue;
    text-align: center;
    margin-bottom: 20px;
}



#box_54 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 2px;
    border: #0bd solid;

}

#box_54 .item {
    background: #a79795;
    color: #fff;
    margin: 2px;
    padding: 5px;
    text-align: left;

}
/* -----------------tg_54 設定結束--------------- */


.box2 .logo {
    width: 100%;
    height: 100%;
    margin-left: 10px;
    }



    /* 頁尾區 */
.footer {
    background-color: #66625f;
    color: #fff;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    }

@media (max-width: 768px) {
    .header {
         height: 200px;
    }

    .header .title {
        font-size: 1.2rem;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
    }

    .nav ul li {
         margin: 5px 0;
    }

    .content {
        flex-direction: column;
        align-items: center;
    }

    aside {
        width: 100%;
    } 

    article {
        width: 100%;
        margin: 0;
    }

    #container {
        width: 90%;
    }

    #container h1 {
        font-size: 1.5rem;
    }

    #practice_13{
        font-size: 1.5rem;
    }


    #practice_32{
        font-size: 1.5rem;
    }


    #practice_37{
        font-size: 1.5rem;
    }

    #practice_54{
        font-size: 1.5rem;
    }


    #news-item h2 {
        font-size: 1.2rem;
    }

    #news-item p {
        font-size: 0.9rem;
    }
}