/* 自定义动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animation-delay-300 {
    animation-delay: 300ms;
}

.animation-delay-600 {
    animation-delay: 600ms;
}
/* 基础导航栏样式 - 顶部黑色状态 */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: #000; /* 初始黑色 */
            transition: all 0.3s ease; /* 平滑过渡效果 */
            z-index: 1000;
            padding: 0.5rem 0;
        }
/* 导航栏滚动效果 */
.navbar-scrolled {
    background-color: rgba(75, 75, 75, 0);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.119);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    
}
/*英雄字体*/
.hero-font {
     /* 设置定位方式为绝对定位，相对于最近的已定位祖先元素 */
  position: absolute;
  /* 固定在右侧 */
  right: 0;
  /* 垂直方向居中 */
  top: 50%;
  transform: translateY(-50%);
  /* 可根据需要调整右侧距离 */
  padding-right: 10%; /* 右侧留白，避免紧贴边缘 */
}
/*英雄字体结束*/

/*英雄播放按钮*/
.hero-play-btn {
    position: absolute;
    top: 40%;
    left: 87%;
    transform: translate(-50%, -50%);
}
/*英雄播放按钮结束*/

/*英雄区域小组件容器*/
.hero-box {
    position: absolute;
    top: 70%;
    left: 60%;
    transform: translate(-50%, -50%);
}
/*英雄区域小组件容器结束*/



/*英雄区域下载区域*/
.hero-box-qrcode {
    position:absolute;
    width: 500px;
    height: 200px;
    margin-left: 200px; /* 向右移动120像素 */
    z-index: 2;
    margin-top: 40px;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0);
}
/*英雄区域二维码结束*/

/*英雄区域视频弹窗遮罩层*/
/* 弹窗动画效果 */
#videoOverlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#videoOverlay.show {
    opacity: 1;
}

#videoPopup {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#videoOverlay.show #videoPopup {
    transform: scale(1);
}
/*英雄区域视频弹窗遮罩层结束*/

/*第二部分：关于我们*/
.about-section {
     background-color: transparent;
    background-image: url('../igame/module/about.png'); /* 替换为你的背景图片路径 */
    background-size: cover; /* 图片覆盖整个区域 */
    background-position: center; /* 图片居中显示 */
    background-attachment: fixed; /* 固定背景，滚动时不移动（可选） */
    position: relative;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-title {
    text-align: center;
    margin-bottom: 60px;
}

.about-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.about-title .separator {
    width: 80px;
    height: 3px;
    background-color: #4a90e2;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.feature-item i {
    color: #4a90e2;
    margin-right: 15px;
    margin-top: 4px;
}

.feature-item span {
    color: #555;
}

.team-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-item .count {
    font-size: 36px;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 10px;
}

.stat-item .label {
    color: #666;
}
/*第二部分：关于我们结束*/

/*第四模块：学院开始*/
.mini-dev {
    /* 固定背景图片设置 */
    background-image: url('../igame/module/academy.png'); /* 替换为实际图片路径 */
    background-attachment: fixed; /* 背景固定 */
    background-position: center center; /* 居中显示 */
    background-repeat: no-repeat; /* 不重复 */
    background-size: cover; /* 覆盖整个区域 */
    
    /* 自适应布局 */
    width: 100%;
    min-height: 500px; /* 基础高度，可根据需求调整 */
    padding: 60px 0; /* 上下内边距 */
    box-sizing: border-box; /* 盒模型计算方式 */
    
    /* 可选：添加半透明遮罩增强文字可读性 */
    position: relative;
}

/* 遮罩层（可选） */


/* 容器样式 */
.mini-dev-container {
    /* 限制内容最大宽度，实现自适应 */
    max-width: 1200px;
    width: 90%; /* 小屏幕时的宽度 */
    margin: 0 auto; /* 水平居中 */
    position: relative; /* 确保在遮罩层上方 */
    z-index: 2;
}

/* 标题区域样式 */
.mini-dev-title {
    text-align: center; /* 标题居中 */
    color: #000000; /* 文字颜色，根据背景调整 */
    margin-bottom: 40px; /* 与下方内容的间距 */
}

.mini-dev-title h2 {
    font-size: 2.5rem; /* 标题大小 */
    margin-bottom: 20px; /* 与分隔线的间距 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* 文字阴影增强可读性 */
}

/* 分隔线样式 */
.separator {
    width: 80px; /* 分隔线宽度 */
    height: 3px; /* 分隔线高度 */
    background-color: #3e84da; /* 分隔线颜色 */
    margin: 0 auto; /* 分隔线居中 */
}

/*按钮样式*/
.mini-dev-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.mini-dev-btn:hover {
    background-color: #000000;
    color: #ffea00;
}
/*按钮结束*/

/* 响应式调整 - 小屏幕设备 */
@media (max-width: 768px) {
    .mini-dev {
        min-height: 400px; /* 小屏幕减小高度 */
        padding: 40px 0;
    }
    
    .mini-dev-title h2 {
        font-size: 2rem; /* 小屏幕标题缩小 */
    }
}
/*第四模块：学院结束*/

/*最新活动开始*/
.activity {
    background-color: transparent;
    background-image: url('../igame/module/activity.png'); /* 替换为你的背景图片路径 */
    background-size: cover; /* 图片覆盖整个区域 */
    background-position: center; /* 图片居中显示 */
    background-attachment: fixed; /* 固定背景，滚动时不移动（可选） */
    position: relative;
}

/* 容器样式，限制内容宽度并居中 */
.activity-container {
    width: 100%;
    max-width: 1200px; /* 最大宽度，适配大屏幕 */
    margin: 0 auto; /* 水平居中 */
    padding: 0 20px; /* 左右内边距，小屏幕时避免内容贴边 */
    box-sizing: border-box; /* 盒模型计算方式，包含内边距和边框 */
}

/* 标题区域样式 */
.activity-title {
    text-align: center; /* 文本居中对齐 */
    margin-bottom: 40px; /* 底部外边距，与下方内容分隔 */
}

/* 主标题样式 */
.activity-title h2 {
    font-size: 32px; /* 字体大小 */
    color: #333; /* 深灰色文字，增强可读性 */
    margin: 0 0 15px 0; /* 底部外边距，与分隔线保持距离 */
    font-weight: 700; /* 加粗字体，突出标题 */
    letter-spacing: 0.5px; /* 字间距，提升美观度 */
}

/* 分隔线样式 */
.separator {
    width: 80px; /* 宽度 */
    height: 3px; /* 高度 */
    background-color: #1292e7; /* 橙色背景，作为主题色点缀 */
    margin: 0 auto 20px; /* 水平居中，底部外边距与副标题分隔 */
    border-radius: 3px; /* 圆角处理，使线条更柔和 */
}

/* 副标题样式 */
.activity-subtitle {
    font-size: 16px; /* 字体大小 */
    color: #666; /* 中灰色文字，与主标题区分层级 */
    margin: 0; /* 清除默认外边距 */
    line-height: 1.6; /* 行高，提升多行文本可读性 */
    max-width: 600px; /* 最大宽度，避免文本过长 */
    margin-left: auto; /* 配合margin-right实现水平居中 */
    margin-right: auto;
    font-weight: 400; /* 常规字重 */
}
/*最新活动结束*/

/* 基础样式补充 */

/*自定义字体*/
/* 定义字体 */
        @font-face {
            font-family: 'MyCustomFont';
            src: url('../font/heiti.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
            font-display: swap; /* 确保文本在字体加载期间可见 */
        }
        
        /* 应用字体 */
        body {
            font-family: 'MyCustomFont', sans-serif;
        }
/*自定义字体结束*/

/* 响应式调整 */
@media (max-width: 768px) {
    #hero h1 {
        line-height: 1.2;
    }
}
