        html {
            -webkit-text-size-adjust: 100% !important;
            text-size-adjust: 100% !important;
            -ms-text-size-adjust: 100% !important;
            -moz-text-size-adjust: 100% !important;
            height: 100vh;
            height: -webkit-fill-available;
            font-size: 16px !important;
        }
        html, body, div, p, span, a, h1, h2, h3, h4, h5, h6, button, input, textarea, select, label, li, td, th {
            -webkit-text-size-adjust: none !important;
            text-size-adjust: none !important;
            -ms-text-size-adjust: none !important;
            -moz-text-size-adjust: none !important;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-text-size-adjust: 100% !important;
            text-size-adjust: 100% !important;
            -ms-text-size-adjust: 100% !important;
            -moz-text-size-adjust: 100% !important;
            max-height: 999999px;
        }
        
        :root {
            --primary-color: #1B3B2B;
            --accent-color: #D4845A;
            --bg-overlay: rgba(27, 59, 43, 0.5);
            --card-bg: rgba(255, 255, 255, 0.95);
            --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.04);
            --shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.12);
            --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.15);
            --bottom-menu-height: 70px;
            --border-radius-base: 20px;
            --border-radius-sm: 18px;
            --border-radius-lg: 24px;
            --border-radius-xl: 28px;
            --border-radius-xxl: 36px;
            --border-radius-circle: 50%;
            --border-radius-pill: 40px;
            --border-radius-large-pill: 60px;
        }
        
html, body { height: 100%; margin: 0; padding: 0; }
body { background: #f3efe8; }
        
        body { 
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
            font-display: swap;
            -webkit-text-size-adjust: none; -moz-text-size-adjust: none; -ms-text-size-adjust: none; text-size-adjust: none;
            background: #F5F0E8; max-width: 100%; margin: 0 auto;
            padding-top: 0;
            padding-top: constant(safe-area-inset-top);
            padding-top: env(safe-area-inset-top);
            padding-bottom: calc(88px + env(safe-area-inset-bottom));
            min-height: 100vh; min-height: -webkit-fill-available;
        }
        @media (min-width: 1200px) { body { max-width: 1200px; box-shadow: 0 0 30px rgba(0,0,0,0.05); } }
        
        .app-wrapper { flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
        .app-wrapper.blur-active { filter: blur(4px); }
        .main-content { flex: 1; width: 100%; display: flex; flex-direction: column; }
        
        .hero-section { 
            position: relative; 
            width: 100%; 
            background: transparent;
            flex-shrink: 0; 
            transition: height 0.3s ease; 
            border-radius: 0px 0px 0 0 !important; 
            overflow: hidden; 
        }
        
        @media (max-width: 1024px) { .hero-section { -webkit-overflow-scrolling: touch; } }
        .bottom-wrapper { width: 100%; margin-top: auto; padding-bottom: 100px; }
        .hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-overlay); transition: background-color 0.3s ease, opacity 0.3s ease; pointer-events: none; z-index: 2; }
        .hero-content { position: relative; z-index: 3; display: flex; flex-direction: column; height: 100%; width: 100%; }
        .hero-rich-text {
            display: flex !important;
            flex-direction: column !important;
            padding: 20px !important;
            width: 100% !important;
            height: 100% !important;
            word-wrap: break-word !important;
            overflow-wrap: break-word !important;
            color: #ffffff;
        }
        .hero-rich-text * {
            max-width: 100%;
            word-wrap: break-word;
            overflow-wrap: break-word;
            color: inherit;
        }
        .hero-rich-text div {
            display: block;
            margin: 0;
            padding: 0;
            line-height: 1.6;
            min-height: 1em;
        }
        .hero-rich-text p {
            margin: 0 0 0.5em 0;
            padding: 0;
            line-height: 1.6;
        }
        .hero-rich-text br {
            line-height: 1.6;
        }
        .hero-rich-text.align-top-left, .hero-rich-text.top-left { justify-content: flex-start !important; align-items: flex-start !important; }
        .hero-rich-text.align-top-left *, .hero-rich-text.top-left * { text-align: left !important; }
        .hero-rich-text.align-top-center, .hero-rich-text.top-center { justify-content: flex-start !important; align-items: center !important; }
        .hero-rich-text.align-top-center *, .hero-rich-text.top-center * { text-align: center !important; }
        .hero-rich-text.align-top-right, .hero-rich-text.top-right { justify-content: flex-start !important; align-items: flex-end !important; }
        .hero-rich-text.align-top-right *, .hero-rich-text.top-right * { text-align: right !important; }
        .hero-rich-text.align-middle-left, .hero-rich-text.middle-left { justify-content: center !important; align-items: flex-start !important; }
        .hero-rich-text.align-middle-left *, .hero-rich-text.middle-left * { text-align: left !important; }
        .hero-rich-text.align-middle-center, .hero-rich-text.middle-center { justify-content: center !important; align-items: center !important; }
        .hero-rich-text.align-middle-center *, .hero-rich-text.middle-center * { text-align: center !important; }
        .hero-rich-text.align-middle-right, .hero-rich-text.middle-right { justify-content: center !important; align-items: flex-end !important; }
        .hero-rich-text.align-middle-right *, .hero-rich-text.middle-right * { text-align: right !important; }
        .hero-rich-text.align-bottom-left, .hero-rich-text.bottom-left { justify-content: flex-end !important; align-items: flex-start !important; }
        .hero-rich-text.align-bottom-left *, .hero-rich-text.bottom-left * { text-align: left !important; }
        .hero-rich-text.align-bottom-center, .hero-rich-text.bottom-center { justify-content: flex-end !important; align-items: center !important; }
        .hero-rich-text.align-bottom-center *, .hero-rich-text.bottom-center * { text-align: center !important; }
        .hero-rich-text.align-bottom-right, .hero-rich-text.bottom-right { justify-content: flex-end !important; align-items: flex-end !important; }
        .hero-rich-text.align-bottom-right *, .hero-rich-text.bottom-right * { text-align: right !important; }
        .hero-rich-text * { max-width: 100%; word-wrap: break-word; overflow-wrap: break-word; }
        .hero-rich-text br { display: inline; }
        .hero-rich-text p { margin-bottom: 10px; width: 100%; word-wrap: break-word; }
        .hero-rich-text h1, .hero-rich-text h2, .hero-rich-text h3, .hero-rich-text h4, .hero-rich-text h5, .hero-rich-text h6 { width: 100%; word-wrap: break-word; }
        .hero-rich-text img { max-width: 100%; max-height: 180px; width: auto; height: auto; object-fit: contain; border-radius: var(--border-radius-lg); display: block; margin: 6px auto; }
        /* ★ 公告栏 / 弹窗 / 通用富文本图片自适应 */
        .announcement-bar img,
        .popup-text img,
        .description img,
        .member-benefits img,
        .member-guest img {
            max-width: 100% !important;
            height: auto !important;
            display: block;
            border-radius: 12px;
            margin: 8px auto;
        }
        .hero-rich-text h1, .hero-rich-text h2 { font-size: clamp(24px, 5vw, 48px); margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,0.2); line-height: 1.2; }
        .hero-rich-text p { opacity: 0.95; text-shadow: 0 1px 4px rgba(0,0,0,0.2); }
        
        .user-card-outside { background: transparent; padding: 0 7px; margin-top: -56px; margin-bottom: 7px; position: relative; z-index: 10; }
.user-card { background: #fff; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--border-radius-base); padding: 0; width: 100%; margin: 0 auto; box-shadow: none; border: none; transition: transform 0.2s ease; overflow: hidden; } .user-card .user-card-flex { padding: 14px 12px; } .user-card .user-card-login { padding: 14px 12px 16px; }
.user-card:hover { box-shadow: none; }
        .user-card-login { text-align: center; }
.login-btn-large { background: var(--primary-color); color: white; border: none; padding: 14px 30px; border-radius: var(--border-radius-pill); font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: none; width: 100%; transition: all 0.2s; }
        .login-btn-large:active { transform: scale(0.98); box-shadow: 0 3px 8px rgba(0,0,0,0.1); }
        .user-card-flex { display: flex; align-items: center; justify-content: space-between; }
        .user-info-container { display: flex; align-items: center; gap: 10px; position: relative; cursor: pointer; flex: 1; }
        .user-avatar-wrapper { position: relative; flex-shrink: 0; }
        .user-avatar-large { width: 64px; height: 64px; border-radius: var(--border-radius-circle); object-fit: cover; border: 3px solid white; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
        .user-avatar-placeholder-large { width: 64px; height: 64px; border-radius: var(--border-radius-circle); background: var(--primary-color); display: flex; align-items: center; justify-content: center; color: white; font-size: 32px; border: 3px solid white; }
        .message-badge { position: absolute; top: -2px; right: -2px; width: auto; min-width: 16px; height: 16px; padding: 0 3px; border-radius: var(--border-radius-circle); border: 2px solid white; display: none; align-items: center; justify-content: center; color: white; font-size: 10px; font-weight: bold; background: #ef4444; }
        .message-badge.has-unread { background: #ef4444; }
        .message-badge.no-unread { background: #9ca3af; }
        .user-details { flex: 1; }
        .user-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; overflow: visible; }
        .user-nickname { font-weight: 700; font-size: 20px; color: #1a1a1a; position: relative; z-index: 999; background: inherit; padding: 2px 8px; border-radius: 4px; word-break: break-all; }
.user-level { 
    background: var(--accent-color); 
    color: white; 
    padding: 2px 10px; 
    border-radius: 40px;  /* 固定大圆角，不再受后台控制 */
    font-size: 11px; 
    font-weight: 600; 
    white-space: nowrap; 
}
        .user-assets { display: flex; gap: 20px; flex-wrap: wrap; }
        .user-asset-item { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #4a5a6a; }
        .user-asset-item span:first-child { font-weight: 600; color: var(--primary-color); }
.admin-center-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; background: var(--primary-color); color: white; border: none; border-radius: var(--border-radius-pill); font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: none; transition: all 0.2s; white-space: nowrap; margin-left: 12px; flex-shrink: 0; }
.bind-wechat-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; background: linear-gradient(135deg, #07C160 0%, #06AD56 100%); color: white; border: none; border-radius: var(--border-radius-pill); font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: none; transition: all 0.2s; white-space: nowrap; margin-left: 12px; flex-shrink: 0; }
.member-center-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; background: linear-gradient(135deg, var(--primary-color) 0%, #2a5a3a 100%); color: white; border: none; border-radius: var(--border-radius-pill); font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: none; transition: all 0.2s; white-space: nowrap; margin-left: 12px; flex-shrink: 0; }
        .cart-badge-header { position: absolute; top: -8px; right: -8px; background: #f44336; color: white; border-radius: 50%; min-width: 20px; height: 20px; font-size: 11px; font-weight: 700; display: none; align-items: center; justify-content: center; border: 2px solid white; }

        .popup-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 99999; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
        .popup-modal.show { display: flex; opacity: 1; }
        .popup-wrapper { position: relative; width: 90%; max-width: 400px; max-height: 70vh; }
        .popup-content { background: white; border-radius: var(--border-radius-base) !important; padding: 24px 20px; width: 100%; max-height: 70vh; overflow-y: auto; box-shadow: var(--shadow-heavy); transform: scale(0.95); transition: transform 0.3s ease; scrollbar-width: thin; scrollbar-color: #c0c0c0 #f0f0f0; }
        .popup-modal.show .popup-content { transform: scale(1); }
        .popup-close { position: absolute; top: -12px; right: -12px; width: 36px; height: 36px; border-radius: 50% !important; background: white; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 22px; color: #666; box-shadow: 0 4px 12px rgba(0,0,0,0.15); border: 1px solid rgba(0,0,0,0.05); transition: all 0.2s ease; z-index: 10; }
        .popup-image { width: 100%; border-radius: var(--border-radius-base) !important; margin-bottom: 16px; object-fit: cover; display: block; }
        .popup-text { color: #333; line-height: 1.4; }
        
        .login-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 100000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
        .login-modal.show { display: flex; opacity: 1; }
.login-card { background: white; border-radius: var(--border-radius-base); padding: 36px 28px 28px; width: 90%; max-width: 420px; box-shadow: none; transform: scale(0.95); transition: transform 0.3s ease; margin: 20px; overflow: visible; max-height: none; }
        .login-modal.show .login-card { transform: scale(1); }
        .login-tabs { display: flex; margin-bottom: 30px; background: #f5f7fa; border-radius: 60px; padding: 4px; }
        .login-tab { flex: 1; text-align: center; padding: 12px; cursor: pointer; color: #666; font-weight: 600; border-radius: 60px; transition: all 0.2s; }
        .login-tab.active { background: white; color: var(--primary-color); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
        .login-form-item { margin-bottom: 22px; }
        .login-form-item input { width: 100%; padding: 16px 20px; border: 1.5px solid #e8e8e8; border-radius: var(--border-radius-lg); font-size: 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; background: #fafbfc; }
        .login-form-item input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(27,59,43,0.1); }
.login-submit { width: 100%; padding: 16px; background: var(--primary-color); color: white; border: none; border-radius: var(--border-radius-pill); font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: none; transition: all 0.2s; }
        .login-submit:disabled { background: #94a3b8; box-shadow: none; cursor: not-allowed; opacity: 0.8; }
        .login-close { text-align: center; margin-top: 20px; color: #999; cursor: pointer; font-size: 14px; }
        
        .wechat-login-section { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); text-align: center; }
.wechat-login-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 26px; background: #07C160; color: white; border: none; border-radius: 30px; font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--transition); box-shadow: none; }
        .wechat-login-btn:hover { background: #06AD56; transform: translateY(-1px); }
        .wechat-qrcode-container { margin-top: 18px; text-align: center; display: none; }
        .wechat-qrcode { width: 200px; height: 200px; margin: 0 auto; border: 2px solid #e8ecef; border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; }
        .wechat-qrcode canvas { width: 180px; height: 180px; }
        .wechat-qrcode-tip { margin-top: 10px; color: var(--text-secondary); font-size: 13px; }
        .wechat-qrcode-tip i { color: #07C160; }
        .wechat-qrcode-refresh { margin-top: 12px; color: var(--primary-color); font-size: 13px; cursor: pointer; text-decoration: underline; }
        
.home-section { background: white; margin: 0 7px 7px 7px; border-radius: var(--border-radius-base); padding: 12px; box-shadow: none; transition: all 0.2s ease; }
        
        .home-section-flat {
            background: transparent !important;
            box-shadow: none !important;
            border-radius: 0 !important;
            padding: 0 !important;
            margin: 0 !important;
        }
        .section-title-flat {
            padding: 8px 7px 8px 7px;
            margin-bottom: 4px;
        }
        
        .section-title { font-weight: 700; font-size: 16px; color: #1a1a1a; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
        .address-bar { display: flex; flex-wrap: wrap; justify-content: space-around; text-align: center; gap: 12px; }
.address-item { display: flex; align-items: center; gap: 8px; color: #4a5a6a; font-size: 13px; cursor: default; padding: 8px 12px; background: #f8f9fa; border-radius: var(--border-radius-pill); transition: all 0.2s; flex: 1; min-width: 120px; justify-content: center; border: none; }
        .address-item span:first-child { display: none; }
        .address-item:hover { background: #f8f9fa; }
        .announcement-bar { padding: 0; color: #666; font-weight: 400; font-size: 13px; line-height: 1.5; }
        
        .member-benefits { 
            text-align: left; 
            color: #fff; 
            padding: 30px 16px 14px 16px; 
            background: var(--accent-color); 
            border-radius: 0 0 var(--border-radius-base) var(--border-radius-base); 
            font-size: 14px; 
            position: relative; 
            z-index: -1; 
            margin-top: -30px; 
        }
        .member-guest { 
            text-align: left; 
            color: #fff; 
            padding: 30px 16px 14px 16px; 
            background: var(--accent-color); 
            border-radius: 0 0 var(--border-radius-base) var(--border-radius-base); 
            font-size: 14px; 
            position: relative; 
            z-index: -1; 
            margin-top: -30px; 
        }


        
.category-nav { 
    padding: 4px 0; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    transition: all 0.2s ease; 
    justify-content: space-between;
}
.store-brand:hover { background:#e8f5e9 !important; }
        .category-item { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 999px; background: #f5f5f5; color: #4a5a6a; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.category-item.active { background: var(--primary-color); color: white; box-shadow: none; }
        .category-item:hover:not(.active) { background: #e9ecef; color: var(--primary-color); }
        .recent-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.recent-card { flex-shrink: 0; width: 130px; background: #f9f9f9; border-radius: var(--border-radius-sm); overflow: hidden; cursor: pointer; transition: transform 0.2s; }
        .recent-img { width: 100%; height: 100px; object-fit: cover; background: #e8e8e8; }
        .recent-info { padding: 10px; }
        .recent-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .recent-price { color: var(--accent-color); font-weight: 600; font-size: 14px; }
        .feature-block { display: flex; gap: 16px; align-items: flex-start; flex-wrap: nowrap; }
.feature-image {
    width: 90px;
    height: 90px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e8e8e8;
}
        .feature-content { flex: 1; min-width: 0; }
        .feature-title { font-weight: 700; margin-bottom: 6px; font-size: 16px; }
        .feature-text { color: #666; font-size: 14px; margin-bottom: 10px; }
        .feature-link { color: var(--primary-color); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
        .bottom-menu {
            background: rgba(255, 255, 255, 0.72);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            backdrop-filter: blur(24px) saturate(180%);
            display: inline-flex;              /* ★ 宽度由内容决定 */
            align-items: center;
            justify-content: center;           /* ★ 菜单整体居中，不再 space-around 撑开 */
            padding: 8px;
            position: fixed;
            bottom: calc(16px + env(safe-area-inset-bottom));
            left: 50%;                         /* ★ 水平居中定位 */
            transform: translateX(-50%);
            z-index: 999;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 36px rgba(27, 59, 43, 0.16);
            border: 1px solid rgba(255, 255, 255, 0.7);
            border-radius: 999px;
            max-width: calc(100vw - 24px);     /* ★ 菜单多时不溢出 */
            gap: 4px;
        }
        @media (min-width: 1200px) {
            .bottom-menu {
                /* ★ PC 端同样按内容自适应，不再固定 1176px */
                max-width: calc(100vw - 24px);
            }
        }
        .menu-item {
            flex: 0 0 auto;
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #9aa5b1;
            font-size: 11px;
            font-weight: 500;
            letter-spacing: 0.2px;
            text-decoration: none;
            transition: background-color 0.25s ease, color 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
            padding: 8px 14px;
            position: relative;
            border-radius: 999px;
            -webkit-tap-highlight-color: transparent;
            white-space: nowrap;
        }
        .menu-item:active {
            transform: scale(0.96);
            background: rgba(27, 59, 43, 0.10);
            color: var(--primary-color);
        }
        .menu-item.active {
            color: var(--primary-color);
            background: rgba(27, 59, 43, 0.10);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 8px rgba(27, 59, 43, 0.08);
        }
        .menu-icon {
            font-size: 20px;
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            margin-bottom: 3px;
            transition: transform 0.25s ease;
        }
        .menu-item:active .menu-icon,
        .menu-item.active .menu-icon {
            transform: translateY(-1px);
        }
        .menu-text {
            display: inline-block;
            white-space: nowrap;
            font-size: 11px;
            font-weight: 500;
            line-height: 1.2;
            transition: color 0.25s ease, font-weight 0.25s ease;
        }
        .menu-item:active .menu-text,
        .menu-item.active .menu-text {
            font-weight: 600;
        }
        .menu-cart-badge {
            position: absolute;
            top: -8px;
            right: -10px;
            background: #f44336;
            color: #fff;
            border-radius: 999px;
            min-width: 16px;
            height: 16px;
            padding: 0 4px;
            font-size: 9px;
            font-weight: 700;
            display: none;
            align-items: center;
            justify-content: center;
            border: 2px solid #fff;
            line-height: 1;
            box-shadow: 0 1px 4px rgba(244, 67, 54, 0.35);
        }
        .menu-item.active .menu-cart-badge {
            border-color: rgba(255, 255, 255, 0.85);
        }
        .social-links { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 16px; flex-wrap: wrap; background: transparent; }
        .social-icon { height: 40px !important; width: auto !important; max-width: 80px; object-fit: contain; cursor: pointer; transition: transform 0.2s; }
        .social-icon:hover { transform: scale(1.05); }
        .copyright-bar { text-align: center; padding: 12px 16px; color: #999999; font-size: 12px; line-height: 1.5; font-weight: 400; display: block !important; visibility: visible !important; opacity: 1 !important; }
        .copyright-bar a { color: #888888; text-decoration: none; margin: 0 8px; font-weight: 400; }
        .statement-bar { text-align: center; padding: 0 16px 16px; color: #999999; font-size: 12px; line-height: 1.5; font-weight: 400; }
        .statement-bar a { color: #888888; text-decoration: none; margin: 0 8px; font-weight: 400; }
        .quick-entry { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 500; display: flex; flex-direction: column; gap: 8px; }
        .quick-entry { position: fixed; right: 7px; top: 50%; transform: translateY(-50%); z-index: 500; display: flex; flex-direction: column; gap: 12px; }
        .quick-btn-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; transition: all 0.2s; }
        .quick-btn-wrap:hover { transform: scale(1.05); }
        .quick-btn-wrap:hover .quick-btn { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }
        .quick-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all 0.2s; border: 1px solid rgba(0, 0, 0, 0.04); }
        .quick-btn-text { font-size: 12px; color: #fff; font-weight: 500; line-height: 1.2; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,0.5); text-align: center; max-width: 56px; overflow: hidden; text-overflow: ellipsis; }
.waterfall-container { width: 100%; overflow: hidden; padding: 0 7px; box-sizing: border-box; }
.waterfall-grid { display: flex; flex-wrap: wrap; margin: 0 -3.5px; }
.waterfall-column { flex: 1; padding: 0 3.5px; min-width: 0; flex-basis: 50%; box-sizing: border-box; }
@media (min-width: 768px) { .waterfall-grid { margin: 0 -3.5px; } .waterfall-column { padding: 0 3.5px; flex-basis: 33.333%; } }
@media (min-width: 1024px) { .waterfall-grid { margin: 0 -3.5px; } .waterfall-column { padding: 0 3.5px; flex-basis: 25%; } }
.product-card { background: white; border-radius: var(--border-radius-base); overflow: hidden; box-shadow: none; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; margin-bottom: 7px; border: none; }
.product-card:active, .product-card:hover { transform: scale(0.98); box-shadow: none; }
        .product-img { width: 100%; display: block; background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%); object-fit: cover; }
        .product-info { padding: 12px; flex: 1; }
        .product-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; white-space: normal; overflow: visible; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.4; word-break: break-all; }
        .product-address { font-size: 12px; color: #999; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .product-price { color: var(--accent-color); font-weight: 700; font-size: 16px; }
        .group-price { color: white; font-weight: 700; font-size: 14px; background: var(--accent-color); padding: 2px 6px; border-radius: var(--border-radius-sm); display: inline-block; margin-left: 4px; }
        .empty-state { text-align: left; padding: 0; color: #999; font-size: 14px; background: transparent; }
        .skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: loading 1.5s infinite; border-radius: var(--border-radius-sm); }
        @keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
        .loading-skeleton { padding: 20px; }
        .skeleton-item { height: 120px; margin-bottom: 16px; border-radius: var(--border-radius-base); }
        .complete-profile-banner { background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%); padding: 18px 18px 16px; margin: -15px 7px 7px; border-radius: 0 0 var(--border-radius-base) var(--border-radius-base); color: #e65100; font-weight: 500; font-size: 14px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-light); cursor: pointer; position: relative; z-index: 5; }
        .complete-profile-banner .arrow { font-size: 18px; }
        .mp-profile-sheet-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 100001; display: none; align-items: flex-end; justify-content: center; }
        .mp-profile-sheet-overlay.show { display: flex; }
        .mp-profile-sheet { width: 100%; max-width: 500px; background: #fff; border-radius: 24px 24px 0 0; padding: 24px 24px calc(24px + env(safe-area-inset-bottom)); animation: mpSheetUp 0.3s cubic-bezier(0.16,1,0.3,1); box-shadow: 0 -8px 32px rgba(0,0,0,0.12); }
        @keyframes mpSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
        .mp-sheet-handle { width: 36px; height: 4px; background: #ddd; border-radius: 2px; margin: 0 auto 20px; }
        .mp-sheet-avatar-wrap { text-align: center; margin-bottom: 12px; }
        .mp-sheet-avatar-img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid #1B3B2B; object-fit: cover; }
        .mp-sheet-avatar-placeholder { width: 64px; height: 64px; border-radius: 50%; background: #F5F0E8; display: inline-flex; align-items: center; justify-content: center; font-size: 32px; }
        .mp-sheet-title { text-align: center; font-size: 18px; font-weight: 700; color: #1B3B2B; margin-bottom: 4px; }
        .mp-sheet-desc { text-align: center; font-size: 13px; color: #999; margin-bottom: 20px; }
        .mp-sheet-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; background: linear-gradient(135deg, #07C160, #06AD56); color: #fff; border: none; border-radius: 50px; font-size: 16px; font-weight: 600; margin-bottom: 12px; box-shadow: 0 6px 20px rgba(7,193,96,0.25); }
        .mp-sheet-skip { text-align: center; font-size: 13px; color: #bbb; padding: 8px 0; }

body.mp-mode {
    padding-top: 0 !important;
    background: #f3efe8 !important;
}

body.mp-mode .hero-section {
    padding-top: env(safe-area-inset-top);
}

body.mp-mode .hero-section .hero-overlay {
    top: 0;
}
    
        .hero-rich-text a,
        .announcement-bar a,
        .popup-text a,
        .description a {
            text-decoration: none !important;
            color: var(--accent-color) !important;
        }

        .hero-rich-text a:hover,
        .announcement-bar a:hover,
        .popup-text a:hover,
        .description a:hover {
            text-decoration: underline !important;
            opacity: 0.85;
        }

        .description a {
            text-decoration: none !important;
            color: var(--accent-color) !important;
        }

        .description a:hover {
            text-decoration: underline !important;
            opacity: 0.85;
        }

        font[size="1"] { font-size: 14px; }
        font[size="3"] { font-size: 18px; }
        font[size="5"] { font-size: 28px; }
        font[size="7"] { font-size: 32px; }

        .bg-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            z-index: 0;
            pointer-events: none;
            transition: opacity 0.8s ease-in-out;
        }
        .bg-layer.active {
            opacity: 1;
        }

        .theme-product-card {
            position: relative;
            border-radius: var(--border-radius-base);
            overflow: hidden;
        }

        .theme-product-img {
            width: 100%;
            min-height: 180px;
            object-fit: cover;
            background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
        }

        .theme-activity-tag {
            position: absolute;
            top: 12px;
            left: 12px;
            background: linear-gradient(135deg, #ff6b35, #f7931e);
            color: white;
            padding: 6px 14px;
            border-radius: 30px;
            font-size: 12px;
            font-weight: bold;
            z-index: 2;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        .theme-waterfall-column {
            flex-basis: 33.333%;
        }

        @media (max-width: 768px) {
            .theme-waterfall-column {
                flex-basis: 50%;
            }
        }

        @media (max-width: 480px) {
            .theme-waterfall-column {
                flex-basis: 100%;
            }
        }

        .theme-waterfall-column .product-card {
            margin-bottom: 16px;
        }

        .theme-waterfall-column .product-name {
            font-size: 16px;
            white-space: normal;
            line-height: 1.4;
        }

        .theme-waterfall-column .product-address {
            font-size: 12px;
        }

        /* ========== 门店网格布局 v2：PC 2+3，移动端 1+2+2 ========== */
        .store-grid-v2 {
            display: grid;
            gap: 10px;
            align-items: start;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        .store-grid-v2 > .store-tile:nth-child(1) {
            grid-column: 1 / -1;
        }
        @media (min-width: 768px) {
            .store-grid-v2 {
                grid-template-columns: repeat(6, minmax(0, 1fr));
            }
            .store-grid-v2 > .store-tile:nth-child(1),
            .store-grid-v2 > .store-tile:nth-child(2) {
                grid-column: span 3;
            }
            .store-grid-v2 > .store-tile:nth-child(n+3) {
                grid-column: span 2;
            }
        }
        
        /* ========== 反白屏：首屏骨架loading ========== */
        #appWrapper { opacity: 0; transition: opacity 0.2s ease-in; }
        #appWrapper.ready { opacity: 1; }

        /* ========== 半屏授权面板样式 ========== */
        .auth-sheet-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 100001;
            display: none;
            align-items: flex-end;
            justify-content: center;
        }
        .auth-sheet-overlay.show {
            display: flex;
        }
        .auth-sheet {
            width: 100%;
            max-width: 500px;
            background: #fff;
            border-radius: 24px 24px 0 0;
            padding: 24px 24px calc(30px + env(safe-area-inset-bottom));
            animation: authSheetUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
        }
        @keyframes authSheetUp {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }
        .auth-sheet-handle {
            width: 36px;
            height: 4px;
            background: #ddd;
            border-radius: 2px;
            margin: 0 auto 20px;
        }
        .auth-sheet-avatar-wrap {
            text-align: center;
            margin-bottom: 12px;
        }
.auth-sheet-avatar-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    /* 移除边框 */
    border: none;
    object-fit: cover;
    display: inline-block;
}
.auth-sheet-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    /* 移除边框 */
    border: none;
    background: #F5F0E8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
        .auth-sheet-title {
            text-align: center;
            font-size: 18px;
            font-weight: 700;
            color: #1B3B2B;
            margin-bottom: 4px;
        }
        .auth-sheet-desc {
            text-align: center;
            font-size: 13px;
            color: #999;
            margin-bottom: 20px;
        }
        .auth-sheet-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #07C160, #06AD56);
            color: #fff;
            border: none;
            border-radius: 50px;
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 12px;
            box-shadow: 0 6px 20px rgba(7, 193, 96, 0.25);
            cursor: pointer;
            transition: all 0.2s;
        }
        .auth-sheet-btn:active {
            transform: scale(0.98);
        }
        .auth-sheet-skip {
            text-align: center;
            font-size: 13px;
            color: #bbb;
            padding: 8px 0;
            cursor: pointer;
        }
        .auth-sheet-skip:active {
            opacity: 0.6;
        }
        body.auth-blur .app-wrapper {
            filter: blur(4px);
            transition: filter 0.2s ease;
        }

    .mini-qrcode-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 100001;
        align-items: center;
        justify-content: center;
    }
    .mini-qrcode-overlay.show {
        display: flex;
    }
    .mini-qrcode-dialog {
        background: white;
        border-radius: 20px;
        padding: 30px 25px 25px;
        width: 90%;
        max-width: 350px;
        text-align: center;
        box-shadow: 0 12px 40px rgba(0,0,0,0.15);
        animation: qrcodeIn 0.3s ease;
    }
    @keyframes qrcodeIn {
        from { opacity: 0; transform: translateY(20px) scale(0.95); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .mini-qrcode-dialog h3 {
        font-size: 18px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
    }
    .mini-qrcode-dialog .qrcode-tip {
        font-size: 14px;
        color: #666;
        margin-bottom: 18px;
    }
    .mini-qrcode-image {
        width: 200px;
        height: 200px;
        margin: 0 auto;
        border-radius: 12px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f9f9f9;
    }
    .mini-qrcode-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .mini-qrcode-close-btn {
        margin-top: 18px;
        padding: 10px 40px;
        background: var(--primary-color);
        border: none;
        border-radius: 30px;
        font-size: 14px;
        color: #fff;
        cursor: pointer;
        transition: all 0.2s;
    }
    .mini-qrcode-close-btn:hover {
        background: #e0e0e0;
    }
    
    /* 小程序环境强制统一背景和移除边框 */
@media (prefers-color-scheme: no-preference) {
    .mp-mode,
    .mp-mode body,
    .mp-mode .app-wrapper,
    .mp-mode .main-content {
        background-color: #f8f9fa !important;
    }
}
    
    
