:root {
    --primary: #1a5f4a;
    --primary-dark: #0f3d2e;
    --primary-light: #2d8a6e;
    --secondary: #3d7a5e;
    --accent: #4a9e7f;
    --bg-primary: #ffffff;
    --bg-secondary: #f8faf9;
    --bg-tertiary: #eef4f1;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border: #e2e8e0;
    --shadow: rgba(26, 95, 74, 0.08);
    --shadow-hover: rgba(26, 95, 74, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f5f9f7 0%, #e8f4f0 50%, #f0f7f4 100%);
    min-height: 100vh;
}

/* 頭部導航 */
.header {
    background: var(--bg-primary);
    box-shadow: 0 2px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(26, 95, 74, 0.3);
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 30px;
}

/* 主要內容區 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
}

/* 英雄區 */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 80px 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 50px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 文章列表 */
.section-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.posts-grid {
    display: grid;
    gap: 30px;
}

.post-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.post-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 3rem;
}

.post-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
    flex: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-dark);
}

/* 分頁 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.pagination a {
    background: var(--bg-primary);
    color: var(--text-secondary);
    box-shadow: 0 2px 10px var(--shadow);
}

.pagination a:hover {
    background: var(--primary);
    color: white;
}

.pagination span.current {
    background: var(--primary);
    color: white;
}

/* 頁腳 */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    opacity: 0.8;
    font-size: 0.875rem;
}

/* 空狀態 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

/* 文章頁優化 */
.article {
    background: white;
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--bg-tertiary);
}

.article-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta-icon {
    font-size: 1rem;
}

.article-body {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.article-body p {
    margin-bottom: 1.5em;
}

.article-body h2,
.article-body h3 {
    color: var(--text-primary);
    margin: 2em 0 1em;
}

.article-body h2 {
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.article-body ul,
.article-body ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.article-body li {
    margin-bottom: 0.5em;
}

/* 分享按鈕區域 */
.share-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.share-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-right: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-facebook {
    background: #1877f2;
    color: white;
}

.share-facebook:hover {
    background: #166fe5;
}

.share-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.share-instagram:hover {
    filter: brightness(1.1);
}

.share-wechat {
    background: #07c160;
    color: white;
}

.share-wechat:hover {
    background: #06ad56;
}

.share-copy {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.share-copy:hover {
    background: var(--border);
}

.article-footer {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.article-back-link:hover {
    gap: 12px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .header-container {
        height: 60px;
    }
    
    .hero {
        padding: 50px 25px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .article {
        padding: 30px 20px;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .share-section {
        flex-wrap: wrap;
        justify-content: center;
    }
}
