.container {
    margin: 0 auto;
    padding-top: 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.container-intro {
    color: var(--text-dark);
}


.slider_container {
    margin: 0 auto;
    width: 100%;
    height: 80vh;       /* 高度為畫面高度的 60%，可調整 */
    position: relative;
    overflow: hidden;
    border: none;       /* 移除固定邊框寬度限制 */
    box-shadow: #666 0 0 15px;
}

.slider_container div {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    animation: round 30s linear infinite;
}

.slider_container div:nth-child(1) {
    animation-delay: 0s;
}
.slider_container div:nth-child(2) {
    animation-delay: 6s;
}
.slider_container div:nth-child(3) {
    animation-delay: 12s;
}
.slider_container div:nth-child(4) {
     animation-delay: 18s; 
}
.slider_container div:nth-child(5) {
     animation-delay: 24s; 
}
/* 若有更多張圖片，依照 6s 間隔持續增加 */

@keyframes round {
    0% { opacity: 0; z-index: 1; }
    5% { opacity: 1; z-index: 10; }
    25% { opacity: 1; z-index: 10; }
    30% { opacity: 0; z-index: 1; }
    100% { opacity: 0; z-index: 1; }
}

.slider_container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.slider_container .info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 1.2em;
}



.info{
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.news{
    margin: 0 auto;
    margin-bottom: 40px;
    width: 400px;
    height: 150px;
    margin-top: 40px;
    color: var(--text-dark);
}

.news_title{
    display: flex;
    align-items: center;
    flex-direction: row;
}

.news_block{
   margin:5px;

}

.menu_title{
    display: none;
}


@-webkit-keyframes round {
    4% {
        opacity: 1;
        filter: alpha(opacity=100);
        
    }
    18% {
        opacity: 1;
        filter: alpha(opacity=100);
        
    }
    22% {
        opacity: 0;
        filter: alpha(opacity=0);
     
    }
}

@keyframes round {
    4% {
        opacity: 1;
        filter: alpha(opacity=100);
        
    }
    18% {
        opacity: 1;
        filter: alpha(opacity=100);
      
    }
    22% {
        opacity: 0;
        filter: alpha(opacity=0);
      
    }
}


.slider_container div:nth-child(6) {
    -webkit-animation-delay: 0s;
            animation-delay: 0s;
}


.slider_container div:nth-child(5) {
    -webkit-animation-delay: 5s;
            animation-delay: 5s;
}

.slider_container div:nth-child(4) {
    -webkit-animation-delay: 10s;
            animation-delay: 10s;
}

.slider_container div:nth-child(3) {
    -webkit-animation-delay: 15s;
            animation-delay: 15s;
}

.slider_container div:nth-child(2) {
    -webkit-animation-delay: 20s;
            animation-delay: 20s;
}

.slider_container div:nth-child(1) {
    -webkit-animation-delay: 25s;
            animation-delay: 25s;
}

@media (max-width:1100px){
    .menu_title{
        display: flex;
        width: 300px;
        margin: 0 auto;}

    /* .slider_container {
        margin: 30px auto;
        width: 460px;
        height: 320px;
        position: relative;
        border: 20px solid;    
        border-color: var(--home-slider);
        border-bottom-width: 100px;
        box-shadow: #666 0 0 10px;
    }
         */
}



@media (max-width:550px){
   
    .slider_container {
        max-width: 320px;
        height: 240px;
        border: 1px black solid;
    }

    .slider_container div{
        
        width: 100%;
        height: 100%;

    }

    .news{
        width: 300px;
    }
}