body {
    background: #f4f6f9;
    font-family: 'Segoe UI', 'Noto Sans TC', '微軟正黑體', system-ui, -apple-system, 'Roboto', sans-serif;
}
.site-header {
    background: linear-gradient(135deg, #1e2a3a 0%, #0f1a24 100%);
    padding: 1.8rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.site-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #f7d44a;
    margin: 0;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}
.site-sub {
    color: #cddcec;
    font-size: 0.9rem;
    margin-top: 6px;
    font-weight: 300;
}
.card-article {
    border: none;
    border-radius: 20px;
    transition: all 0.2s ease;
    background: #ffffff;
    margin-bottom: 1.25rem;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0,0,0,0.05);
}
.card-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}
.article-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e466e;
    margin-bottom: 0.5rem;
}
.article-title a {
    color: #1e466e;
    text-decoration: none;
    transition: color 0.2s;
}
.article-title a:hover {
    color: #d45a2b;
    text-decoration: underline;
}
.article-date {
    font-size: 0.8rem;
    color: #8a9bb0;
    display: inline-block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}
.article-summary {
    color: #2c3e4e;
    font-size: 0.92rem;
    line-height: 1.45;
    margin-top: 6px;
}
.pagination-custom {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}
.pagination-custom .page-link {
    border-radius: 30px;
    margin: 0 4px;
    color: #1e466e;
    border: 1px solid #dce5ef;
    background: #fff;
    font-weight: 500;
    transition: all 0.2s;
}
.pagination-custom .page-item.active .page-link {
    background: #1e466e;
    border-color: #1e466e;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.pagination-custom .page-link:hover {
    background: #eef2f7;
    border-color: #bdd4e8;
    color: #d45a2b;
}
.right-panel {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 1.2rem;
    position: sticky;
    top: 1.5rem;
}
.right-title {
    font-size: 1.6rem;
    font-weight: 700;
    border-left: 6px solid #f7b32b;
    padding-left: 16px;
    margin-bottom: 1.5rem;
    color: #1e2f3f;
}
.comment-item {
    border-bottom: 1px solid #eef2f8;
    padding: 1rem 0;
    transition: background 0.1s;
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-user {
    font-weight: 700;
    color: #d45a2b;
    font-size: 1rem;
    display: inline-block;
    margin-bottom: 0.2rem;
}
.comment-article {
    font-size: 0.8rem;
    color: #6c86a3;
    margin-left: 8px;
    font-weight: normal;
}
.comment-article:before {
    content: "「";
}
.comment-article:after {
    content: "」";
}
.comment-text {
    color: #2c3e50;
    font-size: 0.9rem;
    margin-top: 8px;
    line-height: 1.45;
    background: #f8fafd;
    padding: 8px 12px;
    border-radius: 20px;
}
.badge-articles {
    font-size: 0.7rem;
    background-color: #eef2fa;
    color: #1e466e;
    padding: 4px 8px;
    border-radius: 40px;
    margin-bottom: 8px;
    display: inline-block;
}
footer {
    margin-top: 3rem;
    background: #eef2f7;
    padding: 1.2rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #5e7a93;
    border-top: 1px solid #d8e2ed;
}

.article-detail-card {
            background: #ffffff;
            border-radius: 32px;
            box-shadow: 0 20px 35px -12px rgba(0,0,0,0.1);
            padding: 2rem 2rem 2.2rem;
            margin-bottom: 2rem;
        }
        .detail-title {
            font-size: 2.2rem;
            font-weight: 800;
            color: #1e3c4a;
            border-left: 6px solid #f7b32b;
            padding-left: 20px;
            margin-bottom: 1rem;
            line-height: 1.3;
        }
        .detail-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 0.8rem;
            border-bottom: 1px solid #e9edf2;
        }
        .detail-date {
            background: #eef2fa;
            padding: 0.3rem 1rem;
            border-radius: 40px;
            font-size: 0.85rem;
            color: #1e466e;
            font-weight: 500;
        }
        .detail-category {
            background: #fef1e0;
            color: #d45a2b;
            padding: 0.3rem 1rem;
            border-radius: 40px;
            font-size: 0.85rem;
            font-weight: 500;
        }
        .detail-content {
            font-size: 1.08rem;
            line-height: 1.75;
            color: #2c3e4f;
            margin-bottom: 2rem;
        }
        .detail-content p {
            margin-bottom: 1.4rem;
        }
        .detail-content h3 {
            font-size: 1.5rem;
            margin: 1.8rem 0 1rem;
            color: #1e466e;
            font-weight: 700;
        }
        .detail-content blockquote {
            background: #f8fafd;
            border-left: 5px solid #f7b32b;
            padding: 1rem 1.5rem;
            margin: 1.5rem 0;
            font-style: italic;
            color: #3a5a78;
            border-radius: 20px;
        }

 .comment-section {
            background: #ffffff;
            border-radius: 32px;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
            padding: 1.8rem 2rem;
            margin-top: 1.8rem;
        }
        .comment-title {
            font-size: 1.6rem;
            font-weight: 700;
            border-left: 6px solid #f7b32b;
            padding-left: 16px;
            margin-bottom: 1.5rem;
            color: #1e2f3f;
        }
        .comment-item {
            border-bottom: 1px solid #eef2f8;
            padding: 1.2rem 0 0.5em 0px;
            transition: background 0.1s;
        }
        .comment-item:last-child {
            border-bottom: none;
        }
        .comment-user {
            font-weight: 700;
            color: #d45a2b;
            font-size: 1rem;
            display: inline-block;
            margin-bottom: 0.2rem;
        }
        .comment-article {
            font-size: 0.8rem;
            color: #6c86a3;
            margin-left: 8px;
            font-weight: normal;
        }
        .comment-article:before {
            content: "「";
        }
        .comment-article:after {
            content: "」";
        }
        .comment-text {
            color: #2c3e50;
            font-size: 0.92rem;
            margin-top: 8px;
            line-height: 1.45;
            background: #f8fafd;
            padding: 10px 14px;
            border-radius: 20px;
        }
        .comment-form-area {
            background: #fefef7;
            border-radius: 28px;
            padding: 1.5rem;
            margin-top: 2rem;
            border: 1px solid #e9edf2;
        }
        .form-group label {
            font-weight: 600;
            color: #1e466e;
            margin-bottom: 0.4rem;
        }
        .form-control {
            border-radius: 40px;
            border: 1px solid #d4dee8;
            padding: 0.6rem 1.2rem;
        }
        .form-control:focus {
            box-shadow: none;
            border-color: #f7b32b;
        }
        .btn-submit-comment {
            background: #1e466e;
            border: none;
            border-radius: 40px;
            padding: 0.5rem 2rem;
            font-weight: 600;
            color: white;
            transition: all 0.2s;
        }
        .btn-submit-comment:hover {
            background: #d45a2b;
            transform: translateY(-2px);
        }
.navigation-links a{
    width:100%;
    display:block;
    margin-bottom:0.45em;
}

@media (max-width: 768px) {
    .right-panel {
        margin-top: 2rem;
        position: static;
    }
    .site-title {
        font-size: 1.8rem;
    }

     .detail-title {
                font-size: 1.6rem;
            }
            .article-detail-card {
                padding: 1.5rem;
            }

            
}
.list-group-flush-custom {
    max-height: none;
}
.pagination-wrapper {
    display: flex;
    justify-content: center;
}