/* 首页轮播图样式 */
.banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 60px;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    max-width: 500px;
}

.slide-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.banner-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-dot.active,
.nav-dot:hover {
    background-color: white;
}

/* 商品分类样式 */
.categories {
    padding: 60px 0;
    background-color: white;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-10px);
}

.category-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-item img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.category-item:hover img {
    box-shadow: 0 6px 20px rgba(255,107,53,0.3);
}

.category-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
}

.category-item p {
    color: #666;
    font-size: 14px;
}

/* 热门商品区域 */
.hot-products {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* 最新杂志区域 */
.latest-magazines {
    padding: 60px 0;
    background-color: white;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.magazine-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.magazine-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.magazine-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.magazine-info {
    padding: 15px;
}

.magazine-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
}

.magazine-issue {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.magazine-price {
    color: #ff6b35;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.magazine-actions {
    display: flex;
    gap: 10px;
}

/* 特色推荐区域 */
.featured-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    text-align: center;
}

.featured-section .section-title {
    color: white;
}

.featured-section .section-title::after {
    background-color: white;
}

.featured-content {
    max-width: 800px;
    margin: 0 auto;
}

.featured-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.featured-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

.featured-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* 品牌展示区域 */
.brands-section {
    padding: 60px 0;
    background-color: white;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: center;
}

.brand-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.brand-item:hover {
    background-color: #f8f9fa;
}

.brand-item img {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
}

/* 新闻资讯区域 */
.news-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-category {
    background-color: #ff6b35;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner {
        height: 300px;
    }
    
    .slide-content {
        left: 5%;
        max-width: 90%;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .category-item img {
        width: 100px;
        height: 100px;
    }
    
    .magazine-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .featured-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 250px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-item img {
        width: 80px;
        height: 80px;
    }
    
    .category-item h3 {
        font-size: 16px;
    }
    
    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .magazine-item img {
        height: 200px;
    }
    
    .featured-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
} 