        /* ... 保持原有样式不变 ... */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        :root {
            --primary-color: #ff6b35;
            --primary-dark: #e55a2b;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --text-muted: #94a3b8;
            --bg-white: #ffffff;
            --bg-gray: #f8fafc;
            --border-color: #e2e8f0;
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --transition-fast: 0.15s ease;
            --transition-normal: 0.3s ease;
        }

        body {
            background: var(--bg-gray);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            overflow: hidden;
            height: 100vh;
        }

        

        @media (min-width: 768px) {
            body {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                display: flex;
                justify-content: center;
                align-items: center;
                min-height: 100vh;
                padding: 20px;
                overflow: auto;
            }
        }

        .app-container {
            width: 100%;
            background: var(--bg-gray);
            position: relative;
            display: flex;
            flex-direction: column;
            height: 100vh;
            overflow: hidden;
        }

        @media (min-width: 768px) {
            .app-container {
                max-width: 1200px;
                margin: 0 auto;
                border-radius: var(--radius-lg);
                overflow: hidden;
                box-shadow: var(--shadow-lg);
                height: 90vh;
                min-height: auto;
            }
        }

        /* ==================== 顶部导航栏 - 支持左右滑动 ==================== */
        .app-header {
            background: var(--bg-white);
            padding: 12px 16px;
            border-bottom: 1px solid var(--border-color);
            flex-shrink: 0;
            width: 100%;
        }

        /* 顶部栏容器 - 支持左右滑动 */
.header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    /* 启用横向滚动 */
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    /* 隐藏滚动条（但保留滚动功能） */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-bottom: 4px; /* 为滚动条预留空间，但隐藏 */
}
/* 隐藏滚动条（Chrome/Safari） */
.header-top::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* 每个子元素不收缩，保持完整显示 */
.header-top > * {
    flex-shrink: 0;
}

/* 位置选择器 - 不收缩 */
.location-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 搜索栏 - 占据剩余空间，但最小宽度保证可输入 */
.search-bar {
    flex: 1;
    min-width: 120px; /* 最小宽度，确保可输入 */
    display: flex;
    align-items: center;
    background: var(--bg-gray);
    border-radius: 30px;
    padding: 8px 12px;
    gap: 4px;
    position: relative;
    flex-shrink: 1; /* 允许收缩 */
}

.search-bar:focus-within {
    background: var(--bg-white);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.search-bar input {
    flex: 1;
    min-width: 60px;
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
}

/* 搜索、语音、扫码按钮 - 不收缩 */
.search-btn,
.voice-btn,
.scan-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.voice-btn:hover,
.scan-btn:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

/* 用户菜单按钮 - 不收缩 */
.user-menu-container {
    flex-shrink: 0;
}

/* 移动端优化 - 减小间距，让更多内容可见 */
@media (max-width: 480px) {
    .app-header {
        padding: 8px 12px;
    }
    
    .header-top {
        gap: 6px;
    }
    
    .location-selector {
        font-size: 12px;
        padding: 4px 6px;
    }
    
    .location-selector svg {
        width: 12px;
        height: 12px;
    }
    
    .search-bar {
        min-width: 80px;
        padding: 6px 8px;
    }
    
    .search-bar input {
        font-size: 13px;
        min-width: 40px;
    }
    
    .search-btn,
    .voice-btn,
    .scan-btn {
        width: 28px;
        height: 28px;
        padding: 4px;
    }
    
    .search-btn svg,
    .voice-btn svg,
    .scan-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* 极小屏幕优化 */
@media (max-width: 375px) {
    .app-header {
        padding: 6px 8px;
    }
    
    .header-top {
        gap: 4px;
    }
    
    .location-selector {
        font-size: 11px;
        padding: 3px 4px;
    }
    
    .search-bar {
        min-width: 60px;
        padding: 4px 6px;
        border-radius: 20px;
    }
    
    .search-bar input {
        font-size: 12px;
        min-width: 30px;
    }
    
    .search-btn,
    .voice-btn,
    .scan-btn {
        width: 24px;
        height: 24px;
        padding: 3px;
    }
    
    .search-btn svg,
    .voice-btn svg,
    .scan-btn svg {
        width: 12px;
        height: 12px;
    }
}

        .search-suggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--bg-white);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-lg);
            margin-top: 8px;
            z-index: 101;
            max-height: 300px;
            overflow-y: auto;
            display: none;
        }

        .suggestions-header {
            display: flex;
            justify-content: space-between;
            padding: 10px 12px;
            border-bottom: 1px solid var(--border-color);
            font-size: 12px;
            color: var(--text-muted);
        }

        .hot-keywords,
        .history-keywords {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 10px 12px;
        }

        .hot-tag {
            background: var(--bg-gray);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
            cursor: pointer;
        }

        .hot-tag:hover {
            background: var(--primary-color);
            color: white;
        }

        .category-nav {
            background: var(--bg-white);
            padding: 12px 0;
            overflow-x: auto;
            border-bottom: 1px solid var(--border-color);
            width: 100%;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .category-nav::-webkit-scrollbar {
            display: none;
        }

        .category-scroll {
            display: inline-flex;
            gap: 20px;
            padding: 0 16px;
            min-width: min-content;
        }

        .category-item {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            flex-shrink: 0;
        }

        .category-icon {
            width: 44px;
            height: 44px;
            background: var(--bg-gray);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            overflow: hidden;
        }

        .category-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .category-name {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .main-content {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .promotion-banner {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            padding: 16px;
            background: linear-gradient(135deg, #fff5f0, #fff0e6);
        }

        .promotion-item {
            background: var(--bg-white);
            border-radius: var(--radius-md);
            padding: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            box-shadow: var(--shadow-sm);
        }

        .promotion-icon {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: white;
            flex-shrink: 0;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px;
        }

        .section-header h2 {
            font-size: 18px;
            font-weight: 600;
            position: relative;
        }

        .section-header h2::before {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 30px;
            height: 3px;
            background: var(--primary-color);
        }

        .section-controls {
            display: flex;
            gap: 8px;
        }

        .section-controls button {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: 1px solid var(--border-color);
            background: var(--bg-white);
            cursor: pointer;
        }

        .new-products-scroll {
            overflow-x: auto;
            padding: 0 16px 16px;
            width: 100%;
        }

        .new-products-scroll::-webkit-scrollbar {
            height: 4px;
        }

        .new-products-wrapper {
            display: inline-flex;
            gap: 12px;
            min-width: min-content;
        }

        .new-product-card {
            width: 110px;
            flex-shrink: 0;
            background: var(--bg-white);
            border-radius: var(--radius-md);
            overflow: hidden;
            position: relative;
            cursor: pointer;
        }

        .new-product-img {
            width: 100%;
            height: 110px;
            object-fit: cover;
        }

        .new-product-verified {
            position: absolute;
            top: 6px;
            left: 6px;
            background: linear-gradient(135deg, #ff6b35, #e55a2b);
            color: white;
            font-size: 9px;
            padding: 2px 6px;
            border-radius: 12px;
            font-weight: 500;
            z-index: 5;
        }

        .new-product-info {
            padding: 8px;
        }

        .new-product-title {
            font-size: 12px;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .new-product-price {
            color: var(--primary-color);
            font-weight: 600;
            font-size: 13px;
        }

        .new-product-location {
            font-size: 10px;
            color: var(--text-muted);
            margin-top: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            padding: 16px;
        }

        @media (min-width: 768px) {
            .products-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 16px;
            }
        }

        @media (min-width: 1024px) {
            .products-grid {
                grid-template-columns: repeat(5, 1fr);
            }
        }

        .product-card {
            background: var(--bg-white);
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            cursor: pointer;
            position: relative;
        }

        .product-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-md);
        }

        .product-verified-badge {
            position: absolute;
            top: 8px;
            left: 8px;
            z-index: 10;
            background: linear-gradient(135deg, #ff6b35, #e55a2b);
            color: white;
            font-size: 10px;
            padding: 3px 8px;
            border-radius: 20px;
            font-weight: 500;
            white-space: nowrap;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        .product-img-wrapper {
            position: relative;
            width: 100%;
            aspect-ratio: 1;
        }

        .product-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .product-info {
            padding: 10px;
        }

        .product-title {
            font-size: 13px;
            font-weight: 500;
            margin-bottom: 6px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-height: 36px;
        }

        .product-price {
            color: var(--primary-color);
            font-weight: 600;
            font-size: 15px;
            margin-bottom: 6px;
        }

        /* 优惠价格显示样式 */
        .product-price-row {
            display: flex;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 4px;
            margin-bottom: 6px;
        }

        .original-price {
            font-size: 11px;
            color: #999;
            text-decoration: line-through;
        }

        .discount-badge {
            display: inline-block;
            background: #fff2e8;
            color: #ff6b35;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 12px;
        }

        .price-loading {
            display: inline-block;
            width: 50px;
            height: 16px;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading-shimmer 1.5s infinite;
            border-radius: 4px;
        }

        @keyframes loading-shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .product-card.has-discount {
            border-left: 2px solid #ff6b35;
        }

        .product-location {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 10px;
            color: var(--text-muted);
            background: var(--bg-gray);
            padding: 2px 8px;
            border-radius: 20px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }

        .bottom-nav {
            background: var(--bg-white);
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 8px 0;
            flex-shrink: 0;
        }

        @media (min-width: 768px) {
            .bottom-nav {
                justify-content: center;
                gap: 40px;
            }
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            text-decoration: none;
            color: var(--text-muted);
            font-size: 11px;
            position: relative;
            padding: 4px 12px;
        }

        .nav-item.active {
            color: var(--primary-color);
        }

        .nav-icon {
            width: 22px;
            height: 22px;
        }

        .nav-item .badge {
            position: absolute;
            top: -4px;
            right: 50%;
            transform: translateX(50%);
            background: #e53e3e;
            color: white;
            font-size: 10px;
            padding: 2px 5px;
            border-radius: 10px;
        }

        .publish-center {
            position: relative;
            top: -15px;
        }

        .publish-center .nav-icon {
            width: 28px;
            height: 28px;
            background: var(--primary-color);
            border-radius: 50%;
            padding: 6px;
            stroke: white;
        }

        .loading-spinner {
            text-align: center;
            padding: 40px;
            color: var(--text-muted);
        }

        .loading-spinner::after {
            content: '';
            display: inline-block;
            width: 24px;
            height: 24px;
            border: 2px solid var(--border-color);
            border-top-color: var(--primary-color);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-left: 8px;
            vertical-align: middle;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .load-more-trigger {
            height: 20px;
            margin: 10px 0;
        }

        .search-toast {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 30px;
            font-size: 14px;
            z-index: 1000;
            white-space: nowrap;
        }

        /* 区域选择弹窗样式 */
        .region-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 200;
            display: flex;
            align-items: center;
            justify-content: center;
            display: none;
        }

        .region-modal.show {
            display: flex;
        }

        .region-modal-content {
            background: white;
            border-radius: 16px;
            width: 90%;
            max-width: 500px;
            max-height: 80%;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .region-modal-header {
            padding: 16px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .region-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
        }

        .region-selector {
            display: flex;
            flex: 1;
            overflow: hidden;
        }

        .region-level {
            flex: 1;
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .region-level:last-child {
            border-right: none;
        }

        .region-level-title {
            padding: 12px;
            background: var(--bg-gray);
            font-size: 13px;
            font-weight: 500;
            text-align: center;
            border-bottom: 1px solid var(--border-color);
        }

        .region-level-list {
            flex: 1;
            overflow-y: auto;
            max-height: 300px;
            min-height: 200px;
        }

        .region-item {
            padding: 12px 16px;
            cursor: pointer;
            font-size: 14px;
            text-align: center;
        }

        .region-item:hover {
            background: var(--bg-gray);
        }

        .region-item.active {
            color: var(--primary-color);
            background: rgba(255, 107, 53, 0.1);
            font-weight: 500;
        }

        .region-modal-footer {
            padding: 12px 16px;
            border-top: 1px solid var(--border-color);
        }

        .region-confirm-btn {
            width: 100%;
            padding: 12px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
        }

        .region-loading {
            text-align: center;
            padding: 20px;
            color: #999;
        }

        .voice-content {
            text-align: center;
            padding: 40px;
        }

        .voice-animation {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            height: 100px;
            margin-bottom: 20px;
        }

        .voice-wave {
            width: 8px;
            height: 40px;
            background: var(--primary-color);
            border-radius: 4px;
            animation: wave 0.8s ease-in-out infinite;
        }

        .voice-wave:nth-child(2) {
            animation-delay: 0.2s;
            height: 60px;
        }

        .voice-wave:nth-child(3) {
            animation-delay: 0.4s;
            height: 80px;
        }

        @keyframes wave {

            0%,
            100% {
                transform: scaleY(1);
            }

            50% {
                transform: scaleY(1.5);
            }
        }

        .voice-cancel,
        .scan-cancel {
            margin-top: 20px;
            padding: 10px 24px;
            background: var(--bg-gray);
            border: none;
            border-radius: 20px;
            cursor: pointer;
        }

        .scan-content {
            text-align: center;
        }

        .scan-area {
            position: relative;
            width: 250px;
            height: 250px;
            margin: 20px auto;
            background: #000;
            overflow: hidden;
            border-radius: var(--radius-md);
        }

        .scan-frame {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border: 2px solid var(--primary-color);
            box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.5);
        }

        .scan-line {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--primary-color);
            animation: scan 2s linear infinite;
        }

        @keyframes scan {
            0% { top: 0; }
            100% { top: 100%; }
        }

        /* 消息提示音控制按钮样式 */
        .sound-control {
            position: fixed;
            bottom: 80px;
            right: 16px;
            width: 44px;
            height: 44px;
            background: var(--bg-white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-md);
            cursor: pointer;
            z-index: 150;
            transition: all var(--transition-fast);
        }

        .sound-control:hover {
            transform: scale(1.05);
        }

        .sound-control.muted {
            opacity: 0.6;
        }

        @media (min-width: 768px) {
            .sound-control {
                bottom: 100px;
                right: 30px;
            }
        }