/* 文章头部样式 */
.article-header {
    background-color: #001737;
    color: #fff;
    padding: 30px 0;
    margin-bottom: 40px;
}

.article-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.article-header .breadcrumb a {
    color: #ccc;
    transition: color 0.3s ease;
}

.article-header .breadcrumb a:hover {
    color: #fff;
}

.article-header .breadcrumb a.active {
    color: #fff;
    font-weight: 500;
}

.article-header .breadcrumb span {
    font-size: 12px;
    color: #999;
}

.article-title-bar h1 {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #ccc;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 文章主内容区 */
.article-main {
    padding-bottom: 60px;
}

.article-wrapper {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 40px;
}

/* 左侧文章内容 */
.article-content {
    width: 100%;
}

.article-featured-image {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #001737;
    margin: 35px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0066cc;
    display: inline-block;
}

/* 网格类型卡片 */
.mesh-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.mesh-type-card {
    text-align: center;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mesh-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.mesh-type-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
}

.mesh-type-card p {
    font-size: 14px;
    font-weight: 500;
    color: #001737;
    padding: 0 10px 15px;
    margin-bottom: 0;
}

/* 应用场景网格 */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.application-card {
    background-color: #f5f7fa;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.application-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.app-icon {
    width: 60px;
    height: 60px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.application-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #001737;
    margin-bottom: 10px;
}

.application-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

/* 优势列表 */
.benefits-list {
    list-style: none;
    margin: 25px 0;
}

.benefits-list li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid #e1e4e8;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li i {
    color: #0066cc;
    font-size: 16px;
    margin-top: 4px;
}

/* 咨询卡片 */
.consult-card {
    background-color: #0066cc;
    color: #fff;
    padding: 25px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.consult-icon {
    font-size: 40px;
    color: #fff;
    opacity: 0.8;
}

.consult-text h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.consult-text p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 0;
}

.consult-btn {
    margin-left: auto;
    background-color: #fff;
    color: #0066cc;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.consult-btn:hover {
    background-color: #001737;
    color: #fff;
}

/* 分享区域 */
.share-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid #e1e4e8;
}

.share-section p {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 0;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.email {
    background-color: #ea4335;
}

.share-btn.print {
    background-color: #666;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 上一篇/下一篇导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 0;
    border-top: 1px solid #e1e4e8;
    border-bottom: 1px solid #e1e4e8;
    margin: 20px 0 40px;
}

.prev-article, .next-article {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 48%;
}

.prev-icon, .next-icon {
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 3px;
}

.prev-icon img, .next-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev-info, .next-info {
    flex: 1;
}

.prev-info span, .next-info span {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    display: block;
    margin-bottom: 5px;
}

.prev-info a, .next-info a {
    font-size: 14px;
    font-weight: 500;
    color: #001737;
    transition: color 0.3s ease;
}

.prev-info a:hover, .next-info a:hover {
    color: #0066cc;
}

.next-article {
    justify-content: flex-end;
    text-align: right;
}

/* 右侧侧边栏 */
.article-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: #f5f7fa;
    padding: 25px;
    border-radius: 4px;
}

.sidebar-widget h3 {
    font-size: 18px;
    font-weight: 700;
    color: #001737;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

/* 搜索组件 */
.search-widget {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 45px;
    border: 1px solid #e1e4e8;
    border-radius: 3px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #0066cc;
}

.search-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: #0066cc;
}

/* 分类列表 */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.category-list li a.active {
    color: #0066cc;
    font-weight: 600;
}

.category-list li a:hover:not(.active) {
    color: #0066cc;
}

.category-list li a i {
    font-size: 10px;
    margin-right: 8px;
}

.category-count {
    color: #888;
    font-size: 12px;
    background-color: #e1e4e8;
    padding: 2px 6px;
    border-radius: 10px;
}

/* 最近文章 */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-posts-list li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e1e4e8;
}

.recent-posts-list li:last-child {
    border-bottom: none;
}

.recent-posts-list li.active {
    background-color: #e8f0fe;
    padding: 8px;
    border-radius: 3px;
}

.recent-post-image {
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 3px;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-posts-list li:hover .recent-post-image img {
    transform: scale(1.05);
}

.recent-post-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.recent-post-info a {
    font-size: 13px;
    color: #001737;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.recent-posts-list li.active a {
    color: #0066cc;
}

.recent-post-info a:hover {
    color: #0066cc;
}

.post-date {
    font-size: 12px;
    color: #888;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    transition: all 0.3s ease;
}

.tag.active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.tag:hover:not(.active) {
    border-color: #0066cc;
    color: #0066cc;
}

/* 广告卡片 */
.ad-widget {
    background-color: #001737;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.ad-widget img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 3px;
}

.ad-widget h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ad-widget p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.ad-btn {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.ad-btn:hover {
    background-color: #0052a3;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .article-wrapper {
        grid-template-columns: 6fr 4fr;
        gap: 30px;
    }
    
    .mesh-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-title-bar h1 {
        font-size: 32px;
    }
}

@media (max-width: 992px) {
    .article-wrapper {
        grid-template-columns: 1fr;
    }
    
    .consult-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .consult-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .article-nav {
        flex-direction: column;
    }
    
    .prev-article, .next-article {
        width: 100%;
    }
    
    .next-article {
        flex-direction: row-reverse;
        text-align: left;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 20px 0;
        margin-bottom: 30px;
    }
    
    .article-title-bar h1 {
        font-size: 28px;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .mesh-types-grid {
        grid-template-columns: 1fr;
    }
    
    .share-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .article-title-bar h1 {
        font-size: 24px;
    }
    
    .consult-card {
        padding: 20px 15px;
    }
    
    .consult-icon {
        font-size: 30px;
    }
    
    .prev-article, .next-article {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .next-article {
        flex-direction: column;
        text-align: left;
    }
    
    .prev-icon, .next-icon {
        width: 100%;
        height: auto;
    }
}