/* 面包屑导航 */
.breadcrumb {
    background: #f5f7fa;
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #409eff;
}

.breadcrumb span {
    color: #333;
}

/* 文章详情页样式 */
.article-container {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.article-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 14px;
    align-items: center;
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #f0f2f5;
    color: #666;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
}

.article-body {
    line-height: 1.8;
    color: #333;
}

.article-body h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #333;
}

.article-body h3 {
    font-size: 20px;
    margin: 25px 0 12px;
    color: #333;
}

.article-body p {
    margin-bottom: 15px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.article-body ul, .article-body ol {
    margin: 15px 0;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body code {
    background: #f5f7fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

.article-body pre {
    background: #f5f7fa;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-body pre code {
    background: none;
    padding: 0;
}

/* 文章导航 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-item {
    max-width: 45%;
}

.nav-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-link:hover {
    color: #409eff;
}

/* 相关文章 */
.article-related {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-related h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.popular-articles {
    list-style: none;
    padding: 0;
}

.popular-articles li {
    margin-bottom: 15px;
}

.popular-articles a {
    text-decoration: none;
    color: #333;
    display: block;
    line-height: 1.6;
}

.popular-articles a:hover {
    color: #409eff;
}

.article-title {
    font-size: 14px;
}

/* 侧边栏 */
.article-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.hot-articles, .latest-articles {
    list-style: none;
    padding: 0;
}

.hot-articles li, .latest-articles li {
    margin-bottom: 20px;
}

.hot-articles li:last-child, .latest-articles li:last-child {
    margin-bottom: 0;
}

.hot-articles a, .latest-articles a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hot-articles h4, .latest-articles h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.latest-articles p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-date {
    color: #999;
    font-size: 12px;
    display: block;
}

/* 联系框 */
.contact-box {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.contact-box h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.contact-btn {
    display: inline-block;
    padding: 10px 30px;
    background: #409eff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background: #66b1ff;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error-message {
    text-align: center;
    padding: 40px;
}

.error-message h2 {
    color: #f56c6c;
    margin-bottom: 15px;
}

.error-message p {
    color: #666;
    margin-bottom: 20px;
}

.error-message a {
    display: inline-block;
    padding: 8px 20px;
    background: #409eff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.error-message a:hover {
    background: #66b1ff;
}

@media (max-width: 768px) {
    .article-container {
        grid-template-columns: 1fr;
    }

    .article-content {
        padding: 20px;
    }

    .article-header h1 {
        font-size: 24px;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .article-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .nav-item {
        max-width: 100%;
    }

    .article-sidebar {
        position: static;
    }
} 