body {
    color: #333;
    background-color: #eee;
    min-height: 100vh;
    position: relative !important;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, "文泉驛正黑", "WenQuanYi Zen Hei", "微軟正黑體", "Microsoft JhengHei", DFKai-SB, sans-serif;
}

input.valid_error {
    border: 1px solid red;
}
label.valid_error {
    font-size: 13px;
    color: red;
}
/* Apply CSS to iOS affected versions only */
body.iosBugFixCaret.modal-open { position: fixed; width: 100%; }

/* extend bootstrap */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.025);
}

.p-25 {
    padding: .75rem;
}
.pl-6, .px-6 {
    padding-left: 4rem!important;
}
.pr-6, .px-6 {
    padding-right: 4rem!important;
}

a {
    color: #444;
}

a:hover{
    text-decoration:none;
}

.page-link, .page-link:hover {
    font-size: .8rem;
    color: #ab8753;
}

.page-item.disabled .page-link {
    color: #acacac;
}

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

iframe.videoiframe,
iframe.note-video-clip {
    width: 560px !important;
    height: 315px !important;
}

blockquote.reply {
    border-bottom: 1px dashed #999;
    padding: 0px 0px;
    color: #999;
    cursor: pointer;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
}

/* border color */
.border-light-golden {
    border-color: #e4c526 !important;
}
.border-golden {
    border-color: #c2a44d !important;
}
.border-purple {
    border-color: #9c27b0 !important;
}

/* bgcolor */
.bg-golden {
    background-color: #c2a44d !important;
}

.bg-grey {
    background-color: #d6d6d6 !important;
}

.bg-light-red {
    background-color: #fff3f7 !important;
}

.bg-light-yellow {
    background-color: #FFFDE7 !important;
}

.bg-light-blue {
    background-color: #f2f9ff !important;
}

.bg-light-green {
    background-color: #f4fff5 !important;
}

.bg-light-purple {
    background-color: #faf6ff !important;
}

.bg-light-orange {
    background-color: #FFF3E0 !important;
}




/* font */
    .font-12 {
        font-size: 12px;
    }

    .font-13 {
        font-size: 13px;
    }

    .font-14 {
        font-size: 14px;
    }

    .font-15 {
        font-size: 15px;
    }

    .font-17 {
        font-size: 17px;
    }

    .font-18 {
        font-size: 18px;
    }

    .font-24 {
        font-size: 24px;
    }

    .font-rem-75 {
        font-size: .75rem !important;
    }

    .font-rem-150 {
        font-size: 1.5rem !important;
    }

    .font-rem-200 {
        font-size: 2rem !important;
    }

    .font-rem-250 {
        font-size: 2.5rem !important;
    }

    .text-mutedmore {
        color: #a9a9a9 !important;
    }

    .text-dark-golden {
        color: #ab8854;
    }
    a.text-dark-golden:hover {
        text-decoration: underline;
    }

    .text-primary {
        color: #1565C0 !important;
    }

    .text-primary-dark {
        color: #0d47a1 !important;
    }

    .line-height-init {
        line-height: initial;
    }

table.table-notopline th,
table.table-notopline tr:first-child td {
    border-top: 0;
}

/* buttons */
.btn-golden {
    color: #fff;
    background-color: #c2a44d;
    border-color: #c2a44d;
}
.btn-golden:hover {
    color: #c2a44d;
    background-color: #fff;
}

.btn-outline-golden {
    color: #ab8854;
    background-color: transparent;
    background-image: none;
    border-color: #c2a44d;
}
.btn-outline-golden:hover {
    color: #fff;
    background-color: #c2a44d;
    border-color: #c2a44d;
}

.btn-facebook {
    background-color: #295396;
}

.btn-google {
    border: 1px solid #9e9e9e;
}

.btn-line {
    background-color: #00b931;
}

.btn-facebook img,
.btn-google img,
.btn-line img {
    width: 30px;
    height: 30px;
}

.hr-text {
    display: block;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    font-size: 13px;
    color: #999;
    margin: 20px 0 15px;
}
.hr-text > span {
    position: relative;
    display: inline-block;
}
.hr-text > span:before,
.hr-text > span:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 9999px;
    height: 1px;
    background: #ccc;
}
.hr-text > span:before {
    right: 100%;
    margin-right: 15px;
}
.hr-text > span:after {
    left: 100%;
    margin-left: 15px;
}

#headarea {
    /*background-color: #c2a44e;*/
    /*background-color: #c7b073;*/
    /*border-top: 3px solid #c2a44e;*/
    border-top: 3px solid #b19441;
    background-color: #f6f4f0;
}
#headareaBox {
    height: 60px;
}
.logo {
    font-size: 25px;
    color:  #D5AD6D; /*if no support for background-clip*/
    background: -webkit-linear-gradient(transparent, transparent),-webkit-linear-gradient(top, rgba(163,126,67,1) 45%, rgba(145,112,59,1) 61%, rgba(213,173,109,1) 100%);
    background: -o-linear-gradient(transparent, transparent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-left: 0;
}

nav {
    background-color: #1a3444;
}
    nav ul, nav ul li {
        margin:0;
        padding: 0;
    }
    nav ul.container {
        padding: 0;
    }
    nav ul li {
        display: inline-block;
        position: relative;
    }
    nav ul li a {
        display: inline-block;
        padding: 8px 20px 6px;
        color: #e1cc95;
        border-bottom: 2px solid #1a3444;
    }
    nav ul li a:hover {
        color:#e1cc95;
        border-bottom: 2px solid #e1cc95;
    }
    nav ul li:first-child a {
        padding-left: 0;
    }

.dropdown-menu {
    -webkit-box-shadow: 0 3px 12px rgba(0,0,0,.175);
    box-shadow: 0 3px 12px rgba(0,0,0,.175);
}

.noti-count {
    top: 10px;
    right: -10px;
    padding: 0 5px;
    border-radius: 50%;
}

/* ad */
#oandaChart {
}

#ad-global-top,
.clssize {
    height: 200px;
    padding: 0;
}

#ad-international-side,
#ad-goldnews-side,
#ad-forum-list-1,
#ad-usd-1,
#ad-thread-1 {
    max-width: 265px;
}

.shortcut-box {
    min-width: 330px;
}
.shortcut-box-wrapper {
    overflow: auto;
    max-height: 250px;
    width: 100%;
}
.shortcut-box-heading{
    padding: 0 15px 6px;
}
.shortcut-box-footer{
    padding: 15px 15px 0;
}

.shortcut-box-item, .shortcut-box-item-readed {
    padding: 10px;
}
.shortcut-box-item, .table-hover tbody tr:hover {
    background: #fcf8e3;
}
.shortcut-box-item-readed {
    background: #fff;
}

.subnav {
    background: #f6f4ef !important;
    border-color: #e1cc95 !important;
}

.tabmenu {
    padding: 0;
    margin-bottom: -1px;
    border-bottom: 1px solid #e6e6e6;
}
.tabmenu a {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    color: #999;
}
.tabmenu a.tm-active {
    border-bottom: 2px solid #c7b072;
    font-size: 16px;
    color: #a78017;
}

.subnav.boxstyle.tabmenu a:first-child {
    border-radius: 0 9px 0px;
}

.silverTitle {
    color: #666 !important;
    border-bottom-color: #afafaf !important;
}

.bl6 {
    border-left: 6px solid #c2a44d;
}

.badge-lg-grey {
    font-size: 14px;
    color: #555;
    background-color: #eee;
    padding: 6px 8px;
}

.boxstyle {
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: .75rem!important;
}

.clickable:hover {
    cursor: pointer;
    background: #FFFDE7;
}

.hotprice_title {
    border-bottom: 1px solid #e6e6e6;
}

.updatedTime {
    background-color: #f6f4f0;
    color: #999;
    font-weight: normal;
    padding: 7px;
}
.updatedTime:hover {
    color: #fff;
    background-color: #c7b073;
}

#newestChart{
    background-color:#fff;
}
#main {
    flex: 1 0 auto;
    width: 100%;
    min-height: 50vh;
}
footer {
    font-size: 15px;
    background-color: #fff;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
}
footer, footer a {
    color: #666;
}
footer a:hover{
    color: #a97c00;
}
.footerNav a {
    display:inline-block;
}
.footerNav h5 {
    margin-bottom: 10px;
}

a.floatmenu {
    position: fixed;
    z-index: 999;
    font-size:1.2em;
    right: 5px;
}
a.floatmenu, a.floatmenu:hover{
    color: rgba(102, 102, 102, .5) !important;
    font-size: 1.2em;
}
a.floatmenu .fa-inverse{
    margin-top: -3px;
}

#postTopic {
    bottom: 125px;
}
#totop {
    bottom: 55px;
}
#tobtm {
    bottom: 5px;
}
#floatgold {
    right: 60px;
    bottom: 8px;
}
#tofacebook {
    right: 110px;
    bottom: 8px;
}
#toViewedFloor {
    bottom: 105px;
}

/* index */
#sidebar ul {
    border-top: 1px solid #e6e7e6;
    border-bottom: 1px solid #e6e7e6;
}
#sidebar li {
    border-bottom: 0;
    border-radius: 0;
    border-top: 0;
}
#sidebar li:hover {
    background: #FFFDE7;
}

/* international */
#gold24chart {
    min-height: 400px;
}

/* loan */
#filter_bar {
    color: #888;
}
#city a.active {
    border: 1px solid #c7b072;
    padding: 3px 5px;
    border-radius: 3px;
    color: #a78017;
    background: #fffaec;
}

.filter-row {
    display: inline-flex;
    cursor: pointer;
}
.filter-name {
    width: 45px;
    color: #666;
}

.filter-body a {
    margin-left: 15px;
}

.filter-body a:hover {
    color: #a78017 !important;
}

#statisticsAD {
    top: 3px;
    right: 98px;
}
#createAD {
    top: 3px;
    right: 3px;
}
#loan-cards {
    column-count: 4;
}
#loan-cards-ex {
    column-count: 1;
}
#loan-cards .card,
#loan-cards-ex .card
{
    display: inline-block;
    border: 0;
    -webkit-box-shadow: 0px 2px 2px 0 #bbb;;
    -moz-box-shadow: 0px 2px 2px 0 #bbb;;
    box-shadow: 0px 2px 2px 0 #bbb;
    margin-bottom: 1rem;
}
#loan-cards-ex .card { border-top: 1px solid #eee; }

#loan-cards .card h5,
#loan-cards-ex .card h5
{
    font-size: 1.1rem;
}

#loan-cards .card small,
#loan-cards-ex .card small
{
    font-weight: 200;
}

#loan-cards .card-cover {
    overflow: hidden;
}

#loan-cards .card-body, #loan-cards-ex .card-body {
    max-height: 123px;
    padding: 1.25rem 0.8rem;
    font-size: 15px;
    overflow: hidden;
}
#loan-cards ul.list-group, #loan-cards-ex ul.list-group {
    border: 0;
    border-bottom-left-radius: .25rem; 
    border-bottom-right-radius: .25rem; 
}
#loan-cards .list-group-item, #loan-cards-ex .list-group-item {
    background-color: initial;
    border-top: 1px solid rgba(0,0,0,.05);
    border-bottom: 0;
    font-size: 14px;
}
#loan-cards .list-group-item:first-child {
    border-top-left-radius: 0rem; 
    border-top-right-radius: 0rem; 
}
#loan-cards .border-danger,
#loan-cards .border-primary,
#loan-cards .border-secondary,
#loan-cards .border-success,
#loan-cards .border-warning,
#loan-cards .border-info,
#loan-cards .border-dark,
#loan-cards .border-purple,
#loan-cards .border-golden,
#loan-cards .border-light-golden,
#loan-cards-ex .border-danger,
#loan-cards-ex .border-primary,
#loan-cards-ex .border-secondary,
#loan-cards-ex .border-success,
#loan-cards-ex .border-warning,
#loan-cards-ex .border-info,
#loan-cards-ex .border-dark,
#loan-cards-ex .border-purple,
#loan-cards-ex .border-golden,
#loan-cards-ex .border-light-golden
{
    border-top: 3px solid;
}
#loan-cards a, #loan-cards-ex a {
    color: inherit;
}

#contact_mobile, #contact_line {
    cursor: pointer;
}


/* forum */
ul#forumSideMenu li {
    list-style: none;
    position: relative;
}
ul#forumSideMenu li:before {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    left: 30px;
    top: 18px;
    background-color: #ab8854;
}
ul#forumSideMenu li a {
    border-radius: 3px;
}
ul#forumSideMenu li a:hover {
    color: #ab8854;
    background-color: #f5f4f0;
    text-decoration: none;
}
ul#forumSideMenu li a.sm-active {
    background-color: #ecdcb1;
}

#forum_category_m {
    background-image:
        linear-gradient(to right, white, white),
        linear-gradient(to right, white, white),
        linear-gradient(to right, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0)),
        linear-gradient(to left, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0));
    background-position: left center, right center, left center, right center;
    background-repeat: no-repeat;
    background-color: white;
    background-size: 20px 100%, 20px 100%, 10px 100%, 10px 100%;
    background-attachment: local, local, scroll, scroll;
}

#threadlist .text-mutedmore {
    color: #bbb !important;
}

/* 討論區右側統計資訊樣式 */
#threadlist .thread-stats {
    min-width: 120px;
    flex-shrink: 0;
}

#threadlist .thread-stats .text-mutedmore {
    white-space: nowrap;
}

#threadlist .thread-stats a:hover .text-mutedmore {
    color: #999 !important;
}

/* 確保左側內容不會壓縮太小 */
#threadlist .flex-grow-1 {
    min-width: 0; /* 允許flexbox正常收縮 */
}

/* 討論區縮圖樣式 */
#threadlist .thread-thumbnail {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    overflow: hidden;
}

#threadlist .thread-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

#threadlist .thread-thumbnail img:hover {
    transform: scale(1.05);
}

a.link-block {
    display: block;
    margin: -1rem;
    padding: 1rem;
    color: #333;
}

.floor-head {
    background: #f3f3f3;
    border-radius: 0.5rem;
}
.floor-head .dropdown-toggle::before {
    content: none;
}

.floor-content {
    line-height: 2;
    font-size: 17px;
    word-wrap: break-word;
    overflow: scroll;
}
.floor-content .d-md-none {
    display: initial !important;
}
.floor-content p, .note-editable p {
    margin-bottom: 0;
}
.floor-content p a {
    color: #0056b3;
}

.thumb-xxs {
    height: 16px;
    width: 16px;   
}
.thumb-xs {
    height: 30px;
    width: 30px;
}
.thumb-sm {
    height: 40px;
    width: 40px;
}
.thumb-md {
    height: 100px;
    width: 100px;
}
.thumb-lg {
    height: 150px;
    width: 150px;
}

.new-thread-tag{
    color:#f60;
    border:1px dotted #f60;
    font-size:12px;
    padding:1px 2px;
}

.new-reply-tag{
    color:#41A317;
    border:1px dotted #41A317;
    font-size:12px;
    padding:1px 2px;
}

#fireImg {
    position: absolute;
    display: block;
    width: 47px;
    height: 18px;
    right: 21px;
    top: -5px;
}

@media (max-width: 768px) {
    #fireImg {
        width: 48px;
        right: 10px;
        top: -5px;    
    }
}

.c-golden-tiny {
    color: #a78017;
    font-weight: 300;
}

/* 保險箱對話框樣式 */
.safebox-dialog {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1a3444 0%, #2a4454 100%);
    border: 2px solid #D5AD6D;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 20px 30px;
    z-index: 9999;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 450px;
    width: 90%;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
}

.safebox-dialog:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: #e1cc95;
}

.safebox-dialog.show {
    bottom: 30px;
    opacity: 1;
    visibility: visible;
}

.safebox-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.safebox-content p {
    margin-bottom: 0;
}

.safebox-message {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e1cc95;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
}

.safebox-message i {
    font-size: 20px;
    color: #D5AD6D;
}

.safebox-close {
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e1cc95;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.safebox-close i {
    font-size: 14px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .safebox-dialog {
        bottom: -100px;
        left: 20px;
        right: 20px;
        transform: none;
        max-width: none;
        width: auto;
        padding: 15px 20px;
    }
    
    .safebox-dialog.show {
        bottom: 20px;
    }
    
    .safebox-message {
        font-size: 14px;
    }
    
    .safebox-message i {
        font-size: 18px;
    }
}