/* Extracted from 8，小游戏(1)_美观无损H1版.html - style block 1. 内容未删减，仅从 HTML 拆分到 CSS 文件。 */


        /* ================= 世界顶级视觉规范 (巅峰高奢极光青极致统一版) ================= */
        :root {
            --primary: #0d9488;        
            --primary-gradient: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
            --primary-light: #ccfbf1;  
            --primary-fade: #f0fdfa;   
            
            --bg-body: #f4f7f9;        
            --text-main: #334155;
            --text-dark: #0f172a;
            --text-sub: #64748b;
            
            --border-light: rgba(13, 148, 136, 0.05);
            --border-glass: rgba(255, 255, 255, 0.9);
            --radius-sm: 14px;
            --radius-md: 22px;
            --radius-lg: 30px;
            
            --shadow-card: 0 4px 20px -2px rgba(15,23,42,0.02), 0 12px 30px -4px rgba(13,148,136,0.04);
            --shadow-icon: 0 8px 20px rgba(13, 148, 136, 0.14);
            --shadow-glow: 0 8px 24px -6px rgba(13, 148, 136, 0.15);
            
            --safe-area-bottom: env(safe-area-inset-bottom, 0px);
            --safe-area-top: env(safe-area-inset-top, 0px);
            
            --spring: cubic-bezier(0.34, 1.56, 0.64, 1); 
            --spring-smooth: cubic-bezier(0.16, 1, 0.3, 1);

            --sb-gold-gradient: linear-gradient(135deg, #f5d085 0%, #cba258 50%, #a37c35 100%);
            --silver-gradient: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
            --bronze-gradient: linear-gradient(135deg, #fed7aa 0%, #ca8a04 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: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
            background-color: var(--bg-body); color: var(--text-main); font-size: 14px; line-height: 1.45; overflow-x: hidden;
            background-image: 
                radial-gradient(circle at 15% -5%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 85% 25%, rgba(13, 148, 136, 0.06) 0%, transparent 45%);
            letter-spacing: -0.015em;
        }
        a { text-decoration: none; color: inherit; }
        .hide-scrollbar::-webkit-scrollbar { display: none; }
        .hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
        
        .touch-scale { transition: transform 0.25s var(--spring), background-color 0.25s ease, box-shadow 0.25s ease; }
        .touch-scale:active { transform: scale(0.94) !important; box-shadow: 0 2px 6px rgba(15,23,42,0.01) !important; }
        .app-container { padding-bottom: calc(92px + var(--safe-area-bottom)); }

        @keyframes skeleton-glow {
            0% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        .skeleton-loading {
            background: linear-gradient(90deg, #edf7f6 25%, #d1f4ee 37%, #edf7f6 63%);
            background-size: 400% 100%;
            animation: skeleton-glow 1.4s ease infinite;
        }

        @keyframes label-shimmer {
            0% { transform: translateX(-150%) skewX(-25deg); }
            100% { transform: translateX(150%) skewX(-25deg); }
        }

        .scroll-wrapper-relative { position: relative; width: 100%; }
        .scroll-wrapper-relative::before, .scroll-wrapper-relative::after {
            content: ''; position: absolute; top: 0; bottom: 0; width: 24px; z-index: 5; pointer-events: none;
        }
        .scroll-wrapper-relative::before { left: 0; background: linear-gradient(to right, var(--bg-body), transparent); }
        .scroll-wrapper-relative::after { right: 0; background: linear-gradient(to left, var(--bg-body), transparent); }

        .horizontal-list, .app-icon-scroll-matrix { 
            display: flex; gap: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px 18px;
        }
        .horizontal-list > *, .app-icon-scroll-matrix > * { scroll-snap-align: start; scroll-snap-stop: always; }

        /* ================= 1. 沉浸式流体导航栏 ================= */
        .app-header {
            position: fixed; top: 0; left: 0; right: 0; padding: calc(14px + var(--safe-area-top)) 16px 12px;
            display: flex; flex-direction: column; gap: 12px; z-index: 1000; background: rgba(244, 247, 249, 0.94); transition: all 0.4s var(--spring-smooth);
        }
        .app-header.scrolled {
            background: rgba(255, 255, 255, 0.85); backdrop-filter: saturate(230%) blur(35px); -webkit-backdrop-filter: saturate(230%) blur(35px);
            box-shadow: 0 4px 30px rgba(15, 23, 42, 0.02); border-bottom: 0.5px solid rgba(13, 148, 136, 0.08);
        }
        .header-top-row { display: flex; align-items: center; gap: 12px; width: 100%; }
        .header-logo { width: 38px; height: 38px; border-radius: 14px; background: var(--primary-gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: var(--shadow-icon); flex-shrink: 0; }
        .search-bar { flex: 1; height: 38px; border-radius: 19px; background: rgba(15, 23, 42, 0.04); display: flex; align-items: center; padding: 0 16px; gap: 8px; color: var(--text-sub); font-size: 13.5px; font-weight: 500; border: 0.5px solid var(--border-glass); }
        .search-bar i { color: var(--primary); font-size: 14px; }
        .header-msg { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--text-dark); font-size: 18px; position: relative; box-shadow: 0 2px 10px rgba(15,23,42,0.01); border: 0.5px solid var(--border-light); flex-shrink: 0; }
        .header-msg::after { content: ''; position: absolute; top: 11px; right: 11px; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; border: 1.5px solid #fff; }

        .header-categories { display: flex; align-items: center; gap: 8px; width: 100%; overflow-x: auto; padding: 2px 0 6px; scroll-padding-left: 16px; }
        .cat-item { font-size: 13.5px; font-weight: 700; color: #64748b; white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; gap: 5px; padding: 8px 16px; border-radius: 20px; background: #fff; border: 0.5px solid var(--border-light); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.01); }
        .cat-item.active { color: #fff; font-weight: 800; background: var(--text-dark); border-color: transparent; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12); }
        .header-spacer { height: calc(120px + var(--safe-area-top)); }

        /* ================= 2. 👑 淘宝级双行滑块金刚区 ================= */
        .matrix-slider-container {
            margin: 4px 14px 22px; background: #ffffff; border-radius: var(--radius-lg);
            box-shadow: var(--shadow-card); border: 1px solid rgba(13, 148, 136, 0.02);
            padding: 20px 0 14px; position: relative; overflow: hidden;
        }
        .category-matrix-8items { 
            display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; 
            grid-auto-columns: calc((100vw - 28px) / 4); overflow-x: auto; scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch; row-gap: 20px; padding-bottom: 14px;
        }
        .cat-matrix-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; scroll-snap-align: start; text-decoration: none; width: 100%; }
        
        .cm-icon-box { 
            width: 52px; height: 52px; border-radius: 18px; display: flex; align-items: center; justify-content: center; 
            background: linear-gradient(135deg, #f0fdfa 0%, #e6f4f2 100%); position: relative; 
            box-shadow: 0 4px 12px rgba(13, 148, 136, 0.04); transition: all 0.25s var(--spring);
        }
        .cm-icon-box::before {
            content: ''; position: absolute; inset: 2px; border-radius: 16px;
            background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); z-index: 1;
        }
        .cm-icon-box::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(13, 148, 136, 0.08); pointer-events: none; z-index: 3; }
        
        .cat-matrix-item[title*="热门"] .cm-icon-box,
        .cat-matrix-item[title*="精选"] .cm-icon-box {
            background: linear-gradient(135deg, #ccfbf1 0%, #f0fdfa 100%);
            box-shadow: 0 4px 14px rgba(13, 148, 136, 0.08);
        }
        .cat-matrix-item[title*="热门"] .cm-icon-box svg,
        .cat-matrix-item[title*="精选"] .cm-icon-box svg {
            filter: drop-shadow(0 2px 4px rgba(13, 148, 136, 0.2));
            stroke-width: 2.5;
        }

        .cm-icon-box svg {
            width: 24px; height: 24px; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
            fill: rgba(20, 184, 166, 0.1); z-index: 2; position: relative; filter: drop-shadow(0 1px 2px rgba(13, 148, 136, 0.05));
        }
        .cm-text { font-size: 12.5px; font-weight: 800; color: var(--text-dark); white-space: nowrap; letter-spacing: -0.02em; text-align: center; width: 95%; overflow: hidden; text-overflow: ellipsis; }

        .matrix-indicator-bar { display: flex; justify-content: center; align-items: center; margin-top: 2px; width: 100%; }
        .matrix-indicator-track { width: 36px; height: 4px; background: #e2e8f0; border-radius: 2px; position: relative; overflow: hidden; }
        .matrix-indicator-thumb { position: absolute; top: 0; left: 0; width: 14px; height: 100%; background: var(--primary-gradient); border-radius: 2px; transition: transform 0.1s linear; }

        /* ================= 3. 高奢排版与精炼卡片流 ================= */
        .section-header { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 18px; margin: 26px 0 12px; }
        .sec-title-wrap { display: flex; flex-direction: column; gap: 3px; }
        .sec-title { font-size: 19px; font-weight: 800; color: var(--text-dark); display: flex; align-items: center; gap: 6px; letter-spacing: -0.02em; }
        .sec-title i { color: var(--primary); font-size: 18px; }
        .sec-sub { font-size: 11.5px; font-weight: 700; color: #a6b4c9; letter-spacing: -0.01em; }
        .sec-more { font-size: 12px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 4px; padding: 6px 14px; background: transparent; border-radius: 16px; pointer-events: none; }
        
        .card-landscape { flex: 0 0 244px; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-md); padding: 12px; box-shadow: var(--shadow-card); border: 0.5px solid var(--border-light); }
        .card-ls-img { width: 100%; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; margin-bottom: 10px; position: relative; border: 0.5px solid rgba(15,23,42,0.02); }
        .card-ls-img::after {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transform: translateX(-100%);
        }
        .card-landscape:active .card-ls-img::after {
            transform: translateX(100%); transition: transform 0.6s ease-out;
        }
        .card-ls-name { font-size: 15.5px; font-weight: 800; color: var(--text-dark); letter-spacing: -0.01em; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .card-ls-desc { font-size: 12px; color: var(--text-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; min-height: 35px; font-weight: 500; }

        .app-sc-item { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; }
        .app-sc-icon-wrap { width: 62px; height: 62px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); border: 0.5px solid var(--border-light); aspect-ratio: 1/1; }
        .app-sc-name { font-size: 12px; font-weight: 800; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; text-align: center; }

        /* 权威排行榜看板 (精品5强) */
        .rank-board-card { flex: 0 0 88vw; scroll-snap-align: start; scroll-snap-stop: always; background: #fff; border-radius: var(--radius-lg); padding: 22px 20px 16px; box-shadow: var(--shadow-card); border: 0.5px solid var(--border-light); display: flex; flex-direction: column; }
        .rb-header { font-size: 17.5px; font-weight: 800; color: var(--text-dark); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.02em;}
        
        
        .rb-item-wrapper { display: block; text-decoration: none; color: inherit; border-bottom: 1px solid #f8fafc; }
        .rb-item-wrapper:last-of-type { border-bottom: none; }
        .rb-item { display: flex; align-items: center; padding: 11px 0; position: relative; }
        
        .rb-idx { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; color: #94a3b8; font-style: italic; background: #f1f5f9; margin-right: 12px; flex-shrink: 0; }
        .rb-item-wrapper:nth-of-type(1) .rb-idx { background: var(--sb-gold-gradient); color: #fff; font-style: normal; box-shadow: 0 4px 10px rgba(203, 162, 88, 0.35); font-size: 15px; } 
        .rb-item-wrapper:nth-of-type(2) .rb-idx { background: var(--silver-gradient); color: #fff; font-style: normal; box-shadow: 0 4px 10px rgba(148, 163, 184, 0.25); font-size: 14px; } 
        .rb-item-wrapper:nth-of-type(3) .rb-idx { background: var(--bronze-gradient); color: #fff; font-style: normal; box-shadow: 0 4px 10px rgba(202, 138, 4, 0.2); font-size: 13px; }
        .rb-item-wrapper:nth-of-type(4) .rb-idx, .rb-item-wrapper:nth-of-type(5) .rb-idx { font-style: normal; font-size: 12px; color: #64748b; }
        
        .rb-img { width: 48px; height: 48px; border-radius: 13px; margin-right: 12px; border: 0.5px solid var(--border-light); flex-shrink: 0; aspect-ratio: 1/1; overflow: hidden; transition: transform 0.2s ease; }
        .rb-item-wrapper:active .rb-img { transform: scale(0.95); }
        .rb-info { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
        .rb-name { font-size: 14.5px; font-weight: 800; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .rb-sub { font-size: 11.5px; font-weight: 600; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        
        .app-btn { padding: 6px 15px; background: #f1f5f9; color: var(--primary); font-size: 12.5px; font-weight: 800; border-radius: 15px; border: none; flex-shrink: 0; pointer-events: none; }
        .app-btn.primary { background: var(--primary-gradient); color: #fff; box-shadow: var(--shadow-icon); }
        .rb-footer-btn { display: block; text-align: center; margin-top: 14px; padding: 12px; background: #f8fafc; border-radius: 16px; color: var(--primary); font-size: 13.5px; font-weight: 800; border: 0.5px solid rgba(13,148,136,0.02); }

        /* ================= 4xN 底部极智精细化矩阵流规范 ================= */
        .tt-feed-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 12px; padding: 4px 16px 35px; }
        .tt-app-card { display: flex; flex-direction: column; align-items: center; text-decoration: none; gap: 7px; width: 100%; }
        
        .tt-app-icon { 
            width: 64px; height: 64px; border-radius: 18px; 
            box-shadow: var(--shadow-glow); 
            border: 0.5px solid rgba(13, 148, 136, 0.08); background: #fff; overflow: hidden; aspect-ratio: 1/1; position: relative; 
        }
        .tt-app-icon img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
        .tt-app-card:active .tt-app-icon img { transform: scale(1.08); }
        
        .tt-app-name { font-size: 12px; font-weight: 800; color: var(--text-dark); text-align: center; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 1px; }
        .tt-app-btn { padding: 4px 11px; background: rgba(13, 148, 136, 0.05); color: var(--primary); border-radius: 10px; font-size: 11px; font-weight: 800; border: 0.5px solid rgba(13,148,136,0.06); transition: all 0.2s ease; }
        .tt-app-card:active .tt-app-btn { background: var(--primary-gradient); color: #fff; border-color: transparent; }

        /* ================= 4. 全屏高级仿 iOS 渐进式毛玻璃双选项卡搜索遮罩 ================= */
        .search-overlay { 
            position: fixed; inset: 0; background: rgba(245, 248, 250, 0); 
            z-index: 2000; display: flex; flex-direction: column; 
            transform: translateY(6%); opacity: 0; pointer-events: none; 
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, backdrop-filter 0.4s ease; 
        }
        .search-overlay.active { 
            transform: translateY(0); opacity: 1; pointer-events: auto; 
            background: rgba(245, 248, 250, 0.86);
            backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px);
        }
        
        .so-header { padding: calc(14px + var(--safe-area-top)) 16px 12px; display: flex; align-items: center; gap: 14px; background: #fff; border-bottom: 0.5px solid rgba(15,23,42,0.03); }
        
        /* 搜索框聚焦流光呼吸阴影视觉动效 */
        .so-search-box { flex: 1; height: 40px; border-radius: 20px; background: #f1f5f9; display: flex; align-items: center; padding: 0 16px; border: 0.5px solid rgba(15,23,42,0.01); transition: all 0.3s ease; }
        .so-search-box.focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-light); }
        .so-search-box i.fa-search { color: var(--primary); font-size: 14px; flex-shrink: 0; }
        .so-search-box input { flex: 1; background: transparent; border: none; outline: none; font-size: 14.5px; color: var(--text-dark); font-weight: 600; width: 100%; }
        
        /* 独立一键删除按钮 */
        .search-clear { color: #94a3b8; font-size: 15px; display: none; cursor: pointer; padding: 4px; flex-shrink: 0; }
        .so-cancel { font-size: 14.5px; color: var(--text-dark); font-weight: 800; padding: 0 2px; }
        
        .so-tabs { display: flex; padding: 3px; background: rgba(15,23,42,0.04); border-radius: 12px; margin: 16px 16px 12px; }
        .so-tab-nav { flex: 1; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--text-sub); padding: 9px 0; border-radius: 9px; transition: all 0.2s ease; cursor: pointer; display: flex; align-items: center; justify-content: center; }
        .so-tab-nav.active { color: var(--text-dark); font-weight: 900; background: #fff; box-shadow: 0 3px 10px rgba(15,23,42,0.02); }
        
        .so-content { flex: 1; overflow-y: auto; padding: 4px 16px 40px; }
        .so-panel { display: none; }
        .so-panel.active { display: block; }
        .so-hot-list { display: flex; flex-direction: column; gap: 10px; }
        .so-hot-item { display: flex; align-items: center; padding: 12px 14px; background: #fff; border-radius: 16px; box-shadow: 0 3px 10px rgba(15,23,42,0.01); border: 0.5px solid rgba(15,23,42,0.02); cursor: pointer; }
        
        .so-hot-idx { width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 900; color: #94a3b8; font-style: italic; background: #f1f5f9; margin-right: 12px; flex-shrink: 0; }
        .so-hot-item:nth-child(1) .so-hot-idx { background: var(--sb-gold-gradient); color: #fff; font-style: normal; box-shadow: 0 3px 6px rgba(203, 162, 88, 0.3); }
        .so-hot-item:nth-child(2) .so-hot-idx { background: var(--primary-gradient); color: #fff; font-style: normal; box-shadow: 0 3px 6px rgba(20,184,166,0.2); }
        .so-hot-item:nth-child(3) .so-hot-idx { background: linear-gradient(135deg, #2dd4bf 0%, #99f6e4 100%); color: #fff; font-style: normal; }
        
        .so-hot-name { flex: 1; font-size: 14.5px; font-weight: 800; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .so-hot-tag { font-size: 10px; padding: 2.5px 7px; border-radius: 6px; margin-left: 8px; font-weight: 900; flex-shrink: 0; position: relative; overflow: hidden;}
        .so-hot-tag::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent); transform: translateX(-100%); animation: label-shimmer 2s infinite ease-in-out; }
        .tag-hot { background: #ffe4e6; color: #f43f5e; } 
        .tag-new { background: var(--primary-light); color: var(--primary); }
        .tag-trend { background: #dcfce7; color: #22c55e; }
        .tag-recom { background: #f3e8ff; color: #a855f7; }

        /* 吸底固定悬浮导航栏 */
        .bottom-tab-bar { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255, 255, 255, 0.88); backdrop-filter: saturate(210%) blur(32px); -webkit-backdrop-filter: saturate(210%) blur(32px); border-top: 0.5px solid rgba(15, 23, 42, 0.04); display: flex; justify-content: space-around; align-items: center; padding-bottom: var(--safe-area-bottom); height: calc(66px + var(--safe-area-bottom)); z-index: 1000; box-shadow: 0 -6px 30px rgba(15,23,42,0.01); }
        .tab-item { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 25%; height: 100%; color: #94a3b8; gap: 4px; text-align: center; }
        .tab-icon-wrap { position: relative; width: 52px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; transition: all 0.4s var(--spring); font-size: 18px; }
        .tab-icon { z-index: 2; transition: transform 0.4s var(--spring), color 0.3s ease; }
        .tab-text { font-size: 10px; font-weight: 700; white-space: nowrap; letter-spacing: -0.2px; transition: color 0.3s ease; }
        .tab-item.active { color: var(--text-dark); }
        .tab-item.active .tab-icon-wrap { background: var(--primary-light); width: 60px; transform: scale(1.03); }
        .tab-item.active .tab-icon { transform: scale(1.15); color: var(--primary); }
        .tab-item.active .tab-text { font-weight: 900; color: var(--text-dark); }
    
/* 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; }

