﻿html {
    font-size: 22px !important;
}
body { 
    margin: 0 auto; 
    background-color:#cd3932 ;
    background: url(../images/bg_top.png) center top no-repeat, url(../images/bg_bm.jpg) center bottom repeat-x fixed; 
    font-family: Arial,Helvetica,"微軟正黑體"!important;
}
.blueBG{ 
    background-color:#0E4E88 ;
    background:url(../images/bg_top_blue.png) center top no-repeat, url(../images/bg_bm_blue.jpg) center bottom repeat-x fixed; 
}
/*body { margin: 0 auto; background:#cd3932 url(../images/110_bg.png) center top no-repeat; background-size: cover; font-family:Arial,Helvetica,"微軟正黑體"!important;}*/
/*解決圖片縮小模糊問題*/
img {
    /*image-rendering: -moz-crisp-edges; /* Firefox */
    image-rendering: -o-crisp-edges; /* Opera */
    image-rendering: -webkit-optimize-contrast; /* Webkit (non-standard naming) */
    /*image-rendering: crisp-edges; /* CSS4  Proposed */
    -ms-interpolation-mode: nearest-neighbor; /* IE (non-standard property) */
}

.wrapper{ width:100%; margin:0 auto; text-align: center; }


/*------------------ TOP鈕 ------------------*/
.topBtn { 
    display: none; width:55px; height:55px; position:fixed; right:30px; bottom:9%; z-index:98;
    background-color:rgba(226, 169, 46, 0.7); border-radius:100px; color:#fff; text-align:center; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.topBtn span {    
    display: block;  /*向上箭頭*/
    width: 15px; height: 15px;
	border-right: 2px solid #fff; border-top: 2px solid #fff;
	transform: rotate(-45deg); 
}
.topBtn:hover{ background-color: rgba(226, 169, 46, 0.9);}



/*------------------ 手機底部選單-國高中榮譽榜 ------------------*/
.ListBm{ display: none; width: 100%; position: fixed; bottom:0; text-align: center;}
.ListBm a{ display: block; text-decoration: none; color: #fff; }
.ListBm li span{ font-weight: bold;}
.ListBm li{
    flex: 1; list-style-type: none; padding: 0;
    background: #2799e0;
    background: -moz-linear-gradient(top, #2799e0, #0c578a 50%);
    background: -webkit-linear-gradient(top, #2799e0,#0c578a 50%);
    background: linear-gradient(to bottom, #2799e0,#0c578a 50%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2799e0', endColorstr='#0c578a',GradientType=0 );
    box-shadow:inset 0 -5px 0 #053d7c;
}
.ListBm.blue li{
    background: #ff4c82;
    background: -moz-linear-gradient(top, #df1653, #af002c 50%);
    background: -webkit-linear-gradient(top, #df1653, #af002c 50%);
    background: linear-gradient(to bottom, #df1653, #af002c 50%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#df1653', endColorstr='#af002c',GradientType=0 );
    box-shadow:inset 0 -5px 0 #860028;
}
.downarrow { margin-right: 11px; display: inline-block; animation: down-arrow 0.6s infinite alternate ease-in-out; }
.downarrow i { 
    display: inline-block; position: relative; top: -3px;
    width: 7px; height: 7px; border-right: 3px solid #F3DE6D; border-top: 3px solid #F3DE6D;
    transform: rotate(45deg); -webkit-transform: rotate(45deg);    
}
.downarrow i:nth-child(1){ opacity: 0.8; }.downarrow i:nth-child(2){ opacity: 0.6; }
/*箭頭動畫*/
@keyframes down-arrow {
    0% { -webkit-transform: translateX(0); opacity: 0.6; }
    100% { -webkit-transform: translateX(0.3em); opacity: 1; }
}



/*標題*/
.head{ width: 95%; max-width: 1500px; margin: 0 auto; padding-top: 5rem; text-align: center; }
.head img{ width: 100%;}
.mobileimg{ display: none;}

/*切換按鈕*/
.grade-switcher {
    position: relative;
    width: 90%;
    max-width: 850px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px auto 2.5rem;
    border-radius: 999em;
    background: #6192e1;
    box-shadow: 
        inset 0 2px 8px rgba(0,0,0,0.3),
        inset 0 -1px 4px rgba(255,255,255,0.1),
        0 2px 10px rgba(0,0,0,0.15);
    border: 2px solid #4a7bc8;
}

.switch-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 53%;
    height: 100%;
    background: linear-gradient(to left, #1844a9 0%, #3978d8 100%);
    border-radius: 999em;
    z-index: 0;
    transition: left 0.3s;
    pointer-events: none;
}
.switch-bg .triangle {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -28px;
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 18px solid #1844a9;
    z-index: 2;
    pointer-events: none;
}
.switch-btn {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1.5;
    font-weight: bold;
    padding: 12px 0;
    cursor: pointer;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    text-align: center;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.switch-btn:first-of-type{
    padding-left: 11px;
}
.switch-btn:hover:not(.active) {
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}


/*榜單*/
.gradeList{ width: 95%; max-width: 1500px; margin: 0 auto; }
.niceArea{ width: 100%; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2.5rem 1.8rem; align-items: flex-start; justify-items: center;}
.niceArea li{ width: 100%; margin: 0; list-style-type: none;}
.niceArea li img{ width: 100%; transition: all .3s ease-in-out;}
.niceArea li img:hover{ transform: scale(1.1);}

/*榜單表格grid*/
.grid-table { margin: 3% auto; display: grid; grid-template-columns: auto auto auto auto auto auto auto auto; /*border: 1px solid #3a76d0;*/ }  
.grid-table > div { padding: 12px 0; font-size: 1rem; text-align: center; border: 1px solid #c97c0f; background: #fff;}
.grid-table > div.grade{ background: #c97c0f; color: #fff;}
.grid-table.junior > div { border: 1px solid #3a76d0; }
.grid-table.junior > div.grade{ background: #3a76d0; }
.grid-table.junior > div > span{ margin-left: 5px; font-size: 0.8rem;}
.list-tip{ margin: 1.5rem auto 0; padding: 0 .5rem; color: #fff; font-size: 1rem; line-height: 1.4rem;}
@media screen and (max-width:1500px) {
    .grid-table { grid-template-columns: auto auto auto auto auto auto; }  
}

/*了解榜上學子的高分秘密*/
.bu-infor-container {
    width: 450px;
    margin: 4% auto 0;
    padding-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}
.bu-infor-container img{ width: 100%;}
.bu-infor-pic-top,
.bu-infor-pic-bottom {
    width: 50%;
    position: relative;
    display: block; 
}
.bu-infor-pic-top{ top:0px; transition:0.3s ease; cursor:pointer;}
.bu-infor-pic-bottom{ top:-15px;}
.pic-top-left:hover,.pic-top-right:hover{ top:-8px;}



/*====================================================================================================================================*/
@media screen and (max-width: 1200px) {
    body{ background-image:none;}
    /*解決background-attachment:fixed在ios中失效*/
    body:before { 
        content: ""; position: fixed; z-index: -1; top: 0; right: 0; bottom: 0; left: 0; 
        background: url(../images/bg_top.png) no-repeat, url(../images/bg_bm.jpg) repeat-x;
        background-size: 100% auto, 40% auto;
        background-color:#cd3932 ;
    }
    body.blueBG:before { 
        content: "";
        background: url(../images/bg_top_blue.png) no-repeat, url(../images/bg_bm_blue.jpg) repeat-x;
        background-size: 100% auto, 40% auto;
        background-color:#0E4E88 ;
    }
    /*body:before { content: ""; position: fixed; z-index: -1; top: 0; right: 0; bottom: 0; left: 0; background: url(../images/110_bg.png) center top no-repeat; background-size: cover;}*/
   

    /*標題*/
    .head{ width: 100%; padding-top: 3rem;}
    img.main { width: 95%; }

    /*切換按鈕*/
    .grade-switcher { max-width: 700px;}
    .switch-btn { font-size: 1.4rem;}
    .switch-bg .triangle {
        bottom: -25px;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 15px solid #1844a9;
    }

    /*榜單*/
    .niceArea {
        grid-template-columns: repeat(4, 1fr);
    }

    /*榜單表格grid*/
    .grid-table { grid-template-columns: auto auto auto auto; } 

}




/*====================================================================================================================================*/
@media screen and (max-width:992px) {
    
    img.mobileimg{ display: block; width: 95%; margin: 0 auto;}

    /* TOP鈕 ----------------------*/
    .topBtn { display: none; display: flex; width:40px; height:40px; right:2%; bottom:15%; }
    .topBtn span { width: 10px; height: 10px; }

    /*------------------ 手機底部選單 ------------------*/
    .ListBm{ display: flex; }
    .ListBm a{ padding: 1rem 0; }
    .ListBm li{ font-size: 1rem;}

    /*標題*/
    img.main { display: none;}

    /*切換按鈕*/
    .grade-switcher { max-width: 600px; margin: 3rem auto 2rem;}
    .switch-btn { font-size: 1.5rem;}


    /*榜單*/
    .niceArea { width: 95%; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1.4rem; }


    /*了解榜上學子的高分秘密*/
    .bu-infor-container{ width:80%; max-width: 500px; margin-top: 8%; padding-bottom: 15%;}

}  

/*====================================================================================================================================*/

@media screen and (max-width:767px) {   

    html {
        font-size: 20px !important;
    }

    /*標題*/
    .head{ padding-top: 2rem;}

    /*切換按鈕*/
    .grade-switcher { margin: 2rem auto;}
    .switch-btn { font-size: 1.2rem; }    
    .switch-bg .triangle {
        bottom: -18px;
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 12px solid #1844a9;
    }

    /*榜單表格grid*/
    .grid-table { grid-template-columns: auto auto; }  
    .grid-table > div:nth-of-type(4n-1){ background: #b26902; }
    .grid-table.junior > div:nth-of-type(4n-1){ background: #2b65bd; }

    /*了解榜上學子的高分秘密*/
    .bu-infor-container{ padding-bottom: 18%;}    

}

/*====================================================================================================================================*/
@media screen and (max-width:576px) {

    /*------------------ 手機底部選單 ------------------*/
    .ListBm a{ padding: .8rem 0; }
    .ListBm li{ font-size: .8rem;}    
    .downarrow i { top: -1px;}

    /*切換按鈕*/
    .grade-switcher { margin: 2rem auto 1.2rem;}
    .switch-btn { padding: 10px 0; font-size: 1.05rem;}  

    /*榜單*/
    .niceArea { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem;}


    /*榜單表格grid*/
    .list-tip{ margin: 1rem auto 0; font-size: .9rem;}

}