/* 让页面中的所有内容居中 */
body {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    margin: 0; /* 去除默认边距 */
    font-family: Arial, sans-serif; /* 设置字体 */
    background-color: #fff; /* 背景色 */
}

/* 置顶通知栏 */
.update-notice {
    background: linear-gradient(90deg, 
        #1a2a6c 0%,   /* 深蓝 */
        #b21f1f 50%,  /* 红 */
        #fdbb2d 100%  /* 黄 */
    );
    color: white;
    padding: 12px 0;
    top: 0;
    z-index: 1000;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border-bottom: 2px solid #fdb52d;
    
    text-align: center;
    font-size: 16px;
    position: fixed;
    width: 100%;
    max-width: 600px;
    overflow: hidden; /* 隐藏超出部分 */
  }
  
  .scroll-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll 15s linear infinite;
    will-change: transform;
}

.scroll-text p {
    display: inline-block;
    padding-right: 30px;
    margin: 0;
    font-size: 16px;
}

.scroll-text a {
    color: #fff;
    background: rgba(0,0,0,0.2);
    padding: 3px 10px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.3);
}

.scroll-text a:hover {
    background: rgba(255,255,255,0.2);
    text-shadow: 0 0 5px #fff;
}

/* 滚动动画 */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* 滚动图片模块 */
.carousel {
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    position: relative;
    margin: 0 auto; /* 水平居中 */
    display: flex; /* 保证内容居中对齐 */
    justify-content: center;
    position: relative; /* 让子元素绝对定位 */
    overflow: hidden; /* 隐藏超出的内容 */
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3); /* 更强的阴影效果 */
    margin-top: 40px; /* 增加标题上方间距 */
}
.carousel-images {
    display: flex;
    animation: slide 15s infinite;
}
.carousel-images img {
    width: 100%;
    flex-shrink: 0;
}
@keyframes slide {
    0% { transform: translateX(0); }
    20% { transform: translateX(-100%); }
    40% { transform: translateX(-200%); }
    60% { transform: translateX(-300%); }
    80% { transform: translateX(-400%); }
    100% { transform: translateX(-500%); }
}

.container {
    max-width: 600px; /* 最大宽度为 600px */
    text-align: center; /* 使文本居中 */
}

/* 图标容器 */
.icon-link {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 基础图标样式 */
.game-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    object-fit: cover;
}

/* 悬停特效 */
.icon-link:hover .game-icon {
    transform: 
        scale(1.1) 
        rotate(5deg); /* 轻微旋转 */
    box-shadow: 
        0 8px 25px rgba(74, 144, 226, 0.4);
    border-color: #f39c12;
    filter: 
        drop-shadow(0 0 8px rgba(243, 156, 18, 0.6));
}

/* 点击反馈 */
.icon-link:active .game-icon {
    transform: scale(0.95);
    transition: all 0.1s;
}

/* 新！悬浮提示效果 */
.icon-link::after {
    content: "点击进入官网";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #2a5298;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.icon-link:hover::after {
    opacity: 1;
}

/* 标题容器 */
.game-title-container {
    margin: 0px 0;
    text-align: center;
}

/* 主标题 */
.game-title {
    font-size: 2.2rem;
    color: #2a5298;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.title-text {
    background: linear-gradient(135deg, #1e3c72, #4b6cb7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    letter-spacing: 2px;
}

.title-sub {
    display: block;
    font-size: 0.8rem;
    color: #f39c12;
    margin-top: -5px;
    font-style: italic;
}

/* 装饰元素 */
.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
    width: 80%;
}

.decoration-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f39c12, transparent);
}

.decoration-ball {
    width: 8px;
    height: 8px;
    background: #f39c12;
    border-radius: 50%;
    margin: 0 10px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .game-title {
        font-size: 1.8rem;
    }
}

/* 标题与正文的间距 */
h2 {
    margin-top: 10px; /* 增加标题上方间距 */
    margin-bottom: 10px; /* 减少标题底部间距 */
    font-size: 18px; /* 设置字体大小为24px，可根据需要调整 */
    font-weight: bold; /* 设置字体加粗 */
    border-bottom: 2px solid #eee; /* 分割线 */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2); /* 添加阴影 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 20px; /* 圆形按钮 */
}

/* 鼠标悬停时效果 */
h2:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* 更强的阴影效果 */
}

  
/* 新增的下载按钮样式 */
.game-card {
    background: white;
    border-radius: 0px;
    padding: 10px;
    margin: 0px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.game-header {
    margin-bottom: 20px;
}

.game-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 0px;
}

.game-slogan {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.download-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.download-bt {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s;
    max-width: 150px;
}

.download-bt span {
    font-size: 16px;
}

.download-bt small {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 3px;
}

.android-bt {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.ios-bt {
    background: linear-gradient(135deg, #2196F3, #0D47A1);
}

.download-bt:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


    
/* 简化版导航样式 */
.simplified-nav {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    padding: 5px 0;
    border-radius: 0px;
    margin: 0px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.simplified-nav .menu-item {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.simplified-nav .menu-item.active {
    background: rgba(255,255,255,0.2);
    font-weight: bold;
}

.simplified-nav .menu-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 18px;
}

/* 菜单栏内容样式 */
.info {
    padding: 0px; /* 减少内边距 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 水平居中 */
    justify-content: flex-start; /* 垂直方向从顶部开始 */
    background-color: #fff;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0px;
    margin-top: 0px; /* 去除内容区域上方的间距 */
    overflow-y: auto; /* 当内容超出时添加滚动条 */
}

/* 内容区域样式 */
.tab-content {
    padding: 20px;
    display: none;
}
.tab-content.active {
    display: block;
}
.tab-content h2 {
    margin-top: 0;
}

/* 视频容器样式 */
.cropped-video {
    width: 100%; /* 自动适应宽度 */
    max-height: 270px; /* 限制最大高度 */
    object-fit: cover; /* 保持视频比例 */
    border: 3px solid #ddd; /* 边框颜色 */
    border-radius: 10px; /* 圆角边框 */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* 添加阴影 */
}

/* 复制格式 */
.copy-text {
    cursor: pointer;
    padding: 0px;
    background-color: #04fefe;
    border: 0px solid #0e0e0e;
    display: inline-block;
    margin-bottom: 5px;
    user-select: none; 
    border-radius: 5px; /* 滚动图片圆角 */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* 添加过渡效果 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 文章模块阴影 */
}

.copy-text:hover {
    transform: scale(1.05); /* 鼠标悬停时轻微放大 */
}

/* 导航按钮 */
.txt {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: space-between;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    gap: 0.5rem;
}

.txt a img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: transform 0.3s;
}

.txt a img:hover {
    transform: translateY(-4px); /* 向上浮动 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* 强化阴影 */
}

 /* 底部内容样式 */ 
 .footer {
    background: linear-gradient(90deg, #1e3c72, #2a5298); /* 深色渐变背景 */
    color: #fff; /* 白色文字 */
    padding: 10px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 添加阴影 */
}

.footer a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 悬停效果 */
}

.footer a img:hover {
    transform: scale(1.2); /* 悬停放大 */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* 添加阴影 */
}

/* 链接样式 */
a {
    color: #3498db; /* 修改为你喜欢的颜色，比如橙红色 */
    text-decoration: none; /* 去掉下划线 */
}
a:hover {
    color: rgb(255, 42, 0); /* 鼠标悬停时的颜色 */
}

/* wenzhang: 文章模块容器样式 */
.wenzhang {
    display: flex;
    flex-direction: column; /* 竖排每个文章模块 */
}

/* wenzhang: 单个文章模块 */
.wenzhang p {
    display: flex; /* 横排布局 */
    flex-direction: row; /* 文章的缩略图和内容横排 */
    align-items: center; /* 水平居中 */
    background-color: #fff;
    margin: 0px 10px 15px 0px; /* 去除默认的 p 标签外边距 */
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 文章模块阴影 */
    gap: 10px; /* 缩略图和内容之间的间距 */
    width: 100%; /* 让文章模块占满容器 */
}

/* wenzhang: 缩略图样式 */
.wenzhang p img {
    width: 60px; /* 设置缩略图的固定宽度 */
    height: 60px; /* 设置缩略图的固定高度 */
    object-fit: cover; /* 保持图像比例，裁剪多余部分 */
    border-radius: 15px;
}

/* 新游推荐 */
.game-recommendations {
    position: fixed;
    right: 0px;
    top: 40%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 1000;
  }
  
  .recommendation-trigger {
    writing-mode: vertical-rl;
    text-orientation: upright;
    padding: 10px 5px;
    background-color: #f8f7d7;
    color: #f81936af;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px 0 0 5px;
    transition: background-color 0.3s;
  }
  
  .recommendation-trigger:hover {
    background-color: #f81936af;
    color: #f8f7d7;
  }
  
  .recommendation-content {
    display: none;
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 5px;
    z-index: 1000;
  }
  
  .recommendation-item {
    display: flex;
    align-items: center;
    flex-direction: column;
  }
  
  .recommendation-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
  }
  
  .recommendation-item span {
    font-size: 10px;
    color: #333;
  }
  
  /* Show content on hover */
  .game-recommendations:hover .recommendation-content {
    display: block;
  }

/* ========== 弹窗系统 ========== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

.popup-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 300px;
    padding: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.popup-header {
    margin-bottom: 15px;
    position: relative;
}

.popup-header h3 {
    color: #2a5298;
    font-size: 1.2rem;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.popup-close:hover {
    transform: rotate(90deg);
    background: #ff6b81;
}

.popup-qrcode {
    width: 100%;
    max-height: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 0 auto 0px;
}

.popup-footer {
    margin-top: 10px;
}

.popup-footer p {
    color: #666;
    margin: 5px 0;
    font-size: 0.9rem;
}

.popup-tip {
    color: #999;
    font-size: 0.8rem;
}

.popup-direct {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #2a5298;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.popup-direct:hover {
    background: #1e3c72;
    transform: translateY(-2px);
}

/* 社交按钮组 */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin: 0px 0;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    padding: 0px 5px;
    border-radius: 15px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.social-btn img {
    width: 20px;
    height: 20px;
    margin-right: 0px;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 按钮颜色 */
.qq-btn { background: #12B7F5; }
.wechat-btn { background: #07C160; }
.official-btn { background: #f39c12; }
.email-btn { background: #6c757d; }

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式调整 */
@media (max-width: 480px) {
    .popup-content {
        width: 95%;
        padding: 15px;
    }
    
    .social-btn {
        padding: 0px 5px;
        font-size: 0.8rem;
    }
    
    .social-btn img {
        width: 18px;
        height: 18px;
    }
}