
/* 引入共用下載css模組 */
@import url(../style_news/style_download.css);



/* =====最新消息內頁css客製========================================================= */


.right_contentBg{
    display: flex;
    flex-direction: column;
    gap: clamp(1.6130rem, 2.6042vw, 3.1250rem); /* 25.81px , 2.6042vw , 50.00px */
}

    .right_contentBg .btn_area {
        margin-top: 0;
    }

/*---------------------------------------------------------*/
/*------- 下載模組 - 雙欄卡片化 (Download Area) --------*/
/*---------------------------------------------------------*/

.download_area {
    padding: 0;
    margin: 0 -10px; /* 抵銷內部卡片的 padding，讓邊緣對齊 */
    display: flex;
    flex-wrap: wrap; /* 讓內容自動換行 */
    list-style-type: none;
    gap: 0;
}

.download_list {
    width: 48%; /* 核心設定：兩個一排 */
    padding: 10px; /* 卡片之間的間距 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.download_list a {
    text-decoration: none;
    flex-grow: 1;
    background: #ffffff;
    padding: 1rem;
    border-radius: 0.625rem; /* 10px */
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    transition: all 0.3s ease;
    border: 1px solid #eee; /* 輕微邊框增加精緻感 */
}

/* 左側文字與圖示區塊 */
.download_list a .download_left_group {
    display: flex;
    align-items: center;
    max-width: calc(100% - 50px);
}

/* 檔案圖示 */
.download_icon {
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.download_icon img {
    width: 24px;
    height: auto;
}

/* 檔案名稱 */
.download_name {
    font-weight: bold;
    color: #333;
    font-size: clamp(0.875rem, 1vw, 1.1rem);
    line-height: 1.4;
    /* 文字過長自動斷行，最多兩行 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* 右側類型圖示 (圓圈按鈕化) */
.download_type {
    width: 40px;
    height: 40px;
    background-color: var(--primary_color); /* 使用你的主色 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.download_type img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1); /* 讓深色 icon 變白色 */
}

/*--- 互動效果 ---*/
.download_list:hover a {
    transform: translateY(-5px); /* 向上浮動 */
    box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 30px 0px;
}

.download_list:hover .download_type {
    background-color: var(--fourth_color); /* Hover 時按鈕變色 */
}

/*---------------------------------------------------------*/
/*------- 手機版 RWD (寬度小於 768px) --------*/
/*---------------------------------------------------------*/

@media (max-width: 768px) {
    .download_area {
        margin: 0; /* 手機版重置間距 */
    }
    .download_list {
        width: 100%; /* 手機版改為一排一個 */
        padding: 10px 0;
    }
}