/* =========================================
   【文章详情页】专属 CSS (Article Specific)
   维护记录：已彻底清空导航、弹窗等全局冗余代码，完美适配移动端
========================================= */

/* --- 1. 极简极客风面包屑 --- */
.article-breadcrumb-wrap { background-color: var(--white, #ffffff); border-bottom: 1px solid var(--border-color, #e2e8f0); padding: 15px 0; }
.article-breadcrumb { font-size: 0.95rem; color: var(--text-light, #64748b); }
.article-breadcrumb a { color: var(--text-main, #1e293b); font-weight: 500; transition: var(--transition, all 0.3s ease); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--auth-blue, #1e3a8a); }
.article-breadcrumb span { color: var(--text-light, #64748b); }

/* --- 2. 页面主体排版 --- */
.article-page-content { padding: 50px 0 100px; background-color: var(--bg-gray, #f1f5f9); }
.blog-layout-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }

/* 文章白板容器 */
.article-main-body { background: var(--white, #ffffff); border-radius: 8px; padding: 50px 60px; box-shadow: 0 5px 15px rgba(0,0,0,0.02); border: 1px solid var(--border-color, #e2e8f0); }

/* 文章头部信息 */
.article-header { margin-bottom: 30px; border-bottom: 1px dashed var(--border-color, #e2e8f0); padding-bottom: 25px; }
.article-title { font-size: 2.2rem; color: var(--auth-blue, #1e3a8a); font-weight: 900; margin-top: 0; margin-bottom: 15px; line-height: 1.4; }
.article-meta { display: flex; gap: 20px; color: #94a3b8; font-size: 0.95rem; flex-wrap: wrap; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta i { color: var(--eco-green, #059669); }

/* --- 3. 【核心】：大厂杂志风富文本格式化 --- */
.cms-content { font-size: 1.1rem; line-height: 1.9; color: var(--text-main, #1e293b); font-family: 'Noto Sans SC', sans-serif; }
.cms-content p { margin-bottom: 25px; }
.cms-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 25px auto; box-shadow: 0 5px 20px rgba(0,0,0,0.05); display: block; }
.cms-content h2 { font-size: 1.5rem; color: var(--auth-blue, #1e3a8a); font-weight: 900; margin: 40px 0 20px; padding-left: 15px; position: relative; }
.cms-content h2::before { content: ''; position: absolute; left: 0; top: 15%; height: 70%; width: 5px; background: var(--warn-yellow, #f59e0b); border-radius: 3px; }
.cms-content h3 { font-size: 1.3rem; color: var(--text-main, #1e293b); font-weight: 800; margin: 30px 0 15px; }
.cms-content ul, .cms-content ol { margin-bottom: 25px; padding-left: 25px; }
.cms-content li { margin-bottom: 10px; }
.cms-content blockquote { border-left: 5px solid var(--warn-yellow, #f59e0b); background: #f8fafc; padding: 20px 25px; margin: 35px 0; border-radius: 0 8px 8px 0; color: var(--text-light, #64748b); font-size: 1.05rem; }

/* --- 4. 文章标签 (Tags) --- */
.article-tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 35px; }
.article-tags i { color: var(--warn-yellow, #f59e0b); font-size: 1.2rem; margin-right: 5px; }
.article-tags a { padding: 6px 16px; background: #f8fafc; color: var(--auth-blue, #1e3a8a); font-size: 0.85rem; font-weight: 700; border-radius: 4px; transition: var(--transition, all 0.3s ease); border: 1px solid var(--border-color, #e2e8f0); text-decoration: none; }
.article-tags a:hover { background: var(--auth-blue, #1e3a8a); color: var(--white, #ffffff); border-color: var(--auth-blue, #1e3a8a); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(30, 58, 138, 0.15); }

/* --- 5. 上一篇下一篇导航 --- */
.article-footer { margin-top: 50px; border-top: 1px solid var(--border-color, #e2e8f0); padding-top: 35px; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.article-nav a, .article-nav div { display: flex; flex-direction: column; padding: 20px 25px; border-radius: 8px; transition: var(--transition, all 0.3s ease); text-decoration: none; }
.article-nav a { background: var(--white, #ffffff); border: 1px solid var(--border-color, #e2e8f0); }
.article-nav a:hover { border-color: var(--auth-blue, #1e3a8a); box-shadow: 0 10px 30px rgba(30, 58, 138, 0.08); transform: translateY(-3px); }
.article-nav div.disabled-nav { background: #f8fafc; border: 1px dashed var(--border-color, #e2e8f0); opacity: 0.6; cursor: not-allowed; }
.nav-label { font-size: 0.85rem; color: var(--text-light, #64748b); margin-bottom: 8px; font-weight: 500; }
.nav-title { font-weight: 700; color: var(--text-main, #1e293b); font-size: 1.05rem; line-height: 1.4; transition: color 0.3s; }
.article-nav a:hover .nav-title { color: var(--auth-blue, #1e3a8a); }
.nav-next, .nav-next .nav-label { text-align: right; }

/* SDCMS 分页兼容 */
.pagination ul { display: flex; justify-content: center; gap: 10px; margin-top: 40px; flex-wrap: wrap; list-style: none; padding: 0; }
.pagination li { display: block; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 15px; background: var(--white, #ffffff); border: 1px solid var(--border-color, #e2e8f0); border-radius: 4px; color: var(--text-main, #1e293b); font-weight: 700; transition: var(--transition, all 0.3s ease); text-decoration: none; }
.pagination a:hover { background: #f8fafc; color: var(--auth-blue, #1e3a8a); border-color: var(--auth-blue, #1e3a8a); }
.pagination .active, .pagination .active a, .pagination .current, .pagination .current a { background: var(--auth-blue, #1e3a8a) !important; color: var(--white, #ffffff) !important; border-color: var(--auth-blue, #1e3a8a) !important; }

/* --- 6. 右侧边栏及内部组件 --- */
.blog-sidebar { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 30px; }
.sidebar-widget { background: var(--white, #ffffff); border-radius: 8px; padding: 30px; border: 1px solid var(--border-color, #e2e8f0); box-shadow: 0 5px 15px rgba(0,0,0,0.02); }

/* 侧边栏转化卡片重构 */
.widget-cta { background-image: linear-gradient(135deg, var(--auth-blue-dark, #172554) 0%, var(--auth-blue, #1e3a8a) 100%); border: none; padding: 40px 25px; text-align: center; }
.widget-cta-badge { background-color: rgba(245,158,11,0.2); color: var(--warn-yellow, #f59e0b); display: inline-block; padding: 4px 12px; border-radius: 4px; font-size: 0.85rem; font-weight: 700; margin-bottom: 15px; }
.widget-cta h3 { color: var(--white, #ffffff); font-size: 1.3rem; margin-top: 0; margin-bottom: 15px; line-height: 1.4; }
.widget-cta p { color: #cbd5e1; font-size: 0.9rem; margin-bottom: 20px; line-height: 1.6; }

.widget-title { font-size: 1.2rem; color: var(--auth-blue, #1e3a8a); font-weight: 900; margin-top: 0; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--border-color, #e2e8f0); position: relative; }
.widget-title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 40px; height: 2px; background: var(--warn-yellow, #f59e0b); }

.hot-posts-list { list-style: none; margin: 0; padding: 0; }
.hot-posts-list li { display: flex; gap: 15px; margin-bottom: 15px; border-bottom: 1px dashed var(--border-color, #e2e8f0); padding-bottom: 15px; }
.hot-posts-list li:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.hot-rank { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: #e2e8f0; color: var(--text-light, #64748b); font-weight: 900; border-radius: 4px; font-size: 0.85rem; flex-shrink: 0; }
.hot-rank.rank-top { background: var(--warn-yellow, #f59e0b); color: var(--white, #ffffff); }
.hot-posts-list a { color: var(--text-main, #1e293b); font-weight: 500; font-size: 0.95rem; line-height: 1.5; transition: color 0.3s; display: block; text-decoration: none; }
.hot-posts-list a:hover { color: var(--auth-blue, #1e3a8a); }

.mini-product-card { display: flex; gap: 15px; margin-bottom: 20px; }
.mini-product-card:last-child { margin-bottom: 0; }
.mini-p-img { width: 80px; height: 80px; border-radius: 6px; flex-shrink: 0; object-fit: cover; object-position: center; background-color: #f1f5f9; display: block; border: none; }
.mini-p-info { display: flex; flex-direction: column; justify-content: center; }
.mini-p-info h4 { margin: 0 0 5px 0; }
.mini-p-info h4 a { font-size: 0.95rem; color: var(--text-main, #1e293b); font-weight: 700; line-height: 1.4; display: block; text-decoration: none; }
.mini-p-info h4 a:hover { color: var(--auth-blue, #1e3a8a); }
.mini-p-info .btn-text { font-size: 0.85rem; color: var(--auth-blue, #1e3a8a); font-weight: 700; text-decoration: none; margin-top: auto; }
.mini-p-info .btn-text:hover { color: var(--warn-yellow-hover, #d97706); }

/* =========================================
   7. 移动端响应式极致优化
========================================= */
@media (max-width: 1024px) {
    .blog-layout-grid { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 768px) {
    .article-page-content { padding: 30px 0 60px; }
    .article-main-body { padding: 25px 20px; }
    .article-title { font-size: 1.6rem; }
    
    /* 手机端上一篇下一篇强行上下堆叠，防止文字挤压 */
    .article-nav { grid-template-columns: 1fr; gap: 15px; }
    .nav-next, .nav-next .nav-label { text-align: left; }
    
    .blog-sidebar { grid-template-columns: 1fr; }
}