:root {
    --TaButtonSize: 80px;
}


.ta-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}
.ta-box .ta-item {
    position: relative;
}


/*圖片*/
.ta-img {
    border-radius: var(--BorderRadius);
    overflow: hidden;
    position: relative;
}

.ta-img img {
    width: 100%;
    transition: var(--TransitionEase);

}


/*文字*/
.ta-block .section-title {
    padding-bottom: var(--SectionTitleBottom);
    border-bottom: 1px dashed #ccc;
}
.ta-txt {
    margin-bottom: var(--CardMiddleSpacing);
    padding: 0 1rem;
    /*display: grid;
    grid-template-columns: auto 50px;
    gap: 2rem;
    align-items: center;*/
}
.ta-txt .ta-title {
    font-size: calc(var(--FontSizeH3)*1.1);
    font-weight: 500;
    color: var(--TitleMainColor);
    margin-bottom: 8px;
}
.ta-txt .ta-title:before {
    content: '';
    position: relative;
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--SubColor);
    margin: 0 12px 0 0;
    top: -4px;
}
.ta-txt .ta-title span {
    font-size: calc(var(--FontSizeH3)* .7);
    font-weight: 300;
}
.ta-txt .ta-title span:before {
    content: '';
    position: relative;
    display: inline-block;
    width: 1px;
    height: 16px;
    background: #999;
    top: 1px;
}
.ta-txt .ta-title span::before {
    margin: 0 0.8rem;
}
.ta-txt p.ta-solution {
    display: -webkit-box;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 47px;
}
.ta-point-des {
    position: absolute;
    font-size: var(--FontSizeH4);
    top: 2.5rem;
    left: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    writing-mode: vertical-lr;
    color: var(--TextMainColor);
    gap: 8px;
}
.ta-point-des span {
    background: white;
    padding: 12px 5px;
    width: fit-content;
    border-radius: 4px;
}
.ta-point-des span:nth-child(2) {
    margin-top: 2rem;
}


/*按鈕*/
.txt-btn button {
    position: absolute;
    right: -15px;
    bottom: -15px;
    width: var(--TaButtonSize);
    height: var(--TaButtonSize);
    padding: 0;
    background: transparent;
    /*border: var(--BorderGrayPx1);*/
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    /*color: #555;*/
    color: white;
    border: 0;
    z-index: 3;
}

.txt-btn button::before {
    content: '';
    display: block;
    width: var(--TaButtonSize);
    height: var(--TaButtonSize);
    /*background: #ececec;*/
    background: var(--MainColor);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: -1;
    transition: .4s;
}

.txt-btn button::after {
    content: '';
    display: block;
    width: var(--TaButtonSize);
    height: var(--TaButtonSize);
    /*background: var(--MainColor);*/
    background: var(--SubColor);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) scale(0);
    z-index: -1;
    transition: .4s;
}



@media (hover: hover) {

.ta-box .ta-item:hover .ta-img img{
    transform: scale(1.05);
    transition: var(--TransitionEase);
}

/*.ta-box .ta-item:hover .ta-txt .ta-title{
    color: var(--MainColor);
    transition: var(--TransitionEase);
}
.ta-box .ta-item:hover .ta-txt .ta-title:before {
    background: var(--MainColor);
    transition: var(--TransitionEase);
}
.ta-box .ta-item:hover .ta-txt .ta-title span {
    color: var(--TitleMainColor);
}*/


.ta-box .ta-item:hover .txt-btn button:hover {
        background: white;
        color: var(--MainHoverColor);
        /*border-color: var(--BtnOutlineHoverBg);*/
    }

    .ta-box .ta-item:hover .txt-btn button i {
        color: white;
    }

    .ta-box .ta-item:hover .txt-btn button::before {
        transform: translateY(-50%) scale(0);
    }

    .ta-box .ta-item:hover .txt-btn button::after {
        transform: translateY(-50%) scale(1);
    }

}




@media (max-width: 2200px) {

.ta-point-des {
    top: 2rem;
    left: 1.5rem;
}


}



@media (max-width: 2000px) {

.ta-box {
    gap: 3rem;
}

}



@media (max-width: 1700px) {

:root {
    --TaButtonSize: 70px;
}
.ta-point-des {
    top: 15px;
    left: 15px;
}
.ta-point-des span:nth-child(2) {
    margin-top: 1.5rem;
}

}



@media (max-width: 1600px) {

.ta-box {
    gap: 2rem;
}


}


@media (max-width: 1500px) {
    
:root {
    --TaButtonSize: 60px;
}
.ta-txt {
    padding: 0;
}

}



@media (max-width: 1300px) {

.ta-point-des {
    font-size: 16px;
    gap: 5px;
}
.ta-point-des span {
    padding: 12px 3px;
}



}



@media (max-width: 1250px) {

/*.ta-txt p.ta-solution {
    -webkit-line-clamp: 2;
    min-height: 46px;
}*/

.ta-box {
    grid-template-columns: auto;
}
.ta-box .ta-item {
    padding-bottom: 2.5rem;
    border-bottom: 1px dashed #ccc;
}
.ta-box .ta-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.ta-box .ta-item a {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        'img txt';
    gap: 0 2.5rem;
    align-items: center;

}
.ta-txt {
    grid-area: txt;
    margin-bottom: 0;
}
.ta-img {
    grid-area: img;
    height: 40vw;
}
.ta-block .section-title {
    padding-bottom: 0;
    border-bottom: 0;
}
.ta-point-des {
    top: 20px;
    left: 20px;
}
.txt-btn button {
    right: 10px;
    bottom: 2.5rem;
}
.ta-item:last-child .txt-btn button {
    bottom: 0;
}
.ta-txt p.ta-solution {
    -webkit-line-clamp: inherit;
    min-height: auto;
}



}



@media (max-width: 991px) {

.ta-point-des {
    top: 15px;
    left: 15px;
}
.ta-point-des span:nth-child(2) {
    margin-top: 1.2rem;
}

}





@media (max-width: 800px) {

.ta-point-des {
    top: 10px;
    left: 10px;
}
.ta-box .ta-item a {
    gap: 0 2rem;

}

}






@media (max-width: 767px) {

.ta-box {
    grid-template-columns: auto;
    gap: 2.5rem;
}
.ta-box .ta-item a {
    grid-template-columns: auto;
    grid-template-areas:
        'txt'
        'img';
}
.ta-img {
    height: auto;
}
.ta-point-des {
    top: 20px;
    left: 20px;
}
.txt-btn button {
    right: -10px;
    bottom: calc(-15px + 2.5rem);
}
.ta-item:last-child .txt-btn button {
    right: -10px;
    bottom: -15px;
}
.ta-txt p.ta-solution {
    -webkit-line-clamp: inhert;
    min-height: auto;
}
.ta-txt {
    margin-bottom: var(--CardMiddleSpacing);
}


}



@media (max-width: 600px) {

.ta-box {
    gap: 2rem;
}
.ta-box .ta-item {
    padding-bottom: 2rem;
}
.txt-btn button {
    bottom: calc(-10px + 2rem);
}
.ta-item:last-child .txt-btn button {
    bottom: -10px;
}


}





@media (max-width: 480px) {

:root {
    --TaButtonSize: 50px;
}
.ta-point-des {
    top: 15px;
    left: 15px;
    font-size: 15px;
}
.ta-txt .ta-title {
    margin-bottom: 4px;
}


}




@media (max-width: 350px) {

.ta-point-des {
    left: 10px;
}
.ta-txt .ta-title span {
    display: block;
    margin-left: 22px;
    margin-top: 2px;
}
.ta-txt .ta-title span::before {
    display: none;
}
.ta-txt .ta-title {
    margin-bottom: 8px;
}

}