* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #333;
    font-size: 24px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image {
    height: 280px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.price {
    font-size: 20px;
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 12px;
}

.buy-btn {
    width: 100%;
    padding: 10px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buy-btn:hover {
    background-color: #ff5252;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-image {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-image {
        height: 200px;
    }
}

.header-bg {
    background-image: url('./images/beijingtu.jpg');  /* 请确保添加你想使用的背景图片 */
    background-size: cover;
    background-position: center;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
}

.header-bg h1 {
    color: #fff;  /* 标题文字颜色设为白色，确保在背景图上清晰可见 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);  /* 添加文字阴影提高可读性 */
    margin: 0;
    padding: 20px;
} 