/* 
 * Flatsome Child Theme Custom Styles
 */

/* 现代化主页样式 */
.modern-homepage {
    padding: 0;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.png') center/cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons .button {
    margin: 0 10px;
}

.button.secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.button.secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 分类区域 */
.categories-section {
    padding: 80px 0;
    background-color: #fff;
}

/* 特色产品区域 */
.featured-products-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* 促销横幅区域 */
.promo-section {
    padding: 80px 0;
    background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 100%);
}

.promo-box {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.promo-box:hover {
    transform: translateY(-5px);
}

.promo-box h3 {
    margin-bottom: 15px;
    color: #333;
}

.promo-box .button {
    margin-top: 20px;
}

/* 品牌区域 */
.brands-section {
    padding: 80px 0;
    background-color: #fff;
}

/* 服务优势区域 */
.services-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.service-box {
    padding: 30px;
    transition: all 0.3s ease;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #667eea;
}

.service-box h3 {
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

/* 主页样式 */
.homepage-wrapper {
    padding: 0;
}

.homepage-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.button.primary {
    background-color: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
}

.button.primary:hover {
    background-color: #ff5252;
    border-color: #ff5252;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #667eea;
    margin: 10px auto;
}

/* 服务优势区域 */
.services-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.service-box {
    padding: 30px;
    transition: transform 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-box i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
}

.service-box h3 {
    margin-bottom: 15px;
    font-weight: 600;
}

/* 商品页自定义样式 */
.custom-product-layout {
    max-width: 100%;
}

.custom-product-summary {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-info-wrapper {
    position: sticky;
    top: 20px;
}

.product-features {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.feature-item i {
    color: #4CAF50;
    margin-right: 8px;
}

/* 侧边栏自定义样式 */
.product-sidebar-custom {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .homepage-banner {
        padding: 60px 20px;
    }
    
    .product-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .custom-product-summary {
        padding: 20px;
    }
    
    .hero-buttons .button {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
    
    .hero-section {
        padding: 80px 20px;
    }
}