
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Manrope:wght@400;600;700;800&display=swap');

/* ========== PC端：左文右图（文字左，图片右） ========== */
.koai-reverse-wrapper {
    width: 100vw;
    aspect-ratio: 1920 / 700;
    margin: 0 auto;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.koai-reverse-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

/* 左侧文字区 */
.koai-reverse-left {
    width: 50%;
    height: 100%;
    flex-shrink: 0;
    background-color: #f7f7f7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    padding: clamp(20px, 7vw, 140px);
    overflow-y: auto;
}

/* 右侧图片区 */
.koai-reverse-right {
    width: 50%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.koai-reverse-right img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.koai-reverse-title {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 600;
    font-size: clamp(24px, 1.9vw, 36px);
    color: #000;
    line-height: 1.2;
    text-transform: none;
    margin: 0 0 clamp(30px, 3.6vw, 70px) 0;
    letter-spacing: -0.5px;
    transform: scaleY(1.1);
    transform-origin: center;
}

.koai-reverse-title-line {
    display: block;
    width: 100%;
}

.koai-reverse-paragraph {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(14px, 1.25vw, 24px);
    color: #000;
    line-height: 1.4;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    -webkit-font-smoothing: antialiased;
    text-align: center !important;
}

.koai-reverse-paragraph:last-child {
    margin-bottom: 0;
}

/* ========== 手机端：上图下文（图片在上，文字在下），独立样式避免冲突 ========== */
@media (max-width: 768px) {
    .koai-reverse-wrapper {
        width: 100%;
        aspect-ratio: auto;
        height: auto;
        margin: 0 auto;
        background: #fff;
        display: block;
        padding: 0 10px;
        box-sizing: border-box;
    }
    .koai-reverse-content {
        flex-direction: column;
        height: auto;
    }
    .koai-reverse-left,
    .koai-reverse-right {
        width: 100%;
        height: auto;
        flex-shrink: 1;
    }
    /* 图片在上（原右侧） */
    .koai-reverse-right {
        position: static;
        overflow: visible;
        order: 1;
    }
    .koai-reverse-right img {
        position: static;
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }
    /* 文字在下（原左侧） */
    .koai-reverse-left {
        background-color: #f7f7f7;
        padding: 30px 20px;
        justify-content: center;
        overflow-y: visible;
        box-sizing: border-box;
        aspect-ratio: 730 / 480;
        order: 2;
    }
    .koai-reverse-title {
        font-size: clamp(20px, 3vw, 24px) !important;
        font-weight: 500 !important;
        line-height: 1.3;
        margin: 0 0 15px 0 !important;
        letter-spacing: 0px;
        transform: scaleY(1.1) !important;
        transform-origin: center !important;
        text-align: center !important;
    }
    .koai-reverse-paragraph {
        font-size: clamp(12px, 1.8vw, 16px) !important;
        font-weight: 700 !important;
        line-height: 1.4;
        letter-spacing: 0px;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        font-synthesis: weight none !important;
        font-variant-ligatures: none !important;
        -webkit-text-stroke: 0.3px #000;
        text-stroke: 0.3px #000;
        margin-bottom: 8px !important;
        text-align: center !important;
    }
    .koai-reverse-paragraph:last-child {
        margin-bottom: 8px !important;
    }
}
