* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

header {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.category-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 15px;
}

.category-list a {
    text-decoration: none;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
}

.category-list a.active,
.category-list a:hover {
    background-color: #007bff;
    color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
}

.product img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.product-price {
    font-size: 18px;
    color: #e4393c;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .category-list {
        gap: 10px;
    }
    
    .category-list a {
        padding: 6px 12px;
        font-size: 14px;
    }
}
