﻿/* Cooperate.css - 业务合作页面专用样式 */
:root {
    --primary-color: #532ad3;
    --primary-light: #7c5fe6;
    --primary-dark: #3a1fa0;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(83, 42, 211, 0.1);
    --transition: all 0.3s ease;
    --overlay-dark: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
}

/* 第一部分：Hero区域 - 占页面高度1/5，全宽 */
.cooperate-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 20vh; /* 页面高度1/5 */
    min-height: 200px;
    overflow: hidden;
    margin-top: 0;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

    .hero-content h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 15px;
        color: var(--white);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .hero-content .lead {
        font-size: 1.3rem;
        font-weight: 300;
        opacity: 0.9;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.9);
    }

/* 主体内容区域 */
.cooperate-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* 合作项目部分 */
.cooperation-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(83, 42, 211, 0.1);
}

/* 合作项目网格 */
.cooperation-grid0 {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 两列布局 */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.cooperation-grid1 {
    display: grid;
    gap: 25px;
}

.cooperation-item {
    background: var(--white);
    display: flex;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

    .cooperation-item.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .cooperation-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(83, 42, 211, 0.15);
    }

.item-header {
    display: flex;
    align-items: flex-start;
    flex: 1; /* 垂直填充 */
    width: 100%; /* 水平撑满 */
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(83, 42, 211, 0.05), rgba(83, 42, 211, 0.1));
}

.item-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.8rem;
    transition: var(--transition);
}

.cooperation-item:hover .item-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-dark);
}

.item-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.item-content {
    flex: 1;
}

    .item-content h4 {
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--primary-color);
        margin: 0 0 8px 0;
    }

    .item-content p {
        color: var(--text-light);
        line-height: 1.7;
        margin: 0;
        font-size: 1.05rem;
    }

/* 联系区域 */
.contact-section {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, rgba(83, 42, 211, 0.03), rgba(83, 42, 211, 0.08));
    border-radius: 20px;
    border-top: 3px solid var(--primary-color);
    margin-top: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

    .contact-section.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .contact-section h4 {
        font-size: 1.8rem;
        color: var(--primary-color);
        margin-bottom: 20px;
        font-weight: 600;
    }

.contact-info {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-email {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

    .contact-email:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

/* 统一的CTA按钮样式（与Solutions一致） */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

    .cta-button:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(83, 42, 211, 0.2);
        color: var(--white);
        text-decoration: none;
    }

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .cooperate-hero {
        height: 25vh; /* 移动端稍微高一点 */
        min-height: 180px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content .lead {
        font-size: 1.1rem;
    }

    .cooperate-container {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .cooperate-hero {
        height: 20vh;
        min-height: 150px;
        margin-top: 0;
        background-attachment: scroll !important;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-content .lead {
        font-size: 1rem;
    }

    .item-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }

    .item-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

        .item-icon img {
            width: 28px;
            height: 28px;
        }

    .item-content h4 {
        font-size: 1.2rem;
    }

    .contact-section {
        padding: 30px 20px;
    }

        .contact-section h4 {
            font-size: 1.5rem;
        }

    .contact-info {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .cooperate-hero {
        height: 25vh;
        min-height: 120px;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .hero-content .lead {
        font-size: 0.9rem;
    }

    .cooperation-grid {
        gap: 15px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}
