body {
    font-family: 'Arial', sans-serif;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
    color: #333;
}

h1, h2, h3 {
    margin: 0 0 10px;
    font-weight: bold;
}

/* 首页轮播 */
.hero {
    text-align: center;
    background-color: #222;
    color: #fff;
    padding: 30px 10px;
}

.hero img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
}

/* 商品列表 */
.products {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

.products h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* 单个商品 */
.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    max-width: 300px;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}

.product-item form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.product-item select {
    padding: 6px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.product-item button {
    background-color: #ff4500;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.product-item button:hover {
    background-color: #e03e00;
}

/* 响应式布局 */
@media (min-width: 768px) {
    .products {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-item {
        margin-bottom: 0;
    }
}

@media (min-width: 1200px) {
    .products {
        grid-template-columns: repeat(3, 1fr);
    }
}