.index-news {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 80px 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-bottom: 1px solid #e2b969;
}

.index-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/news-bg.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(4.5px);
    z-index: 0;
}

.index-news::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(64, 40, 15, 0.5);
    z-index: 1;
}

.index-news>* {
    position: relative;
    z-index: 2;
}

/* 角落裝飾 */
.news-corner {
    position: absolute;
    z-index: 3;
}

.news-corner img {
    width: auto;
    height: auto;
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

.news-corner-tl {
    top: -2px;
    left: -3px;
}

.news-corner-tl img {
    transform: scaleX(-1);
    max-width: 71px;
    max-height: 71px;
}

.news-corner-tr {
    top: -2px;
    right: -3px;
}

.news-corner-tr img {
    max-width: 71px;
    max-height: 71px;
}

.news-corner-bl {
    bottom: 0;
    left: 0;
}

.news-corner-bl img {
    transform: scaleX(-1);
    max-width: 71px;
    max-height: 71px;
}

.news-corner-br {
    bottom: 0;
    right: 0;
}

.news-corner-br img {
    max-width: 71px;
    max-height: 71px;
}

/* 主要內容容器 */
.news-main-container {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 82vh;
    z-index: 3;
}

/* 標題區塊（右側垂直） */
.news-title-section {
    position: absolute;
    right: 42px;
    left: auto;
    top: 26px;
    bottom: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    z-index: 5;
    pointer-events: none;
}

.news-title {
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: #e2b969;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    letter-spacing: 0.22em;
    line-height: 1.35;
}

.news-title-decoration {
    width: 58px;
    height: auto;
}

.news-title-decoration img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.news-title-decoration-bottom img {
    transform: scaleY(-1);
}

/* 新聞內容區塊 */
.news-content {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 54px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    z-index: 3;
    position: relative;
}

#home-news-list {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex: 1;
    min-width: 0;
}

/* 新聞欄 */
.news-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    width: 100%;
    max-width: 132px;
    min-width: 0;
    padding: 0 18px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, opacity 0.25s ease;
    cursor: pointer;
}

.news-column:hover {
    transform: translateY(-5px);
    opacity: 0.92;
}

.news-column:hover .news-date,
.news-column:hover .news-description {
    color: #ffe7c7;
}

.news-column:hover .news-category {
    background: linear-gradient(135deg, #ffe7c7 0%, #ffd9a3 50%, #ffe7c7 100%);
    border-color: #ffe7c7;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.news-column::after {
    content: '';
    position: absolute;
    top: 42px;
    right: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,
            rgba(226, 185, 105, 0.9) 0%,
            rgba(226, 185, 105, 0.55) 58%,
            rgba(226, 185, 105, 0.15) 100%);
}

.news-column:first-child::after {
    display: none;
}

.news-cloud-icon {
    width: 34px;
    height: auto;
    margin-bottom: 6px;
    margin-top: -8px;
}

.news-cloud-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: translate(0px, 12px);
    filter: drop-shadow(0 0 3px rgba(225, 163, 0, 0.5));
}

.news-date {
    color: #e2b969;
    font-size: 1.05rem;
    text-align: center;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.news-category {
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: #32261c;
    background-color: rgba(225, 163, 0, 0.85);
    background-image: url(../img/type-bg.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1.5px solid rgba(225, 163, 0, 0.6);
    border-radius: 16px;
    padding: 16px 10px;
    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: 0.22em;
    min-height: 148px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.news-description {
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: #e2b969;
    font-size: 1.38rem;
    line-height: 1.72;
    letter-spacing: 0.14em;
    height: 590px;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: color 0.3s ease;
}

/* 更多消息按鈕 */
.news-more-section {
    position: absolute;
    left: 18px;
    bottom: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 3;
}

.news-more-line {
    width: 2px;
    height: 260px;
    background: repeating-linear-gradient(to bottom,
            rgba(225, 163, 0, 0.6) 0px,
            rgba(225, 163, 0, 0.6) 3.6px,
            transparent 3.6px,
            transparent 7.2px);
}

.news-more-btn {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.news-more-btn:hover {
    transform: scale(1.05);
}

.news-more-btn img {
    width: auto;
    height: auto;
    max-width: 144px;
    max-height: 144px;
    object-fit: contain;
}

.news-more-text {
    position: absolute;
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: #362f28;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.18em;
    pointer-events: none;
    font-family: "MingLiU", "PMingLiU", "新細明體", "細明體", serif;
    transition: color 0.3s ease;
}

/* hover時文字變成淺黃色 */
.news-more-btn:hover .news-more-text {
    color: #fff9c4;
    /* 淺黃色 */
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .index-news {
        padding: 60px 40px;
    }

    .news-title-section {
        right: 20px;
        left: auto;
        top: 22px;
    }

    .news-title {
        font-size: 2.35rem;
    }

    .news-content {
        gap: 34px;
    }

    .news-column {
        max-width: 114px;
        padding: 0 14px;
    }

    .news-description {
        height: 540px;
        font-size: 1.24rem;
    }
}

@media (max-width: 768px) {
    .index-news {
        padding: 40px 20px;
        min-height: auto;
    }

    .news-corner img {
        max-width: 50px;
        max-height: 50px;
    }


    .news-main-container {
        max-width: 100%;
        min-height: auto;
    }

    .news-title-section {
        gap: 15px;
        margin-bottom: 18px;
    }

    .news-title {
        writing-mode: vertical-rl;
        font-size: 1.5rem;
        letter-spacing: 0.14em;
    }

    .news-title-decoration {
        width: 30px;
    }

    .news-content {
        align-items: flex-start;
        justify-content: flex-start;
        max-width: 100%;
        margin: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
    }

    #home-news-list {
        min-width: max-content;
        gap: 0;
        flex-direction: row-reverse;
    }

    .news-cloud-icon {
        width: 25px;
        margin-top: -10px;
    }

    .news-column-mobile-hide {
        display: none;
    }

    .news-date {
        font-size: 1rem;
        gap: 6px;
        margin-bottom: 10px;
    }

    .news-column {
        max-width: 74px;
        min-width: 74px;
        padding: 0 14px;
    }

    .news-description {
        font-size: 1.06rem;
        line-height: 2;
        height: 340px;
        text-align: center;
    }

    .news-category {
        font-size: 0.95rem;
        min-height: 96px;
        padding: 10px 7px;
    }

    .news-more-line {
        height: 120px;
    }

    .news-more-btn img {
        max-width: 100px;
        max-height: 100px;
    }

    .news-more-text {
        font-size: 0.9rem;
    }

    .news-more-section {
        left: 0;
        bottom: 6px;
    }
}

@media (max-width: 480px) {
    .news-column-mobile-hide-two {
        display: none;
    }

    .news-content {
        padding-right: 44px;
    }

    .news-title-section {
        gap: 10px;
    }

    .news-column {
        max-width: 62px;
        min-width: 62px;
        padding: 0 10px;
    }

    .news-category {
        min-height: 84px;
        font-size: 0.88rem;
    }

    .news-description {
        font-size: 0.96rem;
        height: 280px;
        line-height: 1.75;
    }
}
