/* section-1 */
.section-1 {
    padding: 5rem 0;
}
.section-1 .content-title {
    text-align: center;
    color: #fff;
    letter-spacing: 2px;
}
.section-1 .content-title h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}
.section-1 .content-title p {
    color: #ccc;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 300;
    margin-top: 1rem;
}
.section-1 #video-box {
    width: 100%;
    margin-top: 1rem;
    padding: 0 1rem;
}
.section-1 #video-box #video {
    width: 100%;
    height: auto;
    border: 0.35rem solid rgba(67,131,158,0.2);
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 3px 3px 5px rgba(42,66,78,.75);
}

/* section-3 */
.section-3{
    padding-bottom: 5rem;
    position: relative;
}
.section-3 .content-title {
    text-align: center;
    color: #ccc;
    letter-spacing: 2px;
    padding: 5rem 0 0 0;
}
.section-3 .content-title .title-bg {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: #fff;
}
.section-3 .content-title .title-en {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    font-weight: 300;
    margin: 1rem 0;
}
.section-3 .content-title .des {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}
.section-3 .factory-cards {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.section-3 .factory-cards .card {
    position: relative;
    flex: 0 1 calc(50% - 0.25rem);
    overflow: hidden;
}
.section-3 .factory-cards .card .card-img {
    filter: brightness(0.5);
    transition: filter 0.4s ease;
    border-radius: 1rem;
    overflow: hidden;
}
.section-3 .factory-cards .card.active .card-img {
    filter: brightness(0.35);
}
.section-3 .factory-cards .card .card-img img {
    width: 100%;
}
.section-3 .factory-cards .card .card-txt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    font-size: clamp(1rem, 3vw, 1.15rem);
    letter-spacing: 3px;
}
.section-3 .factory-cards .card .card-txt strong {
    font-family: var(--font-montserrat);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    letter-spacing: -2px;
    padding-right: 3px;
}
.section-3 .factory-cards .card .btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background-color: #eee;
    font-size: 2rem;
    line-height: 1.75rem;
    width: 2.5rem;
    height: 2.5rem;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    color: #a1a1a1;
    display: none;
}

/* factory-cards overlay 展开层 */
.section-3 .factory-cards-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}
.section-3 .factory-cards-overlay .overlay-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    opacity: 0;
    transform: scale(0);
    transform-origin: 0% 0%;
    transition: 
        transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.35s ease;
    pointer-events: none;
}
.section-3 .factory-cards-overlay.active .overlay-inner {
    opacity: 1;
    transform: scale(1, 1);
    pointer-events: auto;
}
.section-3 .factory-cards-overlay .overlay-inner .card-img {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
}
.section-3 .factory-cards-overlay .overlay-inner .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.section-3 .factory-cards-overlay .overlay-inner .card-txt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    letter-spacing: 3px;
    white-space: nowrap;
    visibility: hidden;
}
.section-3 .factory-cards-overlay .overlay-inner .card-txt strong {
    font-family: var(--font-montserrat);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
}
.section-3 .factory-cards-overlay .overlay-inner .card-txt p {
    margin-top: 0.25rem;
    font-size: 1rem;
}
/* overlay 图片上方文字描述 */
.section-3 .factory-cards-overlay .overlay-inner .card-desc {
    position: absolute;
    width: 25%;
    min-width: 10rem;
    height: auto;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 2;
    padding: 1.5rem 2rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-align: left;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.45) 100%);
}
.section-3 .factory-cards-overlay .overlay-inner .btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background-color: #eee;
    font-size: 2rem;
    line-height: 1.75rem;
    width: 2.5rem;
    height: 2.5rem;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    color: #a1a1a1;
    pointer-events: auto;
    display: none;
}

/* section-2 */
.section-2 {
    padding: 3rem 0;
    color: #fff;
}
.section-2 .content-title {
    text-align: center;
    letter-spacing: 2px;
}
.section-2 .content-title .title-bg {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}
.section-2 .content-title .title-en {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    font-weight: 300;
    margin: 1rem 0;
    color: #ccc;
}
.section-2 .content-title .des {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: #ccc;
    margin-bottom: 3rem;
}
.section-2 .content {
    display: flex;
    align-items: center;
    gap: 0;
}
.section-2 .content .left-machine {
    flex: 0 1 50%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    z-index: 1;
}
.section-2 .content .left-machine .machine-item {
    flex: 0 1 calc(50% - 1.5rem);
    background-color: rgba(42,66,78,.5);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 3px 3px 5px rgba(0,0,0,.3);
    cursor: pointer;
    transition: all 0.25s ease;
}
.section-2 .content .left-machine .machine-item:hover {
    box-shadow: 3px 3px 5px rgba(0,0,0,.5);
    transform: scale(1.02);
}
.section-2 .content .left-machine .machine-item img {
    width: 100%;
}
.section-2 .content .left-machine .machine-item .equi-txt {
    padding: 1rem;
}
.section-2 .content .left-machine .machine-item .equi-txt .equi-title {
    color: var(--moki-accent);
    margin-bottom: 0.75rem;
}
.section-2 .content .left-machine .machine-item .equi-txt .title-en {
    margin: 8px 0;
    color: #ccc;
    font-weight: 300;
}
.section-2 .content .left-machine .machine-item .equi-txt .des {
    color: #ddd;
}
.section-2 .content .right-img {
    flex: 0 1 50%;
}
.section-2 .content .right-img img {
    width: 100%;
    transform: scale(1.35);
    z-index: -1;
}

/* section-4 */
.section-4 {
    padding: 5rem 0;
    overflow: hidden;
}
.section-4 .content-title {
    text-align: center;
    color: #fff;
    letter-spacing: 2px;
}
.section-4 .content-title .title-bg {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}
.section-4 .content-title .title-en {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: #ccc;
    font-weight: 300;
    margin: 1rem 0 3rem 0;
}

/* 图片跑马灯 */
.section-4 .marquee-wrap {
    overflow: hidden;
}
.section-4 .img-list {
    display: flex;
    gap: 5rem;
    list-style: none;
    padding: 4rem 0;
    margin: 0;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
    animation-play-state: running;
    background: linear-gradient(90deg, rgba(67,131,158,0.1),rgba(35,47,52,0.1));
}
.section-4 .marquee-wrap:hover .img-list {
    animation-play-state: paused;
}
.section-4 .img-list .img-box {
    flex-shrink: 0;
    width: 560px;
    height: 360px;
    border-radius: 1rem;
    overflow: hidden;
}
.section-4 .img-list .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.section-4 .img-list .img-box:hover img {
    transform: scale(1.05);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========== 响应式 ========== */

/* ≤1200：间距微调 */
@media screen and (max-width: 1200px) {
    .section-2 .content .left-machine .machine-item {
        flex: 0 1 calc(50% - 1rem);
    }
}

/* ≤1024：section-2 左机右图垂直堆叠 */
@media screen and (max-width: 1024px) {
    .section-1 {
        padding: 3rem 0;
    }
    .section-1 #video-box #video {
        margin-top: 3rem;
        border-radius: 2rem;
    }

    .section-3 {
        padding-bottom: 3rem;
    }
    .section-3 .content-title {
        padding: 2rem 0 3rem 0;
    }

    .section-4 {
        padding: 3rem 0;
    }
    .section-4 .content-title .title-en {
        margin: 1rem 0 2rem 0;
    }
    .section-4 .img-list .img-box {
        width: 400px;
        height: 260px;
    }
}

/* ≤768：2列→1列，section-2 完全堆叠 */
@media screen and (max-width: 768px) {
    .section-1 {
        padding: 2.5rem 0;
    }
    .section-1 #video-box #video {
        margin-top: 2.5rem;
        border-radius: 1.5rem;
    }

    .section-2 .content {
        flex-direction: column;
        gap: 2rem;
    }
    .section-2 .content .left-machine {
        flex: 0 1 auto;
        width: 100%;
    }
    .section-2 .content .right-img {
        flex: 0 1 auto;
        width: 100%;
        overflow: hidden;
    }
    /* 手机端：right-img 已不再作为左机的叠加背景，移除 scale 避免横向溢出 */
    .section-2 .content .right-img img {
        transform: none;
    }

    .section-3 {
        padding-bottom: 2.5rem;
    }
    .section-3 .content-title {
        padding: 5rem 0 0 0;
    }
    /* 平板：卡片文字随全局根字号断点缩放，覆盖 clamp 的 vw 中间值 */
    .section-3 .factory-cards .card .card-txt {
        font-size: 1.25rem;
    }
    .section-3 .factory-cards .card .card-txt strong {
        font-size: 2.5rem;
    }
    .section-3 .factory-cards-overlay .overlay-inner .card-txt {
        font-size: 1.25rem;
    }
    .section-3 .factory-cards-overlay .overlay-inner .card-txt strong {
        font-size: 2.5rem;
    }
    .section-3 .factory-cards-overlay .overlay-inner .card-desc {
        width: 30%;
    }

    .section-4 {
        padding: 2.5rem 0;
    }
    .section-4 .img-list {
        gap: 2.5rem;
        padding: 2.5rem 0;
    }
    .section-4 .img-list .img-box {
        width: 300px;
        height: 200px;
    }
}

/* ≤640：machine-item 2列→1列 */
@media screen and (max-width: 640px) {
    .section-1 {
        padding: 2rem 0;
    }
    .section-1 #video-box #video {
        margin-top: 2rem;
        border-radius: 1.25rem;
    }

    .section-2 .content .left-machine .machine-item {
        flex: 0 1 100%;
    }

    .section-3 {
        padding-bottom: 2rem;
    }
    .section-3 .content-title {
        padding: 3rem 0 0 0;
    }
    /* 手机：数字进一步收敛（2rem 随根字号 12px→11px 自动缩放） */
    .section-3 .factory-cards .card .card-txt strong {
        font-size: 2rem;
    }
    .section-3 .factory-cards-overlay .overlay-inner .card-txt strong {
        font-size: 2rem;
    }

    .section-4 {
        padding: 2rem 0;
    }
    .section-4 .img-list {
        gap: 2rem;
        padding: 2rem 0;
    }
    .section-4 .img-list .img-box {
        width: 240px;
        height: 160px;
    }
}

/* ≤440 */
@media screen and (max-width: 440px) {
    .section-1 {
        padding: 1.5rem 0;
    }
    .section-1 #video-box #video {
        margin-top: 1.5rem;
        border-radius: 1rem;
    }
    .section-3 {
        padding-bottom: 1.5rem;
    }
    .section-3 .factory-cards {
        row-gap: 2.5rem;
        flex-direction: column;
    }
    .section-3 .factory-cards-overlay {
        display: none;
    }
    
    .section-4 {
        padding: 1.5rem 0;
    }
    .section-4 .img-list {
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    .section-4 .img-list .img-box {
        width: 200px;
        height: 130px;
    }
}