﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
}

/* 整体容器 */
.pagecontainer {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
}
/*banner图片*/
.banner {
    width: 100%;
    height: 600px;
    border: 1px solid #ccc;
    background-image: url(../../web/images/banner1.png);
    background-size: cover; /* 完整显示图片，可能出现黑边或留白 */
    background-position: center;
    background-repeat: no-repeat;
    /*-webkit-filter: grayscale(100%);*/ /* Chrome, Safari, Opera */
    /*filter: grayscale(100%);*/
}

    .banner h1 {
        font-weight: 500;
        font-size: 2.5rem;
        margin-left: 12rem;
        color: forestgreen;
        /* letter-spacing: -0.5px;*/
    }

        .banner h1 span {
            font-weight: 700;
            color: #ffcd7e;
        }

    .banner .apply-badge {
        background-color: #02b980;
        display: inline-block;
        padding: 0.9rem 2.5rem;
        border-radius: 20px;
        font-size: 1.2rem;
        font-weight: 600;
        color: white;
        margin-top: 5rem;
        margin-left: 15rem;
        cursor: pointer;
        /*            border: 1px solid #6d9fd1;
            box-shadow: inset 0 1px 3px #ffffff30;*/
    }

    .banner .solution-badge {
        background-color: #FFFFFF;
        display: inline-block;
        padding: 0.9rem 2.5rem;
        border-radius: 20px;
        font-size: 1.2rem;
        font-weight: 600;
        color: #02b980;
        margin-top: 5rem;
        margin-left: 1rem;
        border: 1px solid #ECECED;
        cursor: pointer;
        /*box-shadow: inset 0 1px 3px #02b980;*/
    }

    .banner .achievement {
        background-color: #FFFFFF;
        display: flex;
        padding: 1.5rem 2.5rem;
        border-radius: 20px;
        font-size: 1.8rem;
        font-weight: 600;
        flex-wrap: wrap;
        gap: 5rem;
        color: #04B981;
        margin-top: 2rem;
        margin-left: 10rem;
        border: 1px solid #ECECED;
        height: 100px;
        width: 800px;
    }
/* 标签栏 - 玻璃拟态 */
.tab-bar {
    width: 34rem;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    background: #FFFFFF;
    padding: 0.5rem 0.5rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    margin-bottom: 0.5rem;
    margin-top: 5rem;
    margin-left: 10rem;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 12px rgba(0,20,40,0.08);
}

/* 单个标签 */
.tab {
    flex: 1 0 auto;
    min-width: 80px;
    text-align: center;
    padding: 5px 14px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    background: transparent;
    color: #334155;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    user-select: none;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

    .tab i {
        font-style: normal;
        font-size: 1.2rem;
    }
    /* 模拟图标占位 */

    /* 标签悬停效果 */
    .tab:hover:not(.active) {
        background: rgba(255,255,255,0.7);
        border-color: #cbd5e1;
        color: #0f172a;
        transform: translateY(-1px);
    }

    /* 当前激活的标签 */
    .tab.active {
        background: white;
        border: 2px solid #3b82f6;
        color: #1e4f8a;
        box-shadow: 0 8px 18px -6px #3b82f680, 0 0 0 1px rgba(255,255,255,0.9);
        font-weight: 600;
    }

/* 内容面板区域 */
.panels {
    width: 34rem;
    background: rgba(255,255,255,0.4);
    border-radius: 32px;
    /*padding: 18px 8px 8px 8px;*/
    backdrop-filter: blur(2px);
    /*min-height: 200px;*/
    margin-left: 10rem;
}

.panel {
    display: none;
    padding: 18px 22px 22px 22px;
    background: white;
    border-radius: 28px;
    /*box-shadow: 0 8px 20px -10px #b0c4de, 0 0 0 1px #ffffff inset;*/
    animation: fadeSlide 0.3s ease-out;
}

    .panel.active-panel {
        display: block;
    }

@@keyframes fadeSlide {
    0% {
        opacity: 0.5;
        transform: translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel h3 {
    font-size: 1.3rem;
    margin: 0 0 8px 0;
    font-weight: 600;
    background: linear-gradient(145deg, #0b2b44, #1f4a7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
}

.panel p {
    margin: 10px 0 8px 0;
    font-size: 1rem;
    color: #1e3a5f;
    line-height: 1.8;
}
/* 动态卡片网格 */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 28px;
    margin-top: 60px;
    margin-bottom: 100px;
}

.prod-card {
    background: white;
    /*border-radius: 30px;*/
    overflow: hidden;
    box-shadow: 0 18px 30px -12px rgba(0, 30, 60, 0.15);
    transition: transform 0.25s ease, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(150, 180, 210, 0.2);
}
/* 动态卡片网格 */
.prod-ex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 28px;
    margin-top: 60px;
    margin-bottom: 100px;
}

.prode-ex-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 18px 30px -12px rgba(0, 30, 60, 0.15);
    transition: transform 0.25s ease, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(150, 180, 210, 0.2);
}
/* 动态卡片网格 */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 20px;
    margin-bottom: 50px;
}

.tech-card {
    background: white;
    /*border-radius: 30px;*/
    overflow: hidden;
    box-shadow: 0 18px 30px -12px rgba(0, 30, 60, 0.15);
    transition: transform 0.25s ease, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(150, 180, 210, 0.2);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -10px #0a314d70;
}

.card-img {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.prodex-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tech-card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-category {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ffffffdd;
    backdrop-filter: blur(4px);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.8rem;
    color: #113355;
    border: 1px solid white;
    box-shadow: 0 4px 8px #00000010;
}

.card-content {
    padding: 0.5rem 1rem 1.8rem 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prodex-card-content {
    padding: 0.5rem 1rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tech-card-content {
    padding: 0.5rem 1rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e6ecf3;
    padding-top: 1.2rem;
    margin-top: auto;
}

.prodex-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e6ecf3;
    padding-top: 0.5rem;
    margin-top: auto;
}

.tech-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e6ecf3;
    padding-top: 1.2rem;
    margin-top: auto;
}

.read-more {
    background: none;
    border: none;
    color: #1d5b99;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 0;
}

    .read-more:hover {
        color: #0a3352;
        /*text-decoration: underline;*/
    }

@@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.my-background-div {
    background-size: 100% auto; /* 宽度100%，高度自适应 */
    background-position: center;
    background-repeat: no-repeat;
}


/* ----- 核心方块：鼠标上去切换内容并覆盖原内容 ----- */
.hover-switch {
    /*background-color: #2c3e50;*/ /* 深邃的基底色 */
    /*border-radius: 28px;*/ /* 圆润现代感 */
    box-shadow: 0 18px 25px -8px rgba(0,0,0,0.5), inset 0 -2px 5px rgba(255,255,255,0.2);
    /* 将内部变成一个两层容器，用于绝对定位叠放 */
    position: relative;
    /* 溢出隐藏，确保两层都不会突破圆角，且覆盖时干净 */
    overflow: hidden;
    /* 优雅的过渡效果：背景色、阴影变化也加入微动 */
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: default;
}

/* 两层共同特征：绝对定位，占满整个方块，内边距舒服，弹性布局让文字居中 */
.layer-default,
.layer-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* align-items: center;
        justify-content: center;*/
    /* 内边距保证文字不贴边 */
    padding: 1rem 1.5rem;
    /* 文字基本样式 */
    color: white;
    /*text-align: center;*/
    /* 优雅的过渡：透明度变化持续0.25秒，同时scale略微变化增强动感 */
    transition: opacity 0.25s ease, transform 0.3s ease;
    /* 针对文字更细腻的阴影，提升可读性 */
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
    /* 字体大小与粗细 */
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
    /* 允许文字折行 */
    word-break: break-word;
}

/* 更具体的微调：默认层 */
.layer-default {
    background: linear-gradient(135deg, #1e2b38, #2c3e50); /*深色渐变 */
    opacity: 1;
    transform: scale(1);
    z-index: 2; /* 默认在上层，完全显示 */
}

/* 悬停层：一开始完全透明，且稍微缩小一点（柔滑出现） */
.layer-hover {
    background: linear-gradient(145deg, #1d4e7c, #3980b0); /*  醒目覆盖色 */
    opacity: 0;
    transform: scale(0.92); /* 轻微缩小，让出现时有动感 */
    z-index: 3; /* 保证覆盖时在上层，但透明所以看不见 */
    box-shadow: inset 0 0 30px rgba(0,0,0,0.3);
    /* 字体可以微调 */
    letter-spacing: 0.02em;
}

/* 鼠标悬停在方块上时，悬停层渐渐显现，完全覆盖默认层 */
.hover-switch:hover .layer-hover {
    opacity: 1;
    transform: scale(1); /* 放大到正常尺寸，产生细腻的推进感 */
}

/* 同时可以让默认层稍微淡出并缩小，但不是必须的，因为被上层遮住了。
           但为了让动效更有层次，我们可以让默认层透明度降低，且缩小一丁点，产生“退后”感 */
.hover-switch:hover .layer-default {
    opacity: 0.2; /* 半透明，但实际被上层色块覆盖后视觉上几乎消失 */
    transform: scale(0.96); /* 略微后退，强化覆盖效果 */
}

/* 可选的装饰：方块的边框高亮（氛围） */
.hover-switch:hover {
    /*box-shadow: 0 22px 35px -5px #a04030, 0 0 0 2px rgba(255,160,120,0.5);*/
}

/* 悬停层里的文字修饰 */
.layer-hover span {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 1px;
    margin-top: 2px;
    text-align: left;
}

.layer-hover p {
    font-size: 1rem;
    font-weight: 400;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px 10px;
    backdrop-filter: blur(2px);
    text-align: left;
    line-height: 2rem; /*2倍字体大小行间距*/
}

.my-background-div {
    background-size: 100% auto; /* 宽度100%，高度自适应 */
    background-position: center;
    background-repeat: no-repeat;
}

.prod-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 1.6rem;
    margin-bottom: 0.6rem;
    text-align: center;
    /*color: #5F5F5F;*/
    line-height: 1.3;
}

.prod-content {
    font-size: 1.5rem;
    padding: 1rem 5rem 1rem 5rem;
    color: #5F5F5F;
    line-height: 2;
}

/* 合作伙伴 / 信任条 */
.trust-bar {
    background-color: #FFFFFF;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.trust-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    color: #04B981;
    font-size: 2.2rem;
    font-weight: 600;
}
