﻿/* 商务合作页面样式 - 纯Flex布局版本 */

/* 输入框基础样式 */
.cooperate-input {
    background-color: transparent;
    border: 0px;
    padding: 0px;
    margin: 0px;
    font-size: 18px;
    position: absolute;
}

.cooperate-input-oem {
    width: 218px;
    height: 38px;
}

.cooperate-input-agent {
    width: 215px;  
    height: 36px;
}

/* 页面主要区域 */
.cooperate-hero {
    width: 100%;
    max-width: 1920px;
    height: 733px;
    background-image: url(../images/shangwuhezuo/shangwuhezuo_2_2.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cooperate-main {
    width: 100%;
    max-width: 1920px;
    display: flex;
    justify-content: center;
}

.cooperate-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* 合作区块 - 使用flex布局 */
.cooperate-section {
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: stretch;
    gap: 40px;
    transition: all 0.3s ease;
}

.cooperate-section-oem {
    margin-top: 100px;
}

.cooperate-section-agent {
    /* 不需要额外样式，继承父级 */
}

/* 图片区域 */
.cooperate-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cooperate-image-oem,
.cooperate-image-agent {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.cooperate-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.cooperate-image img:hover {
    transform: scale(1.02);
}

/* 内容区域 - 占据100%高度且垂直居中 */
.cooperate-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0;
    transition: all 0.3s ease;
}

.cooperate-content-oem,
.cooperate-content-agent {
    width: 100%;
    height: 100%;
}

/* 文本盒子 */
.cooperate-text-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.cooperate-text-box-oem,
.cooperate-text-box-agent {
    /* 继承父级样式 */
}

/* 标题样式 */
.cooperate-title {
    color: #126495;
    font-size: 30px;
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
    transition: color 0.3s ease;
}

.cooperate-title:hover {
    color: #0e5275;
}

.cooperate-title-oem,
.cooperate-title-agent {
    /* 继承父级样式 */
}

/* 描述文本样式 */
.cooperate-description {
    color: #242424;
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.cooperate-description:hover {
    opacity: 1;
}

.cooperate-description-oem,
.cooperate-description-agent {
    /* 继承父级样式 */
}

/* 按钮样式 */
.cooperate-button {
    background-color: #126495;
    color: #ffffff;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(18, 100, 149, 0.2);
}

.cooperate-button:hover {
    background-color: #0e5275;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(18, 100, 149, 0.3);
}

.cooperate-button-oem {
    width: 218px;
    height: 38px;
}

.cooperate-button-agent {
    width: 215px;
    height: 36px;
}

/* 交替布局样式 - 使用flex-direction控制 */
/* 奇数位置：内容在左，图片在右 */
.cooperate-section-agent:nth-child(odd) {
    flex-direction: row;
}

/* 偶数位置：图片在左，内容在右 */
.cooperate-section-agent:nth-child(even) {
    flex-direction: row-reverse;
}

/* 响应式媒体查询 */
/* 大屏幕优化 */
@media screen and (min-width: 1400px) {
    .cooperate-container {
        padding: 0 40px;
        gap: 100px;
    }
    
    .cooperate-section {
        min-height: 600px;
        gap: 60px;
    }
    
    .cooperate-content {
        padding: 60px 0;
    }
    
    .cooperate-text-box {
        gap: 25px;
    }
    
    .cooperate-title {
        font-size: 36px;
    }
    
    .cooperate-description {
        font-size: 20px;
    }
}

/* 平板设备 */
@media screen and (max-width: 1024px) {
    .cooperate-container {
        padding: 0 15px;
        gap: 60px;
    }
    
    .cooperate-section {
        min-height: 450px;
        gap: 30px;
    }
    
    .cooperate-content {
        padding: 30px 0;
    }
    
    .cooperate-text-box {
        gap: 18px;
    }
    
    .cooperate-title {
        font-size: 28px;
    }
    
    .cooperate-description {
        font-size: 17px;
    }
}

/* 移动设备 - 图片在上，文字在下 */
@media screen and (max-width: 768px) {
    .cooperate-hero {
        height: 400px;
        margin-bottom: 40px;
    }
    
    .cooperate-container {
        padding: 0 15px;
        gap: 40px;
    }
    
    .cooperate-section {
        flex-direction: column !important;
        min-height: auto;
        gap: 20px;
        text-align: center;
    }
    
    .cooperate-section-oem {
        margin-top: 60px;
    }
    
    .cooperate-image {
        order: 1;
        max-width: 500px;
        align-self: center;
    }
    
    .cooperate-content {
        order: 2;
        align-items: center;
        text-align: center;
        padding: 20px 0;
    }
    
    .cooperate-text-box {
        gap: 15px;
        align-items: center;
    }
    
    .cooperate-title {
        font-size: 26px;
        text-align: center;
    }
    
    .cooperate-description {
        font-size: 16px;
        text-align: center;
        padding: 0 10px;
    }
    
    .cooperate-button {
        align-self: center;
    }
    
    /* 移动端取消交替布局，统一为图片在上 */
    .cooperate-section-agent:nth-child(odd),
    .cooperate-section-agent:nth-child(even) {
        flex-direction: column !important;
    }
}

/* 小屏移动设备 */
@media screen and (max-width: 480px) {
    .cooperate-container {
        padding: 0 10px;
        gap: 30px;
    }
    
    .cooperate-hero {
        height: 300px;
    }
    
    .cooperate-section-oem {
        margin-top: 40px;
    }
    
    .cooperate-content {
        padding: 15px 0;
    }
    
    .cooperate-text-box {
        gap: 12px;
    }
    
    .cooperate-title {
        font-size: 22px;
    }
    
    .cooperate-description {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .cooperate-button {
        font-size: 16px;
    }
    
    .cooperate-button-oem,
    .cooperate-button-agent {
        width: 200px;
        height: 40px;
    }
}

/* 超小屏设备 */
@media screen and (max-width: 360px) {
    .cooperate-container {
        padding: 0 8px;
        gap: 25px;
    }
    
    .cooperate-title {
        font-size: 20px;
    }
    
    .cooperate-description {
        font-size: 14px;
    }
    
    .cooperate-button-oem,
    .cooperate-button-agent {
        width: 180px;
        height: 38px;
    }
}