/* ===== 文章详情页样式 ===== */

/* --- 1. 文章主体 --- */
.dt-wrapper { padding: 30px 0 60px; }

/* 面包屑 */
.dt-breadcrumb { font-size: 13px; color: #999; margin-bottom: 20px; }
.dt-breadcrumb span { margin: 0 6px; }
.dt-breadcrumb a { color: #999; transition: color 0.2s; }
.dt-breadcrumb a:hover { color: #2b1ee0; }

/* 文章头部信息 */
.dt-article-header { margin-bottom: 30px; }
.dt-article-header h1 { font-size: 36px; font-weight: 700; line-height: 1.3; margin-bottom: 20px; color: #111; }

.dt-article-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 20px; }

.dt-meta-left { display: flex; align-items: center; gap: 20px; font-size: 14px; color: #666; }
.dt-author { display: flex; align-items: center; gap: 8px; }
.dt-author-avatar { width: 32px; height: 32px; background: #2b1ee0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; font-weight: 600; }
.dt-meta-left svg { width: 14px; height: 14px; fill: #999; vertical-align: middle; margin-right: 4px; }

.dt-meta-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dt-tag { background: #f0eeff; color: #2b1ee0; padding: 4px 14px; border-radius: 12px; font-size: 12px; font-weight: 500; }

/* 文章主图 */
.dt-featured-image { margin-bottom: 30px; border-radius: 16px; overflow: hidden; height: 400px; background: #f5f5f5; }
.dt-featured-image img { width: 100%; height: 100%; object-fit: cover; }

/* 布局：左主内容 + 右侧边栏 */
.dt-article-layout { display: flex; gap: 40px; }
.dt-article-content { flex: 1; max-width: 780px; }
.dt-article-sidebar { width: 280px; flex-shrink: 0; }

/* 正文样式 */
.dt-article-body p { font-size: 16px; color: #444; margin-bottom: 20px; line-height: 1.8; }
.dt-article-body h2 { font-size: 24px; font-weight: 700; margin: 40px 0 15px; color: #111; }
.dt-article-body h3 { font-size: 18px; font-weight: 600; margin: 30px 0 10px; color: #111; }
.dt-article-body ul { margin-bottom: 20px; padding-left: 20px; }
.dt-article-body ul li { list-style: disc; font-size: 15px; color: #555; margin-bottom: 8px; line-height: 1.7; }
.dt-article-body ul li strong { color: #111; }
.dt-article-body img { max-width: 100%; border-radius: 8px; margin: 10px 0; cursor: zoom-in; transition: opacity 0.2s; }
.dt-article-body img:hover { opacity: 0.85; }

/* --- 2. 侧边栏 --- */
.dt-sidebar-widget { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 24px; border: 1px solid #f0f0f0; }
.dt-widget-title { font-size: 14px; font-weight: 700; color: #333; margin-bottom: 12px; }

.dt-share-box { display: flex; gap: 12px; }
.dt-share-icon { width: 36px; height: 36px; border-radius: 50%; background: #f5f5f5; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #666; font-size: 14px; transition: 0.3s; text-decoration: none; }
.dt-share-wechat:hover { background: #07c160; color: #fff; }
.dt-share-weibo:hover { background: #e6162d; color: #fff; }
.dt-share-qq:hover { background: #12b7f5; color: #fff; }
.dt-share-link:hover { background: #2b1ee0; color: #fff; }

/* 微信二维码弹窗 */
.dt-qr-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 10000; justify-content: center; align-items: center; }
.dt-qr-modal-content { background: #fff; border-radius: 16px; padding: 30px; text-align: center; position: relative; }
.dt-qr-modal-content p { font-size: 14px; color: #666; margin-top: 12px; }
.dt-qr-close { position: absolute; top: -12px; right: -12px; background: #fff; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; color: #999; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

/* 图片放大弹窗 */
.dt-image-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 10000; justify-content: center; align-items: center; }
.dt-image-modal img { max-width: 90%; max-height: 90%; border-radius: 8px; object-fit: contain; }
.dt-image-modal-close { position: fixed; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; z-index: 10001; line-height: 1; }

.dt-tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.dt-tags-cloud a { background: #f5f5f5; padding: 4px 12px; border-radius: 12px; font-size: 12px; color: #555; cursor: pointer; transition: 0.2s; text-decoration: none; }
.dt-tags-cloud a:hover { background: #f0eeff; color: #2b1ee0; }

/* --- 3. 推荐文章 --- */
.dt-related-section { margin-top: 60px; border-top: 1px solid #eee; padding-top: 40px; }
.dt-related-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dt-related-header h3 { font-size: 20px; font-weight: 700; }
.dt-related-header a { font-size: 14px; color: #2b1ee0; font-weight: 500; }
.dt-related-header a:hover { text-decoration: underline; }

.dt-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dt-rel-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #f0f0f0; transition: 0.3s; }
.dt-rel-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.04); }
.dt-rel-img { height: 160px; background: #f5f5f5; overflow: hidden; }
.dt-rel-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.dt-rel-card:hover .dt-rel-img img { transform: scale(1.05); }
.dt-rel-body { padding: 16px 20px 20px; }
.dt-rel-tag { display: inline-block; background: #f0eeff; color: #2b1ee0; font-size: 12px; padding: 2px 10px; border-radius: 4px; margin-bottom: 8px; font-weight: 500; }
.dt-rel-body h4 { font-size: 15px; font-weight: 600; margin-bottom: 12px; line-height: 1.4; }
.dt-rel-body h4 a { color: #111; transition: color 0.2s; }
.dt-rel-body h4 a:hover { color: #2b1ee0; }
.dt-rel-meta { font-size: 12px; color: #999; display: flex; gap: 16px; }

/* --- 4. CTA --- */
.dt-cta-section { padding: 0 0 80px; }
.dt-cta-wrap { background: #2b1ee0; border-radius: 24px; padding: 40px; display: flex; justify-content: space-between; align-items: center; color: #fff; flex-wrap: wrap; gap: 20px; }
.dt-cta-text { flex: 1; }
.dt-cta-text h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.dt-cta-text p { opacity: 0.8; font-size: 14px; }
.dt-cta-actions .btn { padding: 12px 28px; font-size: 14px; border-radius: 8px; background: #fff; color: #2b1ee0; }
.dt-cta-actions .btn:hover { transform: translateY(-2px); }

/* --- 响应式 --- */
@media (max-width: 992px) {
    .dt-article-layout { flex-direction: column; }
    .dt-article-sidebar { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .dt-related-grid { grid-template-columns: 1fr 1fr; }
    .dt-cta-wrap { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .dt-article-header h1 { font-size: 24px; }
    .dt-article-meta { align-items: flex-start; }
    .dt-author-avatar { width: 28px; height: 28px; font-size: 12px; }
    .dt-meta-left { flex-wrap: wrap; gap: 10px; font-size: 12px; }
    .dt-featured-image { height: 200px; }
    .dt-article-body p { font-size: 14px; line-height: 1.7; }
    .dt-article-body h2 { font-size: 19px; }
    .dt-article-body h3 { font-size: 16px; }
    .dt-article-body ul li { font-size: 14px; }
    .dt-article-body img { width: 100%; }
    .dt-breadcrumb { font-size: 12px; }
    .dt-share-box { gap: 8px; }
    .dt-share-icon { width: 32px; height: 32px; }
    .dt-related-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .dt-rel-img { height: 130px; }
    .dt-rel-body { padding: 14px; }
    .dt-rel-body h4 { font-size: 14px; }
    .dt-related-header h3 { font-size: 18px; }
    .dt-related-header a { font-size: 13px; }
    .dt-cta-wrap { padding: 24px 18px; }
    .dt-cta-text h3 { font-size: 19px; }
}

@media (max-width: 576px) {
    .dt-article-header h1 { font-size: 20px; }
    .dt-article-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
    .dt-related-grid { grid-template-columns: 1fr; }
    .dt-article-sidebar { grid-template-columns: 1fr; }
    .dt-cta-actions { width: 100%; }
    .dt-cta-actions .btn { width: 100%; text-align: center; }
    .dt-article-body p { font-size: 13px; }
    .dt-article-body h2 { font-size: 18px; }
    .dt-rel-body h4 { font-size: 14px; }
    .dt-rel-img { height: 140px; }
    .dt-wrapper { padding: 20px 0 40px; }
}
