:root {
	--primary: #0a4165;
	--secondary: #777777;
	--light: #F8F8F8;
	--dark: #252525;
	--blackc: #000;
	--whitec: #fff;
	--bgcolor: #dea97e;
	--brcolor: #67302F;
	--paracolor: #333333;
	--titlecolor: #67302f;
}

body {
	overflow-x: hidden;
	
	/* 統一使用思源黑體，確保全站風格輕盈一致 */
	font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-weight: 400;       /* 預設標準粗細 */
	letter-spacing: 0.04em; /* 輕微字距 */
	line-height: 1.75;      /* 舒適的內文行高 */
	
	/* 白色背景設定 */
	background: rgba(255,255,255,1.00);
}

/* 確保標題層次分明 */
h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
}

/* ========================================= */
/* 載入進度條開始 
/* ========================================= */
#loading-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #1a1a1a;
	z-index: 999999;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: Arial, sans-serif;
	transition: opacity 0.5s ease;
}

.loader-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 80%;
	max-width: 320px; 
	text-align: center;
}

.loading-gif {
	width: 200px;         
	height: auto;
	margin-bottom: 25px;
}

.progress-bar-bg {
	width: 100%;
	height: 6px;        
	background-color: #333333;
	border-radius: 3px;
	overflow: hidden;
}

#progress-bar {
	width: 0%;
	height: 100%;
	background: linear-gradient(90deg, #00DBFF, #008CFF); 
	box-shadow: 0 0 8px #00DBFF;
	border-radius: 3px;
	animation: simulateLoading 1.5s linear forwards;
}

@keyframes simulateLoading {
	0% { width: 0%; }
	100% { width: 100%; }
}

/* ========================================= */
/* 全域按鈕與導覽列 
/* ========================================= */
.back-to-top {
	position: fixed; display: none; right: 30px; bottom: 30px; z-index: 99;
}

.btn { font-weight: 500; transition: .5s; }
.btn.btn-primary { color: #fff; }
.btn.btn-primary:hover { color: #ffc107; }
.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }
.btn-square, .btn-sm-square, .btn-lg-square {
	padding: 0; display: flex; align-items: center; justify-content: center; font-weight: 400;
}

/* 頂部導覽列：永久懸浮黑金質感 (加入智慧進場特效) */
.navbar.sticky-top {
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(10, 65, 101, 0.85) !important; 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid #ffc107 !important; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
    z-index: 99999 !important; 
    
    transform: translateY(-100%) !important; 
    opacity: 0 !important;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease !important;
    pointer-events: none;
}

/* 導覽列觸發顯示的狀態 */
.navbar.sticky-top.navbar-active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto;
}

.navbar .dropdown-toggle::after {
	border: none; content: "\f107"; font-family: "font awesome 5 free"; font-weight: 900; vertical-align: middle; margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
	margin-right: 30px; padding: 5px 0; color: #fff; font-weight: 500; outline: none;
}

.navbar .navbar-nav .nav-link:hover, .navbar .navbar-nav .nav-link.active {
	color: var(--bs-warning);
}

.dropdown-item.active, .dropdown-item:active, .dropdown-item:hover {
	color: var(--bs-warning);
	background-color: rgba(0,0,0,0.75);
}

.navbar-nav .dropdown-menu {
	background-color: rgba(175,218,247,1.00);
}	

@media (max-width: 991.98px) {
	.navbar .navbar-nav .nav-link { margin-right: 0; padding: 8px 0; }
	.navbar .navbar-nav { margin-top: 8px; border-top: 1px solid rgba(255,255,255,.1); }
}

@media (min-width: 992px) {
	.navbar .nav-item .dropdown-menu {
		display: block; visibility: hidden; top: 100%; transform: rotateX(-75deg); transform-origin: 0% 0%; transition: .5s; opacity: 0;
	}
	.navbar .nav-item:hover .dropdown-menu {
		transform: rotateX(0deg); visibility: visible; transition: .5s; opacity: 1;
	}
}

/* ========================================= */
/* Home 大氣影片區塊 
/* ========================================= */
.home-overlay {
    background-color: #060a10;
    background-image: none; 
    width: 100%;
    height: 100vh; 
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding-top: 0px;
}

.home-overlay.is-loaded {
    background: url("../image/home-overlay_bg.webp?v=2") no-repeat 50% 50% / cover;
}

.promokit-video__screen {
    height: 100%;
    width: auto;
    min-width: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    margin: 0;
    padding: 0;
    will-change: transform;
    background-color: #060a10;
}

/* Logo 史詩呼吸氣旋特效 */
.intro {
    width: 100%;
    height: 70%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("../image/logo.webp?v=2");
    position: absolute;
    z-index: 3;
    opacity: 0;
    animation: logoEpicBreath 5s ease-in-out infinite alternate;
    will-change: transform, filter;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

@keyframes logoEpicBreath {
    0% {
        opacity: 1;
        transform: translateY(10%) scale(1) translateZ(0);
        filter: 
            drop-shadow(0 5px 15px rgba(0, 0, 0, 0.8)) 
            drop-shadow(-15px -5px 25px rgba(0, 219, 255, 0))
            drop-shadow(15px 5px 25px rgba(255, 193, 7, 0))
            brightness(1);
    }
    100% {
        opacity: 1;
        transform: translateY(8.5%) scale(1.04) translateZ(20px);
        filter: 
            drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)) 
            drop-shadow(-15px -5px 25px rgba(0, 219, 255, 0.25))
            drop-shadow(15px 5px 25px rgba(255, 193, 7, 0.25))
            brightness(1.2);
    }
}

/* 手機版 Home 影片防震 */
@media (max-width: 991.98px) {
    .home-overlay {
        height: 100svh; 
        height: 100vh; 
        margin-top: 0px; 
        z-index: 1; 
    }
    .promokit-video__screen {
        width: 100%;
        object-position: 50% 45%; 
        transform: translate(-50%, -50%) translateZ(0);
    }
    .intro {
        position: relative; 
        display: block;
        max-width: 440px;
        margin: 0 auto;
        transform: translateZ(0);
        z-index: 5;
        animation: logoEpicBreathMobile 6s ease-in-out infinite alternate;
    }
    @keyframes logoEpicBreathMobile {
        0% { opacity: 1; transform: translateY(1.5%) scale(1) translateZ(0); }
        100% { opacity: 1; transform: translateY(-1.5%) scale(1.03) translateZ(20px); }
    }
}

.pfblock-image {
    padding: 0;
    background-color: rgba(255,255,255,1.00);
}

/* ========================================= */
/* 標題與區塊排版 
/* ========================================= */
.section-title {
	position: relative; display: inline-block; text-transform: uppercase;
}
.section-title::before {
	position: absolute; content: ""; width: calc(100% + 80px); height: 2px; top: 4px; left: -40px; background: var(--primary); z-index: -1;
}
.section-title::after {
	position: absolute; content: ""; width: calc(100% + 120px); height: 2px; bottom: 4px; left: -60px; background: var(--primary); z-index: -1;
}
.section-title.text-start::before { width: calc(100% + 40px); left: 0; }
.section-title.text-start::after { width: calc(100% + 60px); left: 0; }

/* 遊戲介紹卡片 (黑金相框特效) */
.project-item {
	background-color: #121212; 
	border: 1px solid #2a2a2a;
	box-shadow: 0 4px 10px rgba(0,0,0,0.4);
	overflow: hidden; 
	transition: all 0.3s ease;
}
.project-item:hover {
	border-color: #ffc107; 
	box-shadow: 0 0 15px rgba(255, 193, 7, 0.3); 
}
.project-item .position-relative img { transition: transform 0.5s ease; }
.project-item:hover .position-relative img { transform: scale(1.06); }
.project-item h6 {
	color: #e0e0e0; padding: 10px 0; font-weight: 600; letter-spacing: 1px;
}
.project-item a {
	position: absolute; width: 100%; height: 100%; top: 0; left: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0,0,0,.5); border-radius: 6px; opacity: 0; transition: .5s;
}
.project-item:hover a { opacity: 1; }

/* ========================================= */
/* 活動歷程 (Owl Carousel 曜金傳說優化) 
/* ========================================= */
.project-carousel .owl-dots {
	display: flex; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 20px;
}
.project-carousel .owl-dot {
	color: #0a4165; width: 35px; height: 35px; margin: 3px; display: flex; align-items: center; justify-content: center; border: 1px solid #ffc107; border-radius: 35px; transition: .5s; background-color: rgba(250,235,215,0.30);
}
.project-carousel .owl-dot:hover, .project-carousel .owl-dot.active {
	color: var(--bs-warning); border-color: var(--primary); background: var(--primary);
}

.testimonial-carousel .owl-item .testimonial-item {
	background: linear-gradient(135deg, #1e1e1e 0%, #111111 100%); 
	transform: scale(0.85);
	opacity: 0.5; 
	border: 1px solid #333333; 
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
	transition: all 0.4s ease;
}

.testimonial-item a figcaption p {
	color: #b0b0b0; font-weight: 500; text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
figure.effect-bubba { background: rgba(0,0,0,1.00); }

.testimonial-carousel .owl-item .testimonial-item img {
	width: 100%; height: auto; opacity: 0.25; transition: opacity 0.35s;
}
.testimonial-carousel .owl-item .testimonial-item:hover img { opacity: 1.0; }

.testimonial-carousel .owl-item.center .testimonial-item {
	background: linear-gradient(135deg, #1c1c1c 0%, #0a0a0a 100%); 
	opacity: 1;
	transform: scale(0.98); 
	border: 1px solid #ffc107; 
	box-sizing: border-box;
	box-shadow: 0 0 25px rgba(255, 193, 7, 0.45); 
}

.testimonial-carousel .owl-item.center .testimonial-item::after {
	position: absolute; content: ""; width: calc(100% - 10px); height: calc(100% - 10px); top: 5px; left: 5px; z-index: 1; border: 1px solid rgba(255, 193, 7, 0.3); pointer-events: none; border-radius: 4px;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
	color: #ffffff !important; font-weight: 800; text-shadow: 0 0 8px rgba(255, 193, 7, 0.8), 0 2px 5px rgba(0,0,0,0.9); 
}
.testimonial-carousel .owl-item.center .testimonial-item img { opacity: 1.0; }

.testimonial-carousel .owl-nav { margin-top: 0px; display: flex; justify-content: center; }
.testimonial-carousel .owl-nav .owl-prev, .testimonial-carousel .owl-nav .owl-next {
	margin: 0 12px; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: transform 0.2s ease;
}
.testimonial-carousel .owl-nav .owl-prev:hover, .testimonial-carousel .owl-nav .owl-next:hover { transform: scale(1.15); }
.owl-prev { background-image: url("../image/owl-prev-1.png"); background-position: 50% 50%; }
.owl-next { background-image: url("../image/owl-next-1.png"); background-position: 50% 50%; }
.owl-prev:hover { background-image: url("../image/owl-prev-2.png"); }
.owl-next:hover { background-image: url("../image/owl-next-2.png"); }

/* 活動裝飾圖智慧切換 */
.testimonial_carousel_t { display: none !important; }
@media (max-width: 991.98px) {
	.testimonial_carousel_t { display: flex !important; }
	.testimonial_carousel_l, .testimonial_carousel_r { display: none !important; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
	.testimonial_carousel_l { display: block !important; }
	.testimonial_carousel_r { display: none !important; } 
}
@media (min-width: 1200px) {
	.testimonial_carousel_l, .testimonial_carousel_r { display: block !important; }
}

/* ========================================= */
/* 服務/最新消息區塊 (itpro Service Area) 
/* ========================================= */
.style-two .dreamit-service_box {
	padding: 0px 25px 30px;
	background-color: #161616; 
	background-image: linear-gradient(135deg, #222222 0%, #111111 100%); 
	border: 1px solid #333333;
	border-radius: 8px;
	text-align: center;
	position: relative;
	z-index: 1;
	margin-bottom: 0px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.5);
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

.style-two .dreamit-service_box:hover {
	transform: translateY(-8px); 
	border-color: var(--primary); 
	box-shadow: 0 12px 24px rgba(10, 65, 101, 0.4); 
}

.style-two .dreamit-service_box::before {
	position: absolute; content: ""; right: 0; bottom: 0; width: 80px; height: 80px; transition: .5s; opacity: 0; z-index: -1;
}

.style-two .service-icon_1_bg::before { background: url(../image/service-icon_1_bg.webp) center/cover no-repeat; }
.style-two .service-icon_2_bg::before { background: url(../image/service-icon_2_bg.webp) center/cover no-repeat; }
.style-two .service-icon_3_bg::before { background: url(../image/service-icon_3_bg.webp) center/cover no-repeat; }

.style-two .em-service_title h2 {
	font-size: 20px; font-weight: 500; padding: 55px 0 32px; line-height: 1.4; position: relative; z-index: 1; transition: .5s; color: #ffffff;
}
.style-two .dreamit-service_box:hover .em-service_title h2 { color: #ffc107; }

.style-two .em-service_title h2:before {
	position: absolute; content: ""; z-index: 1; left: 0; right: 0; bottom: 22px; margin: auto; width: 40px; height: 2px; background: var(--primary);
}

.style-two .em-service_icon {
	position: absolute; top: -42px; left: 0; right: 0; margin: auto; width: 80px; height: 80px; line-height: 76px; text-align: center; border-radius: 50%; background-color: rgba(50,50,50,1.00); border: 1px solid rgba(35, 35, 35, 0.1); transition: .5s;
}
.style-two .em-service_icon img { transition: .5s; filter: brightness(0) invert(1); }
.style-two .service_number h1 { font-size: 55px; opacity: 0.1; position: absolute; top: 0; left: 10px; margin: auto; }
.style-two .em-service_text p { transition: .5s; }

/* 遊戲介紹與儲值按鈕通用曜金風格 */
.btn-custom {
    background: linear-gradient(to top, #bf953f 0%, #fcf6ba 50%, #b38728 100%);
    color: #000000; border: 1px solid #ffc107; font-weight: 700; font-size: 15px; padding: 8px 24px; border-radius: 22px; display: inline-block; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); text-decoration: none;
}
.btn-custom:hover {
    background: linear-gradient(to top, #09203f 0%, #1c3d5a 100%);
    color: #ffffff; border-color: #ffffff; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
}
.style-two .service_button { margin-top: 15px; }

.style-two .dreamit-service_box:hover .em-service_text p { color: var(--bs-warning); }
.style-two .dreamit-service_box:hover .em-service_icon img { filter: brightness(1) invert(0); }
.style-two .dreamit-service_box:hover .em-service_icon { background: var(--primary); }
.style-two .dreamit-service_box:hover .service_button a:before { transform: scale(1); }
.style-two .dreamit-service_box:hover .service_button a { color: var(--bs-warning); border: 1px solid var(--bs-warning); }
.style-two .dreamit-service_box:hover .service_button a i { color: var(--bs-warning); }
.style-two .dreamit-service_box:hover:before { width: 100%; height: 100%; opacity: 1; }
.style-two .dreamit-service_box:hover .em-service_title h2:before { background: var(--bs-light); }

.service_area_lbg_t { display: none; }
@media (max-width: 991.98px) {
	.service_area_lbg_t { display: flex; width: 100%; padding-left: 0%; }
	.service_area_lbg_l { display: none; }
}

/* ========================================= */
/* 檔案下載 (手風琴 FAQ) 
/* ========================================= */
.faq_area { padding: 120px 0 60px; }
.inner_faq_img img { width: 100%; transition: 0.5s; }
.inner_faq_img_l { display: none; }

@media (max-width: 1400px) { .inner_faq_img img { margin-top: 10%; } }
@media (max-width: 1200px) { .inner_faq_img img { margin-top: 20%; } }
@media (max-width: 991.98px) {
	.inner_faq_img img { margin-top: 0px; padding-left: 15%; width: 85%; }
	.inner_faq_img_l { display: flex; }
	.inner_faq_img_r { display: none; }
}

.faq_area .accordion-item {
	background-color: #161616; border: 1px solid #2a2a2a; border-radius: 6px; margin-bottom: 12px;
}
.accordion-item .accordion-button { border-radius: 5px !important; }
.download_collapse {
	background-color: #222222 !important; color: #e0e0e0; font-weight: 600; border: none;
}
.download_collapse:not(.collapsed) {
	background-image: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%) !important; color: #000000 !important; font-weight: 900;
}
.accordion-body { background-color: #111111; color: #ffffff; }
.accordion-body h5 { color: #ffc107; font-weight: 600; }
.accordion-body p { color: #cccccc; }

.bi-file-earmark-arrow-down-fill:hover { color: #ffc107; }

/* ========================================= */
/* 跑馬燈區塊 (Marquee) 
/* ========================================= */
.rotate-text {
	position: relative; display: block; width: 100%; clear: both; margin-top: 0; z-index: 10; box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.95);
}
.rotate-text p { padding: 10px; margin: 0; font-size: 16px; text-align: center; }
.rotate-text h5 { padding: 10px; margin: 0; font-size: 21px; text-align: center; font-weight: 600; }
.marquee { width: 100%; margin: 0 auto; white-space: nowrap; overflow: hidden; box-sizing: border-box; }
.marquee span { display: inline-block; padding-left: 100%; text-indent: 0; animation: marquee 20s linear infinite; }
.marquee span:hover { animation-play-state: paused }
@keyframes marquee { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }

.bg-orange {
	background: linear-gradient(to bottom, rgba(255,255,255,0.15) 0%, rgba(190,142,0,0.15) 100%), radial-gradient(at top center, rgba(255,255,255,0.40) 0%, rgba(190,142,0,0.40) 120%) rgba(255,193,7,1.00); background-blend-mode: multiply,multiply; color: rgba(0,0,0,1.00);
}
.bg-black { background: rgba(0,0,0,0.85); color: rgba(255,193,7,1.00); }

/* ========================================= */
/* 自助開單區塊 (Sponsor) 
/* ========================================= */
.img-border {
	position: relative; height: 100%; min-height: 400px;
}
.img-border::before {
	position: absolute; content: ""; top: 0; left: 0; right: 3rem; bottom: 3rem; width: calc(100% - 3rem); height: calc(100% - 3rem); border: 5px solid var(--primary); border-radius: 6px; transition: 0.5s ease-in; background: url(../image/auto_sponsor_l2.webp) no-repeat 50% 50% / cover;
}
.img-border:hover:before {
	top: 3rem; left: 3rem; width: calc(100% - 3rem); height: calc(100% - 3rem); border: 5px solid var(--bs-warning); transition: 0.5s ease-in; background: url(../image/auto_sponsor_l4.webp) no-repeat 50% 50% / cover;
}
.img-border img {
	position: absolute; top: 3rem; left: 3rem; width: calc(100% - 3rem); height: calc(100% - 3rem); object-fit: cover; border-radius: 6px; transition: 0.5s ease-in;
}
.img-border:hover img { top: 0rem; left: 0rem; content: url(../image/auto_sponsor_l3.webp); transition: 0.5s ease-in; }

/* 儲值雙圖流新版機制 */
.img-border-new {
	position: relative; height: 100%; min-height: 400px; border-radius: 6px; overflow: hidden;
}
.img-border-new::before {
	position: absolute; content: ""; top: 0; left: 0; right: 3rem; bottom: 3rem; width: calc(100% - 3rem); height: calc(100% - 3rem); border: 5px solid var(--primary); border-radius: 6px; background: url(../image/auto_sponsor_l2.webp) no-repeat 50% 50% / cover; transition: all 0.5s ease; z-index: 1;
}
.img-border-new:hover::before {
	top: 3rem; left: 3rem; border-color: var(--bs-warning); background: url(../image/auto_sponsor_l4.webp) no-repeat 50% 50% / cover;
}
.img-border-new img {
	position: absolute; width: calc(100% - 3rem); height: calc(100% - 3rem); object-fit: cover; border-radius: 6px; transition: all 0.5s ease; z-index: 2;
}
.sponsor-img-normal { top: 3rem; left: 3rem; opacity: 1; }
.sponsor-img-hover { top: 3rem; left: 3rem; opacity: 0; }
.img-border-new:hover .sponsor-img-normal { top: 0rem; left: 0rem; opacity: 0; }
.img-border-new:hover .sponsor-img-hover { top: 0rem; left: 0rem; opacity: 1; }

@media (max-width: 991.98px) {
	.img-border-new { min-height: 280px !important; margin-bottom: 20px; }
	.img-border-new::before, .img-border-new img { width: 100% !important; height: 100% !important; top: 0 !important; left: 0 !important; }
	.img-border-new::before { display: none !important; }
}

/* 儲值說明區塊 */
.sponsor_text {
	background-color: #161616; 
	background-image: linear-gradient(135deg, #222222 0%, #111111 100%);
	color: #ffffff; padding: 30px; border-radius: 8px; border: 1px solid #333333; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.sponsor_text h5 {
	color: #ffc107; font-size: 22px; font-weight: 900; letter-spacing: 2px; margin-bottom: 20px; border-bottom: 1px solid rgba(255, 193, 7, 0.2); padding-bottom: 10px;
}
.sponsor_text p {
	color: #e0e0e0; font-size: 15px; line-height: 1.8; margin-bottom: 12px; font-weight: 500;
}
.sponsor_text p.text-danger {
	color: #ff5252 !important; font-weight: 700; background: rgba(255, 82, 82, 0.1); padding: 6px 12px; border-radius: 4px; border-left: 3px solid #ff5252;
}
.sponsor_text .btn-primary {
	background: linear-gradient(to top, #09203f 0%, #1c3d5a 100%); border: 1px solid #ffc107; color: #ffffff; font-weight: 700; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); margin-right: 8px; margin-top: 15px;
}
.sponsor_text .btn-primary:hover {
	background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 50%, #b38728 100%); color: #000000; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5); border-color: #ffffff;
}

@media (max-width: 991.98px) {
	.sponsor_text { padding: 20px; margin-top: 20px; }
	.sponsor_text .btn-primary { width: 100%; margin-right: 0; margin-bottom: 10px; }
}

/* ========================================= */
/* Modal 彈跳視窗 
/* ========================================= */
.modal-backdrop {
    z-index: 100000 !important;
}
.modal {
    z-index: 100001 !important;
}
@media (max-width: 991.98px) {
    .modal-dialog {
        margin-top: 60px !important;
    }
}

#Sponsorship_ratio {
	text-align: center; text-shadow: black 0 0 0.15em, black 0 0 0.15em, black 0 0 0.15em, black 0 0 0.15em, black 0 0 0.15em; padding: 10px 0px 0px 0px; color: rgba(255,255,255,1.00); align-items: center;
}
.modal_header { border: 0px; padding: 5px; }
.modal_body { padding: 5px; }
.modal_body_img { display: flex; align-items: center; justify-content: center; }
.modal_box { background-image: linear-gradient(to right, black 0%, #434343 100%); border: 3px inset rgba(255,255,255,1.00); }
.modal_box_tb_bg { background-color: rgba(255,255,255,1.00); background-image: linear-gradient(to top, #dfe9f3 0%, white 100%); }
.modal_box td > img { padding: 10px 0 0 0; }
.modal_box td > p {
	text-shadow: black 0 0 0.15em, black 0 0 0.15em, black 0 0 0.15em, black 0 0 0.15em, black 0 0 0.15em; color: rgba(255,255,255,1.00); margin: 3px 0 3px 0;
}
.modal_box_bg { background-image: linear-gradient(to top, #09203f 0%, #537895 100%); }

/* ========================================= */
/* 雜項優化 
/* ========================================= */
@media (max-width: 991.98px) {
	#random-banner-img { max-width: 350px !important; margin: 0 auto 20px auto !important; display: block !important; }
}
.me-auto { align-items: center; }
@media (max-width: 991.98px) {
	.me-auto { align-items: stretch; }
	.logo_none { display: none; }
}

/* 頁腳 */
.footer .btn.btn-link {
	display: block; margin-bottom: 5px; padding: 0; text-align: left; color: var(--secondary); font-weight: 400; text-transform: capitalize; transition: .3s;
}
.footer .btn.btn-link::before {
	position: relative; content: "\f105"; font-family: "font awesome 5 free"; font-weight: 900; color: var(--secondary); margin-right: 10px;
}
.footer .btn.btn-link:hover { color: var(--primary); letter-spacing: 1px; box-shadow: none; }
.footer .copyright { padding: 25px 0; font-size: 15px; border-top: 1px solid rgba(256,256,256,.1); }
.footer .copyright a { color: var(--light); }
.footer .copyright a:hover { color: var(--primary); }

/* ========================================= */
/* 開服倒數彈跳視窗 
/* ========================================= */
.countdown-dialog {
  max-width: 540px;
  margin: auto;
}

.countdown-dialog .modal_box {
  background: linear-gradient(145deg, #181d24 0%, #0c0f13 100%) !important;
  border: 1px solid #ffc107 !important;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 193, 7, 0.25) !important;
}

.btn-close-countdown {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  z-index: 10;
  opacity: 0.8;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-close-countdown:hover {
  opacity: 1;
  transform: scale(1.15);
}

.countdown-badge {
  display: inline-block;
  background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728);
  color: #000;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 3px 12px;
  border-radius: 20px;
}

.modal-countdown-title {
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.modal-countdown-subtitle {
  color: #00dbff;
  font-size: 14px;
  margin-bottom: 0;
  letter-spacing: 1px;
}

.modal-timer-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.m-time-box {
  background: #12161c;
  border: 1px solid #2e3846;
  border-radius: 8px;
  flex: 1;
  max-width: 85px;
  padding: 10px 4px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08), 0 4px 10px rgba(0,0,0,0.5);
}

.m-time-num {
  display: block;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  font-family: 'Arial Black', sans-serif;
  background: linear-gradient(180deg, #ffffff 40%, #ffc107 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.m-time-txt {
  display: block;
  font-size: 10px;
  color: #8fa0b3;
  margin-top: 5px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.m-time-colon {
  font-size: 22px;
  font-weight: bold;
  color: #ffc107;
  padding-bottom: 12px;
}

.btn-custom-outline {
  background: transparent;
  color: #cccccc;
  border: 1px solid #555555;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 22px;
  transition: all 0.3s ease;
}

.btn-custom-outline:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 576px) {
  .countdown-dialog { margin: 15px; }
  .modal-countdown-title { font-size: 18px; }
  .m-time-box { max-width: 65px; padding: 8px 2px; }
  .m-time-num { font-size: 24px; }
  .m-time-colon { font-size: 18px; }
  .btn-custom { font-size: 13px; padding: 7px 16px; margin-bottom: 8px; }
  .btn-custom-outline { font-size: 13px; padding: 7px 16px; }
}

/* ========================================= */
/* 首頁精彩影音輪播燈箱視窗 (Video Lightbox)
/* ========================================= */
.image-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100005;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.image-lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.video-lightbox-content {
    position: relative;
    width: 820px;
    max-width: 92%;
    background: linear-gradient(145deg, #181d24 0%, #0c0f13 100%);
    border: 1.5px solid #d4af37;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.3);
    animation: videoZoomIn 0.25s ease-out;
}

.video-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    background: #111;
    border: 1px solid #ffcc00;
    color: #ffcc00;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.8);
    line-height: 1;
    z-index: 10;
    transition: all 0.2s ease;
}
.video-lightbox-close:hover {
    background: #ffcc00;
    color: #000;
    transform: scale(1.1);
}

.video-modal-trigger {
    cursor: pointer;
    background: rgba(0, 0, 0, 0.35) !important;
}
.video-modal-trigger i {
    transition: transform 0.25s ease, filter 0.25s ease;
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.6));
}
.project-item:hover .video-modal-trigger i {
    transform: scale(1.18);
    filter: drop-shadow(0 0 16px rgba(255, 193, 7, 0.9));
}

@keyframes videoZoomIn {
    from { transform: scale(0.88); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 576px) {
    .video-lightbox-content { padding: 12px; }
    .video-lightbox-close { top: -10px; right: -10px; width: 28px; height: 28px; font-size: 16px; }
}