/* 引入阿里妈妈数黑体 */

@font-face {
    font-family: 'AlimamaShuHeiTi-Bold';
    src: url('../fonts/AlimamaShuHeiTi-Bold.woff2') format('woff2'),
        url('../fonts/AlimamaShuHeiTi-Bold.woff') format('woff'),
        url('../fonts/AlimamaShuHeiTi-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AlimamaFangYuanTiVF-Thin';
    src: url('../fonts/AlimamaFangYuanTiVF-Thin.woff2') format('woff2'),
        url('../fonts/AlimamaFangYuanTiVF-Thin.woff') format('woff'),
        url('../fonts/AlimamaFangYuanTiVF-Thin.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body {
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url('../images/site/gameworld/gw-bg.png');
    /* background-size: 100vw 100vh; */
    background-size: 100vw auto;
    background-attachment: fixed;
    min-height: 100vh;
    background-color: #333;
    transition: background-image 0.8s ease-in-out;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: auto;
}

.bodybg {
    background-size: 100vw 100vh !important;
}

.bodybg2 {
    background-size: 100vw 100vh !important;
}


        /* 添加自定义样式 */
        .ud-hero-content {
            padding: 0;
            text-align: center;
        }
        
        .section-title {
            margin-bottom: 60px;
        }
        
        .section-title h2 {
            font-size: 35px;
            margin-bottom: 15px;
        }
        
        .section-title p {
            font-size: 18px;
            color: #637381;
        }

        #season .col-lg-4 img {
            width: auto;
            max-height: calc(100vh - 80px);
            object-fit: contain;
            display: block;  /* 添加这行 */
            margin: 0 auto;  /* 添加这行 */
        }
        #season .container-fluid {
            margin: 0;
            padding: 0;
            height: 100%;
        }

        #season .row {
            height: 100%;
            align-items: center;
        }

/* 添加一个遮罩层用于背景切换时的过渡效果 */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.bg-overlay.active {
    opacity: 1;
}

/* 确保内容在遮罩层上方 */
.ud-header, 
.ud-hero,
.back-to-top {
    position: relative;
    z-index: 2;
}


.ud-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff;
}

.ud-hero-content p {
    font-size: 18px;
    line-height: 28px;
    color: #fff;
    margin-bottom: 40px;
}

.ud-hero-buttons {
    margin-top: 40px;
}

.ud-hero-buttons .ud-main-btn {
    margin: 0 10px;
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.card-text {
    color: #637381;
    line-height: 1.6;
}

/* 导航栏动画 */
.ud-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* z-index: 99; */
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.ud-hero {
    height: calc(100vh - 80px); /* 减去header的高度 */
    display: none;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: absolute; /* 使用绝对定位 */
    width: 100%;
    top: 80px; /* header高度 */
}

.ud-hero.active {
    display: flex;
    opacity: 1;
}

/* 修改菜单项容器样式 */
.nav-item {
    position: relative;
    transition: all 0.3s ease;
    padding: 0;
    min-width: 100px;
    text-align: center;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 修改菜单项样式 */
.ud-menu-scroll {
    font-family: 'AlimamaShuHeiTi-Bold', sans-serif;
    font-size: 19px!important;
    color: #ffffff !important;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0;
    line-height: 1;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* 选中图片样式 */
.nav-item img {
    position: absolute;
    /* left: 0; */
    width: 85%!important;
    height: auto;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none; /* 防止图片影响鼠标事件 */
    z-index: 0;
}

/* 激活状态显示选中图片 */
.nav-item.active img {
    opacity: 1;
}

.menuseason,.menuindex {
    .nav-item a  {
        color: #fff!important;
    }

    /* 菜单项容器激活状态 */
    .nav-item.active .ud-menu-scroll {
        color: #FF65B3 !important;
    }

    /* 鼠标悬停效果 */
    .nav-item:hover .ud-menu-scroll {
        color: #FF65B3 !important;
        text-decoration: none;
    }
}

.menugameword {
    .nav-item a {
        color: #ffffff!important;
    }

    /* 菜单项容器激活状态 */
    .nav-item.active .ud-menu-scroll {
        color: #adffd2 !important;
    }

    /* 鼠标悬停效果 */
    .nav-item:hover .ud-menu-scroll {
        color: #adffd2 !important;
        text-decoration: none;
    }
}

.menuwuqiku {
    .nav-item a {
        color: #3e6cd6!important;
    }

    /* 菜单项容器激活状态 */
    .nav-item.active .ud-menu-scroll {
        color: #FFCC92 !important;
    }

    /* 鼠标悬停效果 */
    .nav-item:hover .ud-menu-scroll {
        color: #FFCC92 !important;
        text-decoration: none;
    }
}

.menujueseji {
    .nav-item a {
        color: #716990!important;
    }

    /* 菜单项容器激活状态 */
    .nav-item.active .ud-menu-scroll {
        color: #FFFFFF !important;
    }

    /* 鼠标悬停效果 */
    .nav-item:hover .ud-menu-scroll {
        color: #FFFFFF !important;
        text-decoration: none;
    }
}

.menudongtai {
    .nav-item a {
        color: #ffffff!important;
    }

    /* 菜单项容器激活状态 */
    .nav-item.active .ud-menu-scroll {
        color: #befffb !important;
    }

    /* 鼠标悬停效果 */
    .nav-item:hover .ud-menu-scroll {
        color: #befffb !important;
        text-decoration: none;
    }
}



/* 调整导航菜单容器 */
.navbar-nav {
    align-items: center;
    height: 80px;
}

/* 确保导航栏背景透明 */
.ud-header {
    background: transparent;
}

/* 调整子菜单样式 */
.ud-submenu .ud-submenu-link {
    font-family: 'AlimamaShuHeiTi-Bold', sans-serif;
    font-size: 19px;
    color: #ffffff;
}

/* 调整logo大小 */
#sitelogo {
    transition: all 0.3s ease;
    width: auto;
}

/* 优化section切换动画 */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 调整内容容器样式 */
.container-fluid {
    padding: 0 15px;
    height: 100%;
}

/* 调整图片容器样式 */
.ud-hero .row {
    width: 100%;
    margin: 0;
    height: 100%;
}

/* 调整图片大小，确保适应容器 */
#season img {
    max-height: calc(100vh - 80px);
    object-fit: contain;
    width: auto;
}

/* 确保header固定在顶部 */
.ud-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
}

/* 调整内容垂直居中 */
.ud-hero-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 调整back-to-top按钮位置 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

/* 赛季图片容器样式 */
.season-img {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    padding: 0 15px;
}

.season-img img {
    max-height: calc(100vh - 80px);
    width: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

/* 悬停效果 */
.season-img:hover img {
    transform: scale(1.05);
}

/* 遮罩层样式 */
.season-overlay {
    position: absolute;
    top: 0;
    left: 15px;
    right: 15px;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
}

.season-content {
    text-align: center;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.season-content h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
    font-family: 'AlimamaShuHeiTi-Bold', sans-serif;
}

.season-content p {
    color: #fff;
    font-size: 16px;
    margin: 0;
    font-family: 'AlimamaShuHeiTi', sans-serif;
}

/* 悬停时的遮罩层效果 */
.season-img:hover .season-overlay {
    opacity: 1;
}

.season-img:hover .season-content {
    transform: translateY(0);
}

/* 下载按钮容器 */
.download-btn-wrapper {
    position: relative;
    margin-left: 20px;
}

/* 下载按钮图片 */
.download-btn {
    height: 43px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* 鼠标悬停效果 */
.download-btn:hover {
    transform: scale(1.1);
}

/* 游戏世界左侧容器样式 */
#leftcontainer {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gameword-left-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    height: 100%;
    width: 100%;
}

.gameword-img-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gameword-img-wrapper:hover {
    background-image: url('../images/site/gameworld/hoverbg.png');
}

.gameword-img {
    max-width: 100%;
    height: 130px;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gameword-img3 {
    transition: transform 0.8s ease;
    cursor: pointer;
    margin-left:6rem; 
    height: 65vh;
}

.gameword-img-entry {
    max-width: 100%;
    height: 130px;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
    margin-left:20rem;
}

/* 可选：添加鼠标悬停效果 */
.gameword-img:hover, .gameword-img3:hover {
    transform: scale(1.05);
}

.loopanimated {
    animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

@keyframes up-down {
    0% {
      transform: translateY(10px);
    }
  
    100% {
      transform: translateY(-10px);
    }
}


.role-more {
    width: 50%;
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.role-more:hover {
    transform: scale(1.1);
}

.weapon-more {
    width: 80%;
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.weapon-more:hover {
    transform: scale(1.1);
}

#boxleft2 {
    display: flex;
    position: relative;
    height: 100%;
}

#img1 {
    object-fit: contain;
    margin: auto;
    transition: transform 0.3s ease;
    width: 100%;
}

#img1:hover {
    transform: scale(1.05);
}

#img2 {
    position: absolute;  /* 使用绝对定位 */
    top: 0;             /* 贴近顶部 */
    right: 0;           /* 贴近右侧 */
    width: 40%;         /* 控制小图的宽度 */
    object-fit: contain;
    transition: transform 0.3s ease;
    z-index: 2;         /* 确保在大图上层 */
}

#img2:hover {
    transform: scale(1.1);
}

#wuqibig {
    max-height: 60vh;
    object-fit: contain;
}

#role-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-top: 20px;
    width: 80%;  /* 设置宽度为父元素的80% */
    margin-left: auto;  /* 水平居中 */
    margin-right: auto;
}

.role-item {
    width: calc(25% - 15px); /* 每行4个，减去间距 */
    height: 130px;
    background-image: url('../images/site/juese-weixuanzhong.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.role-item img {
    margin-top: -1.5rem;
    width: 70%;
    margin-left: 1.5rem;
}

.role-item:hover {
    background-image: url('../images/site/juese-xuanzhong.png');
    transform: scale(1.05);
}

.role-item.active {
    background-image: url('../images/site/juese-xuanzhong.png');
}



#updates {
    height: 60vh;
    overflow-y: auto;
    padding-right: 10px;  /* 为滚动条留出空间 */
}

/* 自定义滚动条样式 */
#updates::-webkit-scrollbar {
    width: 6px;
}

#updates::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#updates::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.update-item {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.update-content {
    width: 80%;
    margin: 0 auto;
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.update-title {
    color: #fff;
    font-size: 16px;
    font-family: 'AlimamaShuHeiTi-Bold', sans-serif;
}

.update-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 10px 0;
}

.update-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    max-height: 3em;  /* 两行的高度 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;  /* 限制两行 */
    -webkit-box-orient: vertical;
}

.gw-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gw-image:hover {
    transform: scale(1.01);
}

/* 图片网格样式 */
#image-grid {
    margin: 0 -15px; /* 抵消container-fluid的padding */
}

.grid-image {
    width: 100%;
    height: 250px; /* 设置固定高度，保持一致性 */
    object-fit: cover; /* 确保图片填充整个容器 */
    border-radius: 8px; /* 添加圆角 */
    transition: all 0.3s ease; /* 平滑过渡效果 */
    cursor: pointer;
}

.grid-image:hover {
    transform: scale(1.05); /* 悬停时放大效果 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* 悬停时添加阴影 */
}

/* 响应式调整 */
@media (max-width: 991px) {
    .grid-image {
        height: 200px; /* 在中等屏幕上稍微降低高度 */
    }
}

@media (max-width: 576px) {
    .grid-image {
        height: 180px; /* 在小屏幕上进一步降低高度 */
    }
}

.gigwrapper {
    background-image: url('../images/site/gameworld/bgnormal1.png');
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gigwrapper:hover {
    background-image: url('../images/site/gameworld/bghover1.png');
}

.gigwrapper .text-name {
    font-family: 'AlimamaShuHeiTi-Bold', sans-serif;
    font-size: 24px;
    color: #ffffff;
    margin-left: 20px;
}

.gigwrapper .yy-btn {
    width: 15%;  /* 相对于父元素宽度的15% */
    height: auto;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

.gigwrapper .yy-btn:hover {
    transform: scale(1.1);
}

.main-image {
    max-width: 80%;
    height: auto;
    transition: opacity 0.5s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.main-image-2 {
    opacity: 0;
    visibility: hidden;
}

.main-image.fade-out {
    opacity: 0;
    visibility: hidden;
}

.main-image-2.fade-in {
    opacity: 1;
    visibility: visible;
}

.image-container {
    position: relative;
    text-align: center;
    /* margin: 20px 0; */
    min-height: 90vh;
}

.timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.timeline-item-gwda {
    flex: 0 0 calc(50% - 10px);
    /* height: 300px; */
    /* background-image: url('../images/site/gameworld/dangangwda/itembg.png'); */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    padding: 5px;
}

.timeline-item-gwda:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.timeline-item-gwda .item-image {
    width: 100%;
    height: 100%;
    /* object-fit: contain; */
}

.item-labels {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.item-label {
    display: flex;
    align-items: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.item-label.normal {
    height: 25px;
    width: 80%;
    padding: 0 15px;
    margin-bottom: -10px;
    margin-left: 0px;
    z-index: 2;
    min-width: 100px;
    background-image: url('../images/site/gameworld/dangangwda/itemnamebg.png');
}

.item-label.highlight {
    height: 40px;
    padding: 5px 15px;
    min-width: 200px;
    z-index: 1;
    background-image: url('../images/site/gameworld/dangangwda/itemnamebgyellow.png');
}

.item-label.normal span {
    font-size: 12px;
    opacity: 0.9;
	letter-spacing: 1px;
}

.item-label.highlight span {
    font-size: 16px;
}

.spangwname {
    font-size: 20px!important;
    color: #001f22 !important;
    margin-top: 7px;
	font-weight: bold !important;
	letter-spacing: 10px;
}

.item-label span {
    color: #ffffff;
    font-family: 'AlimamaShuHeiTi-Bold', sans-serif;
    text-align: center;
    width: 100%;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #6f42c1;
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #6f42c1;
  }
  
  /* 隐藏滚动条上下箭头 */
  ::-webkit-scrollbar-button {
    display: none;
  }

  .menu-level-1 a:hover, .menu-level-2 a:hover, .menu-level-3 a:hover {
    color: #FFD700 !important;
  }

  .related-event-btn {
    font-family: 'AlimamaShuHeiTi-Bold', sans-serif;
    font-size: 18px;
    display: inline-block; 
    padding: 5px 25px; 
    background: #0b7063; 
    border: 1px solid #0b7063; 
    border-radius: 20px; 
    color: #ffffff; 
    margin-bottom: 5px;
    cursor: pointer;
    margin-top: 30px;
	box-shadow: 1px 2px 2px rgba(255, 255, 255, 0.3);
  }

  .related-event-btn:hover {
     color: #ffffff;
     transform: scale(1.05);
  }