       :root {
            --primary-color: #009688;
            --text-dark: #333;
            --text-light: #666;
            --bg-gray: #f5f5f5;
            --white: #ffffff;
            --max-width: 640px; 
            --header-height: 50px;
        }
        
        /* 1. 基础重置 */
        * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
        html { -webkit-text-size-adjust: 100%; overflow-x: hidden; width: 100%;}
        body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif; background-color: #e0e0e0; font-size: 16px; color: #333; overflow-x: hidden; width: 100%;}
        a { text-decoration: none; color: inherit; }
        ul, li { list-style: none; margin: 0; padding: 0; }
        img { width: 100%; height: auto; object-fit: cover; display: block; }
        
        #app-container {
            max-width: var(--max-width); margin: 0 auto; background-color: var(--bg-gray);
            min-height: 100vh; position: relative; box-shadow: 0 0 20px rgba(0,0,0,0.1); padding-bottom: 60px;
        }

        .clearfix::after { content: ""; display: block; clear: both; }

        /* 2. 顶部 Header (首页) */
        .header {
            position: fixed; top: 0; z-index: 5100;
            height: 50px; width: 100%; max-width: var(--max-width);
            left: 0; right: 0; margin: 0 auto;
            background: var(--primary-color);
            padding: 8px 15px; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
        }
        .header-spacer { height: 50px; width: 100%; }
        .search-bar {
            width: 100%; height: 34px; background: #ffffff; border-radius: 17px; padding: 0 15px;
            color: #999; font-size: 16px; display: flex; align-items: center; justify-content: center;
            cursor: pointer;
        }
        .search-icon { margin-right: 6px; display: flex; align-items: center; }

        .indicator { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.6); cursor: pointer; transition: all 0.3s; }
        .indicator.active { background: var(--primary-color); width: 14px; border-radius: 4px; }

        /* 4. 导航 Grid */
        .nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px 10px; padding: 20px 10px; background: var(--white); margin-bottom: 10px; }
        .nav-item { display: flex; flex-direction: column; align-items: center; font-size: 14px; color: var(--text-dark); }
        .nav-icon {
            width: 45px; height: 45px; border-radius: 50%; background: #f0f9f8; margin-bottom: 6px;
            display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--primary-color);
        }

        /* 5. 栏目标题美化 */
        .section-title {
            display: flex; justify-content: space-between; align-items: center;
            padding: 12px 15px; margin-top: 15px; margin-bottom: 15px;
            background: linear-gradient(90deg, rgba(0, 150, 136, 0.12) 0%, rgba(255, 255, 255, 1) 80%);
            border-left: 5px solid var(--primary-color); border-radius: 4px 0 0 4px;
        }
        .section-title span {
            font-size: 17px; font-weight: bold; color: #333;
            display: flex; align-items: center; text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
        }
        .section-more {
            font-size: 12px; color: #009688; background: #fff;
            padding: 4px 12px; border-radius: 20px; box-shadow: 0 1px 3px rgba(0, 150, 136, 0.15);
            display: flex; align-items: center; text-decoration: none;
        }
        .section-more:active { background-color: #f0f0f0; transform: scale(0.95); }

        /* 6. 首页产品列表 */
        .product-list {
            display: flex; flex-wrap: wrap; padding: 0 6px; justify-content: space-between;
        }
        .product-card {
            width: 49%; background: #fff; border-radius: 8px; overflow: hidden;
            margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            text-decoration: none; display: flex; flex-direction: column;
            transition: transform 0.2s;
        }
        .product-img-box {
            position: relative; width: 100%; height: 0; padding-bottom: 66.66%;
            background: #eee; overflow: hidden;
        }
        .product-img-box img {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            object-fit: cover; transition: transform 0.3s ease;
        }
        .tag {
            position: absolute; top: 0; left: 0;
            background: linear-gradient(135deg, #ff9a00, #ff5700);
            color: #fff; padding: 3px 8px; font-size: 11px;
            border-bottom-right-radius: 8px; z-index: 2;
        }
        .product-info { padding: 10px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
        
        .product-title {
            font-size: 12px; color: #333; font-weight: normal; line-height: 1.4;
            margin: 0 0 6px 0;
            height: 35px; overflow: hidden; text-overflow: ellipsis;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
        }
        .product-tags { margin-bottom: 8px; height: 18px; overflow: hidden; }
        .p-tag { font-size: 12px; color: #888; display: block; line-height: 1.4;}
        .product-price-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
        .price { color: #ff4400; font-size: 18px; font-weight: bold; }
        .price small { font-size: 12px; margin-right: 2px; }
        .sales-count { font-size: 11px; color: #999; margin-bottom: 3px; }
        
        .lazy { opacity: 0; transition: opacity 0.5s; }
        .loaded { opacity: 1; }

        /* 7. 底部导航 */
        .bottom-nav {
            position: fixed; 
            bottom: 0; 
            width: 100%; 
            max-width: var(--max-width); 
            left: 0; 
            right: 0; 
            margin: 0 auto; 
            background: var(--white); 
            height: 60px; 
            border-top: 1px solid #eee; 
            display: flex; 
            align-items: center; 
            justify-content: space-around; 
            z-index: 9999;
            padding-bottom: constant(safe-area-inset-bottom);
            padding-bottom: env(safe-area-inset-bottom);
            box-sizing: content-box;
            
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
            backface-visibility: hidden;
        }
        .tab-item { 
            flex: 1; 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            color: var(--text-light); 
            font-size: 12px; 
            height: 100%; 
            justify-content: center;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }
        .tab-item.active { color: var(--primary-color); }
        .tab-icon { height: 24px; width: 24px; display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
        .tab-icon svg { width: 22px; height: 22px; }

        /* 8. 弹窗与组件 */
        .chat-mask {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6); z-index: 2000;
            display: none; align-items: center; justify-content: center;
            backdrop-filter: blur(2px);
        }
        
        /* 电话弹窗新样式适配 */
        .chat-card {
            background: #ffffff; width: 85%; max-width: 360px;
            border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            overflow: hidden; position: absolute; top: 50%; left: 50%;
            transform: translate(-50%, -50%); padding-bottom: 20px;
            animation: popIn 0.3s ease forwards; z-index: 2001;
        }
        .chat-header { text-align: center; padding: 15px 5px 10px 5px; background: #fff; }
        .chat-logo { max-width: 100%; height: auto; display: block; margin: 0 auto; }
        .chat-body { padding: 0 15px; max-height: 70vh; overflow-y: auto; }
        .group-label { font-size: 12px; color: #999; margin: 10px 0 8px 5px; font-weight: 600; letter-spacing: 0.5px; }
        .contact-btn {
            display: flex; justify-content: space-between; align-items: center;
            background-color: #f7f8fa; padding: 5px 5px; border-radius: 10px;
            margin-bottom: 10px; text-decoration: none; color: #333;
            transition: all 0.2s; border: 1px solid transparent;
        }
        .contact-btn:active { background-color: #eef0f4; transform: scale(0.98); }
        .contact-btn.highlight { background-color: #ebf5ff; border: 1px solid #d1e9ff; }
        .contact-btn.highlight .phone-num { color: #0066cc; font-weight: bold; }
        .btn-left { display: flex; align-items: center; font-size: 14px; color: #555; }
        .btn-left svg { margin-right: 8px; color: #666; }
        .phone-num { font-size: 15px; font-weight: 600; color: #333; }
        .popup-company-name { font-size: 16px; font-weight: bold; color: #333; margin-top: 10px; text-align: center; letter-spacing: 1px; }

        /* Action Sheet */
        #action-sheet-mask { 
            position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
            background: rgba(0,0,0,0.5); 
            z-index: 11000; 
            display: none; 
        }
        .action-sheet { position: absolute; bottom: 0; left: 0; width: 100%; background: #f0f0f0; border-top-left-radius: 12px; border-top-right-radius: 12px; overflow: hidden; animation: slideUp 0.3s; padding-bottom: calc(20px + constant(safe-area-inset-bottom)); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
        .action-title { padding: 15px; text-align: center; font-size: 14px; color: #999; background: #fff; border-bottom: 1px solid #eee; }
        .action-btn { display: block; width: 100%; padding: 15px; text-align: center; background: #fff; font-size: 18px; border: none; border-bottom: 1px solid #eee; color: #333; }
        .action-btn:active { background: #f9f9f9; }
        .action-cancel { margin-top: 6px; border-bottom: none; }

        /* 动画 */
        @keyframes popIn { from { transform: translate(-50%, -40%); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
        @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

        /* 分类弹窗 */
        #category-popup {
            position: fixed; top: 50px; left: 50%; transform: translateX(-50%) translateY(-150%);
            width: 100%; max-width: 640px; background: #fff; z-index: 99;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.4s ease-in-out;
            max-height: 80vh; overflow-y: auto;
        }
        #category-popup.show { transform: translateX(-50%) translateY(0); }
        #category-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 98; display: none; }
        .menu-list { padding: 15px 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
        .menu-list li a { display: block; background: #f8f8f8; border-radius: 4px; padding: 8px 0; color: #333; }
        .menu-list li a h3 { margin: 0; font-size: 14px; font-weight: normal; }

        /* 提示框 */
        #toast { 
            position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); 
            background: rgba(0,0,0,0.8); color: white; padding: 15px 25px; 
            border-radius: 8px; font-size: 16px; 
            z-index: 12000; 
            display: none; 
            text-align: center; line-height: 1.5;
        }
        
        /* 底部 */
        .site-footer { text-align: center; font-size: 12px; color: #999; padding: 20px 0; padding-bottom: 70px; line-height: 1.8; background-color: #f8f8f8; }
        .site-footer p { margin: 0; }
        .gongan-link { display: inline-flex; align-items: center; justify-content: center; color: #999; text-decoration: none; }
        .gongan-link img { width: 20px; height: 20px; margin-right: 5px; }

        /* 返回顶部 */
        .back-to-top-btn {
            position: fixed; 
            bottom: 150px; 
            right: 15px; 
            width: 45px; height: 45px;
            background-color: rgba(255, 255, 255, 0.95); border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,0.25);
            text-align: center; line-height: 45px; z-index: 2147483647; cursor: pointer; border: 1px solid #ddd; display: none;
        }
        #lim_mobile_chat { display: none !important; }
        #InviteWindow { display: none !important; }
        /* 基础隐藏类 */
        .hide { display: none !important; }

        /* 简单的淡入淡出动画类 */
        .fade-in { animation: fadeIn 0.3s ease-in-out; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        /* 替换后的搜索功能样式 */
        .m_header_search {
            top: 0; 
            max-width: var(--max-width);
            background-color: #f7f8fa;
            z-index: 6000; 
            display: none;
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
            border-top: 1px solid #eee;
            overscroll-behavior: none;
            right: 0;
            margin: 0 auto;
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        .m_header_search.hide { display: none; }
        
        .m_header_search .search_bar {
            position: sticky;
            top: 0;
            z-index: 10;
            width: 100%;
            display: flex;
            align-items: center;
            padding: 8px 15px;
            background-color: #fff;
            border-bottom: 1px solid #f0f0f0;
            height: var(--header-height);
            flex-shrink: 0;
            border-radius: 0;
        }
        
        .m_header_search .search_cancel { font-size: 15px; color: #666; margin-right: 12px; cursor: pointer; white-space: nowrap; }
        .m_header_search .search_main { flex: 1; display: flex; align-items: center; background-color: #f0f2f5; border-radius: 20px; padding: 0 12px; height: 36px; position: relative; }
        .m_header_search .search_lanmu { font-size: 14px; color: #333; padding-right: 10px; border-right: 1px solid #ddd; margin-right: 10px; white-space: nowrap; font-weight: 500; }
        .m_header_search .J_hs-input { flex: 1; border: none; background: transparent; outline: none; font-size: 14px; color: #333; height: 24px; min-width: 0; }
        .m_header_search .search_button button { border: none; background: none; font-size: 18px; color: var(--primary-color); padding: 0; margin-left: 5px; display: flex; align-items: center; }
        .search_lanmu_area { background: #fff; padding: 15px; margin-bottom: 10px; }
        .search_lanmu_area .title { font-size: 15px; font-weight: bold; color: #333; margin-top: 5px; margin-bottom: 12px; padding-left: 8px; border-left: 4px solid var(--primary-color); line-height: 1; }
        .search_lanmu_list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 5px; }
        .search_lanmu_list li { background: #fff; text-align: center; padding: 8px 0; border-radius: 6px; font-size: 13px; color: #555; cursor: pointer; border: 1px solid #f0f0f0; transition: all 0.2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .search_lanmu_list li.active { background: rgba(0, 150, 136, 0.08); color: var(--primary-color); border-color: var(--primary-color); font-weight: bold; }
        .m_header_search .gundong { padding-bottom: 90px; }
        .search-result .list { padding: 0 10px; }

        /* 搜索联想样式 */
        .search-suggestions {
            position: fixed; 
            top: 50px; 
            left: 0; right: 0; bottom: 0;
            background: #ffffff; 
            z-index: 6100;
            padding: 0; display: block; 
            overflow-y: auto; max-width: 640px; margin: 0 auto; border-top: 1px solid #eee;
        }
        .search-suggestions.hide { display: none; }
        .suggestion-item {
            width: 100%; height: 48px; margin: 0; padding: 0 15px;
            background: #fff; border-radius: 0; border-bottom: 1px solid #f5f5f5;
            font-size: 15px; color: #333; text-align: left;
            cursor: pointer; display: flex; align-items: center; justify-content: space-between; 
            transition: background-color 0.2s;
        }
        .suggestion-item:active { background-color: #f2f2f2; }
        .sugg-left { display: flex; align-items: center; overflow: hidden; flex: 1; }
        .sugg-icon { margin-right: 12px; color: #999; display: flex; align-items: center; }
        .sugg-icon svg { width: 16px; height: 16px; }
        .sugg-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
        .sugg-arrow { color: #ccc; display: flex; align-items: center; margin-left: 10px; }
        .sugg-arrow svg { width: 14px; height: 14px; }
        .suggestion-item:first-child { background-color: #fff; color: #333; font-weight: normal; border: none; border-bottom: 1px solid #f5f5f5; }

        .search-load-btn{display:none;margin:15px 10px 25px 10px;padding:10px;background-color:#fff;color:#666;text-align:center;border-radius:6px;font-size:14px;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,0.1)}
        .search-load-btn:active{background-color:#f0f0f0}
        #schpage{display:none!important}

        /* 搜索结果卡片样式 */
        .m-product-item{background:#fff;border-radius:8px;overflow:hidden;margin-bottom:15px;box-shadow:0 2px 8px rgba(0,0,0,0.04);display:flex;flex-direction:column;position:relative}
        .m-product-item>a{display:block;width:100%}
        .item-top{position:relative;width:100%;height:0;padding-bottom:56.25%;overflow:hidden}
        .item-top::after{content:'';position:absolute;bottom:0;left:0;width:100%;height:40%;background:linear-gradient(to top,rgba(0,0,0,0.6),transparent);pointer-events:none;z-index:1}
        .item-top img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
        .item-bottom{padding:12px;background:#fff}
        .m-product-item .product-title{font-size:16px;color:#333;font-weight:normal;line-height:1.4;margin:0 0 6px 0;height:auto;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
        .product-describe{font-size:12px;color:#666;line-height:1.5;margin:0 0 8px 0; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
        .m-product-item .product-tags .label{font-size:10px;color:var(--primary-color);border:1px solid rgba(0,150,136,0.3);padding:1px 5px;border-radius:3px;margin-right:4px;display:inline-block}
        .sati-peo{position:absolute;top:10px;left:10px;z-index:2;display:flex;gap:5px}
        .sati-peo div{background:rgba(0,0,0,0.5);color:#fff;font-size:10px;padding:2px 6px;border-radius:4px;backdrop-filter:blur(2px)}
        .product-price{position:absolute;bottom:8px;left:10px;z-index:2}
        .product-price-now{font-size:12px;color:#fff;font-weight:bold;background:#ff5722;padding:2px 10px;border-radius:12px;display:inline-block}
        .product-price-now em{font-size:18px;font-style:normal;margin:0 2px}
        .product-extra{position:absolute;bottom:45px;left:10px;z-index:2;color:#fff;font-size:11px;display:flex;align-items:center;text-shadow:0 1px 2px rgba(0,0,0,0.5)}
        .product-extra .separator{margin:0 5px}