/* blog.css — 博客列表 + 文章内容页共用样式，基于 root.css 变量 */

/* 头部 */
.blog-main-title {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--gj-jade);
}
.lead-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    font-style: italic;
}
.divider-grace {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gj-gold), transparent);
}

/* 文章卡片列表 */
.blog-card {
    background-color: var(--gj-paper);
    border: 1px solid var(--gj-card-border);
    border-radius: 28px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 14px var(--gj-shadow);
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px var(--gj-shadow);
}
.blog-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.blog-card-title a {
    color: var(--gj-ink);
    text-decoration: none;
    transition: color 0.2s;
}
.blog-card-title a:hover {
    color: var(--gj-gold);
}
.blog-card-meta {
    font-size: 0.8rem;
    color: var(--gj-gold-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.blog-card-summary {
    color: var(--gj-ink);
    line-height: 1.5;
    opacity: 0.85;
}
.blog-card-footer {
    margin-top: 1rem;
    text-align: right;
}
.btn-read {
    background: transparent;
    border: 1px solid var(--gj-gold);
    border-radius: 40px;
    padding: 0.25rem 1.2rem;
    font-size: 0.8rem;
    color: var(--gj-gold);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-read:hover {
    background: var(--gj-gold);
    color: #1f1b16;
    text-decoration: none;
}

/* 文章内容页样式 */
.article-header {
    text-align: center;
    margin-bottom: 2rem;
}
.article-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--gj-jade);
    margin-bottom: 0.5rem;
}
.article-date {
    color: var(--gj-gold-light);
    font-size: 0.85rem;
}
.article-body {
    background: var(--gj-paper);
    border-radius: 32px;
    padding: 2rem;
    border: 1px solid var(--gj-card-border);
    line-height: 1.7;
    font-size: 1rem;
    color: var(--gj-ink);
}
.article-body h2,
.article-body h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 500;
}
.article-body p {
    margin-bottom: 1.2em;
}
.article-body img {
    max-width: 100%;
    border-radius: 20px;
    margin: 1rem 0;
}
.article-body blockquote {
    border-left: 4px solid var(--gj-gold);
    background: var(--gj-stone);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-size:large;
    font-style: italic;
    margin: 1rem 0;
}


pre code {
    display: block;
    background: var(--gj-stone);
    padding: 1rem;
    border-radius: 16px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre;
    tab-size: 4;
}


.multi-column-2 {
    column-count: 2;          /* 分为2栏 */
    column-gap: 2rem;        /* 栏间距 */
    column-rule: 1px solid var(--gj-card-border); /* 分隔线 */
    text-align: justify;    
    /* white-space: pre-wrap;  */
    white-space: pre; 
    font-family: inherit;
}

@media (max-width: 768px) {
    .multi-column-2 {
        column-count: 1;
        column-rule: none;
    }
}

/* 提要摘要样式 */
.article-excerpt {
    background: var(--gj-stone);
    border-left: 4px solid var(--gj-gold);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    color: var(--gj-ink);
}
.excerpt-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gj-gold);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.article-excerpt p {
    margin: 0;
    line-height: 1.5;
}

/* 表格样式优化 */
.article-body .table {
    margin-bottom: 0;
}
.article-body .table td,
.article-body .table th {
    padding: 1rem 1.2rem;
    border-top: none;
    border-bottom: 1px solid var(--gj-card-border);
    vertical-align: middle;
    color: var(--gj-ink);
    background-color: transparent;
}


/* 文章子标题 — 古籍风格 */
.article-body h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--gj-gold-light);
    color: var(--gj-jade);
    letter-spacing: 1px;
    font-family: 'Noto Serif SC', 'Georgia', serif;
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--gj-ink);
    padding-left: 0.8rem;
    border-left: 4px solid var(--gj-gold);
    font-family: 'Noto Serif SC', 'Georgia', serif;
}

/* 可选的 h4（小标题） */
.article-body h4 {
    font-size: 1.05rem;
    font-weight: 500;
    margin: 1rem 0 0.5rem 0;
    color: var(--gj-gold);
    font-style: italic;
}

/* 文章内醒目跳转链接 —— 仿古籍“朱笔圈点” */
.article-body .featured-link {
    display: inline-block;
    background-color: var(--gj-paper);
    padding: 0.4rem 1.4rem 0.4rem 1rem;
    border-radius: 40px;
    border: 1.5px solid var(--gj-gold);
    color: var(--gj-gold);
    font-weight: 500;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px var(--gj-shadow);
    backdrop-filter: blur(2px);
    margin: 0.2rem 0;
}