/* =========================================================
   原始 <style> 样式块 01，已从 HTML 完整拆分
   ========================================================= */
/* ================= 核心旗舰级变量（100%保留） ================= */
        :root {
            --primary: #0d9488;        /* 极光青 */
            --primary-hover: #0f766e;
            --primary-light: #ccfbf1;  
            --accent: #ef4444;         
            --bg-body: #f4f7f9;        /* 配合 PC 端的浅灰蓝背景 */
            --bg-card: #ffffff;        /* 卡片纯白 */
            --text-main: #334155;
            --text-dark: #0f172a;
            --text-sub: #64748b;
            --border-light: rgba(0, 0, 0, 0.05);
            --border-glass: rgba(255, 255, 255, 0.9);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 20px;
            --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 4px rgba(0,0,0,0.02);
            --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);
            --spring-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
        }

        /* ================= 全局设定 & 原生字体适配（100%保留） ================= */
        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, 'PingFang SC', 'miui', 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
            background-color: var(--bg-body); color: var(--text-main); font-size: 16px; line-height: 1.6; overflow-x: hidden;
        }
        a { text-decoration: none; color: inherit; display: block; }
        ul, li { list-style: none; }
        img { width: 100%; height: auto; object-fit: cover; display: block; }
        .hide-scrollbar::-webkit-scrollbar { display: none; }
        .hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
        
        .touch-scale { transition: transform 0.2s var(--spring); }
        .touch-scale:active { transform: scale(0.95) !important; }

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

        /* ================= 1. 沉浸式阅读页导航栏（100%保留） ================= */
        .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.95); 
            backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
            box-shadow: 0 1px 0 rgba(0,0,0,0.03); transition: all 0.4s var(--spring-smooth);
        }
        
        .nav-btn { 
            width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
            font-size: 18px; color: var(--text-dark); background: transparent; transition: all 0.2s;
        }
        .nav-btn:active { background: rgba(0,0,0,0.05); }
        
        .header-logo-center { 
            display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 900; color: var(--text-dark);
            letter-spacing: -0.2px; font-family: 'Inter', sans-serif;
        }
        .header-logo-center i { color: var(--primary); font-size: 18px; }
        .header-logo-center span.hl { color: var(--primary); }
        
        .header-spacer { height: calc(54px + var(--safe-area-top)); }

        /* ================= App 级卡片封装（100%保留） ================= */
        .content-card {
            background: var(--bg-card);
            border-radius: 0 0 var(--radius-lg) var(--radius-lg);
            box-shadow: var(--shadow-card);
            margin-bottom: 16px;
            overflow: hidden;
        }
        .section-card {
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-card);
            margin: 0 16px 16px;
            padding-bottom: 8px;
            overflow: hidden;
        }

        /* ================= 2. 文章头部信息（100%保留） ================= */
        .article-head { padding: 24px 20px 20px; }
        .ah-title { font-size: 24px; font-weight: 900; color: var(--text-dark); line-height: 1.45; margin-bottom: 20px; letter-spacing: -0.2px;}
        
        .ah-author-row { display: flex; align-items: center; justify-content: space-between; }
        .ah-author { display: flex; align-items: center; gap: 12px; }
        .ah-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 0.5px solid var(--border-light); box-shadow: 0 2px 8px rgba(0,0,0,0.05);}
        .ah-info { display: flex; flex-direction: column; gap: 2px;}
        .ah-name { font-size: 15px; font-weight: 800; color: var(--text-dark); }
        .ah-meta { font-size: 12px; color: #94a3b8; display: flex; align-items: center; gap: 8px; font-weight: 500;}

        /* ================= 3. 顶级正文排版区（100%保留） ================= */
        .article-content { 
            padding: 0 20px; font-size: 17px; color: #334155; line-height: 1.85; letter-spacing: 0.3px; font-weight: 400;
        }
        .article-content p { margin-bottom: 22px; text-align: justify; word-wrap: break-word;}
        
        /* 正文插图 - 支持点击放大 */
        .article-content img { 
            width: 100%; border-radius: 12px; margin: 24px 0 10px; 
            box-shadow: 0 4px 16px rgba(0,0,0,0.06); border: 0.5px solid var(--border-light);
            cursor: zoom-in; transition: opacity 0.2s;
        }
        .article-content img:active { opacity: 0.8; }
        .img-caption { text-align: center; font-size: 13px; color: #94a3b8; margin-bottom: 28px; display: block; font-weight: 500;}

        /* 正文二级标题 */
        .article-content h2 { 
            font-size: 20px; font-weight: 900; color: var(--text-dark); margin: 36px 0 18px; 
            position: relative; padding-left: 14px; line-height: 1.4; letter-spacing: -0.2px;
        }
        .article-content h2::before { 
            content: ''; position: absolute; left: 0; top: 15%; bottom: 15%; width: 4px; 
            background: linear-gradient(to bottom, var(--primary), var(--primary-light)); border-radius: 4px; 
        }

        /* 引用块 */
        .article-content blockquote {
            background: #f8fafc; border-left: 4px solid var(--primary); padding: 16px 20px; margin: 28px 0;
            border-radius: 0 12px 12px 0; font-size: 16px; color: #475569; font-style: italic; line-height: 1.7;
        }

        /* ================= 4. 文章底部标签（100%保留） ================= */
        .article-footer { padding: 12px 20px 32px; }
        .af-tags { display: flex; flex-wrap: wrap; gap: 10px; }
        .af-tag { font-size: 13px; color: var(--text-sub); background: #f1f5f9; padding: 6px 16px; border-radius: 20px; font-weight: 600;}

        /* ================= 通用标题样式（100%保留） ================= */
        .section-header { display: flex; justify-content: space-between; align-items: flex-end; padding: 20px 20px 16px; }
        .sec-title { font-size: 18px; font-weight: 900; color: var(--text-dark); display: flex; align-items: center; gap: 8px; letter-spacing: -0.2px;}
        .sec-title i { color: var(--primary); font-size: 18px; }

        /* ================= 5. 相关阅读 (图文流)（100%保留） ================= */
        .related-feed { padding: 0 20px 10px; display: flex; flex-direction: column; gap: 16px;}
        .feed-card {
            display: flex; gap: 14px; background: #fff; align-items: stretch; text-decoration: none;
            padding-bottom: 16px; border-bottom: 0.5px solid #f1f5f9;
        }
        .feed-card:last-child { border-bottom: none; padding-bottom: 0;}
        .feed-content { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
        .feed-title { font-size: 15px; font-weight: 800; color: var(--text-dark); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px;}
        .feed-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #94a3b8; font-weight: 500; margin-top: auto;}
        .feed-img-wrap { width: 116px; height: 80px; border-radius: 10px; overflow: hidden; flex-shrink: 0; position: relative; border: 0.5px solid var(--border-light); box-shadow: 0 2px 8px rgba(0,0,0,0.04);}

        /* ================= 6. 热门游戏推荐 (横滑大卡)（100%保留） ================= */
        .hz-scroll { display: flex; gap: 14px; overflow-x: auto; padding: 0 20px 20px; scroll-snap-type: x mandatory; scroll-padding-left: 20px;}
        .hz-scroll::-webkit-scrollbar { display: none; }
        .hz-card { flex: 0 0 140px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; text-decoration: none;}
        .hz-img-wrap { width: 100%; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 4px 12px rgba(0,0,0,0.06); border: 0.5px solid var(--border-light);}
        .hz-badge { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); padding: 3px 8px; border-radius: 8px; font-size: 10px; font-weight: 800; color: #fff;}
        .hz-info { display: flex; flex-direction: column; gap: 2px; padding: 0 4px;}
        .hz-name { font-size: 15px; font-weight: 800; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
        .hz-sub { font-size: 12px; color: var(--text-sub); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}

        /* ================= 7. 全屏大图查看器 (Lightbox)（100%保留） ================= */
        .image-viewer-overlay {
            position: fixed; inset: 0; background: rgba(0, 0, 0, 0.95); z-index: 9999;
            display: flex; align-items: center; justify-content: center;
            opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
        }
        .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;
        }
        .viewer-close {
            position: absolute; top: calc(20px + var(--safe-area-top)); right: 20px; 
            color: #fff; font-size: 24px; width: 40px; height: 40px; 
            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; }
