        /* =========================================
           1. 全局变量与重置 (Variables & Reset)
           ========================================= */
           :root {
            --primary-color: #3b82f6;
            --primary-hover: #2563eb;
            --text-main: #1f2937;
            --text-secondary: #6b7280;
            --bg-body: #f3f4f6;
            --bg-card: #ffffff;
            --radius: 8px;
            --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
            --header-height: 64px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        html, body {
            /* [修复] 禁止横向滚动条，强制隐藏溢出 */
            overflow-x: hidden;
            width: 100%;
        }

        body {
            font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
            background-color: var(--bg-body);
            color: var(--text-main);
            line-height: 1.6;
        }
        a { text-decoration: none; color: inherit; transition: color 0.2s; }
        ul { list-style: none; }
        img { max-width: 100%; display: block; object-fit: cover; }

        /* =========================================
           2. 布局通用类
           ========================================= */
        .container { max-width: 1200px; margin: 0 auto; padding: 0 16px; width: 100%; }
        .flex { display: flex; }
        .items-center { align-items: center; }
        .justify-between { justify-content: space-between; }
        
        /* 标签系统 */
        .tag { font-size: 12px; padding: 2px 6px; border-radius: 4px; margin-right: 8px; font-weight: bold; }
        .tag.new { background: #e0f2fe; color: #0284c7; }
        .tag.hot { background: #fee2e2; color: #dc2626; }
        /* 动态状态标签 */
        .status-tag { 
            position: absolute; top: 10px; left: 10px; 
            font-size: 12px; padding: 4px 8px; border-radius: 4px; 
            color: white; font-weight: bold; z-index: 10;
        }
        .st-beta { background: rgba(245, 158, 11, 0.9); } 
        .st-news { background: rgba(59, 130, 246, 0.9); } 
        .st-release { background: rgba(16, 185, 129, 0.9); } 

        /* =========================================
           3. 顶部导航
           ========================================= */
        header { background: var(--bg-card); height: var(--header-height); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; width: 100%; }
        .nav-inner { height: 100%; }
        .logo { font-size: 20px; font-weight: 800; color: var(--primary-color); letter-spacing: 1px; }
        .nav-links { display: flex; gap: 32px; }
        .nav-links a { font-weight: 500; font-size: 15px; position: relative; }
        .nav-links a:hover, .nav-links a.active { color: var(--primary-color); }
        .nav-links a.active::after { content: ''; position: absolute; bottom: -22px; left: 0; width: 100%; height: 3px; background: var(--primary-color); }
        .search-box { background: #f3f4f6; padding: 6px 12px; border-radius: 20px; display: flex; align-items: center; }
        .search-box input { border: none; background: transparent; outline: none; font-size: 14px; width: 150px; }
        .search-icon { 
    cursor: pointer; 
    transition: transform 0.2s; 
    user-select: none; /* 防止双击选中图标 */
}
.search-icon:hover { 
    transform: scale(1.2); 
}
        .mobile-menu-btn { display: none; font-size: 24px; cursor: pointer; }

        /* =========================================
           4. 英雄区域 (Hero)
           ========================================= */
        .hero-section { margin-top: 24px; display: grid; grid-template-columns: 2fr 1fr; gap: 24px; height: 360px; }
        
        .hero-banner { 
            background-color: #ddd; 
            border-radius: var(--radius); 
            position: relative; 
            overflow: hidden; 
        }

        .hero-banner img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 1; 
            transition: transform 0.5s;
        }
        .hero-banner:hover img {
            transform: scale(1.02);
        }

        .hero-info { 
            position: absolute; 
            bottom: 0;
            left: 0;
            z-index: 2; 
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); 
            width: 100%; 
            padding: 24px; 
            color: white; 
        }
        .hero-info a { color: white; text-decoration: none; }
        .hero-info a:hover { text-decoration: underline; }
        
        /* 公告栏 */
        .notice-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
        .notice-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f3f4f6; padding-bottom: 12px; margin-bottom: 12px; }
        .notice-list { flex: 1; display: flex; flex-direction: column; gap: 4px; }
        
        /* [修复] 公告列表项：确保 flex 布局处理溢出 */
        .notice-item { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 8px 0; cursor: pointer; border-bottom: 1px dashed #f3f4f6; width: 100%; }
        .notice-item:last-child { border: none; }
        .notice-item a:hover { color: var(--primary-color); }
        .countdown-box { background: #1f2937; color: white; padding: 12px; border-radius: var(--radius); margin-top: auto; }
        .cd-time { font-size: 20px; font-weight: bold; color: #fbbf24; }

        /* =========================================
           5. 新游动态板块 (Dynamic News Grid)
           ========================================= */
        .dynamic-section { margin-top: 32px; }
        .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
        .section-title { font-size: 18px; font-weight: bold; border-left: 4px solid var(--primary-color); padding-left: 10px; display: flex; align-items: center; gap: 8px; }
        
        .news-grid { 
            display: grid; 
            grid-template-columns: repeat(4, 1fr); 
            gap: 20px; 
        }
        
        .news-card {
            background: var(--bg-card);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.2s;
            cursor: pointer;
            display: flex;
            flex-direction: column;
        }
        .news-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
        
        .news-cover {
            height: 140px;
            width: 100%;
            position: relative;
        }
        .news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
        .news-card:hover .news-cover img { transform: scale(1.05); }
        
        .news-body { padding: 12px 16px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
        .news-title { font-size: 15px; font-weight: bold; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .news-footer { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-secondary); margin-top: auto; }
        .news-time { display: flex; align-items: center; gap: 4px; }

        /* =========================================
           6. 横向下载列表 (Scroll List)
           ========================================= */
        .scroll-game-section { margin-top: 32px; }
        .scroll-list { 
            display: flex; 
            gap: 16px; 
            overflow-x: auto; 
            padding-bottom: 10px; 
            /* 移除 scrollbar-width: none，否则火狐浏览器无法显示 */
        }
        
        /* 自定义滚动条样式 */
        .scroll-list::-webkit-scrollbar {
            height: 6px; /* 设置横向滚动条的高度 */
            background-color: transparent;
        }
        
        .scroll-list::-webkit-scrollbar-track {
            background: transparent;
        }
        
        .scroll-list::-webkit-scrollbar-thumb {
            background: #d1d5db; /* 浅灰色滑块 */
            border-radius: 3px;
            cursor: pointer;
        }
        
        .scroll-list::-webkit-scrollbar-thumb:hover {
            background: #9ca3af; /* 悬停加深 */
        }
        .game-item-card { min-width: 140px; background: var(--bg-card); border-radius: var(--radius); padding: 12px; text-align: center; box-shadow: var(--shadow); transition: transform 0.2s; }
        .game-item-card:hover { transform: translateY(-3px); }
        .game-item-icon { width: 60px; height: 60px; border-radius: 12px; margin: 0 auto 8px; background: #e5e7eb; }
        .game-item-name { font-size: 14px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
        .game-item-btn { font-size: 12px; color: var(--primary-color); border: 1px solid var(--primary-color); padding: 4px 12px; border-radius: 12px; display: inline-block; margin-top: 8px; font-weight: 600; }
        .game-item-btn:hover { background: var(--primary-color); color: white; }

        /* =========================================
           7. 主内容区 (Main Layout)
           ========================================= */
        .main-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; margin: 32px auto 64px; }
        
      /* 攻略列表 */
      .tabs { display: flex; gap: 24px; border-bottom: 1px solid #e5e7eb; margin-bottom: 20px; }
        .tab-item { padding-bottom: 12px; cursor: pointer; font-weight: bold; color: var(--text-secondary); border-bottom: 3px solid transparent; }
        .tab-item.active { color: var(--primary-color); border-color: var(--primary-color); }
        .guide-list { display: flex; flex-direction: column; gap: 16px; }
        
        .guide-card { 
            background: var(--bg-card); 
            padding: 20px; 
            border-radius: var(--radius); 
            box-shadow: var(--shadow); 
            display: flex; 
            gap: 16px; 
            transition: transform 0.2s; 
            /* [新增] 防止自身宽度溢出 */
            width: 100%;
            overflow: hidden; 
        }
        .guide-card:hover { transform: translateY(-2px); }
        .guide-img { width: 160px; height: 100px; border-radius: 4px; background: #e5e7eb; flex-shrink: 0; overflow: hidden; }
        
        .guide-img img { transition: transform 0.3s; width: 100%; height: 100%; }
        .guide-card:hover .guide-img img { transform: scale(1.1); }
        
        .guide-content { 
            flex: 1; 
            display: flex; 
            flex-direction: column; 
            justify-content: space-between; 
            /* [重要修复] 必须加 min-width: 0 才能让 flex 子元素正确收缩，否则会被长文本撑爆 */
            min-width: 0; 
        }

        .guide-title { 
            font-size: 18px; 
            font-weight: bold; 
            margin-bottom: 8px; 
            line-height: 1.4;
            /* [新增] 标题强制换行 */
            overflow-wrap: break-word;
            word-break: break-all;
        }
        .guide-title a:hover { color: var(--primary-color); }
        
        /* [新增] 针对描述段落的强制换行修复 */
        .guide-content p {
            font-size: 14px; 
            color: #4b5563; 
            margin-top: 8px;
            /* 强制打断长单词 */
            word-break: break-all; 
            overflow-wrap: anywhere;
            /* 手机端限制行数，防止太长 */
            display: -webkit-box;
            -webkit-line-clamp: 2; /* 限制显示2行 */
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .guide-meta { font-size: 13px; color: var(--text-secondary); display: flex; gap: 16px; }

        /* 侧边栏 */
        .sidebar-widget { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 24px; }
        .widget-title { font-size: 16px; font-weight: bold; margin-bottom: 16px; border-left: 4px solid var(--primary-color); padding-left: 10px; }
        
        .mini-game-list { display: flex; flex-direction: column; gap: 12px; }
        .mini-game-item { display: flex; align-items: center; justify-content: space-between; }
        .mini-game-info { display: flex; align-items: center; gap: 10px; overflow: hidden; }
        .mini-game-icon { width: 40px; height: 40px; border-radius: 8px; background: #ddd; flex-shrink: 0; }
        .mini-game-text { flex: 1; min-width: 0; }
        .mini-game-text h5 { font-size: 14px; font-weight: bold; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .mini-game-text span { font-size: 12px; color: var(--text-secondary); }
        .mini-dl-btn { background: #f3f4f6; color: var(--text-main); font-size: 12px; padding: 4px 10px; border-radius: 4px; font-weight: bold; flex-shrink: 0; }

        /* 1. 给列表容器加上宽度限制和隐藏溢出，防止撑开侧边栏 */
        .rank-list {
            width: 100%;
            overflow: hidden; 
        }

        /* 2. 列表项：强制宽度为 100%，确保不跟随内容变宽 */
        .rank-list li { 
            display: flex; 
            align-items: center; 
            padding: 10px 0; 
            border-bottom: 1px solid #f3f4f6; 
            width: 100%; /* 关键 */
            box-sizing: border-box;
        }

        .rank-num { 
            width: 20px; 
            height: 20px; 
            background: #9ca3af; 
            color: white; 
            font-size: 12px; 
            text-align: center; 
            line-height: 20px; 
            border-radius: 4px; 
            margin-right: 10px; 
            flex-shrink: 0; /* 禁止排名数字被压缩 */
        }

        /* 3. 标题：使用 width: 0 彻底忽略文字本身长度 */
        .rank-title { 
            font-size: 14px; 
            overflow: hidden; 
            text-overflow: ellipsis; 
            white-space: nowrap; 
            
            flex: 1; 
            width: 0;       /* 【核心修复】强制基准宽度为0，完全由flex-grow控制 */
            display: block; /* 确保作为块级元素处理 */
        }

        /* 颜色保持不变 */
        .rank-list li:nth-child(1) .rank-num { background: #ef4444; }
        .rank-list li:nth-child(2) .rank-num { background: #f97316; }
        .rank-list li:nth-child(3) .rank-num { background: #eab308; }
        .rank-title:hover { color: var(--primary-color); text-decoration: underline; }


        .rank-title { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0;}
        .rank-title:hover { color: var(--primary-color); text-decoration: underline; }

        /* =========================================
           8. 响应式适配 (Responsive)
           ========================================= */
        @media (max-width: 768px) {
            .nav-links, .search-box { display: none; }
            .mobile-menu-btn { display: block; }
            .hero-section { grid-template-columns: 1fr; height: auto; }
            .hero-banner { height: 200px; }
            .notice-card { height: auto; }
            
            /* 动态板块移动端变为2列 */
            .news-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
            .news-cover { height: 100px; }
            .news-title { font-size: 13px; }
            
            .main-layout { grid-template-columns: 1fr; }
            .guide-card { flex-direction: column; }
            .guide-img { width: 100%; height: 160px; }
            
            .footer-grid { grid-template-columns: 1fr; gap: 32px; }
            .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
            
            /* [优化] 强制断行，防止长文本撑宽 */
            h1, h2, h3, h4, p, a, span { word-break: break-all; }
        }

        /* =========================================
           9. 页脚区域 (Footer)
           ========================================= */
        footer {
            background-color: #111827; 
            color: #9ca3af; 
            padding-top: 64px;
            margin-top: 64px;
            width: 100%;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr 1fr; 
            gap: 40px;
            padding-bottom: 48px;
            border-bottom: 1px solid #374151;
        }

        .footer-col h4 {
            color: #f3f4f6; 
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 20px;
        }

        .footer-desc {
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .footer-links li { margin-bottom: 12px; }
        .footer-links a { font-size: 14px; transition: color 0.2s; }
        .footer-links a:hover { color: var(--primary-color); }

        .social-icons { display: flex; gap: 16px; margin-top: 16px; }
        .social-btn {
            width: 36px; height: 36px;
            background: #374151;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.2s;
        }
        .social-btn:hover { background: var(--primary-color); color: white; transform: translateY(-3px); }
        .social-btn svg { width: 18px; height: 18px; fill: currentColor; }

        .footer-bottom {
            padding: 24px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
        }
        .footer-bottom-links { display: flex; gap: 24px; }