/* ==============================================
   完整合并版 CSS 样式 - 隐藏点击后文字光标
======= 排行榜弹窗控制==== 猪脚吃修改.  QQ2106870========
   功能模块：全局重置 → 布局 → 导航 → 内容 → 弹窗 → 视频 → 响应式
============================================== */

/* 1. 基础样式重置与全局设置（新增隐藏光标核心属性） */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    /* 核心：隐藏点击后的文本光标（小闪点） */
    caret-color: transparent;
    /* 辅助：禁止文本选中（避免选中文字时出现光标） */
    user-select: none;
    /* 兼容不同浏览器的user-select */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 特殊元素单独处理（比如输入框如果需要光标，可在这里放开） */
input, textarea {
    caret-color: auto; /* 输入框恢复光标（如果有输入框需要保留） */
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

body {
    margin: 0;
    font-family: 'Microsoft YaHei', sans-serif;
    background: #1a1a1a url('bg-pattern.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #e0e0e0;
    line-height: 1.6;
    /* 给body也加上，确保全局生效 */
    caret-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* 2. 主容器与通用布局 */
.container-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

/* 游戏Logo样式 */
.game-logo {
    display: block;
    width: 80%;
    max-width: 580px;
    margin: 0 auto 40px;
    filter: drop-shadow(0 4px 12px rgba(255,165,0,0.3));
}

/* 3. 顶部导航栏样式 */
#nav-main {
    background-color: #000;
    padding: 8px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.small-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #ff6600;
    object-fit: cover;
    filter: drop-shadow(0 0 3px #ff6600);
}

#navbarColor01 .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
}

#navbarColor01 .nav-link {
    color: #fff !important;
    text-decoration: none;
    padding: 6px 12px !important;
    margin: 0 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* 单独给导航文字加，确保生效 */
    caret-color: transparent;
    user-select: none;
}

#navbarColor01 .nav-link:hover {
    color: #ff6600 !important;
    background-color: rgba(255, 102, 0, 0.2);
}

/* 4. 右侧侧边栏样式 + 动画 */
aside {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

aside a, #pup_notice {
    display: block;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.3s ease !important;
    caret-color: transparent;
    user-select: none;
}

aside img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.2));
    transition: all 0.3s ease !important;
}

aside a:hover img, #pup_notice:hover img {
    transform: scale(1.5) rotate(1deg) !important;
    filter: drop-shadow(0 0 8px #ff6600) !important;
}

aside a:hover, #pup_notice:hover {
    opacity: 1;
}

/* 5. 公告卡片样式 */
.announcement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.announcement-card {
    background: rgba(0,0,0,0.7);
    padding: 20px;
    border-radius: 8px;
    color: #fff;
    border: 1px solid #ff6600;
    caret-color: transparent;
    user-select: none;
}

.announcement-title {
    color: #ff6600;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 5px #ff6600;
    position: relative;
    padding-left: 30px;
    caret-color: transparent;
    user-select: none;
}

.announcement-title::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #ff6b00;
    font-size: 1.2rem;
}

.wuxia-icon {
    color: #ff6600;
    margin-right: 5px;
    font-size: 16px;
}

/* 6. 按钮样式（含流光动画） */
@keyframes btnGlow {
    0% {
        box-shadow: 0 0 10px #ff6600, 0 0 20px #ff6600, 0 0 30px #ff4500;
        background: linear-gradient(90deg, #ff6600, #ff4500);
    }
    50% {
        box-shadow: 0 0 20px #ff6600, 0 0 30px #ff4500, 0 0 40px #ff0000;
        background: linear-gradient(90deg, #ff4500, #ff6600);
    }
    100% {
        box-shadow: 0 0 10px #ff6600, 0 0 20px #ff6600, 0 0 30px #ff4500;
        background: linear-gradient(90deg, #ff6600, #ff4500);
    }
}

.action-btn {
    display: inline-block;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
    font-size: 15px;
    font-weight: bold;
    background: linear-gradient(90deg, #ff6600, #ff4500);
    border: 2px solid #ff4500;
    box-shadow: 0 0 10px #ff6600, 0 0 20px #ff6600;
    animation: btnGlow 2s infinite alternate;
    caret-color: transparent;
    user-select: none;
}

.action-btn:hover {
    color: #fff;
    text-decoration: none;
    animation: btnGlow 1s infinite alternate;
    box-shadow: 0 0 20px #ff6600, 0 0 30px #ff4500, 0 0 40px #ff0000;
    transform: scale(1.05);
}

/* 7. 活动标签导航样式 */
.tab-nav-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.tab-nav-container .nav-link,
.tab-nav-container .nav-link.active,
.tab-nav-container .nav-link:not(.active) {
    background-color: transparent !important;
    border: none !important;
    filter: none !important;
    opacity: 0.9;
    transition: all 0.3s ease !important;
    caret-color: transparent;
    user-select: none;
}

.tab-nav-img {
    width: 100%;
    max-width: 180px;
    height: auto;
    cursor: pointer;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.2));
    transition: all 0.3s ease !important;
}

.tab-nav-container .nav-link:hover .tab-nav-img {
    transform: scale(1.5) rotate(1deg) !important;
    filter: drop-shadow(0 0 8px #ff6600) !important;
}

.tab-nav-container .nav-link:hover {
    opacity: 1;
}

.tab-nav-container .nav-link.active .tab-nav-img {
    border-radius: 8px;
    padding: 2px;
    filter: drop-shadow(0 0 10px #ff4500) !important;
}

.tab-nav-container .nav-link.active {
    opacity: 1;
}

.tab-nav-container .nav-link:active .tab-nav-img {
    transform: scale(0.98) rotate(0deg) !important; /* 修复原1.98的错误 */
}

/* 8. 下载区域样式 */
.download-section {
    padding: 50px 0;
    background-color: #fff;
    margin: 30px auto;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    caret-color: transparent;
    user-select: none;
}

.download-title {
    text-align: center;
    margin-bottom: 30px;
    caret-color: transparent;
    user-select: none;
}

.download-title h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.download-title p {
    color: #666;
    font-size: 16px;
}

.download-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    caret-color: transparent;
    user-select: none;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 15px 20px;
    font-weight: bold;
    font-size: 18px;
    caret-color: transparent;
    user-select: none;
}

.bg-orange {
    background: linear-gradient(135deg, #ff6600 0%, #ff8c00 100%);
}

.bg-purple {
    background: linear-gradient(135deg, #7209b7 0%, #560bad 100%);
}

.bg-blue {
    background: linear-gradient(135deg, #1d3557 0%, #1d3557 100%);
}

.card-body {
    padding: 20px;
    background-color: #f9f9f9;
    caret-color: transparent;
    user-select: none;
}

.client-info {
    background-color: #e9f5ff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    caret-color: transparent;
    user-select: none;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 200px;
    caret-color: transparent;
    user-select: none;
}

.primary-btn {
    background: linear-gradient(135deg, #ff6600 0%, #ff8c00 100%);
    color: white;
    border: 1px solid #ff6600;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #e65c00 0%, #e67300 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}

.secondary-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: 1px solid #4caf50;
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.tertiary-btn {
    background: linear-gradient(135deg, #560bad 0%, #480ca8 100%);
    color: white;
    border: 1px solid #560bad;
}

.tertiary-btn:hover {
    background: linear-gradient(135deg, #480ca8 0%, #3a0ca3 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(86, 11, 173, 0.3);
}

/* 9. 弹窗样式（新手福利 + 排行榜） */
/* 遮罩层 */
.popup-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: none;
    caret-color: transparent;
    user-select: none;
}

/* 新手福利弹窗 */
.popup-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: linear-gradient(135deg, #0a0a0a, #2c164d);
    border: 3px solid #ff6600;
    border-radius: 15px;
    padding: 30px;
    z-index: 10000;
    display: none;
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.8);
    caret-color: transparent;
    user-select: none;
}

/* 排行榜弹窗 */
.rank-popup-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #0a0a0a, #2c164d);
    border: 3px solid #ff6600;
    border-radius: 15px;
    padding: 30px;
    z-index: 10000;
    display: none;
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.8);
    caret-color: transparent;
    user-select: none;
}

/* 弹窗通用样式 */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #ff6600;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    caret-color: transparent;
    user-select: none;
}

.popup-close:hover {
    background: #ff4500;
    transform: scale(1.1);
}

.popup-title {
    color: #ffd700;
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #ffd700;
    caret-color: transparent;
    user-select: none;
}

.rank-popup-title {
    color: #ffd700;
    font-size: 26px;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 0 10px #ffd700;
    caret-color: transparent;
    user-select: none;
}

.popup-content, .rank-popup-content {
    color: #fff;
    font-size: 16px;
    line-height: 1.8;
    caret-color: transparent;
    user-select: none;
}

.popup-content .highlight, .rank-item .highlight {
    color: #ffd700;
    font-weight: bold;
}

.rank-item {
    background: rgba(255, 102, 0, 0.1);
    border-left: 3px solid #ff6600;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    caret-color: transparent;
    user-select: none;
}

.rank-item h4 {
    color: #ff9900;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
    caret-color: transparent;
    user-select: none;
}

/* 10. 视频相关样式 + 左侧竖线遮挡层 */
.left-line-cover {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 100%;
    background: #000;
    z-index: 99;
    caret-color: transparent;
    user-select: none;
}

video {
    border: 0 !important;
    outline: 0 !important;
    background: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
    caret-color: transparent;
    user-select: none;
}

.video {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000 !important;
    caret-color: transparent;
    user-select: none;
}

#particles-js {
    left: 0 !important;
    width: 100% !important;
    background: #000 !important;
    caret-color: transparent;
    user-select: none;
}

/* 11. 页脚样式 */
.footer {
    background: #000;
    padding: 20px 0;
    color: #fff;
    caret-color: transparent;
    user-select: none;
}

/* 12. 响应式适配（移动端） */
@media (max-width: 768px) {
    /* 通用容器适配 */
    .container-wrapper {
        padding: 1rem;
    }
    
    /* 公告卡片适配 */
    .announcement-card {
        padding: 1.5rem;
    }
    
    .announcement-title {
        font-size: 1.2rem;
    }
    
    /* 标签导航适配 */
    .tab-nav-img {
        max-width: 120px;
    }
    
    .tab-nav-container {
        gap: 10px;
    }
    
    /* LOGO适配 */
    .small-logo {
        width: 40px;
        height: 40px;
    }
    
    /* 隐藏侧边栏 */
    aside {
        display: none;
    }
    
    /* 弹窗适配 */
    .popup-box, .rank-popup-box {
        width: 95%;
        padding: 20px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .rank-popup-content {
        font-size: 14px;
    }
    
    /* 下载区域适配 */
    .download-section {
        margin: 20px 15px;
    }
    
    .download-btn {
        width: 100%;
    }
}

/* 13. 可访问性优化 */
.announcement-grid:focus { 
    outline: 2px solid #4a90e2; 
    caret-color: transparent;
    user-select: none;
}

/* 修复标签页导航不对称问题 */
section .nav-pills .nav-link {
    margin-bottom: 50px;
    caret-color: transparent;
    user-select: none;
}

section .nav-pills a.nav-link.active {
    transform: none;
    caret-color: transparent;
    user-select: none;
}