/* 文章详情页通用样式 */
.sx-container {
    padding: 30px 0;
}

/* 文章主体样式 */
.sx-article {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

/* 文章标题样式 */
.sx-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* 文章元信息样式 */
.sx-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
    color: #666;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.sx-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 书讯信息卡片样式 */
.sx-book-info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.sx-book-info-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.sx-book-cover {
    flex-shrink: 0;
    width: 80px;
    height: 112px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sx-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sx-book-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sx-book-detail-item {
    display: flex;
    align-items: baseline;
    font-size: 0.95rem;
    line-height: 1.6;
}

.sx-book-detail-label {
    font-weight: 500;
    color: #666;
    min-width: 80px;
    flex-shrink: 0;
}

.sx-book-detail-value {
    color: #333;
    flex: 1;
}

/* 文章内容样式 */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* 修改文章内容中段落的样式 */
.article-content p {
    text-align: justify;
    margin-bottom: 0 !important;  /* 移除段落间的外边距 */
}



/* 确保图片周围的间距合适 */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
}

/* 侧边栏样式 */
.sx-sidebar {
    position: sticky;
    top: 20px;
}

.sx-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow: hidden;
}

.sx-widget-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sx-widget-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    color: #333;
}

.sx-widget-icon {
    color: #1e88e5;
}

.sx-widget-content {
    padding: 20px;
}

/* 相关文章列表样式 */
.sx-related-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

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

.sx-related-link {
    display: block;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sx-related-link:hover {
    color: #1e88e5;
    transform: translateX(5px);
}

.sx-related-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.4;
}

.sx-related-meta {
    font-size: 0.85rem;
    color: #666;
}

/* 深色主题适配 */
body.dark-theme .sx-article,
body.dark-theme .sx-widget {
    background: #242424;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark-theme .sx-title {
    color: #e0e0e0;
}

body.dark-theme .sx-meta {
    color: #888;
    border-bottom-color: #333;
}

body.dark-theme .sx-book-info-card {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

body.dark-theme .sx-book-cover {
    background: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .sx-book-detail-label {
    color: #aaa;
}

body.dark-theme .sx-book-detail-value {
    color: #e0e0e0;
}

body.dark-theme .article-content {
    color: #bbb;
}

body.dark-theme .sx-widget-header {
    border-bottom-color: #333;
}

body.dark-theme .sx-widget-title {
    color: #e0e0e0;
}

body.dark-theme .sx-related-item {
    border-bottom-color: #333;
}

body.dark-theme .sx-related-link {
    color: #e0e0e0;
}

body.dark-theme .sx-related-meta {
    color: #888;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sx-article {
        padding: 20px;
    }
    
    .sx-title {
        font-size: 1.5rem;
    }
    
    .sx-meta {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
    }
    
    .sx-meta-item {
        font-size: 0.85rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .sx-book-info-content {
        flex-direction: column;
    }
    
    .sx-book-cover {
        width: 60px;
        height: 84px;
        margin: 0 auto;
    }
    
    .sx-book-details {
        width: 100%;
    }
    
    .sx-book-detail-label {
        min-width: 70px;
    }
} 