@charset "utf-8";
body,
html {
    /*background-image: url(../images/other/38.png);*/
}
.rule-checkdiv a.form-check-label{
    opacity:1 !important;
    cursor: pointer !important;
    font-weight: 400;
}
.rule-checkdiv a.form-check-label span{
    text-decoration: underline !important;
    font-weight: 600;
    color: var(--bs-cyan);
}
body {
    margin: 0;
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
    text-align: var(--bs-body-text-align);
    background-color: var(--bs-body-bg);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
a {
    text-decoration: none;
}

/* 修正 Typeahead 在 BS5 裡的樣式 */
.twitter-typeahead {
    width: 100%; /* 確保寬度跟著 input 走 */
}

/* 搜尋建議下拉選單 (這裡就是你說的空白背景處) */
.tt-menu {
    width: 100%;
    margin-top: 4px;
    padding: 8px 0;
    background-color: #fff; /* 🚀 關鍵：設置白色背景 */
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
    z-index: 1050; /* 確保在最前方 */
}

/* 單個搜尋建議項 */
.tt-suggestion {
    padding: 6px 12px;
    cursor: pointer;
}

/* 滑鼠滑過或鍵盤選中時的高亮 */
.tt-suggestion:hover, .tt-suggestion.tt-cursor {
    color: #fff;
    background-color: #0d6efd; /* 使用 BS5 Primary Blue */
}

/* 搜尋結果中的加粗高亮 */
.tt-highlight {
    color: #ffc107; /* 或是你喜歡的醒目顏色 */
    font-weight: bold;
}
.cf-turnstile {
    width: 100% !important;
    max-width: 100% !important;
    display: flex;
    justify-content: center; /* 讓它在手機版置中，比較好看 */
}
.uploadimagebox {
    min-height: 150px;
}
.uploadimagebox .box {
    background: rgba(255, 255, 255, 0.6);
    width: calc(100% - 10px);
    margin: 5px;
    height: 100%;
    min-height: 150px;
    border: 2px dashed #17a2b8;
}
.newimgbox img {
    max-height: 200px;
}
#gotop {
    display: none;
    position: fixed;
    right: 15px;
    bottom: 20px;
    cursor: pointer;
    -moz-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    -webkit-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
    z-index: 999;
    background-color: var(--bs-blue);
    color: #ffffff;
    text-align: center;
    border-radius: 10px;
    font-size: 1rem;
    border: 1px solid #fff;
    opacity: 0.8;
}
#gotop:hover {
    background-color: #ffffff;
    color: var(--bs-blue);
}
.btn-outline-primary:hover,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.show > .btn-outline-primary.dropdown-toggle {
    background-color: var(--bs-blue);
    border-color: var(--bs-blue);
    color: #ffffff !important;
}
.header-container {
    background-image: url("../images/other/header.webp");
    background-size: auto 100%;
}
.logo-image-big {
    height: 100%;
    padding: 1rem;
}
.header-main-container {
    background-color: #221820;
    color: #fff;
}
.header-main-container .navbar-nav .nav-item a {
    color: #fff;
    padding: 0.8rem 2rem;
}
.header-main-container .navbar-nav .nav-item a.active {
    background-color: #fff;
    color: #221820;
}
.header-main-container .navbar-nav .nav-item.dropdown .dropdown-item {
    color: #221820;
}
.footer {
    background-color: #0f2a3f;
    color: #fff;
}
.footer .link-box span {
    margin: 0 8px;
}
.footer a {
    color: #fff;
}
.footer-right-logo {
    position: relative;
}
.footer-right-logo .icon {
    position: absolute;
    right: 0;
    background-image: url("../images/other/logo.png");
    background-size: 80px;
    width: 80px;
    height: 80px;
}
.titlebar {
    position: relative;
    width: 100%;
}
.titlebar .pc-title img {
    width: 100%;
}
.titlebar .mobile-title {
    text-align: center;
}
.titlebar .mobile-title img {
    width: 60%;
    padding: 2rem 0;
}
.titlebar.title-activity {
    background-color: #424242;
}
.titlebar.title-news .mobile-title img,
.titlebar.title-rules .mobile-title img {
    padding: 2rem 0 4rem 0;
}
.titlebar .acficon {
    background-image: url("../images/acficon/Q4.webp");
    position: absolute;
    z-index: 0;
    opacity: 0.6;
    background-repeat: no-repeat;
    background-size: auto 100%;
}
.titlebar.title-news .acficon {
    background-image: url("../images/acficon/Q4.webp");
    left: calc(50% + 20%);
    top: -15px;
    width: 300px;
    height: 369px;
}
.titlebar.title-commercial .acficon {
    background-image: url("../images/acficon/Q1.webp");
    left: calc(50% + 25%);
}
.titlebar.title-rules .acficon {
    background-image: url("../images/acficon/Q3.webp");
}
.titlebar.title-activity .acficon {
    background-image: url("../images/acficon/Q5.webp");
    left: calc(50% - 40%);
    width: 300px;
    height: 400px;
}
.titlebar .mobile-title {
    display: none;
}
.activity-main {
    background-color: #424242;
    padding-bottom: 2rem;
}
.activity-head {
    height: 76px;
    width: 100%;
    background-image: url("../images/title/activityhead.webp");
    background-size: 44px;
}
.activity-box {
    background-color: #e1e5e5;
}
.activity-box .title {
    width: 100%;
    text-align: center;
    background-color: #0f2a3f;
}
.activity-box .title a {
    color: #fff;
}

.newsbg {
    background-image: url("../images/title/newsbg.webp");
    margin-top: -88px;
    padding-bottom: 2rem;
}
.newsbg .container-xl .newstabs {
    background-color: #fff;
}
.newsbg .container-xl .newstabs .nav-item {
    z-index: 9;
}
.newsbg .container-xl .newstabs .nav-item .nav-link {
    background-color: var(--bs-link-color);
    color: #fff;
    border: 1px solid #fff;
}
.newsbg .container-xl .newstabs .nav-item .nav-link.active {
    background-color: #fff;
    color: black;
}
.newsbg .container-xl .tab-content {
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
    background-color: #fff;
    border-radius: 1rem;
    border-top-left-radius: 0;
    padding: 1rem 1rem 0.5rem 1rem;
    position: relative;
}
.newsbg .container-xl .tab-content .date {
    text-align: center;
    border-right: 1px solid #eaeaec;
}
.newsbg .container-xl .tab-content .rowbox a {
    width: 100%;
    float: left;
    line-height: 2rem;
    border-bottom: 1px;
    border-bottom-style: dotted;
}
.newsbg .container-xl .tab-content .rowbox:last-child a,
.newsbg .container-xl .tab-content .rowbox:nth-last-child(2) a {
    border-bottom: none;
}
.newsmain-title {
    position: relative;
}
.newsmain-title .style {
    position: absolute;
    height: 100%;
    width: 20%;
    background-color: #221820;
    z-index: 1;
    top: 0;
}
.newsmain-title .text {
    position: sticky;
    font-weight: 600;
    z-index: 2;
    color: #fff;
    -webkit-text-stroke:
        0px 0px 2px #000,
        0px 0px 2px #000,
        0px 0px 2px #000,
        0px 0px 2px #000,
        0px 0px 2px #000,
        0px 0px 2px #000,
        0px 0px 2px #000,
        3px 3px 2px #000,
        3px 3px 2px #000,
        3px 3px 2px #000,
        3px 3px 2px #000,
        3px 3px 2px #000,
        3px 3px 2px #000,
        3px 3px 2px #000;
    text-shadow:
        0px 0px 2px #000,
        0px 0px 2px #000,
        0px 0px 2px #000,
        0px 0px 2px #000,
        0px 0px 2px #000,
        0px 0px 2px #000,
        0px 0px 2px #000,
        3px 3px 2px #000,
        3px 3px 2px #000,
        3px 3px 2px #000,
        3px 3px 2px #000,
        3px 3px 2px #000,
        3px 3px 2px #000,
        3px 3px 2px #000;
}
.subtabs .nav-link {
    border-radius: 0.375rem;
    border: 1px solid var(--bs-nav-link-color);
    margin-right: 1rem;
}
.subtabs .nav-link.active {
    background-color: var(--bs-nav-link-color);
    color: #fff;
}
.activitymain-title {
    margin-top: 1rem;
}
.activityimg img {
    background-color: #221820;
    box-shadow:
        1rem 1rem #221820,
        1rem 2rem #221820,
        -1.5rem 2rem #221820;
}
.activitymain-title .text {
    background-color: #221820;
    float: left;
}
@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@media (max-width: 480px) {
}
@media (max-width: 768px) {
    .activityimg {
        margin-top: 1rem;
    }
    .activityimg img {
        box-shadow: none;
    }
}
/* 手機設備（平板，991x（含）以下） */
@media (max-width: 991px) {
    .titlebar .pc-title {
        display: none;
    }
    .titlebar .mobile-title {
        display: block;
    }
    .titlebar {
        background-image: url("../images/title/alltitlebg.webp");
        background-size: 100%;
        background-repeat: no-repeat;
    }
}
/* 手機設備（2大視窗，1199x（含）以下） */
@media (max-width: 1199px) {
    .titlebar.title-activity .acficon {
        width: 220px;
        height: 260px;
    }
    .titlebar.title-news .acficon {
        width: 220px;
        height: 260px;
    }
}
@media (max-width: 768px) {
    .activity-head {
        height: 0;
        background-image: none;
        padding-top: 1rem;
    }
    .activity-main {
        padding-bottom: 1rem;
    }
    .titlebar .mobile-title img {
        width: 80%;
        padding: 2rem 0;
    }
    .titlebar.title-news .mobile-title img {
        padding: 2rem 0 5rem 0;
    }
}
.qrobx .qr-generator-target canvas{
    width:auto;
    padding: 1rem;
    background-color: white;

}
@media (max-width: 480px) {
    .titlebar .mobile-title img {
        width: 100%;
    }
}

/* 手機設備（平板，767px（含）以下） */
@media (max-width: 767px) {
    .titlebar.title-rules .mobile-title img,
    .titlebar.title-news .mobile-title img {
        padding: 2rem 0 7rem 0;
    }
    .nav.newstabs .nav-item {
        width: 100%;
    }
    .nav.newstabs .nav-item .nav-link:not(.active) {
        border-bottom: 2px solid #fff;
    }
    .nav.newstabs .nav-item:nth-of-type(n + 2) .nav-link {
        border-radius: 0;
    }
    .newsbg .container-xl .tab-content {
        border-top-right-radius: 0;
    }
    .qrobx .qr-generator-target canvas{
        width:80%
    }
}
/* 手機設備（平板，575px（含）以下） */
@media (max-width: 575px) {
    .header-main-container .container-xl {
        padding: 0;
    }
}

/* 小螢幕設備（平板，768px（含）以上） */
@media (min-width: 768px) {
    .activityimgbox {
        padding-left: 5rem;
        padding-right: 0;
    }
    .qrobx .qr-generator-target canvas{
        width:80%
    }
}
@media (max-width: 991px) {
    .titlebar {
        background-size: 100% auto;
    }
    .header-main-container .navbar-nav .dropdown-menu {
        border-radius: 0;
        padding: 0;
    }
    .titlebar .acficon {
        display: none;
    }
    .logo-image-small {
        height: 100px;
        padding: 10px 0;
    }
}
@media (max-width: 768px) {
}
/* 中螢幕設備（一般桌面，992px（含）以上） */
@media (min-width: 992px) {
}
/* 大螢幕設備（大型桌面，1200px（含）以上） */
@media (min-width: 1200px) {
}
/* 手機設備（平板，575px（含）以下） */
@media (max-width: 575px) {
    .logo-image-small {
        height: 60px;
    }
}

/*loading*/
.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
}
.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid var(--bs-blue);
    border-color: var(--bs-blue) transparent var(--bs-blue) transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}
.lSPager li {
    border-radius: 0;
    border: 3px solid #fff;
}
.lSPager li.active {
    border-color: var(--bs-blue);
}
/*loading*/
/* navbar-手機選單 */
.navbar-togglers {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--bs-link-hover-color);
}
.navbar-togglers .text,
.navbar-togglers .text:hover {
    color: var(--bs-link-hover-color);
}
.navbar-togglers .iconbox {
    width: 50px;
    height: 39px;
}
.navbar-togglers span.bars {
    margin: 0 auto;
    position: absolute;
    top: 17px;
    margin-left: 10px;
}
.navbar-togglers span.bars:before,
.navbar-togglers span.bars:after {
    position: absolute;
    content: "";
}
.navbar-togglers span.bars,
.navbar-togglers span.bars:before,
.navbar-togglers span.bars:after {
    width: 28px;
    height: 3px;
    background-color: var(--bs-blue);
    display: block;
}
.navbar-togglers[aria-expanded="true"] span,
.navbar-togglers[aria-expanded="true"] span.bars:before,
.navbar-togglers[aria-expanded="true"] span.bars:after {
    background-color: var(--bs-red);
}
.navbar-togglers span.bars:before {
    margin-top: -10px;
}
.navbar-togglers span.bars:after {
    margin-top: 10px;
}
/* example 5 */
.navbar-togglers[aria-expanded="true"] span {
    -webkit-transition-duration: 0s;
    transition-duration: 0s;
    -webkit-transition-delay: 0.2s;
    transition-delay: 0.2s;
}
.navbar-togglers[aria-expanded="true"] span {
    background-color: rgba(0, 0, 0, 0);
    -webkit-transition-delay: 0.2s;
    transition-delay: 0.2s;
}
.navbar-togglers[aria-expanded="true"] span:before {
    -webkit-transition-property:
        margin,
        -webkit-transform;
    transition-property: margin, transform;
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
    -webkit-transition-delay: 0.2s, 0s;
    transition-delay: 0.2s, 0s;
}
.navbar-togglers[aria-expanded="true"] span:before {
    margin-top: 0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition-delay: 0s, 0.2s;
    transition-delay: 0s, 0.2s;
}
.navbar-togglers[aria-expanded="true"] span:after {
    -webkit-transition-property:
        margin,
        -webkit-transform;
    transition-property: margin, transform;
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
    -webkit-transition-delay: 0.2s, 0s;
    transition-delay: 0.2s, 0s;
}
.navbar-togglers[aria-expanded="true"] span:after {
    margin-top: 0;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-transition-delay: 0s, 0.2s;
    transition-delay: 0s, 0.2s;
}
.mobile-bar {
    position: absolute;
    height: 100%;
    right: 0;
    top: 0;
}
.navbar-togglers {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #fff;
}
.navbar-togglers .text,
.navbar-togglers .text:hover {
    color: var(--bs-link-hover-color);
}
.navbar-togglers .iconbox {
    width: 50px;
    height: 39px;
}
.navbar-togglers span.bars {
    margin: 0 auto;
    position: absolute;
    top: 17px;
    margin-left: 10px;
}
.navbar-togglers span.bars:before,
.navbar-togglers span.bars:after {
    position: absolute;
    content: "";
}
.navbar-togglers span.bars,
.navbar-togglers span.bars:before,
.navbar-togglers span.bars:after {
    width: 28px;
    height: 3px;
    background-color: #fff;
    display: block;
}
.navbar-togglers[aria-expanded="true"] span,
.navbar-togglers[aria-expanded="true"] span.bars:before,
.navbar-togglers[aria-expanded="true"] span.bars:after {
    background-color: #fff;
}
.navbar-togglers span.bars:before {
    margin-top: -10px;
}
.navbar-togglers span.bars:after {
    margin-top: 10px;
}
/* example 5 */
.navbar-togglers[aria-expanded="true"] span {
    -webkit-transition-duration: 0s;
    transition-duration: 0s;
    -webkit-transition-delay: 0.2s;
    transition-delay: 0.2s;
}
.navbar-togglers[aria-expanded="true"] span {
    background-color: rgba(0, 0, 0, 0);
    -webkit-transition-delay: 0.2s;
    transition-delay: 0.2s;
}
.navbar-togglers[aria-expanded="true"] span:before {
    -webkit-transition-property:
        margin,
        -webkit-transform;
    transition-property: margin, transform;
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
    -webkit-transition-delay: 0.2s, 0s;
    transition-delay: 0.2s, 0s;
}
.navbar-togglers[aria-expanded="true"] span:before {
    margin-top: 0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition-delay: 0s, 0.2s;
    transition-delay: 0s, 0.2s;
}
.navbar-togglers[aria-expanded="true"] span:after {
    -webkit-transition-property:
        margin,
        -webkit-transform;
    transition-property: margin, transform;
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
    -webkit-transition-delay: 0.2s, 0s;
    transition-delay: 0.2s, 0s;
}
.navbar-togglers[aria-expanded="true"] span:after {
    margin-top: 0;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-transition-delay: 0s, 0.2s;
    transition-delay: 0s, 0.2s;
}
/* navbar-手機選單 */
