/* ========================================================================= */
/* [目錄] 凝時天堂 CSS 樣式表
/* 
/* 01. 基礎設定 & 全域變數 (Base & Variables)
/* 02. 全域共用元件 (Global Components - 按鈕、標題、跑馬燈、Loading)
/* 03. 導覽列與分頁選單 (Navbar & Tabs)
/* 04. 頁首、頁尾與彈跳視窗 (Header, Footer & Modals)
/* 05. 首頁與介紹區塊排版 (Home & Intro Blocks)
/* 06. 遊戲資料專屬區塊 (Powerbook & Exp Table)
/* 07. 裝備 Tooltip 系統 (Game Tooltip UI)
/* 08. 專屬商店與道具製作 (Shop & Crafting)
/* 09. 寶物與系統展示櫃 (Showcase Cabinet)
/* 10. 儲值與頭像特效專區 (Sponsor, Avatar & Glow Effects)
/* 11. 全域響應式斷點大全 (Global Media Queries)
/* 12. 活動網頁專屬樣式 (Event Specific Styles)
/* 13. 點名系統專屬樣式 (Attendance System Styles)
/* 14. 新手導引分頁均分排版 (intro_1 Tabs Custom Grid)
/* ========================================================================= */

/* ========================================================================= */
/* 01. 基礎設定 & 全域變數 (Base & Variables)
/* ========================================================================= */
: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;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
}

.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);
}

/* 文字發光特效 */
.special_text_effect {
    animation: 2s animate infinite linear;
}

@keyframes animate {
    0% { text-shadow: 0 0 0 #ffc107; }
    40% { color: rgba(0, 0, 0, 0.70); text-shadow: 0 0 30px #ffc107; }
    70% { color: rgba(0, 0, 0, 0.80); text-shadow: 0 0 10px #ffc107; }
    90% { color: rgba(0, 0, 0, 0.90); text-shadow: 0 0 30px #ffc107; }
    100% { text-shadow: 0 0 40px rgba(0, 0, 0, 0.00); }
}

/* ========================================================================= */
/* 02. 全域共用元件 (Global Components)
/* ========================================================================= */
/* --- 載入進度條 --- */
#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; 
}

/* --- 標題排版 --- */
.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; }

/* --- 跑馬燈區塊 (Marquee) --- */
.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); }
}

.marquee2 { width: 100%; margin: 0 auto; white-space: nowrap; overflow: hidden; box-sizing: border-box; padding: 20px; }
.marquee2 table {
    display: inline-table; padding-left: 100%; text-indent: 0; 
    animation: marquee2 15s linear infinite;
}
.marquee2 table:hover { animation-play-state: paused; }

@keyframes marquee2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(0, -100%); }
}

/* ========================================================================= */
/* 03. 導覽列與分頁選單 (Navbar & Tabs)
/* ========================================================================= */
.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); }
.navbar.sticky-top { top: -100px; transition: .5s; }

.dropdown-item.active, 
.dropdown-item:active, 
.dropdown-item:hover {
    color: var(--bs-warning); 
    background-color: rgba(0, 0, 0, 0.75);
    background-image: linear-gradient(to top, #09203f 0%, #537895 100%);
}
.navbar-nav .dropdown-menu {
    background-color: rgba(175, 218, 247, 1.00);
    background-image: linear-gradient(to top, #accbee 0%, #e7f0fd 100%);
}

@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;
    }
}

/* --- Nav Tabs 樣式大全 --- */
.nav-pills-3 .nav-link-3 {
    padding: 5px 15px 5px 15px; border: solid 2px #0a4165 !important; 
    border-radius: 5px; font-size: 1rem; font-weight: 500; 
    text-transform: uppercase; margin: 5px 5px; transition: .1s linear; 
    color: rgba(255, 255, 255, 1.00); background: #0a4165;
}
.nav-pills-3 .nav-link-3:hover { background: #0a4165 !important; color: #ffc107 !important; }
.nav-pills-3 .active { background: #0a4165 !important; color: #ffc107 !important; font-weight: 500; }

.nav-tabs-4>li>a, .nav-tabs-5>li>a, .nav-tabs-6>li>a, .nav-tabs-7>li>a, .nav-tabs-8>li>a {
    color: #FFFFFF !important; background-color: #0a4165 !important; 
    margin: 2px 2px; border-bottom: 3px solid #ffc107 !important;
}
.nav-tabs-4>li>a:hover, .nav-tabs-5>li>a:hover, .nav-tabs-6>li>a:hover, .nav-tabs-7>li>a:hover, .nav-tabs-8>li>a:hover {
    color: #ffc107 !important; background-color: #0a4165 !important;
}
.nav-tabs-4 .nav-link-4.active, .nav-tabs-5 .nav-link-5.active, .nav-tabs-6 .nav-link-6.active, .nav-tabs-7 .nav-link-7.active, .nav-tabs-8 .nav-link-8.active {
    color: #ffc107 !important; background-color: #0a4165 !important;
}
.nav-tabs-4, .nav-tabs-5, .nav-tabs-6, .nav-tabs-7, .nav-tabs-8 {
    border-bottom: 0px solid #ffc107; text-align: center;
}
.nav-tabs-4 { text-align: left; }
.nav-tabs-4 .nav-link-4, .nav-tabs-5 .nav-link-5, .nav-tabs-6 .nav-link-6, .nav-tabs-7 .nav-link-7, .nav-tabs-8 .nav-link-8 {
    margin-bottom: 0px; border: 0px solid transparent; 
    border-top-left-radius: 0px; border-top-right-radius: 0px;
}

.dropdown-menu-8 {
    position: absolute; z-index: 1000; display: none; min-width: calc(100% - 4px); 
    padding: .5rem 0; margin: 0; font-size: 1rem; color: #000000; text-align: left; 
    list-style: none; background-color: #AFDAF7; 
    background-image: linear-gradient(to top, #accbee 0%, #e7f0fd 100%); 
    background-clip: padding-box; border: 0px dotted #ffc107; border-radius: 6px !important;
}
.dropdown-item-8.active, .dropdown-item-8:active, .dropdown-item-8:hover {
    color: var(--bs-warning); background-color: rgba(0, 0, 0, 0.75); border-radius: 0px !important;
}
.nav-tabs .dropdown-menu-8 .nav-link.active, .nav-tabs .dropdown-menu-8 .nav-link:hover {
    color: var(--bs-warning); background-image: linear-gradient(to top, #09203f 0%, #537895 100%); 
    border-color: rgba(0, 0, 0, 0.75); border-radius: 0px !important;
}
.nav-tabs .dropdown-menu-8 .nav-link {
    margin-bottom: -1px; background: none; border: 0px solid transparent; 
    border-top-left-radius: 0px; border-top-right-radius: 0px;
}

/* 全局子分頁按鈕 RWD 網格框架 */
.sub-tab-row {
    background: transparent !important; border: none !important; 
    list-style: none !important; margin: 0 !important; padding: 0 !important;
}
.sub-tab-row .nav-item { padding: 2px 2px !important; margin: 2px 0 !important; }
.sub-tab-row .btn-sub-tab {
    color: #e2e8f0 !important; 
    background-image: linear-gradient(to top, #0f1318 0%, #28303b 100%) !important; 
    border: 1px solid #344050 !important; border-radius: 4px !important; 
    padding: 8px 0 !important; font-weight: bold !important; width: 100% !important; 
    text-align: center !important; transition: all 0.2s ease-in-out;
}
.sub-tab-row .btn-sub-tab:hover {
    border: 1px solid #1a5c8a !important; 
    background-image: linear-gradient(to top, #121820 0%, #313d4c 100%) !important; 
    color: #ffffff !important;
}
.sub-tab-row .btn-sub-tab.active {
    color: #ffffff !important; 
    background-image: linear-gradient(to top, #b38600 0%, #ffcc00 100%) !important; 
    border: 1px solid #ffe066 !important; box-shadow: 0 0 12px rgba(255, 204, 0, 0.6) !important; 
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}
.sub-tab-row .btn-sub-tab.disabled {
    color: #4a5568 !important; background-image: none !important; 
    background-color: #0b0f13 !important; border: 1px solid #1a202c !important; 
    opacity: 0.5; box-shadow: none !important;
}

/* intro_9 專屬：圖鑑子分類排版 */
.intro9-tab-row { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; margin: 0 !important; padding: 0 !important; }
.intro9-tab-row .nav-item { flex: 0 0 25% !important; max-width: 25% !important; padding: 2px !important; }
.intro9-tab-row .btn-sub-tab { width: 100% !important; }

@media (min-width: 992px) {
    .intro9-tab-row .nav-item { flex: 0 0 14.2857% !important; max-width: 14.2857% !important; }
}

/* ========================================================================= */
/* 04. 頁首、頁尾與彈跳視窗 (Header, Footer & Modals)
/* ========================================================================= */
.pfblock-header { text-align: center; margin: 60px 0 0; }
.pfblock-header-img {
    border: 3px solid transparent; border-radius: 15px; 
    background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)), 
                      linear-gradient(135deg, #7c5a31, #bfa073, #8c6834, #dfc49f, #593e1a); 
    background-origin: border-box; background-clip: padding-box, border-box; 
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.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); }

#Sponsorship_ratio {
    text-align: center; color: rgba(255, 255, 255, 1.00); align-items: center; padding: 10px 0px 0px 0px;
    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; 
}
.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 {
    color: rgba(255, 255, 255, 1.00); margin: 3px 0 3px 0;
    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; 
}
.modal_box_bg { background-image: linear-gradient(to top, #09203f 0%, #537895 100%); }

/* ========================================================================= */
/* 05. 首頁與介紹區塊排版 (Home & Intro Blocks)
/* ========================================================================= */
.project-item { background-color: rgba(250, 235, 215, 1.0); }
.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; }

.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-item {
    background: linear-gradient(155deg, rgba(10, 65, 101, 1.0) 0%, rgba(10, 65, 101, 1.0) 70%, rgba(187, 187, 187, 1.0) 80%, rgba(0, 51, 99, 1.0) 90%, rgba(10, 65, 101, 1.0) 95%, rgba(0, 51, 99, 1.0) 100%); 
    transform: scale(0.8); box-shadow: rgba(0, 0, 0, 1.00) 0px 0px 15px;
}
.testimonial-item::before {
    position: absolute; content: ""; width: calc(100% + 20px); height: calc(100% + 20px); 
    top: -10px; left: -10px; z-index: -1; border: rgba(10, 65, 101, 1.00) double 10px; border-radius: 3px;
}
.testimonial-item a figcaption p { color: var(--bs-light); text-shadow: black 0 0 0.1em, black 0 0 0.1em, black 0 0 0.1em, black 0 0 0.2em, black 0 0 0.1em; }
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 .testimonial-item, .testimonial-carousel .owl-item .testimonial-item * { transition: .5s; }
.testimonial-carousel .owl-item.center .testimonial-item {
    background: linear-gradient(155deg, rgba(235, 174, 94, 1.0) 0%, rgba(235, 174, 94, 1.0) 70%, rgba(255, 255, 255, 1.0) 80%, rgba(243, 208, 163, 1.00) 90%, rgba(235, 174, 94, 1.0) 95%, rgba(243, 208, 163, 1.0) 100%) !important; 
    transform: scale(0.9); box-shadow: rgba(235, 174, 94, 1.00) 0px 0px 15px;
}
.testimonial-carousel .owl-item.center .testimonial-item::before {
    position: absolute; content: ""; width: calc(100% + 20px); height: calc(100% + 20px); 
    top: -10px; left: -10px; z-index: -1; border: rgba(235, 174, 94, 1.00) double 10px; 
    border-radius: 3px; box-shadow: rgba(235, 174, 94, 1.00) 0px 0px 15px;
}
.testimonial-carousel .owl-item.center .testimonial-item::after {
    position: absolute; content: ""; width: calc(100% + 30px); height: calc(100% + 30px); 
    top: -15px; left: -15px; z-index: -1; border: rgba(235, 174, 94, 1.00) double 10px; border-radius: 3px;
}
.testimonial-carousel .owl-item.center .testimonial-item img { opacity: 1.0; }
.testimonial-carousel .owl-item.center .testimonial-item * {
    color: var(--light) !important; font-weight: bolder; 
    text-shadow: black 0 0 0.1em, black 0 0 0.1em, black 0 0 0.1em, black 0 0 0.2em, black 0 0 0.1em;
}
.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;
}
.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"); }

.faq_area { padding: 120px 0 60px; }
.inner_faq_img img { width: 100%; transition: 0.5s; }
.about-comomn p { font-size: 15px; padding: 0; color: rgba(0, 0, 0, 1.00); }
.download_collapse { background-color: rgba(250, 235, 215, 1.0) !important; color: #0a4165; }
.download_collapse:not(.collapsed) { background-image: linear-gradient(to top, #e6b980 0%, #eacda3 100%) !important; color: #0a4165; }
.bi-file-earmark-arrow-down-fill:hover { color: #ffc107; }
.accordion-item .accordion-button { border-radius: 5px !important; }

/* 服務與公告 */
.style-two .dreamit-service_box {
    padding: 0px 25px 30px; background-color: rgba(250, 235, 215, 1.00); 
    background-image: linear-gradient(to top, rgba(250, 235, 215, 1.00) 0%, rgba(250, 235, 215, 1.00) 10%, rgba(248, 227, 200, 1.00) 26%, rgba(252, 243, 231, 1.00) 45%, rgba(173, 173, 173, 1.00) 70%, rgba(33, 33, 33, 1.00) 100%); 
    border: 1px solid rgba(35, 35, 35, 0.1); text-align: center; 
    position: relative; z-index: 1; margin-bottom: 0px;
}
.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;
}
.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; }
.style-two .service_button a {
    padding: 8px 18px 8px 24px; font-size: 15px; font-family: 'Fira Sans'; border-radius: 22px; 
    background-image: linear-gradient(to top, #e6b980 0%, #eacda3 100%) !important; color: #232323; 
    border: 1px solid rgba(35, 35, 35, 0.1); display: inline-block; 
    margin-top: 3px; position: relative; z-index: 1; transition: .5s;
}
.style-two .service_button a:before {
    position: absolute; content: ""; z-index: -1; top: 0; left: 0; right: 0; bottom: 0; 
    background-image: linear-gradient(to right, #243949 0%, #517fa4 100%); 
    border-radius: 30px; transform: scale(0); transition: .5s;
}
.style-two .service_button a i {
    font-size: 18px; color: var(--primary); display: inline-block; 
    position: relative; top: 2px; transition: .5s;
}
.style-two .dreamit-service_box:hover .em-service_title h2, 
.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); }

.me-auto { align-items: center; }

/* --- 職業智慧型排版 --- */
.class-showcase-row { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; }
.class-card-box {
    background-color: rgba(255, 255, 255, 1.00); 
    background-image: linear-gradient(to top, #dfe9f3 0%, white 100%); 
    border: 1px solid #0a4165; border-radius: 6px; overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); transition: all 0.3s ease;
}
.class-card-title {
    background-image: linear-gradient(to top, #09203f 0%, #537895 100%); 
    color: #ffffff; font-weight: 900; text-align: center; 
    padding: 8px 0; font-size: 16px; letter-spacing: 2px;
}
.class-card-img-wrap { padding: 15px; display: flex; justify-content: center; align-items: center; cursor: pointer; background: transparent; }
.class-card-img-wrap img { max-width: 100%; height: auto; object-fit: contain; transition: transform 0.3s ease, filter 0.3s ease; }
.class-card-box:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(10, 65, 101, 0.4); border-color: #ffc107; }
.class-card-box:hover .class-card-img-wrap img { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.6)); }

/* --- 遊戲介紹圖示與環繞特效 --- */
.num-circle {
    display: inline-flex; align-items: center; justify-content: center; 
    width: 20px; height: 20px; font-size: 11px; font-weight: bold; 
    font-family: "Calibri", "Arial", sans-serif; color: #ffcc00; 
    background: linear-gradient(135deg, #221d14 0%, #0d0a06 100%); 
    border: 1.5px solid #d4af37; border-radius: 50%; vertical-align: middle; 
    position: relative; top: -1px; margin: 0 4px; box-shadow: 0 0 4px rgba(212, 175, 55, 0.3);
}

.snake-glow-wrapper {
    position: relative; display: block; padding: 8px; border-radius: 10px; 
    overflow: hidden; background: #0d0e0d; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7); 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.snake-glow-wrapper img {
    display: block; position: relative; z-index: 2; width: 100%; height: auto; 
    border-radius: 4px; transition: transform 0.4s ease;
}
.snake-glow-wrapper::before {
    content: ''; position: absolute; z-index: 1; top: -50%; left: -50%; 
    width: 200%; height: 200%;
    background: conic-gradient(#00ff66 0deg, rgba(0, 255, 102, 0.5) 30deg, rgba(0, 255, 102, 0) 160deg, #00ff66 180deg, rgba(0, 255, 102, 0.5) 210deg, rgba(0, 255, 102, 0) 340deg, #00ff66 360deg);
    filter: blur(3px) drop-shadow(0 0 12px #00ff66); mix-blend-mode: screen; 
    animation: snakeRotate 5s linear infinite; transition: filter 0.4s ease, background 0.4s ease;
}

@keyframes snakeRotate { 
    100% { transform: rotate(360deg); } 
}

.snake-glow-wrapper:hover { transform: scale(1.02); box-shadow: 0 12px 35px rgba(255, 204, 0, 0.25); }
.snake-glow-wrapper:hover img { transform: scale(1.02); }
.snake-glow-wrapper:hover::before {
    animation-duration: 2.5s; 
    background: conic-gradient(#ffcc00 0deg, rgba(255, 204, 0, 0.6) 30deg, rgba(255, 204, 0, 0) 160deg, #ffcc00 180deg, rgba(255, 204, 0, 0.6) 210deg, rgba(255, 204, 0, 0) 340deg, #ffcc00 360deg);
    filter: blur(4px) drop-shadow(0 0 18px #ffcc00); 
}

/* --- 卡片式文字介紹 --- */
.intro-feature-card {
    background-color: #ffffff;
    background-image: linear-gradient(to top, #dfe9f3 0%, white 100%);
    border: 1px solid rgba(10, 65, 101, 0.15); 
    border-left: 5px solid #0a4165; border-radius: 6px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); padding: 22px; 
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.intro-feature-card:hover { border-left-color: #ffc107; box-shadow: 0 6px 16px rgba(10, 65, 101, 0.12); }
.intro-feature-card .card-header-title {
    font-size: 1.15rem; font-weight: 700; color: #0a4165; 
    border-bottom: 1px dashed rgba(10, 65, 101, 0.18); 
    padding-bottom: 10px; margin-bottom: 16px; display: flex; 
    align-items: center; letter-spacing: 1px; transition: color 0.3s ease;
}
.intro-feature-card:hover .card-header-title { color: #b38728; }
.intro-feature-list { list-style: none; padding-left: 0; margin-bottom: 0; }
.intro-feature-list li {
    font-size: 0.95rem; font-weight: 500; color: #2b2b2b; 
    line-height: 1.8; margin-bottom: 14px; display: block; 
    position: relative; padding-left: 56px; 
}
.intro-feature-list li:last-child { margin-bottom: 0; }
.intro-feature-list .list-num {
    background: #0a4165; color: #fff; font-family: "Calibri", Arial, sans-serif; 
    font-size: 0.75rem; font-weight: bold; padding: 2px 8px; 
    border-radius: 12px; min-width: 42px; text-align: center; 
    box-shadow: 0 2px 4px rgba(10, 65, 101, 0.15); 
    transition: background 0.3s ease, color 0.3s ease;
    position: absolute; left: 0; top: 3px; 
}
.intro-feature-card:hover .intro-feature-list .list-num { background: #ffc107; color: #000; }

/* ========================================================================= */
/* 06. 遊戲資料專屬區塊 (Powerbook & Exp Table)
/* ========================================================================= */
.powerbook { height: auto; margin: auto; text-align: left; flex-wrap: wrap; padding: 10px 0px 0px 0px; color: rgba(0, 0, 0, 1.00); font-weight: 700; }
.powerbook p { margin: 3px 0; }    
.powerbook td img { padding: 2px 0; }
.powerbook h4, .powerbook h5 { color: var(--bs-warning); }
.powerbook h4 span, .powerbook h5 span { background-color: var(--bs-primary); border-bottom: 2px solid #ffc107 !important; }

.powerbook_2 { height: auto; text-align: center; flex-wrap: wrap; color: rgba(0, 0, 0, 1.00); }
.powerbook_2_text_shadow { text-shadow: black 0 0 0.2em, black 0 0 0.2em, black 0 0 0.2em, black 0 0 0.2em, black 0 0 0.2em; }
.powerbook_2 td p { margin: 3px 0; padding: 0; font-weight: 900; color: rgba(0, 0, 0, 1.00); }
.powerbook_2_tr_bg { background-image: linear-gradient(to top, #09203f 0%, #537895 100%); }
.powerbook_2_tr_bg td p { color: rgba(255, 255, 255, 1.00); }
.powerbook_2_td_bg { background-color: rgba(255, 255, 255, 1.00); background-image: linear-gradient(to top, #dfe9f3 0%, white 100%); }

#rule_table {
    border: 3px solid transparent; 
    background-image: linear-gradient(rgba(255, 255, 255, 1.0), rgba(255, 255, 255, 0)), 
                      linear-gradient(135deg, #7c5a31, #bfa073, #8c6834, #dfc49f, #593e1a); 
    border-radius: 15px; 
    background-origin: padding-box, border-box; 
    background-clip: padding-box, border-box; 
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.rule_td_bg { background-color: rgba(255, 255, 255, 1.00); background-image: linear-gradient(to top, #dfe9f3 0%, white 100%); }
.rule_td_bg td { vertical-align: top; }

/* --- 經驗加成表格 (Exp Table) --- */
.exp-table-container { 
    width: 100%; margin: 0 auto; -webkit-overflow-scrolling: touch; 
    scrollbar-width: thin; scrollbar-color: #ffc107 rgba(0, 0, 0, 0.1); 
}
.exp-table { width: 100%; min-width: 800px; }
.exp-table td { padding: 8px 4px; white-space: nowrap; font-size: 15px; }

.exp-table-container::-webkit-scrollbar { height: 8px; }
.exp-table-container::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); border-radius: 4px; margin: 0 4px; }
.exp-table-container::-webkit-scrollbar-thumb { background: #ffc107; border-radius: 4px; box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5); }
.exp-table-container::-webkit-scrollbar-thumb:hover { background: #d4af37; }

.mobile-swipe-hint { display: none; }
@keyframes swipeHintAnim { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-8px); } }

/* ========================================================================= */
/* 07. 裝備 Tooltip 系統 (Game Tooltip UI)
/* ========================================================================= */
.game-tooltip { color: #008C78 !important; text-decoration: underline; }
.game-tooltip:hover { cursor: pointer; color: #ffc107 !important; text-decoration: underline; }

.popup-window { 
    display: none; position: absolute; background: rgba(20, 20, 20, 0.96); 
    color: #fff; border: 2px solid #d4af37; border-radius: 6px; 
    padding: 15px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7); 
    z-index: 9999; width: auto !important; min-width: 260px; max-height: 480px; 
    pointer-events: auto; overflow-y: auto; overflow-x: hidden; 
    box-sizing: border-box; font-family: "Microsoft JhengHei", "PMingLiU", "MingLiU", Arial, sans-serif; 
    scrollbar-width: thin; scrollbar-color: #b38728 transparent;
}
.popup-window .tooltip-header-wrapper { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 5px; width: 100%; }
.popup-window .tooltip-img-box { background: rgba(0, 0, 0, 0.6); border: 1px solid #4a3c28; border-radius: 4px; padding: 6px; display: inline-flex; align-items: center; justify-content: center; max-width: 200px; max-height: 200px; width: auto; height: auto; }
.popup-window .tooltip-img-box img { width: auto; height: auto; max-width: 188px; max-height: 188px; object-fit: contain; }
.popup-window .tooltip-img-inline { display: inline-flex; width: 70px; height: 70px; margin: 5px 4px; vertical-align: middle; padding: 3px; }
.popup-window .tooltip-main-title { font-size: 16px; font-weight: bold; color: #ffcc00; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9); line-height: 1.4; text-align: center; width: 100%; }
.popup-window .tooltip-divider { border: 0; border-top: 1px solid #4a3c28; margin: 10px 0; opacity: 1; width: 100%; }
.popup-window p, .popup-window b, .popup-window .tooltip-intro-text { margin: 0; padding: 0; line-height: 1.6; display: inline-block; width: 100%; font-size: 15px; color: #e0d6cc; }
.popup-window::before { content: ''; position: absolute; top: -20px; left: -20px; right: -20px; bottom: -20px; z-index: -1; }
.popup-window::-webkit-scrollbar { width: 6px; }
.popup-window::-webkit-scrollbar-track { background: transparent; }
.popup-window::-webkit-scrollbar-thumb { background: #b38728; border-radius: 3px; }
.popup-window::-webkit-scrollbar-thumb:hover { background: #d4af37; }
.popup-window .tooltip-multi-container { display: flex; flex-direction: row; flex-wrap: wrap; gap: 15px 10px; align-items: flex-start; justify-content: flex-start; max-width: 485px; }
.popup-window .tooltip-inner-content { width: 226px; flex-shrink: 0; box-sizing: border-box; }
.popup-window .tooltip-card-divider { width: 1px; height: 150px; align-self: center; background: linear-gradient(to bottom, transparent, #4a3c28, transparent); margin: 0; flex-shrink: 0; }
.popup-window .tooltip-multi-container > .tooltip-card-divider:nth-child(4n) { display: none !important; }

/* 1. 外框容器優化 (最緊湊排列，允許自然換行) */
.icon-container {
  position: relative;
  display: inline-block;
  margin: 1px;
  vertical-align: middle;
  line-height: 1;
}

/* 消除 img 標籤天生自帶的底部空白 */
.icon-container img {
  display: block;
}

/* 2. 提示文字外觀 */
.tooltip-text {
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  text-align: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  position: absolute;
  bottom: 110%; 
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10; 
}

/* 3. 滑鼠懸停顯示動畫 */
.icon-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* ========================================================================= */
/* 08. 專屬商店與道具製作 (Shop & Crafting)
/* ========================================================================= */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; margin-top: 20px; }
.shop-card { background: rgba(17, 12, 0, 0.98); border: 1px solid #4a3c28; border-radius: 8px; overflow: hidden; text-align: center; padding: 12px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.shop-card:hover { transform: translateY(-4px); border-color: #d4af37; box-shadow: 0 6px 15px rgba(212, 175, 55, 0.25); }
.card-img-box { position: relative; background: rgba(0, 0, 0, 0.6); border: 1px solid #4a3c28; padding: 10px; border-radius: 6px; margin-bottom: 8px; }
.card-img-box img { max-width: 50px; height: 50px; object-fit: contain; }
.card-qty-badge { position: absolute; top: 4px; right: 4px; background: rgba(0, 0, 0, 0.8); border: 1px solid #4a3c28; color: #e0d6cc; font-size: 0.75rem; padding: 1px 6px; border-radius: 4px; }
.card-title { font-size: 0.9rem; font-weight: 600; color: #e0d6cc; margin-bottom: 10px; line-height: 1.3; height: 2.6em; display: flex; align-items: center; justify-content: center; }
.card-price { font-weight: bold; color: #ffcc00; background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.3); padding: 4px; border-radius: 4px; font-size: 0.9rem; }

.card-rare { border-color: #8b0000; background: rgba(30, 10, 10, 0.96); }
.card-rare:hover { border-color: #ff4d4d; box-shadow: 0 6px 15px rgba(255, 77, 77, 0.3); }
.card-rare .card-qty-badge { background: #8b0000; border-color: #ff4d4d; color: #fff; }
.card-rare .card-title { color: #ffcc00; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9); }
.card-rare .card-price { color: #ff4d4d; background: rgba(255, 77, 77, 0.1); border-color: rgba(255, 77, 77, 0.3); }

.shop-card.game-tooltip { color: inherit !important; text-decoration: none !important; cursor: pointer; }
.shop-card.game-tooltip:hover { color: inherit !important; text-decoration: none !important; border-color: #d4af37; }

.craft-badge { font-weight: bold; color: #b3a69a; background: rgba(255, 255, 255, 0.05); border: 1px dashed #4a3c28; padding: 4px; border-radius: 4px; font-size: 0.85rem; letter-spacing: 1px; transition: all 0.2s ease; }
.shop-card:hover .craft-badge { color: #ffcc00; background: rgba(212, 175, 55, 0.15); border: 1px solid rgba(212, 175, 55, 0.5); }

.shop-notice-box { background: rgba(17, 12, 0, 0.85); border: 1px solid #4a3c28; border-left: 4px solid #d4af37; border-radius: 6px; padding: 16px 20px; margin-top: 25px; margin-bottom: 10px; color: #e0d6cc; font-size: 0.95rem; line-height: 1.6; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }
.shop-notice-title { color: #ffcc00; font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; letter-spacing: 1px; }
.shop-notice-list { margin: 0; padding-left: 22px; }
.shop-notice-list li { margin-bottom: 6px; }
.shop-notice-list li:last-child { margin-bottom: 0; }

.feature-showcase-wrapper { margin-top: 30px; margin-bottom: 30px; }
.feature-showcase-box { display: flex; align-items: center; background: linear-gradient(135deg, rgba(25, 20, 15, 0.95) 0%, rgba(10, 8, 5, 0.98) 100%); border: 1px solid #4a3c28; border-radius: 10px; padding: 20px; margin-bottom: 20px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); transition: all 0.3s ease; }
.feature-showcase-box:hover { border-color: #d4af37; box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15); transform: translateY(-2px); }
.feature-img-wrap { flex: 0 0 120px; height: 120px; background: rgba(0, 0, 0, 0.8); border: 1px solid #635036; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-right: 25px; position: relative; box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8); }
.feature-img-wrap img { max-width: 85px; max-height: 85px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.3)); }
.feature-text-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.feature-title { font-size: 1.25rem; font-weight: 700; color: #ffcc00; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); }
.feature-tag { font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; background: rgba(220, 53, 69, 0.2); border: 1px solid #dc3545; color: #ff4d4d; font-weight: bold; }
.feature-desc { font-size: 0.95rem; color: #e0d6cc; line-height: 1.7; margin-bottom: 10px; }
.feature-points { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.feature-points li { font-size: 0.85rem; color: #b3a69a; display: flex; align-items: center; }
.feature-points li::before { content: "\25C6"; color: #d4af37; margin-right: 6px; font-size: 0.8rem; }

/* ========================================================================= */
/* 09. 寶物與系統展示櫃 (Showcase Cabinet)
/* ========================================================================= */
.showcase-cabinet { border: 1px solid #0a4165; border-radius: 8px; background-color: #ffffff; background-image: linear-gradient(to top, #dfe9f3 0%, white 100%); margin-bottom: 30px; overflow: hidden; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); }
.showcase-header { display: flex; align-items: center; padding: 15px 20px; background-image: linear-gradient(to top, #09203f 0%, #537895 100%); border-bottom: 2px solid #ffc107; }
.showcase-icon { width: 55px; height: 55px; flex-shrink: 0; background: rgba(0, 0, 0, 0.2); border: 1px solid #ffc107; border-radius: 6px; padding: 5px; margin-right: 18px; box-shadow: 0 0 8px rgba(255, 193, 7, 0.3); }
.showcase-icon img { width: 100%; height: 100%; object-fit: contain; }
.showcase-info { flex: 1; }
.showcase-title { font-size: 1.1rem; font-weight: 700; color: #ffffff; margin-bottom: 6px; letter-spacing: 1px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; line-height: 1.4; }
.showcase-title span { font-size: 0.8rem; color: #09203f; font-weight: bold; background: #ffc107; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.showcase-desc { font-size: 0.9rem; color: #e7f0fd; line-height: 1.5; margin: 0; }
.showcase-body { padding: 15px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 12px; }

.cabinet-item { display: flex; flex-direction: column; align-items: center; padding: 10px 5px; background: #ffffff; border: 1px solid #0a4165; border-radius: 6px; text-align: center; transition: all 0.2s ease; }
.cabinet-item:hover { border-color: #ffc107; background: rgba(255, 193, 7, 0.05); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(10, 65, 101, 0.2); }
.cabinet-item img { max-width: 35px; max-height: 35px; object-fit: contain; margin-bottom: 8px; }
.cabinet-item .item-name { font-size: 0.8rem; color: #0a4165; font-weight: bold; line-height: 1.2; }
.cabinet-item.game-tooltip { color: inherit !important; text-decoration: none !important; cursor: pointer; }

.showcase-system-text { padding: 15px 20px; color: #333333; font-size: 0.95rem; line-height: 1.7; font-weight: 500; }
.showcase-system-text ul { margin: 0; padding-left: 20px; }
.showcase-system-text li { margin-bottom: 5px; }
.showcase-system-text li::marker { color: #0a4165; }

/* ========================================================================= */
/* 10. 儲值與頭像特效專區 (Sponsor, Avatar & Glow Effects)
/* ========================================================================= */
/* --- 自助開單專屬暗黑面板 --- */
.sponsor-dark-panel {
    background-color: #121212; 
    background-image: linear-gradient(135deg, #1c1c1c 0%, #0a0a0a 100%);
    color: #ffffff; border-radius: 8px; border: 1px solid #333333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.sponsor-step-box {
    border-radius: 4px; padding: 12px 15px; margin-bottom: 12px;
}
.btn-sponsor {
    border: 1px solid #ffc107; color: #ffc107 !important; 
    background: transparent; padding: 8px 26px; border-radius: 50px;
    font-weight: 700; transition: all 0.3s ease; text-decoration: none;
    display: inline-block; margin-right: 10px; margin-top: 10px;
}
.btn-sponsor:hover {
    background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 50%, #b38728 100%);
    color: #000000 !important; box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}

/* --- 單一職業大頭像 --- */
.avatar {
    display: block; margin: 10px auto; width: 64px; height: 64px;
    object-fit: cover; border-radius: 50%; padding: 4px;
    border: 3px solid #ffffff; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25); 
    transition: all 0.3s ease;
}
.avatar:hover { transform: translateY(-3px); }

/* --- 「全職」多頭像堆疊布局 --- */
.avatar-stack {
    display: flex; justify-content: center; align-items: center; padding: 10px 0;
}
.avatar-sm {
    width: 36px; height: 36px; object-fit: cover; border-radius: 50%;
    padding: 2px; border: 2px solid #ffffff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin-left: -8px; transition: all 0.25s ease; position: relative; cursor: pointer;
}
.avatar-stack .avatar-sm:first-child { margin-left: 0; }
.avatar-sm:hover {
    transform: scale(1.25) translateY(-2px); z-index: 10;
}

/* --- 職業自定義顏色 --- */
.royal { background-color: #ff4757; }
.royal:hover { box-shadow: 0 6px 15px rgba(255, 71, 87, 0.8); }

.knight { background-color: #2e86de; }
.knight:hover { box-shadow: 0 6px 15px rgba(46, 134, 222, 0.8); }

.elf { background-color: #ff6b81; }
.elf:hover { box-shadow: 0 6px 15px rgba(255, 107, 129, 0.8); }

.mage { background-color: #ffd700; }
.mage:hover { box-shadow: 0 6px 15px rgba(255, 215, 0, 0.8); }

.darkelf { background-color: #9b59b6; }
.darkelf:hover { box-shadow: 0 6px 15px rgba(155, 89, 182, 0.8); }

/* --- 各職業選單光芒特效 --- */

/* 王族 */
.intro4_menu_img_royal {
    filter: drop-shadow(0 0 12px rgba(255, 6, 6, 0.60));
    transition: transform 0.3s ease, filter 0.3s ease;
    -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
    will-change: filter, transform; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .intro4_menu_img_royal:hover {
        transform: scale(1.05) translate3d(0, 0, 0); filter: drop-shadow(0 0 20px rgba(255, 6, 6, 0.9));
    }
}
.intro4_menu_img_royal:active {
    transform: scale(0.93) translate3d(0, 0, 0); filter: drop-shadow(0 0 15px rgba(255, 6, 6, 0.9));
}

/* 騎士 */
.intro4_menu_img_knight {
    filter: drop-shadow(0 0 12px rgba(178, 5, 255, 0.60));
    transition: transform 0.3s ease, filter 0.3s ease;
    -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
    will-change: filter, transform; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .intro4_menu_img_knight:hover {
        transform: scale(1.05) translate3d(0, 0, 0); filter: drop-shadow(0 0 20px rgba(178, 5, 255, 0.9));
    }
}
.intro4_menu_img_knight:active {
    transform: scale(0.93) translate3d(0, 0, 0); filter: drop-shadow(0 0 15px rgba(178, 5, 255, 0.9));
}

/* 黑妖 */
.intro4_menu_img_darkelf {
    filter: drop-shadow(0 0 12px rgba(34, 0, 50, 0.60));
    transition: transform 0.3s ease, filter 0.3s ease;
    -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
    will-change: filter, transform; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .intro4_menu_img_darkelf:hover {
        transform: scale(1.05) translate3d(0, 0, 0); filter: drop-shadow(0 0 20px rgba(34, 0, 50, 0.9));
    }
}
.intro4_menu_img_darkelf:active {
    transform: scale(0.93) translate3d(0, 0, 0); filter: drop-shadow(0 0 15px rgba(34, 0, 50, 0.9));
}

/* 法師 */
.intro4_menu_img_mage {
    filter: drop-shadow(0 0 12px rgba(232, 186, 0, 0.60));
    transition: transform 0.3s ease, filter 0.3s ease;
    -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
    will-change: filter, transform; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .intro4_menu_img_mage:hover {
        transform: scale(1.05) translate3d(0, 0, 0); filter: drop-shadow(0 0 20px rgba(232, 186, 0, 0.9));
    }
}
.intro4_menu_img_mage:active {
    transform: scale(0.93) translate3d(0, 0, 0); filter: drop-shadow(0 0 15px rgba(232, 186, 0, 0.9));
}

/* 妖精 1 */
.intro4_menu_img_elf1 {
    filter: drop-shadow(0 0 12px rgba(0, 213, 232, 0.60));
    transition: transform 0.3s ease, filter 0.3s ease;
    -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
    will-change: filter, transform; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .intro4_menu_img_elf1:hover {
        transform: scale(1.05) translate3d(0, 0, 0); filter: drop-shadow(0 0 20px rgba(0, 213, 232, 0.9));
    }
}
.intro4_menu_img_elf1:active {
    transform: scale(0.93) translate3d(0, 0, 0); filter: drop-shadow(0 0 15px rgba(0, 213, 232, 0.9));
}

/* 妖精 2 */
.intro4_menu_img_elf2 {
    filter: drop-shadow(0 0 12px rgba(232, 137, 0, 0.60));
    transition: transform 0.3s ease, filter 0.3s ease;
    -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
    will-change: filter, transform; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .intro4_menu_img_elf2:hover {
        transform: scale(1.05) translate3d(0, 0, 0); filter: drop-shadow(0 0 20px rgba(232, 137, 0, 0.9));
    }
}
.intro4_menu_img_elf2:active {
    transform: scale(0.93) translate3d(0, 0, 0); filter: drop-shadow(0 0 15px rgba(232, 137, 0, 0.9));
}

/* 妖精 3 */
.intro4_menu_img_elf3 {
    filter: drop-shadow(0 0 12px rgba(0, 127, 232, 0.60));
    transition: transform 0.3s ease, filter 0.3s ease;
    -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
    will-change: filter, transform; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .intro4_menu_img_elf3:hover {
        transform: scale(1.05) translate3d(0, 0, 0); filter: drop-shadow(0 0 20px rgba(0, 127, 232, 0.9));
    }
}
.intro4_menu_img_elf3:active {
    transform: scale(0.93) translate3d(0, 0, 0); filter: drop-shadow(0 0 15px rgba(0, 127, 232, 0.9));
}

/* 妖精 4 */
.intro4_menu_img_elf4 {
    filter: drop-shadow(0 0 12px rgba(232, 0, 14, 0.60));
    transition: transform 0.3s ease, filter 0.3s ease;
    -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
    will-change: filter, transform; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .intro4_menu_img_elf4:hover {
        transform: scale(1.05) translate3d(0, 0, 0); filter: drop-shadow(0 0 20px rgba(232, 0, 14, 0.9));
    }
}
.intro4_menu_img_elf4:active {
    transform: scale(0.93) translate3d(0, 0, 0); filter: drop-shadow(0 0 15px rgba(232, 0, 14, 0.9));
}

/* 妖精 5 */
.intro4_menu_img_elf5 {
    filter: drop-shadow(0 0 12px rgba(9, 232, 0, 0.60));
    transition: transform 0.3s ease, filter 0.3s ease;
    -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
    will-change: filter, transform; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .intro4_menu_img_elf5:hover {
        transform: scale(1.05) translate3d(0, 0, 0); filter: drop-shadow(0 0 20px rgba(9, 232, 0, 0.9));
    }
}
.intro4_menu_img_elf5:active {
    transform: scale(0.93) translate3d(0, 0, 0); filter: drop-shadow(0 0 15px rgba(9, 232, 0, 0.9));
}

/* --- 魔法娃娃特效 --- */

/* 一般娃娃 */
.intro5_menu_img_normalDoll {
    filter: drop-shadow(0 0 12px rgba(119, 119, 119, 0.60));
    transition: transform 0.3s ease, filter 0.3s ease;
    -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
    will-change: filter, transform; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .intro5_menu_img_normalDoll:hover {
        transform: scale(1.05) translate3d(0, 0, 0); filter: drop-shadow(0 0 20px rgba(119, 119, 119, 0.9));
    }
}
.intro5_menu_img_normalDoll:active {
    transform: scale(0.93) translate3d(0, 0, 0); filter: drop-shadow(0 0 15px rgba(119, 119, 119, 0.9));
}

/* 高級娃娃 */
.intro5_menu_img_advancedDoll {
    filter: drop-shadow(0 0 12px rgba(64, 255, 56, 0.60));
    transition: transform 0.3s ease, filter 0.3s ease;
    -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
    will-change: filter, transform; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .intro5_menu_img_advancedDoll:hover {
        transform: scale(1.05) translate3d(0, 0, 0); filter: drop-shadow(0 0 20px rgba(64, 255, 56, 0.9));
    }
}
.intro5_menu_img_advancedDoll:active {
    transform: scale(0.93) translate3d(0, 0, 0); filter: drop-shadow(0 0 15px rgba(64, 255, 56, 0.9));
}

/* 稀有娃娃 */
.intro5_menu_img_rareDoll {
    filter: drop-shadow(0 0 12px rgba(55, 97, 255, 0.60));
    transition: transform 0.3s ease, filter 0.3s ease;
    -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
    will-change: filter, transform; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .intro5_menu_img_rareDoll:hover {
        transform: scale(1.05) translate3d(0, 0, 0); filter: drop-shadow(0 0 20px rgba(55, 97, 255, 0.9));
    }
}
.intro5_menu_img_rareDoll:active {
    transform: scale(0.93) translate3d(0, 0, 0); filter: drop-shadow(0 0 15px rgba(55, 97, 255, 0.9));
}

/* 英雄娃娃 */
.intro5_menu_img_heroDoll {
    filter: drop-shadow(0 0 12px rgba(255, 55, 55, 0.60));
    transition: transform 0.3s ease, filter 0.3s ease;
    -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
    will-change: filter, transform; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .intro5_menu_img_heroDoll:hover {
        transform: scale(1.05) translate3d(0, 0, 0); filter: drop-shadow(0 0 20px rgba(255, 55, 55, 0.9));
    }
}
.intro5_menu_img_heroDoll:active {
    transform: scale(0.93) translate3d(0, 0, 0); filter: drop-shadow(0 0 15px rgba(255, 55, 55, 0.9));
}

/* 傳說娃娃 */
.intro5_menu_img_legendDoll {
    filter: drop-shadow(0 0 12px rgba(168, 55, 255, 0.60));
    transition: transform 0.3s ease, filter 0.3s ease;
    -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
    will-change: filter, transform; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .intro5_menu_img_legendDoll:hover {
        transform: scale(1.05) translate3d(0, 0, 0); filter: drop-shadow(0 0 20px rgba(168, 55, 255, 0.90));
    }
}
.intro5_menu_img_legendDoll:active {
    transform: scale(0.93) translate3d(0, 0, 0); filter: drop-shadow(0 0 15px rgba(168, 55, 255, 0.90));
}

/* 神話娃娃 */
.intro5_menu_img_mythDoll {
    filter: drop-shadow(0 0 12px rgba(255, 222, 55, 0.60));
    transition: transform 0.3s ease, filter 0.3s ease;
    -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
    will-change: filter, transform; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .intro5_menu_img_mythDoll:hover {
        transform: scale(1.05) translate3d(0, 0, 0); filter: drop-shadow(0 0 20px rgba(255, 222, 55, 0.90));
    }
}
.intro5_menu_img_mythDoll:active {
    transform: scale(0.93) translate3d(0, 0, 0); filter: drop-shadow(0 0 15px rgba(255, 222, 55, 0.90));
}

/* 唯一娃娃 */
.intro5_menu_img_uniqueDoll {
    filter: drop-shadow(0 0 12px rgba(55, 227, 255, 0.60));
    transition: transform 0.3s ease, filter 0.3s ease;
    -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
    will-change: filter, transform; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .intro5_menu_img_uniqueDoll:hover {
        transform: scale(1.05) translate3d(0, 0, 0); filter: drop-shadow(0 0 20px rgba(55, 227, 255, 0.90));
    }
}
.intro5_menu_img_uniqueDoll:active {
    transform: scale(0.93) translate3d(0, 0, 0); filter: drop-shadow(0 0 15px rgba(55, 227, 255, 0.90));
}

/* 魔法娃娃雕像 - 基礎設定與懸浮動畫 */
.intro5_menu_img_statue {
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.5));
    animation: float-statue 4s ease-in-out infinite;
    cursor: pointer;
    will-change: transform;
}

@keyframes float-statue {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@media (hover: hover) {
    .intro5_menu_img_statue:hover {
        filter: drop-shadow(0px 15px 30px rgba(255, 69, 0, 0.6)) brightness(1.15);
    }
}

.intro5_menu_img_statue:active {
    transform: scale(0.95) !important;
    filter: drop-shadow(0px 5px 10px rgba(255, 69, 0, 0.8)) brightness(1.2);
    animation: none;
}

/* 變身卡合成雕像 - 基礎設定與暗黑紫光特效 */
.intro6_menu_img_statue {
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.5));
    animation: float-statue 4s ease-in-out infinite;
    cursor: pointer;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: filter, transform;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .intro6_menu_img_statue:hover {
        filter: drop-shadow(0px 15px 30px rgba(178, 5, 255, 0.6)) brightness(1.15);
    }
}

.intro6_menu_img_statue:active {
    transform: scale(0.95) translate3d(0, 0, 0) !important;
    filter: drop-shadow(0px 5px 15px rgba(178, 5, 255, 0.9)) brightness(1.2);
    animation: none;
}

/* --- 收藏卡冊：七彩呼吸眩光特效 --- */
.intro_book_img {
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    animation: float-book 4s ease-in-out infinite, magic-glare 3s alternate infinite;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: filter, transform;
    -webkit-tap-highlight-color: transparent;
}

@keyframes float-book {
    0%, 100% { transform: translateY(0px) translate3d(0, 0, 0); }
    50% { transform: translateY(-10px) translate3d(0, 0, 0); }
}

@keyframes magic-glare {
    0% { 
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4)) 
                drop-shadow(0 0 20px rgba(0, 255, 255, 0.3)) 
                brightness(1); 
    }
    100% { 
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.7)) 
                drop-shadow(0 0 35px rgba(255, 0, 255, 0.5)) 
                brightness(1.15); 
    }
}

@media (hover: hover) {
    .intro_book_img:hover {
        transform: scale(1.05) translate3d(0, 0, 0);
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.9)) 
                drop-shadow(0 0 50px rgba(255, 215, 0, 0.8)) 
                brightness(1.25);
        animation: none;
    }
}

.intro_book_img:active {
    transform: scale(0.93) translate3d(0, 0, 0) !important;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1)) 
            drop-shadow(0 0 45px rgba(0, 255, 255, 0.9)) 
            brightness(1.3);
    animation: none;
}

/* ========================================================================= */
/* 11. 全域響應式斷點大全 (Global Media Queries)
/* ========================================================================= */
/* --- 1400px 以下 (一般筆電) --- */
@media (max-width: 1400px) {
    .inner_faq_img img { margin-top: 10%; }
}

/* --- 1200px 以上 (大型桌面) --- */
@media (min-width: 1200px) {
    .class-showcase-row .class-card-col { 
        flex: 0 0 20% !important; max-width: 20% !important; 
        width: 20% !important; padding: 0 6px !important; 
    }
}

/* --- 防止剛好在 1200px 寬度時產生斷點樣式衝突 --- */
@media (max-width: 1199.98px) {
    .inner_faq_img img { margin-top: 20%; }
    .testimonial_carousel_r { display: none; }
}

/* --- 768px ~ 1199.98px (平板橫向與小筆電) --- */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .class-showcase-row .class-card-col { 
        flex: 0 0 33.33% !important; max-width: 33.33% !important; 
        width: 33.33% !important; padding: 8px 6px !important; 
    }
}

/* --- 768px 以上 (非手機裝置) --- */
@media (min-width: 768px) {
    .sub-tab-row.flex-md-column .nav-item { padding: 2px 0 !important; margin: 0 !important; }
}

/* --- 核心斷點：991.98px 以下 (平板與手機面版切換) --- */
@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(256, 256, 256, .1); }
    .testimonial_carousel_t { display: flex; width: 100%; padding-left: 0%; }
    .testimonial_carousel_l { display: none; }
    .inner_faq_img img { margin-top: 0px; padding-left: 15%; width: 85%; }
    .inner_faq_img_l { display: flex; }
    .inner_faq_img_r { display: none; }
    .service_area_lbg { background: url(../image/service_area_lbg.webp?v=2) no-repeat 100% 100% / contain; transition: .5s; }
    .me-auto { align-items: stretch; }
    .logo_none { display: none; }
    .powerbook table { width: 100%; }
    #rule_table_1 { width: 20%; }
    #rule_table_2 { width: 80%; }
}

/* --- 手機專屬斷點：767.98px 以下 --- */
.intro5_menu_6_imgT { display: none; }
.intro5_menu_6_imgL { display: block; }

@media (max-width: 767.98px) {
    /* Tooltip 置底 */
    .popup-window.mobile-bottom-mode { 
        position: fixed !important; left: 50% !important; top: auto !important; 
        bottom: 20px !important; transform: translateX(-50%) !important; 
        width: 85% !important; max-height: 340px !important; 
    }
    .popup-window.mobile-bottom-mode::before { display: none !important; }
    .popup-window.mobile-bottom-mode .tooltip-multi-container { flex-direction: column; gap: 20px; max-width: 100% !important; }
    .popup-window.mobile-bottom-mode .tooltip-inner-content { width: 100% !important; }
    .popup-window.mobile-bottom-mode .tooltip-multi-container > .tooltip-card-divider { display: none !important; }
    
    /* 雜項優化 */
    .intro1_menu_1_img, .intro1_menu_5_img, .intro4_menu_img, .intro5_menu_img { max-width: 70%; }
    .intro5_menu_6_imgT { display: flex; }
    .intro5_menu_6_imgL { display: none; }
    .exp-table td { font-size: 13px; }
    
    /* 動態提示 */
    .mobile-swipe-hint {
        display: flex; justify-content: flex-end; align-items: center; 
        font-size: 13px; font-weight: 700; color: #ffc107; 
        margin-bottom: 5px; letter-spacing: 1px; 
        animation: swipeHintAnim 2s infinite ease-in-out;
    }
    
    /* 四欄選單縮放 */
    #armor-mobile-5col-wrapper .sub-tab-row { 
        display: flex !important; flex-wrap: wrap !important; 
        flex-direction: row !important; justify-content: center !important; 
    }
    #armor-mobile-5col-wrapper .sub-tab-row .nav-item { 
        flex: 1 0 25% !important; max-width: 25% !important; padding: 2px !important; 
    }
    #armor-mobile-5col-wrapper .btn-sub-tab { width: 100% !important; }
    #town-shortcut-wrapper ul { 
        display: flex !important; flex-wrap: wrap !important; flex-direction: row !important; 
    }
    #town-shortcut-wrapper ul .nav-item { 
        flex: 0 0 20% !important; max-width: 20% !important; 
        width: 20% !important; padding: 1px !important; 
    }
    #town-shortcut-wrapper .btn-sub-tab { width: 100% !important; padding: 6px 1px !important; font-size: 12px !important; }
    .class-showcase-row .class-card-col { 
        flex: 0 0 50% !important; max-width: 50% !important; 
        width: 50% !important; padding: 8px 6px !important; 
    }
    
    /* 圖文展示區堆疊 */
    .feature-showcase-box { flex-direction: column; text-align: center; padding: 20px 15px; }
    .feature-img-wrap { margin-right: 0; margin-bottom: 15px; width: 100px; height: 100px; flex: none; }
    .feature-title, .feature-points { justify-content: center; }
    
    /* 寶物展示櫃縮放 */
    .showcase-body { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
}

/* =========================================
   魔法懸浮特效與圖片光影 (全站共用)
   ========================================= */

/* 1. 靈動浮游動畫規則 */
@keyframes floatingMagic {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* 2. 懸浮特效容器 */
.floating-container {
    display: flex;
    justify-content: center;
    animation: floatingMagic 4s ease-in-out infinite;
}

/* 3. 去背魔法圖片專屬光影與過渡特效 */
.craft-magic-img {
    width: 350px;
    max-width: 100%;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5)); 
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
    will-change: opacity, transform;
}

/* ========================================================================= */
/* 12. 活動網頁專屬樣式 (Event Specific Styles)
/* ========================================================================= */

/* --- NPC 卡片響應式分隔線 --- */
.npc-card-divider { border-right: 1px dashed rgba(10, 65, 101, 0.18); }
@media (max-width: 767.98px) {
    .npc-card-divider {
        border-right: none;
        border-bottom: 1px dashed rgba(10, 65, 101, 0.18);
        padding-bottom: 15px !important;
        margin-bottom: 15px !important;
    }
}

/* --- 製作材料標籤雲按鈕 --- */
.tooltip-tag-btn {
    display: inline-block; 
    padding: 4px 10px; 
    background: #0a4165; 
    color: #ffffff !important; 
    text-decoration: none !important; 
    border-radius: 4px; 
    font-size: 0.9rem; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}
.tooltip-tag-btn:hover { background: #ffc107; color: #000000 !important; transform: translateY(-2px); }

/* 稀有道具按鈕 (紅色) */
.tooltip-tag-btn.rare { background: #b32828; }
.tooltip-tag-btn.rare:hover { background: #ff4d4d; color: #ffffff !important; }

/* --- 流程與說明文字排版 --- */
.event-step-title { color: #b38728; font-size: 1.05rem; font-weight: 700; }
.text-hl-blue { color: #0a4165; font-weight: bold; }
.text-hl-red { color: #d9534f; font-weight: bold; }
.text-note-sm { font-size: 0.85rem; color: #777777; }
.event-npc-title { color: #0a4165; font-weight: 900; letter-spacing: 2px; }

/* ========================================================================= */
/* 13. 點名系統專屬樣式 (Attendance System Styles)
/* ========================================================================= */

/* --- 點名專用網格 --- */
.attendance-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
}

/* --- 1. 簽到卡片基礎設定 --- */
.attendance-card {
    position: relative;
    background: #ffffff;
    height: 100%;
}
.showcase-cabinet .cabinet-item.attendance-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 110px !important;
    padding: 10px 5px;
    box-sizing: border-box;
    overflow: hidden;
}

/* 週期大獎 (第5、10、15天) 卡片設定 */
.attendance-card.special {
    background: rgba(217, 83, 79, 0.05);
    border-color: #d9534f;
}

/* --- 2. 道具圖片大小與間距 --- */
.showcase-cabinet .attendance-card img {
    max-width: 40px !important; 
    max-height: 40px !important; 
    object-fit: contain; 
    margin-top: 15px !important; 
    margin-bottom: 0 !important;
    flex-shrink: 0;
}
.attendance-card.special img {
    filter: drop-shadow(0 0 8px rgba(217,83,79,0.6));
}

/* --- 3. 道具名稱文字 --- */
.showcase-cabinet .attendance-card .item-name {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important; 
    white-space: nowrap !important;
    overflow: hidden !important; 
    text-overflow: ellipsis !important; 
    box-sizing: border-box;
    padding: 0 4px;
    margin-top: 8px !important; 
    font-size: 0.8rem;
}
.attendance-card.special .item-name {
    font-size: 0.9rem;
    color: #d9534f;
}

/* --- 4. 左上角天數標籤 --- */
.day-badge {
    position: absolute;
    top: -1px;
    left: -1px;
    background: #0a4165;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 6px 0 6px 0;
    z-index: 2;
}
.day-badge.special {
    background: #d9534f;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* --- 5. 右上角道具數量標籤 --- */
.attendance-qty {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid #0a4165;
    color: #ffc107;
    font-size: 0.75rem;
    font-family: Arial, sans-serif;
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.attendance-card.special .attendance-qty {
    border-color: #d9534f;
    color: #ffffff;
    background: rgba(217, 83, 79, 0.85);
}

/* --- 6. 手機版點名系統專屬優化 --- */
@media (max-width: 767.98px) {
    .attendance-grid {
        gap: 3px !important; 
        padding: 8px !important;
    }
    .showcase-cabinet .cabinet-item.attendance-card {
        padding: 4px 2px !important;
    }
    
    .day-badge {
        font-size: 0.6rem !important;
        padding: 1px 3px !important;
        letter-spacing: -0.5px; 
    }
    
    /* 垂直排隊 (圖片 -> 數量 -> 文字) */
    .showcase-cabinet .attendance-card img {
        order: 1 !important; 
        max-width: 28px !important; 
        max-height: 28px !important; 
        margin-top: 10px !important; 
        margin-bottom: 0 !important;
    }
    
    .attendance-qty {
        position: relative !important; 
        order: 2 !important; 
        top: auto !important; bottom: auto !important; right: auto !important; left: auto !important;
        margin-top: 2px !important; 
        margin-bottom: 1px !important;
        font-size: 0.6rem !important;
        padding: 1px 5px !important;
        border-radius: 3px !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
    }
    
    .showcase-cabinet .attendance-card .item-name {
        order: 3 !important; 
        font-size: 0.65rem !important;
        margin-top: 0 !important;
    }
}

/* ========================================================================= */
/* 蒐藏清單：道具圖片懸浮名稱提示 */
/* ========================================================================= */
#universal-tooltip .tooltip-img-inline[data-item-name] {
  position: relative;
  cursor: pointer;
}

#universal-tooltip .tooltip-img-inline[data-item-name]:hover::after {
  content: attr(data-item-name);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 15, 15, 0.95);
  color: #ffcc00;                 
  border: 1px solid #d4af37;     
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;          
  z-index: 10000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* ========================================================================= */
/* 14. 新手導引專屬：9 顆分頁按鈕自適應均分排版 (intro_1.html Tabs Layout)
/* 說明：專門解決 intro_1 增加第 9 顆分頁後避免落單置中的排版優化。
/* 作用範圍：僅對套用 .custom-tab-grid 的容器生效，不影響其他頁面。
/* ========================================================================= */
.custom-tab-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px; /* 按鈕之間的間距 */
}

/* 預設（手機版 < 768px）：每列 2 個按鈕，第 9 個自動延展 100% 滿版 */
.custom-tab-grid .nav-item {
    flex: 1 1 calc(50% - 4px);
    margin: 0;
}
.custom-tab-grid .nav-item:last-child {
    flex: 1 1 100%;
}
.custom-tab-grid .nav-link-5 {
    width: 100%;
    margin: 0 !important;
}

/* 平板版 (768px ~ 991.98px)：一行 3 個，9 個按鈕剛好排成 3x3 完美方陣 */
@media (min-width: 768px) and (max-width: 991.98px) {
    .custom-tab-grid .nav-item,
    .custom-tab-grid .nav-item:last-child {
        flex: 1 1 calc(33.333% - 4px);
    }
}

/* 電腦版 (992px 以上)：第一排 5 個、第二排 4 個，每排自動填滿均分 */
@media (min-width: 992px) {
    .custom-tab-grid .nav-item {
        flex: 1 1 calc(20% - 4px); /* 上排 5 個 */
    }
    .custom-tab-grid .nav-item:nth-child(n+6) {
        flex: 1 1 calc(25% - 4px); /* 下排 4 個自動等分加寬填滿整列 */
    }
}

/* ========================================================================= */
/* 圖片放大燈箱特效 (Lightbox) */
/* ========================================================================= */
.zoomable-wrap {
    cursor: pointer;
    position: relative;
}
.zoomable-wrap:hover {
    border-color: #ffc107 !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
}
.zoomable-wrap .zoom-icon {
    position: absolute;
    bottom: 4px;
    right: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 4px;
    border-radius: 3px;
    pointer-events: none;
    transition: color 0.2s ease;
}
.zoomable-wrap:hover .zoom-icon {
    color: #ffcc00;
}

/* 放大遮罩層 */
.image-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.image-lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

/* 放大圖片容器主體 */
.image-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    border: 2px solid #d4af37;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: zoomInLight 0.25s ease-out;
}
.image-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
}

/* 關閉按鈕 */
.image-lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    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.6);
    line-height: 1;
}
.image-lightbox-close:hover {
    background: #ffcc00;
    color: #000;
}

@keyframes zoomInLight {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}