/* 文章分享簡潔樣式 - hoin8.net */

/* ========== 文章列表頁面 ========== */
#article-list.even-box {
    padding: 30px 0;
}

/* 文章列表容器 */
#article-list .even-nav {
    display: block;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 每個文章項目 */
#article-list .even-link {
    display: block;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

#article-list .even-link:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#article-list .even-link a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 文章圖片 */
#article-list .even-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* 文章內容區域 */
#article-list .even-link .article-content {
    padding: 15px 20px;
}

/* 文章標題 */
#article-list .even-link .title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* 文章摘要 */
#article-list .even-link .text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 文章資訊 */
#article-list .even-link .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* 日期 */
#article-list .even-link .article-date {
    font-size: 12px;
    color: #999;
}

/* 閱讀更多 */
#article-list .even-link .read-more {
    font-size: 12px;
    color: #fa5456;
}

/* 分頁 */
#article-list .even-page {
    text-align: center;
    padding: 20px 0;
}

#article-list .even-page .page-item {
    display: inline-block;
    margin: 0 3px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
}

#article-list .even-page .page-item:hover,
#article-list .even-page .page-item.active {
    background: #fa5456;
    color: #fff;
    border-color: #fa5456;
}

/* ========== 文章詳情頁 ========== */
.pro-box {
    padding: 30px 20px;
}

/* 返回按鈕 */
.pro-box .back-pro {
    display: inline-block;
    padding: 8px 15px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    margin-bottom: 20px;
}

.pro-box .back-pro:hover {
    background: #fa5456;
    color: #fff;
}

/* 文章內容區 */
.pro-box .pro-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* 文章標題 */
.pro-box .pro-content h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #fa5456;
}

/* 標籤 */
.pro-box .pro-content .tag {
    display: inline-block;
    padding: 5px 10px;
    background: #fa5456;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    margin-bottom: 10px;
}

/* 文章內容 */
.pro-box .pro-text {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.pro-box .pro-text p {
    margin: 15px 0;
}

.pro-box .pro-text h2 {
    font-size: 20px;
    color: #333;
    margin: 25px 0 15px;
}

.pro-box .pro-text h3 {
    font-size: 18px;
    color: #333;
    margin: 20px 0 10px;
}

.pro-box .pro-text ul,
.pro-box .pro-text ol {
    margin: 15px 0;
    padding-left: 30px;
}

.pro-box .pro-text li {
    margin: 8px 0;
}

.pro-box .pro-text img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
}

/* 推廣橫幅 */
.pro-box .promotion-banner {
    margin: 20px 0 !important;
    padding: 15px !important;
    background: #fa5456 !important;
    text-align: center;
    border-radius: 5px !important;
}

.pro-box .promotion-banner a {
    color: #fff !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

/* ========== 響應式設計 ========== */
@media screen and (min-width: 768px) {
    /* 桌面版：三欄布局 */
    #article-list .even-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    #article-list .even-link {
        width: calc(33.333% - 14px);
        margin-bottom: 0;
    }
}

@media screen and (min-width: 481px) and (max-width: 767px) {
    /* 平板：兩欄布局 */
    #article-list .even-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    #article-list .even-link {
        width: calc(50% - 8px);
        margin-bottom: 0;
    }
}

@media screen and (max-width: 480px) {
    /* 手機版 */
    #article-list .even-link .title {
        font-size: 16px;
    }
    
    #article-list .even-link .text {
        font-size: 13px;
    }
    
    .pro-box .pro-content h1 {
        font-size: 20px;
    }
    
    .pro-box .pro-text {
        font-size: 14px;
    }
}