    <style>
        body {
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
            padding-bottom: 80px;
            min-height: 100vh;
            background: #e8e8e8;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .page-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            border-radius: 10px;
            margin-bottom: 30px;
        }
        
        .stats-card {
            background: white;
            border-radius: 12px;
            padding: 14px 12px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.06);
            margin-bottom: 12px;
            transition: transform 0.15s, box-shadow 0.15s;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .stats-card:active { transform: scale(0.97); }
        .stats-card.clickable { cursor: pointer; }
        .stats-card.clickable:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.1);
            transform: translateY(-1px);
        }
        .stats-icon {
            width: 40px; height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }
        .stats-icon.blue   { background: #eef2ff; color: #667eea; }
        .stats-icon.green  { background: #e6f7ec; color: #07c160; }
        .stats-icon.orange { background: #fff8ed; color: #f90; }
        .stats-icon.red    { background: #fff0f0; color: #e4393c; }
        .stats-icon.teal   { background: #e6faf5; color: #0ca678; }
        .stats-body { min-width: 0; }
        .stats-number {
            font-size: 22px;
            font-weight: 700;
            line-height: 1.2;
            color: #1a1a1a;
        }
        .stats-label {
            font-size: 11px;
            color: #999;
            line-height: 1.3;
        }
        
        .product-table {
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.12);
            overflow: hidden;
        }
        .product-table tbody tr { border-bottom: 1px solid #e8e8e8; }
        .product-table tbody tr:last-child { border-bottom: none; }
        .product-table tbody tr:nth-child(even) { background: #fafafa; }
        
        /* 分类快速筛选 */
        .category-filter-bar {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding: 4px 0 8px;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        .category-filter-bar::-webkit-scrollbar { display: none; }
        .cat-filter-btn {
            flex-shrink: 0;
            padding: 6px 16px;
            border-radius: 20px;
            border: 1px solid #e0e0e0;
            background: #f8f8f8;
            color: #666;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .cat-filter-btn.active {
            background: #667eea;
            color: #fff;
            border-color: #667eea;
        }
        .cat-filter-btn:active { transform: scale(0.95); }
        
        /* 库存预警着色 */
        .stock-low    { background: #fff0f0 !important; }
        .stock-medium { background: #fffcf0 !important; }
        .stock-badge  { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
        .stock-badge.low    { background: #ffe0e0; color: #e4393c; }
        .stock-badge.medium { background: #fff3cd; color: #f90; }
        
        .product-table th {
            background: #f0f0f0;
            font-weight: 600;
            padding: 15px;
            border-bottom: 2px solid #ddd;
        }
        
        .product-table td {
            padding: 12px 15px;
            vertical-align: middle;
            border-color: #eee;
        }
        
        .price-input {
            width: 100px;
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 5px 10px;
            text-align: center;
        }
        
        .price-input:focus {
            border-color: #667eea;
            outline: none;
        }
        
        .btn-save-price {
            padding: 5px 15px;
            font-size: 12px;
        }
        
        .status-badge {
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .status-active {
            background: #d4edda;
            color: #155724;
        }
        
        .status-inactive {
            background: #f8d7da;
            color: #721c24;
        }
        
        .excel-upload-area {
            border: 2px dashed #ccc;
            border-radius: 10px;
            padding: 40px;
            text-align: center;
            background: #f8f9fa;
            transition: all 0.3s;
        }
        
        .excel-upload-area:hover {
            border-color: #667eea;
            background: #f0f4ff;
        }
        
        .excel-upload-area.dragover {
            border-color: #667eea;
            background: #e8eeff;
        }
        
        .image-upload-area {
            border: 2px dashed #d1d5db;
            border-radius: 8px;
            padding: 16px;
            text-align: center;
            transition: all 0.2s;
        }
        .upload-btns {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
        }
        .upload-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100px;
            height: 100px;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            background: #fff;
            cursor: pointer;
            transition: all 0.2s;
            color: #6b7280;
            font-size: 13px;
            gap: 6px;
        }
        .upload-btn:active {
            transform: scale(0.95);
            background: #f0f4ff;
            border-color: #667eea;
        }
        .upload-btn-camera { color: #3b82f6; }
        .upload-btn-gallery { color: #10b981; }
        .upload-progress {
            width: 100%;
        }
        .upload-preview {
            position: relative;
            display: flex;
        }
        .upload-preview img {
            max-width: 200px;
            max-height: 150px;
            border-radius: 6px;
            object-fit: cover;
        }
        .upload-remove {
            position: absolute;
            top: -8px;
            right: -8px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            padding: 0;
            line-height: 22px;
            font-size: 14px;
            background: #fff;
        }
        
        .preview-table {
            max-height: 400px;
            overflow-y: auto;
        }
        
        .farm-info {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
        }
        
        .section-title {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            padding: 15px 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-weight: 600;
            font-size: 18px;
        }
        
        .coupon-table {
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            overflow: hidden;
            margin-top: 20px;
        }
        
        .coupon-table th {
            background: #f8f9fa;
            font-weight: 600;
            padding: 15px;
        }
        
        .coupon-table td {
            padding: 12px 15px;
            vertical-align: middle;
        }
        
        .create-coupon-card {
            background: white;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }

        .category-checkbox-item {
            display: inline-block;
            margin-right: 16px;
            margin-bottom: 6px;
            cursor: pointer;
        }
        .category-checkbox-item input {
            margin-right: 4px;
        }
        
        .shop-info-card {
            background: white;
            border-radius: 10px;
            padding: 25px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }
        
        .shop-logo-preview {
            width: 100px;
            height: 100px;
            border-radius: 10px;
            object-fit: cover;
            border: 2px solid #eee;
        }
        
        .shop-logo-placeholder {
                width: 100px;
                height: 100px;
                border-radius: 10px;
                background: #f8f9fa;
                display: flex;
                align-items: center;
                justify-content: center;
                color: #ccc;
                font-size: 40px;
                border: 2px dashed #ddd;
            }
        
        .shop-card-container {
                background: white;
                border-radius: 15px;
                padding: 30px;
                box-shadow: 0 4px 20px rgba(0,0,0,0.08);
                margin-bottom: 20px;
            }
        
        .shop-card {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                border-radius: 15px;
                padding: 25px;
                color: white;
                box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
            }
        
        .shop-card-logo {
                width: 80px;
                height: 80px;
                border-radius: 12px;
                background: rgba(255,255,255,0.2);
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 32px;
            }
        
        .shop-card-logo img {
                width: 100%;
                height: 100%;
                border-radius: 12px;
                object-fit: cover;
            }
        
        .qr-code-container {
                background: white;
                padding: 20px;
                border-radius: 12px;
                text-align: center;
            }
        
        .qr-code-placeholder {
                width: 180px;
                height: 180px;
                border: 3px dashed #ddd;
                border-radius: 10px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                color: #ccc;
                margin: 0 auto;
            }
        
        .qr-code-placeholder i {
                font-size: 50px;
                margin-bottom: 10px;
            }

        /* ========== 移动端适配 ========== */
        @media (max-width: 767.98px) {
            .container {
                padding: 10px;
            }

            .page-header {
                padding: 16px 14px;
                margin-bottom: 12px;
            }
            .page-header h1 { font-size: 16px !important; }
            .page-header small { font-size: 11px; }

            /* 统计卡片 - 紧凑 */
            .stats-card {
                padding: 10px 8px;
            }
            .stats-icon {
                width: 32px; height: 32px;
                font-size: 14px;
                border-radius: 8px;
            }
            .stats-number {
                font-size: 17px;
            }
            .stats-label {
                font-size: 10px;
            }
            #todayPendingOrders { display: none; }

            /* 我的店铺 - 折叠 */
            .shop-info-card .card-body-content {
                padding-top: 10px;
            }
            .shop-info-card.collapsed-shop .card-body-content {
                display: none;
            }
            .shop-info-card .toggle-shop-icon {
                transition: transform 0.3s;
            }
            .shop-info-card.collapsed-shop .toggle-shop-icon {
                transform: rotate(180deg);
            }
            @media (min-width: 768px) {
                .shop-info-card.collapsed-shop .card-body-content {
                    display: block;
                }
            }
            .shop-info-card {
                padding: 15px;
            }
            .shop-card {
                padding: 12px;
            }
            .shop-card .d-flex.align-items-center {
                flex-direction: column;
                align-items: flex-start !important;
                gap: 10px;
                margin-bottom: 10px;
            }
            .shop-card .me-4 {
                margin-right: 0 !important;
            }
            .shop-card .d-flex.flex-column.align-items-center {
                flex-direction: row !important;
                align-items: center !important;
                gap: 12px;
                width: 100%;
            }
            .shop-card .btn-light.btn-sm {
                margin-top: 0 !important;
            }
            .shop-card-logo {
                width: 50px;
                height: 50px;
                font-size: 20px;
            }
            .shop-card h4 {
                font-size: 16px;
            }
            .shop-card h6 {
                font-size: 13px;
            }
            .shop-card p {
                font-size: 11px;
            }
            .shop-card .small {
                font-size: 10px;
            }
            .shop-card .row .col-md-4 {
                flex: 0 0 50%;
                max-width: 50%;
            }
            .shop-card .row .col-md-4:nth-child(3) {
                flex: 0 0 100%;
                max-width: 100%;
            }
            .shop-card .row.mt-2 .col-md-4 {
                flex: 0 0 auto;
                max-width: 100%;
            }
            .shop-card .row.mt-2 .col-md-4:nth-child(2),
            .shop-card .row.mt-2 .col-md-4:nth-child(3) {
                display: none;
            }
            .alert.alert-info {
                padding: 10px 12px;
                font-size: 12px;
            }
            /* 分类筛选栏 */
            .category-filter-bar { gap: 6px; }
            .cat-filter-btn { padding: 5px 12px; font-size: 12px; }

            .section-title {
                padding: 10px 15px;
                font-size: 15px;
                margin-bottom: 12px;
            }

            /* 工具栏按钮组 - 紧凑换行 */
            .toolbar-buttons {
                flex-wrap: wrap;
                gap: 6px !important;
            }
            .toolbar-buttons .btn {
                font-size: 12px;
                padding: 5px 10px;
            }

            /* 表格 → 卡片视图 */
            .product-table table,
            .product-table thead,
            .product-table tbody,
            .product-table th,
            .product-table td,
            .product-table tr {
                display: block;
            }
            .product-table thead {
                display: none;
            }
            .product-table tr {
                background: white;
                border-radius: 10px;
                box-shadow: 0 2px 10px rgba(0,0,0,0.12);
                margin-bottom: 14px;
                padding: 12px;
                position: relative;
                border: 1px solid #ddd;
            }
            .product-table td {
                display: flex;
                align-items: center;
                padding: 4px 0;
                border: none;
                text-align: left;
            }
            .product-table td:before {
                content: attr(data-label);
                font-weight: 600;
                color: #667eea;
                min-width: 70px;
                font-size: 12px;
                flex-shrink: 0;
            }
            .product-table td:first-child {
                position: absolute;
                top: 12px;
                right: 12px;
                background: white;
                padding: 2px;
                border-radius: 3px;
            }
            .product-table td:first-child:before {
                content: none;
            }
            .product-table .price-input {
                width: 80px;
                font-size: 12px;
            }
            .product-table .btn-save-price {
                font-size: 11px;
                padding: 3px 10px;
            }
            .product-table .status-badge {
                font-size: 11px;
                padding: 3px 10px;
            }

            /* 批量操作栏 */
            #batchToolbar {
                flex-direction: column;
                gap: 8px;
            }
            #batchToolbar .btn {
                font-size: 12px;
                padding: 5px 10px;
            }

            /* 工具栏 - 筛选区换行 */
            #toolbarRow {
                flex-direction: column;
                align-items: stretch !important;
            }
            #toolbarRow .input-group {
                max-width: none !important;
            }

            /* 优惠券创建表单 - 强制列堆叠 */
            .create-coupon-card .row > [class*="col-md"] {
                flex: 0 0 100%;
                max-width: 100%;
            }
            .create-coupon-card .form-label {
                font-size: 13px;
            }
            .create-coupon-card .form-control,
            .create-coupon-card .form-select {
                font-size: 14px;
            }
            .create-coupon-card {
                padding: 15px 12px;
            }
            .create-coupon-card h5 {
                font-size: 16px;
            }

            /* 优惠券适用范围 - 单选按钮组 */
            #coupon-scope-type-group .btn {
                font-size: 13px;
                padding: 5px 12px;
            }
            #coupon-category-checkboxes,
            #coupon-product-results {
                max-height: 150px !important;
                font-size: 13px;
            }
            .category-checkbox-item {
                font-size: 13px;
                margin-right: 12px;
                margin-bottom: 4px;
            }

            /* 优惠券列表卡片 */
            .coupon-table .card-body {
                padding: 10px;
            }
            .coupon-table .card .card-body .d-flex.justify-content-between {
                flex-direction: column;
            }
            .coupon-table .card .text-end {
                text-align: left !important;
                margin-top: 10px;
            }
            .coupon-table .card h5 {
                font-size: 15px;
            }
            .coupon-table .card p,
            .coupon-table .card .small {
                font-size: 12px;
            }
            .coupon-table .card .badge {
                font-size: 11px;
            }
            /* 券码列表 columns 适配 */
            .coupon-table ul[style*="columns"] {
                columns: 2 !important;
            }
            .coupon-table .card .btn {
                font-size: 12px;
                padding: 4px 10px;
            }

            /* 创建结果中券码列表 */
            #create-coupon-result ul[style*="columns"] {
                columns: 2 !important;
            }
            #create-coupon-result .alert {
                padding: 12px;
                font-size: 13px;
            }

            /* 底部导航 */
            .bottom-nav {
                display: flex;
            }
        }

        /* ========== 底部导航栏 ========== */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            display: none;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
            z-index: 1000;
            padding-bottom: env(safe-area-inset-bottom);
        }
        .bottom-nav .nav-item {
            flex: 1;
            text-align: center;
            padding: 8px 0;
            cursor: pointer;
            color: #999;
            transition: all 0.3s;
        }
        .bottom-nav .nav-item.active {
            color: #667eea;
        }
        .bottom-nav .nav-item i {
            font-size: 20px;
            display: block;
            margin-bottom: 2px;
        }
        .bottom-nav .nav-item span {
            font-size: 11px;
        }
        @media (max-width: 767.98px) {
            .bottom-nav {
                display: flex;
            }
        }
