/* ============================================================
   合作-投资与建设 专属样式 (invest.css)
   风格: 黑 / 白 / 深灰 高对比 · 摄影大图 + 黑色渐变遮罩
   ============================================================ */

/* ---------- Banner 双胶囊按钮 ---------- */
.invest-banner__btns {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.invest-banner__btns .mg-btn { width: 220px; }

@media (max-width: 640px) {
    .invest-banner__btns { gap: 12px; }
    .invest-banner__btns .mg-btn { width: 100%; max-width: 280px; }
}

/* ---------- 多元投资合作 三大卡片 ---------- */
.invest-card {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    aspect-ratio: 540 / 670;
    background: #111;
}
.invest-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.invest-card::after {              /* 底部渐变压暗，托住文字 */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .75) 100%);
}
.invest-card__label {
    position: absolute;
    left: 0; right: 0; bottom: 40px;
    z-index: 1;
    text-align: center;
    color: var(--c-white);
    font-size: var(--fs-h4);
    font-weight: 500;
}
.invest-card:hover img { transform: scale(1.04); }

/* ---------- EPC 四步卡片（浅色卡） ---------- */
.invest-epc-card {
    background: var(--c-white);
    border-radius: 20px;
    padding: 40px 36px;
    height: 100%;
}
.invest-epc-card h3 {
    font-size: var(--fs-h4);
    font-weight: 700;
    color: #141414;
    margin-bottom: 24px;
}
.invest-epc-card p {
    font-size: var(--fs-body);
    line-height: 44px;
    color: #3D3D3D;
}

/* ---------- 应用场景 轮播（背景大图淡入淡出 + 列表高亮切换） ---------- */
.mg-carousel { position: relative; }
.mg-carousel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.mg-carousel__slide.active { opacity: 1; }
.mg-carousel__slide img { width: 100%; height: 100%; object-fit: cover; }

/* 列表：左侧整条白色分隔线，高亮项以橙色渐变小竖条标注 */
.invest-scene-list { border-left: 1px solid rgba(255, 255, 255, .35); }
.mg-carousel__item {
    position: relative;
    display: flex; align-items: center;
    width: 100%;
    padding: 26px 0 26px 40px;
    background: none; border: none;
    text-align: left; cursor: pointer;
    color: var(--c-white);
    /* font-size: var(--fs-body-24); */
    font-size: clamp(14px, 4vw, var(--fs-body-24));
    font-weight: 500;
    opacity: .7;
    transition: opacity .35s, transform .35s;
}
.mg-carousel__item:hover { opacity: 1; }
.mg-carousel__item.active { opacity: 1; }
/* 渐变小竖条（高亮时显示；配色 token: 渐变-橙 #F3C656→#F28D4C） */
.mg-carousel__bar {
    position: absolute;
    left: -2px; top: 50%; transform: translateY(-50%);
    width: 4px; height: 0;
    background: linear-gradient(270deg, #F3C656 0%, #F28D4C 100%);
    border-radius: 2px;
    transition: height .4s ease;
}
.mg-carousel__item.active .mg-carousel__bar { height: 50px; }
/* 文字：高亮项放大并套用橙色渐变（token: 渐变-橙 #F28D4C→#F3C656） */
.mg-carousel__text { transition: font-size .35s ease; white-space: nowrap; }
.mg-carousel__item.active .mg-carousel__text {
    /* font-size: var(--fs-h5); */
    font-size: clamp(14px, 4vw, var(--fs-h5));
    font-weight: 700;
    background: linear-gradient(270deg, #F28D4C 0%, #F3C656 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- 灵活合作模式 四大卡片 ---------- */
.invest-mode {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    aspect-ratio: 390 / 450;
    background: #111;
}
.invest-mode img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.invest-mode__bar {                  /* 底部黑底信息条 */
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 40%;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(2px);
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 20px;
    text-align: center;
    color: var(--c-white);
}
.invest-mode__bar h3 {
    font-size: var(--fs-h5);
    font-weight: 600;
}
.invest-mode__bar p {
    font-size: var(--fs-body-sm);
    line-height: 1.6;
    white-space: pre-line;
}
.invest-mode:hover img { transform: scale(1.04); }

/* ---------- 资产代运维 双块 ---------- */
.invest-ops-block {
    position: relative;
    overflow: hidden;
}
.invest-ops-block img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.invest-ops-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
}
.invest-ops-block__inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--c-white);
    padding: 50px 36px;
}
.invest-ops-block__inner h3 {
    font-size: var(--fs-h3-48);
    font-weight: 700;
    margin-bottom: 30px;
}
.invest-ops-block__inner p {
    max-width: 740px;
    font-size: var(--fs-body-24);
    line-height: 2;
    text-align: left;
    transition: opacity .45s ease, max-height .45s ease, margin .45s ease;
}
.invest-ops-block:hover img { transform: scale(1.04); }

/* 双块文字显隐：hover 哪侧展示哪侧文字，另一侧藏起（仅大屏生效） */
@media (min-width: 1024px) {
    .invest-ops-block__inner p {
        opacity: 0;
        max-height: 0;
        margin: 0;
        overflow: hidden;
    }
    /* 默认展示左侧文字 */
    .invest-ops-split > .invest-ops-block:first-child .invest-ops-block__inner p {
        opacity: 1;
        max-height: 300px;
        margin-top: 30px;
    }
    /* hover 左侧：左侧文字显示、右侧隐藏 */
    .invest-ops-split:has(> .invest-ops-block:first-child:hover) > .invest-ops-block:first-child .invest-ops-block__inner p {
        opacity: 1;
        max-height: 300px;
        margin-top: 30px;
    }
    .invest-ops-split:has(> .invest-ops-block:first-child:hover) > .invest-ops-block:last-child .invest-ops-block__inner p {
        opacity: 0;
        max-height: 0;
        margin: 0;
    }
    /* hover 右侧：右侧文字显示、左侧隐藏 */
    .invest-ops-split:has(> .invest-ops-block:last-child:hover) > .invest-ops-block:last-child .invest-ops-block__inner p {
        opacity: 1;
        max-height: 300px;
        margin-top: 30px;
    }
    .invest-ops-split:has(> .invest-ops-block:last-child:hover) > .invest-ops-block:first-child .invest-ops-block__inner p {
        opacity: 0;
        max-height: 0;
        margin: 0;
    }
}

/* ---------- 资产代运维 双块：相互排挤（与 duo-split 一致） ---------- */
.invest-ops-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 1024px) {
    .invest-ops-split {
        display: flex;
        gap: 0;
    }
    .invest-ops-split > .invest-ops-block {
        flex-basis: 0;
        flex-grow: 38;               /* 默认右侧 38% */
        transition: flex-grow .55s cubic-bezier(.4, 0, .2, 1);
    }
    .invest-ops-split > .invest-ops-block:first-child { flex-grow: 62; }   /* 默认左侧 62% → 整体 62:38 */
    /* hover 时变为 68:32（hover 哪一侧,哪一侧展宽到 68%,另一侧收窄到 32%） */
    .invest-ops-split > .invest-ops-block:hover { flex-grow: 68; }                                                   /* hover 侧 → 68% */
    .invest-ops-split > .invest-ops-block:first-child:hover + .invest-ops-block { flex-grow: 32; }                    /* 左侧 hover → 右侧 32% */
    .invest-ops-split:has(> .invest-ops-block:last-child:hover) > .invest-ops-block:first-child { flex-grow: 32; }    /* 右侧 hover → 左侧 32% */
}

/* ---------- 零碳智邸 / 零碳智谷 双 CTA 卡 ---------- */
.invest-cta {
    position: relative;
    overflow: hidden;
}
.invest-cta img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.invest-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .25);
}
.invest-cta__inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--c-white);
}
.invest-cta__inner h3 {
    font-size: var(--fs-h1-80);
    font-weight: 700;
    margin-bottom: 50px;
}
.invest-cta:hover img { transform: scale(1.04); }

/* ---------- 联系我们 ---------- */
.invest-contact {
    background: var(--c-black);
    color: var(--c-white);
}
.invest-contact h2 {
    font-size: var(--fs-h2-64);
    font-weight: 500;
    color: var(--c-white);
}
.invest-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}
.invest-form__field { display: flex; flex-direction: column; gap: 10px; }
.invest-form__field--full { grid-column: 1 / -1; }
.invest-form__field label {
    font-size: var(--fs-caption-16);
    color: rgba(255, 255, 255, .85);
}
.invest-form__field input,
.invest-form__field select,
.invest-form__field textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, .4);
    color: var(--c-white);
    font-size: var(--fs-body-sm);
    font-family: inherit;
    padding: 8px 0;
    transition: border-color .3s;
}
.invest-form__field textarea { resize: vertical; min-height: 60px; }
.invest-form__field input::placeholder,
.invest-form__field textarea::placeholder { color: rgba(255, 255, 255, .4); }
.invest-form__field input:focus,
.invest-form__field select:focus,
.invest-form__field textarea:focus { outline: none; border-bottom-color: var(--c-white); }
.invest-form__field select option { color: #333; }
.invest-form__submit { grid-column: 1 / -1; justify-self: center; margin-top: 20px; }

@media (max-width: 640px) {
    .invest-form { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- 联系我们 表单（复用自 service.css） ---------- */
.svc-section { padding: 80px 100px; }
@media (max-width: 1280px) { .svc-section { padding: 70px 60px; } }
@media (max-width: 768px)  { .svc-section { padding: 50px 24px; } }
.svc-contact {
    max-width: 1408px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 208px;
}
.svc-field { display: flex; flex-direction: column; gap: 20px; }
.svc-field__label {
    font-size: var(--fs-body-26);
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
}
.svc-field__input,
.svc-field__select {
    width: 100%;
    height: 70px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .8);
    background: transparent;
    outline: none;
    padding: 0 24px;
    font-size: var(--fs-body);
    font-family: var(--font-sans);
    color: #fff;
    transition: border-color .3s;
    -webkit-appearance: none;
    appearance: none;
}
.svc-field__input::placeholder { color: rgba(255, 255, 255, .5); }
.svc-field__input:focus,
.svc-field__select:focus { border-color: #fff; }
.svc-field--select { position: relative; }
.svc-field--select::after {
    content: "";
    position: absolute;
    right: 24px; bottom: 30px;
    width: 0; height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid rgba(255, 255, 255, .7);
    pointer-events: none;
}
.svc-field__select option { color: #333; }
.svc-contact__agree {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}
.svc-contact__check {
    width: 25px; height: 25px;
    flex-shrink: 0;
    accent-color: #fff;
}
.svc-contact__agree label {
    font-size: var(--fs-body-sm-20);
    color: #fff;
    text-align: center;
    line-height: 1.4;
    cursor: pointer;
}
.svc-contact__agree a { color: #85BBF1; text-decoration: underline; }
.svc-contact__submit {
    grid-column: 1 / -1;
    justify-self: center;
    width: 260px;
    height: 65px;
    border-radius: 10px;
    background: #fff;
    color: #000;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
    margin-top: 20px;
}
.svc-contact__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}
@media (max-width: 1024px) {
    .svc-contact { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .svc-field__label { font-size: var(--fs-caption-16); }
    .svc-field__input, .svc-field__select { height: 52px; font-size: var(--fs-caption-16); padding: 0 16px; }
    .svc-field--select::after { bottom: 20px; }
    .svc-contact__agree label { font-size: var(--fs-micro-13); }
    .svc-contact__check { width: 18px; height: 18px; }
    .svc-contact__submit { width: 100%; height: 52px; font-size: var(--fs-body-sm); }
}

@media (max-width: 640px) {
    .mg-carousel__item {
        padding: 10px 0 10px 20px;
    }
}