/* My Archive Post Styles - 修正版 */
.my-archive-post-container {
    width: 100%;
    margin: 0 auto;
    padding: 10px 0;
    text-align: center; /* 容器內容置中 */
}

.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.archive-post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    padding-bottom:40px;
    text-align: center; /* 卡片內容置中 */
}

.archive-post-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    margin-bottom: 0 !important;
}

.thumbnail-link {
    display: block;
    overflow: hidden;
}
.thumbnail-link img{
    margin-bottom:0 !important;
}

.post-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-link:hover .post-image {
    transform: scale(1.05);
}

/*.post-content {
    padding: 15px;
    text-align: center;  內容區域置中 
}*/

.archive-posts-grid.post-categories {
    margin: 10px;
}

.category-link {
    display: inline-block;
    background: none; /* 移除背景 */
    color: #4ea5ef; /* 和閱讀全文一樣的顏色 */
    padding: 5px;
    border-radius: 0; /* 移除圓角 */
    font-size: 0.8em;
    text-decoration: none;
    border: none; /* 移除邊框 */
    box-shadow: none; /* 移除陰影 */
}

.category-link:hover {
   /* background: none;  懸停時也無背景 
    color: #2980b9;  稍深的藍色 */
    text-decoration: underline; /* 添加底線效果 */
}

/*.archive-posts-grid.post-title {
    margin:0 5px 40px 5px !important ;
    font-weight:400;
}*/

.archive-posts-grid h2{
    margin-bottom:30px;
    font-weight:400 !important;}

.archive-posts-grid.post-title a {
    text-decoration: none;
    /* 移除顏色設定，使用佈景主題預設 */
    transition: opacity 0.2s ease;
}

.archive-posts-grid.post-title a:hover {
    opacity: 0.8; /* 改用透明度變化 */
}

.read-more-container {
    margin-top: 6px;
    text-align: center; /* 按鈕置中 */
}

.read-more-button {
    display: inline-block;
    color: #3498db;
    padding: 3px 16px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 400;
    transition: all 0.2s ease;
    border: 1px solid #3498db; /* 添加外框 */
    border-radius: 4px;
}

.read-more-button:hover {
    transform:translateX(2px) translateY(2px)
}

/* 分頁樣式 - 黑底白字 */
.archive-pagination {
    text-align: center;
    margin-top: 30px;
}

.archive-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 2px;
    border: 1px solid #333;
    border-radius: 3px;
    text-decoration: none;
    color: #333; /* 預設文字顏色 */
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.archive-pagination .page-numbers.current,
.archive-pagination a.page-numbers:hover {
    background: #333; /* 黑底 */
    color: white; /* 白字 */
    border-color: #333;
}

.archive-pagination a.page-numbers {
    background: white;
}

.archive-pagination a.page-numbers:hover {
    background: #333;
    color: white;
}

.no-posts-found {
    text-align: center;
    padding: 40px;
    color: #666;
    grid-column: 1 / -1;
}
.archive-posts-list{
    background: linear-gradient(135deg, #f8fbff 0%, #e6f0ff 100%);
    border: 1px solid #c2d9ff;
    border-radius: 12px;
    padding: 5px 0;
    margin: 5px auto;
    box-shadow: 0 4px 15px rgba(174, 207, 255, 0.2);
    transition: all 0.3s ease;
    text-align:left;
}
.archive-list-container{
    padding:0px;
}
.archive-list-item{
    padding:10px 5px;
}
.archive-list-item .archive-list-link::before {
    content: '📝';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}
.archive-list-item:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #d0e5ff 100%);
}
.archive-list-item .archive-list-link{
    text-decoration: none;
    color: #495057;
    display: block;
    padding-left: 30px;
    transition: all 0.3s ease;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}
.archive-list-item:hover .archive-list-link {
    color: #1971c2;
    transform: translateY(1px) translateX(1px);
}
.archive-list-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(77, 171, 247, 0.1) 0%, rgba(51, 154, 240, 0.05) 100%);
    transition: width 0.3s ease;
    border-radius: 0 4px 4px 0;
}


/* 響應式設計 */
@media (max-width: 768px) {
    .archive-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
/*    .post-content {
        padding: 12px;
    }
*/
}
