/*
Theme Name: 红湾文学社 · 清新完整版
Version: 11.0
Description: 温润书卷气 · 全端自适应 · 毛玻璃导航
*/

/* ===== 重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f7f2;
    color: #2c3e2f;
    line-height: 1.8;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.25s;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 导航栏（毛玻璃效果） ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(160, 180, 150, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
}

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

.site-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #2c3e2f;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-title a {
    color: #2c3e2f;
    display: flex;
    align-items: center;
}

.site-title a:hover {
    color: #5a7a5a;
}

.site-logo {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 6px;
    font-size: 14px;
    font-weight: 450;
}

.main-nav ul li a {
    display: inline-block;
    padding: 6px 16px;
    color: #4a5a4a;
    border-radius: 8px;
    transition: all 0.2s;
}

.main-nav ul li a:hover {
    color: #2c3e2f;
    background: rgba(160, 180, 150, 0.12);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #2c3e2f;
    padding: 4px 8px;
    border-radius: 8px;
}

.nav-toggle:hover {
    background: rgba(160, 180, 150, 0.12);
}

/* ===== 文字栏 ===== */
.hero {
    text-align: center;
    padding: 56px 20px 24px;
    background: #f5f7f2;
}

.hero h1 {
    font-size: 46px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #2c3e2f;
}

.hero .subtitle {
    font-size: 18px;
    font-weight: 300;
    color: #7a9a7a;
    letter-spacing: 4px;
    margin-top: 4px;
}

.hero-line {
    width: 60px;
    height: 2px;
    background: #8aaa8a;
    margin: 18px auto 0;
}

/* ===== 幻灯片 ===== */
.carousel-wrapper {
    margin: 12px 0 28px;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 20px;
    overflow: hidden;
    background: #dce4d8;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.02);
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #dce4d8;
}

.carousel-slide .slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    font-size: 26px;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.2s;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.carousel-btn.prev {
    left: 12px;
}

.carousel-btn.next {
    right: 12px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.carousel-dots span {
    width: 8px;
    height: 8px;
    border-radius: 10px;
    background: #c8d4c0;
    cursor: pointer;
    transition: 0.25s;
}

.carousel-dots span.active {
    background: #5a7a5a;
    width: 24px;
}

/* ===== 分类卡片 ===== */
.entry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 16px 0 20px;
}

.entry-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 12px 22px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(160, 180, 150, 0.08);
    transition: 0.3s;
}

.entry-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.03);
    border-color: rgba(90, 122, 90, 0.12);
}

.entry-card .icon {
    font-size: 30px;
    display: block;
}

.entry-card .card-title {
    font-weight: 600;
    font-size: 17px;
    margin-top: 4px;
    color: #2c3e2f;
}

.entry-card .card-desc {
    font-size: 12px;
    color: #9aaa9a;
}

.entry-card.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ===== 最新动态 ===== */
.latest-news {
    margin: 24px 0 28px;
}

.latest-news .section-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 4px;
    color: #2c3e2f;
    margin-bottom: 18px;
}

.latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 32px;
}

.latest-grid .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(160, 180, 150, 0.12);
    font-size: 14px;
}

.latest-grid .item .date {
    color: #9aaa9a;
    font-size: 12px;
    white-space: nowrap;
}

.latest-grid .item a:hover {
    color: #5a7a5a;
}

/* ===== 时间轴 ===== */
.timeline-preview {
    background: #f8faf6;
    border-radius: 18px;
    padding: 28px 24px;
    margin: 12px 0 24px;
    border: 1px solid rgba(160, 180, 150, 0.06);
}

.timeline-preview .section-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #2c3e2f;
    margin-bottom: 14px;
}

.timeline-scroll {
    overflow-x: auto;
    padding: 8px 0 12px;
    -webkit-overflow-scrolling: touch;
    --timeline-color: #5a7a5a;
}

.timeline-scroll::-webkit-scrollbar {
    height: 4px;
}

.timeline-scroll::-webkit-scrollbar-thumb {
    background: var(--timeline-color, #5a7a5a);
    border-radius: 10px;
}

.timeline-scroll::-webkit-scrollbar-track {
    background: rgba(160, 180, 150, 0.08);
}

.timeline-items {
    display: flex;
    gap: 0;
    min-width: max-content;
    align-items: center;
}

.timeline-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.timeline-item .node {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 12px;
    min-width: 80px;
    max-width: 120px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.timeline-item .node:hover {
    transform: translateY(-4px);
}

.timeline-item .node .node-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #dce4d8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.timeline-item .node .dot {
    width: 14px;
    height: 14px;
    border-radius: 14px;
    background: #d0dccc;
    border: 2px solid #bcc8b4;
}

.timeline-item .node .dot.has {
    background: var(--timeline-color, #5a7a5a);
    border-color: var(--timeline-color, #5a7a5a);
}

.timeline-item .node .dot.current {
    background: var(--timeline-color, #5a7a5a);
    border-color: var(--timeline-color, #5a7a5a);
    box-shadow: 0 0 0 4px rgba(90, 122, 90, 0.10);
    transform: scale(1.2);
}

.timeline-item .node .label {
    font-size: 13px;
    color: #2c3e2f;
    font-weight: 600;
    margin-top: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.timeline-item .node .date-label {
    font-size: 10px;
    color: #9aaa9a;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.timeline-item .line {
    width: 32px;
    height: 2px;
    background: #d0dccc;
    flex-shrink: 0;
}

.timeline-item .line.has {
    background: var(--timeline-color, #5a7a5a);
}

.timeline-preview .more-link {
    color: #5a7a5a;
    font-weight: 500;
}

.timeline-preview .more-link:hover {
    color: #4a6a4a;
}

/* ===== 归队栏 ===== */
.call-to-action {
    background: linear-gradient(135deg, #e8efe4, #dce4d8);
    border-radius: 18px;
    padding: 32px 24px;
    text-align: center;
    color: #2c3e2f;
    margin: 12px 0 28px;
}

.call-to-action .cta-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 3px;
}

.call-to-action .cta-desc {
    opacity: 0.7;
    font-size: 15px;
    margin: 4px 0 14px;
}

.call-to-action .cta-btn {
    background: #2c3e2f;
    color: #fff;
    padding: 10px 44px;
    border-radius: 40px;
    font-weight: 600;
    display: inline-block;
    transition: 0.25s;
}

.call-to-action .cta-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
    background: #1a2a1a;
}

/* ===== 底部 ===== */
.site-footer {
    background: #f8faf6;
    border-top: 1px solid rgba(160, 180, 150, 0.08);
    padding: 28px 0 20px;
    margin-top: 12px;
    font-size: 13px;
    color: #9aaa9a;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-left .footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 4px;
}

.footer-left .footer-desc {
    color: #7a8a7a;
    font-size: 14px;
    margin: 0;
}

.footer-left .footer-motto {
    color: #9aaa9a;
    font-size: 13px;
    font-style: italic;
    margin: 0;
}

.footer-right {
    text-align: right;
}

.footer-right .footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 16px;
    font-size: 12px;
    color: #b0c0b0;
}

.footer-right .footer-copyright {
    font-size: 13px;
    color: #7a8a7a;
    margin-top: 4px;
}

.footer-right .footer-copyright .footer-divider {
    color: #dce4d8;
    margin: 0 6px;
}

.footer-right .footer-copyright .social {
    color: #5a7a5a;
}

/* ===== 分类页 ===== */
.page-header {
    padding: 40px 0 28px;
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(160, 180, 150, 0.08);
    margin-bottom: 28px;
}

.page-header-inner {
    text-align: center;
}

.page-header h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #2c3e2f;
}

.page-header .page-desc {
    color: #9aaa9a;
    font-size: 15px;
    margin-top: 4px;
    letter-spacing: 2px;
}

.post-list {
    display: grid;
    gap: 24px;
    padding-bottom: 32px;
}

.post-item {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(160, 180, 150, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.01);
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
    border-color: rgba(90, 122, 90, 0.10);
}

.post-item-inner {
    display: flex;
    gap: 20px;
    padding: 20px 24px;
    align-items: stretch;
}

.post-cover {
    flex-shrink: 0;
    width: 200px;
    min-height: 140px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #dce4d8;
}

.post-cover .cover-link {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 140px;
}

.post-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #2c3e2f;
}

.post-title a {
    color: #2c3e2f;
    transition: color 0.2s;
}

.post-title a:hover {
    color: #5a7a5a;
}

.post-meta {
    font-size: 13px;
    color: #9aaa9a;
    margin-top: 6px;
}

.post-excerpt {
    font-size: 15px;
    color: #5a6a5a;
    margin-top: 8px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-readmore {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #5a7a5a;
    transition: all 0.2s;
}

.post-readmore:hover {
    color: #4a6a4a;
    transform: translateX(4px);
}

.pagination {
    display: flex;
    justify-content: center;
    padding: 16px 0 40px;
}

.pagination-inner {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-inner span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    color: #4a5a4a;
    background: transparent;
    transition: all 0.2s;
}

.pagination-inner span a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    color: #4a5a4a;
}

.pagination-inner span a:hover {
    background: rgba(90, 122, 90, 0.08);
    color: #2c3e2f;
}

.pagination-inner .current {
    background: #5a7a5a;
    color: #ffffff;
    border-radius: 8px;
}

.pagination-inner .prev,
.pagination-inner .next {
    font-weight: 500;
    color: #5a7a5a;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(160, 180, 150, 0.06);
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.empty-text {
    font-size: 18px;
    color: #2c3e2f;
    font-weight: 500;
}

.empty-hint {
    font-size: 14px;
    color: #9aaa9a;
    margin-top: 4px;
}

/* ===== 独立页面 ===== */
.page-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 44px;
    border: 1px solid rgba(160, 180, 150, 0.06);
    margin: 0 0 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.01);
}

.page-content h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #2c3e2f;
    margin-bottom: 20px;
}

.page-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(160, 180, 150, 0.12);
    color: #2c3e2f;
}

.page-content p {
    margin-bottom: 14px;
    color: #4a5a4a;
}

/* ===== 留言板 ===== */
.guestbook-form input,
.guestbook-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dce4d8;
    border-radius: 12px;
    font-size: 15px;
    background: #f8faf6;
    transition: 0.2s;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
    outline: none;
    border-color: #5a7a5a;
    background: #ffffff;
}

.guestbook-form .form-row {
    margin-bottom: 16px;
}

.guestbook-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #2c3e2f;
}

.guestbook-form .submit-btn {
    background: #5a7a5a;
    color: #fff;
    border: none;
    padding: 12px 44px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.guestbook-form .submit-btn:hover {
    background: #4a6a4a;
    transform: scale(1.02);
}

.guestbook-list .gb-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(160, 180, 150, 0.06);
}

.guestbook-list .gb-item .gb-name {
    font-weight: 700;
    font-size: 16px;
    color: #2c3e2f;
}

.guestbook-list .gb-item .gb-meta {
    font-size: 13px;
    color: #9aaa9a;
    margin-left: 12px;
}

.guestbook-list .gb-item .gb-content {
    color: #5a6a5a;
    margin-top: 4px;
}

/* ===== 单篇文章 ===== */
.single-post .page-content {
    padding: 40px 44px;
}

.single-post .page-content h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #2c3e2f;
    margin-bottom: 12px;
}

.single-post .post-meta-top {
    color: #9aaa9a;
    font-size: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(160, 180, 150, 0.06);
    padding-bottom: 16px;
}

.single-post .post-content {
    color: #3a4a3a;
    line-height: 1.9;
}

.single-post .post-content img {
    border-radius: 12px;
    margin: 16px 0;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .timeline-jump-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(160, 180, 150, 0.08);
        padding: 12px 20px 20px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.02);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2px;
    }

    .main-nav ul li a {
        display: block;
        padding: 10px 14px;
        border-radius: 10px;
        font-size: 15px;
    }

    .main-nav ul li a:hover {
        background: rgba(160, 180, 150, 0.08);
    }

    .site-header .container {
        height: 56px;
        padding: 0 16px;
    }

    .site-title {
        font-size: 18px;
    }

    .entry-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .latest-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .hero h1 {
        font-size: 32px;
        letter-spacing: 3px;
    }

    .hero .subtitle {
        font-size: 15px;
        letter-spacing: 2px;
    }

    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-right {
        text-align: left;
        width: 100%;
    }

    .footer-right .footer-legal {
        justify-content: flex-start;
    }

    .footer-left .footer-desc {
        max-width: 100%;
    }

    .carousel-container {
        aspect-ratio: 16 / 9;
        border-radius: 14px;
    }

    .post-item-inner {
        flex-direction: column;
        padding: 16px;
        gap: 14px;
    }

    .post-cover {
        width: 100%;
        min-height: 180px;
    }

    .post-cover .cover-link {
        min-height: 180px;
    }

    .page-header h2 {
        font-size: 26px;
        letter-spacing: 4px;
    }

    .post-title {
        font-size: 17px;
    }

    .pagination-inner span,
    .pagination-inner span a {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .page-content {
        padding: 24px 20px;
    }

    .single-post .page-content {
        padding: 24px 20px;
    }

    .timeline-item .node {
        min-width: 60px;
        max-width: 90px;
        padding: 0 8px;
    }

    .timeline-item .node .node-img {
        width: 60px;
        height: 60px;
    }

    .timeline-item .node .label {
        font-size: 12px;
    }

    .timeline-item .line {
        width: 20px;
    }

    .site-logo {
        height: 32px;
    }
}

@media (max-width: 480px) {
    .entry-grid {
        gap: 8px;
    }

    .entry-card {
        padding: 16px 6px 12px;
    }

    .entry-card .icon {
        font-size: 22px;
    }

    .entry-card .card-title {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 26px;
        letter-spacing: 2px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 2px;
    }

    .site-header .container {
        height: 52px;
        padding: 0 14px;
    }

    .site-title {
        font-size: 17px;
    }

    .post-cover {
        min-height: 140px;
    }

    .post-cover .cover-link {
        min-height: 140px;
    }

    .page-header h2 {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .post-item-inner {
        padding: 12px;
    }

    .page-content {
        padding: 16px 14px;
    }

    .single-post .page-content {
        padding: 16px 14px;
    }

    .timeline-item .node {
        min-width: 50px;
        max-width: 70px;
        padding: 0 4px;
    }

    .timeline-item .node .node-img {
        width: 48px;
        height: 48px;
    }

    .timeline-item .node .label {
        font-size: 11px;
    }

    .timeline-item .node .date-label {
        font-size: 9px;
    }

    .timeline-item .line {
        width: 14px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .site-logo {
        height: 28px;
    }
/* ===== 单文章页美化 ===== */
.post-single {
    padding: 20px 0 40px;
}

/* 文章头部 */
.post-header {
    text-align: center;
    padding: 16px 0 24px;
    border-bottom: 2px solid rgba(160, 180, 150, 0.08);
    margin-bottom: 24px;
}

.post-header .post-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #2c3e2f;
    line-height: 1.3;
    margin-bottom: 12px;
}

.post-header .post-meta-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    font-size: 13px;
    color: #9aaa9a;
}

.post-header .post-meta-top span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 特色图片 */
.post-featured-image {
    margin: 0 0 28px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 正文 */
.post-content {
    font-size: 17px;
    line-height: 1.9;
    color: #3a4a3a;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #2c3e2f;
    margin: 32px 0 16px;
    font-weight: 600;
}

.post-content h2 {
    font-size: 26px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(160, 180, 150, 0.08);
}

.post-content h3 {
    font-size: 22px;
}

.post-content p {
    margin-bottom: 18px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.post-content ul,
.post-content ol {
    margin: 16px 0 16px 24px;
}

.post-content blockquote {
    margin: 20px 0;
    padding: 16px 24px;
    background: rgba(160, 180, 150, 0.06);
    border-left: 4px solid #5a7a5a;
    border-radius: 0 12px 12px 0;
    color: #5a6a5a;
    font-style: italic;
}

.post-content blockquote p {
    margin-bottom: 0;
}

.post-content code {
    background: rgba(160, 180, 150, 0.10);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content pre {
    background: #2c3e2f;
    color: #e8efe4;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
}

.post-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.post-content table th,
.post-content table td {
    border: 1px solid rgba(160, 180, 150, 0.12);
    padding: 10px 14px;
    text-align: left;
}

.post-content table th {
    background: rgba(160, 180, 150, 0.06);
    font-weight: 600;
}

/* ===== 文章底部 ===== */
.post-footer {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 2px solid rgba(160, 180, 150, 0.08);
}

/* 上一篇/下一篇 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.post-navigation .prev-post,
.post-navigation .next-post {
    flex: 1;
    min-width: 0;
}

.post-navigation a {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(160, 180, 150, 0.06);
    transition: all 0.3s;
}

.post-navigation a:hover {
    border-color: rgba(90, 122, 90, 0.12);
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(0);
}

.post-navigation .prev-post a:hover {
    transform: translateX(-4px);
}

.post-navigation .next-post a:hover {
    transform: translateX(4px);
}

.post-navigation .nav-label {
    font-size: 12px;
    color: #9aaa9a;
    letter-spacing: 1px;
}

.post-navigation .nav-title {
    font-size: 15px;
    font-weight: 500;
    color: #2c3e2f;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-navigation .next-post {
    text-align: right;
}

/* 作者信息卡片 */
.post-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    border: 1px solid rgba(160, 180, 150, 0.06);
    margin-bottom: 24px;
}

.post-author .author-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(160, 180, 150, 0.10);
}

.post-author .author-name {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e2f;
}

.post-author .author-bio {
    font-size: 14px;
    color: #7a8a7a;
    margin-top: 2px;
}

/* 版权声明 */
.post-copyright {
    padding: 14px 20px;
    background: rgba(160, 180, 150, 0.04);
    border-radius: 12px;
    font-size: 13px;
    color: #7a8a7a;
    line-height: 1.8;
}

.post-copyright a {
    color: #5a7a5a;
}

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

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .post-header .post-title {
        font-size: 26px;
        letter-spacing: 1px;
    }

    .post-header .post-meta-top {
        font-size: 12px;
        gap: 8px 14px;
    }

    .post-content {
        font-size: 16px;
    }

    .post-content h2 {
        font-size: 22px;
    }

    .post-content h3 {
        font-size: 19px;
    }

    .post-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .post-navigation .next-post {
        text-align: left;
    }

    .post-navigation .prev-post a:hover,
    .post-navigation .next-post a:hover {
        transform: translateX(0);
    }

    .post-author {
        flex-direction: column;
        text-align: center;
    }

    .post-copyright {
        font-size: 12px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .post-header .post-title {
        font-size: 22px;
    }

    .post-content {
        font-size: 15px;
    }

    .post-content h2 {
        font-size: 20px;
    }

    .post-content h3 {
        font-size: 17px;
    }

    .post-author .author-avatar img {
        width: 48px;
        height: 48px;
    }
}