/* 首页专用样式 */

/* 轮播图 */
.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background-color: var(--background-light);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    gap: 60px;
}

.slide-text {
    flex: 1;
    max-width: 500px;
}

.slide-text h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

.slide-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.slide-image {
    flex: 1;
    max-width: 600px;
}

.slide-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slider-btn {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
    box-shadow: var(--shadow-light);
}

.slider-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}

/* 新品推荐 */
.new-arrivals {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

/* 热销商品 */
.hot-products {
    padding: 80px 0;
    background-color: var(--background-light);
}

.hot-products-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-behavior: smooth;
}

.hot-products-slider::-webkit-scrollbar {
    height: 6px;
}

.hot-products-slider::-webkit-scrollbar-track {
    background-color: var(--border-color);
    border-radius: 3px;
}

.hot-products-slider::-webkit-scrollbar-thumb {
    background-color: var(--text-secondary);
    border-radius: 3px;
}

.hot-product-card {
    flex: 0 0 280px;
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
}

.hot-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.hot-product-card .product-image {
    aspect-ratio: 4/5;
}

.hot-product-card .product-info {
    padding: 20px;
}

.hot-product-card .product-info h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.hot-product-card .product-price {
    margin-bottom: 8px;
}

.hot-product-card .current-price {
    font-size: 20px;
}

/* 品牌故事 */
.brand-story {
    padding: 80px 0;
}

.story-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.story-text {
    flex: 1;
    max-width: 500px;
}

.story-text h2 {
    font-size: 36px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.story-text p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.story-text p:last-of-type {
    margin-bottom: 32px;
}

.story-image {
    flex: 1;
    max-width: 600px;
}

.story-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .slide-content {
        gap: 40px;
    }
    
    .slide-text h1 {
        font-size: 40px;
    }
    
    .story-content {
        gap: 40px;
    }
    
    .story-text h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .slide-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        padding: 40px 20px;
    }
    
    .slide-text h1 {
        font-size: 32px;
    }
    
    .slide-text p {
        font-size: 16px;
    }
    
    .slide-image img {
        height: 300px;
    }
    
    .slider-nav {
        display: none;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hot-products-slider {
        gap: 16px;
    }
    
    .hot-product-card {
        flex: 0 0 240px;
    }
    
    .story-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .story-text h2 {
        font-size: 28px;
    }
    
    .story-image img {
        height: 300px;
    }
    
    .new-arrivals,
    .hot-products,
    .brand-story {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 50vh;
        min-height: 350px;
    }
    
    .slide-content {
        padding: 20px 12px;
    }
    
    .slide-text h1 {
        font-size: 28px;
    }
    
    .slide-image img {
        height: 250px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .hot-product-card {
        flex: 0 0 200px;
    }
    
    .story-text h2 {
        font-size: 24px;
    }
    
    .story-image img {
        height: 250px;
    }
    
    .new-arrivals,
    .hot-products,
    .brand-story {
        padding: 40px 0;
    }
}