﻿/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #f5f0eb;
    color: #2c2c2c;
    line-height: 1.7;
    padding: 20px;
}

/* ========== 主容器 ========== */
.container {
    max-width: 880px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 40px 48px 48px;
    transition: all 0.3s ease;
}

@media (max-width: 640px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 20px 16px 28px;
        border-radius: 12px;
    }
}

/* ========== 顶部导航 ========== */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 2px solid #f0e8e0;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-home {
    color: #b8865a;
    font-size: 15px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 30px;
    background: #f8f3ee;
    transition: all 0.25s ease;
}

.nav-home:hover {
    background: #b8865a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 134, 90, 0.3);
}

.nav-brand {
    font-size: 17px;
    font-weight: 600;
    color: #8b6b4f;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #b8865a, #8b6b4f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== 文章头部 ========== */
.post-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee8e2;
}

.post-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.4;
    color: #2c1810;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

@media (max-width: 640px) {
    .post-title {
        font-size: 22px;
        line-height: 1.5;
    }
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #a09080;
    flex-wrap: wrap;
}

.post-meta time {
    color: #8b6b4f;
}

.post-meta .divider {
    color: #d5c8bc;
}

/* ========== 文章正文 ========== */
.post-body {
    font-size: 17px;
    line-height: 1.9;
    color: #2c2c2c;
}

.post-body p {
    margin-bottom: 20px;
    text-align: justify;
    word-break: break-word;
}

.post-body strong {
    color: #8b3e1f;
    font-weight: 600;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    margin: 32px 0 16px;
    color: #2c1810;
    font-weight: 600;
}

.post-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.post-body blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    background: #f8f3ee;
    border-left: 4px solid #b8865a;
    border-radius: 0 8px 8px 0;
    color: #5a4a3a;
    font-style: italic;
}

.post-body ul,
.post-body ol {
    margin: 16px 0 20px 24px;
}

.post-body li {
    margin-bottom: 8px;
}

/* ========== 底部相关链接 ========== */
.related {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 2px solid #f0e8e0;
}

.related-title {
    font-size: 16px;
    font-weight: 600;
    color: #8b6b4f;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-links a {
    display: inline-block;
    padding: 6px 18px;
    background: #f8f3ee;
    color: #5a4a3a;
    text-decoration: none;
    font-size: 14px;
    border-radius: 30px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.related-links a:hover {
    background: #b8865a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(184, 134, 90, 0.3);
    border-color: #b8865a;
}

/* ========== 文章内图片样式增强 ========== */
.post-body .syl-page-img,
.post-body img[class*="syl"] {
    border-radius: 12px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
}

/* ========== 响应式微调 ========== */
@media (max-width: 480px) {
    .top-nav {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .nav-home {
        text-align: center;
    }

    .post-meta {
        font-size: 12px;
        gap: 6px;
    }

    .related-links a {
        font-size: 13px;
        padding: 5px 14px;
    }
}