/* 网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    margin-bottom: 40px;
    transition: all 1.2s ease; /* 更慢的动画效果 */
}

.grid-item {
    background: white;
    border-radius: 10px;
    /* padding: 25px; */
    padding: 47px;
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.8s ease; /* 更慢的动画效果 */
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    text-align: center;
    cursor: pointer;
    min-height: 432px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.ddgrid-item{
    padding:50px 25px;
}

.grid-container.has-hover .grid-item.active {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #6a11cb;
    transition: all 0.8s ease;
}

.grid-item h3 {
    margin-bottom: 10px;
    transition: all 0.8s ease;
    font-family: Source Han Sans CN;
    font-weight: bold;
    font-size: 40px;
    color: #000000;
    line-height: 64px;
}

.grid-item p {
    color: #666;
    /* line-height: 1.5; */
    line-height: 2;
    transition: all 0.8s ease;
}
.keyFeatures {
    width: 160px;
    height: 37px;
    background-color: #f1771e;
    color: #fff;
    line-height: 37px;
    text-align: center;
    border-radius: 20px;
    /* margin: 100px 0 50px; */
    margin: 80px 0 40px;
}
.grid-item.active .keyFeatures {
    /* border-radius: 0; */
    /* margin: 100px 0 50px; */
    margin: 80px 0 40px;
}
.container-tsgrid{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.tsgridone{
    background: red;
    width: calc(33.33% - 14px);
}
.tsgridone-hover{
    background: red;
    width: calc(66.66% - 7px);
}

/* 默认内容 */
.default-content {
    transition: width 0.8s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
}

/* 悬停内容 */
.hover-content {
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    height: 100%;
    /* padding: 25px; */
    padding: 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px);
    transition: top 1.4s ease,grid-template-columns 1.4s ease;
}
.hover-content .gnld-sapn{
    display: none;
}
.active .hover-content .gnld-sapn{
    display: inline-block;
}
.grid-item.active .default-content {
    opacity: 0;
    transform: translateY(-20px);
}

.grid-item.active .hover-content {
    opacity: 1;
    transform: translateY(0);
    top: 0;
}
.hover-content h4 {
    margin-bottom: 15px;
    font-family: Source Han Sans CN;
    font-weight: bold;
    font-size: 40px;
    color: #0054d2;
    line-height: 64px;
}

.hover-content ul {
    text-align: left;
    margin-bottom: 15px;
    width: 100%;
}

.hover-content li {
    margin-bottom: 8px;
    color: #555;
}

.btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn:hover {
    background: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.glyphicon {
    margin-right: 8px;
}

/* 布局样式 */
.grid-container {
    grid-template-areas:
        'a a b'
        'c d e';
}

.grid-item:nth-child(1) {
    grid-area: a;
}
.grid-item:nth-child(2) {
    grid-area: b;
}
.grid-item:nth-child(3) {
    grid-area: c;
}
.grid-item:nth-child(4) {
    grid-area: d;
}
.grid-item:nth-child(5) {
    grid-area: e;
}

/* 布局情况1 - 默认 */
.layout-case1 {
    grid-template-areas:
        'a a b'
        'c d e';
}

/* 布局情况2 - 鼠标悬停在第二个div上 */
.layout-case2 {
    grid-template-areas:
        'a b b'
        'c d e';
}

/* 布局情况3 - 鼠标悬停在第三个div上 */
.layout-case3 {
    grid-template-areas:
        'a b e'
        'c c d';
}

/* 布局情况4 - 鼠标悬停在第四个div上 */
.layout-case4 {
    grid-template-areas:
        'a b e'
        'c d d';
}

/* 布局情况5 - 鼠标悬停在第五个div上 */
.layout-case5 {
    grid-template-areas:
        'a b c'
        'd e e';
}
.layout-case6 {
    grid-template-areas:
        'a e e'
        'b c d';
}
