:root {
    --primary-color: #4ea2f5;
    --text-main: #303133;
    --text-regular: #606266;
    --text-secondary: #909399;
    --bg-color: #f5f7fa;
    --border-color: #ebeef5;
    --shadow-base: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;

}
body{
    background: #f1f5f9;
}
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px);
}

/* 面包屑 */
.breadcrumb-nav {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-secondary);
}
.breadcrumb-nav a { color: var(--text-regular); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--primary-color); }

/* 主体布局 */
.main-layout {
    display: flex;
    gap: 24px;
}

/* 左侧区域 */
.content-area {
    flex: 1;
    min-width: 0;
}

/* === 修改点1：文章列表改为双列网格布局 === */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 两列布局 */
    gap: 20px;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-base);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(78, 162, 245, 0.15);
}

.article-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-thumb {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--bg-color);
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.article-card:hover .article-thumb img {
    transform: scale(1.05);
}

.article-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 10px;
    /* 限制两行 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-card:hover .article-title {
    color: var(--primary-color);
}

.article-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    /* 限制三行 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-top: auto; /* 描述文字始终贴底 */
}


/* 右侧区域 */
.sidebar-area {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-base);
    padding: 20px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}

/* 热门文章 */
.hot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-item a {
    display: flex;
    gap: 10px;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
    transition: all 0.3s;
}

.hot-item:last-child a { border-bottom: none; }

.hot-num {
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: var(--text-secondary);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    flex-shrink: 0;
}

.hot-item:nth-child(1) .hot-num { background: #f56c6c; }
.hot-item:nth-child(2) .hot-num { background: #e6a23c; }
.hot-item:nth-child(3) .hot-num { background: var(--primary-color); }

.hot-title {
    font-size: 14px;
    color: var(--text-regular);
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hot-item a:hover .hot-title { color: var(--primary-color); }

/* === 修改点3：标签样式调整为小圆角 === */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f5f5;
    color: var(--text-regular);
    border-radius: 4px; /* 改为小圆角 */
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.tag-item:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 响应式 */
@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
    }
    .sidebar-area {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr; /* 移动端单列 */
    }
}

/********************详情页************************/


/* 页面容器 */
.pageinfo-container {
    background-color: var(--bg-color);
    padding: 30px 0;
    min-height: calc(100vh - 100px);
}

.inner-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 左侧文章区 */
.article-panel {
    flex: 1;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* 面包屑 */
.bread-nav {
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-light);
}
.bread-nav a { color: var(--text-gray); text-decoration: none; }
.bread-nav a:hover { color: var(--primary-color); }
.bread-nav i { margin: 0 5px; font-size: 12px; }

/* 文章头部 */
.article-header {
    padding: 40px 40px 30px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.article-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.5;
}

/* 文章内容 */
.article-content {
    padding: 30px 40px;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
    cursor: pointer;
}

/* 文章底部导航 */
.article-footer {
    border-top: 1px solid var(--border-color);
    padding: 20px 40px;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
}

/* --- 修改点开始：优化导航链接样式 --- */
.nav-link {
    display: flex; /* 使用Flex布局 */
    align-items: center; /* 垂直居中 */
    font-size: 14px;
    color: var(--text-gray);
    text-decoration: none;
    max-width: 45%;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--primary-color); }

/* 图标样式：防止被压缩，固定大小 */
.nav-link i {
    flex-shrink: 0;
    width: 20px; /* 固定图标宽度 */
    text-align: center;
}

/* 文字容器：负责超出省略 */
.nav-link .text-inner {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 针对下一篇的特殊对齐 */
.nav-link.next-nav {
    justify-content: flex-end;
    text-align: right;
}
/* --- 修改点结束 --- */

/* 右侧侧边栏 */
.side-panel {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 通用卡片样式 */
.card-box {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
}

.card-header i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 18px;
}

/* 推荐列表 */
.recommend-list {
    padding: 15px 20px;
}

.recommend-item {
    margin-bottom: 15px;
}
.recommend-item:last-child { margin-bottom: 0; }

.recommend-item a {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s;
    padding-left: 15px;
    position: relative;
}

.recommend-item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background: var(--text-light);
    border-radius: 50%;
}

.recommend-item a:hover {
    color: var(--primary-color);
}

/* 装饰图片区域 */
.decoration-area {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #4ea2f5 0%, #6ec2ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.decoration-area i {
    font-size: 60px;
    opacity: 0.2;
    position: absolute;
}

.decoration-text {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* 微信关注卡片 */
.wechat-card {
    padding: 20px;
    text-align: center;
    background: #fff;
}
.wechat-card section { margin: 0 auto; max-width: 100%; }
.wechat-card img { width: 100%; display: block; margin: 0 auto; }

/* 响应式 */
@media (max-width: 992px) {
    .inner-box {
        flex-direction: column;
    }
    .side-panel {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .article-header { padding: 20px; }
    .article-content { padding: 20px; }
    .article-title { font-size: 22px; }
}


.jpmsvg{
    max-width: 390px;
    margin: 0 auto;
}