.page{
    margin-top: 90px;


    /* leftmenu */
    /* .......................................... */
    .leftmenu {
        position: relative;
        
        width: 230px;
        font-size: 14px;
        z-index: 1;
        display: inline-block;
        vertical-align: top;
        text-align: left;
        margin-left: 40px;
        margin-bottom: 30px;
        

        .wrap{

            background-color: #f9f9f9;
            padding: 20px;
            margin-bottom: 10px;
            padding-bottom: 5px;

        }

        .title{
                background-color: #b3433f;
                color: #FFF;
                font-size: 17px;
                padding: 8px;
                margin-left: -36px;
                margin-bottom: 13px;
                padding-left: 18px;
                margin-top: -5px;
        }

        li{
                line-height: 22px;
                padding-left: 15px;
                margin-bottom: 11px;


                &::before {
                    content: "■";  
                    position: absolute;
                    left: 0;
                    top: 0;
                    color: #aeaeae;
                    font-size: 7px;
                }

                &:hover{
                    color: #666;
                }


                &.active{
                    color: #b22828;
                }
                

                
        }
    }
    h2.maintitle {
        color: #b22828;
        font-size: 18px;
        text-align: center;

        &[name="title"]{
            font-size: 23px;
            margin-bottom: 20px;
            font-weight: bold;
            margin-top: 20px;
        }
    }

    h1.maintitle {
        font-size: 24px;
        letter-spacing: 1px;
        margin-bottom: 6px;
        margin-top: 5px;
        text-align: center;

    }



    /* info */
    /* .......................................... */

    .info{
        display: none;


        .inform{
            background-color: #f9f9f9;
            padding: 20px;
            margin-top: 30px;
            margin-bottom: 30px;
            padding-left: 50px;
            padding-right: 50px;
        }

    }


    /* list */
    /* .......................................... */

    .list{
        display: none;


            .nodata{
                text-align: center;
                color: #555;
                font-size: 15px;
                padding: 10px;
            }
        
            .table{
                display: table;
                width: 100%;
                margin-top: 25px;

                .thead{
                    background-color: #cd8888;
                    display: table-header-group;
                    color: #FFF;
                    font-size: 14px;
                    margin-top: 30px;

                    .td{
                        display: table-cell;
                        padding: 5px;
                        text-align: center;

                        &.name{
                            flex: 3;
                        }
                        &.location{
                            flex:2;
                        }

                    }
                }

                .tbody{
                    display: table-row-group;

                    .tr{
                        display: table-row;
                        font-size: 14px;
                        

                        &:hover{
                            color: #cd8888;
                        }


                        &:nth-child(even) {
                            background-color: #f9f9f9;
                        }

                        .td{
                            display: table-cell;
                            text-align: left;
                            padding: 5px;


                            &.center{
                                text-align: center;
                            }

                            /* &.name{
                                flex: 3;
                                text-align: left;
                                letter-spacing: 0px;
                            }
                            &.location{
                                flex:2;
                            } */
                        }

                    }
                }
            }

    }

    

    
    


    .mainwrap {
        margin: auto;
        font-size: 16px;
        font-weight: 400;
        line-height: 30px;
        margin-bottom: 50px;
        color: #333;
        min-height: 250px;
        display: inline-block;
        margin-left: 60px;
        text-align: left;
        margin-right: 40px;
        width: calc(100% - 380px);


        
        article{

            img{
                max-width: 100%;
                height: auto !important;
            }

            h2{
                color: #b22828;
            }
            h3{
                color: #c98080;
                margin-block-start: 10px;
                margin-block-end: 5px;
            }
            li {
                list-style: inherit;
            }

            a{
                color: #ce8a8a;
                display: inline-block;
            }
            p{
                font-size: 14px;
                margin-block-start: 0em;
                margin-block-end: 0em;
            }

            table{
                        box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.06);

                        td{
                            padding: 5px;
                        }
            }
        }   
    }

    /* attachment */
    /* ........................... */
    .attachment_wrap{
            margin-top: 50px;
            margin-bottom: 50px;

            .thetitle{
                text-align: center;
                font-weight: bold;
            }

            .attachment_list{
                    text-align: center;
                                    color: #c3bfbf;
            }


            li{
                text-align: left;
                margin-bottom: 5px;
                cursor: pointer;
                border-bottom: 1px dashed #e4e4e4;
                padding-bottom: 9px;


                .filetype{
                        background-color: #b22928;
                        color: #FFF;
                        display: inline-block;
                        padding-left: 7px;
                        padding-right: 7px;
                        font-size: 12px;
                        height: 24px;
                        line-height: 24px;
                        border-radius: 5px;
                        text-transform: uppercase;
                        letter-spacing: 0;
                }

                i{
                    background-color: #b22828;
                    color: #FFF;
                    width: 30px;
                    height: 30px;
                    border-radius: 30px;
                    text-align: center;
                    line-height: 30px;
                    margin-right: 5px;
                }
                .thename{
                    display: inline-block;
                    color: #b22828;
                    font-size: 15px;
                }

                &:nth-child(1):before{
                    background-color: #FFF;
                    border-top: 3px #e9e9e9 solid;
                    height: 1px;
                    position: relative;
                    display: block;
                    content: '';
                    margin-bottom: 7px;
                    margin-top: 10px;
                }


                &:hover{
                    opacity: 0.7;
                }
            }
    

    }
}


body[getid=""] .page .mainwrap .list{
        display: block;
}
body:not([getid=""]) .page .mainwrap .info{
        display: block;
}



/*  rwd  */
/* -----------------------------------*/
@media screen and (max-width: 1240px) {


    .page .leftmenu{
        position: relative;
        top: 0;
        left: 0;
        padding: 15px;
        width: auto;
        margin-left: 0px;
        margin-right: 0px;
        text-align: center;
        margin-bottom: 20px;
        display: block;
    }
    .leftmenu li{
        line-height: 20px;
        display: inline-block;
        padding: 5px;
    }

    .page .mainwrap {
        margin: auto;
        font-size: 14px;
        line-height: 25px;
        font-weight: 400;
        margin-bottom: 50px;
        color: #333;
        min-height: 150px;
        display: block;
        margin-left: 20px;
        text-align: left;
        margin-right: 20px;
        width: auto;
    }

    .page {
        margin-top: 0px;

        & .leftmenu {
            & li {
                margin-bottom: 0;
                padding-left: 13px;

                &::before {
                    content: "■";
                    position: absolute;
                    left: 0;
                    top: 5px;
                    color: #aeaeae;
                    font-size: 7px;
                }
            }
        }
    }


    .page .list .table .tr .td:before {
        content: attr(data-title);
        position: absolute;
        top: 9px;
        left: 15px;
        width: 30%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #b3b3b3;
    }

    .page {
        & .leftmenu {
            .title {
                background-color: #b3433f;
                color: #FFF;
                font-size: 17px;
                padding: 8px;
                margin-left: -15px;
                margin-right: -14px;
                margin-bottom: 5px;
                padding-left: 18px;
                margin-top: -14px;
            }
        }
    }

    .page .list .table .table {
        width: 100%;
        border-collapse: collapse;
    }

    .page .list .table .thead {
        display: none; /* 手機隱藏表頭 */
    }
    .page .list .table .tbody .tr{
        display: block;
        border-bottom: 1px solid #e2e2e2;
        padding-bottom: 10px;
        padding-top: 5px;
    }
    .page .list .table .tbody .tr .td{
        display: block;
        width: calc(100% - 75px);
        text-align: left;
        padding-left: 70px;
        position: relative;
        min-height: 20px;
    }

    .page .list .table .tbody .tr .td::before {
        content: attr(data-title);
        position: absolute;
        left: 10px;
        top: 5px;
        font-weight: bold;
        color: #cd8888;
    
    }


    .page {
        & .leftmenu {
            .wrap {
                padding-top: 8px;
            }
        }
    }

    .page {
        & .list {
            & .table {
                & .tbody {
                    & .tr {
                        & .td {
                            &.center {
                                text-align: left;
                            }
                        }
                    }
                }
            }
        }
    }
}