/* 保留基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background: transparent;
    color: #333;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* 购物车样式 */
.cart-container {
    max-width: 800px;
    margin: 20px auto;
    background: rgba(25, 25, 35, 0.2);
    backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    transform: none;
}

.cart-header, .cart-footer {
    width: 100%;
    max-width: 700px;
    text-align: center;
}

.cart-header h2 {
    color: white;
    margin: 0;
}

.cart-items {
    padding: 20px 0;
}

.cart-item {
    display: grid;
    grid-template-columns: auto 100px 2fr 1fr 1fr 1fr auto;
    align-items: center;
    padding: 20px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    gap: 20px;
    width: 100%;
    max-width: 700px;
}

.item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.item-info h3 {
    color: white;
    margin: 0 0 5px 0;
}

.item-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9em;
}

.item-price, .item-total {
    color: white;
    font-size: 1.1em;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-quantity button {
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.item-quantity input {
    width: 50px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 5px;
    border-radius: 4px;
}

.delete-btn {
    padding: 8px 15px;
    background: rgba(255, 0, 0, 0.2);
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.select-all {
    color: white;
}

.cart-total {
    color: white;
    font-size: 1.2em;
}

.total-price {
    color: #ff6b6b;
    font-weight: bold;
}

.checkout-btn {
    padding: 10px 30px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    border: none;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
}

.checkout-btn:hover {
    background: linear-gradient(45deg, #ff8e8e, #ff6b6b);
}

@media screen and (max-width: 1200px) {
    .cart-container {
        margin-left: auto;
        margin-right: auto;
        max-width: 95%;
    }
}