/* 文章详情页面样式 */
.articleDetailPage {
    display: flex;
    max-width: 1480px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.articleDetailContainer {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* 文章头部信息 */
.articleHeader {
    padding: 30px;
    border-bottom: 1px solid #eee;
    height: auto;
    background: #fff;
}

.articleCategory {
    display: inline-block;
    background: #03b752;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.articleTitle {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin: 0 0 20px 0;
}

.articleMeta {
    display: flex;
    gap: 30px;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.articleMeta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.articleMeta i {
    width: 16px;
    height: 16px;
    background-size: contain;
    opacity: 0.7;
}

.author-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>');
}

.date-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"/></svg>');
}

.view-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></svg>');
}

.articleTags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.articleTag {
    background: #f0f8ff;
    color: #03b752;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    border: 1px solid #e0f0e0;
}

/* 文章内容 */
.articleContent {
    padding: 5px 30px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.articleContent img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

.articleContent p {
    margin: 0 0 20px 0;
}

.articleContent h1,
.articleContent h2,
.articleContent h3,
.articleContent h4,
.articleContent h5,
.articleContent h6 {
    color: #03b752;
    margin: 30px 0 15px 0;
    font-weight: bold;
}

.articleContent h2 {
    font-size: 24px;
    border-left: 4px solid #03b752;
    padding-left: 15px;
}

.articleContent h3 {
    font-size: 20px;
}

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

.articleContent li {
    margin: 10px 0;
}

.articleContent blockquote {
    background: #f8f9fa;
    border-left: 4px solid #03b752;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
}

.articleContent code {
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e83e8c;
}

.articleContent pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

/* 分享和操作 */
.articleActions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    flex-wrap: wrap;
    gap: 20px;
}

.shareButtons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.shareTitle {
    color: #666;
    font-size: 14px;
}

.shareBtn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.shareBtn.wechat {
    background: #07c160;
    color: #fff;
}

.shareBtn.weibo {
    background: #e6162d;
    color: #fff;
}

.shareBtn.qq {
    background: #12b7f5;
    color: #fff;
}

.shareBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.articleOps {
    display: flex;
    gap: 15px;
}

.opBtn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #03b752;
    background: #fff;
    color: #03b752;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.opBtn:hover {
    background: #03b752;
    color: #fff;
}

.opBtn i {
    width: 16px;
    height: 16px;
    background-size: contain;
}

.like-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z"/></svg>');
}

.collect-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/></svg>');
}

/* 上下篇导航 */
.articleNavigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 30px;
    border-top: 1px solid #eee;
}

.navItem .navLink {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.navItem .navLink:hover:not(.disabled) {
    background: #03b752;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 183, 82, 0.2);
}

.navItem .navLink.disabled {
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.navLabel {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.navLink:hover:not(.disabled) .navLabel {
    color: #fff;
}

.navTitle {
    display: block;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 相关文章 */
.relatedArticles {
    padding: 30px;
    border-top: 1px solid #eee;
}

.sectionTitle {
    font-size: 20px;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #03b752;
    display: inline-block;
}

.relatedList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.relatedItem {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.relatedItem:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.relatedLink {
    display: block;
    text-decoration: none;
    color: #333;
}

.relatedImg {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.relatedImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.relatedItem:hover .relatedImg img {
    transform: scale(1.05);
}

.relatedInfo {
    padding: 15px;
}

.relatedTitle {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 10px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.relatedItem:hover .relatedTitle {
    color: #03b752;
}

.relatedDate {
    font-size: 14px;
    color: #666;
}

/* 侧边栏 */
.articleSidebar {
    width: 320px;
    flex-shrink: 0;
}

.sidebarBox {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.boxTitle {
    background: #03b752;
    color: #fff;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

/* 推荐阅读 */
.recommendedList {
    padding: 20px;
}

.recommendedItem {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.recommendedItem:last-child {
    border-bottom: none;
}

.recommendedItem:hover {
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0 -12px;
    padding: 12px;
}

.recommendedItem a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: #333;
    width: 100%;
}

.recommendedImg {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.recommendedImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommendedInfo {
    flex: 1;
    min-width: 0;
}

.recommendedInfo h5 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recommendedItem:hover h5 {
    color: #03b752;
}

.recommendedDate {
    font-size: 12px;
    color: #999;
}

/* 热门文章 */
.hotList {
    padding: 20px;
}

.hotItem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.hotItem:last-child {
    border-bottom: none;
}

.hotItem:hover {
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0 -12px;
    padding: 12px;
}

.hotItem a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    width: 100%;
}

.hotRank {
    width: 24px;
    height: 24px;
    background: #03b752;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.hotInfo {
    flex: 1;
    min-width: 0;
}

.hotInfo h5 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hotItem:hover h5 {
    color: #03b752;
}

.hotViews {
    font-size: 12px;
    color: #999;
}

/* 下载列表 */
.downloadList {
    padding: 20px;
}

.downloadItem {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.downloadItem:last-child {
    border-bottom: none;
}

.downloadItem:hover {
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0 -12px;
    padding: 12px;
}

.downloadItem a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: #333;
    width: 100%;
}

.downloadIcon {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.downloadIcon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.downloadInfo {
    flex: 1;
    min-width: 0;
}

.downloadInfo h5 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.downloadItem:hover h5 {
    color: #03b752;
}

.downloadMeta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.downloadMeta span {
    font-size: 12px;
    color: #666;
}

/* 广告位 */
.sidebarAd {
    padding: 20px;
}

.sidebarAd img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .articleDetailPage {
        flex-direction: column;
        padding: 10px;
        gap: 20px;
    }
    
    .articleSidebar {
        width: 100%;
        order: -1;
    }
    
    .articleHeader {
        padding: 20px;
    }
    
    .articleTitle {
        font-size: 24px;
    }
    
    .articleContent {
        padding: 20px;
        font-size: 15px;
    }
    
    .articleActions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .articleNavigation {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .relatedList {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .articleMeta {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .articleDetailPage {
        padding: 5px;
    }
    
    .articleHeader {
        padding: 15px;
    }
    
    .articleTitle {
        font-size: 20px;
    }
    
    .articleContent {
        padding: 15px;
        font-size: 14px;
    }
    
    .shareButtons,
    .articleOps {
        flex-wrap: wrap;
        gap: 10px;
    }
} 