body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    background: #f7f7f7;
    color: #222;
}
header {
    background: #2d8cf0;
    color: #fff;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.logo {
    font-size: 2rem;
    font-weight: bold;
    margin-left: 32px;
}
nav {
    margin-right: 32px;
}
nav a, nav button {
    color: #fff;
    text-decoration: none;
    margin: 0 12px;
    font-size: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}
nav button {
    background: #fff;
    color: #2d8cf0;
    border-radius: 4px;
    padding: 4px 12px;
    transition: background 0.2s;
}
nav button:hover {
    background: #e6f7ff;
}
#banner {
    background: linear-gradient(90deg, #2d8cf0 60%, #57a3f3 100%);
    color: #fff;
    text-align: center;
    padding: 48px 0 32px 0;
}
#banner h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
#products {
    padding: 32px 0;
    background: #fff;
}
#products h2 {
    text-align: center;
    margin-bottom: 24px;
}
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.product {
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    width: 240px;
    padding: 16px;
    text-align: center;
    transition: box-shadow 0.2s;
}
.product:hover {
    box-shadow: 0 4px 16px rgba(45,140,240,0.12);
}
.product img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
}
.product h3 {
    margin: 12px 0 8px 0;
    font-size: 1.2rem;
}
.product p {
    font-size: 0.95rem;
    color: #666;
    min-height: 40px;
}
.price {
    color: #e43;
    font-size: 1.1rem;
    margin: 8px 0;
}
.add-cart {
    background: #2d8cf0;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
.add-cart:hover {
    background: #57a3f3;
}
#about, #contact {
    background: #fff;
    margin: 32px auto;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    padding: 24px 32px;
}
#about h2, #contact h2 {
    margin-top: 0;
}
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 16px 0;
    margin-top: 32px;
}
/* 购物车弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 32px 24px 24px 24px;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    position: relative;
}
.close {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
}
#cart-items {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}
#cart-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}
#cart-items li:last-child {
    border-bottom: none;
}
.remove-item {
    background: none;
    border: none;
    color: #e43;
    cursor: pointer;
    font-size: 1rem;
}
.cart-total {
    font-weight: bold;
    text-align: right;
    font-size: 1.1rem;
}
@media (max-width: 700px) {
    .product-list {
        flex-direction: column;
        align-items: center;
    }
    #about, #contact {
        padding: 16px 8px;
    }
    .product {
        width: 90vw;
    }
} 