body {
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background-color: #f8f9fa;
            padding-bottom: 70px;
        }
        
        .navbar {
            background-color: #1e88e5;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .navbar-brand {
            font-weight: bold;
            font-size: 1.5rem;
        }
        
        .cart-container {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 2rem;
            margin-top: 2rem;
        }
        
        .cart-item {
            border-bottom: 1px solid #e9ecef;
            padding: 1.5rem 0;
            transition: background-color 0.2s;
        }
        
        .cart-item:hover {
            background-color: #f8f9fa;
            border-radius: 8px;
            margin: 0 -1rem;
            padding: 1.5rem 1rem;
        }
        
        .cart-item:last-child {
            border-bottom: none;
        }
        
        .cart-item-image {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 8px;
            border: 1px solid #e9ecef;
            margin-right: 20px; /* 增加图片右侧间距 */
        }
        
        .cart-item-name {
            font-weight: 600;
            color: #333;
            margin-bottom: 0.5rem;
        }
        
        .cart-item-category {
            display: inline-block;
            background-color: #e3f2fd;
            color: #1e88e5;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
            margin-bottom: 0.5rem;
        }
        
        .cart-item-price {
            color: #e53935;
            font-weight: bold;
            font-size: 1.1rem;
        }
        
        .quantity-controls {
            display: flex;
            align-items: center;
            gap: 0;
            border: 1px solid #e0e0e0;
            border-radius: 25px;
            background-color: white;
            padding: 2px;
            width: fit-content;
        }
        
        .quantity-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: none;
            background-color: #ff5722;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 18px;
            transition: all 0.2s;
            cursor: pointer;
        }
        
        .quantity-btn:hover:not(:disabled) {
            background-color: #e64a19;
            transform: scale(1.05);
        }
        
        .quantity-btn:disabled {
            background-color: #e0e0e0;
            color: #9e9e9e;
            cursor: not-allowed;
            transform: none;
        }
        
        .quantity-btn.minus-btn {
            background-color: #e0e0e0;
            color: #666;
        }
        
        .quantity-btn.minus-btn:hover:not(:disabled) {
            background-color: #d0d0d0;
        }
        
        .quantity-display {
            min-width: 50px;
            text-align: center;
            font-weight: bold;
            font-size: 16px;
            color: #333;
            padding: 8px 12px;
            background-color: transparent;
            border: none;
            outline: none;
        }
        
        .total-section {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 1.5rem;
            margin-top: 2rem;
        }
        
        .total-price {
            font-size: 1.8rem;
            font-weight: bold;
            color: #e53935;
        }
        
        .empty-cart {
            text-align: center;
            padding: 4rem 2rem;
            color: #6c757d;
        }
        
        .empty-cart-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
            color: #dee2e6;
        }
        
        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 200px;
        }
        
        .spinner-border {
            width: 3rem;
            height: 3rem;
        }
        
        .remove-btn {
            color: #dc3545;
            background: none;
            border: none;
            font-size: 1.2rem;
            padding: 0.25rem;
            transition: color 0.2s;
        }
        
        .remove-btn:hover {
            color: #c82333;
        }
        
        /* 性能优化和动画效果 */
        .cart-item {
            transition: all 0.3s ease;
            transform: translateX(0);
        }
        
        .cart-item.removing {
            transform: translateX(-100%);
            opacity: 0;
        }
        
        .quantity-btn {
            transition: all 0.2s ease;
            will-change: transform, background-color;
        }
        
        .quantity-btn:active {
            transform: scale(0.95);
        }
        
        /* 图片懒加载效果 */
        img[data-src] {
            background-color: #f0f0f0;
            background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                             linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                             linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                             linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
            background-size: 20px 20px;
            background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
            animation: loading-shimmer 1.5s ease-in-out infinite;
        }
        
        @keyframes loading-shimmer {
            0% { background-position: 0 0, 0 10px, 10px -10px, -10px 0px; }
            100% { background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px; }
        }
        
        /* 移动端专用样式 */
        .mobile-item-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }
        
        .mobile-item-info {
            display: flex;
            gap: 20px; /* 增加移动端布局间距 */
            flex: 1;
        }
        
        .mobile-item-image {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 8px;
            border: 1px solid #e9ecef;
            flex-shrink: 0;
            margin-right: 16px; /* 增加移动端图片右侧间距 */
        }
        
        .mobile-item-details {
            flex: 1;
            min-width: 0;
        }
        
        .mobile-item-name {
            font-weight: 600;
            color: #333;
            font-size: 15px;
            margin-bottom: 4px;
            line-height: 1.3;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        
        .mobile-item-category {
            display: inline-block;
            background-color: #e3f2fd;
            color: #1e88e5;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 12px;
            margin-bottom: 4px;
        }
        
        .mobile-item-price {
            color: #e53935;
            font-weight: bold;
            font-size: 14px;
        }
        
        .mobile-item-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 12px;
            border-top: 1px solid #f0f0f0;
        }
        
        .quantity-controls-mobile {
            min-width: 100px;
        }
        
        .mobile-subtotal {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            text-align: right;
        }
        
        .subtotal-label {
            font-size: 12px;
            color: #666;
            margin-bottom: 2px;
        }
        
        .subtotal-price {
            font-weight: bold;
            color: #e53935;
            font-size: 16px;
        }
        
        /* 移动端总价区域样式 */
        .mobile-total-section {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .mobile-total-info {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .mobile-total-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 0;
        }
        
        .mobile-total-price-row {
            border-top: 1px solid #e9ecef;
            padding-top: 1rem;
        }
        
        .mobile-total-label {
            font-size: 16px;
            color: #333;
        }
        
        .mobile-total-value {
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }
        
        .mobile-total-price {
            font-size: 20px;
            font-weight: bold;
            color: #e53935;
        }
        
        .mobile-checkout-btn {
            width: 100%;
            padding: 12px 16px;
            font-size: 16px;
            font-weight: 600;
            border-radius: 8px;
        }
        
        /* 微信二维码模态框样式 */
        .wechat-qr-container {
            padding: 20px;
            background-color: #f8f9fa;
            border-radius: 12px;
            border: 2px solid #e9ecef;
        }
        
        .wechat-qr-image {
            max-width: 200px;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .modal-content {
            border-radius: 15px;
            border: none;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }
        
        .modal-header {
            background-color: #07c160;
            color: white;
            border-top-left-radius: 15px;
            border-top-right-radius: 15px;
            border-bottom: none;
        }
        
        .modal-header .btn-close {
            filter: invert(1);
        }
        
        .alert-info {
            background-color: #e3f2fd;
            border: 1px solid #1e88e5;
            border-radius: 8px;
            color: #1565c0;
        }
        
        /* 桌面端图片和文字间距优化 */
        @media (min-width: 769px) {
            .cart-item-desktop .col-md-1 {
                padding-right: 2rem; /* 增加图片列右内边距 */
            }
            
            .cart-item-desktop .col-md-6 {
                padding-left: 2rem; /* 增加文字列左内边距 */
            }
        }
        
        /* 性能优化：减少重排版和重绘 */
        .cart-item-image, .mobile-item-image {
            will-change: transform;
            backface-visibility: hidden;
            transform: translateZ(0);
        }
        
        .quantity-controls {
            will-change: contents;
        }
        
        @media (max-width: 768px) {
            .wechat-qr-image {
                max-width: 180px;
            }
            .col-md-1{
                margin-right: 30px; /* 增加桌面端图片列的右间距 */
            }
            
            .modal-dialog {
                margin: 1rem;
            }
            
            .wechat-qr-container {
                padding: 15px;
            }
            
            /* 移动端性能优化 */
            .cart-item {
                transform: translateZ(0);
            }
        }

        @media (max-width: 768px) {
            .cart-container {
                margin: 0.5rem;
                padding: 1rem;
                border-radius: 8px;
            }
            
            .cart-item {
                padding: 1rem 0;
            }
            
            .cart-item:hover {
                background-color: #f8f9fa;
                border-radius: 8px;
                margin: 0 -1rem;
                padding: 1rem;
            }
            
            .quantity-controls-mobile {
                border-radius: 18px;
                padding: 2px;
                min-width: 85px;
            }
            
            .quantity-controls-mobile .quantity-btn {
                width: 26px;
                height: 26px;
                font-size: 14px;
            }
            
            .quantity-controls-mobile .quantity-display {
                font-size: 14px;
                padding: 4px 6px;
                min-width: 25px;
            }
            
            .total-price {
                font-size: 1.5rem;
            }
            
            .total-section {
                padding: 1rem;
                margin-top: 1rem;
            }
            
            .total-section .row {
                text-align: center;
            }
            
            .total-section .col-md-6 {
                margin-bottom: 1rem;
            }
            
            #checkoutBtn {
                width: 100%;
                padding: 12px;
                font-size: 16px;
            }
        }