/* 基础样式继承自 style.css，此处仅写博客详情页专属样式 */

/* 导航激活状态 */
.nav-link.active,
.nav-mobile-link.active {
    color: #D4AF37; /* 金色（匹配原图选中态） */
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #D4AF37;
}

/* GET A QUOTE 按钮（原图右上角） */
.quote-btn {
    background-color: #D4AF37; /* 金色按钮 */
    color: #000 !important;
    padding: 6px 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quote-btn:hover {
    background-color: #b89628;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    background-color: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.breadcrumb-links {
    font-size: 14px;
    color: #666;
}

.breadcrumb-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-links a:hover {
    color: #D4AF37;
}

.breadcrumb-links span {
    color: #000;
    font-weight: 500;
}

/* 博客详情主容器 */
.blog-detail-main {
    padding: 40px 0;
}

.blog-detail-container {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 40px;
}

/* 左侧博客内容区 */
.blog-content {
    padding-right: 20px;
}

/* 博客头部 */
.blog-header {
    margin-bottom: 30px;
}

.blog-title {
    font-size: 42px;
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    line-height: 1.2;
    margin-bottom: 20px;
    border-bottom: 3px solid #D4AF37;
    padding-bottom: 15px;
    display: inline-block;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: #D4AF37;
}

.blog-hero-img {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 博客简介 */
.blog-intro {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* 博客正文 */
.blog-body {
    margin-bottom: 40px;
}

.blog-section {
    margin-bottom: 40px;
}

.section-heading {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.section-img {
    margin: 20px 0;
    width: 100%;
    overflow: hidden;
}

.body-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* 生产流程 */
.process-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #D4AF37;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 20px;
}

.step-text {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #000;
}

.step-arrow {
    color: #D4AF37;
    font-size: 16px;
}

/* 优势列表 */
.advantages-list {
    list-style: none;
    margin: 20px 0;
}

.advantages-list li {
    font-size: 16px;
    line-height: 2;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.advantages-list li i {
    color: #D4AF37;
    font-size: 14px;
}

/* 应用场景网格 */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.application-card {
    position: relative;
    overflow: hidden;
}

.app-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.application-card:hover .app-img {
    transform: scale(1.05);
}

.app-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* 分享区域 */
.blog-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: #f9f9f9;
    margin-bottom: 40px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.share-label {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.share-icons {
    display: flex;
    gap: 10px;
}

.share-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-icon:hover {
    background-color: #D4AF37;
    color: #000;
}

/* 上下篇导航 */
.blog-pagination {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.prev-post, .next-post {
    width: 48%;
}

.post-link {
    text-decoration: none;
    color: #000;
    display: block;
    transition: all 0.3s ease;
}

.post-link:hover {
    color: #D4AF37;
}

.post-nav-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.post-title {
    font-size: 16px;
    font-weight: 600;
}

/* 右侧侧边栏 */
.blog-sidebar {
    padding-left: 20px;
}

.sidebar-widget {
    margin-bottom: 40px;
    background-color: #f9f9f9;
    padding: 25px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #D4AF37;
}

/* 分类组件 */
.categories-list {
    list-style: none;
}

.category-item {
    margin-bottom: 10px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #D4AF37;
}

.category-count {
    color: #999;
    font-size: 14px;
}

/* 最新文章组件 */
.recent-posts-list {
    list-style: none;
}

.recent-post-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-item-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
}

.post-item-link:hover {
    color: #D4AF37;
}

.post-thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-info .post-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.post-date {
    font-size: 12px;
    color: #666;
}

/* CTA 广告组件 */
.cta-widget-inner {
    background-color: #000;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}

.cta-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: none;
    padding-bottom: 0;
}

.cta-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ccc;
}

.cta-btn {
    background-color: #D4AF37;
    color: #000 !important;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.cta-btn:hover {
    background-color: #fff;
    color: #000 !important;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .blog-detail-container {
        grid-template-columns: 65% 35%;
        gap: 30px;
    }

    .blog-title {
        font-size: 36px;
    }

    .process-flow {
        gap: 5px;
    }

    .process-step {
        min-width: 80px;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-text {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .blog-detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-content {
        padding-right: 0;
    }

    .blog-sidebar {
        padding-left: 0;
    }

    .blog-title {
        font-size: 28px;
    }

    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }

    .process-flow {
        flex-direction: column;
        align-items: flex-start;
    }

    .process-step {
        flex-direction: row;
        min-width: 100%;
        gap: 10px;
        margin-bottom: 10px;
    }

    .step-arrow {
        display: none;
    }

    .blog-pagination {
        flex-direction: column;
        gap: 20px;
    }

    .prev-post, .next-post {
        width: 100%;
    }

    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 24px;
    }

    .blog-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .applications-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-widget {
        padding: 15px;
    }

    .cta-widget-inner {
        padding: 20px 15px;
    }

    .cta-title {
        font-size: 18px;
    }
}