/*2024/5/16*/
.yj-product2 {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.yj-product2-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.yj-product2-text {
    width: 60%;
    text-align: left;
}

.yj-product2-text p {
margin-bottom: 20px;
    margin-right: 50px;
    line-height: 1.6;
}

.yj-product2-more {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #800000;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.yj-product2-more:hover {
    background-color: #660000;
}

.yj-product2-pic {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.yj-product2-pic img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 0px 8px rgba(255, 112, 173, 0.35);
}

.yj-product2-left {
    border-top-left-radius: 50px;
    border-bottom-right-radius: 50px;
}


/*其他*/
:root {
    --card-border-radius: 20px;
    --card-gap: 10px;
    --transition-time: .25s;
    --btn-background: rgba(0, 0, 0, .3);
    --btn-color: #fff;
}

.yj-product {
    margin-top: 44px;
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(376px, 1fr));*/
grid-template-columns: repeat(4, 1fr);
    gap: var(--card-gap);
    
}

.yj-product-featuredimage {
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 6px 10px rgba(77, 94, 112, 0.08);
    border-radius: var(--card-border-radius);
    overflow: hidden;
}

.yj-product-chart{
    position: relative;
    width: 100%;
        height: 17vh;
}

.yj-product-pic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--card-border-radius);
}



.yj-product-paragraph {
    padding: 1.5rem;
}

.yj-product-titlebar{
    color: #121212;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.75rem;
    margin-bottom: 0.75rem;
}

.yj-product-text {
    color: #000000b3;
    font-size: 1rem;
    line-height: 1.75rem;
    word-break: break-word;
}

@keyframes dmy{
    0% {
         background-position: 250% -250%; 
    }
    
    100% {
         background-position: -250% 250%; 
    }
}
.yj-product p{
        display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media screen and (max-width: 768px) {
.yj-product {
    margin-top: 44px;
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(376px, 1fr)); */
    grid-template-columns: repeat(2, 1fr);
    gap: var(--card-gap);
}
}
