.page-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-main {
    background-color: white;
    padding: 40px 40px 40px 40px; /* 上右下左 - 减小上部内边距 */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 文章标题区域 - 减小上部间距 */
.article-header {
    text-align: center;
    margin-top: 0; /* 确保没有顶部外边距 */
    margin-bottom: 20px; /* 保持底部间距适中 */
    width: 100%;
    padding-top: 0; /* 确保没有顶部内边距 */
}

/* 标题样式 - 单行居中显示 */
.article-header h1 {
    font-size: 28px;
    color: var(--primary-dark);
    margin-top: 0; /* 移除顶部外边距 */
    margin-bottom: 10px; /* 保持与元数据间的间距 */
    line-height: 1.3;
    text-align: center;
    width: 100%;
    white-space: normal;
    display: block;
}

/* 作者、日期、人气信息 - 另起一行居中显示 */
.article-meta {
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px; /* 与正文的间距 */
    font-size: 14px;
    flex-wrap: nowrap;
    text-align: center;
    width: 100%;
}

.article-content {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-top: 10px; /* 与元数据的间距 */
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content h3 {
    color: var(--primary-dark);
    margin: 25px 0 15px;
    font-size: 18px;
}

.article-content h2 {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
    margin: 30px 0 20px;
    font-size: 20px;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content-foot {
    text-align: center;
    font-weight: bold;
    color: red;
    margin: 30px 0 15px;
}

.article-share-section {
    background-color: var(--bg-light);
    padding: 30px 0;
    margin-top: 30px;
}

.share-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.share-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.share-tag {
    background-color: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    transition: background-color 0.3s ease;
    margin-bottom: 5px;
}

.share-tag:hover {
    background-color: var(--primary-dark);
}

.share-platforms {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.share-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
    margin-bottom: 10px;
}

.share-platform:hover {
    transform: translateY(-5px);
}

.platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.platform-name {
    font-size: 12px;
    color: var(--text-secondary);
}

.wechat { background-color: #07c160; }
.weibo { background-color: #ff5c5c; }
.x { background-color: #000; }
.qq { background-color: #12b7f5; }
.douyin { background-color: #000; }
.xiaohongshu { background-color: #ff2442; }
.zhihu { background-color: #0084ff; }
.bilibili { background-color: #fb7299; }

.sidebar {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 18px;
}

.news-list .news-item {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.news-item a:hover {
    color: var(--primary);
}

.article-image {
    margin: 30px 0;
    text-align: center;
}

.article-image svg {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-caption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .page-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .article-main {
        padding: 25px 25px 25px 25px;
    }

    .article-header h1 {
        font-size: 24px;
    }
    
    .article-meta {
        gap: 15px;
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    .share-platforms {
        gap: 15px;
    }
    
    .platform-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .article-main {
        padding: 15px 15px 20px 15px; /* 进一步减小顶部内边距 */
    }
    
    .article-header h1 {
        font-size: 22px;
    }
    
    .article-meta {
        gap: 10px;
        justify-content: space-around;
    }
    
    .article-content {
        font-size: 15px;
    }
    
    .article-content h2 {
        font-size: 18px;
    }
    
    .article-content h3 {
        font-size: 16px;
    }
    
    .share-tags {
        gap: 8px;
    }
    
    .share-tag {
        padding: 5px 10px;
        font-size: 12px;
    }
}