/* 单篇文章页面样式 */

/* 主容器 */
#wrapper {
    position: relative;
    min-height: 600px;
}

/* 文章内容 */
#content {
    margin-bottom: 30px;
}

/* 文章头部 */
.post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.post-title {
    margin: 0 0 15px;
    font-size: 28px;
    font-weight: normal;
    line-height: 1.3;
}

.post-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 文章缩略图 */
.post-thumbnail {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.02);
}

/* 文章正文 */
.post-content {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content h2 {
    margin: 1.5em 0 1em;
    font-size: 24px;
    font-weight: normal;
    color: #222;
}

.post-content h3 {
    margin: 1.2em 0 0.8em;
    font-size: 20px;
    font-weight: normal;
    color: #222;
}

.post-content ul,
.post-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content a {
    color: var(--spt-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: var(--spt-primary-dark);
    text-decoration: underline;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border-radius: 4px;
}

/* 文章底部 */
.post-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 分享按钮 */
.share-buttons {
    margin: 20px 0;
}

.share-buttons a {
    display: inline-block;
    margin-right: 10px;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-buttons a:hover {
    background-color: var(--spt-primary);
    color: #fff;
}

/* 标签 */
.post-tags {
    margin: 20px 0;
}

.post-tags a {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 4px 12px;
    background-color: #f5f5f5;
    border-radius: 16px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background-color: var(--spt-primary);
    color: #fff;
}

/* 相关文章 */
.related-posts {
    margin: 40px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.related-posts h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: normal;
    color: #333;
}

.related-posts ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.related-posts li {
    margin-bottom: 10px;
}

.related-posts a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-posts a:hover {
    color: var(--spt-primary);
}

/* 评论区 */
#comments {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* 侧边栏 */
#sidebar {
    margin-top: 20px;
}

/* 小工具 */
.widget {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.widget h3 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: normal;
    color: #333;
    border-bottom: 2px solid var(--spt-primary);
    padding-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #wrapper {
        padding: 0 15px;
    }
    
    .post-title {
        font-size: 24px;
    }
    
    .post-content h2 {
        font-size: 20px;
    }
    
    .post-content h3 {
        font-size: 18px;
    }
    
    .widget {
        padding: 15px;
    }
}