/* 小牛商城2025移动端组件样式 */

/* 媒体查询 - 移动设备 */
@media (max-width: 768px) {
    /* ========== 下拉刷新组件 ========== */
    .pull-to-refresh-indicator {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        transition: transform 0.2s;
        z-index: 990;
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: var(--m-shadow-sm);
        border-bottom-left-radius: var(--m-radius-md);
        border-bottom-right-radius: var(--m-radius-md);
    }
    
    .pull-to-refresh-indicator.ready .m-spinner {
        transform: rotate(180deg);
        border-top-color: var(--m-accent);
    }
    
    .pull-to-refresh-indicator.refreshing .m-spinner {
        animation: m-spin 0.8s linear infinite;
    }
    
    /* ========== 水波纹效果 ========== */
    .m-ripple {
        position: relative;
        overflow: hidden;
        transform: translate3d(0, 0, 0);
    }
    
    .m-ripple-effect {
        position: absolute;
        border-radius: 50%;
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.4);
        transform: scale(0);
        opacity: 1;
        animation: m-ripple 0.6s;
        pointer-events: none;
    }
    
    @keyframes m-ripple {
        0% {
            transform: scale(0);
            opacity: 1;
        }
        100% {
            transform: scale(40);
            opacity: 0;
        }
    }
    
    /* ========== 加载状态 ========== */
    .loading .btn-loading-indicator {
        display: inline-block;
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: #fff;
        animation: m-spin 0.8s linear infinite;
        margin-right: 6px;
        vertical-align: text-bottom;
    }
    
    /* ========== 增强Layui组件样式 ========== */
    .m-layer {
        border-radius: var(--m-radius-lg) !important;
        overflow: hidden;
    }
    
    .m-layer .layui-layer-title {
        background-color: var(--m-surface) !important;
        border-bottom: 1px solid var(--m-border) !important;
        padding: 12px 16px !important;
        font-size: 18px !important;
        font-weight: 500;
        height: auto !important;
        line-height: 1.5 !important;
    }
    
    .m-layer .layui-layer-content {
        padding: 16px !important;
    }
    
    .m-layer .layui-layer-btn {
        padding: 12px 16px !important;
        border-top: 1px solid var(--m-border) !important;
        background-color: var(--m-surface-variant) !important;
    }
    
    .m-layer .layui-layer-btn a {
        margin: 0 6px !important;
        padding: 8px 16px !important;
        border-radius: var(--m-radius-md) !important;
        font-size: 15px !important;
    }
    
    .m-layer .layui-layer-btn .layui-layer-btn0 {
        background-color: var(--m-primary) !important;
        border-color: var(--m-primary) !important;
    }
    
    /* ========== 左滑删除 ========== */
    .swipe-delete-confirm {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 100px;
        background-color: var(--m-error);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 22px;
        transition: transform 0.2s ease;
        transform: translateX(100%);
        z-index: 1;
    }
    
    .cart-item {
        position: relative;
        transition: transform 0.2s ease;
    }
    
    .cart-item.delete-ready {
        background-color: rgba(255, 82, 82, 0.1);
    }
    
    .cart-item[style*="translateX(-100px)"] .swipe-delete-confirm {
        transform: translateX(0);
    }
    
    /* ========== 懒加载效果 ========== */
    .lazyload {
        opacity: 0;
        transition: opacity 0.5s;
    }
    
    .lazyload.lazy-loaded {
        opacity: 1;
    }
    
    /* ========== 页面过渡效果 ========== */
    .page-ready {
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* ========== 商品卡片优化 ========== */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0;
    }
    
    .product-card {
        margin-bottom: 0;
        border-radius: var(--m-radius-md);
        box-shadow: var(--m-shadow-sm);
        overflow: hidden;
        background-color: var(--m-surface);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .product-card:active {
        transform: scale(0.98);
        box-shadow: var(--m-shadow-md);
    }
    
    .product-image {
        height: 0;
        padding-bottom: 100%;
        position: relative;
        overflow: hidden;
    }
    
    .product-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .product-card:active .product-image img {
        transform: scale(1.05);
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-category {
        font-size: 11px;
        color: var(--m-text-tertiary);
        margin-bottom: 4px;
    }
    
    .product-name {
        font-size: 14px;
        font-weight: 500;
        margin: 0 0 6px;
        line-height: 1.3;
        color: var(--m-text-primary);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 36px;
    }
    
    .product-price {
        font-weight: 600;
        color: var(--m-accent);
        font-size: 16px;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
    }
    
    .original-price {
        text-decoration: line-through;
        color: var(--m-text-tertiary);
        font-size: 12px;
        margin-left: 6px;
        font-weight: normal;
    }
    
    .product-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
        color: var(--m-text-secondary);
    }
    
    .btn-cart {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: var(--m-primary-light);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(79, 122, 255, 0.3);
    }
    
    .btn-cart:active {
        transform: scale(0.9);
        background-color: var(--m-primary);
    }
    
    /* ========== 商品详情页优化 ========== */
    .breadcrumb {
        padding: 10px 0;
        font-size: 12px;
        color: var(--m-text-secondary);
        white-space: nowrap;
        overflow-x: auto;
        margin-bottom: 10px;
    }
    
    .product-detail {
        flex-direction: column;
        background-color: var(--m-surface);
        border-radius: var(--m-radius-md);
        overflow: hidden;
        margin-bottom: 16px;
    }
    
    .product-gallery {
        width: 100%;
        position: relative;
    }
    
    .product-main-image {
        width: 100%;
        height: 0;
        padding-bottom: 100%;
        position: relative;
        overflow: hidden;
    }
    
    .product-main-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product-thumbnails {
        display: flex;
        padding: 10px;
        overflow-x: auto;
        gap: 8px;
    }
    
    .product-thumbnail {
        width: 48px;
        height: 48px;
        border-radius: var(--m-radius-sm);
        overflow: hidden;
        opacity: 0.6;
        transition: opacity 0.2s ease;
        flex-shrink: 0;
        border: 1px solid var(--m-border);
    }
    
    .product-thumbnail.active {
        opacity: 1;
        border-color: var(--m-primary);
    }
    
    .product-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product-info-detail {
        padding: 16px;
    }
    
    .product-title-detail {
        font-size: 18px;
        font-weight: 600;
        margin: 0 0 10px;
        line-height: 1.4;
    }
    
    .product-price-detail {
        font-size: 20px;
        font-weight: 700;
        color: var(--m-accent);
        margin-bottom: 12px;
        display: flex;
        align-items: center;
    }
    
    .original-price-detail {
        text-decoration: line-through;
        color: var(--m-text-tertiary);
        font-size: 14px;
        margin-left: 8px;
        font-weight: normal;
    }
    
    .product-desc {
        font-size: 14px;
        color: var(--m-text-secondary);
        line-height: 1.5;
        margin-bottom: 16px;
        border-top: 1px dashed var(--m-border);
        border-bottom: 1px dashed var(--m-border);
        padding: 10px 0;
    }
    
    .product-meta-info {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 16px;
        gap: 8px;
    }
    
    .product-meta-item {
        font-size: 12px;
        color: var(--m-text-secondary);
        background-color: var(--m-surface-variant);
        padding: 4px 10px;
        border-radius: var(--m-radius-full);
    }
    
    .product-quantity {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .product-quantity-label {
        font-size: 14px;
        color: var(--m-text-secondary);
        margin-right: 10px;
    }
    
    .quantity-selector {
        display: flex;
        align-items: center;
        border: 1px solid var(--m-border);
        border-radius: var(--m-radius-sm);
        overflow: hidden;
    }
    
    .quantity-btn {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--m-surface-variant);
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        user-select: none;
    }
    
    .quantity-input {
        width: 50px;
        text-align: center;
        border: none;
        height: 36px;
        font-size: 14px;
        padding: 0;
    }
    
    .product-actions-detail {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .product-actions-detail button {
        flex: 1;
        border-radius: var(--m-radius-md);
        height: 44px;
        font-size: 15px;
    }
    
    .product-tabs {
        background-color: var(--m-surface);
        border-radius: var(--m-radius-md);
        margin-bottom: 16px;
        overflow: hidden;
    }
    
    .product-tabs .layui-tab-title {
        display: flex;
    }
    
    .product-tabs .layui-tab-title li {
        flex: 1;
        font-size: 14px;
    }
    
    .product-tabs .layui-tab-content {
        padding: 15px;
    }
    
    .rich-content {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .rich-content img {
        max-width: 100%;
        height: auto;
    }
    
    /* ========== 购物车优化 ========== */
    .cart-container {
        background-color: var(--m-surface);
        border-radius: var(--m-radius-md);
        overflow: hidden;
        margin-bottom: 16px;
    }
    
    .cart-header {
        padding: 16px;
        border-bottom: 1px solid var(--m-border);
    }
    
    .cart-header h2 {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
    }
    
    .cart-content {
        padding: 0;
    }
    
    .cart-table {
        margin: 0;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: 12px;
        border-bottom: 1px solid var(--m-border);
    }
    
    .cart-table td {
        border: none;
        padding: 8px 0;
    }
    
    .cart-table td:nth-child(1) {
        width: 80px;
        padding-right: 12px;
    }
    
    .cart-table td:nth-child(2) {
        width: calc(100% - 80px);
    }
    
    .cart-table td:nth-child(3) {
        width: 50%;
        font-weight: 600;
        color: var(--m-accent);
    }
    
    .cart-table td:nth-child(4) {
        width: 50%;
    }
    
    .cart-table td:nth-child(5) {
        width: 50%;
        font-weight: 700;
        color: var(--m-accent);
    }
    
    .cart-table td:nth-child(6) {
        width: 50%;
        text-align: right;
    }
    
    .cart-product-img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: var(--m-radius-sm);
        border: 1px solid var(--m-border);
    }
    
    .cart-product-name {
        font-size: 14px;
        font-weight: 500;
        color: var(--m-text-primary);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
    }
    
    .cart-quantity {
        display: flex;
        height: 32px;
    }
    
    .cart-quantity button {
        width: 32px;
        height: 32px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cart-quantity input {
        width: 40px;
        text-align: center;
        padding: 0;
        height: 32px;
        font-size: 14px;
    }
    
    .cart-footer {
        padding: 16px;
        border-top: 1px solid var(--m-border);
        background-color: var(--m-surface-variant);
    }
    
    .cart-footer-buttons {
        display: flex;
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .cart-footer-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .total-price {
        font-size: 16px;
        font-weight: 500;
    }
    
    .total-price span {
        font-size: 20px;
        font-weight: 700;
        color: var(--m-accent);
    }
    
    .checkout-btn {
        border-radius: var(--m-radius-md);
        height: 44px;
        padding: 0 24px;
    }
    
    .empty-cart {
        padding: 60px 20px;
        text-align: center;
    }
    
    .empty-cart i {
        font-size: 64px;
        color: var(--m-text-tertiary);
        margin-bottom: 16px;
        display: block;
    }
    
    .empty-cart p {
        font-size: 16px;
        color: var(--m-text-secondary);
        margin-bottom: 24px;
    }
    
    /* 商品删除动画 */
    .cart-item.deleting {
        animation: slideOut 0.3s forwards;
    }
    
    @keyframes slideOut {
        to {
            transform: translateX(-100%);
            height: 0;
            padding: 0;
            margin: 0;
            opacity: 0;
        }
    }

    /* ========== 卡片样式 ========== */
    .m-card {
        background-color: var(--m-surface);
        border-radius: var(--m-radius-md);
        box-shadow: var(--m-shadow-sm);
        padding: var(--m-spacing-md);
        margin-bottom: var(--m-spacing-md);
        position: relative;
        overflow: hidden;
    }
    
    /* ========== 按钮样式 ========== */
    .m-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--m-radius-md);
        padding: var(--m-spacing-sm) var(--m-spacing-lg);
        font-weight: 500;
        transition: all var(--m-transition-normal);
        position: relative;
        overflow: hidden;
    }
    
    .m-btn-primary {
        background-color: var(--m-primary);
        color: white;
    }
    
    .m-btn-outline {
        background-color: transparent;
        border: 1px solid var(--m-primary);
        color: var(--m-primary);
    }

    /* ========== 商品卡片样式 ========== */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0;
        margin-bottom: var(--m-spacing-md);
        position: relative;
    }
    
    .products-loading {
        opacity: 0.7;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .product-card {
        background-color: var(--m-surface);
        border-radius: var(--m-radius-md);
        overflow: hidden;
        border: 1px solid var(--m-border);
        box-shadow: var(--m-shadow-sm);
        position: relative;
        transition: transform var(--m-transition-normal), box-shadow var(--m-transition-normal);
        height: 100%;
        display: flex;
        flex-direction: column;
        opacity: 0;
        transform: translateY(20px);
    }
    
    .product-card.animate-fadeIn {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .product-image {
        height: 0;
        padding-bottom: 100%;
        position: relative;
        overflow: hidden;
    }
    
    .product-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .product-card:active .product-image img {
        transform: scale(1.05);
    }
    
    .product-badge {
        position: absolute;
        top: 8px;
        left: 8px;
        background-color: var(--m-accent);
        color: white;
        font-size: 11px;
        font-weight: 600;
        padding: 3px 8px;
        border-radius: 4px;
        z-index: 1;
        box-shadow: 0 2px 4px rgba(255, 92, 133, 0.3);
    }
    
    .product-info {
        padding: 10px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .product-category {
        font-size: 10px;
        color: var(--m-text-tertiary);
        margin-bottom: 4px;
        text-transform: uppercase;
    }
    
    .product-name {
        font-size: 13px;
        font-weight: 500;
        line-height: 1.3;
        height: 34px;
        margin-bottom: 4px;
        color: var(--m-text-primary);
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .product-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
    }
    
    .product-price {
        color: var(--m-accent);
        font-size: 14px;
        font-weight: 600;
    }
    
    .product-sales {
        font-size: 11px;
        color: var(--m-text-tertiary);
    }
    
    /* ========== 分页样式 ========== */
    .pagination-container {
        margin: 20px 0;
        display: flex;
        justify-content: center;
    }
    
    .pagination {
        display: flex;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .pagination a,
    .pagination span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 32px;
        height: 32px;
        margin: 0 3px;
        border-radius: var(--m-radius-md);
        transition: all var(--m-transition-normal);
        font-size: 13px;
    }
    
    .pagination a {
        background-color: var(--m-surface);
        color: var(--m-text-secondary);
        border: 1px solid var(--m-border);
    }
    
    .pagination a:hover {
        background-color: var(--m-surface-variant);
        border-color: var(--m-primary-light);
        color: var(--m-primary);
    }
    
    .pagination span.current {
        background-color: var(--m-primary);
        color: white;
        border: none;
    }
    
    /* ========== 移动端分页导航 ========== */
    .mobile-category-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px 0;
        margin: 0 -15px 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background-color: var(--m-surface);
        border-bottom: 1px solid var(--m-border);
    }
    
    .mobile-category-nav::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-category-nav a {
        display: inline-block;
        padding: 8px 16px;
        margin: 0 5px;
        border-radius: var(--m-radius-full);
        font-size: 13px;
        font-weight: 500;
        color: var(--m-text-secondary);
        background-color: var(--m-surface-variant);
        white-space: nowrap;
        transition: all var(--m-transition-normal);
    }
    
    .mobile-category-nav a:first-child {
        margin-left: 15px;
    }
    
    .mobile-category-nav a:last-child {
        margin-right: 15px;
    }
    
    .mobile-category-nav a.active {
        background-color: var(--m-primary);
        color: white;
    }
    
    /* ========== 页面过渡动画 ========== */
    .page-left-in {
        animation: pageLeftIn 0.3s forwards;
    }
    
    .page-left-out {
        animation: pageLeftOut 0.3s forwards;
    }
    
    .page-right-in {
        animation: pageRightIn 0.3s forwards;
    }
    
    .page-right-out {
        animation: pageRightOut 0.3s forwards;
    }
    
    @keyframes pageLeftIn {
        from { transform: translateX(100%); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }
    
    @keyframes pageLeftOut {
        from { transform: translateX(0); opacity: 1; }
        to { transform: translateX(-30%); opacity: 0; }
    }
    
    @keyframes pageRightIn {
        from { transform: translateX(-30%); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }
    
    @keyframes pageRightOut {
        from { transform: translateX(0); opacity: 1; }
        to { transform: translateX(100%); opacity: 0; }
    }
    
    /* ======== 订单结算页面样式 ======== */
    .m-checkout-footer {
        margin-top: 16px;
        background-color: var(--m-surface);
        border-radius: var(--m-radius-md);
        padding: var(--m-spacing-lg);
        box-shadow: var(--m-shadow-sm);
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .total-info {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .total-count {
        font-size: 14px;
        color: var(--m-text-secondary);
    }
    
    .total-count span {
        color: var(--m-accent);
        font-weight: 600;
    }
    
    .total-price {
        font-size: 16px;
        color: var(--m-text-primary);
        font-weight: 500;
    }
    
    .total-price span {
        font-size: 24px;
        font-weight: 700;
        color: var(--m-accent);
    }
    
    .checkout-actions {
        display: flex;
        gap: 12px;
    }
    
    .checkout-actions .m-btn {
        flex: 1;
    }
    
    .m-btn-lg {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .submit-order {
        background-color: var(--m-accent) !important;
        box-shadow: 0 4px 8px rgba(255, 92, 133, 0.25);
    }
    
    .m-btn-loading {
        opacity: 0.8;
        pointer-events: none;
    }
    
    /* 收货地址样式 */
    .address-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .address-item {
        display: flex;
        padding: 16px;
        border-radius: var(--m-radius-md);
        border: 1px solid var(--m-border);
        transition: all var(--m-transition-normal);
        background-color: var(--m-surface-variant);
        position: relative;
        overflow: hidden;
    }
    
    .address-item.selected {
        border-color: var(--m-accent);
        background-color: rgba(255, 92, 133, 0.05);
    }
    
    .address-item::after {
        content: '';
        position: absolute;
        width: 6px;
        top: 0;
        bottom: 0;
        left: 0;
        background-color: var(--m-accent);
        opacity: 0;
        transition: opacity var(--m-transition-normal);
    }
    
    .address-item.selected::after {
        opacity: 1;
    }
    
    .address-radio {
        margin-right: 12px;
    }
    
    .address-content {
        flex: 1;
    }
    
    .address-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }
    
    .contact-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .contact-name {
        font-size: 16px;
        font-weight: 600;
        color: var(--m-text-primary);
    }
    
    .contact-phone {
        font-size: 14px;
        color: var(--m-text-secondary);
    }
    
    .address-badge {
        font-size: 11px;
        color: white;
        background-color: var(--m-accent);
        padding: 2px 6px;
        border-radius: var(--m-radius-full);
    }
    
    .address-detail {
        font-size: 14px;
        color: var(--m-text-secondary);
        line-height: 1.5;
    }
    
    .address-actions {
        display: flex;
        gap: 10px;
        margin-top: 16px;
    }
    
    .empty-address {
        text-align: center;
        padding: 30px 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .empty-address i {
        font-size: 48px;
        color: var(--m-text-tertiary);
    }
    
    .empty-address p {
        color: var(--m-text-secondary);
    }
    
    /* 商品列表样式 */
    .m-goods-list {
        display: flex;
        flex-direction: column;
    }
    
    .m-goods-item {
        display: flex;
        padding: 16px 0;
        border-bottom: 1px solid var(--m-border);
    }
    
    .m-goods-item:last-child {
        border-bottom: none;
    }
    
    .m-goods-image {
        width: 80px;
        height: 80px;
        margin-right: 12px;
        border-radius: var(--m-radius-sm);
        overflow: hidden;
        border: 1px solid var(--m-border);
    }
    
    .m-goods-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .m-goods-info {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .m-goods-name {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 8px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .m-goods-name a {
        color: var(--m-text-primary);
        text-decoration: none;
    }
    
    .m-goods-price {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
    }
    
    .m-goods-price .price {
        font-size: 16px;
        font-weight: 600;
        color: var(--m-accent);
    }
    
    .m-goods-price .quantity {
        font-size: 14px;
        color: var(--m-text-secondary);
    }
    
    .m-goods-subtotal {
        text-align: right;
        font-size: 14px;
        color: var(--m-text-secondary);
    }
    
    .m-goods-subtotal .subtotal {
        font-weight: 700;
        color: var(--m-accent);
    }
    
    /* 表单元素优化 */
    .m-form-item {
        margin-bottom: 0;
    }
    
    .m-textarea {
        border-radius: var(--m-radius-md);
        border-color: var(--m-border);
        transition: all var(--m-transition-normal);
        min-height: 80px;
    }
    
    .m-textarea:focus {
        border-color: var(--m-primary);
        box-shadow: 0 0 0 2px rgba(39, 86, 225, 0.1);
    }
    
    /* 抖动动画 */
    .shake-effect {
        animation: shake 0.6s ease-in-out;
    }
    
    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
        20%, 40%, 60%, 80% { transform: translateX(5px); }
    }
} 