/* home.css - 首页专属样式（完全统一版） */

.bem-company-intro {
    padding: 150px 0 180px;
    background: var(--bem-bg-secondary);
    position: relative;
    overflow: visible;
}

.bem-company-intro__content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.bem-company-intro__title {
    font-size: var(--bem-font-28);
    font-weight: var(--bem-font-600);
    color: var(--bem-text-secondary);
    margin-bottom: var(--bem-space-8);
    line-height: 1.3;
}

.bem-company-intro__text {
    font-size: var(--bem-font-16);
    font-weight: 400;
    line-height: 1.8;
    color: var(--bem-text-tertiary);
}

.bem-company-intro__text p {
    margin-bottom: var(--bem-space-6);
    font-size: var(--bem-font-16);
    font-weight: var(--bem-font-500);
    color: var(bem-bg-quaternary);
}

.bem-company-intro__text p:last-child {
    margin-bottom: 0;
}

.bem-slogan-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(50%);
    z-index: var(--bem-z-slogan);
}

.bem-slogan-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--bem-space-6);
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
}

.bem-slogan-card {
    background: var(--bem-bg-primary);
    border-radius: var(--bem-radius-sm);
    padding: var(--bem-space-8) var(--bem-space-4);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid var(--bem-bg-secondary);
    cursor: pointer;
    transition: all var(--bem-transition-normal);
}

a.bem-slogan-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bem-slogan-card__icon {
    font-size: var(--bem-font-20);
    color: var(--bem-primary);
    margin-bottom: var(--bem-space-4);
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bem-slogan-card__title {
    font-size: var(--bem-font-16);
    font-weight: var(--bem-font-600);
    color: var(--bem-text-secondary);
    margin: 0;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.bem-slogan-card__title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width var(--bem-transition-normal);
}

.bem-slogan-card:hover .bem-slogan-card__title::after {
    width: 100%;
}

.bem-products-carousel-section {
    padding: 210px 0 150px;
    background: var(--bem-bg-primary);
    position: relative;
}

.bem-products-carousel__wrapper {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
}

.bem-products-carousel {
    overflow: hidden;
    position: relative;
}

.bem-carousel-progress {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    height: 4px;
    display: flex;
    justify-content: center;
}

.bem-carousel-progress__line {
    width: 100%;
    height: 1px;
    background: var(--bem-bg-quaternary);
    border-radius: 0.5px;
    overflow: hidden;
    position: relative;
}

.bem-carousel-progress__segments {
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.bem-carousel-progress__segment {
    flex: 1;
    height: 100%;
    background: var(--bem-bg-quaternary);
    position: relative;
    transition: background-color var(--bem-transition-normal);
}

.bem-carousel-progress__segment[data-bem-state*='"active":true'] {
    background: var(--bem-text-quaternary);
}

.bem-carousel-progress__segment + .bem-carousel-progress__segment {
    margin-left: 2px;
}

.bem-carousel-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--bem-space-6);
    opacity: 0;
    transform: translateX(100%);
    transition: opacity var(--bem-transition-slow), transform var(--bem-transition-slow);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.bem-carousel-group[data-bem-state*='"active":true'] {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.bem-carousel-group .bem-product-card {
    height: 100%;
}

.bem-carousel-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 var(--bem-space-4);
    z-index: var(--bem-z-carousel);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--bem-transition-normal);
}

.bem-products-carousel__wrapper:hover .bem-carousel-arrows {
    opacity: 0.9;
}

.bem-carousel-arrow {
    background: var(--bem-bg-primary);
    opacity: 0.5;
    border: 1px solid var(--bem-border-primary);
    border-radius: var(--bem-radius-round);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bem-text-primary);
    font-size: var(--bem-font-18);
    cursor: pointer;
    transition: all var(--bem-transition-normal);
    pointer-events: auto;
    box-shadow: 0 2px 8px var(--bem-shadow-card-default);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: relative;
    z-index: 10;
}

.bem-carousel-arrow:hover,
.bem-carousel-arrow:focus {
    background: var(--bem-bg-primary);
    color: var(--bem-primary);
    outline: none;
    border-color: var(--bem-border-secondary);
    transform: scale(1.1);
    box-shadow: 0 5px 15px var(--bem-shadow-dropdown);
}

.bem-carousel-arrow:active {
    transform: scale(0.95);
}

.bem-custom-showcase {
    padding: 30px 0 30px;
    background: var(--bem-bg-primary);
}

.bem-custom-showcase__wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    height: 500px;
    border-radius: var(--bem-radius-sm);
    overflow: hidden;
}

.bem-custom-showcase__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.style-2 .bem-custom-showcase__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(0px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px 50px;
    color: #fff;
}

.style-2 .bem-custom-showcase__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.style-2 .bem-custom-showcase__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
}

.style-2 .bem-custom-showcase__title small {
    font-size: 16px;
    font-weight: 400;
    display: block;
    color: #ff6600;
    margin-top: 10px;
}

.style-2 .bem-custom-showcase__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.style-2 .bem-custom-showcase__description {
    font-size: 18px;
    max-width: 400px;
    line-height: 1.6;
    opacity: 0.9;
}

.style-2 .bem-custom-showcase__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 22px;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 4px;
    font-size: var(--bem-font-16);
    font-weight: var(--bem-font-400);
    text-decoration: none;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    line-height: 1.6;
    min-height: auto;
    height: auto;
    width: auto;
    white-space: nowrap;
}

.style-2 .bem-custom-showcase__btn i {
    font-size: 14px;
    transition: none;
}

.style-2 .bem-custom-showcase__btn:hover {
    background: var(--bem-primary);
    border-color: var(--bem-primary);
    color: #fff;
    transform: none;
    gap: 10px;
}

.style-2 .bem-custom-showcase__btn:hover i {
    color: #fff;
}

.bem-factory-showcase {
    padding: 0 0 150px;
    background: var(--bem-bg-primary);
    position: relative;
}

.bem-factory-showcase__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--bem-space-6);
    max-width: 1280px;
    margin: 0 auto;
}

.bem-factory-showcase__item--large {
    position: relative;
    overflow: hidden;
    border-radius: var(--bem-radius-sm);
    height: 500px;
    width: 100%;
}

.bem-factory-showcase__item--large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bem-factory-showcase__item--large .bem-factory-showcase__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--bem-bg-primary);
    z-index: 2;
}

.bem-factory-showcase__item--large .bem-factory-showcase__title {
    font-size: var(--bem-font-24);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 var(--bem-space-1) 0;
    position: relative;
    display: inline-block;
    color: var(--bem-bg-primary);
}

.bem-factory-showcase__item--large .bem-factory-showcase__description {
    font-size: var(--bem-font-14);
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
    line-height: 1.2;
    color: var(--bem-bg-primary);
}

.bem-factory-showcase__item--large .bem-factory-showcase__title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width var(--bem-transition-normal);
}

.bem-factory-showcase__item--large:hover .bem-factory-showcase__title::after {
    width: 100%;
}

.bem-factory-showcase__small-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--bem-space-6);
    height: 500px;
}

.bem-factory-showcase__item--small {
    position: relative;
    overflow: hidden;
    border-radius: var(--bem-radius-sm);
    height: calc((500px - var(--bem-space-6)) / 2);
    width: 100%;
}

.bem-factory-showcase__item--small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bem-factory-showcase__item--small .bem-factory-showcase__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--bem-space-4);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--bem-bg-primary);
    z-index: 2;
}

.bem-factory-showcase__item--small .bem-factory-showcase__title {
    font-size: var(--bem-font-18);
    font-weight: var(--bem-font-600);
    margin: 0;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    color: #ffffff;
}

.bem-factory-showcase__item--small .bem-factory-showcase__title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width var(--bem-transition-normal);
}

.bem-factory-showcase__item--small:hover .bem-factory-showcase__title::after {
    width: 100%;
}

.bem-product-card__content {
    padding: var(--bem-space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid transparent;
}

.bem-product-card__title {
    font-size: var(--bem-font-18);
    font-weight: var(--bem-font-700);
    color: var(--bem-text-primary);
    margin-bottom: var(--bem-space-2);
    line-height: 1.3;
}

.bem-product-card__description {
    font-size: var(--bem-font-14);
    font-weight: var(--bem-font-400);
    color: var(--bem-text-tertiary);
    line-height: 1.6;
    flex: 1;
}

@media (max-width: 1200px) {
    .bem-slogan-cards {
        max-width: 900px;
        gap: var(--bem-space-6);
        padding: 0;
    }
    
    .bem-slogan-card {
        height: 110px;
        padding: var(--bem-space-6) var(--bem-space-2);
    }
    
    .bem-slogan-card__icon {
        font-size: var(--bem-font-18);
        height: 24px;
        margin-bottom: var(--bem-space-2);
    }
    
    .bem-slogan-card__title {
        font-size: var(--bem-font-16);
    }
    
    .bem-custom-showcase__wrapper {
        height: 450px;
    }
    
    .style-2 .bem-custom-showcase__overlay {
        padding: 50px 60px;
    }
    
    .style-2 .bem-custom-showcase__title {
        font-size: 42px;
    }
    
    .style-2 .bem-custom-showcase__description {
        font-size: var(--bem-font-18);
    }
    
    .bem-factory-showcase__grid {
        gap: var(--bem-space-4);
        padding: 0 var(--bem-space-4);
    }
}

@media (max-width: 992px) {
    .bem-slogan-wrapper {
        transform: translateY(40%);
    }
    
    .bem-slogan-cards {
        max-width: 720px;
        gap: var(--bem-space-4);
        padding: 0;
    }
    
    .bem-slogan-card {
        height: 100px;
        padding: var(--bem-space-4) var(--bem-space-1);
    }
    
    .bem-slogan-card__icon {
        font-size: var(--bem-font-18);
        height: 22px;
        margin-bottom: var(--bem-space-1);
    }
    
    .bem-slogan-card__title {
        font-size: var(--bem-font-12);
    }

    .bem-carousel-group {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--bem-space-4);
    }
    
    .bem-carousel-arrows {
        padding: 0 var(--bem-space-2);
    }
    
    .bem-products-carousel-section {
        padding: 120px 0 120px;
    }
    
    .bem-company-intro {
        padding: 120px 0 120px;
    }
    
    .bem-carousel-progress {
        bottom: -40px;
    }
    
    .bem-carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: var(--bem-font-12);
    }
    
    .bem-custom-showcase {
        padding: 20px 0 20px;
    }
    
    .bem-custom-showcase__wrapper {
        height: 400px;
    }
    
    .style-2 .bem-custom-showcase__overlay {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 40px;
        gap: 30px;
        background: rgba(0, 0, 0, 0.7);
    }
    
    .style-2 .bem-custom-showcase__top,
    .style-2 .bem-custom-showcase__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        width: 100%;
    }
    
    .style-2 .bem-custom-showcase__title {
        font-size: 36px;
    }
    
    .style-2 .bem-custom-showcase__title small {
        font-size: 16px;
    }
    
    .style-2 .bem-custom-showcase__description {
        font-size: var(--bem-font-16);
        margin: 0 auto;
    }
    
    .style-2 .bem-custom-showcase__btn {
        margin: 0 auto;
        padding: 8px 25px;
    }
    
    .bem-factory-showcase {
        padding: 0 0 120px;
    }
    
    .bem-factory-showcase__grid {
        grid-template-columns: 1fr;
        gap: var(--bem-space-6);
    }
    
    .bem-factory-showcase__item--large {
        height: 500px;
    }
    
    .bem-factory-showcase__small-grid {
        height: 500px;
    }
    
    .bem-factory-showcase__item--small {
        height: calc((500px - var(--bem-space-4)) / 2);
    }
    
    .bem-factory-showcase__item--small .bem-factory-showcase__title {
        font-size: var(--bem-font-18);
    }
}

@media (max-width: 768px) {
    .bem-slogan-wrapper {
        position: relative;
        transform: translateY(0);
        margin-top: var(--bem-space-8);
    }
    
    .bem-slogan-cards {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        gap: var(--bem-space-4);
        padding: 0 var(--bem-space-4);
    }
    
    .bem-slogan-card {
        height: 95px;
        padding: var(--bem-space-4) var(--bem-space-1);
    }
    
    .bem-slogan-card__icon {
        font-size: var(--bem-font-16);
        height: 20px;
        margin-bottom: var(--bem-space-1);
    }
    
    .bem-slogan-card__title {
        font-size: var(--bem-font-12);
    }
    
    .bem-products-carousel-section {
        padding: 80px 0 80px;
    }
    
    .bem-carousel-group {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--bem-space-4);
    }
    
    .bem-carousel-arrows {
        padding: 0 var(--bem-space-1);
    }
    
    .bem-company-intro {
        padding: 80px 0 80px;
    }

    .bem-company-intro__title {
        font-size: var(--bem-font-20);
        margin-bottom: var(--bem-space-4);
    }
    
    .bem-company-intro__text {
        font-size: var(--bem-font-16);
        line-height: 1.7;
    }
    
    .bem-company-intro__text p {
        margin-bottom: var(--bem-space-4);
    }
    
    .bem-carousel-progress {
        bottom: -30px;
    }
    
    .bem-carousel-progress__line {
        height: 1px;
    }
    
    .bem-carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: var(--bem-font-16);
    }
    
    .bem-custom-showcase {
        padding: 15px 0 15px;
    }
    
    .bem-custom-showcase__wrapper {
        height: 450px;
    }
    
    .style-2 .bem-custom-showcase__overlay {
        padding: 30px;
        gap: 25px;
    }
    
    .style-2 .bem-custom-showcase__title {
        font-size: 32px;
    }
    
    .style-2 .bem-custom-showcase__title small {
        font-size: 14px;
    }
    
    .style-2 .bem-custom-showcase__description {
        font-size: var(--bem-font-16);
    }
    
    .style-2 .bem-custom-showcase__btn {
        width: auto;
        min-width: 160px;
        justify-content: center;
        padding: 8px 20px;
    }
    
    .bem-factory-showcase {
        padding: 0 0 80px;
    }
    
    .bem-factory-showcase__grid {
        gap: var(--bem-space-4);
        padding: 0 var(--bem-space-4);
    }
    
    .bem-factory-showcase__item--large {
        height: 500px;
    }
    
    .bem-factory-showcase__small-grid {
        height: 500px;
    }
    
    .bem-factory-showcase__item--small {
        height: calc((500px - var(--bem-space-2)) / 2);
    }
    
    .bem-factory-showcase__item--large .bem-factory-showcase__title {
        font-size: var(--bem-font-20);
    }
    
    .bem-factory-showcase__item--large .bem-factory-showcase__description {
        font-size: var(--bem-font-12);
    }
    
    .bem-factory-showcase__item--small .bem-factory-showcase__title {
        font-size: var(--bem-font-16);
    }
    
    .bem-factory-showcase__overlay {
        padding: var(--bem-space-4);
    }
    
    .bem-product-card__content {
        padding: var(--bem-space-4);
    }
    
    .bem-product-card__title {
        font-size: var(--bem-font-18);
    }
    
    .bem-product-card__description {
        font-size: var(--bem-font-12);
    }
}