/* =========================================================
   原始 <style> 样式块 01，已从 HTML 完整拆分
   ========================================================= */
/* ================= 核心旗舰级变量 (极光青主题) ================= */
        :root {
            --primary: #0d9488;        
            --primary-hover: #0f766e;
            --primary-light: #f0fdfa;  
            --wechat-green: #07c160;   
            --wechat-green-hover: #059669;
            --bg-body: #f4f7f9;        
            --bg-card: #ffffff;        
            --text-main: #334155;
            --text-dark: #0f172a;
            --text-sub: #64748b;
            --border-light: rgba(0, 0, 0, 0.05);
            --radius-md: 16px;
            --radius-lg: 24px;
            --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.04);
            --safe-area-bottom: env(safe-area-inset-bottom, 0px);
            --safe-area-top: env(safe-area-inset-top, 0px);
            --spring: cubic-bezier(0.25, 1.2, 0.3, 1);
        }

        /* ================= 全局设定 ================= */
        html { scroll-behavior: smooth; }
        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        body {
            -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
            font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Segoe UI, Arial, Roboto, sans-serif;
            background-color: var(--bg-body); color: var(--text-main); font-size: 15px; line-height: 1.6; overflow-x: hidden;
            background-image: radial-gradient(#cbd5e1 1px, transparent 1px); background-size: 24px 24px;
        }
        a { text-decoration: none; color: inherit; display: block; }
        ul, li { list-style: none; }
        img { width: 100%; height: auto; display: block; }
        
        .touch-scale { transition: transform 0.2s var(--spring); }
        .touch-scale:active { transform: scale(0.95) !important; }

        .app-container { padding-bottom: calc(85px + var(--safe-area-bottom)); }

        /* ================= 1. 沉浸式顶部导航 (还原 PC 品牌 Logo) ================= */
        .app-header {
            position: fixed; top: 0; left: 0; right: 0; height: calc(54px + var(--safe-area-top));
            padding-top: var(--safe-area-top); padding-left: 16px; padding-right: 16px;
            display: flex; align-items: center; justify-content: space-between; z-index: 1000; 
            background: rgba(255, 255, 255, 0); 
            transition: all 0.4s ease;
        }
        .app-header.scrolled {
            background: rgba(255, 255, 255, 0.95); 
            backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
            box-shadow: 0 1px 0 rgba(0,0,0,0.03);
        }
        
        .nav-btn { 
            width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
            font-size: 18px; color: #fff; background: rgba(0,0,0,0.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: all 0.3s;
        }
        .app-header.scrolled .nav-btn { color: var(--text-dark); background: #f1f5f9; }
        
        /* 还原 PC 端完整品牌 Logo 设计 */
        .header-logo { 
            display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(10px); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .app-header.scrolled .header-logo { opacity: 1; transform: translateY(0); }
        .logo-icon {
            width: 28px; height: 28px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
            border-radius: 8px; display: flex; align-items: center; justify-content: center;
            color: #fff; font-size: 14px; box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
        }
        .logo-cn { font-size: 17px; font-weight: 900; letter-spacing: 1px; color: var(--text-dark); }

        /* ================= 2. 沉浸式海报与游戏核心信息 ================= */
        .hero-banner {
            width: 100%; height: 260px; position: relative;
            background: url('https://images.unsplash.com/photo-1574169208507-84376144848b?w=800&fit=crop') center/cover no-repeat;
        }
        .hero-banner::after {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(to bottom, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.5) 70%, var(--bg-body) 100%);
        }

        .hero-card {
            margin: -60px 16px 16px; position: relative; z-index: 10;
            background: var(--bg-card); border-radius: var(--radius-lg);
            padding: 20px; box-shadow: var(--shadow-card);
        }
        .hero-top { display: flex; gap: 16px; align-items: center; }
        
        .hero-icon { 
            width: 84px; height: 84px; border-radius: 22px; flex-shrink: 0; background: #fff;
            object-fit: cover; box-shadow: 0 8px 20px rgba(0,0,0,0.1); border: 2px solid #fff;
        }
        
        .hero-info { flex: 1; min-width: 0; }
        .hero-title { font-size: 22px; font-weight: 900; color: var(--text-dark); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .hero-dev { font-size: 13px; color: var(--text-sub); font-weight: 600; margin-bottom: 8px;}
        
        .score-wrap { display: flex; align-items: center; gap: 8px; }
        .score-num { font-size: 24px; font-weight: 900; color: #f59e0b; line-height: 1; font-family: 'Inter', sans-serif;}
        .score-stars { color: #f59e0b; font-size: 12px; }
        
        .hero-tags { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
        .pretty-tag {
            background: var(--primary-light); color: var(--primary);
            padding: 4px 12px; border-radius: 8px; font-size: 12px; font-weight: 800;
        }
        .tag-hot { background: #ecfdf5; color: var(--wechat-green); }

        /* ================= 3. 通用内容卡片 ================= */
        .section-card {
            background: var(--bg-card); border-radius: var(--radius-lg);
            margin: 0 16px 16px; padding: 24px 20px;
            box-shadow: var(--shadow-card);
        }
        .sc-title { font-size: 18px; font-weight: 900; color: var(--text-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 8px;}
        .sc-title i { color: var(--primary); font-size: 18px; }

        /* ================= 4. 游戏简介 ================= */
        .desc-text { 
            font-size: 15px; color: var(--text-main); line-height: 1.7; font-weight: 400; text-align: justify;
            display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; transition: all 0.3s;
        }
        .desc-text.expanded { -webkit-line-clamp: 99; }
        .expand-btn { 
            text-align: center; font-size: 14px; color: var(--primary); font-weight: 800; 
            margin-top: 12px; padding-top: 12px; border-top: 1px dashed #f1f5f9; display: flex; align-items: center; justify-content: center; gap: 4px;
        }

        /* ================= 5. 高清实机截图 (竖屏定制版 9:16，硬件加速阻尼横滑) ================= */
        .screenshot-wrap { margin: 0 -20px; padding: 0; }
        .screenshot-scroll { 
            display: flex; gap: 14px; overflow-x: auto; padding: 0 20px 12px;
            scroll-snap-type: x mandatory; /* 原生卡片吸附效果 */
            -webkit-overflow-scrolling: touch; /* 强制 iOS / 鸿蒙 开启硬件加速阻尼滑动 */
            scrollbar-width: none;
        }
        .screenshot-scroll::-webkit-scrollbar { display: none; }
        
        .screenshot-item { 
            flex: 0 0 46%; /* 竖屏比例特调，一屏展示两张半，诱导滑动 */
            scroll-snap-align: center; 
            border-radius: 14px; overflow: hidden; 
            position: relative; box-shadow: 0 4px 14px rgba(0,0,0,0.06); border: 0.5px solid var(--border-light);
            aspect-ratio: 9/16; /* 竖屏小游戏专属比例 */
        }
        .screenshot-item img { width: 100%; height: 100%; object-fit: cover; }

        /* ================= 6. 游戏档案 ================= */
        .info-list { display: flex; flex-direction: column; gap: 14px;}
        .info-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px;}
        .info-label { color: var(--text-sub); font-weight: 500; flex-shrink: 0;}
        .info-val { color: var(--text-dark); font-weight: 700; text-align: right;}

        /* ================= 7. 最新动态 ================= */
        .news-list { display: flex; flex-direction: column; gap: 12px; }
        .news-item { display: flex; align-items: flex-start; gap: 12px; text-decoration: none; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
        .news-item:last-child { border-bottom: none; padding-bottom: 0; }
        .news-tag { padding: 2px 6px; background: #e0f2fe; color: #0284c7; font-size: 11px; font-weight: 800; border-radius: 4px; flex-shrink: 0; margin-top: 2px;}
        .news-tag.update { background: #dcfce7; color: #059669; }
        .news-tag.guide { background: #ffedd5; color: #ea580c; }
        .news-title { font-size: 15px; font-weight: 600; color: var(--text-dark); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .news-date { font-size: 12px; color: #94a3b8; font-weight: 500; margin-top: 6px; }

        /* ================= 8. 底部吸底操作栏 (小游戏专属微信绿) ================= */
        .bottom-action-bar {
            position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
            background: rgba(255, 255, 255, 0.95); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
            border-top: 0.5px solid var(--border-light); padding: 12px 16px calc(12px + var(--safe-area-bottom));
            display: flex; justify-content: center; align-items: center; box-shadow: 0 -4px 20px rgba(0,0,0,0.03);
        }
        .btn-wechat-play {
            width: 100%; max-width: 400px; height: 50px; border-radius: 16px; 
            background: linear-gradient(135deg, var(--wechat-green), var(--wechat-green-hover));
            color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; letter-spacing: 1px;
            box-shadow: 0 8px 20px rgba(7, 193, 106, 0.3); gap: 8px; text-decoration: none;
        }

        /* ================= 9. 原生级全屏大图查看器 (彻底解决手势冲突) ================= */
        .image-viewer-overlay {
            position: fixed; inset: 0; background: rgba(0, 0, 0, 0.98); z-index: 9999;
            display: flex; align-items: center; justify-content: center;
            opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
            touch-action: none; /* 【核心】彻底屏蔽浏览器原生滑动缩放冲突，专供 JS 处理 */
        }
        .image-viewer-overlay.active { opacity: 1; pointer-events: auto; }
        .image-viewer-overlay img {
            max-width: 100%; max-height: 100%; object-fit: contain;
            transform-origin: center; will-change: transform;
            touch-action: none;
        }
        .viewer-close {
            position: absolute; top: calc(20px + var(--safe-area-top)); right: 20px; 
            color: #fff; font-size: 24px; width: 44px; height: 44px; 
            display: flex; align-items: center; justify-content: center;
            z-index: 10000; background: rgba(0,0,0,0.5); border-radius: 50%;
        }

    
/* H1 标签语义化，不新增视觉区块 */
h1 { margin-top: 0; }
.banner-overlay h1 { font-size: inherit; font-weight: inherit; margin: 0 0 4px; letter-spacing: inherit; }
.m-hero h1 { font-size: inherit; line-height: inherit; font-weight: inherit; margin: 0; }
h1.sec-title, h1.matrix-sec-title, h1.section-title, h1.hero-title, h1.hn-title, h1.search-stats { margin-top: 0; }
