@charset "utf-8";

/* =========================================
   0. 字体定义
   ========================================= */
@font-face {
    font-family: 'Kaiti';
    src: url('../tff/ShiJingKaiShu-ChaoQingFanTi-2.woff2') format('woff2'),
         url('/dmwh/assets/tff/ShiJingKaiShu-ChaoQingFanTi-2.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   1. 基础全局设置
   ========================================= */
* { margin: 0; padding: 0; }

#eve_box {
    width: 100%; height: 100%; position: fixed; left: 0; top: 0; background: #000; z-index: 1000;
}
.popIframe {
    width: 100%; height: 100%; position: fixed; left: 0; top: 0; z-index: 1000; background: #fff;
}
.CLOSE { display: none; }
.OPEN { display: block; }

/* =========================================
   2. 顶部导航栏 (高度自适应 + Logo控制)
   ========================================= */
#custom_top_bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    
    /* ★ 核心1：高度设为自动，由内容(Logo)撑开 */
    height: auto; 
    min-height: 60px;
    
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    
    /* Flex 布局 */
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: flex-end; /* 按钮靠右 */
    
    /* ★ 核心2：调整内边距 (Logo 紧贴左侧) */
    /* 上下 15px：让导航栏变高一点，更有气势 */
    /* 左右 20px：Logo 距离左边缘 20px */
    padding: 15px 20px; 
    
    box-sizing: border-box;
    border-bottom: 1px solid rgba(220, 179, 118, 0.3);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* --- 左侧 Logo 容器 --- */
.bar_left_logo {
    /* 把右边的按钮推到最右侧 */
    margin-right: auto; 
    display: flex;
    align-items: center;
    padding: 0; 
}

.bar_left_logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

/* ★★★ Logo 图片大小控制 (核心) ★★★ */
.bar_left_logo img {
    /* 您的原图高度是 100px */
    /* 设置为 80px (原大小的80%-90%)，导航栏总高度会自动变成约 110px */
    height: 80px; 
    
    width: auto; /* 宽度按比例自适应 */
    display: block;
    object-fit: contain;
}

/* --- 右侧按钮样式 --- */
.top_btn {
    display: inline-block;
    margin-left: 15px;
    padding: 8px 20px;
    font-family: "Kaiti", "Microsoft YaHei", serif;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    color: #dcb376;
    border: 1px solid #dcb376;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    white-space: nowrap;
}

.top_btn:hover {
    background: #dcb376;
    color: #1a1a1a;
    box-shadow: 0 0 15px rgba(220, 179, 118, 0.4);
    transform: translateY(-2px);
}

.discord_btn { border-color: #5865F2; color: #5865F2; }
.discord_btn:hover { background: #5865F2; color: #fff; box-shadow: 0 0 15px rgba(88, 101, 242, 0.4); }

/* 手机端适配 */
@media screen and (max-width: 768px) {
    #custom_top_bar { 
        justify-content: center; 
        padding: 10px; 
    }
    .bar_left_logo { 
        display: none; /* 手机屏窄，隐藏大Logo */
    } 
    .top_btn { 
        margin-left: 5px; 
        padding: 5px 10px; 
        font-size: 12px; 
    }
}

/* =========================================
   3. 核心特效层 (保持不变)
   ========================================= */
.l-wrap__bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; overflow: hidden;
}
#fluid_container { width: 100%; height: 100%; display: block; }
.top_d, #box01_d, #box02_d, #box03_d, #footer_d { position: relative; z-index: 2; }


/* =========================================
   4. 门派按钮 强力修复补丁 (保持不变)
   ========================================= */
@media screen and (min-width: 1025px) {
    .npc_bntbox {
        position: absolute !important;
        width: 100% !important;
        bottom: 60px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 50 !important;
    }
    .npc_bnt {
        width: 50vw !important;
        height: auto !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-end !important;
    }
    .npc_bnt > div {
        width: 14% !important;
        height: auto !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 5px !important;
        box-sizing: border-box;
    }
    .show_img_pc {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

@media screen and (max-width: 1024px) {
    .npc_bnt_box_m {
        position: absolute !important;
        bottom: 8vw !important;
        width: 100% !important;
        left: 0 !important;
        z-index: 50 !important;
    }
    .npc_bnt {
        width: 95vw !important;
        height: auto !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }
    .npc_bnt > div {
        width: 14.28% !important;
        height: auto !important;
        float: none !important;
        margin: 0 !important;
    }
    .show_img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

/* =========================================
   5. 按钮交互修复 (叠加变亮，防止跳动)
   ========================================= */
.npc_menu, .npc_menu_m {
    position: relative !important;
    width: 14.28% !important; 
    overflow: hidden;
}
.npc_menu .show_img_pc, 
.npc_menu_m .show_img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    z-index: 1;
}
.npc_menu .show_img_h, 
.npc_menu_m .show_img_h {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.npc_menu:hover .show_img_h,
.npc_menu_m:hover .show_img_h {
    opacity: 1;
}
.npc_menu.active .show_img_h,
.npc_menu_m.active .show_img_h {
    opacity: 1;
}

