body {
    background: #f8f8fb;
    font-family: 'Segoe UI', 'PingFang SC', Arial, sans-serif;
    margin: 0;
    padding-bottom: 70px;
}

.cart-container {
    max-width: 540px;
    margin: 20px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0px 6px 40px rgba(0, 0, 0, 0.07);
    padding: 10px 20px 24px 20px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0 10px 0;
}

.header-left {
    font-weight: bold;
    font-size: 18px;
    color: #ea1a26;
}

.back-btn {
    color: #222;
    font-size: 18px;
    text-decoration: none;
    margin-right: 8px;
}

/* ===== 订单模式信息卡 ===== */
.order-mode-card {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid #fdd;
}

.mode-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #fb565a, #ea1a26);
}

.mode-badge i {
    font-size: 12px;
}

.mode-card-body {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

.mode-info-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mode-info-row i {
    color: #ea1a26;
    width: 16px;
    text-align: center;
    font-size: 12px;
}

.mode-info-row .mode-info-value {
    color: #444;
    font-weight: 500;
}

/* ===== 购物车列表 ===== */
.cart-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cart-list-item {
    padding: 9px 0 9px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 13px;
}

.cart-img-wrap {
    width: 64px;
    height: 64px;
    background: #fafafd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-img-wrap img {
    max-width: 56px;
    max-height: 54px;
}

.cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-title {
    font-size: 15px;
    font-weight: 600;
    color: #262626;
    line-height: 1.15;
    word-break: break-all;
}

.cart-ctrls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-ctrl-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f2f2f2;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background .15s;
    color: #ea1a26;
    font-weight: bold;
}

.cart-ctrl-btn:active {
    background: #ffe0e4;
}

.cart-qty {
    width: 36px;
    text-align: center;
    font-size: 16px;
}

.cart-price {
    font-size: 17px;
    color: #ea1a26;
    font-weight: bold;
}

.del-btn {
    background: transparent;
    border: none;
    color: #b9b9b9;
    font-size: 18px;
    cursor: pointer;
    margin-left: 8px;
}

.cart-empty {
    text-align: center;
    color: #999;
    padding: 60px 0 40px;
    font-size: 14px;
}

.bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    height: 50px;
    background: #fff;
    box-shadow: 0 -2px 16px rgba(234, 26, 39, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 34px;
}

.pay-btn {
    background: linear-gradient(100deg, #fb565a 0%, #ea1a26 54%, #f75d3f 100%);
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 700;
    padding: 0 28px;
    height: 36px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(234, 26, 39, 0.15);
    cursor: pointer;
    position: relative;
    transition: box-shadow .15s, background .2s, transform .16s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.pay-btn:active {
    transform: scale(0.96);
    box-shadow: 0 1px 5px rgba(234, 26, 39, 0.10);
}

.pay-btn:focus {
    outline: 2px solid #faacac;
}

.pay-btn:disabled {
    background: linear-gradient(100deg, #eee, #f5f5f5);
    color: #bbb;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(0.2);
}

.pay-btn .fa {
    margin-right: 8px;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .cart-container {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
    .bottom-bar {
        padding: 0 10px;
    }
}

/* ===== 购物车门店分组 ===== */
.cart-store-group {
    margin-top: 10px;
}

.cart-store-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0 6px 0;
    border-bottom: 1px dashed #e8e8e8;
}

.cart-store-header i {
    color: #667eea;
    font-size: 13px;
}

.cart-store-name {
    font-size: 15px;
    font-weight: 600;
    color: #444;
}

.cart-store-subtotal {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 4px 0 8px 0;
    border-bottom: 1px solid #eee;
}

.cart-store-subtotal-label {
    font-size: 12px;
    color: #999;
}

.cart-store-subtotal-value {
    font-size: 15px;
    font-weight: 600;
    color: #ea1a26;
}

/* ===== 订单模式卡片折叠 ===== */
.mode-card-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-card-toggle {
    width: 24px;
    height: 24px;
    padding: 0px;
    background-clip: content-box;
    box-sizing: content-box;
    border: none;
    background: rgba(234, 26, 38, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ea1a26;
    font-size: 11px;
    transition: all 0.25s;
}

.mode-card-toggle:hover {
    background: rgba(234, 26, 38, 0.2);
}

.mode-card-toggle.collapsed i {
    transform: rotate(180deg);
}

.mode-card-collapse {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    max-height: 300px;
    opacity: 1;
}

.mode-card-collapse.collapsed {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.15s ease;
}
