/* ===================== 文章内容页样式 ===================== */
/* 所有样式以show_开头 */

.show_main {
    padding: 0 0 100px;
    background: #f8f9fa;
}

/* 面包屑导航 - show_breadcrumb */
.show_breadcrumb-container {
    background: linear-gradient(to right, #0066cc, #0088ff);
    padding: 20px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.show_breadcrumb {
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    align-items: center;
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    line-height: 1.5; /* 设置行高 */
}

.show_breadcrumb a {
    color: #fff;
    transition: color 0.3s ease;
    display: inline-flex; /* 改为inline-flex */
    align-items: center;
    font-weight: 700;
    white-space: nowrap; /* 防止链接内文字换行 */
    margin: 2px 0; /* 上下间距 */
}

.show_breadcrumb a:hover {
    color: #f0f7ff;
    text-decoration: none; /* 添加去除下划线 */
    font-weight: 700;
}

.show_breadcrumb .fa-home:before {
    margin-right: 5px;
}

.show_breadcrumb-separator {
    margin: 0 8px; /* 减小间距，更适合移动端 */
    font-size: 12px;
    color: #aaa;
    flex-shrink: 0; /* 防止分隔符被压缩 */
}

.show_breadcrumb-current {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    white-space: nowrap; /* 防止文字换行 */
    margin: 2px 0; /* 上下间距 */
}

/* 文章内容区域 */
.show_article {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    margin-bottom: 60px;
}

/* 文章标题 */
.show_article-header {
    padding: 50px 50px 30px;
    border-bottom: 1px solid #eee;
}

.show_article-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
    color: #222;
    position: relative;
    text-align: center;
}

/* 文章元信息 */
.show_article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.show_meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* 可选：添加分隔线 */
.show_meta-item:not(:last-child)::after {
    content: "|";
    margin-left: 20px;
    color: #ddd;
}

.show_meta-item i {
    color: #0066cc;
    margin-right: 10px;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.show_meta-item span strong {
    color: #222;
    font-weight: 600;
}

.show_meta-item span a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 700;
}

.show_meta-item span a:hover {
    color: #0052a3;
    text-decoration: none;
    font-weight: 700;
}

/* 标签样式 */
.show_tag {
    display: inline-block;
    background: #f0f7ff;
    color: #0066cc;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 13px;
    margin-left: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.show_tag:hover {
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,102,204,0.2);
}

/* 文章特色图片 */
.show_article-featured {
    padding: 0 50px;
    margin: 30px 0;
}

.show_article-featured img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.show_article-featured img:hover {
    transform: scale(1.01);
}

/* 文章正文 */
.show_article-content {
    padding: 40px 50px 50px;
    line-height: 1.8;
    color: #444;
}

.show_article-content img,
.show_article-content p img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    padding: 10px 0;
}

.show_article-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #222;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.show_article-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #333;
}

.show_article-content p {
    margin-bottom: 20px;
    font-size: 17px;
}

.show_article-content ul,
.show_article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.show_article-content li {
    margin-bottom: 10px;
    font-size: 16px;
}

.show_article-content strong {
    color: #222;
    font-weight: 600;
}

/* 高亮框 */
.show_highlight-box {
    background: linear-gradient(135deg, #f0f7ff, #e6f0ff);
    border-left: 4px solid #0066cc;
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.show_highlight-box h3 {
    color: #0066cc;
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.show_highlight-box h3 i {
    margin-right: 10px;
}

.show_highlight-box p {
    margin-bottom: 0;
    color: #444;
}

/* 上下翻页 */
.show_article-pagination {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.show_pagination-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.show_pagination-prev,
.show_pagination-next {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: #666;
    transition: all 0.4s ease;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1;
}

.show_pagination-prev {
    text-align: left;
}

.show_pagination-next {
    text-align: right;
    justify-content: flex-end;
}

.show_pagination-prev:hover,
.show_pagination-next:hover {
    background: linear-gradient(to right, #0066cc, #0088ff);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,102,204,0.15);
    border-color: transparent;
}

.show_pagination-prev:hover .show_pagination-info h4,
.show_pagination-next:hover .show_pagination-info h4 {
    color: #fff;
}

.show_pagination-prev i,
.show_pagination-next i {
    font-size: 20px;
    margin: 0 15px;
}

.show_pagination-info {
    flex: 1;
}

.show_pagination-info span {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.show_pagination-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0;
    transition: color 0.3s ease;
}

.show_pagination-prev:hover .show_pagination-info span,
.show_pagination-next:hover .show_pagination-info span {
    color: rgba(255,255,255,0.9);
}

/* 相关内容推荐 */
.show_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.show_related-articles {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
}

.show_related-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
    display: flex;
    align-items: center;
}

.show_related-title i {
    color: #0066cc;
    margin-right: 15px;
    font-size: 28px;
}

.show_related-description {
    color: #666;
    font-size: 17px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.show_related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.show_related-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
	border: 1px solid #eee;
}

.show_related-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
	border-color: #0066cc;
}

.show_related-image {
    /* height: 200px; */
    overflow: hidden;
}

.show_related-item::before {
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #0066cc, #0088ff);
}

.show_related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.show_related-item:hover .show_related-image img {
    transform: scale(1.05);
}

.show_related-content {
    padding: 20px;
    height: 65px;
    width: 95%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.show_related-item-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #222;
    flex-grow: 1;
    text-align: center;
}

.show_related-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.show_related-item-title a:hover {
    color: #0066cc;
}

/* 图片区域悬停效果 */
.show_related-image a {
    display: block;
    position: relative;
    overflow: hidden;
}

.show_related-image a:hover img {
    transform: scale(1.02); /* 可选：轻微放大效果 */
    transition: transform 0.3s ease;
}

/* 链接文字悬停效果 */
.show_related-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.show_related-item-title a:hover {
    color: #0066cc;
}

/* 整个卡片悬停效果 */
.show_related-item:hover .show_related-item-title a {
    color: #0066cc;
}

.show_related-meta {
    margin-top: auto;
}

.show_related-meta span {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.show_related-meta i {
    margin-right: 8px;
    font-size: 12px;
    color: #999;
}

/* 适配首页头部导航高度 */
.nav-container.fixed + .show_main .show_breadcrumb-container {
    margin-top: 90px; /* 匹配导航栏高度 */
}

/* 平滑滚动动画 */
.show_article,
.show_related-item {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== 响应式设计（合并后按屏幕尺寸从大到小排序） ===================== */
@media (max-width: 1200px) {
    .show_related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .show_article-header,
    .show_article-featured,
    .show_article-content {
        padding: 40px;
    }
    
    .show_article-title {
        font-size: 36px;
    }
    
    .show_related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .show_related-articles {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    /* 面包屑移动端优化 */
    .show_breadcrumb {
        font-size: 13px; /* 移动端字体稍小 */
    }
    
    .show_breadcrumb-separator {
        margin: 0 6px; /* 移动端间距更小 */
    }
    
    .show_breadcrumb-container {
        padding: 15px 0; /* 移动端减少内边距 */
    }

    /* 整体布局 */
    .show_main {
        padding: 0 0 60px;
    }
    
    .show_breadcrumb-container {
        padding: 15px 0;
        margin-bottom: 30px;
    }
    
    .show_breadcrumb {
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    .show_breadcrumb-separator {
        margin: 0 8px;
    }
    
    /* 文章区域 */
    .show_article-header,
    .show_article-featured,
    .show_article-content {
        padding: 30px;
    }
    
    .show_article-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .show_article-meta {
        gap: 20px;
        margin-top: 30px;
        padding-top: 25px;
    }
    
    .show_meta-item {
        font-size: 14px;
        flex-basis: calc(50% - 20px);
    }
    
    .show_meta-item:nth-child(3),
    .show_meta-item:nth-child(4) {
        flex-basis: 100%;
    }
    
    .show_tag {
        font-size: 12px;
        padding: 3px 10px;
        margin: 2px 4px 2px 0;
    }
    
    .show_article-content h2 {
        font-size: 24px;
        margin: 30px 0 15px;
    }
    
    .show_article-content h3 {
        font-size: 20px;
    }
    
    .show_article-content p {
        font-size: 16px;
    }
    
    /* 翻页区域 */
    .show_pagination-wrapper {
        flex-direction: column;
    }
    
    .show_pagination-prev,
    .show_pagination-next {
        width: 100%;
    }
    
    .show_pagination-info h4 {
        font-size: 16px;
    }
    
    /* 相关推荐 */
    .show_related-articles {
        padding: 30px;
    }
    
    .show_related-title {
        font-size: 26px;
    }
    
    .show_related-title i {
        font-size: 22px;
        margin-right: 10px;
    }
    
    .show_related-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .show_related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .show_related-item-title {
        font-size: 17px;
    }

    /* 移动端导航高度适配 */
    .nav-container.fixed + .show_main .show_breadcrumb-container {
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    /* 面包屑超小屏优化 */
    .show_breadcrumb {
        font-size: 12px;
    }
    
    .show_breadcrumb-separator {
        margin: 0 4px;
        font-size: 10px;
    }

    /* 文章区域 */
    .show_article-header,
    .show_article-featured,
    .show_article-content {
        padding: 20px;
    }
    
    .show_article-title {
        font-size: 24px;
		margin-bottom:0px; 
    }
    
    .show_article-meta {
        flex-direction: column;
        gap: 15px;
		display: none;
    }
    
    .show_meta-item {
        flex-basis: 100%;
    }
    
    .show_article-featured {
        padding: 0 20px;
        margin: 20px 0;
    }
    
    /* 翻页区域 */
    .show_pagination-prev,
    .show_pagination-next {
        padding: 15px;
    }
    
    .show_pagination-info h4 {
        font-size: 15px;
    }
    
    /* 相关推荐 */
    .show_related-articles {
        padding: 20px;
    }
    
    .show_related-title {
        font-size: 22px;
    }
}