/* 文章页面样式 */
body {
    padding-top: 90px;
    background: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .card {
        padding: 20px 16px;
        border-radius: 10px;
    }
}

.article-header {
    padding-bottom: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid #e8e8e8;
}

.article-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    letter-spacing: 0.3px;
}

.article-meta {
    color: #8c8c8c;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-meta i {
    font-size: 16px;
}

.article-thumb {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    margin-bottom: 32px;
    background: #f5f5f5;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.article-thumb.loaded {
    opacity: 1;
}

.article-content {
    line-height: 1.8;
    font-size: 16px;
    color: #262626;
    letter-spacing: 0.3px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    margin: 24px auto;
    display: block;
    background: #f5f5f5;
}

.article-content p {
    margin-bottom: 18px;
    text-align: justify;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.article-content h1 {
    font-size: 26px;
}

.article-content h2 {
    font-size: 22px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.article-content h3 {
    font-size: 19px;
}

.article-content h4 {
    font-size: 17px;
}

.article-content blockquote {
    border-left: 3px solid #d9d9d9;
    padding: 12px 0 12px 16px;
    margin: 20px 0;
    color: #595959;
    background: #fafafa;
    border-radius: 0 4px 4px 0;
}

.article-content code {
    background: #f5f5f5;
    padding: 3px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    color: #d73a49;
}

.article-content pre {
    background: #f6f8fa;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #e8e8e8;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #24292e;
    font-size: 14px;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 28px;
}

.article-content li {
    margin: 8px 0;
    line-height: 1.8;
}

.article-content a {
    color: #1890ff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.article-content a:hover {
    border-bottom-color: #1890ff;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.article-content table th,
.article-content table td {
    border: 1px solid #e8e8e8;
    padding: 10px 12px;
    text-align: left;
}

.article-content table th {
    background: #fafafa;
    font-weight: 600;
}

.article-content hr {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 32px 0;
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .article-title {
        font-size: 22px;
        line-height: 1.4;
    }

    .article-meta {
        font-size: 13px;
        gap: 12px;
    }

    .article-content {
        font-size: 15px;
        line-height: 1.75;
    }

    .article-thumb {
        max-height: 280px;
        border-radius: 6px;
        margin-bottom: 24px;
    }

    .article-content img {
        max-height: 400px;
    }

    .article-content h1 {
        font-size: 22px;
    }

    .article-content h2 {
        font-size: 19px;
    }

    .article-content h3 {
        font-size: 17px;
    }

    .article-content h4 {
        font-size: 16px;
    }

    .article-content pre {
        padding: 12px;
        font-size: 13px;
    }

    .article-content table {
        font-size: 13px;
    }
}

/*
 访问量冷却提示 */
.view-cooldown-notice {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    color: #ff9800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.3s ease-out;
}

.view-cooldown-notice i {
    font-size: 18px;
    flex-shrink: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .view-cooldown-notice {
        font-size: 13px;
        padding: 10px 14px;
    }

    .view-cooldown-notice i {
        font-size: 16px;
    }
}