/* ==========================================
   Cooperation Page Styles (生态与合作) - 优化版
   ========================================== */

/* --- 基础重置 (对齐项目规范) --- */
* {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #2f3338;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: 0 20px;
}

.cooperation-page {
    min-height: 100vh;
}

/* 背景色辅助类 */
.bg-white { background-color: #ffffff; }
/* .bg-gray { background-color: #f9fafb; }  */

/* ==========================================
   通用模块标题样式 (居中标题 + 红线)
   ========================================== */
.coop-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: bold;
    color: #2f3338;
    letter-spacing: 1px;
}

.section-header .header-line {
    width: 60px;
    height: 6px;
    background-color: #ff3010;
    margin: 0 auto;
    border-radius: 2px;
}

.section-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* ==========================================
   Hero 头部模块
   ========================================== */
.coop-hero {
    position: relative;
    min-height: 600px;
    padding-top: 60px;
    overflow: hidden;
    background-image: url("https://sld2025.oss-cn-shanghai.aliyuncs.com/gw/wei-tu-2x-15.png"); 
    background-color: #1a1a1a; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.coop-hero-inner {
    position: relative;
    min-height: 410px;
    display: flex;
    align-items: center;
}

.coop-hero-copy {
    position: relative;
    z-index: 2;
    padding-top: 20px;
}

.coop-hero-copy h1 {
    margin: 0 0 20px;
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 2px;
    color: rgba(51, 51, 51, 1);
}

.coop-hero-copy p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: rgba(101, 113, 130, 1);
}

/* ==========================================
   平台业务模块 (Platform Business) - PC端布局
   ========================================== */
.platform-business {
    padding: 80px 0 60px;
    /* background: #ffffff; */
    /* position: relative; */
    background-image: url('https://sld2025.oss-cn-shanghai.aliyuncs.com/gw/bian-zu-8-2x.png');
    background-size: 85% 85%;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #fbfcfd; 
}

.platform-wrapper {
    position: relative;
    min-height: 600px;
  
    border-radius: 20px;
    /* padding: 30px 20px 20px; */
    isolation: isolate;
}

.platform-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: rgba(255, 255, 255, 0.25);  */
    border-radius: 20px;
    z-index: 0;
    pointer-events: none;
}

.platform-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 2.4fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 20px 20px;
    align-items: center;
    justify-items: center;
    min-height: 560px;
}

.center-placeholder {
    grid-area: 1 / 2 / 3 / 3;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.item-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 67%;
    padding: 8px 0;
}

.item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding: 8px 0;
}

.item-06 {
    grid-area: 3 / 2 / 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.item-left .module-row { width: 100%; text-align: right; }
.item-06 .module-row { gap: 10px; flex-wrap: wrap; }

.item-left .module-number,
.item-right .module-number,
.item-06 .module-number {
    font-family: 'Arial Black', Impact, sans-serif;
    line-height: 1;
    min-width: 42px;
    font-size: 26px;
    margin-bottom: 10px;
}

.item-left .module-number { text-align: right; }
.item-right .module-number { text-align: left; }
.item-06 .module-number { text-align: center; }

.item-left .module-title,
.item-right .module-title {
    font-size: 16px;
    font-weight: 700;
    color: #2f3338;
    line-height: 1.3;
}
.item-right .module-title { text-align: left; }
.item-06 .module-title {
    font-size: 18px;
    font-weight: bold;
    color: #2f3338;
}

.item-left .module-arrow,
.item-right .module-arrow,
.item-06 .module-arrow {
    font-size: 20px;
    color: #b0b8c5;
    margin-top: 2px;
    display: block;
}

.item-06 .module-arrow { font-size: 22px; transform: rotate(90deg); }
.item-left .module-arrow { width: 100%; text-align: right; }
.item-right .module-arrow { width: 87%; text-align: left; padding-right: 52px; }

/* Grid 映射 */
.item-01 { grid-area: 1 / 1 / 2 / 2; }
.item-02 { grid-area: 2 / 1 / 3 / 2; }
.item-03-left { grid-area: 3 / 1 / 4 / 2; }
.item-03-right { grid-area: 1 / 3 / 2 / 4; }
.item-04 { grid-area: 2 / 3 / 3 / 4; }
.item-05 { grid-area: 3 / 3 / 4 / 4; }

/* ==========================================
   模块: 城市合伙人计划
   ========================================== */
.partner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.partner-main-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background-color: #f0f2f5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.partner-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.partner-list-item {
    display: flex;
    align-items: flex-start;
}

.item-number {
    font-size: 42px;
    font-weight: 900;
    color: #ff3010;
    opacity: 0.15;
    margin-right: 20px;
    line-height: 0.9;
    font-style: italic;
    font-family: 'Arial Black', Impact, sans-serif;
    min-width: 50px;
}

.item-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #2f3338;
    font-weight: bold;
}

.item-info p {
    margin: 0;
    font-size: 14px;
    color: #6d7888;
    line-height: 1.7;
}

/* ==========================================
   模块: 多元合作模式 (三列/四列卡片)
   ========================================== */
.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.model-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 10px;
    text-align: center;
    border: 1px solid #eef0f2;
    transition: all 0.3s ease;
    cursor: pointer;
}

.model-card:hover {
    border-color: #ff3010;
    box-shadow: 0 16px 36px rgba(255, 48, 16, 0.08);
    transform: translateY(-6px);
}

.model-icon-wrap {
    width: 170px;
    height: 170px;
    margin: 0 auto;
}

.model-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.model-card h3 {
    font-size: 20px;
    color: #2f3338;
    margin-bottom: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.model-card p {
    font-size: 14px;
    color: #6d7888;
    line-height: 1.8;
    margin: 0;
    text-align: center;
}

.model-card:hover h3 {
    color: #ff3010;
}

/* ==========================================
   模块: 全方位赋能体系 (六宫格)
   ========================================== */
.empower-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.empower-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 24px;
    border: 1px solid #eef0f2;
    transition: all 0.3s ease;
    cursor: pointer;
}

.empower-card:hover {
    border-color: #ff3010;
    box-shadow: 0 10px 24px rgba(255, 48, 16, 0.08);
    transform: translateY(-4px);
}

.empower-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.empower-icon-wrap {
    width: 44px;
    height: 44px;
    margin-right: 14px;
    position: relative;
    flex-shrink: 0;
    background-color: #f0f2f5;
    border-radius: 50%;
}

.empower-icon-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.empower-card .icon-active { opacity: 0; }
.empower-card .icon-normal { opacity: 1; }
.empower-card:hover .icon-normal { opacity: 0; }
.empower-card:hover .icon-active { opacity: 1; }

.empower-card-header h3 {
    font-size: 16px;
    color: #2f3338;
    font-weight: bold;
    margin: 0;
    transition: color 0.3s ease;
}

.empower-card:hover h3 {
    color: #ff3010;
}

.empower-card-body p {
    font-size: 13px;
    color: #6d7888;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================
   响应式适配 (Pad/手机端动态重排)
   ========================================== */

/* --- 平板端 (Pad <= 1024px) --- */
@media (max-width: 1024px) {
    .partner-content { gap: 30px; }
    
    .models-grid,
    .empower-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .platform-grid {
        grid-template-columns: 1fr 2fr 1fr;
        gap: 8px 14px;
        min-height: 460px;
    }

    .item-left .module-number,
    .item-right .module-number,
    .item-06 .module-number {
        font-size: 36px;
        min-width: 34px;
    }

    .item-left .module-title,
    .item-right .module-title,
    .item-06 .module-title {
        font-size: 15px;
    }

    .item-left .module-arrow { padding-left: 42px; }
    .item-right .module-arrow { padding-right: 42px; }
}

/* --- 手机端通用适配 (<= 768px) --- */
@media (max-width: 768px) {
    .coop-hero {
        min-height: 360px;
        padding-top: 56px;
        background-position: center center;
    }
    
    .coop-hero-copy h1 { font-size: 32px; }

    .coop-section, .platform-business { padding: 50px 0; }
    .section-header h2 { font-size: 26px; }

    .partner-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .models-grid, .empower-grid {
        grid-template-columns: 1fr;
    }

    /* 核心重构：平台业务剥离环绕背景布局，改为顶部背景图 + 下方流式列表 */
    .platform-wrapper {
        padding: 16px;
        min-height: auto;
        background-size: 100% auto;
        background-position: top center;
        /* 动态撑开 3D 场景背景图空间，比例若不完美可微调此数值 */
        padding-top: 55vw; 
        border-radius: 12px;
    }

    .platform-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 24px 16px;
        min-height: auto;
    }

    .center-placeholder { display: none; } /* 移动端抛弃中心盲区 */

    /* 强制抹平网格占位，统一流式对齐 */
    .item-01, .item-02, .item-03-left,
    .item-03-right, .item-04, .item-05, .item-06 {
        grid-area: auto !important; 
        width: 100%;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0;
    }

    .item-left .module-row, 
    .item-right .module-row, 
    .item-06 .module-row {
        text-align: center;
        width: 100%;
        justify-content: flex-start;
    }

    .item-left .module-number,
    .item-right .module-number,
    .item-06 .module-number {
        font-size: 28px;
        text-align: center;
        margin-bottom: 6px;
    }

    .item-left .module-title,
    .item-right .module-title,
    .item-06 .module-title {
        font-size: 14px;
        text-align: center;
    }

    .item-left .module-arrow,
    .item-right .module-arrow,
    .item-06 .module-arrow {
        display: none; /* 移动端隐藏箭头，保持界面干净 */
    }
}

/* --- 极小屏幕手机端 (<= 480px) --- */
@media (max-width: 480px) {
    .section-header h2 { font-size: 22px; }
    .section-header .header-line { width: 40px; height: 4px; }

    .platform-wrapper {
        padding-top: 65vw; /* 更小屏幕增加预留比 */
        background-size: 250% 55%;
        background-position-y: -24%;
    }
    
    .platform-grid {
        grid-template-columns: 1fr; /* 降级为单列以确保文字无重叠折行 */
        gap: 20px;
    }
}

/* ==========================================
   全局交互与微动效 (PC专属，隔离移动端触屏粘滞陷阱)
   ========================================== */
.item-left,
.item-right,
.item-06 {
    transition: transform 0.25s ease;
    cursor: default;
}

@media (hover: hover) {
    .item-left:hover,
    .item-right:hover,
    .item-06:hover {
        transform: translateY(-4px); 
        cursor: pointer;
    }
}