/* ============================================
   Cooperation Page Styles - 合作方式页面样式
   根据 Figma 设计 1:1 还原，使用 vw/vh 响应式适配
   ============================================ */

.cooperation-main-content {
    width: 100%;
    position: relative;
    background-color: #FCFBFB;
    margin: 0 auto;
    padding: 0;
}

@media screen and (max-width: 1640px) and (min-width: 769px) {
    .cooperation-main-content {
        min-height: 2000px;
    }
}

/* Banner Section - 1920px × 620px, 紧贴导航 */
.cooperation-banner {
    width: 100%;
    height: 620px;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0 0 0 175px;
}

/* Cooperation Intro Section - 位置: (530, 940), 尺寸: 860px × 198px */
.cooperation-intro-section {
    width: 100%;
    padding: 0;
    margin-top: 180px;
    position: relative;
}

.cooperation-intro-section .container {
    margin: 0 auto;
    padding: 0 clamp(20px, 11.46vw, 220px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cooperation-intro-title {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    font-size: clamp(32px, 2.92vw, 56px);
    line-height: 1.06em;
    color: #C69D7A;
    text-align: center;
    margin-bottom: 1.35vw;
}
.container .cooperation-intro-title{
    font-size: 56px;
}
.cooperation-intro-subtitle {
    font-family: 'PingFang SC', sans-serif;
    white-space: nowrap;
    font-weight: 500;
    font-size: clamp(14px, 0.94vw, 18px);
    line-height: 1.4em;
    color: #384963;
    text-align: center;
    margin-bottom: 1.82vw;
}

.cooperation-intro-description {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 0.83vw, 16px);
    line-height: 1.6em;
    letter-spacing: 0.04em;
    color: #384963;
    text-align: center;
    width: 44.79vw;
    max-width: 860px;
    min-height: 2.71vw;
}

.cooperation-methods-section {
    width: 100%;
    height: 420px;
    position: relative;
    margin-top: 180px;
    overflow: visible;
    margin-bottom: 500px;
}

.cooperation-methods-section .container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    height: 415px;
    z-index: 2;
    width: 100%;
}

/* Blue Background - 位置: (220, 0), 尺寸: 1700px × 420px */
.cooperation-blue-bg {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    min-width: 1700px;
    height: 420px;
    z-index: 1;
    overflow: hidden;
}

/* PC最小屏幕1600px：宽度等于屏幕宽度减去导航的左padding值（220px） */
@media screen and (max-width: 1920px) {
    .cooperation-blue-bg {
        width: calc(100vw - 220px);
        min-width: auto;
    }
}

.cooperation-blue-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 0 6.25vw;
}

/* 默认隐藏 H5 图片和大屏图片 */
.cooperation-blue-bg .cooperation-bg-h5,
.cooperation-blue-bg .cooperation-bg-big {
    display: none;
}

/* 超过2200px：显示大屏图，隐藏默认PC图 */
@media screen and (min-width: 2201px) {
    .cooperation-blue-bg .cooperation-bg-big {
        display: block;
    }
    .cooperation-blue-bg .cooperation-bg-pc {
        display: none;
    }
}

/* Cooperation Methods Grid - 位置: (357, 1560), 尺寸: 1206px × 415px */
.cooperation-methods-grid {
    display: flex;
    justify-content: space-around;
    width: 100%;
    position: absolute;
    padding: 0 clamp(20px, 11.46vw, 220px);
    top: clamp(180px, 12.5vw, 240px);
    z-index: 3;
}

/* Cooperation Method Base Styles - 每个卡片 362px × 415px */
.cooperation-method {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 362px;
    height: 415px;
    position: relative;
    flex-shrink: 0;
}

.method-image {
    position: absolute;
    top: 0;
    left: 5.83vw;
    width: 250px;
    overflow: hidden;
    background-color: transparent;
    z-index: 1;
}

.method-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* 屏幕小于1440px时，method-image里面的图片scale 0.9 */
@media screen and (max-width: 1439px) {
    .method-image img {
        transform: scale(0.85);
        -webkit-transform: scale(0.85); /* Safari 兼容性 */
    }
}

/* 默认隐藏 H5 图片 */
.method-image .cooperation-image-1-h5,
.method-image .cooperation-image-2-h5,
.method-image .cooperation-image-3-h5 {
    display: none;
}

.method-icon {
    width: 82px;
    height: 82px;
    position: absolute;
    bottom: 60px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 0 0 transparent;
}

.icon-img {
    width: 82px;
    object-fit: cover;
}

.method-content {
    display: flex;
    flex-direction: column;
    gap: 0.42vw;
    width: 16.15vw;
    max-width: 310px;
    position: absolute;
    bottom: -auto;
    top: 370px;
    left: 0;
    align-items: flex-start;
    z-index: 10;
}

/* Safari 兼容性：为不支持 gap 的浏览器添加 margin */
@supports not (gap: 0.42vw) {
    .method-content > *:not(:last-child) {
        margin-bottom: 0.42vw;
    }
}

.method-title {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 0.94vw, 18px);
    line-height: 1.4em;
    color: #B29786;
    text-align: left;
    width: 16.15vw;
    max-width: 310px;
    margin: 0;
    padding: 0;
}

.method-description {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 0.83vw, 16px);
    line-height: 1.6em;
    letter-spacing: 0.04em;
    color: #384963;
    text-align: left;
    width: 16.15vw;
    max-width: 310px;
    margin: 0;
    padding: 0;
}

.cooperation-note-section {
    max-width: 760px;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 4;
}

/* Safari 兼容性：为不支持 gap 的浏览器添加 margin */
@supports not (gap: 16px) {
    .method-content > *:not(:last-child) {
        margin-bottom: 16px;
    }
}

.note-title {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 0.94vw, 18px);
    line-height: 1.4em;
    color: #B29786;
    text-align: center;
    margin: 0;
    padding: 0;
}

.note-description {
    font-family: 'PingFang SC', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 0.83vw, 16px);
    line-height: 1.6em;
    letter-spacing: 0.04em;
    color: #FCFBFB;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* ============================================
   移动端适配 - 将所有绝对定位改为相对定位
   ============================================ */
@media screen and (max-width: 768px) {
    /* cooperation-main-content 内部所有使用绝对定位的元素改为相对定位 */
    .cooperation-main-content section > * {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
    }
    
    /* 保持某些元素的特殊定位（不在main-content内） */
    #header-container {
        position: relative;
    }
    
    /* 移动端导航弹窗必须保持 fixed 定位 */
    .mobile-nav-overlay {
        position: fixed !important;
    }
    
    /* 移动端多语言弹窗打开时，header-container 变为 fixed */
    #header-container.lang-dropdown-open {
        position: fixed;
    }
    
    #footer-container {
        position: absolute;
    }
    
    .mobile-nav-footer {
        position: absolute;
    }
    
    /* 容器元素保持相对定位 */
    .container,
    .cooperation-main-content {
        position: relative;
    }
    
    .cooperation-main-content .cooperation-banner {
        height: auto;
    }
    
    .cooperation-main-content .cooperation-intro-section {
        margin-top: 80px;
    }
    
    /* 为各个section内部元素添加间距占位 */
    .cooperation-main-content > section > * {
        margin-bottom: calc(20px * 100vw / 390px);
    }
    
    .cooperation-main-content > section > *:last-child {
        margin-bottom: 0;
    }
    
    .cooperation-main-content {
        min-height: auto;
        padding-bottom: 160px;
    }
    .cooperation-methods-section{
        margin-top: 80px;
        height: 1600px;
        .cooperation-blue-bg{
            width: 100%;
            height: 420px;
            margin-bottom: 0;
            img{
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
        .container{
            position: absolute;
            top: 0;
            left: 0;
            height: auto;
            max-width: 100%;
            .method-image{
                width: 230px;
                height: 310px;
                position: absolute;
                right: 0;
                left: auto;
                top: 0;
            }
            .method-icon{
                width: 82px;
                height: 82px;
                top: auto;
                bottom: 53px;
                img{
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                    max-width: 100%;
                    max-height: 100%;
                }
            }
            .method-content{
                width: auto;
                max-width: 100%;
                top: auto;
                bottom: -10px;
                gap: 0;
                .method-title{
                    width: 100%;
                    max-width: 100%;
                    padding: 0;
                    margin-bottom: 10px;
                }
                .method-description{
                    padding: 0;
                }
            }
            .cooperation-note-section{
                width: 100%;
                max-width: 100%;
                left: auto;
                top: 60px;
                transform: none;
                gap: 0;
            }
        }
        .cooperation-methods-grid{
            display: flex;
            flex-direction: column;
            gap: 47px;
            position: relative;
            top: 244px;
            padding: 0 30px;
            width: 100%;
            align-items: center;
        }
        
        /* Safari 兼容性：为不支持 gap 的浏览器添加 margin */
        @supports not (gap: 47px) {
            .cooperation-methods-grid > *:not(:last-child) {
                margin-bottom: 47px;
            }
        }
        .cooperation-method{
            width: 340px;
            height: 408px;
            max-width: 340px;
            max-height: 408px;
        }
    }
    
    
    /* 移动端显示 H5 图片，隐藏 PC 图片 */
    .cooperation-blue-bg .cooperation-bg-pc,
    .cooperation-blue-bg .cooperation-bg-big {
        display: none;
    }
    .cooperation-blue-bg .cooperation-bg-h5 {
        display: block;
    }
    
    .method-image .cooperation-image-1-pc,
    .method-image .cooperation-image-2-pc,
    .method-image .cooperation-image-3-pc {
        display: none;
    }
    .method-image .cooperation-image-1-h5,
    .method-image .cooperation-image-2-h5,
    .method-image .cooperation-image-3-h5 {
        display: block;
    }
    
    /* 移动端英文和日语版本：method-content 的 bottom 为 -30px */
    .lang-en .cooperation-methods-section .container .method-content,
    .lang-ja .cooperation-methods-section .container .method-content {
        bottom: -15px;
    }
    
    /* 移动端英文和日语版本：method-title 的 margin-bottom 为 5px */
    .lang-en .cooperation-methods-section .container .method-content .method-title,
    .lang-ja .cooperation-methods-section .container .method-content .method-title {
        margin-bottom: 8px;
    }
    
    /* 移动端英文和日语版本：method-description 的 line-height 为 1.2 */
    .lang-en .cooperation-methods-section .container .method-content .method-description,
    .lang-ja .cooperation-methods-section .container .method-content .method-description {
        line-height: 1.2;
    }
}
