:root {
    --global-max-width: 1440px;
    /* 红黑分界比例（对齐 100% 缩放设计稿，随 100vw 等比缩放，避免 zoom 时偏移） */
    --home-company-split-top: 65%;
    --home-company-split-bottom: 50%;
}

.jost-<uniquifier> {
    font-family: "Jost", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
}
/* 全局基础设置，防止外部干扰计算 */
.module-home-product-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 主容器：宽度百分比，严格保持 1100:600 宽高比，竖向Flex排列 */
.module-home-product-section {
    width: 100%;
    max-height: 800px;
    /* 严格锁定 1100:600 宽高比 */
    background-color: #000000;
    /* 黑色背景 */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 2%;
    position: relative;
    overflow: hidden;
}

/* 1. 头部标题区域 */
.module-home-header-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    /* 占位间距 */
}

.module-home-subtitle {
    color: rgba(255, 255, 255, 0.80);
    text-align: center;
    font-feature-settings: 'liga'off, 'clig'off;
    font-family: Jost;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    /* 150% */
    letter-spacing: -0.24px;
    text-transform: uppercase;
}

.module-home-main-title {
    color: #FFF;
    text-align: center;
    font-family: Jost;
    font-size: 60px;
    font-style: normal;
    font-weight: 500;
    line-height: 86px;
    /* 143.333% */
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.module-home-title-line {
    width: 108px;
    height: 4px;
    background-color: #e04638;
    /* 红色装饰条 */
    margin-top: 15px;
}

/* 1. 定义动画：从左侧屏幕外（-100%）向右滑入到原位（0） */

@keyframes slideFromLeft {
    0% {
        transform: translateX(-100%);
        /* 初始状态：完全隐藏在左边屏幕外 */
        opacity: 0;
        /* 配合渐显，进场更自然 */
    }
    100% {
        transform: translateX(0);
        /* 最终状态：向右滑入到原本驻留的位置 */
        opacity: 1;
        /* 完全显示 */
    }
}



/* 2. 下部内容区域 */

.module-home-content-area {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
}

/* 小车 + 分类入口拖行组，整体居中 */
.module-home-drag-unit {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 90%;
    max-width: var(--global-max-width);
}

.module-home-content-area.is-active {
    opacity: 1;
}

/* 阶段一：小车拖着分类入口从左侧滑入 */
.module-home-content-area.is-active .module-home-drag-unit {
    animation-name: slideFromLeft;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

/* 阶段二：分类停住后扩展居中，小车继续右行驶出 */
@keyframes categoryGridCenter {
    0%, 75% {
        width: 85%;
    }
    100% {
        width: 100%;
    }
}

@keyframes carAreaHide {
    0%, 75% {
        width: 15%;
        opacity: 1;
    }
    100% {
        width: 0;
        opacity: 0;
        overflow: hidden;
    }
}

@keyframes carDriveAway {
    0%, 60% {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    75% {
        transform: translateX(30vw);
        opacity: 0.6;
    }
    100% {
        transform: translateX(calc(50vw + 100px));
        opacity: 0;
        visibility: hidden;
    }
}

.module-home-content-area.is-active .module-home-grid-container {
    animation-name: categoryGridCenter;
    animation-duration: 2.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.module-home-content-area.is-active .module-home-right-icon-area {
    animation-name: carAreaHide;
    animation-duration: 2.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.module-home-content-area.is-active .module-home-loader-icon-placeholder {
    animation-name: carDriveAway;
    animation-duration: 2.5s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}


@keyframes slideFromRight {
    0% {
        transform: translateX(100%);
        /* 初始状态：完全隐藏在左边屏幕外 */
        opacity: 0;
        /* 配合渐显，进场更自然 */
    }
    100% {
        transform: translateX(0);
        /* 最终状态：向右滑入到原本驻留的位置 */
        opacity: 1;
        /* 完全显示 */
    }
}


.home-recommend-image-side.is-active {
    animation-name: slideFromRight;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    visibility: visible;
}


/* 左侧网格容器：包含两行和红线背景 */
.module-home-grid-container {
    width: 85%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    position: relative;
    flex-shrink: 0;
    /* =======================================================
     1. 左右两侧竖线：上下各空 25%，中间 50% 1px solid red
     ======================================================= */
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    border-image: linear-gradient(to bottom,
        transparent 25%,
        var(--my-hover-color) 25%,
        var(--my-hover-color) 75%,
        transparent 75%) 1;

}

/* 模拟背景红线 */
.module-home-grid-container::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    /* 横向撑满 */
    top: 25%;
    /* 距离顶部 25% */
    height: 2px;
    /* 线粗 2px */
    background-color: var(--my-hover-color);

}
.module-home-grid-container::after {

    content: "";
    position: absolute;
    left: 0;
    right: 0;
    /* 横向撑满 */
    bottom: 25%;
    /* 距离底部 25% */
    height: 2px;
    /* 线粗 2px */
    background-color: var(--my-hover-color);
}

/* 网格行 */
.module-home-grid-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    z-index: 2;
    flex-wrap: wrap;
    /* 允许换行 */
    gap: 10px;
    /* 增加间距控制 */
    margin-bottom: 30px;
}

/* 单个产品卡片 */
.module-home-product-item {
    width: 14%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(0, 0, 0, 0.20);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, .13);
    text-decoration: none;
    color: inherit;
}

/* 白色图片占位 */
.module-home-img-placeholder {
    width: 100%;
    height: 80%;
    background-color: #f0f0f0;
    overflow: hidden;
}

.module-home-img-placeholder img {
    width: 100%;
    aspect-ratio: 1/1;
    border-bottom: 1px solid #999999;
    position: relative;
    top: -10px;
}

.module-home-product-item p {
    color: #333333;
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
}

.module-home-product-item:hover {
    background-color: var(--my-hover-color);
    color: white;
    transform: translateY(-5px);
    transition: transform 0.3s ease-out;
}

.module-home-product-item.module-home-active p {
    color: #ffffff;
}

/* 右侧图标区域 */
.module-home-right-icon-area {
    width: 15%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

/* 链接红线 */
.module-home-right-icon-area::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 50%;
    width: 25%;
    height: 2px;
    background-color: #e04638;
}

/* 右侧图标占位 */
.module-home-loader-icon-placeholder {
    width: 100px;
    height: 100px;
}

.module-home-item-name {
    width: 100%;
    text-align: center;
    height: 20%;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}
.module-home-loader-icon-placeholder img {
    width: 100%;
    height: 100%;
}

.home-feature-container .module-home-subtitle {
    color: #000;
}
.home-feature-container .module-home-main-title {
    color: #000;
    text-shadow: none;
}


/* 📱 核心：针对小于 1024px 屏幕的响应式媒体查询 */
@media (max-width: 1024px) {
    .home-feature-container .module-home-main-title {
        font-size: 40px;
    }
    .module-home-product-section {
        aspect-ratio: auto;
        padding: 40px 2%;
        max-height: unset;
    }

    .module-home-content-area {
        flex-direction: column;
    }

    .module-home-drag-unit {
        flex-direction: column;
        width: 100%;
    }

    .module-home-content-area.is-active .module-home-grid-container,
    .module-home-content-area.is-active .module-home-right-icon-area,
    .module-home-content-area.is-active .module-home-loader-icon-placeholder {
        animation: none;
    }

    .module-home-grid-container {
        width: 100%;
    }

    /* 隐藏写死的背景红线 */
    .module-home-grid-container::before,
    .module-home-grid-container::after,
    .module-home-right-icon-area::before,
    .module-home-grid-container {
        border: none;
        background: none;
    }

    /* 核心：计算每行 3 个的宽度（减去 gap 留白） */
    .module-home-product-item {
        width: calc((100% - 20px) / 3);
        /* 3列布局 */
        margin-bottom: 10px;
        /* 下方留白 */
    }

    .module-home-right-icon-area {
        width: 100%;
        margin-top: 20px;
    }
}



/*feature*/
/* 父容器 */
.home-feature-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    padding: 20px;
    padding-top: 80px;
    background-color: #EAEAEA;
    background-size: cover;
    padding-bottom: 80px;
    max-width: var(--global-max-width);
    margin: auto;
    /*background-image: url('../image/home/factory_top.webp');*/
    /* 通过线性渐变在图片上方覆盖一层 50% 的白色遮罩（rgba最后一位0.5代表50%） */
    /*background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),*/
    /*url('../image/home/factory_top.webp');*/

    /*background-size: cover;*/
    /*background-position: center;*/

}

/* 子卡片 */
.home-feature-card {
    flex: 0 0 23%;
    /* 四列布局，占比 23% */
    background-color: #ffffff;
    padding: 30px 20px;
    text-align: left;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, .13);
    color: #000;
}

.home-feature-card:hover {
    color: #FF2F2F;
}

/* 数字样式 */
.home-feature-num {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
}

/* 描述文字样式 */
.home-feature-desc {
    font-size: 14px;
    color: #666666;
}


/* ==========================================================================
   1. 初始状态：当父级还没有 .is-active 时，子卡片藏在下方且透明
   ========================================================================== */
[data-bs-animation="slide"] .home-feature-card {
    opacity: 0;
    transform: translateY(40px);
    /* 从下方 40px 开始升起 */

    /* 定义动画过渡效果：0.4s 完成升起，使用 cubic-bezier 让阻尼感更高级、更丝滑 */
    transition: transform 3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 3s ease;
}

/* ==========================================================================
   2. 触发状态：当 JS 给父级加上 .is-active 后，子卡片恢复原位
   ========================================================================== */
[data-bs-animation="slide"].is-active .home-feature-card {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   3. 核心：控制一排卡片“逐个”升起的延迟时间 (Stagger Effect)
   ========================================================================== */
[data-bs-animation="slide"].is-active .home-feature-card:nth-child(1) {
    transition-delay: 0s;
    /* 第 1 个卡片立即升起 */
}
[data-bs-animation="slide"].is-active .home-feature-card:nth-child(2) {
    transition-delay: 0.2s;
    /* 第 2 个卡片延迟 0.1 秒 */
}
[data-bs-animation="slide"].is-active .home-feature-card:nth-child(3) {
    transition-delay: 0.4s;
    /* 第 3 个卡片延迟 0.2 秒 */
}
[data-bs-animation="slide"].is-active .home-feature-card:nth-child(4) {
    transition-delay: 0.6s;
    /* 第 4 个卡片延迟 0.3 秒 */
}
[data-bs-animation="slide"].is-active .home-feature-card:nth-child(5) {
    transition-delay: 0.8s;
}
/* Banner 主体容器：内容正常流布局，背景层单独对齐视口 */
.home-company-banner {
    color: #ffffff;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    background: transparent;
}

/* 黑色底层：相对 banner 中心展开为 100vw，左边缘对齐视口 */
.home-company-banner::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background-color: #000000;
    z-index: 0;
    pointer-events: none;
}

/* 红色斜切层：与黑色层同一视口坐标系，分界使用百分比保持各缩放级别一致 */
.home-company-banner::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background-color: #e54a3b;
    clip-path: polygon(
        var(--home-company-split-top) 0,
        100% 0,
        100% 100%,
        var(--home-company-split-bottom) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* 内部通栏包裹器 */
.home-company-container {
    display: flex;
    width: 100%;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    max-width: var(--global-max-width);
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

/* 左侧文字排版 */
.home-company-content {
    flex: 1;
    padding: 40px 60px;
    max-width: 75%;
    z-index: 2;
}

.home-company-subtitle {
    font-size: 16px;
    color: #cccccc;
    display: block;
    margin-bottom: 15px;
}

.home-company-title {
    font-size: 60px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #fff;
}

/* 红色装饰短线条 */
.home-company-divider {
    width: 60px;
    height: 4px;
    background-color: #e54a3b;
    /* 对应原图红色 */
    margin-bottom: 30px;
}

.home-company-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 300;
}

/* 右侧视觉区域：图片居中于红色区域 */
.home-company-visual {
    flex: 1;
    position: relative;
    height: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 40px;
}

/* 图片包裹器（用于控制层级和边距） */
.home-company-image-wrapper {
    position: relative;
    z-index: 2;
    width: 85%;
    max-width: 520px;
}

/* 团队图片样式 */
.home-company-img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/*choose*/
/* 基础重置（如项目已有可忽略） */

/* 整个区块的底层容器 */
.home-choose-section {
    background-color: #f5f5f5;
    /* 浅灰色背景 */
    padding: 80px 20px;
    font-family: 'Arial', sans-serif;
    text-align: center;
    /* 让内部文本内容整体水平居中 */
}

/* 版心控制 */
.home-choose-container {
    max-width: var(--global-max-width);
    margin: 0 auto;
}

/* 头部样式 */
.home-choose-header {
    margin-bottom: 60px;
    padding-top: 80px;
}

/* 顶部小副标题 */
.home-choose-subtitle {
    font-size: 16px;
    color: #888888;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* 主标题 + 底部橙红短线 */
.home-choose-title {
    font-size: 60px;
    color: #111111;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    letter-spacing: 1px;
}

/* 标题下方的居中橙红线条 */
.home-choose-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    /* 精确水平居中 */
    width: 50px;
    height: 3px;
    background-color: #e54a3b;
    /* 橙红主色调 */
}

/* 特性列表网格（Flex 左右排列） */
.home-choose-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* 纵向顶部对齐，防止因文本长短不一导致卡片变形 */
    gap: 40px;
    /* 列与列之间的间距 */
}

/* 单个特性卡片 */
.home-choose-item {
    flex: 1;
    /* 三列等分宽度 */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 内部元素上下堆叠，并水平居中 */
    padding: 10px;
    border-radius: 10px;
}


/* 图标包裹盒 */
.home-choose-icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

/* 纯 CSS 图标占位模拟 */
.home-choose-icon-placeholder {
    /*width: 48px;
    height: 48px;
    border: 2px dashed #cccccc;
    /* 虚线圈代表占位 */
    border-radius: 50%;
    position: relative;
    */
}
.home-choose-icon-placeholder img {
    width: 50px;
    height: 50px;
}

/* 用伪元素模拟简易的红色小符号（仅做视觉占位示意） */
/*.home-choose-icon-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background-color: #e54a3b;
}
.home-choose-icon-placeholder.star::before {
    border-radius: 50%;
}
.home-choose-icon-placeholder.thumb::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.home-choose-icon-placeholder.calendar::before {
    border-radius: 2px;
}*/


/* 卡片项目标题 */
.home-choose-item-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* 卡片项目描述文本 */
.home-choose-item-desc {
    font-size: 16px;
    opacity: 0.5;
    line-height: 1.6;
    max-width: 320px;
    /* 限制单列文本最大宽度，使其换行视觉更美观 */
}
/* ==========================================
   新增：滚动放大动画效果
   ========================================== */

/* 1. 初始状态：让 grid 内部的每一个 item 缩小到 0，并设为透明 */
.home-choose-grid .home-choose-item {
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    /* 确保从卡片自身的中心点放大 */
    /* 添加过渡属性：监听 opacity 和 transform，持续 0.6 秒，使用贝塞尔曲线让放大更有弹性 */
    transition:
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.6s ease,
        background-color 0.3s ease 0.2s,
        color 0.3s ease 0.2s;

    will-change: transform, opacity, background-color, color;
}

/* 2. 激活状态：当 grid 进入视野被加上 .is-active 时，内部的 item 恢复原始大小 */
.home-choose-grid.is-active .home-choose-item {
    opacity: 1;
    transform: scale(1);
}

/* 3. 进阶视觉优化：让每一列卡片产生自左向右的“交错出现”效果（第1列->第2列->第3列） */
.home-choose-grid.is-active .home-choose-item:nth-child(1) {
    transition-delay: 0s;
}
.home-choose-grid.is-active .home-choose-item:nth-child(2) {
    transition-delay: 0.15s;
    /* 延迟 150 毫秒 */
}
.home-choose-grid.is-active .home-choose-item:nth-child(3) {
    transition-delay: 0.3s;
    /* 延迟 300 毫秒 */
}

/* 如果你不需要两行网格之间同时触发，可以为第二行单独加点间距 */
.home-choose-grid+.home-choose-grid {
    margin-top: 40px;
}



/*recommended*/
/* 隐藏单选控制开关 */
input[name="recommend-tabs"] {
    display: none;
}

/* 最外层容器 */
.home-recommend-container {
    width: 100%;
    padding-top: 80px;
    padding-bottom: 80px;
    margin: 0 auto;
    padding-left: 10%;
    padding-right: 10%;
    background-color: black;
}

/* ==========================================
   2. 头部样式
   ========================================== */
.home-recommend-header {
    text-align: center;
    margin-bottom: 60px;
}

.home-recommend-subtitle {
    font-size: 11px;
    color: #777;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.home-recommend-title {
    font-size: 38px;
    font-weight: bold;
    letter-spacing: 1px;
}

.home-recommend-title-line {
    width: 45px;
    height: 3px;
    background-color: #d14332;
    /* 对应原图红色标识线 */
    margin: 15px auto 0;
}

/* ==========================================
   3. Tab 导航栏
   ========================================== */
.home-recommend-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #1c1c1c;
    margin-bottom: 50px;
    position: relative;
}

.home-recommend-tab-item {
    font-size: 32px;
    font-weight: normal;
    color: #888;
    padding: 20px 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
    transition: color 0.3s ease;
    position: relative;
}

.home-recommend-tab-item:hover {
    color: #fff;
}

.home-recommend-tab-icon {
    width: 28px;
    height: auto;
    object-fit: contain;
}

.home-recommend-divider {
    width: 1px;
    height: 40px;
    background-color: #262626;
}

/* 下方红色高亮横线 */
.home-recommend-tab-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #d14332;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================
   4. 内容面板布局
   ========================================== */
.home-recommend-content-wrapper {
    position: relative;
    min-height: 480px;
    /* 撑开容器，确保定位内容不塌陷 */
    max-width: var(--global-max-width);
    margin: auto;
}

.home-recommend-panel {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    gap: 60px;
    /* 核心动画状态：默认隐藏 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

/* 左侧文本区 */
.home-recommend-text-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-recommend-panel-title {
    font-size: 20px;
    font-weight: normal;
    color: #ffffff;
    margin-bottom: 25px;
}

.home-recommend-scroll-box {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 15px;
    margin-bottom: 35px;
}

/* 隐藏/美化滚动条 */
.home-recommend-scroll-box::-webkit-scrollbar {
    width: 3px;
}
.home-recommend-scroll-box::-webkit-scrollbar-thumb {
    background: #333;
}

.home-recommend-scroll-box p {
    font-size: 16px;
    color: #aaa;
    line-height: 1.75;
    margin-bottom: 15px;
}

/* 按钮样式 */
.home-recommend-btn {
    display: inline-block;
    align-self: flex-start;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-recommend-btn:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

/* 右侧图片区 */
.home-recommend-image-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
}

.home-recommend-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 380px;
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.home-recommend-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==========================================
   5. 状态联动与切换动效
   ========================================== */

/* 1. 当 Electric 被选中 */
#home-recommend-tab-electric:checked~.home-recommend-nav .home-recommend-label-electric {
    color: #fff;
    font-weight: 600;
}
#home-recommend-tab-electric:checked~.home-recommend-nav .home-recommend-label-electric::after {
    transform: scaleX(1);
    /* 底部红线展开 */
}
#home-recommend-tab-electric:checked~.home-recommend-content-wrapper .home-recommend-panel-electric {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* 向上淡入 */
}

/* 2. 当 Diesel 被选中 */
#home-recommend-tab-diesel:checked~.home-recommend-nav .home-recommend-label-diesel {
    color: #fff;
    font-weight: 600;
}
#home-recommend-tab-diesel:checked~.home-recommend-nav .home-recommend-label-diesel::after {
    transform: scaleX(1);
    /* 底部红线展开 */
}
#home-recommend-tab-diesel:checked~.home-recommend-content-wrapper .home-recommend-panel-diesel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* 向上淡入 */
}




/* --- 移动端响应式适配 --- */
@media (max-width: 768px) {
    .home-choose-section {
        padding: 50px 20px;
    }

    .home-choose-title {
        font-size: 28px;
    }

    /* 屏幕变小时，三列布局转为单列上下垂直排列 */
    .home-choose-grid {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .home-choose-item {
        width: 100%;
        max-width: 400px;
    }
}

/* --- 移动端/响应式适配 --- */
@media (max-width: 1024px) {
    .home-company-container {
        flex-direction: column;
        /* 变更为上下堆叠布局 */
    }

    .home-company-content {
        max-width: 100%;
        padding: 40px 20px;
    }

    .home-company-title {
        font-size: 32px;
    }

    .home-company-visual {
        width: 100%;
        min-height: auto;
        padding: 40px 20px;
    }

    .home-company-banner::after {
        clip-path: polygon(0 120px, 100% 0, 100% 100%, 0 100%);
    }

    .home-company-image-wrapper {
        width: 100%;
    }
}
/* ==========================================
   6. 响应式布局 (屏幕宽度 <= 1024px)
   ========================================== */
@media screen and (max-width: 1024px) {

    body {
        padding: 30px 15px;
    }

    .home-recommend-header {
        margin-bottom: 35px;
    }

    .home-recommend-title {
        font-size: 26px;
    }

    /* --- Tab 导航栏：移动端直接平铺两个按钮 --- */
    .home-recommend-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #1c1c1c;
        margin-bottom: 35px;
        width: 100%;
        max-width: 500px;
        /* 限制导航栏在手机端不会拉得太宽 */
        margin-left: auto;
        margin-right: auto;
    }

    .home-recommend-divider {
        width: 1px;
        height: 20px;
        background-color: #262626;
    }

    .home-recommend-tab-item {
        flex: 1;
        /* 两个按钮对半平铺 */
        justify-content: center;
        /* 文字内容居中 */
        padding: 12px 10px;
        font-size: 15px;
        white-space: nowrap;
        /* 防止文字折行 */
    }

    /* 移动端缩小红叉车图标 */
    .home-recommend-tab-icon {
        width: 20px;
    }

    /* --- 内容区：采用层叠定位以实现完美的渐隐渐出 --- */
    .home-recommend-content-wrapper {
        position: relative;
        min-height: 550px;
        /* 给定一个基础高度，防止绝对定位塌陷 */
    }

    .home-recommend-panel {
        position: absolute;
        /* 核心：绝对定位使两个面板重叠在同一位置 */
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column-reverse;
        /* 移动端图片在上，文字在下 */
        gap: 25px;

        /* 初始状态：完全透明隐藏 */
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        /* 增加 transition 延迟和时长控制，确保淡出与淡入自然平滑 */
        transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, visibility 0.4s;
    }

    /* --- 状态激活：渐现动画 --- */
    #home-recommend-tab-electric:checked~.home-recommend-content-wrapper .home-recommend-panel-electric,
    #home-recommend-tab-diesel:checked~.home-recommend-content-wrapper .home-recommend-panel-diesel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        z-index: 2;
        /* 提高当前显示面板的层级 */
    }

    /* --- 移动端细节微调 --- */
    .home-recommend-image-side,
    .home-recommend-text-side {
        flex: none;
        width: 100%;
    }

    .home-recommend-img-placeholder {
        min-height: 220px;
        background-color: #080808;
    }

    .home-recommend-img-placeholder img {
        max-height: 240px;
    }

    .home-recommend-text-side {
        text-align: center;
        align-items: center;
    }

    .home-recommend-panel-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .home-recommend-scroll-box {
        max-height: none;
        /* 移动端平铺展示文本，不使用内部滚动条 */
        padding-right: 0;
        margin-bottom: 20px;
    }

    .home-recommend-scroll-box p {
        font-size: 13px;
        line-height: 1.6;
    }

    .home-recommend-btn {
        align-self: center;
        /* 按钮居中 */
        padding: 10px 30px;
        font-size: 12px;
    }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .home-feature-card {
        flex: 0 0 48%;
        /* 平板端一行两个 */
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .home-feature-card {
        flex: 0 0 100%;
        /* 手机端一行一个 */
        margin-bottom: 15px;
    }
}


/*factory*/
/* 基础盒模型重置 */
.home-factory-container *,
.home-factory-container *::before,
.home-factory-container *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 外层大容器 */
.home-factory-container {
    width: 100%;
    max-width: var(--global-max-width);
    margin: auto;
}

/* ==========================================================================
   1. 初始状态（页面滚动到该区域前）
   ========================================================================== */
.home-factory-container[data-bs-animation="slide"] {
    opacity: 0;
    /* 核心：缩放到中心的一个点 */
    transform: scale(0);
    /* 显式指定从正中心开始放射 */
    transform-origin: center center;
    /* 初始模糊，增强“放射光芒”的视觉效果 */
    filter: blur(15px);

    /* 过渡动画设置：
    - 0.7s: 动画持续时间，不急不缓
    - cubic-bezier: 这是一个精调的贝塞尔曲线，会让板块在放大到 100% 时
      有一个非常轻微的“向外冲出再回弹”的生动效果（类似放射的惯性）
  */
    transition:
        opacity 0.6s ease-out,
        transform 0.7s cubic-bezier(0.34, 1.6, 0.64, 1),
        filter 0.6s ease-out;

    /* 告诉浏览器准备开启硬件加速，防止大板块动画掉帧卡顿 */
    will-change: transform, opacity, filter;
}

/* ==========================================================================
   2. 激活状态（JS 监听到滚动并加上 .is-active 后）
   ========================================================================== */
.home-factory-container[data-bs-animation="slide"].is-active {
    opacity: 1;
    transform: scale(1);
    /* 恢复到 100% 正常大小 */
    filter: blur(0);
    /* 恢复清晰 */
}

/* 每一行布局：核心 Flex */
.home-factory-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

/* 每一列基准样式 */
.home-factory-col {
    flex: 1 1 50%;
    /* 大屏平分 50% */
    min-width: 300px;
    /* 保证低分辨率下的响应安全 */
}

/* 图片列控制 */
.home-factory-img-col {
    display: flex;
    overflow: hidden;
}

.home-factory-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 保证图片等比裁剪铺满，不拉伸变型 */
    display: block;
    transition: transform 0.2s ease-in-out;
}
.home-factory-img:hover {
    transform: scale(1.2);
}


/* 文本列控制：内部使用 flex 实现上下左右垂直居中 */
.home-factory-text-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    color: #ffffff;
}

/* 文本包装盒，限制最大宽度提升大屏阅读体验 */
.home-factory-content {
    max-width: 500px;
    width: 100%;
}

.home-factory-content h2 {
    color: white;
}

/* 标题样式 */
.home-factory-title {
    font-size: 29px;
    font-weight: normal;
    letter-spacing: 1px;
}

/* 装饰线条 */
.home-factory-line {
    width: 60px;
    height: 3px;
    background-color: #ffffff;
    margin: 25px 0;
}

/* 描述文本 */
.home-factory-desc {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* 背景色区分 */
.home-factory-bg-black {
    background-color: #050505;
}

.home-factory-bg-orange {
    background-color: #e2513e;
    /* 还原图中的砖红/橙色 */
}

/* 大屏交错排列核心：将第二行的文本移到右边 */
@media (min-width: 768px) {
    .home-factory-reverse {
        flex-direction: row-reverse;
    }
}

/* 移动端响应式布局（屏幕小于 768px） */
@media (max-width: 767px) {
    .home-factory-col {
        flex: 1 1 100%;
        /* 宽度撑满，自动变成上下堆叠 */
    }

    .home-factory-text-col {
        padding: 45px 25px;
        /* 移动端适当缩小内边距 */
    }

    .home-factory-title {
        font-size: 22px;
    }

    .home-factory-img {
        height: 300px;
        /* 移动端固定图片高度，防止长图过长 */
    }
}


/*form*/
/* 基础统一样式重置 */
.home-form-contact-section *,
.home-form-contact-section *::before,
.home-form-contact-section *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 最外层卡片容器 */
.home-form-contact-section {
    background-color: #e9e9e9;
    padding: 80px 50px;
    border-radius: 16px;
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    scroll-margin-top: 140px;
    position: relative;
}

/* 主大标题 */
.home-form-main-title {
    font-size: 60px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* 内容区域采用 Flex 布局 */
.home-form-contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* 左列信息宽度控制 */
.home-form-info-col {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 右列表单宽度控制 */
.home-form-form-col {
    flex: 2 1 550px;
}

/* 信息区块 */
.home-form-info-block {
    max-width: 320px;
}

.home-form-sub-title {
    font-size: 32px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
}

.home-form-text {
    font-size: 16px;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 4px;
}

/* 地图缩略图 */
.home-form-map-box {
    width: 220px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid #d0d0d0;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-form-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 表单内部 Flex 栅格（一行两列） */
.home-form-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-form-form-grid {
    display: flex;
    flex-wrap: wrap;
}

.home-form-input-group {
    display: flex;
    flex-direction: column;
}

/* 输入框与下拉框统一样式 */
.home-form-input,
.home-form-select,
.home-form-textarea {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 14px;
    color: #333333;
    outline: none;
    transition: border-color 0.2s;
}

.home-form-input:focus,
.home-form-select:focus,
.home-form-textarea:focus {
    border-color: #e2513e;
}

/* 原生下拉框美化：定制右侧箭头 */
.home-form-select-wrapper {
    position: relative;
}

.home-form-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 35px;
}

/* 使用伪元素绘制向下箭头 */
.home-form-select-wrapper::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-30%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-right: 2px solid #888888;
    border-bottom: 2px solid #888888;
    pointer-events: none;
}

/* 文本域特殊处理 */
.home-form-textarea-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.home-form-textarea {
    height: 240px;
    padding: 15px;
    resize: none;
}

/* 占位符颜色调整 */
.home-form-input::placeholder,
.home-form-textarea::placeholder,
.home-form-select:invalid {
    color: #a0a0a0;
}

/* 提交按钮样式 */
.home-form-submit-btn {
    width: 100%;
    height: 50px;
    background-color: #e5e5e5;
    border: 1px solid #e2513e;
    color: #e2513e;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.home-form-submit-btn:hover {
    background-color: #e2513e;
    color: #ffffff;
}

/* 移动端响应式断点（小于 768px） */
@media (max-width: 767px) {
    .home-form-contact-section {
        padding: 40px 20px;
        margin: 10px;
    }

    .home-form-main-title {
        font-size: 32px;
        margin-bottom: 25px;
    }

    /* 两栏转为单栏上下堆叠 */
    .home-form-contact-container {
        flex-direction: column;
        gap: 35px;
    }

    .home-form-info-col,
    .home-form-form-col {
        flex: 1 1 100%;
    }

}
