@charset "utf-8";
@import url('fonts.googleapis.com');
/* CSS Document */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
    word-break: break-all;
    font-family:"Roboto", "Noto Sans" , -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif ;
}
a hover {
    color: #ab0000;
    text-decoration: none;
}

/*Comtent*/
.main-container {
    height: 100vh;
}
.contant-home {
    width: 80%;
    min-height: 72vh;
    margin: 0 auto;
}
.main-container > .foot {
    position: sticky;
    top: 100vh;
}

@media (max-width: 992.9px){
    .contant-home {
        width: 90%;
        min-height: 72vh;
        margin: 0 auto;
    }
}

/*Head*/
.HeadBg {
    width: 100%;
    background: url(../images/Head_bg.png) #ab0000 no-repeat center top ;
    color: #fff; text-align: center; font-size: 2rem;
    padding: 0.5rem 0 0.625rem 0;
    margin-bottom: 1.5rem;
}
.HeadBg a:link,
.HeadBg a:visited,
.HeadBg a:hover,
.HeadBg a:active,
.HeadBg a:focus {
    color: #fff;
    text-decoration: none;
}

/*Main*/
.TopicHeading01 {
    width: 100%;
    border-bottom: #f2f2f3 solid 0.25rem;
    margin-bottom: 1rem;
}
.TopicHeading01 > .title {
    display: inline-block;
    border-bottom: #ab0000 solid 4px;
    color: #ab0000;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0 0 0.25rem 0;
    margin-bottom: -0.25rem;
}
.ListArea {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
.ListArea > .ListItem {
    width: 28%;
    background-color: #fff;
    border: #dfdfdf solid 1px;
    border-radius: 1.5rem;
    padding: 1.25rem;
    box-shadow: 0 6px 0 0 #dfdfdf ;
    margin: 1rem 0;
    transition: transform 0.3s ease,box-shadow 0.3s ease ;
}
.ListArea > .ListItem:hover,
.ListArea > .ListItem:active,
.ListArea > .ListItem:focus {
    box-shadow: 0 6px 0.75rem rgba(0, 0, 0, 16%); 
    transform: translateY(-8px);
}
.ListImg {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
}
.ListTag {
    background-color: #ab0000;
    color: #fff;
    font-size: 1rem;
    padding: 0.25rem 1rem;
    border: none;
    border-radius: 100px;
}
.ListTitle {
    font-size: 1.875rem;
    font-weight: 600;
    margin: 0.25rem 0;
    color: #000;
}
.ListTitle a,
.ListTitle a:visited {
    color: #000; text-decoration: none;
    transition: color 0.2s ease; /* 加入平滑變色效果 */
}
.ListTitle a:hover , 
.ListTitle a:active , 
.ListTitle a:focus {
    color: #ab0000; text-decoration: none;
}
.Listlink {
    display: flex;
    justify-content: flex-end; /* 讓內容靠右 */
    font-size: 0.875rem;
    padding-right: 0.25rem;
}
/* 連結初始與造訪過狀態 */
.Listlink a, 
.Listlink a:visited {
    color: #c4c4c4;
    text-decoration: underline;
    transition: color 0.2s ease; /* 加入平滑變色效果 */
}
/* 懸停、點擊、鍵盤選取狀態 */
.Listlink a:hover, 
.Listlink a:active, 
.Listlink a:focus {
    color: #ab0000;
    text-decoration: none;
    outline: none; /* 如果有自訂 hover 樣式，可考慮處理 focus 框 */
}

@media (max-width: 992.9px){
    .ListArea > .ListItem {
        width: 100%;
    }
}

/*Page*/
.Guidebar {
    font-size: 1rem;
    color: #999;
    margin: 1rem 0;
}
.Guidebar a:link,
.Guidebar a:visited {
    font-size: 1rem;
    color: #999;
    text-decoration: none;
}
.Guidebar a:hover,
.Guidebar a:active,
.Guidebar a:focus {
    font-size: 1rem;
    color: #ab0000;
    text-decoration: none;
}
.Guidebar > .Articletitle {
    font-size: 1rem;
    color: #ab0000;
    font-weight: 600;
}
.PageComtent {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
}
.Article {
    width: 70%;
}
.Article > h1 {
    display: block;
    border-left: #ab0000 solid 6px;
    padding: 0 0 0 0.5rem;
    color: #000;
    font-size: 1.75rem;
    font-weight: 600;
}
.ArticleInfo {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-top: #7b7b7b dotted 1px;
    border-bottom: #7b7b7b dotted 1px;
    margin: 1rem 0;
    padding: 0.5rem 0;
}
.ArticleInfo > .date {
    background-image: url(../images/icon_date.svg);
    background-position: left;
    background-repeat: no-repeat;
    height: 1.25rem; padding: 0 0 0 1.75rem;
    margin: 0 1.5rem 0 0.5rem; 
}
.ArticleInfo > .user {
    background-image: url(../images/icon_user.svg);
    background-position: left;
    background-repeat: no-repeat;
    height: 1.25rem; padding: 0 0 0 1.5rem;
}
.Bodytext {
    color: #000;
    margin: 0 0 1.5rem 0;
}
.Bodytext > ul {
    list-style-type: none;
    line-height: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: start;
}
.Bodytext > ul > li {
    line-height: 1.5rem;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}
.Bodyimg {
    max-width: 100%;
    border: 0.25rem solid #fff;               /* 第一層：真實邊框 */
    box-shadow: 0 0 0 0.25rem rgba(218,218,218,1);   /* 第二層：利用陰影模擬 */
    border-radius: 0.75rem;                     /* 圓角也會同步套用 */
}

.Articlelist {
    width: 23%;
    background-color: #fff;
    border: #dfdfdf solid 1px;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 6px 0 0 #dfdfdf ;
}
.Articlelist > h3 {
    color: #ab0000;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem; 
}
.Articlelist > ul {
    color: #000;
    font-size: 1rem;
    padding: 0 0 0 1.5rem;
    line-height: 1.75rem;
}
.Articlelist > ul a:link,
.Articlelist > ul a:visited {
    color:#000 ; text-decoration: none;
}
.Articlelist > ul a:hover,
.Articlelist > ul a:active,
.Articlelist > ul a:focus {
    color:#ab0000 ; text-decoration: none; font-weight: 600;
}

@media (max-width: 992.9px){
    .PageComtent {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items:center;
    }
    .Article {
        width: 92%;
    }
    .ArticleInfo {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items:start;
        padding: 0.75rem 0;
    }
    .ArticleInfo > .date {
        margin: 0 0 0.5rem 0;
    }
    .Bodytext {
        margin: 0;
    }
    .Articlelist {
        width: 88%;
        border-radius: 1.5rem;
        padding: 1.5rem;
        margin: 0.5rem 0 2rem 0;
    }
}

/*Foot*/
.foot {
    width: 100%;
    background-color: #f7f8f8;
    color:#454545;
    font-size: 0.875rem;
    text-align: center;
    padding: 0.75rem 0;
}

/*Go top*/
.gotop {
    position: fixed;
    bottom:3rem;
    right:1.5rem;
    z-index: 9999;
    display: none;
    cursor: pointer;
}

@media (max-width: 992.9px){
    .gotop {
        position: fixed;
        bottom:3rem;
        right:0.5rem;
        z-index: 9999;
        display: none;
        cursor: pointer;
    }   
}

/*Common*/
.blue { color:blue;}
.bold600 {font-weight: 600;}
.Photo_S { width: 25%;}
.Photo_N { width: 50%;}
.Photo_L { width: 75%;}
.Photo_XL { width: 100%;}

@media (max-width: 992.9px){
    .PhotoCenter { 
        margin: 0 auto; 
    }
}