/* ============================================
   龙基律所 · 文章页专属样式
   ============================================ */

/* 阅读进度条 */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #1976D2, #64B5F6);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 1px 4px rgba(25,118,210,0.3);
}

/* 文章元信息栏 */
.article-meta-bar {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}
.article-meta-bar .badge {
    font-size: 0.8rem;
    padding: 0.4em 0.8em;
}
.article-meta-bar i {
    opacity: 0.7;
}

/* 文章主体容器 */
.main-article {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

/* 特色图片 */
.featured-image img {
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 核心摘要块 */
.article-summary {
    background: linear-gradient(135deg, #e3f2fd, #f5f9ff);
    border-left: 4px solid #1976D2;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.8rem;
}
.summary-label {
    font-weight: 700;
    color: #1976D2;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.summary-text {
    color: #444;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 0;
    text-indent: 0 !important;
}

/* 目录导航 */
.article-toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
}
.toc-header {
    padding: 0.9rem 1.2rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    background: #f1f3f5;
    transition: background 0.2s;
}
.toc-header:hover {
    background: #e9ecef;
}
.toc-body {
    padding: 0.5rem 1.2rem 1rem;
    max-height: 500px;
    overflow-y: auto;
}
.toc-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.toc-body li {
    padding: 0.3rem 0;
}
.toc-body li a {
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}
.toc-body li a:hover {
    color: #1976D2;
    background: rgba(25,118,210,0.08);
}
.toc-body .toc-h2 {
    font-weight: 500;
}
.toc-body .toc-h3 {
    padding-left: 1.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

/* ===== 正文排版 ===== */
.article-body {
    line-height: 2;
    color: #2c3e50;
}
.article-body p {
    text-indent: 2em;
    margin-bottom: 0.9em;
    font-size: 1.05rem;
    line-height: 2;
}
.article-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a3e72;
    margin-top: 2em;
    margin-bottom: 0.8em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid #e8edf3;
    text-indent: 0;
}
.article-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    text-indent: 0;
}
.article-body strong {
    color: #1a3e72;
}
.article-body ul, .article-body ol {
    margin: 0.8em 0 0.8em 2em;
    padding: 0;
}
.article-body li {
    line-height: 2;
    margin-bottom: 0.3em;
    text-indent: 0;
}
.article-body img {
    max-width: 100%;
    height: auto;
    margin: 1.2em auto;
    border-radius: 8px;
    display: block;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}
.article-body blockquote {
    border-left: 4px solid #1976D2;
    background: #f8f9fa;
    padding: 0.8rem 1.2rem;
    margin: 1em 0;
    border-radius: 0 8px 8px 0;
    color: #555;
}
.article-body a {
    color: #1976D2;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-body a:hover {
    color: #0D47A1;
}

/* ===== 特殊板块样式 ===== */
/* FAQ 板块 */
.article-body:not(.no-faq-style) h2:has(+ h3:contains("FAQ")),
.article-body:not(.no-faq-style) h2:has(+ h3:contains("常见问题")),
.article-body:not(.no-faq-style) h3:contains("FAQ"),
.article-body:not(.no-faq-style) h3:contains("常见问题") {
    color: #1565C0;
    border-bottom-color: #1565C0;
}
.article-body h3:contains("问题") ~ p {
    padding-left: 0 !important;
}
/* 用JS处理的FAQ样式 */
.faq-block {
    background: #f0f7ff;
    border: 1px solid #d0e4f7;
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin: 1.5em 0;
}
.faq-block h3 {
    margin-top: 0.5em !important;
    color: #1565C0 !important;
    font-size: 1.05rem !important;
}
.faq-block p {
    margin-bottom: 0.5em !important;
}

/* 律师建议块 */
.lawyer-advice-block {
    background: linear-gradient(135deg, #fff8e1, #fffdf0);
    border: 1px solid #ffe082;
    border-left: 4px solid #ff8f00;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin: 1.5em 0;
}
.lawyer-advice-block:before {
    content: "⚖️ 律师建议";
    display: block;
    font-weight: 700;
    color: #e65100;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.lawyer-advice-block p {
    text-indent: 0 !important;
    margin-bottom: 0.3em !important;
    color: #555 !important;
}

/* 免责声明块 */
.disclaimer-block {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin: 1.5em 0;
    font-size: 0.85rem;
    color: #888;
}
.disclaimer-block:before {
    content: "⚠️ 免责声明";
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.disclaimer-block p {
    text-indent: 0 !important;
    margin-bottom: 0.2em !important;
    color: #888 !important;
    font-size: 0.85rem !important;
}

/* 标签区 */
.article-tags {
    border-top-color: #e9ecef !important;
}
.tag-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}
.tag-item {
    display: inline-block;
    background: #e3f2fd;
    color: #1976D2;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.82rem;
    margin: 0.2rem 0.3rem;
    transition: all 0.2s;
    text-decoration: none;
}
.tag-item:hover {
    background: #1976D2;
    color: #fff;
    transform: translateY(-1px);
}

/* 分享按钮 */
.article-share {
    padding: 1rem 0;
}
.share-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}
.btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: all 0.3s;
    color: #fff;
    text-decoration: none;
    margin: 0 0.2rem;
}
.btn-share:hover {
    transform: translateY(-2px);
    color: #fff;
}
.btn-share-wechat { background: #07C160; }
.btn-share-wechat:hover { background: #06AD56; }
.btn-share-weibo { background: #E6162D; }
.btn-share-weibo:hover { background: #C81023; }
.btn-share-link { background: #6c757d; }
.btn-share-link:hover { background: #5a6268; }

/* 复制链接提示 */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.copy-toast.show {
    opacity: 1;
}

/* 律师咨询CTA */
.consult-cta {
    background: linear-gradient(135deg, #1976D2, #0D47A1);
    border-radius: 12px;
    padding: 1.8rem 2rem;
    color: #fff;
}
.consult-cta h5 {
    color: #fff !important;
}
.consult-cta .btn-light {
    color: #0D47A1;
    font-weight: 600;
}

/* 上下篇导航 */
.article-prevnext {
    margin-top: 2rem !important;
}
.prevnext-card {
    padding: 1.2rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s;
    height: 100%;
}
.prevnext-card:hover {
    border-color: #1976D2;
    background: #f8f9ff;
    transform: translateY(-2px);
}
.prev-card { border-left: 3px solid #1976D2; }
.next-card { border-right: 3px solid #1976D2; text-align: right; }
.prevnext-label {
    display: block;
    font-size: 0.8rem;
    color: #1976D2;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.prevnext-title {
    display: block;
    font-size: 0.95rem;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.prevnext-card:hover .prevnext-title {
    color: #1976D2;
}

/* 相关文章 */
.related-articles {
    padding-top: 1rem;
}
.section-title-sm {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a3e72;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}
.related-card {
    display: flex;
    gap: 0.8rem;
    padding: 0.8rem;
    border: 1px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
    height: 100%;
    background: #fff;
}
.related-card:hover {
    border-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25,118,210,0.1);
}
.related-img {
    width: 80px;
    min-width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
}
.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-info h6 {
    font-size: 0.88rem;
    color: #333;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.related-card:hover .related-info h6 {
    color: #1976D2;
}
.related-info small {
    font-size: 0.75rem;
}

/* ===== 侧边栏 ===== */
.sidebar-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.sidebar-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0.8rem 1.2rem;
}
.sidebar-card .card-header h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a3e72;
}
.sidebar-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a3e72;
}

/* 搜索 */
.search-form .input-group .form-control {
    border-radius: 8px 0 0 8px;
    border-right: none;
}
.search-form .input-group .btn {
    border-radius: 0 8px 8px 0;
}

/* 热门文章 */
.hot-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hot-article-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: all 0.2s;
}
.hot-article-item:last-child {
    border-bottom: none;
}
.hot-article-item:hover {
    background: #f8f9ff;
}
.hot-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    margin-right: 0.7rem;
    flex-shrink: 0;
}
.hot-index-1, .hot-index-2, .hot-index-3 {
    background: #e53935;
}
.hot-index-4, .hot-index-5 {
    background: #ff8f00;
}
.hot-index-6, .hot-index-7, .hot-index-8 {
    background: #78909c;
}
.hot-title {
    flex: 1;
    font-size: 0.85rem;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hot-article-item:hover .hot-title {
    color: #1976D2;
}
.hot-views {
    font-size: 0.72rem;
    color: #999;
    margin-left: 0.5rem;
    white-space: nowrap;
}

/* 分类导航 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.category-item:last-child {
    border-bottom: none;
}
.category-item:hover {
    background: #f8f9ff;
    color: #1976D2;
    padding-left: 1.5rem;
}
.category-item i {
    font-size: 0.75rem;
    color: #ccc;
}
.category-item:hover i {
    color: #1976D2;
}

/* 侧边栏联系我们 */
.sidebar-contact {
    background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
    border-color: #d0dffa;
}
.contact-icon-big {
    width: 60px;
    height: 60px;
    background: #1976D2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.contact-icon-big i {
    font-size: 1.5rem;
    color: #fff;
}

/* 响应式 */
@media (max-width: 992px) {
    .main-article {
        padding: 1.5rem;
    }
}
@media (max-width: 768px) {
    .main-article {
        padding: 1rem;
        border-radius: 8px;
    }
    .article-body p {
        font-size: 1rem;
    }
    .article-body h2 {
        font-size: 1.25rem;
    }
    .article-body h3 {
        font-size: 1.05rem;
    }
    .featured-image img {
        max-height: 250px;
    }
    .related-card {
        flex-direction: column;
    }
    .related-img {
        width: 100%;
        min-width: auto;
        height: 120px;
    }
    .article-meta-bar span {
        display: inline-block;
        margin: 0.2rem 0.3rem !important;
    }
    .consult-cta {
        padding: 1.2rem;
        text-align: center;
    }
    .page-header h1 {
        font-size: 1.6rem;
    }
}
