/* Products Hero Page Styles - Epiroc Style */
.products-hero {
    padding: var(--spacing-xl) 0;
    background: var(--color-background);
    min-height: 100vh;
}

.products-hero__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.products-hero__header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    padding: var(--spacing-xl) 0;
}

.products-hero__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.products-hero__description {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.products-hero__categories {
    margin-top: var(--spacing-xxl);
}

/* Section Styles */
.products-hero__section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.products-hero__section .row {
    margin: 0 -15px;
}

.products-hero__section .col-lg-6,
.products-hero__section .col-md-12 {
    padding: 0 15px;
}

.products-hero__section--whole-machine {
    background: var(--color-background-light);
}

.products-hero__section--aftermarket-parts {
    background: var(--color-background);
}

.products-hero__section--aftermarket-parts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-border) 50%, transparent 100%);
}

/* Image Container - Professional Business Style */
.products-hero__image-container {
    position: relative;
    height: 360px; /* 调整高度以匹配800x530的比例 (约1.51:1) */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-background-light) 0%, var(--color-background) 100%);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.12),
        0 6px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: var(--spacing-md);
}

.products-hero__image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(218, 165, 32, 0.1) 0%,
        rgba(255, 87, 34, 0.05) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
    transition: opacity 0.4s ease;
}

.products-hero__image-container:hover::before {
    opacity: 0.8;
}

.products-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) contrast(1.1) saturate(1.1);
}

.products-hero__image-container:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.18),
        0 12px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.products-hero__image-container:hover .products-hero__image {
    transform: scale(1.08);
    filter: brightness(1) contrast(1.2) saturate(1.2);
}

/* Category-specific image styling */
.products-hero__section--whole-machine .products-hero__image-container::before {
    background: linear-gradient(
        135deg,
        rgba(218, 165, 32, 0.15) 0%,
        rgba(255, 87, 34, 0.08) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.products-hero__section--aftermarket-parts .products-hero__image-container::before {
    background: linear-gradient(
        135deg,
        rgba(255, 87, 34, 0.15) 0%,
        rgba(218, 165, 32, 0.08) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

/* Content Styles */
.products-hero__content {
    padding: var(--spacing-xl) 0;
    padding-left: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.products-hero__section-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.products-hero__section-description {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
}

.products-hero__section-button {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 200px;
}

.products-hero__section-button:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Category-specific button styling */
.products-hero__section--aftermarket-parts .products-hero__section-button {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.products-hero__section--aftermarket-parts .products-hero__section-button:hover {
    background: var(--color-white);
    color: var(--color-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .products-hero__image-container {
        height: 320px; /* 保持比例，稍微减小 */
        margin-right: 0;
        margin-bottom: var(--spacing-lg);
    }
    
    .products-hero__content {
        padding: var(--spacing-lg) 0;
        padding-left: 0;
        text-align: center;
    }
    
    .products-hero__section-description {
        max-width: none;
    }
    
    .products-hero__section .row {
        margin: 0 -10px;
    }
    
    .products-hero__section .col-lg-6,
    .products-hero__section .col-md-12 {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .products-hero {
        padding: var(--spacing-lg) 0;
    }
    
    .products-hero__header {
        padding: var(--spacing-lg) 0;
        margin-bottom: var(--spacing-xl);
    }
    
    .products-hero__title {
        font-size: var(--font-size-2xl);
    }
    
    .products-hero__description {
        font-size: var(--font-size-md);
    }
    
    .products-hero__section {
        padding: var(--spacing-xl) 0;
    }
    
    .products-hero__image-container {
        height: 280px; /* 平板端保持比例 */
        box-shadow: 
            0 12px 24px rgba(0, 0, 0, 0.1),
            0 5px 10px rgba(0, 0, 0, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    
    .products-hero__image-container:hover {
        transform: translateY(-4px);
        box-shadow: 
            0 18px 36px rgba(0, 0, 0, 0.12),
            0 7px 14px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    .products-hero__section-title {
        font-size: var(--font-size-2xl);
    }
    
    .products-hero__section-description {
        font-size: var(--font-size-md);
    }
}

@media (max-width: 576px) {
    .products-hero__container {
        padding: 0 var(--spacing-sm);
    }
    
    .products-hero__header {
        margin-bottom: var(--spacing-lg);
    }
    
    .products-hero__title {
        font-size: var(--font-size-xl);
    }
    
    .products-hero__section {
        padding: var(--spacing-lg) 0;
    }
    
    .products-hero__image-container {
        height: 240px; /* 手机端保持比例 */
        box-shadow: 
            0 8px 16px rgba(0, 0, 0, 0.08),
            0 3px 6px rgba(0, 0, 0, 0.04),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    
    .products-hero__image-container:hover {
        transform: translateY(-2px);
        box-shadow: 
            0 12px 24px rgba(0, 0, 0, 0.1),
            0 5px 10px rgba(0, 0, 0, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    .products-hero__section-title {
        font-size: var(--font-size-xl);
    }
    
    .products-hero__section-button {
        max-width: none;
        width: 100%;
    }
    
    .products-hero__section .row {
        margin: 0 -8px;
    }
    
    .products-hero__section .col-lg-6,
    .products-hero__section .col-md-12 {
        padding: 0 8px;
    }
}
