/* #region  第二个declaration*/
.declaration2{
    width: 60%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: start;
}

/* 其他样式保持不变 */

.declaration2-left {
    width: 20%;
    height: auto;
    position: sticky;
    top: 0;
    background-color: white; /* 根据实际需要设置背景颜色 */
    z-index: 10;
}

/* 保证粘性效果 */
.declaration2-left::before {
    content: "";
    display: block;
    height: 60px;
    background-color: #3333337f;
    visibility: hidden;
}
.declaration2-left::after {
    content: "";
    display: block;
    height: 150px;
    background-color: red;
    visibility: hidden;
}

/* 确保declaration2有一个最小高度 */
.declaration2 {
    min-height: 100vh; /* 或者设置一个足够大的高度值 */
}

.declaration-head2 {
    font-size:25px;
    position: relative; /* 设置为相对定位，为伪元素提供定位上下文 */
    display: inline-block; /* 使分割线与文字同行 */
    margin: 60px 0 ;
}

.declaration-head2::after {
    content: ''; /* 伪元素必须有内容，即使是空字符串 */
    position: absolute; /* 使用绝对定位来放置分割线 */
    left: 0; /* 将分割线放置在文字的左侧 */
    bottom: -30px; /* 将分割线放置在文字的底部 */
    height: 4px; /* 分割线的高度 */
    width: 100%; /* 分割线的长度，可以根据需要修改 */
    background-color: #fa1234; /* 分割线的颜色 */
}
.declaration-content2{
    line-height: 50px;
    font-size: large;
    white-space: pre-line;
    margin-bottom: 70px;
}

/* right */
.declaration2-right{
    display: flex;
    justify-content: end;
    align-items: center;
}
.solutions{
    display: grid;
    grid-template-columns: repeat(3, 300px);
    grid-template-rows: repeat(3, 485.4px);
    place-content: center center;
    column-gap:50px;
    row-gap: 40px;
}
.solution{
    height: 493.4px;
    width: 308px;
    background-color: none;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.solution:hover{
    border-radius: 5px;
    border: 2px solid #fa1234;
}
.solution-subbox{
    height: 485.4px;
    width: 300px;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.skill-img{
    height: 300px;
    width: 100%; 
    overflow: hidden; 
}
.skill-img img{
    height: 100%;
    width: 100%;
    transition: transform 1.5s ease;
}

.solution:hover img{
    transform: scale(1.1);
}


.skill-text{
    height:  485.4px;
    width: 300px;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
}

.solution h3{
    margin: 20px;
    margin-bottom: 0px;
    font-weight:600;
}

.solution h4{
    margin: 20px;
    margin-top: 0px;
    margin-bottom: 10px;
    font-weight:500;
    font-size: small;
}


.solution .content{
    margin: 20px;
    display: block;
    white-space: pre-line; 
    font-size: x-small;
    font-weight: 100;
}

.solution .readmore{
    display: flex;
    width: 80px;
    height: 50px;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    position: absolute;
    bottom:20px;
    left:20px;
    cursor: pointer;
}

.readmore .btn{
    display: block;
    font-size: x-small;
    margin-right: 15px;
    background-color: rgba(255, 255, 255, 0);
    border: none;
    background-color: none;
    color: #0066cc;
    cursor: pointer;
    transition: transform 1s; /* 添加过渡效果 */
}
.solution:hover .btn{
    color: #fa1234;
}

.solution .arrow{
    transition: transform 1s; /* 添加过渡效果 */
}
.solution:hover .arrow{
    transform: translateX(5px); /* 鼠标悬停时箭头向右移动 */
}


.solution .arrow path{
    transition: fill 0.3s; /* 添加过渡效果 */
    fill: #0066cc; /* 初始SVG箭头颜色为黑色 */
}
.solution:hover .arrow path{
    fill: #fa1234; /* 鼠标悬停时SVG箭头颜色变为白色 */
}
/* #endregion  第二个declaration*/

/* 响应式布局 */


@media (max-width: 2000px) {
    .solutions{
        grid-template-columns: repeat(2, 300px);
        grid-template-rows: repeat(5, 485.4px);
    }
    .declaration2{
        width: 80%;
    }
}

@media (max-width: 1012px) {
    .solutions{
        grid-template-columns: repeat(1, 300px);
        grid-template-rows: repeat(9, 485.4px);
    }
    .declaration2{
        width: 100%;
        justify-content: space-evenly;
    }
}

@media (max-width: 782px) {
    .declaration2{
        width: 100%;
        justify-content: space-around;
    }
    .solutions{
        grid-template-columns: repeat(1, 208px);
        grid-template-rows: repeat(9, 331.6px);
        column-gap:10px;
        row-gap: 10px;
    }
    .solution{
        height: 331.6px;
        width: 208px;
    }
    .skill-img{
        height: 300px;
        width: 100%;
    }
    .skill-text{
        width: 200px;
    }

    .declaration-content2{
        display: flex;
        flex-direction: row;
    }
    .declaration-content2 span {
        font-size: 20px;
        width: 40px;
    }
    .solution-subbox{
        height: 323.6px;
        width: 200px;
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
        align-items: center;
        position: relative;
    }


}