/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 页头样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo h1 {
    font-size: 24px;
    color: #ff6700;
}

.logo p {
    font-size: 14px;
    color: #666;
}

/* 导航栏样式 */
nav {
    background-color: #333;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
}

/* 焦点图样式 */
.banner {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
}

.banner img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 内容区样式 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6700;
}

/* 商品网格样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-item {
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.product-item h3 {
    margin: 10px 0;
    font-size: 16px;
}

.product-item p {
    color: #ff6700;
    font-weight: bold;
}

/* 特惠专区样式 */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.offer-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.offer-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.offer-item:hover img {
    transform: scale(1.05);
}

.offer-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

/* 品牌精选样式 */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.brand-item {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.brand-item img {
    width: 100%;
    height: auto;
}

/* 页脚样式 */
footer {
    background-color: #f5f5f5;
    padding: 40px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-nav {
    margin-bottom: 20px;
}

.copyright {
    color: #666;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .user-menu {
        margin-top: 10px;
    }

    nav ul {
        flex-direction: column;
    }

    nav li {
        width: 100%;
        text-align: center;
    }

    .product-grid,
    .offer-grid,
    .brand-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
} 