@charset 'utf-8';

/*
-----------------------------
For 1024px or less
-----------------------------
*/
@media screen and (max-width: 1024px)
{
    html,
    body
    {
        font-size: 14px;
    }

    .mobile-element
    {
        display: block;
    }

    /** Layout **/
    #container
    {
        padding-top: 60px;
    }
    #nav-wrapper,
    #language-wrapper,
    #search-wrapper
    {
        top: 60px;
    }
    #header-inner
    {
        height: 60px;
        padding-top: 18px;
    }
    #nav-bg
    {
        z-index: 1002;
    }
    #nav-wrapper,
    #search-wrapper,
    #language-wrapper,
    #header-inner #nav-indicator
    {
        display: none !important;
    }

    /** Header **/
    #header-inner h1
    {
        /* 圖的大小有調整過如果沒處理會被拉長
        width: 116px;
        */
        width: 160px;
        height: 24px;
    }
    #header-inner .menu-button
    {
        left: 10px;
        width: 22px;
        height: 22px;
        margin-top: -11px;
    }
    #header-inner .language-button
    {
        display: none;
    }
    #header-inner .search-button
    {
        font-size: 16px;
        right: 0;
    }

    /** Language **/
    /** Search **/
    /** Breadcrumb **/
    #breadcrumb-inner
    {
        position: relative;
        padding: 18px 10px;
        color: #000;
        border-bottom: 1px solid #ddd;
    }

    /** Mobile Navigator **/
    #mobile-nav-wrapper
    {
        position: fixed;
        z-index: 1003;
        top: 0;
        bottom: 0;
        left: -280px;
        width: 280px;
        transition: left .2s;
        background: #fff;
    }
    #mobile-nav-wrapper.open
    {
        left: 0;
    }
    #mobile-nav-inner
    {
        padding: 50px 4%;
    }
    #mobile-nav-inner ul
    {
        padding: .8em 0;
        border-top: 1px solid #ddd;
    }
    #mobile-nav-inner ul li
    {
        font-size: 1.05em;
        line-height: 1.25em;
        padding: .7em 0;
    }
    #mobile-nav-inner ul.lang li
    {
        font-size: .95em;
    }
    #mobile-nav-inner ul li a
    {
        color: #808080;
    }
    #mobile-nav-inner ul li a.active
    {
        color: #333;
    }
    #mobile-nav-inner .close
    {
        font-size: 1.33em;
        position: absolute;
        top: 16px;
        right: 4.2%;
        cursor: pointer;
        color: #666;
    }

    /** Mobile Search **/
    #mobile-search-wrapper
    {
        position: fixed;
        z-index: 1003;
        top: -100%;
        right: 0;
        left: 0;
        height: 100%;
        transition: all .2s;
        opacity: 0;
        background: #fff;
    }
    #mobile-search-wrapper.open
    {
        top: 0;
        opacity: 1;
    }
    #mobile-search-inner
    {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 80%;
        max-width: 320px;
        transform: translate(-50%, -50%);
    }
    #mobile-search-inner .title
    {
        font-size: 1.4em;
        margin-bottom: 1.5em;
        text-align: center;
    }

    #mobile-search-inner form
    {
        position: relative;
        margin-bottom: 3em;
    }
    #mobile-search-inner input[type='text']
    {
        font-size: 1.1em;
        position: relative;
        width: 100%;
        padding: .6em .8em;
        color: #666;
        border: 1px solid #b3b3b3;
    }

    #mobile-search-inner button[type='submit']
    {
        font-size: 1.2em;
        position: absolute;
        top: 10px;
        right: 9px;
        color: #999;
        border: none;
        background: none;
    }
    #mobile-search-inner .advanced
    {
        text-align: center;
    }
    #mobile-search-inner .advanced p
    {
        margin-bottom: 1.6em;
    }
    #mobile-search-inner .advanced a
    {
        font-size: 1.02em;
        text-decoration: underline;
        color: #808080;
    }
    #mobile-search-wrapper .close
    {
        font-size: 1.33em;
        position: absolute;
        top: 16px;
        right: 20px;
        cursor: pointer;
        color: #666;
    }

    /** Main **/
    #main-inner
    {
        padding: 30px 0;
    }
    #main-inner.border-rt:after
    {
        top: 30px;
        bottom: 30px;
    }
    #main-content-inner
    {
        padding: 0 30px 20px 10px;
    }
    #main-content h2
    {
        margin-bottom: 30px;
    }
    #main-aside-inner
    {
        padding-right: 0;
        padding-left: 30px;
    }

    #main-aside .set
    {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    #main-aside .set h3
    {
        font-size: 1.15em;
        margin-bottom: 1.3em;
    }

    /** Footer **/
    #footer-inner
    {
        padding: 20px 10px 60px 10px;
    }
    #copyright-inner
    {
        padding: 1em 10px;
    }
    #copyright-inner
    {
        padding: 12px 10px;
    }
    #copyright-inner .sinica
    {
        margin-top: 2px;
    }
    #back-to-top
    {
        line-height: 36px;
        position: fixed;
        z-index: 1000;
        right: -36px;
        bottom: 60px;
        width: 36px;
        height: 36px;
        cursor: pointer;
        transition: right .2s;
        text-align: center;
        color: #333;
        background: #e6e6e6;
    }
    #back-to-top.show
    {
        right: 0;
    }

    /** Carousel **/
    .flickity-prev-next-button
    {
        width: 72px;
        height: 72px;
    }

    /** Thumb List **/
    .thumb-box
    {
        margin-bottom: 8px;
    }
    .thumb-list:before
    {
        left: 32.5%;
    }

    .thumb-list:after
    {
        left: 67.5%;
    }
    .thumb-list li
    {
        width: 30%;
        margin-right: 5%;
    }

    /** Pagination **/
    .pagination
    {
        padding-top: 40px;
    }
    .pagination .pager
    {
        margin: 0 .8em;
    }

    .pagination .pager a
    {
        margin: 0 .8em;
    }

    .pagination select
    {
        display: block;
        width: 100%;
        max-width: 180px;
        margin: 20px auto;
    }

    /** Article **/
    .main-article h1
    {
        font-size: 1.25em;
        margin-bottom: 1.2em;
    }
    /** Related List **/
    .related-list .inner
    {
        padding: 30px 0;
    }

    .related-list h2
    {
        font-size: 1.25em;
        margin-bottom: 2em;
    }
    /** Keywords **/
    .keywords-list .inner
    {
        padding: 30px 20px 0 20px;
    }

    .keywords-list .inner:before
    {
        top: 30px;
        bottom: 30px;
    }

    .keywords-list .inner:after
    {
        top: 30px;
        bottom: 30px;
    }

    .keywords-list .set
    {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .keywords-list h3
    {
        font-size: 1.12em;
    }

    /** Image Viewer **/
    .image-viewer
    {
        margin-bottom: 30px;
    }
    .image-viewer.fullscreen .title
    {
        font-size: 1.1em;
    }
    .image-viewer.fullscreen .close
    {
        font-size: 1.4em;
        top: 10px;
        right: 10px;
    }


    /** index.html **/
    #hero-inner
    {
        padding: 140px 0 100px 0;
    }
    #hero-form
    {
        width: 80%;
        max-width: 360px;
    }
    #hero-form input[type='text']
    {
        font-size: 1.1em;
        padding: .5em .6em;
    }
    #hero-form button[type='submit']
    {
        font-size: 1.2em;
        top: 10px;
    }
    #hero-form .advanced
    {
        position: static;
        margin: 10px 0;
        text-align: right;
    }

    #hero-form .advanced p
    {
        display: inline;
        margin: 0 0 0 1em;
    }
    #selection
    {
        padding: 40px 0;
    }
    #selection .column
    {
        width: 33.33333333333333%;
        padding: 0 2.5%;
    }
    #selection .column h2
    {
        font-size: 1.2em;
        margin-bottom: .8em;
        padding: .75em 0;
    }
    #selection .column .title
    {
        font-size: 1.02em;
    }
    #news-carousel
    {
        padding: 40px 0;
    }
    #news-carousel .cell
    {
        height: 360px;
    }
    #summary-statistic .inner
    {
        padding: 40px 0 50px 0;
    }
    #summary
    {
        padding: 0;
        padding-right: 30px;
        padding-bottom: 40px;
    }

    #summary h2
    {
        font-size: 1.25em;
    }
    #summary .description
    {
        font-size: 1em;
        line-height: 2em;
    }

    #statistic
    {
        padding: 0;
        padding-left: 30px;
    }
    #statistic h2
    {
        font-size: 1.25em;
    }
    #links .inner
    {
        padding: 40px 0;
    }


    /** site_read.html **/
    #site-history
    {
        margin-top: 30px;
        padding: 30px 0;
    }

    #site-history h2
    {
        font-size: 1.15em;
        margin-bottom: 1.8em;
    }
    #site-history .more,
    #site-history .less
    {
        top: 30px;
    }

    /** search.html **/
    #search-header
    {
        margin-bottom: 40px;
        padding: 0 10px;
    }
    #search-header h2
    {
        font-size: 1.2em;
        margin-bottom: .6em;
        /* Hans modified */
        margin-right: 9em;
        line-height: 1.5em;
    }
    #search-tabs
    {
        margin-bottom: 30px;
        padding: 0 10px;
    }
    #search-tabs a
    {
        width: 30%;
        max-width: 200px;
    }
    #search-filter-inner
    {
        padding: 0 20px 0 0;
    }

    #search-result .col
    {
        padding: .6em 1em;
    }
    #search-result img
    {
        max-width: 90px;
        max-height: 90px;
    }

    /* Added by ASCDC */
    #search-result-inner .data .col {
        height: 100px;
    }
}






/*
-----------------------------
For 768px or less
-----------------------------
*/

@media screen and (max-width: 768px)
{
    /** Breadcrumb **/
    #breadcrumb-wrapper
    {
        display: none;
    }


    /** Main **/
    #main-inner
    {
        padding: 30px 0 0 0;
    }
    #main-inner.border-rt:after
    {
        display: none;
    }
    #main-content
    {
        float: none;
        width: 100%;
        border-bottom: none;
    }
    #main-content-inner
    {
        padding: 0 0 20px 0;
    }
    #main-content h2
    {
        font-size: 1.2em;
        text-align: left;
    }
    #main-inner .filter-button
    {
        font-size: .96em;
        position: absolute;
        top: 20px;
        right: 0;
        display: block;
        padding: .7em .8em;
        cursor: pointer;
        color: #666;
        border: 1px solid #ccc;
        border-radius: 3px;
    }

    #main-aside
    {
        float: none;
        width: 100%;
    }
    #main-aside-inner
    {
        padding: 0;
    }

    #main-aside.mobile-aside
    {
        float: none;
        width: 100%;
        padding: 60px 4% 0 4%;
    }
    #main-aside .set
    {
        margin-bottom: 0;
        padding-top: 20px;
        border-top: 1px solid #ddd;
        border-bottom: none;
    }
    #main-aside .set.category h3
    {
        margin-bottom: 30px;
    }
    #main-aside .set.related
    {
        overflow: hidden;
        zoom: 1;
    }
    #main-aside .set.related .cell
    {
        float: left;
        width: 48%;
        margin: 0 4% 0 0;
    }
    #main-aside .set.related .cell:nth-child(2n)
    {
        margin-right: 0;
    }
    #main-aside .set.related .cell .title
    {
        height: 90px;
    }
    .mobile-aside
    {
        position: fixed;
        z-index: 1003;
        top: 0;
        bottom: 0;
        left: -100%;
        overflow: auto;
        width: 100%;
        transition: all .2s;
        background: #fff;
    }
    .mobile-aside.open
    {
        left: 0;
    }
    .mobile-aside .close
    {
        font-size: 1.4em;
        position: absolute;
        top: 22px;
        right: 4%;
        display: block;
        cursor: pointer;
        color: #666;
    }

    /** Footer **/
    #footer-inner
    {
        padding-bottom: 30px;
    }
    #footer-nav
    {
        float: none;
        margin-bottom: 30px;
        text-align: center;
    }

    #footer-nav li
    {
        display: inline;
        float: none;
        margin: 0 1em;
    }
    #footer-social
    {
        position: static;
        top: 0;
        float: none;
        text-align: center;
    }

    #footer-social i
    {
        margin: 0 10px;
    }

    /** Copyright **/
    #copyright-inner .designer
    {
        display: none;
    }
    #copyright-inner .digital-center:after
    {
        display: none;
    }
    #copyright-inner .digital-center a
    {
        display: none;
    }


    /** Related List **/
    .related-list .inner
    {
        position: relative;
        overflow: hidden;
        width: 100%;
        border: none;
    }

    .related-list .inner:before
    {
        position: absolute;
        top: 1px;
        right: 4%;
        left: 4%;
        height: 1px;
        content: '';
        background: #ddd;
    }
    .related-list .inner:after
    {
        display: none;
    }
    .related-list .carousel
    {
        width: 100%;
    }

    .related-list .cell
    {
        width: 50%;
        margin: 0 2%;
    }
    .related-list .flickity-prev-next-button.previous
    {
        left: 1%;
    }

    .related-list .flickity-prev-next-button.next
    {
        right: 1%;
    }


    /** Carousel **/
    .flickity-prev-next-button
    {
        display: none;
    }

    /** Keywords **/
    .keywords-list
    {
        display: none;
    }

    /** index.html **/
    #selection
    {
        padding: 0;
    }

    #selection .inner
    {
        width: 100%;
        margin: 0;
    }

    #selection .column
    {
        position: relative;
        float: none;
        width: 100%;
        padding: 30px 0;
        border: none;
    }
    #selection .column:after
    {
        position: absolute;
        right: 4%;
        bottom: 0;
        left: 4%;
        height: 1px;
        content: '';
        background: #ddd;
    }
    #selection .list {
        margin-bottom: 7%;
    }
    #selection .list:after
    {
        display: none;
        content: 'flickity';
        /* hide :after */
    }
    #selection .column .item
    {
        width: 28%;
        margin: 0 2%;
    }


    #summary
    {
        float: none;
        width: 100%;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    #statistic
    {
        margin-left: 0;
        padding: 0;
        padding-top: 40px;
    }

    #news,
    #links
    {
        display: none;
    }

    /** subject.html **/
    #subject .related-list .inner:after
    {
        display: none;
    }

    /** site_read.html **/
    #site-history
    {
        margin: 0;
        padding: 30px 0 0 0;
    }



    /** search.html **/
    #search #main-inner .filter-button
    {
        top: 30px;
    }
    #search-header .button
    {
        display: none;
    }
    #search-tabs
    {
        position: relative;
        height: auto;
        margin-bottom: 30px;
        padding: 0;
        border: 1px solid #ddd;
    }
    #search-tabs:before
    {
        display: none;
    }
    #search-tabs:after
    {
        position: absolute;
        top: .8em;
        right: .8em;
        width: 14px;
        height: 14px;
        content: '';
        border: none;
        background: url(images/arrow-down.svg) no-repeat 50% 50%;
        background-size: contain;
    }
    #search-tabs a
    {
        font-size: 1em;
        font-weight: normal;
        display: none;
        float: none;
        width: 100%;
        max-width: none;
        height: 100%;
        padding: .8em;
        border: none;
    }
    #search-tabs a.active
    {
        display: block;
        color: #000;
        border: none;
    }
    #search-tabs.open a
    {
        display: block;
    }

    #search-filter
    {
        width: 100%;
    }
    #search-filter-inner
    {
        padding: 60px 4%;
    }
    #search-filter input[type='text']
    {
        padding: .5em .7em .7em .7em;
        border: 1px solid #ddd;
        background-color: #f7f7f7;
    }
    #search-body:after
    {
        display: none;
    }
    #search-body #search-result .col:first-child
    {
        display: none;
    }
    #search-body #search-result .data .col:nth-child(2)
    {
        width: 72px;
        padding-left: 0;
    }
    #search-result img
    {
        max-width: 60px;
        max-height: 60px;
    }
    #search-result
    {
        float: none;
        width: 100%;
        padding-bottom: 30px;
        padding-left: 0;
    }

    /** terms.html **/
    #terms .category-list
    {
        overflow: hidden;
        zoom: 1;
    }
    #terms .category-list li
    {
        float: left;
        width: 49%;
        margin-right: 1%;
    }
}






/*
-----------------------------
For 640px or less
-----------------------------
*/
@media screen and (max-width: 640px)
{
    /** Pagination **/
    .pagination
    {
        padding-top: 20px;
        padding-bottom: 0;
    }
    .pagination .pager
    {
        display: none;
    }
    .pagination .mobile-pager
    {
        display: inline-block;
        margin: 0 2em;
        letter-spacing: .1em;
    }

    /** Thumb List **/
    .thumb-list:before,
    .thumb-list:after
    {
        display: none;
    }

    .thumb-list li
    {
        width: 48%;
        margin-right: 4%;
    }
    .thumb-list li:nth-child(3n)
    {
        margin-right: 4%;
    }

    .thumb-list li:nth-child(2n)
    {
        margin-right: 0;
    }

    /** Image Viewer **/
    .image-viewer .pager .cell
    {
        width: 48px;
        height: 48px;
        margin-right: 1px;
        margin-bottom: 3px;
    }

    /** Meta Data **/
    dl.meta-data dt
    {
        float: none;
        width: 100%;
        margin-bottom: 5px;
    }

    dl.meta-data dd
    {
        margin-bottom: 20px;
        margin-left: 0;
    }
    /** index.html**/
    #selection .column .item
    {
        width: 49%;
        margin: 0 2%;
    }
    /** site_read.html **/
    #site-history
    {
        font-size: .96em;
    }
    #site-history .custom-table .td
    {
        padding: .5em .8em;
    }

    /** search.html **/
    #search-body #search-result .col:last-child
    {
        display: none;
    }

    /** search_advanced.html **/
    #advanced-search-form .custom-table,
    #advanced-search-form .custom-table .row,
    #advanced-search-form .custom-table .th,
    #advanced-search-form .custom-table .td
    {
        display: block;
    }
    #advanced-search-form .custom-table .td
    {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    #advanced-search-form .condition
    {
        clear: right;
        overflow: hidden;
        zoom: 1;
        padding-bottom: 10px;
    }
    #advanced-search-form .condition select:first-child
    {
        width: 100%;
        margin-bottom: 5px;
    }
    #advanced-search-form .condition input[type='text']
    {
        width: 60%;
        margin-bottom: 5px;
    }
    #advanced-search-form .condition input[type='text'] + select
    {
        width: 38.5%;
        margin: 0;
        margin-bottom: 5px;
    }
    #advanced-search-form .remove-condition
    {
        position: static;
        float: right;
        margin-top: 5px;
    }
    #advanced-search-form #add-condition
    {
        margin-top: 5px;
        margin-bottom: 15px;
    }
    #advanced-search-form .option-list li,
    #advanced-search-form .option-list.hr li
    {
        font-size: .98em;
        display: block;
        float: none;
        clear: left;
    }
    #advanced-search-form .option-list li .note
    {
        display: none;
    }
}







/*
-----------------------------
For 480px or less
-----------------------------
*/
@media screen and (max-width: 480px)
{
    /** Related List **/
    .related-list .cell
    {
        width: 70%;
        margin: 0 2%;
    }

    /** index.html **/
    #hero, .parallax-mirror
    {
        display: none !important;
    }
    #hero .tag-list
    {
        display: none;
    }
    #selection .column .item
    {
        width: 70%;
        margin: 0 2%;
    }

    /** terms.html **/
    #terms .category-list li
    {
        float: none;
        width: 100%;
        margin-right: 0;
    }

    .thumb-box-wrapper .title {
        margin-bottom: 25px;
    }
}
@media screen and (max-width: 900px)
{
    #search-header h2
    {
        /* Hans modified */
        margin-right: 10em;
    }
}
@media screen and (max-width: 768px)
{
    #search-header h2
    {
        /* Hans modified */
        margin-right: 4em;
        line-height: 1.5em;
    }
}