/* 自定義主題色彩 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e67e22;
    --light-bg: #f8f9fa;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
}

/* 主標題區域優化 */
.masthead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    padding: 8rem 0 4rem !important;
}

.site-heading h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.site-heading .subheading {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
}

/* 文章卡片化設計 */
.post-preview {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.post-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.post-preview:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.post-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.post-meta a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.post-meta a:hover {
    text-decoration: underline;
}

/* 搜尋框美化 */
.form-control {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25);
}

.btn-outline-secondary {
    border-radius: 8px;
    border-color: var(--border-color);
    color: var(--text-muted);
}

.btn-outline-secondary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* 載入更多按鈕 */
.btn-outline-primary {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .masthead {
        padding: 6rem 0 3rem !important;
    }
    
    .site-heading h1 {
        font-size: 2.5rem;
    }
    
    .post-preview {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-preview {
    animation: fadeInUp 0.6s ease-out;
}

/* 線上人數徽章優化 */
.number-of-people {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.badge {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(230, 126, 34, 0.3);
}

/* 頁面整體背景 */
body {
    background-color: var(--light-bg);
}

.container {
    max-width: 900px;
}

/* 移除原有的分隔線 */
.post-preview + hr {
    display: none;
}
