﻿/* 自定义样式  */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #EDF2F7;
    color: #2D3748;
}

/* 卡片悬浮效果 */
.card-hover {
    transition: all 0.3s ease;
}

    .card-hover:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }

/* 按钮样式 */
.btn-custom {
    background-color: #3182CE;
    color: white;
    transition: background-color 0.2s ease;
}

    .btn-custom:hover {
        background-color: #2b6cb0;
        color: white;
    }

/* 文字截断 */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 标签样式 */
.badge-custom {
    background-color: #4A5568;
}

.badge-accent {
    background-color: #3182CE;
}

/* 返回顶部按钮 */
#backToTop {
    transition: all 0.3s ease;
    z-index: 99;
}
/* 渐变遮罩 */
.gradient-overlay {
    background: linear-gradient(to top, rgba(45, 55, 72, 0.8), transparent);
}

.left-0 {
left:0px;
}

.bottom-0 {
bottom:0px;
}
.right-0 {
right:0px;
}

/* 文章内容排版 */
.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-content blockquote {
    border-left: 4px solid #3182CE;
    padding-left: 1rem;
    font-style: italic;
    margin: 1.5rem 0;
}
/* 代码块样式 */
.article-content pre {
    background-color: #f7fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.article-content code {
    background-color: #f7fafc;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}