.news {
    padding: 0;
    position: relative;
    transform: translateY(-140px);
}

.news__container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.news__items {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 16px;
    gap: 16px;
}

.news__item-container {
    width: 100%;
    padding: 12px 24px 12px 12px;
    gap: 20px;
    background: #FFFFFF;
    box-shadow: 0px 4px 35.6px #CACACA;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;

    &:hover {
        transform: translateY(-2px);
        box-shadow: 0px 4px 35.6px #CACACA;
    }
}

.news__item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    /* 統一改為左對齊 */
}

.news__item-top-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.news__item--hidden {
    display: none;
}

.news__item-left {
    display: flex;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    /* 允許 flex 項目縮小 */
}

.news__item-tag {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 16px;
    gap: 10px;
    border: 1px solid #E5DADC;
    border-radius: 38.5px;
    font-weight: 400;
    font-size: 18px;
    color: #7C225E;
    width: 200px;
    margin-right: 36px;
    white-space: nowrap;
    flex-shrink: 0;
    /* 防止標籤被壓縮 */
}

.news__item-tag--active {
    background: linear-gradient(128.21deg, #ED5574 -17.05%, #D93657 72.02%);
    font-weight: 700;
    color: #FFFFFF;
}

.news__content {
    gap: 10px;
    flex: 1;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: #848484;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    /* max-width: calc(100% - 120px); */
    margin: 0 20px 0 0;
    padding: 17px 0;
    height: auto;
    max-height: unset;
    text-align: left;
    /* 確保文字左對齊 */
}

/* 收起狀態的樣式 */
.news__item:not(.news__item--expanded) .news__content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 50px;
    max-height: 50px;
    max-width: 80ch; /* 電腦版大約 40 個中文字 (80ch ≈ 40個中文字) */
    width: auto;
}


.news__item-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding-top: 2px;
    min-width: 100px;
}

.news__date {
    font-weight: 400;
    font-size: 14px;
    line-height: 28px;
    text-align: left;
    /* 改為左對齊 */
    color: #848484;
    white-space: nowrap;
    min-width: 70px;
}

.news__item-more {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.news__item-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

.news__item-more-btn {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin-top: 20px;
    gap: 10px;
    min-width: 156px;
    border: 1px solid #D93657;
    border-radius: 37px;
    font-weight: 700;
    font-size: 22px;
    line-height: 24px;
    color: #D93657;
    cursor: pointer;
    transition: all 0.3s ease;

    &:hover {
        background: #D93657;
        color: #FFFFFF;
    }
}

@media (max-width: 1099px) {
    .news {
        transform: translateY(-85px);
    }

    .news__item-top-container {
        margin-bottom: 14px;
    }

    .news__content {
        width: 100%;
        /* max-width: calc(100% - 100px); */
        margin: 0;
        padding: 6px 0 0 0;
        height: auto;
        max-height: unset;
        text-align: left;
        /* 手機版也確保左對齊 */
    }

    /* 手機版收起狀態 */
    .news__item:not(.news__item--expanded) .news__content {
        height: 30px;
        max-height: 30px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 30ch;
        /* 手機版大約 30 個字元寬度 */
        width: auto;
    }

    .news__item-container {
        padding: 20px 20px 24px 20px;
        border-radius: 30px;
    }

    .news__item-tag {
        padding: 10px 16px;
        margin-right: 18px;
    }
}

@media (max-width: 728px) {
   
    .news__item-tag--active {
        font-size: 100%;
    }
}

@media (max-width: 420px) {
   
    .news__item-tag {
        width: 46vw;
    }
}

.footer__app-store-ios, .footer__app-store-android {
    align-items: flex-end;
}