/* Filename: css/article.css */
/* 專門給 SEO 文章使用的排版樣式，不影響主網站 */

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.article-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3d5a80;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    font-size: 0.9rem;
    color: #888;
}

/* 內文標題優化 */
.article-content h2 {
    font-size: 1.8rem;
    color: #222;
    margin-top: 60px;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 5px solid #3d5a80;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 30px;
    text-align: justify;
}

.article-content ul, .article-content ol {
    margin-bottom: 30px;
    padding-left: 2rem;
}

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

/* 表格優化 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 1rem;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.article-content th {
    background-color: #3d5a80;
    color: #fff;
    padding: 15px;
    text-align: left;
}

.article-content td {
    border-bottom: 1px solid #eee;
    padding: 15px;
}

.article-content tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 引用與強調 */
.article-content blockquote {
    background: #f0f4f8;
    border-left: 5px solid #3d5a80;
    margin: 40px 0;
    padding: 20px 30px;
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
}

/* 螢光筆樣式：自然黃色，手繪感 (只畫下半部) */
.article-content mark {
    background-color: transparent; /* 關掉背景色 */
    /* 使用線性漸層模擬筆觸，顏色為淡黃色 (#fff3cd) 帶一點透明度 */
    background-image: linear-gradient(to right, rgba(255, 243, 205, 1), rgba(255, 243, 205, 1));
    background-size: 100% 40%; /* 高度只佔文字的 40% */
    background-position: 0 90%; /* 位置在底部 */
    background-repeat: no-repeat;
    color: inherit; /* 文字維持黑色，不變色 */
    padding: 0 2px;
    border-radius: 0;
    font-weight: bold; /* 加粗讓重點更明顯 */
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 文末 CTA 區塊 */
.article-cta-box {
    background-color: #eef4ed;
    border: 1px solid #c3e6cb;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    margin-top: 60px;
}

.article-cta-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #155724;
}

/* --- 新增：互動元素專用樣式 (讓文章更漂亮) --- */

/* 1. 通用互動框 */
.interactive-box {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

/* 2. 檢測清單 (Checklist) */
.check-list-box h3 {
    color: #3d5a80;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.check-list-box ul {
    list-style: none;
    padding: 0;
}
.check-list-box li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-weight: 500;
}
/* 把 li 前面的符號美化 */
.check-list-box li:before {
    content: '❌'; /* 或 ✅，視語意而定 */
    position: absolute;
    left: 0;
    top: 2px;
}

/* 3. 迷思破解 (Myth Buster) */
.myth-buster-box {
    background: #f0f7f4; /* 淡綠色背景，像是在闢謠 */
    border-left: 5px solid #3A5A40;
}
.myth-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ccc;
}
.myth-item:last-child {
    border-bottom: none;
}
.myth-content h4 {
    color: #c0392b; /* 迷思用紅色 */
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.myth-content p strong {
    color: #27ae60; /* 真相用綠色 */
    font-size: 1.1rem;
}

/* 4. 文章內圖片美化 */
.article-image {
    margin: 40px 0;
    text-align: center;
}
.article-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-height: 500px;
    object-fit: cover;
}
figcaption {
    font-size: 0.9rem;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}

/* 5. 表格響應式 (手機版可以滑動) */
.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
}

/* --- 社群分享按鈕樣式 (請貼在 css/article.css 最下方) --- */
.share-section {
    margin: 40px 0;
    text-align: center;
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.share-section p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    color: #fff !important; /* 強制白字 */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Line 綠色 */
.share-btn.line {
    background-color: #06C755;
}

/* FB 藍色 */
.share-btn.fb {
    background-color: #1877F2;
}