img {
    max-width: 100%;
}

.sec-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 3rem 0 2rem;
}

.sec-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sec-en-tag {
    color: #5a8a4a;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 4px;
}

.sec-en-tag::after {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: #8aaa7a;
}

.sec-title {
    font-size: 26px;
    font-weight: 900;
    color: #1c2b1c;
    letter-spacing: 1px;
    margin: 0.2rem 0 0;
    line-height: 1.3;
}

/* 綠色副標 */
.sec-subtitle {
    font-size: 21px;
    color: #588341;
    font-weight: 500;
    letter-spacing: 2px;
    margin: 0;
}

/* 右側按鈕對齊中間 */
.sec-header-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* ── RWD：手機改成上下堆疊 ── */
@media (max-width: 767px) {
    .sec-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        padding: 2.5rem 0 1.5rem;
    }
}

.home-yc-works {
    position: relative;
    padding: 3rem 0;
    background-color: #fff;
}

.home-yc-works::before{
    content: '';
    display: block;
    background-image: url(/assets/template/41f8782ea84aceeba0c3e9347978fa85/img/bg02.png);
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    bottom: 0;
}

.home-yc-works .works-marquee-wrapper {
    overflow: hidden;
    width: 100%;
}

.home-yc-works .works-marquee {
    white-space: nowrap;
}

.home-yc-works .works-marquee>div {
    display: inline-block;
    min-width: max-content;
    padding-bottom: 3rem;
}

.home-yc-works .works-marquee .works-box .works-div:nth-child(odd){
    transform: translateY(40px);
}

.home-yc-works .works-marquee .works-div{
    margin: 0 2rem;
}

.home-yc-works .works-marquee .works-img {
    width: 480px;
    height: 360px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border-radius: 10px;
}

.home-yc-works .works-marquee .works-name {
    position: relative;
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    font-weight: bold;
    color: #fff;
    background-color: #7DAB64;
    padding: 10px;
    border-radius: 50px;
    max-width: 350px;
    margin: -12px auto 0;
}

.home-yc-works .works-marquee .works-name::before {
    content: '';
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translate(-50%, 0);
    display: block;
    background-image: url(/assets/template/41f8782ea84aceeba0c3e9347978fa85/img/name-icon.png);
    background-size: 100%;
    background-repeat: no-repeat;
    width: 65px;
    height: 7px;
    background-position: center;
}

@media screen and (max-width:991px) {
    .home-yc-works .title-cn {
        font-size: 23px;
    }

    .home-yc-works .title-en {
        font-size: 16px;
        background-color: #fff;
        z-index: 1;
    }

    .home-yc-works .works-marquee .works-img {
        width: 320px;
        height: 240px;
    }
}

/*btn-style*/
.btn-more {
    display: inline-flex;
    align-items: center;
    position: relative;
    height: 52px;
    border-radius: 100px;
    padding: 0;
    border: none;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    background: linear-gradient(90deg, #7FBC5D 0%, #CCD382 100%);
    box-shadow: none;
    transition: box-shadow 0.3s ease;
    min-width: 180px;
    margin-top: 3rem;
}

.btn-more::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: linear-gradient(90deg, #CCD382 0%, #7FBC5D 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.btn-more:hover::before {
    opacity: 1;
}

.btn-more .text {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFF;
    letter-spacing: 1.5px;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}

.btn-more .icon {
    position: absolute;
    left: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    z-index: 2;
    transition:
        left 0.42s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.42s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.42s ease;
}

.btn-more .icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url();
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px 9px;
    border: 1px #fff solid;
    border-radius: 50%;
    box-shadow: 0 0 10px #7FBC5D;
}

.btn-more:hover .icon::after {
    background-image: url(../img/arrow-right-green.png);
}

.btn-more:hover .icon {
    left: calc(100% - 46px);
    transform: scale(1.12);
    background: #FFF;
}

.btn-more:has(.icon) {
    min-width: 200px;
}

.btn-more:has(.icon) .text {
    padding-left: 0;
}
