/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 顶部导航栏 */
.header {
    background-color: #e60012;
    color: #fff;
    padding: 15px 0;
}

.nav-container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-input {
    width: 400px;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    outline: none;
}

.user-actions {
    display: flex;
    gap: 20px;
}

/* Banner区域 */
.banner {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    margin-bottom: 30px;
}

/* 商品分类 */
.categories {
    width: 1200px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.category-item {
    background-color: #fff;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 商品展示区 */
.products {
    width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-price {
    color: #e60012;
    font-size: 18px;
    font-weight: bold;
}

/* 底部区域 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    width: 1200px;
    margin: 0 auto;
    text-align: center;
} 