/* ===== 通用 =====*/
html,
body {
    font-size: 10px;
    font-family: "exo", "微軟正黑體";
}

a {
    color: #333;
}

a:hover {
    color: #333;
    text-decoration: none;
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.2rem;
}

h3 {
    font-size: 2.6rem;
}

h4 {
    font-size: 2rem;
}

h5 {
    font-size: 1.8rem;
}

p {
    font-size: 1.6rem;
    line-height: 33px;
    margin: 0;
    padding: 0;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
}

ul,
ol,
li {
    margin: 0;
    padding: 0;
}

img {
    width: 100%;
}

.container-m {
    width: 1400px;
    max-width: 1400px;
    margin: 0 auto;
}

.container-s {
    width: 1200px;
    max-width: 1200px;
    margin: 0 auto;
}

.container-xs {
    width: 960px;
    max-width: 960px;
    margin: 0 auto;
}

.content-container {
    margin: 0 8rem;
}

/* 顯示與隱藏 */
.display-1200 {
    display: none;
}

.display-992 {
    display: none;
}

.display-768 {
    display: none;
}

.display-576 {
    display: none;
}

.display-480 {
    display: none;
}

/* 表單 */
label {
    font-size: 1.6rem;
    font-weight: 900;
}

.form-check-inline {
    margin-right: 2rem;
}
li {
    font-size: 2rem;
    margin-bottom: 3rem;
}
table{
    font-size: 2rem;
    width: 100%;
}
td{
    background: #fff;
}

/* 色彩 */
:root {
    --primary-color: #0b3d88;
    --second-color: #272f36;
    --third-color: ;
    --fourth-color: #333;
    --fifth-color: #fff;
    --sixth-color: #ddd;
    --seventh-color: #aaa;
}
.color-red{
    color: #AD4747;
}

/* btn */
.btn-groups {
    display: flex;
    justify-content: center;
}
.btn {
    transition: 0.3s ease;
    font-size: 1.6rem;
    margin: 0;
    padding: 0;
    border-radius: 5px;
    color: #fff;
}
.btn-s {
    padding: 1rem 2rem;
}
.btn-primary{
    background: var(--primary-color);
    border-color: transparent;
}
.btn-primary:hover {
    color: #fff;
    background-color: var(--second-color);
    border-color: transparent;
    transform: scale(1.1);
}
.btn:hover{
    color: #fff;
}
.btn-100 {
    width: 100%;
}

/* 浮動 */
.floating-button {
    position: fixed;
    z-index: 999;
    right: 60px;
    bottom: 10%;
    z-index: 998;
}

.f-search a,
.f-top a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 99px;
    width: 60px;
    height: 60px;
    color: var(--second-color);
    box-shadow: #00000030 1px 1px 5px;
}

.f-top {
    margin-top: 2rem;
}

/* header */
header {
    background: rgba(255,255,255,0.8);
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    transition: top 0.4s ease-in-out;
    z-index: 10;
    border-bottom: 1px solid #ddd;
}

.hideUp header {
    top: -90px;
}

.header-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 8rem;
}

nav {
    display: flex;
    align-items: center;
}

.logo img {
    width: 22rem;
}

.nav-fostrap {
    display: flex;
    border-radius: 3px;
    align-items: center;
}

.nav-fostrap ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-fostrap li {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: inline-block;
    position: relative;
    font-size: 1.6rem;
    line-height: 9rem;
}

.nav-fostrap li a {
    padding: 0 2rem;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    display: inline-block;
    outline: 0;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
}

.nav-fostrap li a i {
    padding-left: 8px;
}

.nav-fostrap li:hover ul.dropdown {
    display: block;
    z-index: 7;
}

.nav-fostrap li ul.dropdown {
    position: absolute;
    display: none;
    width: 250px;
    background: #fff;
    -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    -moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    -ms-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    -o-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    padding-top: 0;
    right: 0;
}

.nav-fostrap li ul.dropdown li {
    display: block;
    list-style-type: none;
}

.nav-fostrap li ul.dropdown li a {
    padding: 8px 15px;
    font-size: 15px;
    color: #fff;
    display: block;
    font-weight: 400;
}

.nav-fostrap li ul.dropdown li:last-child a {
    border-bottom: none;
}

.nav-fostrap li:hover a {
    background: var(--primary-color);
    color: #fff;
}

.nav-fostrap li ul.dropdown li a:hover {
    background: var(--sixth-color);
}

.nav-fostrap li ul.dropdown li a {
    background: #fff;
    border-bottom: 1px solid #ddd;
    line-height: 5rem;
    color: #333;
}

.nav-fostrap li ul.dropdown li:first-child:hover a {
    border-radius: 0;
}

.nav-fostrap li:hover .arrow-down {
    border-top: 5px solid #fff;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    position: relative;
    top: 15px;
    right: -5px;
    content: '';
}

.fun-block  {
    margin-left: 2rem;
}
.fun-block a {
    background: var(--primary-color);
    color: #fff;
    padding: 1.2rem;
    border-radius: 99px;
}

/* banner */
.banner-block {
    color: #fff;
}

.banner-container {
    margin: 0 ;
    position: relative;
}
.banner-text{
    text-align: center;
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate( -50% , -50%);
    
}
.banner-text p{
    font-size: 5.8rem;
    font-weight: bold;
    font-family: cursive;
    line-height: 8rem;
    text-align: center;
    text-shadow: #000000 0px 2px 5px ;
}

/* index */
.title-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6rem;
}
.i-intro-block {
    margin-top: 10rem;
}
.i-intro-block h3,.i-intro-block p,.i-intro-block img{
    margin-bottom: 3rem;
}
.i-intro-block p:last-child{
    margin-bottom: 0rem;
}
.i-intro-block-en p{
    text-align: justify;
}

.i-news-block{
    margin-top: 10rem;
}
.card-deck .card {
    flex: 1;
    height: 100%;
    box-shadow: #00000020 0 2px 5px;
    border-radius: 1rem;
}
.card-body {
    padding: 2rem 2rem 3rem;
}
.i-news-date{
    margin-bottom: 8px;
}
.card-title{
    font-size: 1.6rem;
    line-height: 2.6rem;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.card-text {
    border-top: 1px solid #ddd;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}
.i-news-block .card img {
    height: 235px;
}
.card-deck .card {
    flex: 1;
    height: 100%;
}
.news-img {
    border-radius: 1rem 1rem 0 0;
    height: 230px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.i-member-block {
    margin-top: 10rem;
}
.member-item {
    text-align: center;
}
.member-item h4 {
    font-weight: bold;
    margin-top: 3rem;
    margin-bottom: 1rem;
}
.member-item img {
    box-shadow: #00000020 0 2px 5px;
    border-radius: 99%;
}
.member-text{
    text-align: center;
    margin-top: 7rem;
}

.i-social-block {
    margin-top: 10rem;
}
.socail-group {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 6rem 0;
}

.social-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.social-item a {
    padding: 0 4rem;
}
.social-item a:first-child {
    padding: 0 4rem 0 0;
}
.social-item a:last-child {
    padding: 0 0rem 0 4rem;
}
.social-item a i {
    font-size: 2.4rem;
    color: var(--primary-color);
}
.btn-subscribe{
    margin-left: 3rem;
}

.footer-block {
    padding: 6rem;
    text-align: center;
}
.footer-block .row {
    align-items: center;
}
.footer-block img {
    width: 25rem;
}
.contact-block a:hover{
    color: #0b3d88;
}

/* news */
.copy {
    background: var(--primary-color);
    text-align: center;
    padding: 1rem;
    color: #fff;
    letter-spacing: 1px;
}
.content-block {
    margin-top: 16rem;
    min-height: 769px;
}
.content-block .card-item{
    margin-bottom: 4rem;
}
.news-content{
    padding-bottom: 6rem;
}
.news-content p{
    text-align: justify;
}
/*--------------------------------------------------------------------------------RWD--------------------------------------------------------------------------------*/
@media(max-width:1400px) {
    /*--------------------------------------------------------------------------------------------------------------------------------------------------------1400*/
    /* ===== 通用 =====*/
    .displaynone-1400 {
        display: none;
    }
    .container-s {
        width: 95%;
    }

    /* header */
    .nav-fostrap li a {
        font-size: 15px;
    }

    /* banner */
    .banner-text p {
        font-size: 3.2rem;
        line-height: 5.7rem;
    }
}

@media(max-width:1280px) {
    /*--------------------------------------------------------------------------------------------------------------------------------------------------------1280*/
    /* ===== 通用 =====*/
    .display-1280 {
        display: block;
    }

    .displaynone-1280 {
        display: none;
    }

    /* header */
    .logo img {
        padding: 2rem 0;
    }

    .header-container {
        padding: 0 4rem 0 2rem;
    }

    header {
        box-shadow: none;
    }

    .nav-fostrap {
        background: #fff;
        width: 250px;
        height: 100%;
        display: block;
        position: fixed;
        right: -250px;
        top: 0px;
        -webkit-transition: right 0.25s ease;
        -moz-transition: right 0.25s ease;
        -ms-transition: right 0.25s ease;
        -o-transition: right 0.25s ease;
        transition: right 0.25s ease;
        margin: 0;
        border: 0;
        border-radius: 0;
        overflow-y: auto;
        overflow-x: hidden;
        height: 100%;
        z-index: -1;
        border: 1px solid #ddd;
        top: 82px;
    }

    .nav-fostrap ul {
        display: contents;
        align-items: inherit;
    }

    .title-mobile {
        position: inherit;
        top: 10px;
        left: 1.5rem;
    }

    .title-mobile img {
        width: 135px;
    }

    .nav-fostrap.visible {
        right: 0px;
        -webkit-transition: right 0.25s ease;
        -moz-transition: right 0.25s ease;
        -ms-transition: right 0.25s ease;
        -o-transition: right 0.25s ease;
        transition: right 0.25s ease;
        z-index: 998;
        top: 82px;
        overflow-y: scroll;
        width: 30rem;
    }

    .nav-bg-fostrap {
        display: inline-block;
        width: 100%;
        position: absolute;
        top: 0px;
        left: 0px;
        border-bottom: 1px solid #ddd;
    }

    .navbar-fostrap {
        display: inline-block;
        vertical-align: middle;
        height: 50px;
        cursor: pointer;
        margin: 0;
        position: absolute;
        top: 15px;
        right: 0;
        padding: 12px;
        z-index: 999;
    }

    .navbar-fostrap span {
        height: 2px;
        background: #333;
        margin: 5px;
        display: block;
        width: 20px;
    }

    .navbar-fostrap span:nth-child(2) {
        width: 20px;
    }

    .navbar-fostrap span:nth-child(3) {
        width: 20px;
    }

    .nav-fostrap ul {
        padding-top: 90px;
        width: 100%;
    }

    .nav-fostrap li {
        display: block;
    }

    .nav-fostrap li a {
        display: block;
        line-height: 7rem;
        border-bottom: 1px solid #ddd;
    }

    .nav-fostrap li:first-child:hover a {
        border-radius: 0;
    }

    .nav-fostrap li ul.dropdown {
        position: relative;
    }

    .nav-fostrap li ul.dropdown li a {
        border-bottom: 1px solid #ddd;
    }

    .nav-fostrap li:hover ul.dropdown {
        width: 100%;
        box-shadow: none;
        border-bottom: 1px solid #ddd;
    }

    .nav-fostrap li ul.dropdown li a {
        padding: 10px 10px 10px 30px;
    }

    .nav-fostrap li:hover .arrow-down {
        border-top: 5px solid #fff;
    }

    .arrow-down {
        border-top: 5px solid #505050;
        position: absolute;
        top: 32px;
        right: 10px;
    }

    .cover-bg {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .fun-block {
        margin: 3rem 2rem;
    }

    .news-img {
        height: 200px;
    }

    /* news */
    .content-block {
        margin-top: 12rem;
    }
}

@media(max-width:1200px) {
    /*--------------------------------------------------------------------------------------------------------------------------------------------------------1200*/
    /* ===== 通用 =====*/
    .display-1200 {
        display: block;
    }

    .displaynone-1200 {
        display: none;
    }

    .container-s {
        width: 90%;
    }

    .footer-block img {
        width: 20rem;
    }
}

@media(max-width:992px) {
    /*--------------------------------------------------------------------------------------------------------------------------------------------------------992*/
    /* ===== 通用 =====*/
    .display-992 {
        display: block;
    }

    .displaynone-992 {
        display: none;
    }
    h1 {
        font-size: 3.2rem;
    }
    h2 {
        font-size: 2.6rem;
    }
    h3 {
        font-size: 2rem;
    }
    li {
        font-size: 1.6rem;
        line-height: 33px;
        margin-bottom: 2rem;
        margin-left: 2rem;
    }
    .floating-button {
        right: 30px;
    }

    /* banner */
    .banner-text {
        top: 60%;
    }

    /* index */
    .i-intro-block,.i-news-block,.i-social-block,.i-member-block {
        margin-top: 6rem;
    }
    .title-block {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 4rem;
    }
    .i-intro-block h3, .i-intro-block p, .i-intro-block img {
        margin-bottom: 2rem;
    }

    .news-img {
        height: 130px;
    }
    .card-title {
        -webkit-line-clamp: 1;
    }
    .card-text {
        -webkit-line-clamp: 2;
    }
    .card-body {
        padding: 1.5rem 1.5rem 2rem;
    }

    .member-item {
        margin-bottom: 3rem;
    }
    .member-text{
        margin-top: 4rem;
    }
    
    .footer-block img {
        width: 15rem;
    }
    
    /* news */
    .content-block {
        margin-top: 12rem;
    }
    .news-content {
        padding-bottom: 4rem;
    }
}

@media(max-width:768px) {
    /*-------------------------------------------------------------------------------------------------------------------------------------------------------768*/
    /* ===== 通用 =====*/
    .floating-button {
        right: 30px;
        bottom: 5%;
    }
    .display-768 {
        display: block;
    }

    .displaynone-768 {
        display: none;
    }

    /* footer */
    .footer-block img {
        width: 22rem;
    }

    /* index */
    .title-block {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 4rem;
    }

    .card-item{
        margin-bottom: 4rem;
    }
    .news-img {
        height: 180px;
    }

    .footer-block img {
        margin-bottom: 4rem;
    }

    .socail-group {
        flex-direction: column;
        padding: 0;
    }
    .social-item {
        justify-content: space-around;
        padding: 6rem 0 4rem;
    }
    
}

@media(max-width:576px) {
    /*-------------------------------------------------------------------------------------------------------------------------------------------------------576*/
    /* ===== 通用 =====*/
    .display-576 {
        display: block;
    }

    .displaynone-576 {
        display: none;
    }
    h1 {
        font-size: 2.6rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.8rem;
    }
    .floating-button {
        position: fixed;
        bottom: 0;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        width: 100%;
        right: 0;
        left: 0;
    }

    .f-top {
        width: 100%;
        border-radius: 0;
        margin-top: 0rem;
    }

    .f-top a {
        width: 100%;
        border-radius: 0;
        background: var(--primary-color);
        color: #fff;
    }

    /* footer */
    .footer-block {
        padding: 4rem 0 8rem;
    }

    /* index */
    .i-intro-block, .i-news-block, .i-social-block,.i-member-block {
        margin-top: 5rem;
    }

    .card-item{
        margin-bottom: 2.5rem;
    }
    .news-img {
        height: 230px;
    }

    .member-text{
        margin-top: 2rem;
    }

    .social-item {
        padding: 4rem 0 2rem;
    }
    
    /* news */
    .content-block {
        margin-top: 11rem;
    }
}

@media(max-width:480px) {
    /*-------------------------------------------------------------------------------------------------------------------------------------------------------480*/
    /* ===== 通用 =====*/
    .display-480 {
        display: block;
    }

    .displaynone-480 {
        display: none;
    }
    .content-block .btn-s {
        width: 100%;
    }

    /* header */
    .logo img {
        width: 150px;
    }

    .header-container {
        padding: 0 1rem;
    }

    .navbar-fostrap {
        top: 8px;
    }

    .nav-fostrap {
        top: 69px;
    }
    .nav-fostrap.visible {
        top: 69px;
    }

    /* index */
    .news-img {
        height: 230px;
    }

    .social-item {
        justify-content: space-between;
    }
    .social-item a:first-child {
        padding: 0;
    }
    .social-item a:last-child {
        padding: 0;
    }

    /* news */
    .content-block {
        margin-top: 9rem;
    }
}
@media(max-width:420px) {
    /*-------------------------------------------------------------------------------------------------------------------------------------------------------420*/
    .social-item a {
        padding: 0px 1rem;
    }
}
@media(max-width:380px) {
    /*-------------------------------------------------------------------------------------------------------------------------------------------------------420*/   
}