/* ===== 博客公共样式（详情页 + 共用容器） ===== */

/* 文章内容容器（宽度由父容器控制） */
.blog-main {
    max-width: 100%;
    margin: 0;
    padding: 40px 48px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    box-sizing: border-box;
}

/* 文章详情 */
.post-article {
    max-width: 100%;
    margin: 0;
    padding: 40px 48px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    box-sizing: border-box;
}
.post-content {
    line-height: 1.67;
}
.post-content h1,
.post-content h2,
.post-content h3 {
    margin-top: 1.5em;
}
.post-content p {
    margin: 0.5em 0;
    text-indent: 2em;
}
.post-content img {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.post-content img.full-width {
    max-width: 100%;
    padding: 0;
}
.post-content blockquote {
    background: #e8eeff;
    border-left: 4px solid #0b97f5;
    padding: 16px 24px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    color: #334155;
    font-style: italic;
    line-height: 1.9;
}
.post-content blockquote cite {
    display: block;
    margin-top: 8px;
    font-style: normal;
    color: #94a3b8;
    text-align: right;
    font-size: 0.9rem;
}
.post-content blockquote p {
    text-indent: 0 !important;
}

/* 文章顶部元信息 */
.post-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin: 8px 0 12px 0;
    font-size: 14px;
    color: #94a3b8;
}
.post-meta-top .post-date {
    color: #94a3b8;
}
.post-meta-top .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.post-meta-top .tag {
    font-size: 13px;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 12px;
    border-radius: 20px;
    text-decoration: none;
}

/* 分隔线 */
.post-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 12px 0 24px 0;
}

/* 首页内容样式（与侧边栏配合） */
.home-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.intro-section {
    margin-bottom: 48px;
}
.intro-section h2 {
    font-size: 26px;
    font-weight: 600;
    color: #0f1a2e;
    margin-bottom: 12px;
}
.intro-section p {
    font-size: 16px;
    color: #334155;
    line-height: 1.8;
    margin: 0;
}
.recent-posts h2 {
    font-size: 22px;
    font-weight: 600;
    color: #0f1a2e;
    margin-bottom: 16px;
}
.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.post-item {
    padding: 12px 0;
    border-bottom: 1px solid #eef3fc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.post-item:last-child {
    border-bottom: none;
}
.post-title-link {
    font-size: 17px;
    font-weight: 500;
    color: #0f1f33;
    text-decoration: none;
    transition: color 0.2s;
}
.post-title-link:hover {
    color: #3b82f6;
}
.post-date {
    font-size: 14px;
    color: #94a3b8;
    white-space: nowrap;
}
.view-all {
    text-align: right;
    margin-top: 16px;
}
.view-all a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.view-all a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ===== Slideshow 样式 ===== */
.slideshow-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 760px;
    margin: 20px auto;
}

.slideshow-prev,
.slideshow-next {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.slideshow-prev:hover,
.slideshow-next:hover {
    background: #e2eaff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: scale(1.05);
}

.slideshow-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: transparent;
    transition: height 0.4s ease;
}

.slideshow-track {
    display: flex;
    align-items: flex-start;
    transition: transform 0.4s ease;
}

/* JS 动态生成的 .slideshow-slide（如果用到的话） */
.slideshow-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    margin: 0;
}

.slideshow-slide img {
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    margin: 0;
}
