/* 购物车标题 */
.cart-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/beijing-1.png');
    background-size: cover;
    background-position: center;
    padding: 40px 0;
    color: white;
    text-align: center;
}

.cart-header h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-family: "STXingkai", "华文行楷", serif;
}

.cart-header h1 i {
    margin-right: 10px;
}

/* 步骤条 */
.cart-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    color: rgba(255,255,255,0.6);
}

.step.active {
    color: white;
}

.step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.step.active .step-num {
    background: var(--primary-color);
}

.step-line {
    width: 100px;
    height: 2px;
    background: rgba(255,255,255,0.2);
    margin: 0 10px;
}

.step-text {
    font-size: 0.9rem;
}

/* 主要内容 */
.cart-container {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 400px;
}

/* 购物车列表 */
.cart-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-header-row {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: #666;
}

.cart-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: #f8f9fa;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-info img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.info-content h3 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.info-content p {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.price {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

/* 数量控制 */
.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-control button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.quantity-control input {
    width: 50px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.subtotal {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.btn-delete {
    border: none;
    background: none;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    color: #dc3545;
}

/* 价格汇总 */
.cart-summary {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.cart-summary h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
}

.discount {
    color: #52c41a;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 1.1rem;
}

.total {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
}

.btn-checkout {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background: var(--primary-dark);
}

.summary-tips {
    color: #666;
    font-size: 0.9rem;
}

.summary-tips p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-tips i {
    color: var(--primary-color);
}

/* 推荐商品 */
.recommendations {
    padding: 40px 0;
    background: white;
}

.recommendations h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
    font-family: "STXingkai", "华文行楷", serif;
}

.recommend-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.recommend-item:hover {
    transform: translateY(-5px);
}

.recommend-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-info {
    padding: 15px;
}

.item-info h3 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.item-info p {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 0.9rem;
}

.item-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.item-price .price {
    font-size: 1.2rem;
}

.btn-add {
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add:hover {
    background: var(--primary-dark);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .cart-steps {
        display: none;
    }

    .product-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-info img {
        width: 100%;
        height: 150px;
    }

    .quantity-control {
        margin: 10px 0;
    }

    .cart-header-row {
        display: none;
    }

    .cart-item .row {
        flex-direction: column;
    }

    .cart-item .col-2 {
        width: 100%;
        text-align: left;
        margin: 5px 0;
    }

    .recommend-item {
        margin-bottom: 20px;
    }
} 