header {
    height: 30vh;
    background: url(../assets/robot2.jpeg) no-repeat;
    background-size: cover;
    background-position: center 20%;
    position: relative;
}

header .page-title {
    background-image: linear-gradient(to right, rgb(50, 115, 230), rgb(3, 19, 66));
    width: 40vw;
    height: 15vh;
    position: absolute;
    bottom: -7.5vh;
    left: 0;
    padding-left: 10vw;
}

main {
    color: #000019;
    padding: 10vh 10vw;
    line-height: 2rem;
}
.promise {
    width: 40vw;
    height: fit-content;
    position: relative;
    padding-left: 2.5vw;
}

.promise:before {
    content: '';
    width: 5px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: linear-gradient(to bottom, rgb(50, 115, 230), rgb(3, 19, 66));
}
.intro {
    display: flex;
    padding: 5rem 0;
    border-radius: 1rem;
}

.intro .text {
    width: 50vw;
    padding-left: 3rem;
}

.intro .text ul {
    list-style: square;
    list-style-position: inside;
}

.intro .text ul li {
    line-height: 3rem;
}

.intro .text a {
    border-radius: 1rem;
    background-color: #2864e6;
    width: fit-content;
    height: fit-content;
    position: relative;
    transition: all 0.25s ease;
    transform-origin: left;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

.intro .text span {
    z-index: 2;
    text-align: center;
    position: relative;
    /* z-index 必须结合position才有作用*/
}
.intro .img {
    width: calc(50vw - 1rem);
    background-image: url(../assets/transformer.jpg);
    background-size: cover;
    position: relative;
}

.intro .img::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 50%;
    height: 50%;
    background-image: linear-gradient(to bottom, rgb(50, 115, 230), rgb(3, 19, 66));
    z-index: -1;
}
.markets .card-box {
    display: flex;
    margin-top: 40px;
    justify-content: space-around;
    gap: 2rem
}
.markets > .card-box > div {
    width: calc(100% - 6rem);
    padding-top: 1rem;
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, 0.05);
    box-shadow: -1px 3px 23px -10px rgba(0, 0, 0, 0.2);
}
.markets>.card-box>div h3 {
    padding-left: 1rem;
    position: relative;
}
.markets>.card-box>div h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0.5rem;
    height: 100%;
    background-color: #2243e5;
}
.markets>.card-box>div p {
    display: block;
    padding: 1rem;
    text-align: justify;
    text-indent: 2rem;
    line-height: 2em;
}

main .application p {
    text-align: center;
    margin-bottom: 3rem;
}

main .application {
    display: flex;
    flex-wrap: wrap;
    gap: 5vw;
    margin-top: 3rem;
}

main .application>div {
    width: calc((100% - 10vw) / 3);
    height: 30vh;
    position: relative;
    overflow: hidden;
    box-shadow: -1px 3px 23px -10px rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
}

main .application>div:before {
    content: '';
    width: 0.5rem;
    height: 2rem;
    background-color: #2864e6;
    position: absolute;
    left: 0;
    bottom: 2rem;
    z-index: 1;
}

main .application>div .img {
    display: block;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    transition: all 0.5s ease;
}

main .application>div .img:hover {
    transform: scale(1.1);
    transition: all 0.5s ease;
}

main .application>div .oneapp {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, #000000 100%), url(../assets/robot.jpeg);
}

main .application>div .twoapp {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, #000000 100%), url(../assets/building.jpeg);
}

main .application>div .threeapp {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, #000000 100%), url(../assets/energy.jpeg);
}

main .application>div .fourapp {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, #000000 100%), url(../assets/communication.jpeg);
}

main .application>div .fiveapp {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, #000000 100%), url(../assets/car.jpg);
}

main .application>div .sixapp {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, #000000 100%), url(../assets/medical.jpeg);
}

main .application>div h4 {
    position: absolute;
    display: block;
    left: 1rem;
    bottom: 2rem;
    margin: 0;
    color: #fff;
    z-index: 1;
}
.products {
    background-color: rgba(0, 0, 0, 0.05);
    margin: 5rem 0;
    padding: 3rem;
    padding-top: 3rem;
    border-radius: 1rem;
}
.products h3, .application h3 {
    font-size: 2rem;
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 0;
    position: relative;
    margin-bottom: 100px;
}

.products h3:before, .application h3:before {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 25%;
    width: 50%;
    height: 5px;
    background-image: linear-gradient(to right, rgb(50, 115, 230), rgb(3, 19, 66));
}
.products > div{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 2rem
}

.products>div>div {
    width: calc((100% - 6rem)/4);
    background-color: #fff;
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 1rem;
}

.products>div>div:hover {
    cursor: pointer;
}
.products>div>div h1 {
    position: absolute;
    left: 0;
    bottom: 5%;
    padding-left: 2rem;
    font-size: 1.5rem;
    transition: 0.25s;
}
.products>div>div h1:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 100%;
    top: 0;
    left: 0;
    background-image: linear-gradient(to bottom, rgb(50, 115, 230), rgb(3, 19, 66));
}
.products>div>div .img {
    position: absolute;
    width: 100%;
    aspect-ratio: 1/1;
    top:0;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: 0.25s;
    border-radius: 0%;
}

.products>div>div:hover .img {
    top: 5%;
    width: calc(100% / 3);
    border-radius: 50%;
    box-shadow: -1px 3px 23px -10px rgba(0, 0, 0, 0.2);
}
.products>div>div:hover h1 {
    bottom: 55%;
    font-size: 1.5rem;
    line-height: 1.5rem;
}
.products>div>div h2 {
    position: absolute;
    bottom: 100%;
    display: none;
    left: 2rem;
    transition: 0.25s;    
    right: 28px;

}
.products>div>div:hover h2 {
    display: block;
    bottom: calc(18% + 5rem);
    font-size: 1rem;
    line-height: 1rem;
}
.products>div>div ul {
    position: absolute;
    left: 2rem;
    bottom: 100%;
    right: 28px;
    margin: 0;
    padding: 0;
    display: none;
    transition: 0.25s;
    list-style-type:decimal;
    line-height: 1rem;
    font-size: 0.8rem;
}
.products>div>div:hover ul {
    display: block;
    bottom: 18%;
}
.products>div>div:hover a {
    display: block;
}

.products a {
    display: none;
    border-radius: 1rem;
    width: fit-content;
    height: fit-content;
    color: #000019;
    position: relative;
    transition: all 0.25s ease;
    transform-origin: left;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.25rem 1rem;
}

.products a span {
    color: #000019;
    z-index: 2;
    position: relative;
    text-align: center;
}


.products a:hover span {
    color: #fff;
}

.products a:after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 100%;
    max-width: none;
    max-height: none;
    top: initial;
    transition: all 0.25s ease;
    background: linear-gradient(to right, rgb(50, 115, 230), rgb(3, 19, 66));
    transform-origin: left;
    border-radius: 1rem;
    z-index: 0;
}

.products a:hover {
    border: 1px solid rgba(0, 0, 0, 0);
}

.products a:hover:after {
    width: 100%;
}
.products >div > div a {
    position: absolute;
    left: 2rem;
    bottom: 1rem;
}
.products .more {
    display: block;
    margin: 100px auto 0 auto; 
}


@media only screen and (max-width: 1023px) {
    .page-title h3 {
        display: none;
    }

    .promise {
        text-align: justify;
        margin-top: 5rem;
        width: 100%;
        padding-left: 5vw;
    }
    main .intro {
        flex-direction: column;
    }
    main .markets .card-box {
        flex-direction: column;
    }
    main .markets>.card-box>div {
        width: calc(100%);
    }

    main .application {
        flex-direction: column;
    }

    main .application>div {
        width: 100%;
        height: 30vh;
    }
    main .products {
        padding: 0;
        background-color: #fff;
    }
    main .products > div {
        flex-direction: column;
    }
    main .products>div>div {
        width: 100%;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 1rem;
    }
    main .intro .img {
        width: calc(100% - 1rem);
        height: 30vh;
    }
}