/* =========================================
           1. 全局基础样式
           ========================================= */
           :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; }
        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; }
        a:hover { color: var(--primary-color); }
        ul { list-style: none; }
        img { max-width: 100%; height: auto; display: block; object-fit: cover; }

        .container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
        .flex { display: flex; }
        .flex-col { display: flex; flex-direction: column; } /* 新增 */
        .items-center { align-items: center; }
        .justify-between { justify-content: space-between; }

        header { background: var(--bg-card); height: var(--header-height); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
        .nav-inner { height: 100%; }
        .logo { font-size: 20px; font-weight: 800; color: var(--primary-color); letter-spacing: 1px; }
        .logo span { color: var(--text-main); } /* 提取自 inline style */
        
        .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); }
        
        .header-actions { display: flex; align-items: center; gap: 16px; } /* 提取自 inline style */
        .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; }

        /* =========================================
           2. 页面布局
           ========================================= */
        .breadcrumb { margin: 20px 0; font-size: 13px; color: var(--text-secondary); }
        .breadcrumb span { margin: 0 8px; color: #d1d5db; }

        .detail-layout {
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 32px;
            margin-bottom: 64px;
            max-width: 100%;
        }

        .main-column { 
            display: flex; flex-direction: column; gap: 24px; min-width: 0; 
        }

        .content-card { background: var(--bg-card); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }

        /* =========================================
           3. 游戏头部档案 (Full Width Header)
           ========================================= */
        .game-header-card { padding: 32px; margin-bottom: 24px; }

        .gh-title-row {
            display: flex; align-items: center; gap: 12px;
            margin-bottom: 24px; padding-bottom: 16px;
            border-bottom: 1px solid #f3f4f6;
        }
        .gh-title { font-size: 32px; font-weight: 800; color: #111827; line-height: 1.2; }
        .gh-ver { background: #e0f2fe; color: #0284c7; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: bold; }
        
        .gh-body { display: flex; gap: 24px; }
        
        .gh-icon {
            width: 140px; height: 140px;
            border-radius: 24px; background: #3b82f6;
            flex-shrink: 0; box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15);
        }

        .gh-details { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

        .gh-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
        .tag-pill { background: #f3f4f6; color: #4b5563; font-size: 12px; padding: 4px 12px; border-radius: 20px; font-weight: 600; }
        .tag-pill.highlight { background: #fef3c7; color: #d97706; }

        .gh-info-grid {
            display: grid; grid-template-columns: repeat(4, 1fr);
            gap: 16px; margin-bottom: 20px;
            background: #f9fafb; padding: 16px; border-radius: 8px;
        }
        .info-item { display: flex; flex-direction: column; gap: 4px; }
        .info-label { font-size: 12px; color: #9ca3af; }
        .info-val { font-size: 14px; font-weight: 600; color: #1f2937; }

        .gh-actions { display: flex; gap: 12px; }
        .btn-download {
            flex: 1;
            background: var(--primary-color); color: white;
            border: none; padding: 12px 24px; border-radius: 8px;
            font-size: 16px; font-weight: bold; cursor: pointer;
            display: flex; align-items: center; justify-content: center; gap: 8px;
            transition: all 0.2s; box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
            max-width: 300px;
        }
        .btn-download:hover { background: var(--primary-hover); transform: translateY(-2px); }
        
        .btn-secondary {
            background: white; color: #374151;
            border: 1px solid #e5e7eb; padding: 0 24px; border-radius: 8px;
            font-weight: 600; cursor: pointer; display: flex; align-items: center;
        }
        .btn-secondary:hover { border-color: #9ca3af; background: #f9fafb; }


        /* =========================================
           4. 其他内容区
           ========================================= */
        .screenshot-scroll {
            display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
            scrollbar-width: thin; scrollbar-color: #d1d5db transparent; max-width: 100%;
        }
        .screenshot-scroll::-webkit-scrollbar { height: 6px; }
        .screenshot-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
        .ss-img { width: 280px; height: 160px; border-radius: 8px; cursor: pointer; transition: transform 0.2s; flex-shrink: 0; }
        .ss-img:hover { transform: scale(1.02); }

        .section-title { font-size: 20px; font-weight: bold; margin-bottom: 16px; padding-left: 10px; border-left: 4px solid var(--primary-color); color: #1f2937; }
        .game-intro-text { font-size: 16px; line-height: 1.8; color: #374151; }
        .game-intro-text p { margin-bottom: 16px; text-align: justify; }

        /* [新增] 相关攻略区域样式提取 */
        .related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
        .related-card { 
            display: flex; gap: 12px; padding: 10px; 
            background: #f9fafb; border-radius: 8px; align-items: center; 
        }
        .related-card:hover { background: #f3f4f6; } /* 稍微增加一点交互感 */
        .related-thumb { border-radius: 4px; flex-shrink: 0; width: 100px; height: 60px; }
        .related-title { font-weight: bold; font-size: 14px; }
        .related-date { font-size: 12px; color: var(--text-secondary); }

        /* =========================================
           5. 侧边栏
           ========================================= */
        .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; padding-bottom: 10px; border-bottom: 1px solid #f3f4f6; }

        .side-article-list { display: flex; flex-direction: column; gap: 12px; }
        .side-article-link { font-size: 14px; color: #374151; display: block; line-height: 1.4; position: relative; padding-left: 12px; }
        .side-article-link::before { content: ''; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; background: #d1d5db; border-radius: 50%; }
        .side-article-link:hover { color: var(--primary-color); text-decoration: underline; }
        .side-article-link:hover::before { background: var(--primary-color); }

        /* [新增] 侧边栏游戏列表样式提取 */
        .side-game-link { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; }
        .side-game-link:hover .game-name { color: var(--primary-color); text-decoration: underline; }
        .side-game-thumb { border-radius: 8px; width: 40px; height: 40px; }
        .game-name { font-weight: bold; }
        .side-game-meta { font-size: 12px; color: var(--text-secondary); }


        footer { background-color: #111827; color: #9ca3af; padding: 40px 0; margin-top: 64px; text-align: center; font-size: 14px; }

        @media (max-width: 768px) {
            .nav-links, .search-box { display: none; }
            .mobile-menu-btn { display: block; }
            .detail-layout { grid-template-columns: 1fr; }
            
            /* Header Mobile */
            .gh-body { flex-direction: column; align-items: center; }
            .gh-info-grid { grid-template-columns: 1fr 1fr; } 
            .gh-actions { flex-direction: column; width: 100%; }
            .btn-download { max-width: 100%; }

            /* [优化] 移动端相关攻略改为单列 */
            .related-grid { grid-template-columns: 1fr; }
        }