/* 头部导航 */
 header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
}
  
  /* 主内容区布局 - 现在包含主内容和侧边栏 */
  .main-container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.blog-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 15px;
}

.blog-header {
    padding: 30px 40px;
    border-bottom: 1px solid #eee;
}

.blog-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.blog-meta {
    display: flex;
    align-items: center;
    color: #888;
    font-size: 14px;
}

.author-info {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 1px solid var(--light-gray)
}

.post-date, .read-time {
    margin-left: 20px;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.blog-body {
    padding: 40px;
}

.blog-text p {
    margin-bottom: 20px;
    color: #444;
}

.blog-text h2 {
    margin: 30px 0 15px;
    font-size: 26px;
    color: #222;
}

.blog-text img {
    max-width: 100%;
    border-radius: 5px;
    margin: 20px 0;
}

blockquote {
    border-left: 4px solid #1890ff;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

/* 标签 */
.tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
}

.tag {
    background: #f0f2f5;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 10px;
    color: #666;
    transition: background 0.3s;
}

.tag:hover {
    background: #e0e3e9;
}

/* 分享和互动 */
.interaction {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.share-buttons {
    display: flex;
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.share-button:hover {
    background: #e6e6e6;
}

.like-button {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.like-count {
    margin-left: 8px;
    font-weight: 500;
}

/* 作者介绍 */
.author-section {
    margin-top: 50px;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
}

.author-large-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 25px;
}

.author-details h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.author-bio {
    color: #666;
    margin-bottom: 15px;
}

.follow-button {
    background: #1890ff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.follow-button:hover {
    background: #0c7cd5;
}

/* 评论区 */
.comments-section {
    margin-top: 50px;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.comments-header {
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 600;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
    font-family: inherit;
}

.comment-form button {
    background: #1890ff;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.comment-form button:hover {
    background: #0c7cd5;
}

.comment {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.comment-author-name {
    font-weight: 600;
}

.comment-date {
    color: #999;
    font-size: 14px;
}

.comment-body {
    color: #444;
}

/* 侧边栏样式 */
.sidebar {
    margin-bottom: 15px;
}
.sidebar-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #222;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #1890ff;
}

.popular-post {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
}

.popular-post-info {
    flex: 1;
}

.popular-post-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.popular-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.popular-post-title a:hover {
    color: #1890ff;
}

.post-meta {
    color: #999;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.post-meta span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.post-meta svg {
    margin-right: 5px;
}

/* 分类云 */
.categories-cloud {
    display: flex;
    flex-wrap: wrap;
}

.category-tag {
    margin: 0 8px 10px 0;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.category-tag:hover {
    background: #1890ff;
    color: white;
}

/* 订阅区域 */
.subscribe-form {
    margin-top: 15px;
}

.subscribe-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-family: inherit;
}

.subscribe-button {
    width: 100%;
    background: #1890ff;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.subscribe-button:hover {
    background: #0c7cd5;
}
 /* 响应式设计 */
 @media (max-width: 1100px) {
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .main-content {
        order: 1;
        flex-basis: auto;
    }
}

@media (max-width: 768px) {
    
    .blog-title {
        font-size: 28px;
    }
    
    .featured-image {
        height: 250px;
    }
    
    .blog-header, .blog-body {
        padding: 20px;
    }
    
    .author-section {
        flex-direction: column;
        text-align: center;
    }
    
    .author-large-avatar {
        margin: 0 auto 20px;
    }
}