﻿:root {
    --primary-color: #733938;
    --text-color: #292929;
    --secondary-text: #757575;
    --background: #fff;
    --surface: #fafafa;
    --divider: rgba(0, 0, 0, 0.1);
    --footer-bg: #f8f9fa;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.navbar-brand {
    padding: 0; /* 移除內邊距讓圖片可以完全顯示 */
}

.brand-logo {
    height: 60px; /* 設定Logo高度 */
    width: auto; /* 寬度自動調整保持比例 */
}

/* 移動裝置的響應式設計 */
@media (max-width: 768px) {
    .brand-logo {
        height: 45px; /* 在小螢幕上稍微縮小Logo */
    }
}  

.main-content {
    flex: 1 0 auto;
}

.navbar {
    background-color: var(--background) !important;
    border-bottom: 1px solid var(--divider);
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--text-color) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.article-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-meta {
    color: var(--secondary-text);
    font-size: 0.95rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-content h2 {
    font-weight: 700;
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    line-height: 1.4;
}

.article-content h3 {
    font-weight: 700;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    line-height: 1.4;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
    padding: 0.5rem 1rem;
    color: var(--secondary-text);
    font-style: italic;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content code {
    background-color: var(--surface);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-content pre {
    background-color: var(--surface);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background-color: transparent;
    padding: 0;
}

.article-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-to-home:hover {
    color: #156912;
}

.back-to-home svg {
    margin-right: 0.5rem;
}

.site-footer {
    flex-shrink: 0;
    background-color: var(--footer-bg);
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 1px solid var(--divider);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--secondary-text);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    margin-bottom: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--surface);
    color: var(--secondary-text);
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-copyright {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .article-header {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }

    .article-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .article-content {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .article-content h2 {
        font-size: 1.6rem;
        margin: 1.5rem 0 1rem;
    }

    .article-content h3 {
        font-size: 1.3rem;
        margin: 1.25rem 0 1rem;
    }

    .article-footer {
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .site-footer {
        padding: 2rem 1rem;
        margin-top: 3rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

.navbar {
    background-color: var(--background) !important;
    border-bottom: 1px solid var(--divider);
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--text-color) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 側邊導航樣式 */
.side-navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    visibility: hidden;
    display: none; /* 默認隱藏 */
}

.side-navbar-content {
    position: absolute;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background-color: #212529; /* 黑色背景 */
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 1051;
    overflow-y: auto;
    padding: 1.5rem;
    color: white; /* 白色文字 */
}

.side-navbar.active {
    visibility: visible;
}

.side-navbar.active .side-navbar-content {
    right: 0;
}

.side-navbar-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1050;
}

.side-navbar.active .side-navbar-backdrop {
    opacity: 1;
}

.side-navbar-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.side-navbar-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7); /* 淡白色圖標 */
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.side-navbar-close:hover {
    color: white; /* 懸停時純白色 */
}

.side-navbar .category-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.side-navbar .category-link {
    padding: 0;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9); /* 設置連結為白色 */
    background-color: #212529;
    font-size: 1.5rem;
}

.side-navbar .category-link:hover {
    background-color: rgba(255, 255, 255, 0.1); /* 懸停時半透明白色背景 */
    color: white;
}

.side-navbar .category-link.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.category-links {
    display: flex;
    gap: 1rem;
}

.category-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: var(--primary-color);
    background-color: var(--surface);
}

.category-link.active {
    color: var(--primary-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .category-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .category-link {
        padding: 0.8rem 1rem;
        width: 100%;
        text-align: center;
        background-color: var(--surface);
        border-radius: 4px;
    }

    .category-link:hover {
        background-color: var(--divider);
    }

    .category-link.active {
        background-color: var(--primary-color);
        color: white;
    }

    .search-container {
        margin: 1rem 0;
    }
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(41, 41, 41, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 768px) {
    /* 在移動設備下隱藏原來的導航欄，顯示側邊導航 */
    .side-navbar {
        display: block;
    }
    
    /* 使Bootstrap的collapse在移動設備下不工作 */
    .navbar-collapse {
        display: none !important;
    }
    /* 使用 grid 佈局重新排列導航欄元素 */
    .navbar-container {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    /* 漢堡菜單移到左側 */
    .navbar-toggler {
        order: 1;
        grid-column: 1;
        justify-self: start;
        padding: 0.5rem 0;
        margin: 0;
    }
    
    /* Logo 置中 */
    .navbar-brand {
        margin: 0 auto !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5; /* 確保Logo在最上層 */
    }
    
    /* 搜尋圖標移到右側 */
    .search-icon {
        margin: 0;
        order: 2;
    }
    
    /* 整個右側控制區調整 */
    .mobile-controls {
        display: flex !important;
        justify-content: space-between;
        width: 100%;
        margin: 0;
    }
    
    /* 調整漢堡菜單的位置和間距 */
    .navbar-toggler {
        padding: 0.5rem;
        margin: 0;
        order: 1;
    }
    
    /* 確保導航欄品牌 Logo 的大小合適 */
    .brand-logo {
        height: 45px;
        display: block;
    }
}        
/* 側邊導航社交連結樣式 */
.side-navbar-social {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* 淡白色分隔線 */
}

.side-navbar-social .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.side-navbar-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1); /* 半透明白色背景 */
    color: rgba(255, 255, 255, 0.8); /* 淡白色圖標 */
    transition: all 0.3s ease;
}

.side-navbar-social .social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}
/* ===== Facebook CTA ===== */
.facebook-cta {
    max-width: 800px;
    margin: 3.5rem auto 0;
    padding: 2.25rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(115, 57, 56, 0.10), rgba(115, 57, 56, 0.03));
    border: 1px solid rgba(115, 57, 56, 0.18);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(41, 41, 41, 0.08);
	}
	
	.facebook-cta__eyebrow {
		display: inline-block;
		margin-bottom: 0.75rem;
		color: var(--primary-color);
		font-size: 0.92rem;
		font-weight: 700;
		letter-spacing: 0.08em;
	}
		
		.facebook-cta__title {
			margin: 0 auto 1rem;
			max-width: 650px;
			font-size: 1.65rem;
			line-height: 1.45;
			font-weight: 800;
			color: var(--text-color);
		}
			.facebook-cta__text {
				max-width: 650px;
				margin: 0 auto 1.5rem;
				color: var(--secondary-text);
				font-size: 1rem;
				line-height: 1.8;
			}
				
				.facebook-cta__button {
					display: inline-flex;
					align-items: center;
					justify-content: center;
					gap: 0.65rem;
					min-height: 52px;
					padding: 0.8rem 1.5rem;
					border-radius: 999px;
					background-color: #1877f2;
					color: #fff;
					text-decoration: none;
					font-weight: 700;
					font-size: 1rem;
					box-shadow: 0 8px 22px rgba(24, 119, 242, 0.25);
					transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
				}
					
					.facebook-cta__button:hover {
						color: #fff;
						background-color: #0f69db;
						transform: translateY(-2px);
						box-shadow: 0 12px 28px rgba(24, 119, 242, 0.32);
					}
						
						.facebook-cta__button:focus-visible {
							outline: 3px solid rgba(24, 119, 242, 0.28);
							outline-offset: 4px;
						}
							
							.facebook-cta__note {
								margin-top: 0.85rem;
								color: var(--secondary-text);
								font-size: 0.82rem;
							}
							/* 手機版底部固定 CTA */
							.facebook-sticky-cta {
								display: none;
							}
							
							@media (max-width: 768px) {
								body {
									padding-bottom: 72px;
								}

								.facebook-cta {
									margin: 2.5rem 1rem 0;
									padding: 1.75rem 1.25rem;
									border-radius: 16px;
									}
									.facebook-cta__title {
										font-size: 1.35rem;
										}
										.facebook-cta__button {
											width: 100%;
											padding-left: 1rem;
											padding-right: 1rem;
											}
											.facebook-sticky-cta {
												position: fixed;
												left: 0;
												right: 0;
												bottom: 0;
												z-index: 1040;
												display: flex;
												align-items: center;
												justify-content: space-between;
												gap: 0.75rem;
												padding: 0.75rem max(1rem, env(safe-area-inset-right)) calc(0.75rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
												background: rgba(255, 255, 255, 0.96);
												border-top: 1px solid var(--divider);
												box-shadow: 0 -8px 24px rgba(41, 41, 41, 0.08);
												backdrop-filter: blur(10px);
												}
												.facebook-sticky-cta__text {
													color: var(--text-color);
													font-size: 0.9rem;
													font-weight: 600;
													line-height: 1.35;
													}
													.facebook-sticky-cta__button {
														flex: 0 0 auto;
														padding: 0.55rem 1rem;
														border-radius: 999px;
														background-color: #1877f2;
														color: #fff;
														text-decoration: none;
														font-size: 0.9rem;
														font-weight: 700;
														}

														.facebook-sticky-cta__button:hover {
															color: #fff;
															background-color: #0f69db;
															}
													}
															