/* =========================================
   1. 全局基礎設定 (保留排版，僅改深色背景)
   ========================================= */
html,
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    /* 背景改為深色，不搶遊戲畫面 */
    background: #0f1012;
    color: #e0e0e0;
    font-family: 'Noto Sans TC', Arial, sans-serif;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

/* =========================================
   2. Banner 與背景影片 (保留結構，壓低亮度)
   ========================================= */
.banner-hero {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.banner-hero video {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    /* 濾鏡：壓暗亮度，並稍微降低飽和度，讓 UI 更凸顯 */
    filter: brightness(0.5) grayscale(0.2) blur(0px);
    z-index: 1;
    pointer-events: none;
}

.banner-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    /* 背景遮罩：改為暖色調的暗黑漸層 */
    background: linear-gradient(180deg, rgba(15, 12, 10, 0.5) 50%, rgba(10, 8, 5, 0.95) 100%);
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: normal;
    /* 取消 lighten，讓背景更沉穩 */
}

.banner-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 32px 16px 120px 16px;
    text-align: center;
}

/* =========================================
   3. 下載按鈕 (原 Diamond-css)
   由 [科技藍] -> 改為 [暗金/黑鐵]
   ========================================= */
.download-btns {
    display: flex;
    flex-direction: row;
    gap: 100px;
    justify-content: center;
    margin: 36px 0 0 0;
}

.diamond-css {
    display: inline-flex;
    width: 180px;
    height: 180px;
    /* 核心修改：背景改為深棕/黑鐵漸層 */
    background: linear-gradient(160deg, #1c1815 65%, #4a3b2a 120%);
    border-radius: 22px;
    /* 核心修改：邊框改為金色 */
    border: 2px solid #bba682;
    /* 核心修改：陰影改為金色光暈 */
    box-shadow: 0 0 15px rgba(187, 166, 130, 0.3), 0 2px 20px #080808;
    color: #f1e4c8;
    /* 文字改為米金色 */
    font-size: 1.13em;
    font-weight: bold;
    letter-spacing: 2.5px;
    text-align: center;
    /* 文字陰影：金色微光 */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 2px #d4af37;
    transform: rotate(45deg);
    margin: 0;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.22s, background 0.18s, color 0.16s, transform 0.14s;
    align-items: center;
    justify-content: center;
}

.diamond-css span {
    display: block;
    transform: rotate(-45deg);
    font-family: 'Noto Sans TC', '微軟正黑體', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.08em;
    letter-spacing: 2.5px;
    width: 100%;
    white-space: pre-line;
    word-break: keep-all;
    text-align: center;
    line-height: 1.3;
    padding: 0 8px;
}

.diamond-css:hover {
    /* Hover：背景變亮一點的古銅色 */
    background: linear-gradient(160deg, #3d3226 30%, #8c7b50 120%);
    color: #fff;
    /* Hover：金色邊框與強烈光暈 */
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6), 0 4px 34px rgba(212, 175, 55, 0.3);
    transform: scale(1.06) rotate(45deg);
    border-color: #ffd700;
}

/* =========================================
   4. 功能連結 (原 Quick Links)
   由 [藍紫霓虹] -> 改為 [石板/金屬]
   ========================================= */
.quick-links-wrapper {
    margin: 50px auto 0 auto;
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    max-width: 1100px;
    margin: 0 auto;
}

.quick-link-fantasy {
    /* 背景：半透明黑 */
    background: rgba(20, 20, 22, 0.9);
    color: #ccc;
    /* 邊框：深灰金屬 */
    border: 2px solid #5d554a;
    border-radius: 6px;
    /* 稍微方一點，比較有剛硬感 */
    padding: 28px 0 18px 0;
    min-width: 230px;
    min-height: 150px;
    box-sizing: border-box;
    font-family: 'Noto Sans TC', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    text-decoration: none;
    transition: background 0.20s, color 0.17s, border 0.18s, box-shadow 0.21s, transform 0.14s;
    /* 陰影：深色沉穩 */
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 0 1px inset rgba(255, 255, 255, 0.05);
    margin: 8px 0;
    position: relative;
    overflow: hidden;
}

.quick-link-fantasy:hover,
.quick-link-fantasy:focus {
    /* Hover：背景帶一點暖光 */
    background: linear-gradient(180deg, #242220 0%, #302b25 100%);
    color: #fff;
    /* Hover：邊框變亮金 */
    border-color: #d4af37;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px) scale(1.045);
}

/* ICON 容器 */
.ql-icon {
    margin-top: 10px;
    margin-bottom: 16px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
    /* 去掉原本的藍色陰影 */
    transition: filter 0.16s;
}

.ql-icon svg {
    width: 56px;
    height: 56px;
}

/* 【重要修正】強制將 SVG 線條顏色改為金色，覆蓋 HTML 內的顏色設定 */
.quick-link-fantasy svg path,
.quick-link-fantasy svg circle,
.quick-link-fantasy svg rect,
.quick-link-fantasy svg polyline,
.quick-link-fantasy svg ellipse,
.quick-link-fantasy svg line {
    stroke: #8c7b50 !important;
    /* 預設：暗金 */
    transition: stroke 0.3s;
}

.quick-link-fantasy svg [fill]:not([fill="none"]) {
    fill: #222 !important;
    /* 預設填色：深灰 */
}

/* Hover 時 ICON 變亮白/亮金 */
.quick-link-fantasy:hover .ql-icon svg path,
.quick-link-fantasy:hover .ql-icon svg circle,
.quick-link-fantasy:hover .ql-icon svg rect,
.quick-link-fantasy:hover .ql-icon svg polyline {
    stroke: #ffd700 !important;
    filter: drop-shadow(0 0 2px #fff);
}

.ql-title {
    font-size: 1.32em;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 8px;
    /* 標題改為亮米色 */
    color: #f1e4c8;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

.ql-desc {
    font-size: 1.09em;
    font-weight: 500;
    /* 描述改為灰藍/灰金色 */
    color: #a0a0a0;
    opacity: 0.98;
    letter-spacing: 1.4px;
    line-height: 1.38;
    margin-top: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    min-height: 30px;
}

/* =========================================
   5. RWD 響應式 (保留原本邏輯，只改內部顏色)
   ========================================= */
@media (max-width: 1100px) {
    .quick-links {
        max-width: 99vw;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .quick-link-fantasy {
        min-width: 44vw;
    }
}

@media (max-width: 700px) {
    .banner-content {
        padding: 16px 4vw 100px 4vw;
    }

    .download-btns {
        display: none !important;
    }

    .quick-links-wrapper {
        margin-top: 40px !important;
    }

    .quick-links {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 99vw;
    }

    .quick-link-fantasy {
        min-width: 94vw;
        padding-left: 0;
        padding-right: 0;
        padding-top: 20px;
        padding-bottom: 14px;
        min-height: 110px;
    }

    .ql-icon,
    .ql-icon svg {
        width: 38px;
        height: 38px;
    }

    .ql-title {
        font-size: 1.15em;
    }

    .ql-desc {
        font-size: 0.97em;
    }
}

/* =========================================
   6. Footer 與 Logo (改色與光暈)
   ========================================= */
.footer {
    bottom: 1px;
    left: 0;
    width: 100%;
    text-align: center;
    /* Footer 文字改為淡灰色 */
    color: #999;
    font-size: 1em;
    letter-spacing: 0.08em;
    z-index: 100;
}

.footer-links {
    margin-bottom: 8px;
}

.gamex123-link img {
    display: inline-block;
    width: auto;
    margin-bottom: 4px;
    border-radius: 9px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.18s;
}

.gamex123-link img:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

@media (max-width: 700px) {
    .gamex123-link img {
        width: 100%;
        max-width: 95%;
        height: auto;
    }
}

@media (max-width: 650px) {
    .footer {
        position: static !important;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        padding: 8px 0;
    }
}

.logo-img {
    display: block;
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 0 auto 2px auto;
    /* Logo 增加暖色/金色光暈 */
    filter: drop-shadow(0 2px 12px rgba(255, 180, 50, 0.4));
}

@media (max-width: 700px) {
    .logo-img {
        max-width: 70vw;
        width: 100%;
        min-width: 120px;
        margin: 0 auto 16px auto;
    }
}

.hero__bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
}

.hero__bg--mobile {
    display: none;
}

@media (max-width:700px) {
    .hero__bg--desktop {
        display: none !important;
    }

    .hero__bg--mobile {
        display: block !important;
    }
}

.footer h1 {
    display: inline-block;
    font-size: 2.2em;
    font-family: 'Noto Sans TC', Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 0.15em;
    margin: 0 auto 18px auto;
    padding: 0.09em 0.65em;
    /* 標題改為金屬漸層 */
    background: linear-gradient(90deg, #7c7263 8%, #eaddcf 42%, #d4af37 75%, #7c7263 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* 文字陰影改為深色 */
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.8), 0 0 10px rgba(212, 175, 55, 0.3);
    filter: brightness(1.13);
    transition: color 0.14s, text-shadow 0.18s;
}

/* =========================================
   7. Badge (底部懸浮標籤 - 已修正為黑金風格)
   ========================================= */
.genshin-badge-fixbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 98;
    display: flex;
    justify-content: center;
    transition: opacity 0.26s cubic-bezier(.4, .6, .5, 1.18), transform 0.28s cubic-bezier(.4, .6, .5, 1.18);
    opacity: 1;
    pointer-events: none;
    padding-bottom: 2vw;
}

.genshin-badge-fixbar.hide {
    opacity: 0 !important;
    transform: translateY(60px) !important;
    pointer-events: none !important;
}

.genshin-badge-fixbar .genshin-badge {
    pointer-events: auto;
}

/* 基礎樣式：黑底金邊 */
.genshin-badge {
    display: inline-block;
    font-weight: 900;
    font-size: 2.2em;
    letter-spacing: 2.5px;
    padding: 16px 52px;
    /* 背景：深黑金屬漸層 */
    background: linear-gradient(90deg, #0f1012 0%, #1f1d1b 50%, #0f1012 100%);
    color: #f1e4c8;
    /* 米金色文字 */
    /* 邊框：古銅金 */
    border: 2px solid #bba682;
    border-radius: 10px;
    /* 陰影：金色微光 */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 0 0 10px rgba(187, 166, 130, 0.3);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* 手機版調整 */
@media (max-width:600px) {
    .genshin-badge-fixbar {
        padding-bottom: 6vw;
    }

    .genshin-badge {
        font-size: 1em;
        padding: 11px 8vw;
        border-width: 2px;
        border-radius: 22px;
    }
}

/* 【關鍵修正】強制統一 Online 狀態也是金色 */
.genshin-badge.badge-online,
.genshin-badge.badge-upcoming {
    /* 強制覆蓋原本的藍色，改為金色系 */
    color: #f1e4c8 !important;
    border-color: #bba682 !important;
    background: linear-gradient(90deg, #14110f 0%, #26211d 55%, #14110f 100%) !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9) !important;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.9), 0 0 8px rgba(187, 166, 130, 0.4) !important;
}

/* 增加一個 Hover 發光效果，讓質感更好 */
.genshin-badge:hover {
    border-color: #ffd700 !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5) !important;
    transform: translateY(-2px);
}

/* =========================================
   8. Footer 文字連結 (改為低調色)
   ========================================= */
.footer-text-links {
    margin: 10px auto 20px auto;
    padding: 0 10px;
    font-size: 0.95em;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.8;
}

.footer-text-links a {
    /* 連結改為灰色 */
    color: #888;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    display: inline-block;
}

.footer-text-links a:hover {
    /* Hover 變亮金 */
    color: #d4af37;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    transform: translateY(-1px);
}

.footer-text-links .sep {
    color: #444;
    /* 分隔線變暗 */
    margin: 0 8px;
    font-size: 0.9em;
    vertical-align: 1px;
}

@media (max-width: 500px) {
    .footer-text-links {
        font-size: 0.85em;
        max-width: 90%;
    }

    .footer-text-links .sep {
        margin: 0 4px;
    }
}