/* ============================================
   全局样式（桌面端和手机端共用）
   ============================================ */

/* 技术优势容器 */
.OverviewExpandContainer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 130px 20px 60px;
    position: relative;
}

/* 标题区域 */
.OverviewExpandHeader {
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
    min-height: 80px;
}

.OverviewExpandHeader h2 {
    font-size: 48px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

/* 标题背景文字 */
.OverviewHeaderBgText {
    position: absolute;
    top: 70%;
    left: 0;
    transform: translateY(-50%);
    font-size: 80px;
    font-weight: 700;
    color: rgba(26, 115, 232, 0.05);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

.OverviewExpandHeader h2 .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letterIn 0.5s ease forwards;
}

@keyframes letterIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.OverviewExpandHeader p {
    font-size: 20px;
    color: #666;
    margin: 0;
    min-height: 60px;
    line-height: 1.5;
}

.OverviewExpandHeader p .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letterIn 0.5s ease forwards;
}

/* 卡片背景色 */
.card-color-0 {
    background: #f5e6c8;
}

.card-color-1 {
    background: #c8e6e0;
}

.card-color-2 {
    background: #d4e4f0;
}

.card-color-3 {
    background: #1a73e8;
}

.card-color-4 {
    background: #0d5bbf;
}

.card-color-5 {
    background: #0a4a9e;
}

/* 了解更多按钮 */
.OverviewLearnMore,
.OverviewMobileLearnMore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1a73e8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.OverviewLearnMore svg,
.OverviewMobileLearnMore svg {
    transition: transform 0.3s ease;
}

/* ============================================
   桌面端布局
   ============================================ */

/* 桌面端网格容器 */
.OverviewDesktopGrid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow: visible;
}

/* 桌面端卡片 */
.OverviewDesktopCard {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 850px;
    width: 100%;
    flex: 1;
}

/* 桌面端：鼠标悬停时展开 */
.OverviewDesktopCard:hover {
    flex: 3;
    background: #ffffff;
    box-shadow: 0 0 30px rgba(26, 115, 232, 0.2);
    z-index: 10;
}

/* 竖排标题 - 中文正着排（每个汉字直立），英文躺着排（字母侧躺，底向左） */
.OverviewCardTitle {
    writing-mode: vertical-lr;
    text-orientation: mixed;

    position: absolute;
    right: 42%;
    top: 13%;
    white-space: nowrap;
    font-size: 24px;
    /* font-size: 28px; */
    color: #1a3a5c;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    width: max-content;
    letter-spacing: 1px;
    transform: rotate(180deg);
}

/* 前3个卡片（浅色背景）- 黑色文字 */
.card-color-0 .OverviewCardTitle,
.card-color-1 .OverviewCardTitle,
.card-color-2 .OverviewCardTitle {
    color: #1a3a5c;
}

/* 后3个卡片（深色背景）- 白色文字 */
.card-color-3 .OverviewCardTitle,
.card-color-4 .OverviewCardTitle,
.card-color-5 .OverviewCardTitle {
    color: #ffffff;
}

/* 桌面端：悬停时隐藏竖排标题 */
.OverviewDesktopCard:hover .OverviewCardTitle {
    opacity: 0;
    pointer-events: none;
}

/* 卡片图标 */
.OverviewCardIcon {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    opacity: 0.6;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.OverviewCardIcon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 白色图标（未展开时显示） */
.OverviewCardIcon .icon-white {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* 桌面端：悬停时切换图标 */
.OverviewDesktopCard:hover .OverviewCardIcon .icon-white {
    opacity: 0;
}

.OverviewDesktopCard:hover .icon-color {
    opacity: 0.2;
}

.OverviewDesktopCard:hover .OverviewCardIcon {
    opacity: 0;
    pointer-events: none;
}

/* 彩色图标（展开时作为右下角背景） */
.OverviewDesktopCard .icon-color {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 320px;
    height: auto;
    opacity: 0;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* 展开后的内容区域 */
.OverviewCardContent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease 0.2s;
    overflow-y: auto;
    z-index: 4;
    will-change: opacity;
}

/* 优化内容区域的文字显示 */
.OverviewCardContent h3,
.OverviewCardContent h5,
.OverviewCardContent .content-body {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.OverviewCardContent .content-body p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 内容渐入动画 */
.OverviewCardContent h3 {
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.OverviewCardContent h5 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.OverviewCardContent .content-body {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 桌面端：悬停时显示内容 */
.OverviewDesktopCard:hover .OverviewCardContent {
    opacity: 1;
    pointer-events: auto;
}

/* 桌面端：悬停时内容渐入动画 */
.OverviewDesktopCard:hover .OverviewCardContent h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.OverviewDesktopCard:hover .OverviewCardContent h5 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.OverviewDesktopCard:hover .OverviewCardContent .content-body {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* ============================================
   手机端布局（≤768px）
   ============================================ */
@media (max-width: 768px) {

    /* 容器和标题 */
    .OverviewExpandContainer {
        padding: 125px 15px 40px;
    }

    .OverviewExpandHeader {
        min-height: 40px;
    }

    .OverviewExpandHeader h2 {
        font-size: 28px;
    }

    .OverviewHeaderBgText {
        top: 85%;
        font-size: 40px;
    }

    .OverviewExpandHeader p {
        font-size: 16px;
    }

    /* 隐藏桌面端布局 */
    .OverviewDesktopGrid {
        display: none;
    }

    /* 显示手机端布局 */
    .OverviewMobileSwiper {
        display: block;
    }

    /* 手机端 Swiper */
    .OverviewMobileSwiperContainer {
        padding-bottom: 80px;
        overflow: hidden;
    }

    .OverviewMobileSwiperContainer .swiper-wrapper {
        display: flex;
        flex-wrap: nowrap;
    }

    .OverviewMobileSwiperContainer .swiper-slide {
        width: 100%;
        flex: 0 0 100%;
    }

    /* 手机端卡片 */
    .OverviewMobileCard {
        position: relative;
        border-radius: 16px;
        overflow: hidden;
        height: 400px;
    }

    /* 手机端图标 */
    .OverviewMobileIcon {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 120px;
        opacity: 0.8;
    }

    .OverviewMobileIcon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* 手机端内容区域直接显示 */
    .OverviewMobileContent {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 30px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .OverviewMobileContent h3 {
        font-size: 24px;
        color: #ffffff;
        margin-bottom: 15px;
    }

    .OverviewMobileContent h5 {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 20px;
        font-weight: 400;
        line-height: unset;
    }

    /* 前3个浅色背景卡片用黑色文字 */
    .card-color-0 .OverviewMobileContent h3,
    .card-color-1 .OverviewMobileContent h3,
    .card-color-2 .OverviewMobileContent h3 {
        color: #1a3a5c;
    }

    .card-color-0 .OverviewMobileContent h5,
    .card-color-1 .OverviewMobileContent h5,
    .card-color-2 .OverviewMobileContent h5 {
        color: rgba(26, 58, 92, 0.8);
    }

    /* 手机端了解更多按钮 */
    .OverviewMobileLearnMore {
        font-size: 16px;
        font-weight: 600;
        color: #ffffff;
    }

    /* 前3个浅色背景卡片的了解更多按钮用深蓝色 */
    .card-color-0 .OverviewMobileLearnMore,
    .card-color-1 .OverviewMobileLearnMore,
    .card-color-2 .OverviewMobileLearnMore {
        color: #1a3a5c;
    }

    /* 分页器样式 */
    .OverviewMobileSwiperContainer .swiper-pagination {
        display: block;
        bottom: 10px;
    }

    .OverviewMobileSwiperContainer .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
        background: #1a3a5c;
        opacity: 0.3;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .OverviewMobileSwiperContainer .swiper-pagination-bullet-active {
        width: 38px;
        height: 6px;
        background: #007cff;
        opacity: 1;
        border-radius: 3px;
    }
}

/* 桌面端隐藏手机端布局 */
@media (min-width: 769px) {
    .OverviewMobileSwiper {
        display: none;
    }
}