/* ============================================
   首页样式 - 主流电商风格
   ============================================ */

   .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 轮播图 ========== */
.hero {
    margin: 20px 0 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.hero-banner {
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-mobile {
    display: none;
}

/* ========== 商品区域 ========== */
.section {
    padding: 30px 0;
}

.bg-light {
    background: #f8f9fa;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #DD302D;
}

.section-title h2, .section-title h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.section-title .more {
    color: #DD302D;
    text-decoration: none;
    font-size: 13px;
}

.section-title .more:hover {
    text-decoration: underline;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-card a {
    text-decoration: none;
}

.product-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-name {
    padding: 12px 12px 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    line-height: 1.4;
    min-height: 50px;
}

.product-price {
    padding: 0 12px 12px;
    font-size: 16px;
    font-weight: 700;
    color: #DD302D;
    text-align: center;
}

/* ========== SEO 内容区 ========== */
.seo-content {
    padding: 40px 0;
    background: #f8f9fa;
    margin-top: 20px;
}

.articles-box {
    margin-bottom: 30px;
}

.articles-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 20px;
    list-style: none;
    padding: 0;
}

.articles-list li a {
    display: block;
    padding: 6px 0;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.articles-list li a:hover {
    color: #DD302D;
}

.about-box {
    background: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.about-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.about-box p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.cities-box {
    text-align: center;
}

.cities-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.city-link {
    display: block;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.city-link:hover {
    background: #DD302D;
    color: white;
    border-color: #DD302D;
}

.cities-more a {
    color: #DD302D;
    text-decoration: none;
    font-size: 14px;
}

.cities-more a:hover {
    text-decoration: underline;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .hero {
        display: none !important;
    }
    
    .hero-mobile {
        display: block !important;
        margin: 10px 0;
        padding: 0 15px;
    }
    
    .hero-mobile img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .product-img {
        height: 180px;
    }
    
    .section {
        padding: 25px 0;
    }
    
    .cities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-img {
        height: 150px;
    }
    
    .product-name {
        font-size: 13px;
        padding: 10px 8px 5px;
        min-height: auto;
        white-space: normal;
        word-break: break-word;
    }
    
    .product-price {
        font-size: 14px;
        padding: 0 8px 10px;
    }
    
    .section-title h2, .section-title h3 {
        font-size: 18px;
    }
    
    .articles-list {
        grid-template-columns: 1fr;
    }
    
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-box {
        padding: 16px;
    }
    
    .about-box h3 {
        font-size: 16px;
    }
    
    .about-box p {
        font-size: 13px;
    }
    
    .city-link {
        font-size: 12px;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .product-img {
        height: 130px;
    }
    
    .product-name {
        font-size: 12px;
        padding: 8px 6px 4px;
    }
    
    .product-price {
        font-size: 13px;
        padding: 0 6px 8px;
    }
    
    .cities-grid {
        gap: 8px;
    }
}