/**
 * 行业文章详情页样式
 */

/* 页面主容器 */
.blog-detail-page {
    padding-top: 90px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* 两栏布局 */
.blog-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 32px 80px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

/* 左侧边栏 */
.blog-sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 返回链接 */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: rgb(97, 100, 107);
    transition: color 0.2s ease;
    margin-bottom: 4px;
}

.back-link:hover {
    color: var(--color-primary);
}

.back-arrow {
    font-size: 16px;
}

/* 缩略图卡片 - 显示文章封面图片 */
.sidebar-card.thumbnail-card {
    border-radius: 14px;
    overflow: hidden;
    background: #f5f5f5;
}

/* 封面图片样式 */
.card-cover-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    object-fit: cover;
}

/* 封面占位符样式 */
.card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #e8f4fd 0%, #d6ecf9 100%);
    border-radius: 14px;
}

.card-placeholder .placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.card-placeholder .placeholder-text {
    font-size: 14px;
    font-weight: 600;
    color: #0369a1;
}

/* 空内容提示 */
.empty-content {
    color: #999;
    font-size: 15px;
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.card-badge {
    display: inline-block;
    background: #22c55e;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 18px;
    margin-bottom: 12px;
}

.card-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.title-brand {
    font-size: 13px;
    font-weight: 600;
    color: #0284c7;
}

.title-main {
    font-size: 16px;
    font-weight: 700;
    color: #0369a1;
    line-height: 1.3;
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 侧边栏区块 */
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    color: rgb(36, 36, 42);
    margin: 0;
}

/* 目录列表 */
.toc-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.toc-list::-webkit-scrollbar {
    width: 4px;
}

.toc-list::-webkit-scrollbar-track {
    background: transparent;
}

.toc-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.toc-item {
    font-size: 14px;
    color: rgb(97, 100, 107);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.toc-item:hover,
.toc-item.active {
    background: rgba(0, 102, 255, 0.06);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

/* 文章信息 */
.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.meta-tag {
    display: inline-block;
    background: rgba(0, 102, 255, 0.1);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
}

.meta-text {
    font-size: 13px;
    color: rgb(97, 100, 107);
}

/* 作者信息 */
.author-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 13px;
    color: #61646b;
}

.author-role {
    font-size: 13px;
    color: rgb(97, 100, 107);
}

/* ========================================
   右侧文章内容
   ======================================== */
.blog-article {
    min-width: 0;
}

/* 文章标题 */
.article-title {
    font-size: 38px;
    font-weight: 700;
    color: rgb(18, 18, 24);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 28px 0;
}

/* 文章Banner图片 */
.article-banner {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #e8f7ff 0%, #d0efff 40%, #b5e5ff 100%);
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 280px;
}

.banner-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.banner-brand {
    font-size: 18px;
    font-weight: 500;
    color: #0284c7;
}

.banner-title {
    font-size: 36px;
    font-weight: 700;
    color: #0369a1;
    line-height: 1.25;
    margin: 0 0 12px 0;
}

.banner-tag {
    display: inline-block;
    background: #22c55e;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 25px;
    width: fit-content;
}

.banner-right {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: flex-end;
}

.banner-right img {
    width: 100%;
    max-width: 380px;
    height: auto;
}

/* 文章摘要 */
.article-abstract {
    background: #edeef1;
    border: 1px solid #2121211a;
    padding: 24px 28px;
    border-radius: 12px;
    margin-bottom: 36px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}

.article-abstract p {
    font-size: 16px;
    line-height: 1.85;
    color: rgb(36, 36, 42);
    margin: 0;
}

/* 文章正文 */
.article-content {
    font-size: 16px;
    line-height: 1.85;
    color: rgb(36, 36, 42);
}

.lead-text {
    font-size: 16px;
    margin-bottom: 24px;
    color: rgb(54, 54, 60);
}

/* 要点列表 */
.key-points {
    margin: 0 0 36px 0;
    padding-left: 24px;
}

.key-points li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.key-points li strong {
    color: rgb(18, 18, 24);
}

/* 章节标题 */
.chapter-title {
    font-size: 26px;
    font-weight: 700;
    color: rgb(18, 18, 24);
    margin: 48px 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
}

.section-heading {
    font-size: 20px;
    font-weight: 600;
    color: rgb(18, 18, 24);
    margin: 32px 0 16px 0;
}

.chart-label {
    font-size: 15px;
    font-weight: 600;
    color: rgb(97, 100, 107);
    margin: 24px 0 12px 0;
}

/* 引用块 */
.quote-block {
    background: rgb(247, 247, 248);
    border-left: 4px solid #10b981;
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 0 10px 10px 0;
}

.quote-block p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: rgb(54, 54, 60);
}

/* 图片 */
.figure-block {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
}

.figure-block img {
    width: 100%;
    height: auto;
    display: block;
}

/* 产品模块 */
.product-modules {
    margin-top: 32px;
}

.module-category {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 28px 0 16px 0;
}

/* 博客详情页产品卡片 - 使用 hy- 前缀避免与首页冲突 */
.hy-product-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.hy-product-title {
    font-size: 16px;
    font-weight: 600;
    color: rgb(18, 18, 24);
    margin: 0 0 10px 0;
}

.hy-product-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: rgb(97, 100, 107);
    margin-bottom: 8px;
}

.hy-product-industry {
    font-size: 13px;
    color: rgb(97, 100, 107);
    margin: 0 0 10px 0;
}

.hy-product-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgb(54, 54, 60);
    margin: 0 0 12px 0;
}

.hy-product-features {
    background: rgba(0, 102, 255, 0.04);
    border-left: 3px solid var(--color-primary);
    padding: 10px 14px;
    margin: 0;
    border-radius: 0 8px 8px 0;
}

.hy-product-features p {
    margin: 0;
    font-size: 13px;
    color: var(--color-primary);
}

/* ========================================
   响应式布局
   ======================================== */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 240px 1fr;
        gap: 40px;
        padding: 32px 24px 60px;
    }

    .article-title {
        font-size: 32px;
    }

    .article-banner {
        padding: 32px;
        flex-direction: column;
        text-align: center;
    }

    .banner-right {
        max-width: 70%;
        justify-content: center;
    }

    .banner-tag {
        align-self: center;
    }

    .banner-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .blog-sidebar {
        position: static;
        order: -1;
    }

    .sidebar-card.thumbnail-card {
        display: none;
    }

    .article-title {
        font-size: 28px;
    }

    .chapter-title {
        font-size: 22px;
    }

    .section-heading {
        font-size: 18px;
    }

    .sidebar-section {
        gap: 8px;
    }

    .toc-list {
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    .blog-detail-page {
        padding-top: 80px;
    }

    .blog-layout {
        padding: 24px 16px 40px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-banner {
        padding: 24px;
        min-height: auto;
    }

    .banner-title {
        font-size: 22px;
    }

    .banner-brand {
        font-size: 14px;
    }

    .banner-tag {
        font-size: 14px;
        padding: 8px 16px;
    }

    .article-abstract {
        padding: 16px 18px;
    }

    .quote-block {
        padding: 14px 16px;
    }

    .hy-product-card {
        padding: 16px;
    }
}