/* ==========================================================================
   速云梯机场 - 知识库与文章样式 (Article Design System)
   ========================================================================== */

.article-container {
    padding: 50px 0 90px;
    min-height: calc(100vh - 200px);
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--text-light);
}

.article-header {
    text-align: left;
    margin-bottom: 40px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.article-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 18px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--text-muted);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--text-light);
}

/* 文章正文区域 */
.article-content {
    max-width: 860px;
    margin: 0 auto;
    background: white;
    padding: 50px 56px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    line-height: 1.85;
    font-size: 16px;
    color: #334155;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    margin: 44px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    position: relative;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary);
}

.article-content h2:first-of-type {
    margin-top: 0;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin: 32px 0 14px;
}

.article-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin: 24px 0 12px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content strong {
    color: var(--text-main);
    font-weight: 700;
}

/* 行内代码与代码块 */
.article-content code {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: "Fira Code", Monaco, Consolas, "Courier New", monospace;
    font-size: 14px;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.article-content pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 24px 0;
    box-shadow: var(--shadow-md);
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border: none;
    font-size: 14px;
    line-height: 1.6;
}

/* 提示框 Tip / Warning / Callout Boxes */
.callout-box {
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin: 28px 0;
    border-left: 4px solid;
    display: flex;
    gap: 16px;
}

.callout-box.tip {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--success);
    color: #065f46;
}

.callout-box.warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: var(--accent);
    color: #92400e;
}

.callout-box.info {
    background: rgba(79, 70, 229, 0.08);
    border-color: var(--primary);
    color: #3730a3;
}

.callout-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
}

.callout-content p {
    margin: 0;
    font-size: 15px;
}

/* 响应式表格 */
.table-wrapper {
    overflow-x: auto;
    margin: 28px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    text-align: left;
}

.article-content table th {
    background: var(--bg-alt);
    font-weight: 700;
    color: var(--text-main);
    padding: 14px 18px;
    border-bottom: 2px solid var(--border);
}

.article-content table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
}

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

.article-content table tr:hover {
    background: rgba(248, 250, 252, 0.8);
}

/* 文章内部 CTA 框 */
.article-cta-box {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1.5px solid rgba(79, 70, 229, 0.3);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    text-align: center;
    margin: 48px 0 24px;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.1);
}

.article-cta-box h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 10px 0;
}

.article-cta-box p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.article-cta-btn {
    background: var(--gradient-primary);
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 36px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.article-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.45);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 28px;
    }

    .article-content {
        padding: 32px 20px;
        border-radius: var(--radius-lg);
    }

    .article-content h2 {
        font-size: 22px;
    }

    .article-content h3 {
        font-size: 18px;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
}