/* 保险行业知识库 - 自定义样式 */

/* 卡片悬浮效果 */
.hover-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

/* 文章内容样式 */
.article-content h2 {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.3em;
}
.article-content table {
    border-collapse: collapse;
}
.article-content table th,
.article-content table td {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
}
.article-content table thead {
    background-color: #f8f9fa;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

/* 阅读进度条 */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ffc107, #ff6b35);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    .article-content {
        font-size: 0.95rem !important;
    }
    footer .row > div {
        margin-bottom: 1rem;
    }
}

/* 合作方链接悬浮效果 */
footer a.text-muted:hover {
    color: #ffc107 !important;
    transition: color 0.2s;
}
