/* 字体配置 */
@font-face {
    font-family: 'Mulish';
    src: url('../fonts/c3d26f19ac7f56a0fd74.ttf') format('truetype');
    font-display: swap;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Mulish', Arial, sans-serif;
    line-height: 1.6;
}

/* 主容器 */
.ess-solutions {
    max-width: 86.125rem;
    margin: 0 auto;
    padding: 1.25rem;
}

/* ESS Product 部分 */
.ess-product {
    height: 28.125rem;
    margin-bottom: 3.75rem;
    box-shadow: 0px 2px 10px 0px #0000001A;
}

.ess-product:last-child {
    margin-bottom: 0;
}

/* 产品布局容器 */
.ess-product__container {
    display: flex;
    align-items: center;
    height: 100%;
}

/* 产品内容区 */
.ess-product__content {
    flex: 1;
    max-width: calc(86.125rem - 46.25rem - 2.5rem);
    height: 100%;
    padding: 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 文本包装器 */
.ess-product__text-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 产品图片区 */
.ess-product__media {
    width: 46.25rem;
    height: 28.125rem;
    flex-shrink: 0;
    overflow: hidden;
}

.ess-product__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ess-product__image:hover {
    transform: scale(1.1);
}

/* 文字排版 */
.ess-product__title {
    font-weight: 500;
    font-size: 2.25rem;
    line-height: 3.15rem;
    margin-bottom: 1.125rem;
    color: #333;
}

.ess-product__description {
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 2.125rem;
    text-align: justify;
    color: #666;
    margin: 0;
}

/* 按钮组 */
.ess-product__actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.ess-product__actions--stacked {
    flex-direction: column;
}

/* 按钮样式 */
.ess-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: #0005FF;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 2.1rem;
    text-align: center;
    transition: background-color 0.3s ease;
    width: fit-content;
    min-width: min-content;
}

.ess-btn__icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 0.5rem;
}

.ess-btn:hover {
    background-color: #292932;
}

/* 响应式布局 */
@media screen and (max-width: 90rem) {
    .ess-solutions {
        padding: 1.25rem 2rem;
    }
    
    .ess-product__media {
        width: 40%;
    }
    
    .ess-product__content {
        max-width: 60%;
    }
}

@media screen and (max-width: 64rem) {
    .ess-product {
        height: auto;
    }

    .ess-product__container {
        flex-direction: column;
        height: auto;
    }

    .ess-product__content,
    .ess-product__media {
        width: 100%;
        max-width: 100%;
    }

    .ess-product__media {
        height: 18.75rem;
    }

    .ess-product__title {
        font-size: 1.75rem;
    }
}

@media screen and (max-width: 40rem) {
    .ess-product__actions {
        flex-direction: column;
    }

    .ess-btn {
        text-align: center;
    }

    .ess-product__title {
        font-size: 1.5rem;
    }
}
