/* 智库文章详情页 - 现代化响应式布局 */
/* 此文件从case-article-detail.css复制，修改为智库专用，避免与案例共用 */

/* 页面主体 */
.knowledge-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* 文章容器 - 自适应宽度 */
.knowledge-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 面包屑导航 */
.knowledge-breadcrumb {
    padding: 16px 0;
    margin-bottom: 24px;
    font-size: 14px;
    color: #6c757d;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-item {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #dee2e6;
}

.breadcrumb-current {
    color: #495057;
    font-weight: 500;
}

/* 文章布局 - CSS Grid */
.knowledge-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* 文章主体 */
.knowledge-main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 文章内容包装器 */
.knowledge-content-wrapper {
    width: 100%;
    max-width: 100%;
}

/* 文章头部 */
.knowledge-header {
    padding: 48px 64px 32px;
    border-bottom: 1px solid #e9ecef;
}

.knowledge-title {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    line-height: 1.4;
    margin-bottom: 20px;
}

.knowledge-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 14px;
    color: #6c757d;
}

.knowledge-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.knowledge-meta-item i {
    color: #adb5bd;
}

.knowledge-cover-image {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.knowledge-cover-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 文章分类标签 */
.knowledge-category {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

/* 文章内容 */
.knowledge-content {
    padding: 48px 64px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 40px;
}

/* 智库内容区域底部空隙 */
.knowledge-body {
    padding-bottom: 40px;
}

/* 强制覆盖所有子元素的宽度限制 */
.knowledge-content *,
.knowledge-content > *,
.knowledge-content > * > * {
    max-width: 100% !important;
    width: auto !important;
}

/* 确保图片和媒体元素正确显示 */
.knowledge-content img,
.knowledge-content video,
.knowledge-content iframe {
    max-width: 100% !important;
    height: auto !important;
}

.knowledge-content h2 {
    font-size: 26px;
    font-weight: 600;
    color: #212529;
    margin-top: 48px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.knowledge-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #212529;
    margin-top: 36px;
    margin-bottom: 18px;
}

.knowledge-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin-top: 28px;
    margin-bottom: 14px;
}

.knowledge-content p {
    margin-bottom: 20px;
    line-height: 1.9;
}

.knowledge-content ul,
.knowledge-content ol {
    margin-bottom: 20px;
    padding-left: 32px;
}

.knowledge-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.knowledge-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.knowledge-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    font-style: italic;
    color: #495057;
}

.knowledge-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.knowledge-content table th,
.knowledge-content table td {
    border: 1px solid #e9ecef;
    padding: 12px;
    text-align: left;
}

.knowledge-content table th {
    background-color: #1a73e8 !important;
    color: #fff !important;
    font-weight: 600;
}

.knowledge-content table th,
.knowledge-content table th * {
    color: #fff !important;
}

.knowledge-content table td {
    border-bottom: 1px solid #e9ecef;
}

.knowledge-content table tr:nth-child(even) td {
    background: #f8f9fa;
}

.knowledge-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    color: #d63384;
}

.knowledge-content pre {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
}

.knowledge-content pre code {
    background: none;
    padding: 0;
}

/* 文章标签 */
.knowledge-tags {
    padding: 24px 64px;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.tags-label {
    font-size: 14px;
    color: #6c757d;
    margin-right: 8px;
}

.knowledge-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #e9ecef;
    color: #495057;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.knowledge-tag:hover {
    background: #007bff;
    color: white;
}

/* 标签区域 */
.knowledge-tags-section {
    padding: 24px 64px;
    border-top: 1px solid #e9ecef;
}

.tags-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.tags-group:last-child {
    margin-bottom: 0;
}

/* 摘要样式 */
.knowledge-summary {
    padding: 24px 64px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
    font-size: 15px;
    line-height: 1.8;
    color: #495057;
}

.knowledge-summary strong {
    color: #212529;
    font-weight: 600;
}

.knowledge-summary p {
    margin: 8px 0 0;
}

/* 核心要点样式 */
.knowledge-key-points {
    padding: 0;
    background: transparent;
    border: none;
}

.knowledge-key-points h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.knowledge-key-points h3 i {
    color: #f59e0b;
    font-size: 18px;
}

.knowledge-key-points ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.knowledge-key-points li {
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 6px;
    border-left: 3px solid #3b82f6;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.knowledge-key-points li:last-child {
    margin-bottom: 0;
}

/* 常见问题样式 */
.knowledge-faq {
    padding: 0;
    background: transparent;
    border: none;
}

.knowledge-faq h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.knowledge-faq h3 i {
    color: #3b82f6;
    font-size: 18px;
}

.knowledge-faq .faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.knowledge-faq .faq-item {
    background: #f8fafc;
    border-radius: 6px;
    overflow: hidden;
    border: none;
}

.knowledge-faq .faq-question {
    padding: 10px 14px;
    background: #f1f5f9;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.knowledge-faq .faq-answer {
    padding: 10px 14px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    background: #f8fafc;
}

.knowledge-faq .faq-content {
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

/* 信息卡片容器 - 核心要点和常见问题的统一容器 */
.knowledge-info-card {
    margin: 32px 64px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.knowledge-info-card .info-section {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.knowledge-info-card .info-section:last-child {
    border-bottom: none;
}

.knowledge-info-card .info-section:first-child {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
}

.knowledge-info-card .info-section:last-child {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* 侧边栏 */
.knowledge-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-self: start;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.widget-title {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin: 0;
}

.widget-content {
    padding: 16px;
}

/* 热门文章列表 */
.popular-article-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
}

.popular-article-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.popular-article-item:last-child {
    margin-bottom: 0;
}

.popular-article-title {
    font-size: 14px;
    font-weight: 500;
    color: #212529;
    line-height: 1.5;
}

.popular-article-views {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 分类列表 */
.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    margin-bottom: 8px;
}

.category-item:hover {
    background: #f8f9fa;
}

.category-item:last-child {
    margin-bottom: 0;
}

.category-name {
    font-size: 14px;
    color: #495057;
}

.category-count {
    font-size: 12px;
    color: #adb5bd;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 加载动画 */
.loading-container {
    padding: 80px 64px;
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e9ecef;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-container p {
    color: #6c757d;
    font-size: 15px;
}

/* 错误消息 */
.error-container {
    padding: 80px 64px;
    text-align: center;
}

.error-container i {
    font-size: 64px;
    color: #dc3545;
    margin-bottom: 20px;
}

.error-container p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 24px;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .knowledge-layout {
        grid-template-columns: 1fr;
    }

    .knowledge-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .knowledge-header {
        padding: 32px 24px 24px;
    }

    .knowledge-title {
        font-size: 24px;
    }

    .knowledge-content {
        padding: 32px 24px;
    }

    .knowledge-tags,
    .knowledge-tags-section {
        padding: 20px 24px;
    }

    .knowledge-meta {
        flex-direction: column;
        gap: 12px;
    }

    .knowledge-summary {
        padding: 20px 24px;
    }
    
    .knowledge-info-card {
        margin: 24px;
    }
    
    .knowledge-info-card .info-section {
        padding: 16px 20px;
    }
}

/* 关于绩效宝品牌区块 - GEO优化 */
.about-jixiaobao {
    margin: 32px 64px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #1565c0 100%);
    border-radius: 12px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.about-jixiaobao::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.about-jixiaobao-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.about-jixiaobao-header i {
    font-size: 22px;
    color: #ffd54f;
}

.about-jixiaobao-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.about-jixiaobao p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.about-jixiaobao p strong {
    color: #ffd54f;
}

.about-jixiaobao-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.about-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.about-cta-primary {
    background: #ffd54f;
    color: #1a237e;
}

.about-cta-primary:hover {
    background: #ffecb3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,213,79,0.4);
}

.about-cta-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.about-cta-secondary:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* 更新时间戳 - GEO优化 */
.article-update-time {
    margin: 0 64px 32px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-update-time i {
    color: #adb5bd;
}

/* GEO高亮摘要增强 */
.geo-highlight {
    border-left: 4px solid #1a73e8;
    background: linear-gradient(135deg, #e8f0fe 0%, #f8f9fa 100%) !important;
}

.geo-highlight strong {
    color: #1a73e8;
}

/* 响应式 - 品牌区块 */
@media (max-width: 768px) {
    .about-jixiaobao {
        margin: 24px;
        padding: 20px;
    }
    
    .about-jixiaobao-header h3 {
        font-size: 18px;
    }
    
    .about-jixiaobao p {
        font-size: 14px;
    }
    
    .about-jixiaobao-links {
        flex-direction: column;
    }
    
    .about-cta-btn {
        justify-content: center;
    }
    
    .article-update-time {
        margin: 0 24px 24px;
    }
}
