
        /* 棣冨皞 閸忋劎鐝紒鐔剁鐝姒碍娈槐顐ゎ潠閹垛偓閼冲本娅 + 缂冩垶鐗 */
        * { box-sizing: border-box; margin: 0; padding: 0; }
        body { 
            background-color: #0d0914 !important;
            background-image: 
                linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px),
                radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%) !important;
            background-size: 24px 24px, 24px 24px, 100% 100%, 100% 100% !important;
            background-attachment: fixed !important;
            color: #a1a1aa; 
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
            display: flex; flex-direction: column; min-height: 100vh;
        }

        /* 鎼存洟鍎村〒鎰綁闁喚鍍 */
        body::after {
            content: ''; position: fixed; bottom: 0; left: 0; width: 100vw; height: 120px;
            background: linear-gradient(to bottom, transparent 0%, #09090b 100%);
            pointer-events: none; z-index: -1;
        }

        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }

        .page-wrapper { display: flex; min-height: 100vh; max-width: 1600px; margin: 0 auto; align-items: flex-start; width: 100%; position: relative; z-index: 1; }

        .main-content { flex: 1; min-width: 0; padding: 2rem 2rem 4rem 2rem; }

        /* 妞ゅ爼鍎撮幖婊呭偍閸栧搫娼 */
        .hero-block { 
            background: linear-gradient(145deg, rgba(26, 30, 45, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%); 
            backdrop-filter: blur(10px);
            border: 1px solid rgba(139, 92, 246, 0.15); border-top: 1px solid rgba(168, 85, 247, 0.4);
            border-radius: 16px; padding: 2.5rem 3rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; width: 100%;
        }
        .hero-text h1 { font-size: 2.2rem; font-weight: 800; color: #f4f4f5; margin-bottom: 0.5rem; }
        .hero-text h1 span { color: #8b5cf6; }
        .hero-text p { color: #a1a1aa; font-size: 0.95rem; max-width: 500px; line-height: 1.6; }
        
        .search-box { display: flex; align-items: center; background: rgba(10, 10, 12, 0.8); border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 12px; padding: 4px 4px 4px 16px; width: 380px; transition: 0.2s; }
        .search-box:focus-within { border-color: #8b5cf6; }
        .search-box i { color: #52525b; margin-right: 10px; }
        .search-box input { flex: 1; background: transparent; border: none; color: #f4f4f5; outline: none; }
        .search-box button { background: #8b5cf6; color: #fff; border: none; border-radius: 8px; padding: 10px 24px; font-weight: 600; cursor: pointer; height: 38px; }

        /* 娴犻攱鐗搁懗璺烘抄 */
        .pricing-tabs { display: flex; gap: 12px; margin-bottom: 2rem; flex-wrap: wrap; }
        .pricing-tab { padding: 8px 20px; border-radius: 30px; font-size: 0.9rem; font-weight: 600; color: #a1a1aa; background: rgba(18, 18, 23, 0.6); border: 1px solid rgba(139, 92, 246, 0.2); transition: all 0.2s; }
        .pricing-tab:hover { border-color: #8b5cf6; color: #f4f4f5; }
        .pricing-tab.active { background: rgba(139, 92, 246, 0.15); border-color: #8b5cf6; color: #c4b5fd; }

        /* 瀹搞儱鍙跨純鎴炵壐 */
        .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; width: 100%; }
        @media (max-width: 1200px) { .grid { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 768px) { .grid { grid-template-columns: 1fr; } }

        /* 楋紕澧 */
        .tool-card { 
            background: linear-gradient(145deg, #16101f 0%, #0c0912 100%);
            border: 1px solid rgba(139, 92, 246, 0.15); border-top: 1px solid rgba(168, 85, 247, 0.3);
            border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; transition: all 0.3s ease; position: relative;
        }
        .tool-card:hover { border-color: rgba(139, 92, 246, 0.6); transform: translateY(-3px); }
        
        .card-full-link { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; border-radius: 16px; }
        .card-header, .card-desc { position: relative; z-index: 2; pointer-events: none; }
        .card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
        
        .card-logo { width: 44px; height: 44px; background: linear-gradient(135deg, #2a253b 0%, #1a1a24 100%); border-radius: 8px; display: flex; justify-content: center; align-items: center; flex-shrink: 0; font-size: 20px; font-weight: bold; color: #8b5cf6; overflow: hidden; position: relative; border: 1px solid rgba(139, 92, 246, 0.2); }
        .card-logo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; z-index: 2; }
        .card-title { color: #f4f4f5; font-size: 1.1rem; font-weight: 700; margin: 0; }
        
        .card-desc { color: #a1a1aa; font-size: 0.875rem; line-height: 1.6; margin-bottom: 1rem; flex: 1; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
        
        .card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(139, 92, 246, 0.1); padding-top: 1rem; position: relative; z-index: 99; pointer-events: auto; }
        
        .badge { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; border: 1px solid rgba(16, 185, 129, 0.3); color: #10b981; background: rgba(16, 185, 129, 0.1); }
        .actions { display: flex; align-items: center; gap: 12px; }
        
        /* Checkbox */
        .compare-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.75rem; color: #a1a1aa; transition: color 0.2s; }
        .compare-label:hover { color: #f4f4f5; }
        .compare-label input[type="checkbox"] { appearance: none; width: 14px; height: 14px; border: 1px solid #52525b; border-radius: 3px; background: transparent; cursor: pointer; position: relative; transition: 0.2s; }
        .compare-label input[type="checkbox"]:checked { background: #8b5cf6; border-color: #8b5cf6; }
        .compare-label input[type="checkbox"]:checked::after { content: '閴侊拷'; position: absolute; color: #fff; font-size: 10px; top: 50%; left: 50%; transform: translate(-50%, -50%); }

        .btn-details { background: transparent; color: #a1a1aa; border: none; padding: 6px 0; font-size: 0.8125rem; font-weight: 500; border-bottom: 1px solid transparent; cursor: pointer; }
        .btn-details:hover { color: #f4f4f5; border-bottom-color: #f4f4f5; }
        .btn-visit { background: #8b5cf6; color: #fff; border: none; padding: 6px 16px; border-radius: 6px; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
        .btn-visit:hover { background: #7c3aed; }

        /* 楠炲灝鎲￠崡锛勫 */
        .ad-card { grid-column: 1 / -1; background: linear-gradient(90deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.02) 100%); border: 1px dashed #8b5cf6; border-radius: 16px; padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; position: relative; }
        .ad-badge { position: absolute; top: -10px; left: 20px; background: #8b5cf6; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
        .ad-content { display: flex; align-items: center; gap: 1.5rem; }
        .ad-logo { width: 56px; height: 56px; background: #1e1b4b; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; color: #a78bfa; }
        .ad-text h3 { color: #f4f4f5; font-size: 1.1rem; margin-bottom: 0.25rem; }
        .ad-text p { color: #a1a1aa; font-size: 0.875rem; }

        /* 棣冨皞 閹剚璇炵€佃鐦弶鈩冪壉瀵骏绱欏鍝勫煑鐟曞棛娲婇敍宀娲婇敍宀勬Щ濄垼顫﹂悥鍓侀獓閺嶅嘲绱￠崥鍐╁竴閿涳拷 */
        #compare-bar { 
            display: none !important; /* 姒ǹ顓婚梾鎰妗 */
            position: fixed !important; 
            bottom: 30px !important; 
            left: 50% !important; 
            transform: translateX(-50%) !important; 
            background: rgba(15, 23, 42, 0.9) !important; 
            backdrop-filter: blur(10px) !important; 
            border: 1px solid #8b5cf6 !important; 
            padding: 12px 24px !important; 
            border-radius: 30px !important; 
            box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important; 
            z-index: 99999 !important; 
            align-items: center !important; 
            gap: 20px !important; 
            color: #f8fafc !important; 
            font-family: -apple-system, sans-serif !important;
        }
        /* 瑜帮拷 JS 閹跺﹤鐣弨閫涜礋 flex 閺冨墎鏁撻弫锟 */
        #compare-bar[style*="display: flex"] {
            display: flex !important;
        }
        #compare-bar button { 
            background: #8b5cf6 !important; 
            color: #fff !important; 
            border: none !important; 
            padding: 8px 16px !important; 
            border-radius: 20px !important; 
            cursor: pointer !important; 
            font-weight: bold !important; 
            font-size: 14px !important; 
        }
        #compare-bar button:hover { background: #7c3aed !important; }
        
                /* 棣冨皞 鐎瑰瞼绶ㄩ崚鍡涘崳銊︾壉瀵骏绱欏☉鍫ユ珟鐏忓繘绮﹂悙锟 + 閺嗘浼犻犻幐�愭尦閿涳拷 */
        .pagination {
            display: flex !important;
            padding-left: 0;
            list-style: none !important; /* 楠炲弶甯冿拷 */
            gap: 8px;
            margin: 0;
            flex-wrap: wrap;
            justify-content: center;
        }
        .pagination li {
            display: inline-block;
        }
        .pagination li a, 
        .pagination li span {
            display: block;
            padding: 8px 16px;
            color: #a1a1aa; 
            background: rgba(18, 18, 23, 0.6); 
            border: 1px solid rgba(139, 92, 246, 0.2); 
            border-radius: 8px;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
        }
        .pagination li a:hover {
            color: #fff;
            border-color: #8b5cf6;
            background: rgba(139, 92, 246, 0.15);
            box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
        }
        .pagination li.active span {
            color: #fff;
            background: #8b5cf6;
            border-color: #8b5cf6;
            box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
        }
        .pagination li.disabled span {
            color: #52525b;
            background: transparent;
            border-color: rgba(255, 255, 255, 0.05);
            cursor: not-allowed;
        }


/* ==========================================================
   RESPONSIVE (mobile-first tweaks) - added for narrow screens
   Breakpoints aligned with the existing grid rules
   (1200px -> 2 cols, 768px -> 1 col). Sidebar drawer is handled
   in front/sidebar, so only this page's own components are covered.
   ========================================================== */

/* Tablet range */
@media (max-width: 1024px) {
    .main-content { padding: 1.5rem 1.25rem 4rem 1.25rem; }
    .hero-block { padding: 1.75rem 1.5rem; }
    .hero-text h1 { font-size: 1.8rem; }
    .search-box { width: 320px; }
    .ad-card { padding: 1.25rem 1.5rem; }
}

/* Phone range */
@media (max-width: 768px) {
    /* hero: title + search stack vertically */
    .hero-block {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.5rem 1.25rem;
    }
    .hero-text h1 { font-size: 1.5rem; }
    .hero-text p { max-width: 100%; }
    /* search box fills the row */
    .search-box { width: 100%; }
    /* pricing tabs become a single horizontally scrollable row */
    .pricing-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .pricing-tab { flex: 0 0 auto; }
    /* ad card stacks vertically */
    .ad-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .ad-content { gap: 1rem; }
    /* tighter card padding */
    .tool-card { padding: 1.25rem; }
    /* pagination buttons a bit tighter */
    .pagination li a,
    .pagination li span { padding: 8px 12px; }
}

/* Small phone range */
@media (max-width: 480px) {
    .main-content { padding: 1rem 1rem 3.5rem 1rem; }
    .hero-text h1 { font-size: 1.35rem; }
    .search-box { padding: 4px 4px 4px 12px; }
    .search-box button { padding: 10px 16px; }
    /* floating compare bar spans the width, pinned to edges */
    #compare-bar {
        left: 12px !important;
        right: 12px !important;
        transform: none !important;
        width: auto !important;
        justify-content: space-between !important;
        gap: 10px !important;
        padding: 10px 16px !important;
        border-radius: 18px !important;
    }
    #compare-bar button {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}


/* ==========================================================
   ⚠️ 以下为本轮新增：手机端自适应补丁（category.css 版）
   —— 只影响 ≤1024px，宽屏（PC）表现与改造前完全一致。
   —— 抽屉本体与左右两栏转单栏的规则在母版 layout 的 <style> 里，
      这里只补「本页自有组件」和「必须在本文件里才能修掉的根因」。
   ========================================================== */

/* ★★ 根因修复（重要）★★
   上面 .page-wrapper 是 position: relative; z-index: 1，
   这会让它自己变成一个「层叠上下文」：侧边栏抽屉是它的子孙，
   抽屉的 z-index 写得再高，也只能在 .page-wrapper 这个盒子内部比大小，
   永远比不过挂在 body 下面的半透明遮罩 ——
   结果就是抽屉连同分类栏目被遮罩整块蒙黑、文字发虚（你截图那个现象）。
   窄屏把它退回普通静态定位、层级交还 auto，这个上下文就消失了，
   抽屉的 z-index 才能真正对全站生效。桌面端不受影响（仍走上面的规则）。 */
@media (max-width: 1024px) {
    .page-wrapper {
        position: static !important;
        z-index: auto !important;
    }

    /* 长工具名/长链接强制断行，避免单张卡片把网格撑破、出现横向滚动 */
    .main-content,
    .main-content * { overflow-wrap: anywhere; }

    /* iOS Safari 不支持 fixed 背景，会把整张星云背景拉伸变形 */
    body { background-attachment: scroll !important; }

    /* 卡片底部按钮区允许换行：Compare / Details / Visit 三个按钮不再挤出去 */
    .card-footer { flex-wrap: wrap; row-gap: 8px; }
    .card-footer .actions { flex-wrap: wrap; gap: 8px; }
    .compare-label { white-space: nowrap; }

    /* 分页：触控热区加大（≥40px 好点），并保持居中换行 */
    .pagination { gap: 6px; }
    .pagination li a,
    .pagination li span { min-width: 40px; text-align: center; }
}

/* 卡片网格：与上面主题原有节奏保持一致（≤1024 两列、≤768 单列）。
   这里显式写出来，是为了压住母版 <style> 里同区间的等价值，
   两处数值相同、不会互相打架。 */
@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .grid > * { min-width: 0; }
}
@media (max-width: 768px) {
    .grid { grid-template-columns: 1fr; }
}

/* 广告位在小屏占满整行，不跟卡片抢列 */
@media (max-width: 1024px) {
    .ad-card { grid-column: 1 / -1; }
}

/* 空状态（无搜索结果）：原来内联在模板里，改用 class 后必须在这里补样式，
   否则会丢居中与间距；桌面端与窄屏都需要，所以放在断点外。 */
.empty-state {
    text-align: center;
    padding: 4rem 0;
    color: #52525b;
}
.empty-state h2 { color: #f4f4f5; margin-bottom: 0.5rem; }
.empty-state .btn-back {
    display: inline-block;
    margin-top: 1rem;
    padding: 8px 18px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 8px;
    color: #a1a1aa;
}
.empty-state .btn-back:hover {
    color: #fff;
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
}

/* 分页外层容器：同样是从内联 style 改成 class 后补回来的 */
.pager-wrap {
    width: 100%;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}
