
/* =========================================
   3. 文章详情页专用样式
   ========================================= */
.page-wrapper { padding-top: 70px; }
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

/* 面包屑 */
.breadcrumb { margin-bottom: 30px; font-size: 0.9rem; color: #888; }
.breadcrumb a { color: #666; margin-right: 5px; }
.breadcrumb a:hover { color: var(--primary-blue); text-decoration: underline; }
.breadcrumb .current { color: var(--primary-green); font-weight: bold; }

/* 文章头部 */
.article-header { margin-bottom: 40px; border-bottom: 1px solid #ddd; padding-bottom: 30px; }
.article-tag {
    display: inline-block; background: var(--accent-gold); color: white;
    padding: 4px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; margin-bottom: 15px;
}
.article-title {
    font-family: var(--font-serif); font-size: 2.6rem; color: var(--primary-blue);
    line-height: 1.3; margin-bottom: 20px; font-weight: bold;
}
.article-meta {
    display: flex; gap: 30px; color: #888; font-size: 0.9rem; align-items: center; flex-wrap: wrap;
}
.meta-item { display: flex; align-items: center; gap: 5px; }

/* 布局容器 */
.article-layout { display: grid; grid-template-columns: 2.5fr 1fr; gap: 50px; }

/* 左侧：正文 */
.article-body { font-size: 1.15rem; color: #333; line-height: 1.9; }

/* 摘要框 */
.article-abstract {
    background: #fff; border: 1px solid #eee; border-left: 5px solid var(--accent-gold);
    padding: 25px; margin-bottom: 40px; border-radius: 4px; color: #555; font-style: italic;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.article-body h2 {
    font-family: var(--font-serif); font-size: 1.8rem; color: var(--primary-blue);
    margin: 50px 0 25px; font-weight: bold; display: flex; align-items: center; gap: 10px;
}
.article-body h2::before { content: ''; display: block; width: 8px; height: 24px; background: var(--primary-green); }

.article-body p { margin-bottom: 25px; text-align: justify; }

/* 古文引用样式 */
.classic-quote-box {
    background: #F4F4F4; padding: 30px; margin: 30px 0; border-radius: 8px;
    display: flex; gap: 30px; align-items: flex-start;
}
.classic-text {
    writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 4px;
    font-family: "Kaiti", "STKaiti", serif; font-size: 1.4rem; color: var(--text-main);
    font-weight: bold; height: 180px; border-left: 1px solid #ccc; padding-left: 15px;
    flex-shrink: 0;
}
.classic-explain { flex: 1; }
.classic-explain h4 { color: var(--accent-gold); margin-bottom: 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.classic-explain p { font-size: 0.95rem; color: #666; line-height: 1.7; margin-bottom: 0; }

/* 图片与图注 */
.article-body img {
    width: 100%; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.img-caption { font-size: 0.85rem; color: #888; margin-top: 10px; display: block; text-align: center; font-style: italic; }

/* 底部互动 */
.article-footer {
    margin-top: 60px; padding-top: 30px; border-top: 1px solid #ddd;
    display: flex; justify-content: space-between; align-items: center;
}
.tag-btn {
    background: white; border: 1px solid #ddd; color: #666; padding: 5px 15px; border-radius: 20px;
    font-size: 0.85rem; text-decoration: none; transition: 0.3s; margin-right: 10px;
}
.tag-btn:hover { border-color: var(--primary-green); color: var(--primary-green); }

/* 右侧：侧边栏 */
.sidebar { position: sticky; top: 100px; }
.widget { background: white; padding: 25px; border-radius: 8px; border: 1px solid #eee; margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.widget-title { font-size: 1.1rem; font-weight: bold; color: var(--primary-blue); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-gold); }

.related-item { display: flex; gap: 15px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed #eee; }
.related-item:last-child { border: none; }
.related-img { width: 70px; height: 70px; border-radius: 4px; object-fit: cover; background: #ddd; }
.related-info h4 { font-size: 0.9rem; line-height: 1.4; margin-bottom: 5px; }
.related-info h4 a { color: var(--text-main); }
.related-info h4 a:hover { color: var(--primary-blue); }

.btn-book {
    display: block; background: var(--primary-blue); color: white; padding: 12px;
    border-radius: 6px; font-weight: bold; margin-top: 15px; text-decoration: none; transition: 0.3s; text-align: center;
}
.btn-book:hover { background: #2c3e50; }

@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .classic-quote-box { flex-direction: column; height: auto; }
    .classic-text { writing-mode: horizontal-tb; height: auto; border-left: none; border-bottom: 1px solid #ccc; padding-left: 0; padding-bottom: 15px; width: 100%; text-align: center; }
}
@media (max-width: 768px) {
    .article-title { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
