/* 文章主体布局 */


.article-main {
    flex: 1;
    min-width: 0;
}

.article-container {
    display: flex;
    gap: 30px;
}

/* 文章内容区 */
.article-content {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #1890ff;
}

.breadcrumb .current {
    color: #333;
}

/* 文章头部 */
.article-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.article-meta .author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta .author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.article-meta .author span {
    color: #333;
    font-weight: 500;
}

.article-meta .time {
	display: block;
    background: url(../images/time.png) no-repeat center left;
    background-size: 14px auto;
    padding-left: 18px;
}

.article-meta .views {
	display: block;
    background: url(../images/read.png) no-repeat center left;
    background-size: 16px auto;
    padding-left: 22px;
}

.article-tags {
    display: flex;
    gap: 10px;
}

.article-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: #e6f7ff;
    color: #1890ff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.article-tags a:hover {
    background: #1890ff;
    color: #fff;
}

/* 文章封面 */
.article-cover {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章正文 */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-body h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 35px 0 20px;
    padding-left: 15px;
    border-left: 4px solid #1890ff;
}

.article-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 25px 0 15px;
}

.article-body ul, .article-body ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    margin: 25px 0;
    padding: 20px 25px;
    background: linear-gradient(135deg, #e6f7ff 0%, #fff 100%);
    border-left: 4px solid #1890ff;
    border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.article-body blockquote cite {
    font-size: 14px;
    color: #999;
    font-style: normal;
}

.article-image {
    margin: 25px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    border-radius: 8px;
}

.article-image .caption {
    margin-top: 10px;
    font-size: 13px;
    color: #999;
}

/* 文章底部 */
.article-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.article-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #666;
	line-height: 22px;
}

.action-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.action-btn.active {
    background: #1890ff;
    border-color: #1890ff;
    color: #fff;
}

.action-btn .icon {
    width:22px;
	height:22px;
}

.like-btn .icon {
	background:url(../images/zan.png) no-repeat center;
	background-size:90% auto;
}
.collect-btn .icon {
	background:url(../images/col.png) no-repeat center;
	background-size:90% auto;
}
.share-btn .icon {
	background:url(../images/share.png) no-repeat center;
	background-size:100% auto;
}

.action-btn .count {
    color: #999;
}

.like-btn.active .icon {
	background:url(../images/zan_r.png) no-repeat center;
	background-size:90% auto;
}
.collect-btn.active .icon {
	background:url(../images/col_r.png) no-repeat center;
	background-size:90% auto;
}
.share-btn.active .icon {
	background:url(../images/share_r.png) no-repeat center;
	background-size:100% auto;
}

.action-btn.active .count {
    color: #fff;
}

.article-copyright {
    font-size: 12px;
    color: #999;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

/* 作者信息 */
.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 30px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-detail {
    flex: 1;
}

.author-detail h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.author-detail p {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.author-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.follow-btn {
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
	width:110px;
	height:110px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.follow-btn img {
	width:90%;
}

.follow-btn:hover {
    background: #096dd9;
}

/* 相关推荐 */
.related-articles {
    margin-top: 40px;
}

.related-articles h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-left: 12px;
	position: relative;
}
.related-articles h3:before {
	content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: #1890ff;
    border-radius: 2px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s;
}

.related-item:hover {
    background: #e6f7ff;
}

.related-thumb {
    width: 160px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-item:hover .related-thumb img {
    transform: scale(1.05);
}

.related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-info h4 {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
}

.related-item:hover .related-info h4 {
    color: #1890ff;
}

.related-meta {
    font-size: 12px;
    color: #999;
}

/* 侧边栏 */
.article-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.sidebar-box {
    background: #fff;
    border-radius: 12px;
    padding:0 20px 20px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


/* 热门文章 */
.hot-articles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-article-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hot-article-item .rank {
    width: 20px;
    height: 20px;
    background: #f0f0f0;
    color: #999;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.hot-article-item .rank.rank-1 {
    background: #1890ff;
    color: #fff;
}

.hot-article-item .rank.rank-2 {
    background: #40a9ff;
    color: #fff;
}

.hot-article-item .rank.rank-3 {
    background: #69c0ff;
    color: #fff;
}

.hot-article-item .title {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-article-item:hover .title {
    color: #1890ff;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 14px;
    background: #f5f5f5;
    color: #666;
    border-radius: 15px;
    font-size: 13px;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    background: #1890ff;
    color: #fff;
}

/* 大家还在看 */
.more-articles {
    margin-top: 40px;
}

.more-articles h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-left: 12px;
    position: relative;
}
.more-articles h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: #1890ff;
    border-radius: 2px;
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.more-item {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.more-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.more-thumb {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.more-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.more-item:hover .more-thumb img {
    transform: scale(1.05);
}

.more-info {
    padding: 12px;
}

.more-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height:24px;
	height: 48px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.more-item:hover .more-info h4 {
    color: #1890ff;
}

.more-meta {
    font-size: 12px;
    color: #999;
}

/* 上一篇/下一篇 */
.nav-article-box {
    transition: all 0.3s ease;
}

.nav-article-box.sticky {
    position: fixed;
    top: 100px;
    width: 260px;
    z-index: 100;
}

.nav-article {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-article-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    background: #f7f7f7;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-article-item:hover {
    background: #e6f7ff;
}

.nav-label {
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-article-item.prev .nav-label::before {
    content: '';
	background: url(../images/pre.png) no-repeat center;
	background-size:14px auto; 
	width: 20px;
	height:20px;
}

.nav-article-item.next .nav-label::before {
    content: '';
	background: url(../images/next.png) no-repeat center;
	background-size:14px auto; 
	width: 20px;
	height:20px;
}

.nav-title {
    font-size: 15px;
    color: #333;
    line-height: 26px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-article-item:hover .nav-title {
    color: #1890ff;
}

/* 移动端上一篇/下一篇 */
.mobile-nav-article {
    display: none;
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-nav-article .sidebar-title {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-article .sidebar-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding-left: 12px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .sidebar-left {
        display: none;
    }
    
    .article-sidebar {
        display: none;
    }
    
    /* 显示移动端上一篇/下一篇 */
    .mobile-nav-article {
        display: block;
		padding-top:0;
    }
}

@media (max-width: 768px) {
    .main-wrapper {
        padding: 15px;
    }
    
    .article-content {
        padding: 5px;
        border-radius: 0px;
		box-shadow: none;
		background: none;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .article-meta {
        gap: 12px;
    }
    
    .article-body {
        font-size: 15px;
    }
    
    .article-body h2 {
        font-size: 18px;
        margin: 25px 0 15px;
    }
    
    .article-actions {
        flex-wrap: wrap;
		gap:10px;
    }
    
    .action-btn {
        padding: 8px 10px;
        font-size: 13px;
	    gap:4px;
    }
	.action-btn .icon {
		width:18px;
		height:18px;
	}
    
    .author-info {
        flex-wrap: wrap;
		flex-direction: column;
		gap:10px;
    }
    
    .author-detail {
        width: calc(100% - 75px);
    }
    
    .related-thumb {
        width: 120px;
        height: 80px;
    }
    
    .related-info h4 {
        font-size: 14px;
    }
    
    /* 大家还在看 */
    .more-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .more-thumb {
        height: 120px;
    }
    
    .more-info h4 {
        font-size: 15px;
		height: auto;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 20px;
    }
    
    .article-body h2 {
        font-size: 16px;
    }
    
    .article-body blockquote {
        padding: 15px;
    }
    
    .related-item {
        flex-direction: row;
    }
    
    
    /* 大家还在看 */
    .more-grid {
        grid-template-columns: 1fr;
    }
    
    .more-thumb {
        height: 160px;
    }
}
