 :root {
            --primary-color: #009688;
            --text-dark: #333;
            --text-light: #666;
            --bg-gray: #f5f5f5;
            --white: #ffffff;
            --max-width: 640px; 
        }
        
        /* --- 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; }

        /* --- 3. 轮播图 --- */
        .hero-banner { position: relative; width: 100%; height: 0; padding-bottom: 50%; background: #ddd; overflow: hidden; }
        .hero-slides-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
        .hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; z-index: 1; }
        .hero-slide.active { opacity: 1; z-index: 2; }
        .hero-slide img { width: 100%; height: 100%; object-fit: cover; }
        .hero-indicators {
            position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 11; display: flex; gap: 6px;
        }
        .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; }
        
        /* 修改点：将 font-weight: bold 改为 font-weight: normal */
        .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; 
            /* 底部导航层级是 9999 */
            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-dialog {
            background: #f5f7fa; width: 85%; max-width: 340px; 
            border-radius: 16px; overflow: hidden;
            position: relative; animation: popIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        }
        .chat-dialog-close {
            position: absolute; top: 12px; right: 12px; 
            width: 24px; height: 24px; line-height: 24px; text-align: center;
            font-size: 20px; color: #fff; background: rgba(0,0,0,0.2);
            border-radius: 50%; z-index: 10; text-decoration: none;
        }
        .chat-dialog-img {
            height: 90px; background: linear-gradient(135deg, var(--primary-color), #00796b);
            display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
        }
        .chat-dialog-img::after { content: "咨询与预订热线"; font-size: 18px; font-weight: bold; letter-spacing: 1px; }
        .chat-dialog-btn-box { padding: 15px; max-height: 60vh; overflow-y: auto; }
        .chat-dialog-btn {
            display: flex; justify-content: space-between; align-items: center;
            background: #fff; padding: 12px 15px; margin-bottom: 10px;
            border-radius: 10px; text-decoration: none;
            box-shadow: 0 2px 5px rgba(0,0,0,0.03); transition: transform 0.1s;
        }
        .chat-dialog-btn:active { transform: scale(0.98); background: #f0f0f0; }
        .chat-dialog-btn .label { font-size: 13px; color: #666; display: flex; align-items: center; }
        .chat-dialog-btn .label svg { width: 16px; height: 16px; margin-right: 6px; fill: currentColor; }
        .J_telConsult { font-size: 16px; color: #333; font-weight: 600; font-family: Helvetica, Arial, sans-serif; }
        .chat-dialog-highlight { background: rgba(0, 150, 136, 0.1); border: 1px solid rgba(0, 150, 136, 0.3); }
        .chat-dialog-highlight .label { color: var(--primary-color); font-weight: bold; }
        .chat-dialog-highlight .J_telConsult { color: var(--primary-color); font-size: 18px; }
        .group-title { font-size: 12px; color: #999; margin: 10px 0 5px 5px; }

        /* Action Sheet (修改点：z-index 提高到 11000，解决被底部导航遮挡问题) */
        #action-sheet-mask { 
            position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
            background: rgba(0,0,0,0.5); 
            z-index: 11000; /* 原为 2100，现改为 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; }
        .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: scale(0.9); opacity: 0; } to { transform: scale(1); 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; }

        /* 提示框 - 修改点：z-index 提高到 12000，确保在最上层 */
        #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;
        }

        /* --- 9. 搜索弹窗样式 --- */
        .m_header_search {
            position: fixed; top: 50px; bottom: 0; left: 0; right: 0; margin: 0 auto; 
            width: 100%; max-width: 640px; background-color: #f7f8fa; z-index: 5000; 
            display: none;
            overflow-y: auto;
            overflow-x: hidden; 
            -webkit-overflow-scrolling: touch; 
            border-top: 1px solid #eee;
            overscroll-behavior: none;
        }
        .m_header_search.hide { display: none; }
        .m_header_search .search_bar { display: flex; align-items: center; padding: 8px 15px; background-color: #fff; border-bottom: 1px solid #f0f0f0; height: 50px; flex-shrink: 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; }
        .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; }
        .m_header_search .bottom-nav { z-index: 5001; }

        .search-result .list { padding: 0 10px; }


        /* --- 定制：搜索结果卡片 (.m-product-item) --- */
        .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%; text-decoration: none; }
        
        .item-top { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; overflow: hidden; }
        .item-top img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
        /* 图片遮罩，让白色文字更清晰 */
        .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;
        }

        /* 满意度/关注度悬浮 */
        .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-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; }
        .icon-tours { display: inline-block; width: 12px; height: 12px; background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M2 9c0 5 10 13 10 13s10-8 10-13a10 10 0 00-20 0z"/></svg>') no-repeat center/contain; margin-right: 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; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        .product-price-now em { font-size: 18px; font-style: normal; margin: 0 2px; }

        /* 搜索卡片下半部分 */
        .item-bottom { padding: 12px; background: #fff; }
        
        /* 修改点：将 font-weight: bold 改为 font-weight: normal */
        .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 { height: auto; margin: 0; }
        .m-product-item .product-tags .label {
            font-size: 10px; color: #009688; border: 1px solid rgba(0, 150, 136, 0.3);
            padding: 1px 5px; border-radius: 3px; margin-right: 4px; display: inline-block;
        }
        
        /* 底部 */
        .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;
}

/* 简单的淡入淡出动画类 (可选，配合 JS 使用) */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}