/*
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; line-height: 1.6; color: #333; }
*/

/* ===== 主容器左右排列 ===== */
.article-wrapper {
    width: 100%;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 50px;
    padding: 0 1%; /* 讓兩側不要貼邊 */
}

/* 左右欄寬度 */
.article-list,
.article-panel { min-height: 40vh; }
.article-list { flex: 7; min-width: 0; }
.article-panel { flex: 3; min-width: 0; }

/* ===== 左側列表 ===== */
.article-list {
    width: 100%;
    padding: 20px;
    background: #FFF;
}

.article-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    align-items: flex-start;
}

.article-list li:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 左邊圖片 */
.article-list .img {
    width: 220px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.article-list .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* 圖片 hover 動畫 */
.article-list li:hover .img img {
    transform: scale(1.05);
}

/* 右邊內容 */
.article-list .article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 日期 */
.article-list .article-date {
    font-size: 1rem;
    color: #999; /*A3652C*/
    margin-bottom: 5px;
}

/* 標題 */
.article-list .article-title {
    font-size: 1.2rem;
    color: #021E30;
    font-weight: 400;
    margin: 0 0 8px;
    transition: all 0.3s;
}

.article-list .article-title:hover {
	color: #484848;
    text-decoration: underline;
}
.article-list .article-content {
	font-size: 1rem;
	padding: 0;
	color: #888;
	font-weight: normal;
}

/* 標籤 */
.article-list .article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-list .article-tags a {
    font-size: 1rem;
    color: #00C89A; /* 綠色 */
    text-decoration: none;
    transition: color 0.3s;
}

.article-list .article-tags a:hover {
    color: #FF6E3A; /* 橘色 */
}

/* ===== 右側側欄 ===== */
.article-panel {
    width: 100%;
    padding: 20px;
    background: #F8F8F8;
    border-radius: 8px;
}

/* 搜尋欄 */
.article-panel .search {
    display: flex;
    /*gap: 6px;*/
}

.article-panel .search input[type="text"] {
    margin-right: 0;
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
}

.article-panel .search button {
    padding: 10px 20px;
    border: none;
    background: #c90000; /*0077cc*/
    color: #fff;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.article-panel .search button:hover {
    background: #021E30;
}

/* 標題 */
.article-panel h3 {
    margin: 10px 0 10px;
    margin-bottom: 20px;
    padding: 6px 10px;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
    border-left: #FD7A31 6px solid;
    border-bottom: #aaa 1px solid;
}

/* 標籤區塊 */
.article-panel .tags-block {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.article-panel .tags-block a {
    padding: 6px 12px;
    background: #0077cc;
    border-radius: 3px;
    font-size: 0.9rem;
    text-decoration: none;
    color: #FFF;
    transition: all 0.3s;
}

.article-panel .tags-block a:hover {
    background: #00C89A !important;
}
.article-panel .tags-block a.active {
    background: #021E30 !important;
}

/* 精選文章 */
.article-panel .other-article {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-panel .other-article li {
    margin-bottom: 10px;
}

.article-panel .other-article li a {
    font-size: 0.9rem;
    color: #4E4E4E;
    text-decoration: none;
    transition: all 0.3s;
}

.article-panel .other-article li a:hover {
	color: #0D57B8;
    text-decoration: underline;
}

/* ===== 響應式 ===== */
@media (max-width: 992px) {
    .article-wrapper {
        flex-direction: column;
    }
    .article-list li {
        display: block;
    }
    .article-list .img {
        width: 100%;
        height: 300px;
        margin-bottom: 12px;
    }
    .article-list .article-content {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .article-list .img {
        height: 260px;
    }
    .article-list .article-title {
        font-size: 16px;
    }
    .article-list .article-date {
        font-size: 13px;
    }
}

/* 內容頁 */
.article-content-title {
    float: left;
    width: 100%;
    margin: 40px 0 20px 0;
}
.article-content-title div { color:#999; font-size:1rem; text-align:right; margin-bottom:10px; }
.article-content-title h3 { color:#021E30; font-size:1.2rem; font-weight: 500; padding:20px 0;
    border-left: #0077cc 8px solid;
    border-bottom: #aaa 1px solid;
    padding: 6px 10px;
}

.article-content-tags { float: left; margin-top: 10px; margin-bottom:40px; }
.article-content-tags a {
    font-size: 1rem;
    color: #00C89A; /* 綠色 */
    text-decoration: none;
    transition: color 0.3s;
    margin: 5px;
}

.article-content-tags a:hover {
    color: #FF6E3A; /* 橘色 */
}
