/* 样式部分 */

.content-container {
    margin-top: -260px;
    margin-bottom: 40px;
    position: relative;
}

.entry-meta {
    margin-bottom: 30px;
}
.entry-meta,
.entry-meta a {
    color: #A2A2A2;
}
.entry-content img {
    max-width: 100%;
    margin-bottom: 30px;
}
.toc {
    background-color: transparent;
    margin-bottom: 30px;
    position: relative; /* 默认状态下的样式 */
    transition: all 0.3s ease; /* 增加平滑过渡效果 */
    width: 100%; /* 防止宽度不统一 */
}

.toc h4 {
    font-size: 14px;
    margin-bottom: 15px;
}
.toc ul {
    list-style: none;
    padding: 0;
}
.toc ul li {
    margin: 10px 0;
}
.toc ul li a {
    text-decoration: none;
    color: #6A6A6A;;
}
.toc ul li a:hover {
    text-decoration: underline;
}
.entry-title {
    margin-top: 10px;
    margin-bottom: 30px;
}
/* .entry-content {
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 16px;
} */

/* ... 现有样式 ... */

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    max-width: 840px;
    margin: 0 auto;
}

/* 标题层级 */
.entry-content h2 {
    font-size: 24px;
    color: #2CB1B1;
    border-bottom: 2px solid rgba(44, 177, 177, 0.2);
    padding-bottom: 10px;
    margin: 40px 0 25px;
}

.entry-content h3 {
    font-size: 20px;
    color: #2CB1B1;
    margin: 35px 0 20px;
    padding-left: 12px;
    border-left: 4px solid #2CB1B1;
}

/* 图片样式 */
.entry-content img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(44, 177, 177, 0.1);
    margin: 30px auto;
    display: block;
}

/* 引用块样式 */
.entry-content blockquote {
    background-color: #f8fafa;
    border-left: 4px solid #2CB1B1;
    margin: 25px 0;
    padding: 20px 25px;
    color: #666;
}

/* 列表样式 */
.entry-content ul {
    padding-left: 30px;
    margin: 20px 0;
}

.entry-content ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
    list-style: none;
}

.entry-content ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #2CB1B1;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 10px;
}

/* 段落间距 */
.entry-content p {
    margin-bottom: 1.8em;
    text-align: justify;
}

/* 强调文字 */
.entry-content strong {
    color: #2CB1B1;
    font-weight: 600;
}

/* 链接样式 */
.entry-content a {
    color: #2CB1B1;
    text-decoration: underline;
    transition: color 0.3s;
}

.entry-content a:hover {
    color: #239898;
}

/* 代码块样式 */
.entry-content pre {
    background: #f8fafa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0f0f0;
    margin: 20px 0;
    overflow-x: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .entry-content {
        font-size: 15px;
        padding: 0 15px;
    }

    .entry-content h2 {
        font-size: 20px;
        margin: 30px 0 20px;
    }

    .entry-content h3 {
        font-size: 18px;
        margin: 25px 0 15px;
    }

    .entry-content blockquote {
        padding: 15px;
        margin: 20px 0;
    }
}
.ad-section img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}
.related-blogs, .latest-articles {
    margin-top: 40px;
}
.related-blogs h3, .latest-articles h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
}


.article-wrapper .left-slide-box,
.article-wrapper .right-slide-box {
    position: sticky;
    top: 70px;
    /*overflow-y: auto;*/
    /*max-height: calc(100vh - 166px);*/
}
.article-wrapper .entry-content {
    width: 100%;
    margin: 0 auto; /* 居中对齐 */
    overflow-wrap: break-word; /* 自动换行，防止内容溢出 */
    word-wrap: break-word; /* 兼容旧浏览器 */
    word-break: break-word; /* 强制内容在单词边界断开 */
}
.article-wrapper .entry-content * {
    max-width: 100%; /* 限制所有子元素宽度不超过容器宽度 */
    box-sizing: border-box; /* 包括内边距和边框 */
}
.article-wrapper .entry-content img {
    max-width: 100%; /* 图片自适应宽度 */
    height: auto; /* 保证图片比例 */
}
