
    
    /* ================================================
   购物车页面 - 现代化金色主题设计
   与商品详情页保持一致的视觉风格
   ================================================ */

:root {
    /* 金色主题色系 */
    --gold-primary: #d4af37;
    --gold-light: #f4e4a6;
    --gold-dark: #b8941f;
    
    /* 中性色系 */
    --black: #000000;
    --white: #FFFFFF;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* 功能色 */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* 背景色 */
    --bg-light: #f9f9f9;
    --bg-section: #f5f5f5;
    
    /* 边框和阴影 */
    --border: #e5e5e5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.15);
    
    /* 过渡动画 */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* 主容器 */
.cart-container {
    max-width: 1300px;
    margin: 30px auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 面包屑导航 */
.breadcrumb-nav {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 25px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.breadcrumb-nav::-webkit-scrollbar {
    display: none;
}

.breadcrumb-link {
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.breadcrumb-link:hover {
    color: var(--gold-primary);
}

.breadcrumb-separator {
    color: var(--gray-400);
    white-space: nowrap;
}

.breadcrumb-current {
    color: var(--gold-primary);
    font-weight: 500;
    white-space: nowrap;
}

/* 页面标题 */
.cart-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.cart-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
    display: inline-block;
    word-break: break-word;
}

.cart-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    border-radius: 2px;
}

.cart-subtitle {
    color: var(--gray-500);
    font-size: 16px;
    margin-top: 15px;
    line-height: 1.5;
}

/* 空购物车状态 */
.empty-cart-container {
    background: var(--bg-section);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-top: 40px;
    box-sizing: border-box;
}

.empty-cart-icon {
    font-size: 80px;
    color: var(--gray-300);
    margin-bottom: 25px;
}

.empty-cart-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 15px;
    word-break: break-word;
    padding: 0 10px;
}

.empty-cart-message {
    color: var(--gray-500);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    word-break: break-word;
    padding: 0 10px;
}

.continue-shopping-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--white);
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-gold);
    border: none;
    cursor: pointer;
    justify-content: center;
    min-height: 52px;
    box-sizing: border-box;
    max-width: 100%;
}

.continue-shopping-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.3);
}

.continue-shopping-btn::before {
    content: '←';
    font-size: 18px;
}

/* 购物车内容区域 */
.cart-content-wrapper {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-sizing: border-box;
}

/* 购物车头部 */
.cart-content-header {
    background: var(--bg-section);
    padding: 25px 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-sizing: border-box;
}

.cart-item-count {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 18px;
    word-break: break-word;
}

.cart-item-count span {
    color: var(--gold-primary);
    font-size: 20px;
}

.cart-summary-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-primary);
    word-break: break-word;
}

/* 购物车表格 - PC端样式 */
.cart-items-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.cart-items-table thead {
    background: var(--gray-50);
}

.cart-items-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-items-table td {
    padding: 25px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    box-sizing: border-box;
    overflow: hidden;
}

.cart-items-table tr:last-child td {
    border-bottom: none;
}

.cart-items-table tr:hover {
    background: var(--gray-50);
}

/* 商品信息列 */
.cart-item-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-width: 0;
    max-width: 100%;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--white);
    box-sizing: border-box;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
    display: block;
}

.cart-item-image:hover img {
    transform: scale(1.05);
}

.cart-item-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.cart-item-title {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-item-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
    display: block;
}

.cart-item-title a:hover {
    color: var(--gold-primary);
}

.cart-item-variant {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    word-break: break-word;
}

.cart-item-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-500);
    font-size: 13px;
    padding: 4px 10px;
    background: var(--gray-100);
    border-radius: 12px;
    flex-wrap: wrap;
    max-width: 100%;
}

/* 价格列 */
.cart-item-price {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 16px;
    min-width: 120px;
    word-break: break-word;
}

/* 数量控制列 */
.cart-item-quantity {
    min-width: 160px;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border-radius: 10px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    box-sizing: border-box;
    max-width: 100%;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 300;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    flex-shrink: 0;
    touch-action: manipulation;
}

.quantity-btn:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--white);
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    -moz-appearance: textfield;
    outline: none;
    box-sizing: border-box;
    flex-shrink: 0;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

/* 小计列 */
.cart-item-subtotal {
    font-weight: 700;
    color: var(--gold-primary);
    font-size: 18px;
    min-width: 120px;
    word-break: break-word;
}

/* 操作列 */
.cart-item-actions {
    min-width: 100px;
}

.remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--danger);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-normal);
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    box-sizing: border-box;
    white-space: nowrap;
    flex-shrink: 0;
    justify-content: center;
}

.remove-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    transform: translateY(-1px);
}

/* 购物车底部操作区 */
.cart-actions-container {
    padding: 30px;
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-sizing: border-box;
}

.cart-update-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--gray-800);
    border: 2px solid var(--border);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-normal);
    box-sizing: border-box;
    justify-content: center;
    min-height: 52px;
    flex: 1;
    min-width: 200px;
}

.cart-update-btn:hover {
    background: var(--gray-100);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.cart-update-btn::before {
    content: '🔄';
    font-size: 18px;
}

.cart-checkout-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--white);
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-gold);
    border: none;
    cursor: pointer;
    justify-content: center;
    min-height: 52px;
    box-sizing: border-box;
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.cart-checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.3);
}

.cart-checkout-btn::before {
    content: '→';
    font-size: 18px;
    font-weight: 300;
}

/* 购物车汇总信息 */
.cart-summary-container {
    background: var(--bg-section);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    box-sizing: border-box;
}

.cart-summary-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold-light);
    word-break: break-word;
}

.cart-summary-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}

.summary-label {
    color: var(--gray-600);
    font-size: 15px;
    word-break: break-word;
}

.summary-value {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 16px;
    word-break: break-word;
    text-align: right;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 2px solid var(--border);
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.total-label {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    word-break: break-word;
}

.total-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--gold-primary);
    word-break: break-word;
}

/* 消息提示 */
.cart-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    animation: slideIn 0.3s ease;
    box-sizing: border-box;
    word-break: break-word;
}

.cart-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-left: 4px solid var(--success);
}

.cart-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--danger);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 响应式设计（移动端优化） ==================== */

/* 平板电脑 (1024px以下) */
@media (max-width: 1024px) {
    .cart-container {
        padding: 15px;
    }
    
    .cart-title {
        font-size: 32px;
    }
    
    .cart-item-info {
        min-width: 280px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-content-header {
        padding: 20px;
    }
    
    .cart-actions-container {
        padding: 25px;
    }
}

/* 平板 (768px以下) - 移动端优化：改为卡片式布局 */
@media (max-width: 768px) {
    .cart-container {
        padding: 12px;
        margin: 20px auto;
        min-width: 0;
    }
    
    .breadcrumb-nav {
        font-size: 13px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    
    .cart-header {
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .cart-title {
        font-size: 26px;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .cart-title::after {
        width: 60px;
        height: 2px;
        bottom: -8px;
    }
    
    .cart-subtitle {
        font-size: 14px;
        margin-top: 10px;
        color: var(--gray-600);
        line-height: 1.5;
    }
    
    .empty-cart-container {
        padding: 40px 20px;
        margin-top: 20px;
        border-radius: 12px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .empty-cart-icon {
        font-size: 60px;
        margin-bottom: 20px;
    }
    
    .empty-cart-title {
        font-size: 20px;
    }
    
    .empty-cart-message {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .continue-shopping-btn {
        padding: 14px 28px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
    }
    
    /* 购物车表格移动端重构 - 改为卡片式布局 */
    .cart-content-wrapper {
        border-radius: 12px;
        overflow: hidden;
        margin: 0 10px;
    }
    
    .cart-items-table {
        display: none; /* 隐藏桌面端表格 */
    }
    
    /* 移动端卡片布局 */
    .cart-mobile-items {
        display: block;
        width: 100%;
        padding: 0;
    }
    
    .cart-mobile-item {
        display: flex;
        flex-direction: column;
        padding: 20px;
        border-bottom: 2px solid var(--border);
        background: var(--white);
        position: relative;
        gap: 16px;
        box-sizing: border-box;
    }
    
    .cart-mobile-item:last-child {
        border-bottom: none;
    }
    
    /* 商品信息区域 - 移动端 */
    .cart-mobile-item-header {
        display: flex;
        gap: 16px;
        width: 100%;
        align-items: flex-start;
    }
    
    .cart-mobile-item-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid var(--border);
        background: var(--white);
    }
    
    .cart-mobile-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .cart-mobile-item-details {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .cart-mobile-item-title {
        font-size: 15px;
        font-weight: 600;
        color: var(--gray-900);
        margin-bottom: 6px;
        line-height: 1.4;
        word-break: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .cart-mobile-item-title a {
        color: inherit;
        text-decoration: none;
    }
    
    .cart-mobile-item-variant {
        color: var(--gray-600);
        font-size: 13px;
        margin-bottom: 6px;
        word-break: break-word;
    }
    
    .cart-mobile-item-stock {
        color: var(--gray-500);
        font-size: 13px;
        display: flex;
        align-items: center;
        gap: 5px;
        margin-top: 8px;
    }
    
    /* 价格和操作区域 - 移动端 */
    .cart-mobile-item-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        width: 100%;
        align-items: center;
    }
    
    .cart-mobile-price-section,
    .cart-mobile-quantity-section,
    .cart-mobile-subtotal-section,
    .cart-mobile-actions-section {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .cart-mobile-price-label,
    .cart-mobile-quantity-label,
    .cart-mobile-subtotal-label,
    .cart-mobile-actions-label {
        font-size: 13px;
        color: var(--gray-600);
        font-weight: 500;
    }
    
    .cart-mobile-price-value {
        font-size: 16px;
        font-weight: 600;
        color: var(--gray-900);
        word-break: break-word;
    }
    
    .cart-mobile-subtotal-value {
        font-size: 18px;
        font-weight: 700;
        color: var(--gold-primary);
        word-break: break-word;
    }
    
    /* 数量控制 - 移动端 */
    .cart-mobile-quantity-controls {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--white);
        border-radius: 8px;
        padding: 4px;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border);
        width: 100%;
        max-width: 180px;
        justify-content: center;
    }
    
    .cart-mobile-quantity-btn {
        width: 40px;
        height: 40px;
        background: var(--white);
        border: 1.5px solid var(--border);
        border-radius: 6px;
        font-size: 18px;
        color: var(--gray-700);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        touch-action: manipulation;
    }
    
    .cart-mobile-quantity-input {
        width: 50px;
        height: 40px;
        text-align: center;
        font-size: 16px;
        font-weight: 600;
        color: var(--gray-900);
        border: 1.5px solid var(--border);
        border-radius: 6px;
        background: var(--white);
        -moz-appearance: textfield;
        outline: none;
        flex-shrink: 0;
        box-sizing: border-box;
    }
    
    .cart-mobile-quantity-input::-webkit-outer-spin-button,
    .cart-mobile-quantity-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    
    /* 删除按钮 - 移动端 */
    .cart-mobile-remove-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        color: var(--danger);
        text-decoration: none;
        padding: 10px 16px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        background: rgba(239, 68, 68, 0.05);
        border: 1px solid rgba(239, 68, 68, 0.1);
        width: 100%;
        max-width: 200px;
        box-sizing: border-box;
        touch-action: manipulation;
    }
    
    /* 购物车头部 - 移动端 */
    .cart-content-header {
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .cart-item-count {
        font-size: 16px;
        order: 1;
    }
    
    .cart-summary-total {
        font-size: 22px;
        order: 2;
    }
    
    /* 操作按钮区域 - 移动端 */
    .cart-actions-container {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        margin: 0 10px;
    }
    
    .cart-update-btn,
    .cart-checkout-btn {
        width: 100%;
        justify-content: center;
        padding: 16px;
        font-size: 15px;
        min-width: auto;
        max-width: 100%;
    }
    
    /* 购物车汇总 - 移动端 */
    .cart-summary-container {
        padding: 24px;
        margin-top: 30px;
        border-radius: 12px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .cart-summary-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .cart-summary-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .summary-item {
        padding: 12px 0;
        font-size: 14px;
    }
    
    .summary-total {
        padding: 16px 0;
        margin-top: 15px;
    }
    
    .total-label {
        font-size: 18px;
    }
    
    .total-value {
        font-size: 22px;
    }
}

/* 手机 (480px以下) */
@media (max-width: 480px) {
    .cart-container {
        padding: 10px;
        margin: 15px auto;
    }
    
    .breadcrumb-nav {
        font-size: 12px;
        margin-bottom: 16px;
    }
    
    .cart-title {
        font-size: 24px;
        padding: 0 10px;
    }
    
    .cart-subtitle {
        font-size: 13px;
        padding: 0 15px;
    }
    
    .empty-cart-container {
        padding: 30px 16px;
    }
    
    .empty-cart-icon {
        font-size: 50px;
    }
    
    .empty-cart-title {
        font-size: 18px;
    }
    
    .empty-cart-message {
        font-size: 13px;
    }
    
    /* 购物车商品项 */
    .cart-mobile-item {
        padding: 16px;
        gap: 14px;
    }
    
    .cart-mobile-item-header {
        gap: 12px;
    }
    
    .cart-mobile-item-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-mobile-item-title {
        font-size: 14px;
    }
    
    .cart-mobile-item-variant,
    .cart-mobile-item-stock {
        font-size: 12px;
    }
    
    /* 数量控制 */
    .cart-mobile-quantity-controls {
        max-width: 160px;
    }
    
    .cart-mobile-quantity-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .cart-mobile-quantity-input {
        width: 45px;
        height: 36px;
        font-size: 15px;
    }
    
    /* 操作按钮 */
    .cart-mobile-remove-btn {
        padding: 8px 14px;
        font-size: 13px;
        max-width: 180px;
    }
    
    /* 购物车汇总 */
    .cart-summary-container {
        padding: 20px;
    }
    
    .summary-item {
        font-size: 13px;
    }
    
    .total-label {
        font-size: 16px;
    }
    
    .total-value {
        font-size: 20px;
    }
    
    .cart-mobile-item-body {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* 小手机 (360px以下) */
@media (max-width: 360px) {
    .cart-title {
        font-size: 22px;
    }
    
    .cart-subtitle {
        font-size: 12px;
    }
    
    .cart-mobile-item-image {
        width: 65px;
        height: 65px;
    }
    
    .cart-mobile-item-title {
        font-size: 13px;
    }
    
    .cart-mobile-quantity-controls {
        max-width: 150px;
    }
    
    .cart-mobile-quantity-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
    
    .cart-mobile-quantity-input {
        width: 40px;
        height: 34px;
        font-size: 14px;
    }
    
    .cart-mobile-remove-btn {
        font-size: 12px;
        padding: 8px 12px;
        max-width: 160px;
    }
    
    .cart-summary-container {
        padding: 16px;
    }
}

/* 移动端触摸优化 */
@media (max-width: 768px) {
    /* 增加触摸目标大小 */
    .quantity-btn,
    .cart-mobile-quantity-btn,
    .remove-btn,
    .cart-mobile-remove-btn,
    .cart-update-btn,
    .cart-checkout-btn,
    .continue-shopping-btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* 防止iOS缩放输入框 */
    input[type="number"],
    input[type="text"] {
        font-size: 16px !important;
        -webkit-appearance: none;
        appearance: none;
    }
    
    /* 去除点击高亮 */
    .cart-content-wrapper,
    .cart-mobile-item,
    .quantity-btn,
    .cart-mobile-quantity-btn,
    .remove-btn,
    .cart-mobile-remove-btn,
    .cart-update-btn,
    .cart-checkout-btn {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 平滑滚动 */
    .cart-container {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }
    
    /* 防止长按菜单 */
    .cart-mobile-item-title a,
    .cart-item-title a,
    .cart-mobile-item-image img,
    .cart-item-image img {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* 改善触摸反馈 */
    .cart-update-btn:active,
    .cart-checkout-btn:active,
    .cart-mobile-remove-btn:active,
    .cart-mobile-quantity-btn:active {
        transform: scale(0.98);
        transition: var(--transition-fast);
    }
}

/* 加载状态 */
.cart-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 隐藏移动端元素在PC端 */
@media (min-width: 769px) {
    .cart-mobile-items {
        display: none !important;
    }
}
    