﻿.necDiv {
    font-size: 35px;
    font-weight: bold;
    color: darkblue;
    margin: 30px 0px;
}

.lawBtn {
    font-size: 25px;
    color: #4f6e2f;
}

.tab-inner {
    position:relative;
    min-height: 700px;
}

.row {
    margin-left: 0px;
    margin-right: 0px;
}

table {
    width: 100%;
    margin-bottom: 1rem;
}

/*表格*/
.title {
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    text-align: center;
    font-size: 20px;
}

thead, tbody, th, td, tr {
    border: 1px solid #e2ebf0;
    text-align: center;
    font-size: 25px;
}

thead {
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
}

th {
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    border: 1px solid #cfd9df;
}

td {
    border: solid 1px #cfd9df;
}

/*去掉底線*/
table.dataTable thead th, table.dataTable thead td {
   
    border-bottom:none!important
}
/*去掉底線*/
table.dataTable.no-footer {
    border-bottom: none!important
}


/**/
.dtbutton {
    border: 0;
    background-color: white;
    color: black;
    padding: 15px 4px;
    font-size: 17px;
    font-weight: bold;
}


table a {
    color: #003366;
}

.dtbutton:hover,
a:hover {
    color: #007bff;
    /*text-decoration: underline;*/
}

.title-box {
    display: flex;
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    flex-direction: row-reverse;
}

.img-box {
    flex: 0 0 75%;
    background-image: url(/Content/Images/post_list.jpg);
    background-size: cover;
    background-position: center 66%;
    background-repeat: no-repeat;
    position: relative;
}

.h1-box {
    position: relative;
    top: 25%;
    left: -18%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 0px;
    background-color: white;
    width: 25%;
    background-color: #0556b3B3;
    color: #ffffff;
}

.h1-box h1 {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 24px;
    line-height: 1.4;
}
/* -------------------- 主文章 -------------------- */
.tab-inner .Info-row {
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
    justify-content: space-between;
}
.tab-inner .Info-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
/*.Info-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}*/
.Info-text h2.list_title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.Info-row h2.list_title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4; /* 每行高度 */
    height: calc(1.4em * 3); /* 三行高度 */
    margin-bottom: 8px;
    overflow: hidden;
}
/*.Info-text p.Pre-Article {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}*/
/*.Info-text small {
    color: #888;
    font-size: 0.85rem;
}*/
.Info-img-wrap {
    flex: 0 0 300px;
}
.text-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* 手機版自動換行 */
    gap: 5px;
}
.Info-img-wrap img.Info-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.text-bottom .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.text-bottom .item {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
}
.text-bottom .tag-item {
    background-color: #e0f0ff;
    color: #0366d6;
}
.text-bottom .topic-item {
    background-color: #e8f8f0;
    color: #0d8a4d;
}
.no-posts {
    padding: 40px 0;
    text-align: center;
    color: #555;
    font-size: 2.4rem;
    font-weight: 500;
    letter-spacing: 1px;
    width: 100%;
}
/*延伸文章*/
.extend-tags, .extend-topics {
    padding:10px 0; 
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.extend-topics {
    display: flex;
    flex-direction: column;
}

.extend-tags .tag-item {
    background-color: #e0f0ff;
    color: #007bff; 
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.extend-tags .tag-item:hover {
    background-color: #c2e0ff;
    transform: scale(1.05);
}

.extend-tags .tag-item.active {
    background-color: #007bff;
    color: #fff;
    font-weight: 500;
}
.main-container {
    display: flex;
    align-items: flex-start;
    justify-content:center;
    gap: 20px;
}
.tab-inner {
    flex: 0 0 50%;
}
.Extend {
    flex: 0 0 15%;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    -ms-overflow-style: none;
}
.Extend::-webkit-scrollbar {
    display: none;
}
.Extend h4 {
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    margin: 15px 0 5px 0;
    padding-bottom: 5px;
}
.Extend .extend-item {
    border-bottom: 1px dashed #ccc;
    padding: 12px 8px;
    margin-bottom: 5px;
    overflow: hidden;
}
.Extend .extend-item a p {
    font-weight: 500;
    color: #333;
    margin: 5px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.Extend .extend-item a small {
    color: #007bff;
    font-size: 0.85rem;
    position: relative;
    padding-left: 12px;
}
.Extend .extend-item a small::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #007bff;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
@media(max-width:1600px) {
    .tab-inner {
        flex: 0 0 65%;
    }
}
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }
    .tab-inner,
    .Extend {
        flex: 0 0 100%; 
        position: static;
        max-height: none;
    }
    .Extend {
        margin-top: 20px;
    }
    .Info-text p.Pre-Article {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 10px;
        line-height: 1.5em;
        height: calc(1.5em * 3);
    }
}
@media (max-width: 768px) {
    .tab-inner .Info-row {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        margin-bottom: 0;
    }
    .tab-inner .col-12 {
        padding-right: 0;
        padding-left: 0;
    }
    .Info-img-wrap {
        flex: 0 0 auto;
        width: 100%; 
        margin-bottom: 10px;
        display:flex;
        justify-content:center;
    }

    .Info-text {
        width: 100%;
    }

    .Info-text small{
        display:none;
    }
}



@media screen and (max-width: 767px) {
    thead, tbody, th, td, tr {
        font-size: 17px !important;
    }

    .lawBtn {
        font-size: 1rem;
    }
}



.dataTable {
    width: 100% !important;
}


.dataTables_wrapper .dataTables_length {
    float: right !important;
}

/*h2 {
        padding: 15% 15px 1% !important;
    }*/

#newstable_processing {
    height: 50px;
    padding: 0.5em;
    background-color: #DDDDFF;
}

#knowntable_processing {
    height: 50px;
    padding: 0.5em;
    background-color: #FFFFCC;
}

.com-tab-title li a {
    font-size: 17px;
    padding: 15px 15px;
    text-align: center;
    font-weight: bold;
    color: #343a40;
    display: inline-block;
}



/*法院書狀*/
.com-top-title-1 {
    background-image: url(../Images/law.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    text-align: center;
    background-position-y: 40%;
}


.com-top-title-1 h2 ,.com-top-title-1 h1 {
    color: white;
    font-size: 3.5rem;
    margin: 0;
    padding: 5% 15px 1%;
    z-index: 1;
    position: relative;
    text-shadow: 2px 2px 6px #808080;
    font-weight: bold;
    letter-spacing: 10px;
    background: linear-gradient(to bottom, #fff0 0%, #00000040 100%);
}


.lawBtn {
    display: flex;
    justify-content: center;
    border: solid 3px #b9a77b;
    background-color: white;
    width: 90%;
    height: 5vh;
    border-radius: 10px;
    margin: auto;
}

    .lawBtn u {
        color: #b9a77b;
        line-height: 1.8;
        font-size: 2.5vh;
        text-decoration: none;
        font-weight: bold;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .lawBtn:hover {
        background-color: #b9a77b;
    }

    .lawBtn:hover u {
            color: white;
    }




/*投標三要件*/
.com-top-title-2 {
    background-image: url(https://cdn.pixabay.com/photo/2017/07/10/23/52/club-2492013_1280.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    text-align: center;
    background-position-y: 35%;
    position: relative;
}

    .com-top-title-2 h2, .com-top-title-2 h1 {
        color: white;
        font-size: 3.5rem;
        margin: 0;
        padding: 5% 15px 1%;
        z-index: 1;
        position: relative;
        text-shadow: 2px 2px 6px #808080;
        font-weight: bold;
        letter-spacing: 10px;
        background: linear-gradient(to bottom, #fff0 0%, #00000040 100%);
    }

.necDiv h1 {
    color: #b9a77b;
    font-weight: bolder;
    text-align: center;
}

.necDiv {
    border-bottom: solid 2px #b9a77b;
}


.photo-1 img {
    width:45%;
    height:auto;
    margin-bottom:50px;
}

.essentials-btn {
    width: 15vw;
    height: 15vw;
    background: linear-gradient(#b9a77b,#8e805f);
    border-radius: 10%;
    border: solid 1px white;
    font-size: 2.5vw;
    color: white;
    white-space: nowrap
}

.essentials-btn:hover {
    opacity:0.7;
    color:black;
    font-weight:bolder;
}

#3nece .fa {
    margin-top:5%;
    font-size:5vw;
}

@media screen and (max-width: 1024px) {
    .com-top-title-2 h2, .com-top-title-1 h2 {
        font-size: 2rem;
        letter-spacing: 10px;
    }
    #btnClear {
        font-size: 16px;
        padding-right: 0;
        padding-left: 0;
    }
    .container-1 input#search {
        width: 125px;
        font-size: 16px;
    }
    .title-box {
        display:none;
    }   
}

.Info-row {
    background: #fff;
    border: 1px solid #e6eaf1;
    border-radius: 0.4rem;
    /*min-height: 490px;*/
}

.Info-row:hover, .New-info:hover{
    transform:translateY(-2px);
    box-shadow: 0 6px 7px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s;
}

.Info-row .tag-box {
    display: flex;
    position: absolute;
    top: 10px;
    padding:5px 5px;
    z-index:2;
}

.Info-row .tag-box .tag {
    display: flex;
    text-align: center;
    padding: 2px;
    border-radius: 48px;
    border: 1px solid;
    background: #0467B3;
    color: white;
}

.Info-Editor, .Info-Date {
    font-size:15px;
}

.Info-Photo {
    /*max-height: 40px;*/
    margin: auto;
    border-radius: 50%;
}

.Info-row .Pre-Article {
    overflow: hidden;
/*    white-space: nowrap; */
    text-overflow: ellipsis;
/*    width: 438px;
    min-height: 80%;*/
    max-height: 80px;
}

.Info-Title {
    font-weight: 1000;
    margin-top: 15px;
    margin-bottom: 10px;
    /*font-size: 36px;*/
    font-family: "Open Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    
}

.Info-Title a {
    color: black;
}

.Info-Title a:hover {
    color: rgb(0, 123, 255);
}

.Pre-Article {
    color: gray;
}


.Posted {
    font-size: 18px;
    font-style: italic;
    margin-top: 0;
    color: gray;

}

#KNOWN .container .row .Pre-Article {
    font-weight: 300;
    margin: 0 0 10px;
}

.row hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.form-control-sm {
    border: none;
    display: inline-block;
    height: 34px;
    float: left;
    padding: 0 0.55rem;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
}

.No_Page {
    padding: 0 10px;
    line-height: 34px;
    height: 34px;
    float: left;
    margin: 0;
    font-weight: normal;
    border-right: solid 1px #bbbbbf;
}

.display-number-bottom {
    position: relative;
    top: 0px;
    border: solid 1px #bbbbbf;
    border-radius: 0.25rem;
    background: #e4e4e4;
    display: flex;
    vertical-align: bottom;
    float: right;

}

/*搜尋欄*/
.container-1 input#search {
    height: 50px;
    border-left: 1px solid #aaa;
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
    border-radius: 3px 0 0px 3px;
    padding: 5px;
    background-color: white;
    padding: 4px;
}

    .container-1 input#search::-webkit-input-placeholder {
        color: #aaa;
        padding: 0 10px;
    }

    .container-1 input#search:-ms-input-placeholder {
        color: white;
    }

#btnQuery {
    background: #e69139;
    color: #fff;
    border-radius: 0 3px 3px 0;
    margin-right: 10px;
    position: relative;
    top: 25%;
    max-width: 100%;
}

.fa-search {
    position: relative;
    top: 25%;
}

#btnClear {
    background: #57b5bf;
    color: #fff;
    border: none;
    border-radius: 5px;
    height: 50px;
    /*transform: translateY(-1px);*/
    opacity: 0.85;
}

    #btnClear:hover {
        opacity: 1;
    }



.New-info {
    padding: 15px 20px;
    background: #fff;
    border-radius: 5px;
    text-align: justify;
    margin: 10px 0;
    border: 1px solid #e6eaf1;
}

    .New-info h4,.New-info a {
        font-weight: bolder;
        color: black;
    }

    .New-info > a > p,.New-info > p {
        padding-right: 0 !important;
        margin: 0px !important;
        color: #8b8b8b;
        font-weight: bolder;
        font-size: 18px;
    }

.New-tag {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0 5px;
    color: #007bff!important;
    font-weight:normal!important;
}


    .New-tag:hover {
        color: #e69139!important;
    }

@media screen and (max-width:991) {
    .New-info > h4 {
        font-size: 20px!important; 
    }
}

.chevron {
    font-size:20px;
}

.number-bottom {
    position: relative;
    top: -38px;
    border: solid 1px #bbbbbf;
    border-radius: 0.25rem;
    background: #e4e4e4;
    display: inline-block;
    vertical-align: bottom;
    float: right;
}