/* 文章详情页样式 */
.article-detail {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.article-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.article-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    word-wrap: break-word;
}

.article-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    overflow-wrap: break-word;
}

/* 添加表格样式 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.article-content th,
.article-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.article-content th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.article-content tr:last-child td {
    border-bottom: none;
}

.article-content tr:hover {
    background-color: #f8f9fa;
}

/* 添加列表样式 */
.article-content ul,
.article-content ol {
    padding-left: 2em;
    margin: 1em 0;
}

.article-content li {
    margin: 0.5em 0;
}

/* 添加引用样式 */
.article-content blockquote {
    margin: 1em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #1a73e8;
    background-color: #f8f9fa;
    color: #555;
    font-style: italic;
}

.article-content blockquote p:first-child {
    margin-top: 0;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

/* 添加代码样式 */
.article-content pre,
.article-content code {
    background-color: #f8f9fa;
    border-radius: 4px;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
}

.article-content pre {
    padding: 1em;
    overflow-x: auto;
    margin: 1em 0;
}

.article-content code {
    padding: 2px 4px;
    color: #e83e8c;
}

.article-content pre code {
    padding: 0;
    color: inherit;
}

.article-content p {
    margin: 1em 0;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 1.5em 0 0.5em;
    line-height: 1.4;
    color: #2c3e50;
}

.article-content a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: #1557b0;
    text-decoration: underline;
}

.article-category {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f4fe;
    color: #1a73e8;
    border-radius: 4px;
    font-size: 13px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.article-category:hover {
    background: #1a73e8;
    color: #fff;
}

.article-actions {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
}

.article-back {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: #f0f4fe;
    color: #1a73e8;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

.article-back:hover {
    background: #1a73e8;
    color: #fff;
    transform: translateX(-3px);
}

/* 相关文章样式 */
.related-articles {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.related-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    padding-left: 12px;
}

.related-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: #1a73e8;
    border-radius: 2px;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.related-item {
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.related-item:hover {
    border-color: #1a73e8;
    background: #f8f9ff;
    transform: translateY(-2px);
}

.related-item a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-item a:hover {
    color: #1a73e8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-detail {
        margin: 15px;
        padding: 20px;
    }

    .article-title {
        font-size: 20px;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }

    .article-content {
        font-size: 15px;
    }

    .related-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-detail {
        margin: 10px;
        padding: 15px;
    }

    .article-title {
        font-size: 18px;
    }

    .article-content {
        font-size: 14px;
    }
} 